blob: 5d3388628e612c67b41ff7fbc2a7ac1e2566c870 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencerabec8f92004-10-27 23:03:44 +00003# Generated by GNU Autoconf 2.59 for llvm 1.4.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2706f8c2004-09-19 23:53:36 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +000010#
11# $LLVM_COPYRIGHT
John Criswell0c38eaf2003-09-10 15:17:25 +000012## --------------------- ##
13## M4sh Initialization. ##
14## --------------------- ##
15
16# Be Bourne compatible
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 set -o posix
25fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000027
28# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030 as_unset=unset
31else
32 as_unset=false
33fi
34
35
36# Work around bugs in pre-3.0 UWIN ksh.
37$as_unset ENV MAIL MAILPATH
38PS1='$ '
39PS2='> '
40PS4='+ '
41
42# NLS nuisances.
43for as_var in \
44 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
45 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 LC_TELEPHONE LC_TIME
47do
Reid Spencer2706f8c2004-09-19 23:53:36 +000048 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000049 eval $as_var=C; export $as_var
50 else
51 $as_unset $as_var
52 fi
53done
54
55# Required to use basename.
56if expr a : '\(a\)' >/dev/null 2>&1; then
57 as_expr=expr
58else
59 as_expr=false
60fi
61
62if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
63 as_basename=basename
64else
65 as_basename=false
66fi
67
68
69# Name of the executable.
70as_me=`$as_basename "$0" ||
71$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
72 X"$0" : 'X\(//\)$' \| \
73 X"$0" : 'X\(/\)$' \| \
74 . : '\(.\)' 2>/dev/null ||
75echo X/"$0" |
76 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
77 /^X\/\(\/\/\)$/{ s//\1/; q; }
78 /^X\/\(\/\).*/{ s//\1/; q; }
79 s/.*/./; q'`
80
81
82# PATH needs CR, and LINENO needs CR and PATH.
83# Avoid depending upon Character Ranges.
84as_cr_letters='abcdefghijklmnopqrstuvwxyz'
85as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
86as_cr_Letters=$as_cr_letters$as_cr_LETTERS
87as_cr_digits='0123456789'
88as_cr_alnum=$as_cr_Letters$as_cr_digits
89
90# The user is always right.
91if test "${PATH_SEPARATOR+set}" != set; then
92 echo "#! /bin/sh" >conf$$.sh
93 echo "exit 0" >>conf$$.sh
94 chmod +x conf$$.sh
95 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
96 PATH_SEPARATOR=';'
97 else
98 PATH_SEPARATOR=:
99 fi
100 rm -f conf$$.sh
101fi
102
103
104 as_lineno_1=$LINENO
105 as_lineno_2=$LINENO
106 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
107 test "x$as_lineno_1" != "x$as_lineno_2" &&
108 test "x$as_lineno_3" = "x$as_lineno_2" || {
109 # Find who we are. Look in the path if we contain no path at all
110 # relative or not.
111 case $0 in
112 *[\\/]* ) as_myself=$0 ;;
113 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114for as_dir in $PATH
115do
116 IFS=$as_save_IFS
117 test -z "$as_dir" && as_dir=.
118 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119done
120
121 ;;
122 esac
123 # We did not find ourselves, most probably we were run as `sh COMMAND'
124 # in which case we are not to be found in the path.
125 if test "x$as_myself" = x; then
126 as_myself=$0
127 fi
128 if test ! -f "$as_myself"; then
129 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
130 { (exit 1); exit 1; }; }
131 fi
132 case $CONFIG_SHELL in
133 '')
134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
135for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136do
137 IFS=$as_save_IFS
138 test -z "$as_dir" && as_dir=.
139 for as_base in sh bash ksh sh5; do
140 case $as_dir in
141 /*)
142 if ("$as_dir/$as_base" -c '
143 as_lineno_1=$LINENO
144 as_lineno_2=$LINENO
145 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
146 test "x$as_lineno_1" != "x$as_lineno_2" &&
147 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
148 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
149 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
150 CONFIG_SHELL=$as_dir/$as_base
151 export CONFIG_SHELL
152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
153 fi;;
154 esac
155 done
156done
157;;
158 esac
159
160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
161 # uniformly replaced by the line number. The first 'sed' inserts a
162 # line-number line before each line; the second 'sed' does the real
163 # work. The second script uses 'N' to pair each line-number line
164 # with the numbered line, and appends trailing '-' during
165 # substitution so that $LINENO is not a special case at line end.
166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
168 sed '=' <$as_myself |
169 sed '
170 N
171 s,$,-,
172 : loop
173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 t loop
175 s,-$,,
176 s,^['$as_cr_digits']*\n,,
177 ' >$as_me.lineno &&
178 chmod +x $as_me.lineno ||
179 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
180 { (exit 1); exit 1; }; }
181
182 # Don't try to exec as it changes $[0], causing all sort of problems
183 # (the dirname of $[0] is not the place where we might find the
184 # original and so on. Autoconf is especially sensible to this).
185 . ./$as_me.lineno
186 # Exit status is that of the last command.
187 exit
188}
189
190
191case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
192 *c*,-n*) ECHO_N= ECHO_C='
193' ECHO_T=' ' ;;
194 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
195 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196esac
197
198if expr a : '\(a\)' >/dev/null 2>&1; then
199 as_expr=expr
200else
201 as_expr=false
202fi
203
204rm -f conf$$ conf$$.exe conf$$.file
205echo >conf$$.file
206if ln -s conf$$.file conf$$ 2>/dev/null; then
207 # We could just check for DJGPP; but this test a) works b) is more generic
208 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
209 if test -f conf$$.exe; then
210 # Don't use ln at all; we don't have any links
211 as_ln_s='cp -p'
212 else
213 as_ln_s='ln -s'
214 fi
215elif ln conf$$.file conf$$ 2>/dev/null; then
216 as_ln_s=ln
217else
218 as_ln_s='cp -p'
219fi
220rm -f conf$$ conf$$.exe conf$$.file
221
222if mkdir -p . 2>/dev/null; then
223 as_mkdir_p=:
224else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000225 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000226 as_mkdir_p=false
227fi
228
229as_executable_p="test -f"
230
231# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000232as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000235as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000236
237
238# IFS
239# We need space, tab and new line, in precisely that order.
240as_nl='
241'
242IFS=" $as_nl"
243
244# CDPATH.
245$as_unset CDPATH
246
John Criswell7a73b802003-06-30 21:59:07 +0000247
John Criswell7a73b802003-06-30 21:59:07 +0000248
249# Check that we are running under the correct shell.
250SHELL=${CONFIG_SHELL-/bin/sh}
251
252case X$ECHO in
253X*--fallback-echo)
254 # Remove one level of quotation (which was required for Make).
255 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 ;;
257esac
258
259echo=${ECHO-echo}
260if test "X$1" = X--no-reexec; then
261 # Discard the --no-reexec flag, and continue.
262 shift
263elif test "X$1" = X--fallback-echo; then
264 # Avoid inline document here, it may be left over
265 :
John Criswell47fdd832003-07-14 16:52:07 +0000266elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000267 # Yippee, $echo works!
268 :
269else
270 # Restart under the correct shell.
271 exec $SHELL "$0" --no-reexec ${1+"$@"}
272fi
273
274if test "X$1" = X--fallback-echo; then
275 # used as fallback echo
276 shift
277 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000278$*
John Criswell7a73b802003-06-30 21:59:07 +0000279EOF
280 exit 0
281fi
282
283# The HP-UX ksh and POSIX shell print the target directory to stdout
284# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000285(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000286
287if test -z "$ECHO"; then
288if test "X${echo_test_string+set}" != Xset; then
289# find a string as large as possible, as long as the shell can cope with it
290 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
291 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
292 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
293 echo_test_string="`eval $cmd`" &&
294 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
295 then
296 break
297 fi
298 done
299fi
300
301if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
302 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
303 test "X$echo_testing_string" = "X$echo_test_string"; then
304 :
305else
306 # The Solaris, AIX, and Digital Unix default echo programs unquote
307 # backslashes. This makes it impossible to quote backslashes using
308 # echo "$something" | sed 's/\\/\\\\/g'
309 #
310 # So, first we look for a working echo in the user's PATH.
311
John Criswell47fdd832003-07-14 16:52:07 +0000312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000313 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000314 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000315 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
316 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
317 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
318 test "X$echo_testing_string" = "X$echo_test_string"; then
319 echo="$dir/echo"
320 break
321 fi
322 done
John Criswell47fdd832003-07-14 16:52:07 +0000323 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000324
325 if test "X$echo" = Xecho; then
326 # We didn't find a better echo, so look for alternatives.
327 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
328 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
329 test "X$echo_testing_string" = "X$echo_test_string"; then
330 # This shell has a builtin print -r that does the trick.
331 echo='print -r'
332 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
333 test "X$CONFIG_SHELL" != X/bin/ksh; then
334 # If we have ksh, try running configure again with it.
335 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
336 export ORIGINAL_CONFIG_SHELL
337 CONFIG_SHELL=/bin/ksh
338 export CONFIG_SHELL
339 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 else
341 # Try using printf.
342 echo='printf %s\n'
343 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
344 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
345 test "X$echo_testing_string" = "X$echo_test_string"; then
346 # Cool, printf works
347 :
348 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
349 test "X$echo_testing_string" = 'X\t' &&
350 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 export CONFIG_SHELL
354 SHELL="$CONFIG_SHELL"
355 export SHELL
356 echo="$CONFIG_SHELL $0 --fallback-echo"
357 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
358 test "X$echo_testing_string" = 'X\t' &&
359 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
360 test "X$echo_testing_string" = "X$echo_test_string"; then
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 else
363 # maybe with a smaller string...
364 prev=:
365
366 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
367 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
368 then
369 break
370 fi
371 prev="$cmd"
372 done
373
374 if test "$prev" != 'sed 50q "$0"'; then
375 echo_test_string=`eval $prev`
376 export echo_test_string
377 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 else
379 # Oops. We lost completely, so just stick with echo.
380 echo=echo
381 fi
382 fi
383 fi
384 fi
385fi
386fi
387
388# Copy echo and quote the copy suitably for passing to libtool from
389# the Makefile, instead of quoting the original, which is used later.
390ECHO=$echo
391if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
392 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
393fi
394
395
396
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000399
Reid Spencer2706f8c2004-09-19 23:53:36 +0000400tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000401
John Criswell7a73b802003-06-30 21:59:07 +0000402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000413ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete. It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000426PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000427PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000428PACKAGE_VERSION='1.4'
Reid Spencerabec8f92004-10-27 23:03:44 +0000429PACKAGE_STRING='llvm 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000430PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
431
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000432ac_unique_file="lib/VMCore/Module.cpp"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000433ac_subdirs_all="$ac_subdirs_all projects/sample"
434ac_subdirs_all="$ac_subdirs_all projects/Stacker"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Reid Spencer641f7ef2004-09-20 22:14:56 +0000438ac_subdirs_all="$ac_subdirs_all projects/Java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000439ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
440ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
John Criswelle96aa1c2004-10-28 13:35:00 +0000441ac_subdirs_all="$ac_subdirs_all projects/poolalloc"
John Criswell7a73b802003-06-30 21:59:07 +0000442# Factoring default headers for most tests.
443ac_includes_default="\
444#include <stdio.h>
445#if HAVE_SYS_TYPES_H
446# include <sys/types.h>
447#endif
448#if HAVE_SYS_STAT_H
449# include <sys/stat.h>
450#endif
451#if STDC_HEADERS
452# include <stdlib.h>
453# include <stddef.h>
454#else
455# if HAVE_STDLIB_H
456# include <stdlib.h>
457# endif
458#endif
459#if HAVE_STRING_H
460# if !STDC_HEADERS && HAVE_MEMORY_H
461# include <memory.h>
462# endif
463# include <string.h>
464#endif
465#if HAVE_STRINGS_H
466# include <strings.h>
467#endif
468#if HAVE_INTTYPES_H
469# include <inttypes.h>
470#else
471# if HAVE_STDINT_H
472# include <stdint.h>
473# endif
474#endif
475#if HAVE_UNISTD_H
476# include <unistd.h>
477#endif"
478
Reid Spencer2bc7bd52004-11-29 12:29:58 +0000479ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS LLVM_COPYRIGHT subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS ARCH ENDIAN CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT ENABLE_OPTIMIZED JIT ENABLE_DOXYGEN LLVMGCCDIR CPP CXX CXXFLAGS ac_ct_CXX LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON ifGNUmake LN_S DATE FIND GREP MKDIR MV PAX RANLIB ac_ct_RANLIB RM SED TAR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA BZIP2 DOT DOXYGEN ETAGS GROFF GZIP POD2HTML POD2MAN PYTHON QMTEST RUNTEST ZIP EGREP INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ETAGSFLAGS ALLOCA MMAP_FILE LLVMGCC LLVMCC1 LLVMCC1PLUS SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000480ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000481
482# Initialize some variables set by options.
483ac_init_help=
484ac_init_version=false
485# The variables have the same names as the options, with
486# dashes changed to underlines.
487cache_file=/dev/null
488exec_prefix=NONE
489no_create=
490no_recursion=
491prefix=NONE
492program_prefix=NONE
493program_suffix=NONE
494program_transform_name=s,x,x,
495silent=
496site=
497srcdir=
498verbose=
499x_includes=NONE
500x_libraries=NONE
501
502# Installation directory options.
503# These are left unexpanded so users can "make install exec_prefix=/foo"
504# and all the variables that are supposed to be based on exec_prefix
505# by default will actually change.
506# Use braces instead of parens because sh, perl, etc. also accept them.
507bindir='${exec_prefix}/bin'
508sbindir='${exec_prefix}/sbin'
509libexecdir='${exec_prefix}/libexec'
510datadir='${prefix}/share'
511sysconfdir='${prefix}/etc'
512sharedstatedir='${prefix}/com'
513localstatedir='${prefix}/var'
514libdir='${exec_prefix}/lib'
515includedir='${prefix}/include'
516oldincludedir='/usr/include'
517infodir='${prefix}/info'
518mandir='${prefix}/man'
519
520ac_prev=
521for ac_option
522do
523 # If the previous option needs an argument, assign it.
524 if test -n "$ac_prev"; then
525 eval "$ac_prev=\$ac_option"
526 ac_prev=
527 continue
528 fi
529
530 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
531
532 # Accept the important Cygnus configure options, so we can diagnose typos.
533
534 case $ac_option in
535
536 -bindir | --bindir | --bindi | --bind | --bin | --bi)
537 ac_prev=bindir ;;
538 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
539 bindir=$ac_optarg ;;
540
541 -build | --build | --buil | --bui | --bu)
542 ac_prev=build_alias ;;
543 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
544 build_alias=$ac_optarg ;;
545
546 -cache-file | --cache-file | --cache-fil | --cache-fi \
547 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
548 ac_prev=cache_file ;;
549 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
550 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
551 cache_file=$ac_optarg ;;
552
553 --config-cache | -C)
554 cache_file=config.cache ;;
555
556 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
557 ac_prev=datadir ;;
558 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
559 | --da=*)
560 datadir=$ac_optarg ;;
561
562 -disable-* | --disable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 eval "enable_$ac_feature=no" ;;
570
571 -enable-* | --enable-*)
572 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
573 # Reject names that are not valid shell variable names.
574 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
576 { (exit 1); exit 1; }; }
577 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
578 case $ac_option in
579 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
580 *) ac_optarg=yes ;;
581 esac
582 eval "enable_$ac_feature='$ac_optarg'" ;;
583
584 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
585 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
586 | --exec | --exe | --ex)
587 ac_prev=exec_prefix ;;
588 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
589 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
590 | --exec=* | --exe=* | --ex=*)
591 exec_prefix=$ac_optarg ;;
592
593 -gas | --gas | --ga | --g)
594 # Obsolete; use --with-gas.
595 with_gas=yes ;;
596
597 -help | --help | --hel | --he | -h)
598 ac_init_help=long ;;
599 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
600 ac_init_help=recursive ;;
601 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
602 ac_init_help=short ;;
603
604 -host | --host | --hos | --ho)
605 ac_prev=host_alias ;;
606 -host=* | --host=* | --hos=* | --ho=*)
607 host_alias=$ac_optarg ;;
608
609 -includedir | --includedir | --includedi | --included | --include \
610 | --includ | --inclu | --incl | --inc)
611 ac_prev=includedir ;;
612 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
613 | --includ=* | --inclu=* | --incl=* | --inc=*)
614 includedir=$ac_optarg ;;
615
616 -infodir | --infodir | --infodi | --infod | --info | --inf)
617 ac_prev=infodir ;;
618 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
619 infodir=$ac_optarg ;;
620
621 -libdir | --libdir | --libdi | --libd)
622 ac_prev=libdir ;;
623 -libdir=* | --libdir=* | --libdi=* | --libd=*)
624 libdir=$ac_optarg ;;
625
626 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
627 | --libexe | --libex | --libe)
628 ac_prev=libexecdir ;;
629 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
630 | --libexe=* | --libex=* | --libe=*)
631 libexecdir=$ac_optarg ;;
632
633 -localstatedir | --localstatedir | --localstatedi | --localstated \
634 | --localstate | --localstat | --localsta | --localst \
635 | --locals | --local | --loca | --loc | --lo)
636 ac_prev=localstatedir ;;
637 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
638 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
639 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
640 localstatedir=$ac_optarg ;;
641
642 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
643 ac_prev=mandir ;;
644 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
645 mandir=$ac_optarg ;;
646
647 -nfp | --nfp | --nf)
648 # Obsolete; use --without-fp.
649 with_fp=no ;;
650
651 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
652 | --no-cr | --no-c | -n)
653 no_create=yes ;;
654
655 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
656 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
657 no_recursion=yes ;;
658
659 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
660 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
661 | --oldin | --oldi | --old | --ol | --o)
662 ac_prev=oldincludedir ;;
663 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
664 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
665 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
666 oldincludedir=$ac_optarg ;;
667
668 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
669 ac_prev=prefix ;;
670 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
671 prefix=$ac_optarg ;;
672
673 -program-prefix | --program-prefix | --program-prefi | --program-pref \
674 | --program-pre | --program-pr | --program-p)
675 ac_prev=program_prefix ;;
676 -program-prefix=* | --program-prefix=* | --program-prefi=* \
677 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
678 program_prefix=$ac_optarg ;;
679
680 -program-suffix | --program-suffix | --program-suffi | --program-suff \
681 | --program-suf | --program-su | --program-s)
682 ac_prev=program_suffix ;;
683 -program-suffix=* | --program-suffix=* | --program-suffi=* \
684 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
685 program_suffix=$ac_optarg ;;
686
687 -program-transform-name | --program-transform-name \
688 | --program-transform-nam | --program-transform-na \
689 | --program-transform-n | --program-transform- \
690 | --program-transform | --program-transfor \
691 | --program-transfo | --program-transf \
692 | --program-trans | --program-tran \
693 | --progr-tra | --program-tr | --program-t)
694 ac_prev=program_transform_name ;;
695 -program-transform-name=* | --program-transform-name=* \
696 | --program-transform-nam=* | --program-transform-na=* \
697 | --program-transform-n=* | --program-transform-=* \
698 | --program-transform=* | --program-transfor=* \
699 | --program-transfo=* | --program-transf=* \
700 | --program-trans=* | --program-tran=* \
701 | --progr-tra=* | --program-tr=* | --program-t=*)
702 program_transform_name=$ac_optarg ;;
703
704 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
705 | -silent | --silent | --silen | --sile | --sil)
706 silent=yes ;;
707
708 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
709 ac_prev=sbindir ;;
710 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
711 | --sbi=* | --sb=*)
712 sbindir=$ac_optarg ;;
713
714 -sharedstatedir | --sharedstatedir | --sharedstatedi \
715 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
716 | --sharedst | --shareds | --shared | --share | --shar \
717 | --sha | --sh)
718 ac_prev=sharedstatedir ;;
719 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
720 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
721 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
722 | --sha=* | --sh=*)
723 sharedstatedir=$ac_optarg ;;
724
725 -site | --site | --sit)
726 ac_prev=site ;;
727 -site=* | --site=* | --sit=*)
728 site=$ac_optarg ;;
729
730 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
731 ac_prev=srcdir ;;
732 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
733 srcdir=$ac_optarg ;;
734
735 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
736 | --syscon | --sysco | --sysc | --sys | --sy)
737 ac_prev=sysconfdir ;;
738 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
739 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
740 sysconfdir=$ac_optarg ;;
741
742 -target | --target | --targe | --targ | --tar | --ta | --t)
743 ac_prev=target_alias ;;
744 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
745 target_alias=$ac_optarg ;;
746
747 -v | -verbose | --verbose | --verbos | --verbo | --verb)
748 verbose=yes ;;
749
750 -version | --version | --versio | --versi | --vers | -V)
751 ac_init_version=: ;;
752
753 -with-* | --with-*)
754 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package| sed 's/-/_/g'`
760 case $ac_option in
761 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
762 *) ac_optarg=yes ;;
763 esac
764 eval "with_$ac_package='$ac_optarg'" ;;
765
766 -without-* | --without-*)
767 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package | sed 's/-/_/g'`
773 eval "with_$ac_package=no" ;;
774
775 --x)
776 # Obsolete; use --with-x.
777 with_x=yes ;;
778
779 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
780 | --x-incl | --x-inc | --x-in | --x-i)
781 ac_prev=x_includes ;;
782 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
783 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
784 x_includes=$ac_optarg ;;
785
786 -x-libraries | --x-libraries | --x-librarie | --x-librari \
787 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
788 ac_prev=x_libraries ;;
789 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
790 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
791 x_libraries=$ac_optarg ;;
792
793 -*) { echo "$as_me: error: unrecognized option: $ac_option
794Try \`$0 --help' for more information." >&2
795 { (exit 1); exit 1; }; }
796 ;;
797
798 *=*)
799 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
800 # Reject names that are not valid shell variable names.
801 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
802 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
803 { (exit 1); exit 1; }; }
804 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
805 eval "$ac_envvar='$ac_optarg'"
806 export $ac_envvar ;;
807
808 *)
809 # FIXME: should be removed in autoconf 3.0.
810 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
811 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
812 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
813 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
814 ;;
815
816 esac
817done
818
819if test -n "$ac_prev"; then
820 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
821 { echo "$as_me: error: missing argument to $ac_option" >&2
822 { (exit 1); exit 1; }; }
823fi
824
825# Be sure to have absolute paths.
826for ac_var in exec_prefix prefix
827do
828 eval ac_val=$`echo $ac_var`
829 case $ac_val in
830 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
833 esac
834done
835
836# Be sure to have absolute paths.
837for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000838 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000839do
840 eval ac_val=$`echo $ac_var`
841 case $ac_val in
842 [\\/$]* | ?:[\\/]* ) ;;
843 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
844 { (exit 1); exit 1; }; };;
845 esac
846done
847
848# There might be people who depend on the old broken behavior: `$host'
849# used to hold the argument of --host etc.
850# FIXME: To remove some day.
851build=$build_alias
852host=$host_alias
853target=$target_alias
854
855# FIXME: To remove some day.
856if test "x$host_alias" != x; then
857 if test "x$build_alias" = x; then
858 cross_compiling=maybe
859 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
860 If a cross compiler is detected then cross compile mode will be used." >&2
861 elif test "x$build_alias" != "x$host_alias"; then
862 cross_compiling=yes
863 fi
864fi
865
866ac_tool_prefix=
867test -n "$host_alias" && ac_tool_prefix=$host_alias-
868
869test "$silent" = yes && exec 6>/dev/null
870
871
872# Find the source files, if location was not specified.
873if test -z "$srcdir"; then
874 ac_srcdir_defaulted=yes
875 # Try the directory containing this script, then its parent.
876 ac_confdir=`(dirname "$0") 2>/dev/null ||
877$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000878 X"$0" : 'X\(//\)[^/]' \| \
879 X"$0" : 'X\(//\)$' \| \
880 X"$0" : 'X\(/\)' \| \
881 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000882echo X"$0" |
883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
884 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
885 /^X\(\/\/\)$/{ s//\1/; q; }
886 /^X\(\/\).*/{ s//\1/; q; }
887 s/.*/./; q'`
888 srcdir=$ac_confdir
889 if test ! -r $srcdir/$ac_unique_file; then
890 srcdir=..
891 fi
892else
893 ac_srcdir_defaulted=no
894fi
895if test ! -r $srcdir/$ac_unique_file; then
896 if test "$ac_srcdir_defaulted" = yes; then
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
898 { (exit 1); exit 1; }; }
899 else
900 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
901 { (exit 1); exit 1; }; }
902 fi
903fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000904(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
905 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
906 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000907srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
908ac_env_build_alias_set=${build_alias+set}
909ac_env_build_alias_value=$build_alias
910ac_cv_env_build_alias_set=${build_alias+set}
911ac_cv_env_build_alias_value=$build_alias
912ac_env_host_alias_set=${host_alias+set}
913ac_env_host_alias_value=$host_alias
914ac_cv_env_host_alias_set=${host_alias+set}
915ac_cv_env_host_alias_value=$host_alias
916ac_env_target_alias_set=${target_alias+set}
917ac_env_target_alias_value=$target_alias
918ac_cv_env_target_alias_set=${target_alias+set}
919ac_cv_env_target_alias_value=$target_alias
John Criswell7a73b802003-06-30 21:59:07 +0000920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
Reid Spencer5e1d9a52004-11-25 04:51:04 +0000940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
John Criswell47fdd832003-07-14 16:52:07 +0000948ac_env_CXXCPP_set=${CXXCPP+set}
949ac_env_CXXCPP_value=$CXXCPP
950ac_cv_env_CXXCPP_set=${CXXCPP+set}
951ac_cv_env_CXXCPP_value=$CXXCPP
952ac_env_F77_set=${F77+set}
953ac_env_F77_value=$F77
954ac_cv_env_F77_set=${F77+set}
955ac_cv_env_F77_value=$F77
956ac_env_FFLAGS_set=${FFLAGS+set}
957ac_env_FFLAGS_value=$FFLAGS
958ac_cv_env_FFLAGS_set=${FFLAGS+set}
959ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000960
961#
962# Report the --help message.
963#
964if test "$ac_init_help" = "long"; then
965 # Omit some internal or obsolete options to make the list less imposing.
966 # This message is too long to be a string in the A/UX 3.1 sh.
967 cat <<_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +0000968\`configure' configures llvm 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000969
970Usage: $0 [OPTION]... [VAR=VALUE]...
971
972To assign environment variables (e.g., CC, CFLAGS...), specify them as
973VAR=VALUE. See below for descriptions of some of the useful variables.
974
975Defaults for the options are specified in brackets.
976
977Configuration:
978 -h, --help display this help and exit
979 --help=short display options specific to this package
980 --help=recursive display the short help of all the included packages
981 -V, --version display version information and exit
982 -q, --quiet, --silent do not print \`checking...' messages
983 --cache-file=FILE cache test results in FILE [disabled]
984 -C, --config-cache alias for \`--cache-file=config.cache'
985 -n, --no-create do not create output files
986 --srcdir=DIR find the sources in DIR [configure dir or \`..']
987
988_ACEOF
989
990 cat <<_ACEOF
991Installation directories:
992 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000993 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000994 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000995 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000996
997By default, \`make install' will install all the files in
998\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
999an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1000for instance \`--prefix=\$HOME'.
1001
1002For better control, use the options below.
1003
1004Fine tuning of the installation directories:
1005 --bindir=DIR user executables [EPREFIX/bin]
1006 --sbindir=DIR system admin executables [EPREFIX/sbin]
1007 --libexecdir=DIR program executables [EPREFIX/libexec]
1008 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1009 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1010 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1011 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1012 --libdir=DIR object code libraries [EPREFIX/lib]
1013 --includedir=DIR C header files [PREFIX/include]
1014 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1015 --infodir=DIR info documentation [PREFIX/info]
1016 --mandir=DIR man documentation [PREFIX/man]
1017_ACEOF
1018
1019 cat <<\_ACEOF
1020
1021System types:
1022 --build=BUILD configure for building on BUILD [guessed]
1023 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 --target=TARGET configure for building compilers for TARGET [HOST]
1025_ACEOF
1026fi
1027
1028if test -n "$ac_init_help"; then
1029 case $ac_init_help in
Reid Spencerabec8f92004-10-27 23:03:44 +00001030 short | recursive ) echo "Configuration of llvm 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001031 esac
1032 cat <<\_ACEOF
1033
1034Optional Features:
1035 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1036 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001037 --enable-optimized
1038 --enable-jit Enable Just In Time Compiling (default is YES)
Reid Spencer1f319422004-11-29 04:56:35 +00001039 --enable-doxygen Build doxygen documentation (default is NO)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00001040 --enable-ltdl-install install libltdl
John Criswell47fdd832003-07-14 16:52:07 +00001041 --enable-shared[=PKGS]
1042 build shared libraries [default=yes]
1043 --enable-static[=PKGS]
1044 build static libraries [default=yes]
1045 --enable-fast-install[=PKGS]
1046 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001047 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001048
1049Optional Packages:
1050 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1051 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001052 --with-llvmgccdir Location of LLVM GCC front-end
John Criswell47fdd832003-07-14 16:52:07 +00001053 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1054 --with-pic try to use only PIC/non-PIC objects [default=use
1055 both]
1056 --with-tags[=TAGS]
1057 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001058
1059Some influential environment variables:
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001060 CC C compiler command
1061 CFLAGS C compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1063 nonstandard directory <lib dir>
1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065 headers in a nonstandard directory <include dir>
John Criswell7a73b802003-06-30 21:59:07 +00001066 CPP C preprocessor
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001067 CXX C++ compiler command
1068 CXXFLAGS C++ compiler flags
John Criswell47fdd832003-07-14 16:52:07 +00001069 CXXCPP C++ preprocessor
1070 F77 Fortran 77 compiler command
1071 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001072
1073Use these variables to override the choices made by `configure' or to help
1074it to find libraries and programs with nonstandard names/locations.
1075
1076Report bugs to <llvmbugs@cs.uiuc.edu>.
1077_ACEOF
1078fi
1079
1080if test "$ac_init_help" = "recursive"; then
1081 # If there are subdirs, report their specific --help.
1082 ac_popdir=`pwd`
1083 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084 test -d $ac_dir || continue
1085 ac_builddir=.
1086
1087if test "$ac_dir" != .; then
1088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089 # A "../" for each directory in $ac_dir_suffix.
1090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091else
1092 ac_dir_suffix= ac_top_builddir=
1093fi
1094
1095case $srcdir in
1096 .) # No --srcdir option. We are building in place.
1097 ac_srcdir=.
1098 if test -z "$ac_top_builddir"; then
1099 ac_top_srcdir=.
1100 else
1101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102 fi ;;
1103 [\\/]* | ?:[\\/]* ) # Absolute path.
1104 ac_srcdir=$srcdir$ac_dir_suffix;
1105 ac_top_srcdir=$srcdir ;;
1106 *) # Relative path.
1107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001110
1111# Do not use `cd foo && pwd` to compute absolute paths, because
1112# the directories may not exist.
1113case `pwd` in
1114.) ac_abs_builddir="$ac_dir";;
1115*)
1116 case "$ac_dir" in
1117 .) ac_abs_builddir=`pwd`;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1120 esac;;
1121esac
1122case $ac_abs_builddir in
1123.) ac_abs_top_builddir=${ac_top_builddir}.;;
1124*)
1125 case ${ac_top_builddir}. in
1126 .) ac_abs_top_builddir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129 esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_srcdir=$ac_srcdir;;
1133*)
1134 case $ac_srcdir in
1135 .) ac_abs_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138 esac;;
1139esac
1140case $ac_abs_builddir in
1141.) ac_abs_top_srcdir=$ac_top_srcdir;;
1142*)
1143 case $ac_top_srcdir in
1144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 esac;;
1148esac
John Criswell7a73b802003-06-30 21:59:07 +00001149
1150 cd $ac_dir
1151 # Check for guested configure; otherwise get Cygnus style configure.
1152 if test -f $ac_srcdir/configure.gnu; then
1153 echo
1154 $SHELL $ac_srcdir/configure.gnu --help=recursive
1155 elif test -f $ac_srcdir/configure; then
1156 echo
1157 $SHELL $ac_srcdir/configure --help=recursive
1158 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001159 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001160 echo
1161 $ac_configure --help
1162 else
1163 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1164 fi
1165 cd $ac_popdir
1166 done
1167fi
1168
1169test -n "$ac_init_help" && exit 0
1170if $ac_init_version; then
1171 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001172llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001173generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001174
Reid Spencer2706f8c2004-09-19 23:53:36 +00001175Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001176This configure script is free software; the Free Software Foundation
1177gives unlimited permission to copy, distribute and modify it.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001178
1179$LLVM_COPYRIGHT
John Criswell7a73b802003-06-30 21:59:07 +00001180_ACEOF
1181 exit 0
1182fi
1183exec 5>config.log
1184cat >&5 <<_ACEOF
1185This file contains any messages produced by compilers while
1186running configure, to aid debugging if configure makes a mistake.
1187
Reid Spencerabec8f92004-10-27 23:03:44 +00001188It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001189generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001190
1191 $ $0 $@
1192
1193_ACEOF
1194{
1195cat <<_ASUNAME
1196## --------- ##
1197## Platform. ##
1198## --------- ##
1199
1200hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1201uname -m = `(uname -m) 2>/dev/null || echo unknown`
1202uname -r = `(uname -r) 2>/dev/null || echo unknown`
1203uname -s = `(uname -s) 2>/dev/null || echo unknown`
1204uname -v = `(uname -v) 2>/dev/null || echo unknown`
1205
1206/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1207/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1208
1209/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1210/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1211/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1212hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1213/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1214/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1215/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1216
1217_ASUNAME
1218
1219as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1220for as_dir in $PATH
1221do
1222 IFS=$as_save_IFS
1223 test -z "$as_dir" && as_dir=.
1224 echo "PATH: $as_dir"
1225done
1226
1227} >&5
1228
1229cat >&5 <<_ACEOF
1230
1231
1232## ----------- ##
1233## Core tests. ##
1234## ----------- ##
1235
1236_ACEOF
1237
1238
1239# Keep a trace of the command line.
1240# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001241# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001242# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001243# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001244ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001245ac_configure_args0=
1246ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001247ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001248ac_must_keep_next=false
1249for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001250do
John Criswell0c38eaf2003-09-10 15:17:25 +00001251 for ac_arg
1252 do
1253 case $ac_arg in
1254 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1255 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1256 | -silent | --silent | --silen | --sile | --sil)
1257 continue ;;
1258 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1260 esac
1261 case $ac_pass in
1262 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1263 2)
1264 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1265 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001266 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001267 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001268 case $ac_arg in
1269 *=* | --config-cache | -C | -disable-* | --disable-* \
1270 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1271 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1272 | -with-* | --with-* | -without-* | --without-* | --x)
1273 case "$ac_configure_args0 " in
1274 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1275 esac
1276 ;;
1277 -* ) ac_must_keep_next=true ;;
1278 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001279 fi
1280 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1281 # Get rid of the leading space.
1282 ac_sep=" "
1283 ;;
1284 esac
1285 done
John Criswell7a73b802003-06-30 21:59:07 +00001286done
John Criswell0c38eaf2003-09-10 15:17:25 +00001287$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1288$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
John Criswell7a73b802003-06-30 21:59:07 +00001289
1290# When interrupted or exit'd, cleanup temporary files, and complete
1291# config.log. We remove comments because anyway the quotes in there
1292# would cause problems or look ugly.
1293# WARNING: Be sure not to use single quotes in there, as some shells,
1294# such as our DU 5.0 friend, will then `close' the trap.
1295trap 'exit_status=$?
1296 # Save into config.log some information that might help in debugging.
1297 {
1298 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001299
John Criswell7a73b802003-06-30 21:59:07 +00001300 cat <<\_ASBOX
1301## ---------------- ##
1302## Cache variables. ##
1303## ---------------- ##
1304_ASBOX
1305 echo
1306 # The following way of writing the cache mishandles newlines in values,
1307{
1308 (set) 2>&1 |
1309 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1310 *ac_space=\ *)
1311 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001312 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1313 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001314 ;;
1315 *)
1316 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001317 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001318 ;;
1319 esac;
1320}
1321 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001322
1323 cat <<\_ASBOX
1324## ----------------- ##
1325## Output variables. ##
1326## ----------------- ##
1327_ASBOX
1328 echo
1329 for ac_var in $ac_subst_vars
1330 do
1331 eval ac_val=$`echo $ac_var`
1332 echo "$ac_var='"'"'$ac_val'"'"'"
1333 done | sort
1334 echo
1335
1336 if test -n "$ac_subst_files"; then
1337 cat <<\_ASBOX
1338## ------------- ##
1339## Output files. ##
1340## ------------- ##
1341_ASBOX
1342 echo
1343 for ac_var in $ac_subst_files
1344 do
1345 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001346 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001347 done | sort
1348 echo
1349 fi
1350
John Criswell7a73b802003-06-30 21:59:07 +00001351 if test -s confdefs.h; then
1352 cat <<\_ASBOX
1353## ----------- ##
1354## confdefs.h. ##
1355## ----------- ##
1356_ASBOX
1357 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001358 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001359 echo
1360 fi
1361 test "$ac_signal" != 0 &&
1362 echo "$as_me: caught signal $ac_signal"
1363 echo "$as_me: exit $exit_status"
1364 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001365 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001366 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1367 exit $exit_status
1368 ' 0
1369for ac_signal in 1 2 13 15; do
1370 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1371done
1372ac_signal=0
1373
1374# confdefs.h avoids OS command line length limits that DEFS can exceed.
1375rm -rf conftest* confdefs.h
1376# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1377echo >confdefs.h
1378
1379# Predefined preprocessor variables.
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_NAME "$PACKAGE_NAME"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_VERSION "$PACKAGE_VERSION"
1393_ACEOF
1394
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_STRING "$PACKAGE_STRING"
1398_ACEOF
1399
1400
1401cat >>confdefs.h <<_ACEOF
1402#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1403_ACEOF
1404
1405
1406# Let the site file select an alternate cache file if it wants to.
1407# Prefer explicitly selected file to automatically selected ones.
1408if test -z "$CONFIG_SITE"; then
1409 if test "x$prefix" != xNONE; then
1410 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1411 else
1412 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1413 fi
1414fi
1415for ac_site_file in $CONFIG_SITE; do
1416 if test -r "$ac_site_file"; then
1417 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1418echo "$as_me: loading site script $ac_site_file" >&6;}
1419 sed 's/^/| /' "$ac_site_file" >&5
1420 . "$ac_site_file"
1421 fi
1422done
1423
1424if test -r "$cache_file"; then
1425 # Some versions of bash will fail to source /dev/null (special
1426 # files actually), so we avoid doing that.
1427 if test -f "$cache_file"; then
1428 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1429echo "$as_me: loading cache $cache_file" >&6;}
1430 case $cache_file in
1431 [\\/]* | ?:[\\/]* ) . $cache_file;;
1432 *) . ./$cache_file;;
1433 esac
1434 fi
1435else
1436 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1437echo "$as_me: creating cache $cache_file" >&6;}
1438 >$cache_file
1439fi
1440
1441# Check that the precious variables saved in the cache have kept the same
1442# value.
1443ac_cache_corrupted=false
1444for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001445 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1447 eval ac_new_set=\$ac_env_${ac_var}_set
1448 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1449 eval ac_new_val="\$ac_env_${ac_var}_value"
1450 case $ac_old_set,$ac_new_set in
1451 set,)
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1453echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1455 ,set)
1456 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1457echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1458 ac_cache_corrupted=: ;;
1459 ,);;
1460 *)
1461 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001462 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001463echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001464 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001465echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001466 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001467echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001468 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001469 fi;;
1470 esac
1471 # Pass precious variables to config.status.
1472 if test "$ac_new_set" = set; then
1473 case $ac_new_val in
1474 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1475 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1476 *) ac_arg=$ac_var=$ac_new_val ;;
1477 esac
1478 case " $ac_configure_args " in
1479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1480 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1481 esac
1482 fi
1483done
1484if $ac_cache_corrupted; then
1485 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1486echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1487 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1488echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1489 { (exit 1); exit 1; }; }
1490fi
1491
1492ac_ext=c
1493ac_cpp='$CPP $CPPFLAGS'
1494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1496ac_compiler_gnu=$ac_cv_c_compiler_gnu
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
John Criswell0c38eaf2003-09-10 15:17:25 +00001524
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001525LLVM_COPYRIGHT="Copyright (c) 2003-2005 U University of Illinois at Urbana-Champaign."
1526
1527
1528
1529
1530
1531
1532
John Criswell7a73b802003-06-30 21:59:07 +00001533ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001534for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001535 if test -f $ac_dir/install-sh; then
1536 ac_aux_dir=$ac_dir
1537 ac_install_sh="$ac_aux_dir/install-sh -c"
1538 break
1539 elif test -f $ac_dir/install.sh; then
1540 ac_aux_dir=$ac_dir
1541 ac_install_sh="$ac_aux_dir/install.sh -c"
1542 break
1543 elif test -f $ac_dir/shtool; then
1544 ac_aux_dir=$ac_dir
1545 ac_install_sh="$ac_aux_dir/shtool install -c"
1546 break
1547 fi
1548done
1549if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001550 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1551echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001552 { (exit 1); exit 1; }; }
1553fi
1554ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1555ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1556ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1557
John Criswell392aaa32003-07-22 19:18:09 +00001558
Reid Spencer2706f8c2004-09-19 23:53:36 +00001559if test ${srcdir} != "." ; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001560 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1561 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001562echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1563 { (exit 1); exit 1; }; }
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001564 fi
John Criswell93e1c722003-09-15 17:04:06 +00001565fi
1566
John Criswell33a911a2003-11-25 20:36:46 +00001567for i in `ls ${srcdir}/projects`
1568do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001569 if test -d ${srcdir}/projects/${i} ; then
1570 case ${i} in
1571 "CVS") ;;
1572 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001573
Reid Spencer4d68ba22004-09-07 16:35:45 +00001574subdirs="$subdirs projects/sample"
1575 ;;
1576 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001577
Reid Spencer4d68ba22004-09-07 16:35:45 +00001578subdirs="$subdirs projects/Stacker"
1579 ;;
1580 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001581
Reid Spencer4d68ba22004-09-07 16:35:45 +00001582subdirs="$subdirs projects/llvm-test"
1583 ;;
1584 "llvm-reopt")
1585
1586subdirs="$subdirs projects/llvm-reopt"
1587;;
1588 "llvm-gcc")
1589
1590subdirs="$subdirs projects/llvm-gcc"
1591 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001592 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001593
Reid Spencer641f7ef2004-09-20 22:14:56 +00001594subdirs="$subdirs projects/Java"
1595 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001596 "llvm-tv")
1597
1598subdirs="$subdirs projects/llvm-tv"
1599 ;;
1600 "llvm-fefw")
1601
1602subdirs="$subdirs projects/llvm-fefw"
1603 ;;
John Criswelle96aa1c2004-10-28 13:35:00 +00001604 "poolalloc")
1605
1606subdirs="$subdirs projects/poolalloc"
1607 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001608 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001609 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1610echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001611 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001612 esac
John Criswell33a911a2003-11-25 20:36:46 +00001613 fi
1614done
John Criswell559a6c12003-09-30 16:31:48 +00001615
John Criswell7a73b802003-06-30 21:59:07 +00001616
1617# Make sure we can run config.sub.
1618$ac_config_sub sun4 >/dev/null 2>&1 ||
1619 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1620echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1621 { (exit 1); exit 1; }; }
1622
1623echo "$as_me:$LINENO: checking build system type" >&5
1624echo $ECHO_N "checking build system type... $ECHO_C" >&6
1625if test "${ac_cv_build+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 ac_cv_build_alias=$build_alias
1629test -z "$ac_cv_build_alias" &&
1630 ac_cv_build_alias=`$ac_config_guess`
1631test -z "$ac_cv_build_alias" &&
1632 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1633echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1634 { (exit 1); exit 1; }; }
1635ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1636 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1637echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1638 { (exit 1); exit 1; }; }
1639
1640fi
1641echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1642echo "${ECHO_T}$ac_cv_build" >&6
1643build=$ac_cv_build
1644build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1645build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1646build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1647
1648
1649echo "$as_me:$LINENO: checking host system type" >&5
1650echo $ECHO_N "checking host system type... $ECHO_C" >&6
1651if test "${ac_cv_host+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654 ac_cv_host_alias=$host_alias
1655test -z "$ac_cv_host_alias" &&
1656 ac_cv_host_alias=$ac_cv_build_alias
1657ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1658 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1659echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1660 { (exit 1); exit 1; }; }
1661
1662fi
1663echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1664echo "${ECHO_T}$ac_cv_host" >&6
1665host=$ac_cv_host
1666host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1667host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1668host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1669
1670
1671echo "$as_me:$LINENO: checking target system type" >&5
1672echo $ECHO_N "checking target system type... $ECHO_C" >&6
1673if test "${ac_cv_target+set}" = set; then
1674 echo $ECHO_N "(cached) $ECHO_C" >&6
1675else
1676 ac_cv_target_alias=$target_alias
1677test "x$ac_cv_target_alias" = "x" &&
1678 ac_cv_target_alias=$ac_cv_host_alias
1679ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1680 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1681echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1682 { (exit 1); exit 1; }; }
1683
1684fi
1685echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1686echo "${ECHO_T}$ac_cv_target" >&6
1687target=$ac_cv_target
1688target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1689target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1690target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1691
1692
1693# The aliases save the names the user supplied, while $host etc.
1694# will get canonicalized.
1695test -n "$target_alias" &&
1696 test "$program_prefix$program_suffix$program_transform_name" = \
1697 NONENONEs,x,x, &&
1698 program_prefix=${target_alias}-
1699
Reid Spencer73fb5482004-08-31 14:20:36 +00001700echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1701echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001702if test "${llvm_cv_platform_type+set}" = set; then
1703 echo $ECHO_N "(cached) $ECHO_C" >&6
1704else
1705 case $build in
1706 *-*-aix*) llvm_cv_platform_type="AIX" ;;
1707 *-*-cygwin*) llvm_cv_platform_type="Cygwin" ;;
1708 *-*-darwin*) llvm_cv_platform_type="Darwin" ;;
1709 *-*-freebsd*) llvm_cv_platform_type="FreeBSD" ;;
1710 *-*-interix*) llvm_cv_platform_type="Interix" ;;
1711 *-*-linux*) llvm_cv_platform_type="Linux" ;;
1712 *-*-solaris*) llvm_cv_platform_type="SunOS" ;;
1713 *-*-win32*) llvm_cv_platform_type="Win32" ;;
1714 *-*-mingw*) llvm_cv_platform_type="Win32" ;;
1715 *) llvm_cv_platform_type="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001716esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001717fi
1718echo "$as_me:$LINENO: result: $llvm_cv_platform_type" >&5
1719echo "${ECHO_T}$llvm_cv_platform_type" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001720
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001721if test "$llvm_cv_platform_type" = "Unknown" ; then
1722 { { echo "$as_me:$LINENO: error: Operating system platform is unknown, configure can't continue" >&5
1723echo "$as_me: error: Operating system platform is unknown, configure can't continue" >&2;}
Reid Spencer886e9512004-08-31 01:34:10 +00001724 { (exit 1); exit 1; }; }
1725fi
1726
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001727OS=$llvm_cv_platform_type
1728
1729
Reid Spenceredd01b92004-11-25 06:03:14 +00001730 ac_config_links="$ac_config_links lib/System/platform:lib/System/$llvm_cv_platform_type"
Reid Spencerde8c47f2004-08-29 19:35:28 +00001731
1732
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001733case $target in
1734 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
1735
1736 ;;
1737esac
Reid Spencer73fb5482004-08-31 14:20:36 +00001738
1739echo "$as_me:$LINENO: checking target architecture" >&5
1740echo $ECHO_N "checking target architecture... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001741if test "${llvm_cv_target_arch+set}" = set; then
1742 echo $ECHO_N "(cached) $ECHO_C" >&6
1743else
1744 case $target in
1745 i*86-*) llvm_cv_target_arch="x86" ;;
1746 sparc*-*) llvm_cv_target_arch="Sparc" ;;
1747 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
1748 *) llvm_cv_target_arch="Unknown" ;;
John Criswell7a73b802003-06-30 21:59:07 +00001749esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001750fi
1751echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
1752echo "${ECHO_T}$llvm_cv_target_arch" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001753
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001754if test "$llvm_cv_target_arch" = "Unknown" ; then
1755 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
1756echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
1757fi
John Criswell76595452003-07-01 22:07:39 +00001758
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001759ARCH=$llvm_cv_target_arch
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001760
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001761
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001762ac_ext=c
1763ac_cpp='$CPP $CPPFLAGS'
1764ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1765ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1766ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00001767if test -n "$ac_tool_prefix"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001768 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1769set dummy ${ac_tool_prefix}gcc; ac_word=$2
1770echo "$as_me:$LINENO: checking for $ac_word" >&5
1771echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1772if test "${ac_cv_prog_CC+set}" = set; then
1773 echo $ECHO_N "(cached) $ECHO_C" >&6
1774else
1775 if test -n "$CC"; then
1776 ac_cv_prog_CC="$CC" # Let the user override the test.
1777else
1778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779for as_dir in $PATH
1780do
1781 IFS=$as_save_IFS
1782 test -z "$as_dir" && as_dir=.
1783 for ac_exec_ext in '' $ac_executable_extensions; do
1784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1785 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1787 break 2
1788 fi
1789done
1790done
1791
1792fi
1793fi
1794CC=$ac_cv_prog_CC
1795if test -n "$CC"; then
1796 echo "$as_me:$LINENO: result: $CC" >&5
1797echo "${ECHO_T}$CC" >&6
1798else
1799 echo "$as_me:$LINENO: result: no" >&5
1800echo "${ECHO_T}no" >&6
1801fi
1802
1803fi
1804if test -z "$ac_cv_prog_CC"; then
1805 ac_ct_CC=$CC
1806 # Extract the first word of "gcc", so it can be a program name with args.
1807set dummy gcc; ac_word=$2
1808echo "$as_me:$LINENO: checking for $ac_word" >&5
1809echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1812else
1813 if test -n "$ac_ct_CC"; then
1814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1815else
1816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1817for as_dir in $PATH
1818do
1819 IFS=$as_save_IFS
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_ac_ct_CC="gcc"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1825 break 2
1826 fi
1827done
1828done
1829
1830fi
1831fi
1832ac_ct_CC=$ac_cv_prog_ac_ct_CC
1833if test -n "$ac_ct_CC"; then
1834 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1835echo "${ECHO_T}$ac_ct_CC" >&6
1836else
1837 echo "$as_me:$LINENO: result: no" >&5
1838echo "${ECHO_T}no" >&6
1839fi
1840
1841 CC=$ac_ct_CC
1842else
1843 CC="$ac_cv_prog_CC"
1844fi
1845
1846if test -z "$CC"; then
1847 if test -n "$ac_tool_prefix"; then
1848 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1849set dummy ${ac_tool_prefix}cc; ac_word=$2
1850echo "$as_me:$LINENO: checking for $ac_word" >&5
1851echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852if test "${ac_cv_prog_CC+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854else
1855 if test -n "$CC"; then
1856 ac_cv_prog_CC="$CC" # Let the user override the test.
1857else
1858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1859for as_dir in $PATH
1860do
1861 IFS=$as_save_IFS
1862 test -z "$as_dir" && as_dir=.
1863 for ac_exec_ext in '' $ac_executable_extensions; do
1864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1865 ac_cv_prog_CC="${ac_tool_prefix}cc"
1866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1867 break 2
1868 fi
1869done
1870done
1871
1872fi
1873fi
1874CC=$ac_cv_prog_CC
1875if test -n "$CC"; then
1876 echo "$as_me:$LINENO: result: $CC" >&5
1877echo "${ECHO_T}$CC" >&6
1878else
1879 echo "$as_me:$LINENO: result: no" >&5
1880echo "${ECHO_T}no" >&6
1881fi
1882
1883fi
1884if test -z "$ac_cv_prog_CC"; then
1885 ac_ct_CC=$CC
1886 # Extract the first word of "cc", so it can be a program name with args.
1887set dummy cc; ac_word=$2
1888echo "$as_me:$LINENO: checking for $ac_word" >&5
1889echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1890if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1891 echo $ECHO_N "(cached) $ECHO_C" >&6
1892else
1893 if test -n "$ac_ct_CC"; then
1894 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1895else
1896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897for as_dir in $PATH
1898do
1899 IFS=$as_save_IFS
1900 test -z "$as_dir" && as_dir=.
1901 for ac_exec_ext in '' $ac_executable_extensions; do
1902 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1903 ac_cv_prog_ac_ct_CC="cc"
1904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1905 break 2
1906 fi
1907done
1908done
1909
1910fi
1911fi
1912ac_ct_CC=$ac_cv_prog_ac_ct_CC
1913if test -n "$ac_ct_CC"; then
1914 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1915echo "${ECHO_T}$ac_ct_CC" >&6
1916else
1917 echo "$as_me:$LINENO: result: no" >&5
1918echo "${ECHO_T}no" >&6
1919fi
1920
1921 CC=$ac_ct_CC
1922else
1923 CC="$ac_cv_prog_CC"
1924fi
1925
1926fi
1927if test -z "$CC"; then
1928 # Extract the first word of "cc", so it can be a program name with args.
1929set dummy cc; ac_word=$2
1930echo "$as_me:$LINENO: checking for $ac_word" >&5
1931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932if test "${ac_cv_prog_CC+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934else
1935 if test -n "$CC"; then
1936 ac_cv_prog_CC="$CC" # Let the user override the test.
1937else
1938 ac_prog_rejected=no
1939as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1940for as_dir in $PATH
1941do
1942 IFS=$as_save_IFS
1943 test -z "$as_dir" && as_dir=.
1944 for ac_exec_ext in '' $ac_executable_extensions; do
1945 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1946 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1947 ac_prog_rejected=yes
1948 continue
1949 fi
1950 ac_cv_prog_CC="cc"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 break 2
1953 fi
1954done
1955done
1956
1957if test $ac_prog_rejected = yes; then
1958 # We found a bogon in the path, so make sure we never use it.
1959 set dummy $ac_cv_prog_CC
1960 shift
1961 if test $# != 0; then
1962 # We chose a different compiler from the bogus one.
1963 # However, it has the same basename, so the bogon will be chosen
1964 # first if we set CC to just the basename; use the full file name.
1965 shift
1966 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1967 fi
1968fi
1969fi
1970fi
1971CC=$ac_cv_prog_CC
1972if test -n "$CC"; then
1973 echo "$as_me:$LINENO: result: $CC" >&5
1974echo "${ECHO_T}$CC" >&6
1975else
1976 echo "$as_me:$LINENO: result: no" >&5
1977echo "${ECHO_T}no" >&6
1978fi
1979
1980fi
1981if test -z "$CC"; then
1982 if test -n "$ac_tool_prefix"; then
1983 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00001984 do
1985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1986set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1987echo "$as_me:$LINENO: checking for $ac_word" >&5
1988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001989if test "${ac_cv_prog_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00001990 echo $ECHO_N "(cached) $ECHO_C" >&6
1991else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00001992 if test -n "$CC"; then
1993 ac_cv_prog_CC="$CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00001994else
1995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH
1997do
1998 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002002 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2
2005 fi
2006done
2007done
2008
2009fi
2010fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002011CC=$ac_cv_prog_CC
2012if test -n "$CC"; then
2013 echo "$as_me:$LINENO: result: $CC" >&5
2014echo "${ECHO_T}$CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002015else
2016 echo "$as_me:$LINENO: result: no" >&5
2017echo "${ECHO_T}no" >&6
2018fi
2019
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002020 test -n "$CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002021 done
2022fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002023if test -z "$CC"; then
2024 ac_ct_CC=$CC
2025 for ac_prog in cl
John Criswell7a73b802003-06-30 21:59:07 +00002026do
2027 # Extract the first word of "$ac_prog", so it can be a program name with args.
2028set dummy $ac_prog; ac_word=$2
2029echo "$as_me:$LINENO: checking for $ac_word" >&5
2030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002031if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002032 echo $ECHO_N "(cached) $ECHO_C" >&6
2033else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002034 if test -n "$ac_ct_CC"; then
2035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
John Criswell7a73b802003-06-30 21:59:07 +00002036else
2037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038for as_dir in $PATH
2039do
2040 IFS=$as_save_IFS
2041 test -z "$as_dir" && as_dir=.
2042 for ac_exec_ext in '' $ac_executable_extensions; do
2043 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002044 ac_cv_prog_ac_ct_CC="$ac_prog"
John Criswell7a73b802003-06-30 21:59:07 +00002045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 break 2
2047 fi
2048done
2049done
2050
2051fi
2052fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002053ac_ct_CC=$ac_cv_prog_ac_ct_CC
2054if test -n "$ac_ct_CC"; then
2055 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2056echo "${ECHO_T}$ac_ct_CC" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002057else
2058 echo "$as_me:$LINENO: result: no" >&5
2059echo "${ECHO_T}no" >&6
2060fi
2061
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002062 test -n "$ac_ct_CC" && break
John Criswell7a73b802003-06-30 21:59:07 +00002063done
John Criswell7a73b802003-06-30 21:59:07 +00002064
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002065 CC=$ac_ct_CC
2066fi
2067
John Criswell7a73b802003-06-30 21:59:07 +00002068fi
2069
2070
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002071test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2072See \`config.log' for more details." >&5
2073echo "$as_me: error: no acceptable C compiler found in \$PATH
2074See \`config.log' for more details." >&2;}
2075 { (exit 1); exit 1; }; }
2076
John Criswell7a73b802003-06-30 21:59:07 +00002077# Provide some information about the compiler.
2078echo "$as_me:$LINENO:" \
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002079 "checking for C compiler version" >&5
John Criswell7a73b802003-06-30 21:59:07 +00002080ac_compiler=`set X $ac_compile; echo $2`
2081{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2082 (eval $ac_compiler --version </dev/null >&5) 2>&5
2083 ac_status=$?
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }
2086{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2087 (eval $ac_compiler -v </dev/null >&5) 2>&5
2088 ac_status=$?
2089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2090 (exit $ac_status); }
2091{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2092 (eval $ac_compiler -V </dev/null >&5) 2>&5
2093 ac_status=$?
2094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095 (exit $ac_status); }
2096
2097cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002098/* confdefs.h. */
2099_ACEOF
2100cat confdefs.h >>conftest.$ac_ext
2101cat >>conftest.$ac_ext <<_ACEOF
2102/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002103
John Criswell7a73b802003-06-30 21:59:07 +00002104int
2105main ()
2106{
2107
2108 ;
2109 return 0;
2110}
2111_ACEOF
2112ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002113ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002114# Try to create an executable without -o first, disregard a.out.
2115# It will help us diagnose broken compilers, and finding out an intuition
2116# of exeext.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002117echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2118echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002119ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2120if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2121 (eval $ac_link_default) 2>&5
2122 ac_status=$?
2123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2124 (exit $ac_status); }; then
2125 # Find the output, starting from the most likely. This scheme is
2126# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2127# resort.
2128
2129# Be careful to initialize this variable, since it used to be cached.
2130# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2131ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002132# b.out is created by i960 compilers.
2133for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2134do
2135 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002136 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002138 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002139 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002140 # This is the source file.
2141 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002142 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002143 # We found the default executable, but exeext='' is most
2144 # certainly right.
2145 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002146 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002147 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2148 # FIXME: I believe we export ac_cv_exeext for Libtool,
2149 # but it would be cool to find out if it's true. Does anybody
2150 # maintain Libtool? --akim.
2151 export ac_cv_exeext
2152 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002153 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002154 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002155 esac
2156done
2157else
2158 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002159sed 's/^/| /' conftest.$ac_ext >&5
2160
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002161{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002162See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002163echo "$as_me: error: C compiler cannot create executables
John Criswell0c38eaf2003-09-10 15:17:25 +00002164See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002165 { (exit 77); exit 77; }; }
2166fi
2167
2168ac_exeext=$ac_cv_exeext
2169echo "$as_me:$LINENO: result: $ac_file" >&5
2170echo "${ECHO_T}$ac_file" >&6
2171
2172# Check the compiler produces executables we can run. If not, either
2173# the compiler is broken, or we cross compile.
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002174echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2175echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002176# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2177# If not cross compiling, check that we can run a simple program.
2178if test "$cross_compiling" != yes; then
2179 if { ac_try='./$ac_file'
2180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2181 (eval $ac_try) 2>&5
2182 ac_status=$?
2183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2184 (exit $ac_status); }; }; then
2185 cross_compiling=no
2186 else
2187 if test "$cross_compiling" = maybe; then
2188 cross_compiling=yes
2189 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002190 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002191If you meant to cross compile, use \`--host'.
2192See \`config.log' for more details." >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002193echo "$as_me: error: cannot run C compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002194If you meant to cross compile, use \`--host'.
2195See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002196 { (exit 1); exit 1; }; }
2197 fi
2198 fi
2199fi
2200echo "$as_me:$LINENO: result: yes" >&5
2201echo "${ECHO_T}yes" >&6
2202
John Criswell0c38eaf2003-09-10 15:17:25 +00002203rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002204ac_clean_files=$ac_clean_files_save
2205# Check the compiler produces executables we can run. If not, either
2206# the compiler is broken, or we cross compile.
2207echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2208echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2209echo "$as_me:$LINENO: result: $cross_compiling" >&5
2210echo "${ECHO_T}$cross_compiling" >&6
2211
2212echo "$as_me:$LINENO: checking for suffix of executables" >&5
2213echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2215 (eval $ac_link) 2>&5
2216 ac_status=$?
2217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2218 (exit $ac_status); }; then
2219 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2220# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2221# work properly (i.e., refer to `conftest.exe'), while it won't with
2222# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002223for ac_file in conftest.exe conftest conftest.*; do
2224 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002225 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002228 export ac_cv_exeext
2229 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002230 * ) break;;
2231 esac
2232done
2233else
John Criswell0c38eaf2003-09-10 15:17:25 +00002234 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2235See \`config.log' for more details." >&5
2236echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2237See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002238 { (exit 1); exit 1; }; }
2239fi
2240
2241rm -f conftest$ac_cv_exeext
2242echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2243echo "${ECHO_T}$ac_cv_exeext" >&6
2244
2245rm -f conftest.$ac_ext
2246EXEEXT=$ac_cv_exeext
2247ac_exeext=$EXEEXT
2248echo "$as_me:$LINENO: checking for suffix of object files" >&5
2249echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2250if test "${ac_cv_objext+set}" = set; then
2251 echo $ECHO_N "(cached) $ECHO_C" >&6
2252else
2253 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002254/* confdefs.h. */
2255_ACEOF
2256cat confdefs.h >>conftest.$ac_ext
2257cat >>conftest.$ac_ext <<_ACEOF
2258/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002259
John Criswell7a73b802003-06-30 21:59:07 +00002260int
2261main ()
2262{
2263
2264 ;
2265 return 0;
2266}
2267_ACEOF
2268rm -f conftest.o conftest.obj
2269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2270 (eval $ac_compile) 2>&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }; then
2274 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2275 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002277 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2278 break;;
2279 esac
2280done
2281else
2282 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002283sed 's/^/| /' conftest.$ac_ext >&5
2284
2285{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2286See \`config.log' for more details." >&5
2287echo "$as_me: error: cannot compute suffix of object files: cannot compile
2288See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002289 { (exit 1); exit 1; }; }
2290fi
2291
2292rm -f conftest.$ac_cv_objext conftest.$ac_ext
2293fi
2294echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2295echo "${ECHO_T}$ac_cv_objext" >&6
2296OBJEXT=$ac_cv_objext
2297ac_objext=$OBJEXT
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002298echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2299echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2300if test "${ac_cv_c_compiler_gnu+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002301 echo $ECHO_N "(cached) $ECHO_C" >&6
2302else
2303 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002304/* confdefs.h. */
2305_ACEOF
2306cat confdefs.h >>conftest.$ac_ext
2307cat >>conftest.$ac_ext <<_ACEOF
2308/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002309
John Criswell7a73b802003-06-30 21:59:07 +00002310int
2311main ()
2312{
2313#ifndef __GNUC__
2314 choke me
2315#endif
2316
2317 ;
2318 return 0;
2319}
2320_ACEOF
2321rm -f conftest.$ac_objext
2322if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002323 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002324 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002325 grep -v '^ *+' conftest.er1 >conftest.err
2326 rm -f conftest.er1
2327 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002330 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002331 || test ! -s conftest.err'
2332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2333 (eval $ac_try) 2>&5
2334 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); }; } &&
2337 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2339 (eval $ac_try) 2>&5
2340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); }; }; then
2343 ac_compiler_gnu=yes
2344else
2345 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002346sed 's/^/| /' conftest.$ac_ext >&5
2347
John Criswell7a73b802003-06-30 21:59:07 +00002348ac_compiler_gnu=no
2349fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002350rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002351ac_cv_c_compiler_gnu=$ac_compiler_gnu
John Criswell7a73b802003-06-30 21:59:07 +00002352
2353fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002354echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2355echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2356GCC=`test $ac_compiler_gnu = yes && echo yes`
2357ac_test_CFLAGS=${CFLAGS+set}
2358ac_save_CFLAGS=$CFLAGS
2359CFLAGS="-g"
2360echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2361echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2362if test "${ac_cv_prog_cc_g+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00002363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364else
2365 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002366/* confdefs.h. */
2367_ACEOF
2368cat confdefs.h >>conftest.$ac_ext
2369cat >>conftest.$ac_ext <<_ACEOF
2370/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002371
John Criswell7a73b802003-06-30 21:59:07 +00002372int
2373main ()
2374{
2375
2376 ;
2377 return 0;
2378}
2379_ACEOF
2380rm -f conftest.$ac_objext
2381if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002382 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002383 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002384 grep -v '^ *+' conftest.er1 >conftest.err
2385 rm -f conftest.er1
2386 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2388 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002389 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002390 || test ! -s conftest.err'
2391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2392 (eval $ac_try) 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }; } &&
2396 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2398 (eval $ac_try) 2>&5
2399 ac_status=$?
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002402 ac_cv_prog_cc_g=yes
John Criswell7a73b802003-06-30 21:59:07 +00002403else
2404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002405sed 's/^/| /' conftest.$ac_ext >&5
2406
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002407ac_cv_prog_cc_g=no
John Criswell7a73b802003-06-30 21:59:07 +00002408fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002409rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002410fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002411echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2412echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2413if test "$ac_test_CFLAGS" = set; then
2414 CFLAGS=$ac_save_CFLAGS
2415elif test $ac_cv_prog_cc_g = yes; then
2416 if test "$GCC" = yes; then
2417 CFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00002418 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002419 CFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00002420 fi
2421else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002422 if test "$GCC" = yes; then
2423 CFLAGS="-O2"
John Criswell7a73b802003-06-30 21:59:07 +00002424 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002425 CFLAGS=
John Criswell7a73b802003-06-30 21:59:07 +00002426 fi
2427fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002428echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2429echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2430if test "${ac_cv_prog_cc_stdc+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432else
2433 ac_cv_prog_cc_stdc=no
2434ac_save_CC=$CC
2435cat >conftest.$ac_ext <<_ACEOF
2436/* confdefs.h. */
2437_ACEOF
2438cat confdefs.h >>conftest.$ac_ext
2439cat >>conftest.$ac_ext <<_ACEOF
2440/* end confdefs.h. */
2441#include <stdarg.h>
2442#include <stdio.h>
2443#include <sys/types.h>
2444#include <sys/stat.h>
2445/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2446struct buf { int x; };
2447FILE * (*rcsopen) (struct buf *, struct stat *, int);
2448static char *e (p, i)
2449 char **p;
2450 int i;
2451{
2452 return p[i];
2453}
2454static char *f (char * (*g) (char **, int), char **p, ...)
2455{
2456 char *s;
2457 va_list v;
2458 va_start (v,p);
2459 s = g (p, va_arg (v,int));
2460 va_end (v);
2461 return s;
2462}
2463
2464/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2465 function prototypes and stuff, but not '\xHH' hex character constants.
2466 These don't provoke an error unfortunately, instead are silently treated
2467 as 'x'. The following induces an error, until -std1 is added to get
2468 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2469 array size at least. It's necessary to write '\x00'==0 to get something
2470 that's true only with -std1. */
2471int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2472
2473int test (int i, double x);
2474struct s1 {int (*f) (int a);};
2475struct s2 {int (*f) (double a);};
2476int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2477int argc;
2478char **argv;
2479int
2480main ()
2481{
2482return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2483 ;
2484 return 0;
2485}
2486_ACEOF
2487# Don't try gcc -ansi; that turns off useful extensions and
2488# breaks some systems' header files.
2489# AIX -qlanglvl=ansi
2490# Ultrix and OSF/1 -std1
2491# HP-UX 10.20 and later -Ae
2492# HP-UX older versions -Aa -D_HPUX_SOURCE
2493# SVR4 -Xc -D__EXTENSIONS__
2494for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2495do
2496 CC="$ac_save_CC $ac_arg"
2497 rm -f conftest.$ac_objext
2498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2499 (eval $ac_compile) 2>conftest.er1
2500 ac_status=$?
2501 grep -v '^ *+' conftest.er1 >conftest.err
2502 rm -f conftest.er1
2503 cat conftest.err >&5
2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2505 (exit $ac_status); } &&
2506 { ac_try='test -z "$ac_c_werror_flag"
2507 || test ! -s conftest.err'
2508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2509 (eval $ac_try) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }; } &&
2513 { ac_try='test -s conftest.$ac_objext'
2514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515 (eval $ac_try) 2>&5
2516 ac_status=$?
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); }; }; then
2519 ac_cv_prog_cc_stdc=$ac_arg
2520break
2521else
2522 echo "$as_me: failed program was:" >&5
2523sed 's/^/| /' conftest.$ac_ext >&5
2524
2525fi
2526rm -f conftest.err conftest.$ac_objext
2527done
2528rm -f conftest.$ac_ext conftest.$ac_objext
2529CC=$ac_save_CC
2530
2531fi
2532
2533case "x$ac_cv_prog_cc_stdc" in
2534 x|xno)
2535 echo "$as_me:$LINENO: result: none needed" >&5
2536echo "${ECHO_T}none needed" >&6 ;;
2537 *)
2538 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2539echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2540 CC="$CC $ac_cv_prog_cc_stdc" ;;
2541esac
2542
2543# Some people use a C++ compiler to compile C. Since we use `exit',
2544# in C++ we need to declare it. In case someone uses the same compiler
2545# for both compiling C and C++ we need to have the C++ compiler decide
2546# the declaration of exit, since it's the most demanding environment.
2547cat >conftest.$ac_ext <<_ACEOF
2548#ifndef __cplusplus
2549 choke me
2550#endif
2551_ACEOF
2552rm -f conftest.$ac_objext
2553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2554 (eval $ac_compile) 2>conftest.er1
2555 ac_status=$?
2556 grep -v '^ *+' conftest.er1 >conftest.err
2557 rm -f conftest.er1
2558 cat conftest.err >&5
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); } &&
2561 { ac_try='test -z "$ac_c_werror_flag"
2562 || test ! -s conftest.err'
2563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2564 (eval $ac_try) 2>&5
2565 ac_status=$?
2566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2567 (exit $ac_status); }; } &&
2568 { ac_try='test -s conftest.$ac_objext'
2569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2570 (eval $ac_try) 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002575 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002576 'extern "C" void std::exit (int) throw (); using std::exit;' \
2577 'extern "C" void std::exit (int); using std::exit;' \
2578 'extern "C" void exit (int) throw ();' \
2579 'extern "C" void exit (int);' \
2580 'void exit (int);'
2581do
2582 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002583/* confdefs.h. */
2584_ACEOF
2585cat confdefs.h >>conftest.$ac_ext
2586cat >>conftest.$ac_ext <<_ACEOF
2587/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002588$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002589#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002590int
2591main ()
2592{
2593exit (42);
2594 ;
2595 return 0;
2596}
2597_ACEOF
2598rm -f conftest.$ac_objext
2599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002600 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002601 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002602 grep -v '^ *+' conftest.er1 >conftest.err
2603 rm -f conftest.er1
2604 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2606 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002607 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002608 || test ! -s conftest.err'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; } &&
2614 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 :
2621else
2622 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002623sed 's/^/| /' conftest.$ac_ext >&5
2624
John Criswell7a73b802003-06-30 21:59:07 +00002625continue
2626fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002627rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002628 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002629/* confdefs.h. */
2630_ACEOF
2631cat confdefs.h >>conftest.$ac_ext
2632cat >>conftest.$ac_ext <<_ACEOF
2633/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002634$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002635int
2636main ()
2637{
2638exit (42);
2639 ;
2640 return 0;
2641}
2642_ACEOF
2643rm -f conftest.$ac_objext
2644if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002645 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002646 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002647 grep -v '^ *+' conftest.er1 >conftest.err
2648 rm -f conftest.er1
2649 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002652 { ac_try='test -z "$ac_c_werror_flag"
Reid Spencer2706f8c2004-09-19 23:53:36 +00002653 || test ! -s conftest.err'
2654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2655 (eval $ac_try) 2>&5
2656 ac_status=$?
2657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2658 (exit $ac_status); }; } &&
2659 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2661 (eval $ac_try) 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 break
2666else
2667 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002668sed 's/^/| /' conftest.$ac_ext >&5
2669
John Criswell7a73b802003-06-30 21:59:07 +00002670fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002671rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002672done
2673rm -f conftest*
2674if test -n "$ac_declaration"; then
2675 echo '#ifdef __cplusplus' >>confdefs.h
2676 echo $ac_declaration >>confdefs.h
2677 echo '#endif' >>confdefs.h
2678fi
2679
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002680else
2681 echo "$as_me: failed program was:" >&5
2682sed 's/^/| /' conftest.$ac_ext >&5
2683
2684fi
2685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2686ac_ext=c
2687ac_cpp='$CPP $CPPFLAGS'
2688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2690ac_compiler_gnu=$ac_cv_c_compiler_gnu
2691
2692
2693echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2694echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2695if test "${ac_cv_c_bigendian+set}" = set; then
2696 echo $ECHO_N "(cached) $ECHO_C" >&6
2697else
2698 # See if sys/param.h defines the BYTE_ORDER macro.
2699cat >conftest.$ac_ext <<_ACEOF
2700/* confdefs.h. */
2701_ACEOF
2702cat confdefs.h >>conftest.$ac_ext
2703cat >>conftest.$ac_ext <<_ACEOF
2704/* end confdefs.h. */
2705#include <sys/types.h>
2706#include <sys/param.h>
2707
2708int
2709main ()
2710{
2711#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2712 bogus endian macros
2713#endif
2714
2715 ;
2716 return 0;
2717}
2718_ACEOF
2719rm -f conftest.$ac_objext
2720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2721 (eval $ac_compile) 2>conftest.er1
2722 ac_status=$?
2723 grep -v '^ *+' conftest.er1 >conftest.err
2724 rm -f conftest.er1
2725 cat conftest.err >&5
2726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727 (exit $ac_status); } &&
2728 { ac_try='test -z "$ac_c_werror_flag"
2729 || test ! -s conftest.err'
2730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2731 (eval $ac_try) 2>&5
2732 ac_status=$?
2733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734 (exit $ac_status); }; } &&
2735 { ac_try='test -s conftest.$ac_objext'
2736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2737 (eval $ac_try) 2>&5
2738 ac_status=$?
2739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740 (exit $ac_status); }; }; then
2741 # It does; now see whether it defined to BIG_ENDIAN or not.
2742cat >conftest.$ac_ext <<_ACEOF
2743/* confdefs.h. */
2744_ACEOF
2745cat confdefs.h >>conftest.$ac_ext
2746cat >>conftest.$ac_ext <<_ACEOF
2747/* end confdefs.h. */
2748#include <sys/types.h>
2749#include <sys/param.h>
2750
2751int
2752main ()
2753{
2754#if BYTE_ORDER != BIG_ENDIAN
2755 not big endian
2756#endif
2757
2758 ;
2759 return 0;
2760}
2761_ACEOF
2762rm -f conftest.$ac_objext
2763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2764 (eval $ac_compile) 2>conftest.er1
2765 ac_status=$?
2766 grep -v '^ *+' conftest.er1 >conftest.err
2767 rm -f conftest.er1
2768 cat conftest.err >&5
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); } &&
2771 { ac_try='test -z "$ac_c_werror_flag"
2772 || test ! -s conftest.err'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; } &&
2778 { ac_try='test -s conftest.$ac_objext'
2779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2780 (eval $ac_try) 2>&5
2781 ac_status=$?
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; }; then
2784 ac_cv_c_bigendian=yes
2785else
2786 echo "$as_me: failed program was:" >&5
2787sed 's/^/| /' conftest.$ac_ext >&5
2788
2789ac_cv_c_bigendian=no
2790fi
2791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2792else
2793 echo "$as_me: failed program was:" >&5
2794sed 's/^/| /' conftest.$ac_ext >&5
2795
2796# It does not; compile a test program.
2797if test "$cross_compiling" = yes; then
2798 # try to guess the endianness by grepping values into an object file
2799 ac_cv_c_bigendian=unknown
2800 cat >conftest.$ac_ext <<_ACEOF
2801/* confdefs.h. */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h. */
2806short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2807short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2808void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2809short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2810short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2811void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2812int
2813main ()
2814{
2815 _ascii (); _ebcdic ();
2816 ;
2817 return 0;
2818}
2819_ACEOF
2820rm -f conftest.$ac_objext
2821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2822 (eval $ac_compile) 2>conftest.er1
2823 ac_status=$?
2824 grep -v '^ *+' conftest.er1 >conftest.err
2825 rm -f conftest.er1
2826 cat conftest.err >&5
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -z "$ac_c_werror_flag"
2830 || test ! -s conftest.err'
2831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2832 (eval $ac_try) 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
2843 ac_cv_c_bigendian=yes
2844fi
2845if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
2846 if test "$ac_cv_c_bigendian" = unknown; then
2847 ac_cv_c_bigendian=no
2848 else
2849 # finding both strings is unlikely to happen, but who knows?
2850 ac_cv_c_bigendian=unknown
2851 fi
2852fi
2853else
2854 echo "$as_me: failed program was:" >&5
2855sed 's/^/| /' conftest.$ac_ext >&5
2856
2857fi
2858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2859else
2860 cat >conftest.$ac_ext <<_ACEOF
2861/* confdefs.h. */
2862_ACEOF
2863cat confdefs.h >>conftest.$ac_ext
2864cat >>conftest.$ac_ext <<_ACEOF
2865/* end confdefs.h. */
2866int
2867main ()
2868{
2869 /* Are we little or big endian? From Harbison&Steele. */
2870 union
2871 {
2872 long l;
2873 char c[sizeof (long)];
2874 } u;
2875 u.l = 1;
2876 exit (u.c[sizeof (long) - 1] == 1);
2877}
2878_ACEOF
2879rm -f conftest$ac_exeext
2880if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2881 (eval $ac_link) 2>&5
2882 ac_status=$?
2883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2884 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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 ac_cv_c_bigendian=no
2891else
2892 echo "$as_me: program exited with status $ac_status" >&5
2893echo "$as_me: failed program was:" >&5
2894sed 's/^/| /' conftest.$ac_ext >&5
2895
2896( exit $ac_status )
2897ac_cv_c_bigendian=yes
2898fi
2899rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2900fi
2901fi
2902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2903fi
2904echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
2905echo "${ECHO_T}$ac_cv_c_bigendian" >&6
2906case $ac_cv_c_bigendian in
2907 yes)
2908 ENDIAN=big
2909 ;;
2910 no)
2911 ENDIAN=little
2912 ;;
2913 *)
2914 { { echo "$as_me:$LINENO: error: unknown endianness
2915presetting ac_cv_c_bigendian=no (or yes) will help" >&5
2916echo "$as_me: error: unknown endianness
2917presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
2918 { (exit 1); exit 1; }; } ;;
2919esac
2920
2921
2922
2923# Check whether --enable-optimized or --disable-optimized was given.
2924if test "${enable_optimized+set}" = set; then
2925 enableval="$enable_optimized"
2926
2927else
2928 enableval=no
2929fi;
2930if test ${enableval} = "no" ; then
2931 ENABLE_OPTIMIZED=
2932
2933else
2934 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
2935
2936fi
2937
2938# Check whether --enable-jit or --disable-jit was given.
2939if test "${enable_jit+set}" = set; then
2940 enableval="$enable_jit"
2941
2942else
2943 enableval=default
2944fi;
2945if test ${enableval} = "no"
2946then
2947 JIT=
2948
2949else
Reid Spencerefbe40a2004-11-25 07:28:19 +00002950 case "$llvm_cv_target_arch" in
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002951 x86) JIT=TARGET_HAS_JIT=1
2952 ;;
2953 Sparc) JIT=TARGET_HAS_JIT=1
2954 ;;
2955 PowerPC) JIT=TARGET_HAS_JIT=1
2956 ;;
2957 *) JIT=
2958 ;;
2959 esac
2960fi
2961
Reid Spencer1f319422004-11-29 04:56:35 +00002962# Check whether --enable-doxygen or --disable-doxygen was given.
2963if test "${enable_doxygen+set}" = set; then
2964 enableval="$enable_doxygen"
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002965
Reid Spencer1f319422004-11-29 04:56:35 +00002966else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002967 enableval=default
Reid Spencer1f319422004-11-29 04:56:35 +00002968fi;
2969case "$enableval" in
2970 yes) ENABLE_DOXYGEN=1
2971 ;;
2972 no) ENABLE_DOXYGEN=0
2973 ;;
Reid Spencer2bc7bd52004-11-29 12:29:58 +00002974 default) ENABLE_DOXYGEN=0
2975 ;;
Reid Spencer1f319422004-11-29 04:56:35 +00002976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
2977echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
2978 { (exit 1); exit 1; }; } ;;
2979esac
2980
Reid Spencer5e1d9a52004-11-25 04:51:04 +00002981
2982# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
2983if test "${with_llvmgccdir+set}" = set; then
2984 withval="$with_llvmgccdir"
2985 LLVMGCCDIR=$withval
2986
2987fi;
2988
2989if test "x$LLVMGCCDIR" = x ; then
2990 case "$llvm_cv_platform_type" in
2991 Linux)
2992 if test -d /home/vadve/lattner/local/x86/llvm-gcc ; then
2993 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
2994
2995 fi
2996 ;;
2997 SunOS)
2998 if test -d /home/vadve/lattner/local/sparc/llvm-gcc ; then
2999 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
3000
3001 fi
3002 ;;
3003 esac
3004fi
3005
3006
3007ac_ext=c
3008ac_cpp='$CPP $CPPFLAGS'
3009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3011ac_compiler_gnu=$ac_cv_c_compiler_gnu
3012echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3013echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3014# On Suns, sometimes $CPP names a directory.
3015if test -n "$CPP" && test -d "$CPP"; then
3016 CPP=
3017fi
3018if test -z "$CPP"; then
3019 if test "${ac_cv_prog_CPP+set}" = set; then
3020 echo $ECHO_N "(cached) $ECHO_C" >&6
3021else
3022 # Double quotes because CPP needs to be expanded
3023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3024 do
3025 ac_preproc_ok=false
3026for ac_c_preproc_warn_flag in '' yes
3027do
3028 # Use a header file that comes with gcc, so configuring glibc
3029 # with a fresh cross-compiler works.
3030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3031 # <limits.h> exists even on freestanding compilers.
3032 # On the NeXT, cc -E runs the code through the compiler's parser,
3033 # not just through cpp. "Syntax error" is here to catch this case.
3034 cat >conftest.$ac_ext <<_ACEOF
3035/* confdefs.h. */
3036_ACEOF
3037cat confdefs.h >>conftest.$ac_ext
3038cat >>conftest.$ac_ext <<_ACEOF
3039/* end confdefs.h. */
3040#ifdef __STDC__
3041# include <limits.h>
3042#else
3043# include <assert.h>
3044#endif
3045 Syntax error
3046_ACEOF
3047if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3048 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3049 ac_status=$?
3050 grep -v '^ *+' conftest.er1 >conftest.err
3051 rm -f conftest.er1
3052 cat conftest.err >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); } >/dev/null; then
3055 if test -s conftest.err; then
3056 ac_cpp_err=$ac_c_preproc_warn_flag
3057 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3058 else
3059 ac_cpp_err=
3060 fi
3061else
3062 ac_cpp_err=yes
3063fi
3064if test -z "$ac_cpp_err"; then
3065 :
3066else
3067 echo "$as_me: failed program was:" >&5
3068sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 # Broken: fails on valid input.
3071continue
3072fi
3073rm -f conftest.err conftest.$ac_ext
3074
3075 # OK, works on sane cases. Now check whether non-existent headers
3076 # can be detected and how.
3077 cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h. */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h. */
3083#include <ac_nonexistent.h>
3084_ACEOF
3085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3087 ac_status=$?
3088 grep -v '^ *+' conftest.er1 >conftest.err
3089 rm -f conftest.er1
3090 cat conftest.err >&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); } >/dev/null; then
3093 if test -s conftest.err; then
3094 ac_cpp_err=$ac_c_preproc_warn_flag
3095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3096 else
3097 ac_cpp_err=
3098 fi
3099else
3100 ac_cpp_err=yes
3101fi
3102if test -z "$ac_cpp_err"; then
3103 # Broken: success on invalid input.
3104continue
3105else
3106 echo "$as_me: failed program was:" >&5
3107sed 's/^/| /' conftest.$ac_ext >&5
3108
3109 # Passes both tests.
3110ac_preproc_ok=:
3111break
3112fi
3113rm -f conftest.err conftest.$ac_ext
3114
3115done
3116# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3117rm -f conftest.err conftest.$ac_ext
3118if $ac_preproc_ok; then
3119 break
3120fi
3121
3122 done
3123 ac_cv_prog_CPP=$CPP
3124
3125fi
3126 CPP=$ac_cv_prog_CPP
3127else
3128 ac_cv_prog_CPP=$CPP
3129fi
3130echo "$as_me:$LINENO: result: $CPP" >&5
3131echo "${ECHO_T}$CPP" >&6
3132ac_preproc_ok=false
3133for ac_c_preproc_warn_flag in '' yes
3134do
3135 # Use a header file that comes with gcc, so configuring glibc
3136 # with a fresh cross-compiler works.
3137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3138 # <limits.h> exists even on freestanding compilers.
3139 # On the NeXT, cc -E runs the code through the compiler's parser,
3140 # not just through cpp. "Syntax error" is here to catch this case.
3141 cat >conftest.$ac_ext <<_ACEOF
3142/* confdefs.h. */
3143_ACEOF
3144cat confdefs.h >>conftest.$ac_ext
3145cat >>conftest.$ac_ext <<_ACEOF
3146/* end confdefs.h. */
3147#ifdef __STDC__
3148# include <limits.h>
3149#else
3150# include <assert.h>
3151#endif
3152 Syntax error
3153_ACEOF
3154if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3155 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3156 ac_status=$?
3157 grep -v '^ *+' conftest.er1 >conftest.err
3158 rm -f conftest.er1
3159 cat conftest.err >&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); } >/dev/null; then
3162 if test -s conftest.err; then
3163 ac_cpp_err=$ac_c_preproc_warn_flag
3164 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3165 else
3166 ac_cpp_err=
3167 fi
3168else
3169 ac_cpp_err=yes
3170fi
3171if test -z "$ac_cpp_err"; then
3172 :
3173else
3174 echo "$as_me: failed program was:" >&5
3175sed 's/^/| /' conftest.$ac_ext >&5
3176
3177 # Broken: fails on valid input.
3178continue
3179fi
3180rm -f conftest.err conftest.$ac_ext
3181
3182 # OK, works on sane cases. Now check whether non-existent headers
3183 # can be detected and how.
3184 cat >conftest.$ac_ext <<_ACEOF
3185/* confdefs.h. */
3186_ACEOF
3187cat confdefs.h >>conftest.$ac_ext
3188cat >>conftest.$ac_ext <<_ACEOF
3189/* end confdefs.h. */
3190#include <ac_nonexistent.h>
3191_ACEOF
3192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3194 ac_status=$?
3195 grep -v '^ *+' conftest.er1 >conftest.err
3196 rm -f conftest.er1
3197 cat conftest.err >&5
3198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199 (exit $ac_status); } >/dev/null; then
3200 if test -s conftest.err; then
3201 ac_cpp_err=$ac_c_preproc_warn_flag
3202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3203 else
3204 ac_cpp_err=
3205 fi
3206else
3207 ac_cpp_err=yes
3208fi
3209if test -z "$ac_cpp_err"; then
3210 # Broken: success on invalid input.
3211continue
3212else
3213 echo "$as_me: failed program was:" >&5
3214sed 's/^/| /' conftest.$ac_ext >&5
3215
3216 # Passes both tests.
3217ac_preproc_ok=:
3218break
3219fi
3220rm -f conftest.err conftest.$ac_ext
3221
3222done
3223# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3224rm -f conftest.err conftest.$ac_ext
3225if $ac_preproc_ok; then
3226 :
3227else
3228 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3229See \`config.log' for more details." >&5
3230echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3231See \`config.log' for more details." >&2;}
3232 { (exit 1); exit 1; }; }
3233fi
3234
John Criswell7a73b802003-06-30 21:59:07 +00003235ac_ext=c
3236ac_cpp='$CPP $CPPFLAGS'
3237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3239ac_compiler_gnu=$ac_cv_c_compiler_gnu
3240
3241ac_ext=c
3242ac_cpp='$CPP $CPPFLAGS'
3243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246if test -n "$ac_tool_prefix"; then
3247 for ac_prog in gcc
3248 do
3249 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3250set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3251echo "$as_me:$LINENO: checking for $ac_word" >&5
3252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253if test "${ac_cv_prog_CC+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255else
3256 if test -n "$CC"; then
3257 ac_cv_prog_CC="$CC" # Let the user override the test.
3258else
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270done
3271done
3272
3273fi
3274fi
3275CC=$ac_cv_prog_CC
3276if test -n "$CC"; then
3277 echo "$as_me:$LINENO: result: $CC" >&5
3278echo "${ECHO_T}$CC" >&6
3279else
3280 echo "$as_me:$LINENO: result: no" >&5
3281echo "${ECHO_T}no" >&6
3282fi
3283
3284 test -n "$CC" && break
3285 done
3286fi
3287if test -z "$CC"; then
3288 ac_ct_CC=$CC
3289 for ac_prog in gcc
3290do
3291 # Extract the first word of "$ac_prog", so it can be a program name with args.
3292set dummy $ac_prog; ac_word=$2
3293echo "$as_me:$LINENO: checking for $ac_word" >&5
3294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3295if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3297else
3298 if test -n "$ac_ct_CC"; then
3299 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3300else
3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH
3303do
3304 IFS=$as_save_IFS
3305 test -z "$as_dir" && as_dir=.
3306 for ac_exec_ext in '' $ac_executable_extensions; do
3307 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308 ac_cv_prog_ac_ct_CC="$ac_prog"
3309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 break 2
3311 fi
3312done
3313done
3314
3315fi
3316fi
3317ac_ct_CC=$ac_cv_prog_ac_ct_CC
3318if test -n "$ac_ct_CC"; then
3319 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3320echo "${ECHO_T}$ac_ct_CC" >&6
3321else
3322 echo "$as_me:$LINENO: result: no" >&5
3323echo "${ECHO_T}no" >&6
3324fi
3325
3326 test -n "$ac_ct_CC" && break
3327done
3328
3329 CC=$ac_ct_CC
3330fi
3331
3332
John Criswell0c38eaf2003-09-10 15:17:25 +00003333test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3334See \`config.log' for more details." >&5
3335echo "$as_me: error: no acceptable C compiler found in \$PATH
3336See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003337 { (exit 1); exit 1; }; }
3338
3339# Provide some information about the compiler.
3340echo "$as_me:$LINENO:" \
3341 "checking for C compiler version" >&5
3342ac_compiler=`set X $ac_compile; echo $2`
3343{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3344 (eval $ac_compiler --version </dev/null >&5) 2>&5
3345 ac_status=$?
3346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }
3348{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3349 (eval $ac_compiler -v </dev/null >&5) 2>&5
3350 ac_status=$?
3351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352 (exit $ac_status); }
3353{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3354 (eval $ac_compiler -V </dev/null >&5) 2>&5
3355 ac_status=$?
3356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); }
3358
3359echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3360echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3361if test "${ac_cv_c_compiler_gnu+set}" = set; then
3362 echo $ECHO_N "(cached) $ECHO_C" >&6
3363else
3364 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003365/* confdefs.h. */
3366_ACEOF
3367cat confdefs.h >>conftest.$ac_ext
3368cat >>conftest.$ac_ext <<_ACEOF
3369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003370
John Criswell7a73b802003-06-30 21:59:07 +00003371int
3372main ()
3373{
3374#ifndef __GNUC__
3375 choke me
3376#endif
3377
3378 ;
3379 return 0;
3380}
3381_ACEOF
3382rm -f conftest.$ac_objext
3383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003384 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003385 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003386 grep -v '^ *+' conftest.er1 >conftest.err
3387 rm -f conftest.er1
3388 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003391 { ac_try='test -z "$ac_c_werror_flag"
3392 || test ! -s conftest.err'
3393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394 (eval $ac_try) 2>&5
3395 ac_status=$?
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); }; } &&
3398 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3400 (eval $ac_try) 2>&5
3401 ac_status=$?
3402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3403 (exit $ac_status); }; }; then
3404 ac_compiler_gnu=yes
3405else
3406 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003407sed 's/^/| /' conftest.$ac_ext >&5
3408
John Criswell7a73b802003-06-30 21:59:07 +00003409ac_compiler_gnu=no
3410fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003412ac_cv_c_compiler_gnu=$ac_compiler_gnu
3413
3414fi
3415echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3416echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3417GCC=`test $ac_compiler_gnu = yes && echo yes`
3418ac_test_CFLAGS=${CFLAGS+set}
3419ac_save_CFLAGS=$CFLAGS
3420CFLAGS="-g"
3421echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3422echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3423if test "${ac_cv_prog_cc_g+set}" = set; then
3424 echo $ECHO_N "(cached) $ECHO_C" >&6
3425else
3426 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003427/* confdefs.h. */
3428_ACEOF
3429cat confdefs.h >>conftest.$ac_ext
3430cat >>conftest.$ac_ext <<_ACEOF
3431/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003432
John Criswell7a73b802003-06-30 21:59:07 +00003433int
3434main ()
3435{
3436
3437 ;
3438 return 0;
3439}
3440_ACEOF
3441rm -f conftest.$ac_objext
3442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003443 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003444 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003445 grep -v '^ *+' conftest.er1 >conftest.err
3446 rm -f conftest.er1
3447 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003450 { ac_try='test -z "$ac_c_werror_flag"
3451 || test ! -s conftest.err'
3452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453 (eval $ac_try) 2>&5
3454 ac_status=$?
3455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456 (exit $ac_status); }; } &&
3457 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3459 (eval $ac_try) 2>&5
3460 ac_status=$?
3461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3462 (exit $ac_status); }; }; then
3463 ac_cv_prog_cc_g=yes
3464else
3465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003466sed 's/^/| /' conftest.$ac_ext >&5
3467
John Criswell7a73b802003-06-30 21:59:07 +00003468ac_cv_prog_cc_g=no
3469fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003470rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003471fi
3472echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3473echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3474if test "$ac_test_CFLAGS" = set; then
3475 CFLAGS=$ac_save_CFLAGS
3476elif test $ac_cv_prog_cc_g = yes; then
3477 if test "$GCC" = yes; then
3478 CFLAGS="-g -O2"
3479 else
3480 CFLAGS="-g"
3481 fi
3482else
3483 if test "$GCC" = yes; then
3484 CFLAGS="-O2"
3485 else
3486 CFLAGS=
3487 fi
3488fi
John Criswell0c38eaf2003-09-10 15:17:25 +00003489echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3490echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3491if test "${ac_cv_prog_cc_stdc+set}" = set; then
3492 echo $ECHO_N "(cached) $ECHO_C" >&6
3493else
3494 ac_cv_prog_cc_stdc=no
3495ac_save_CC=$CC
3496cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003497/* confdefs.h. */
3498_ACEOF
3499cat confdefs.h >>conftest.$ac_ext
3500cat >>conftest.$ac_ext <<_ACEOF
3501/* end confdefs.h. */
3502#include <stdarg.h>
3503#include <stdio.h>
3504#include <sys/types.h>
3505#include <sys/stat.h>
3506/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3507struct buf { int x; };
3508FILE * (*rcsopen) (struct buf *, struct stat *, int);
3509static char *e (p, i)
3510 char **p;
3511 int i;
3512{
3513 return p[i];
3514}
3515static char *f (char * (*g) (char **, int), char **p, ...)
3516{
3517 char *s;
3518 va_list v;
3519 va_start (v,p);
3520 s = g (p, va_arg (v,int));
3521 va_end (v);
3522 return s;
3523}
Reid Spencer2706f8c2004-09-19 23:53:36 +00003524
3525/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3526 function prototypes and stuff, but not '\xHH' hex character constants.
3527 These don't provoke an error unfortunately, instead are silently treated
3528 as 'x'. The following induces an error, until -std1 is added to get
3529 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3530 array size at least. It's necessary to write '\x00'==0 to get something
3531 that's true only with -std1. */
3532int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3533
John Criswell0c38eaf2003-09-10 15:17:25 +00003534int test (int i, double x);
3535struct s1 {int (*f) (int a);};
3536struct s2 {int (*f) (double a);};
3537int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3538int argc;
3539char **argv;
3540int
3541main ()
3542{
3543return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3544 ;
3545 return 0;
3546}
3547_ACEOF
3548# Don't try gcc -ansi; that turns off useful extensions and
3549# breaks some systems' header files.
3550# AIX -qlanglvl=ansi
3551# Ultrix and OSF/1 -std1
3552# HP-UX 10.20 and later -Ae
3553# HP-UX older versions -Aa -D_HPUX_SOURCE
3554# SVR4 -Xc -D__EXTENSIONS__
3555for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3556do
3557 CC="$ac_save_CC $ac_arg"
3558 rm -f conftest.$ac_objext
3559if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003560 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00003561 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003562 grep -v '^ *+' conftest.er1 >conftest.err
3563 rm -f conftest.er1
3564 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3566 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003567 { ac_try='test -z "$ac_c_werror_flag"
3568 || test ! -s conftest.err'
3569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570 (eval $ac_try) 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; } &&
3574 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00003575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3576 (eval $ac_try) 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; }; then
3580 ac_cv_prog_cc_stdc=$ac_arg
3581break
3582else
3583 echo "$as_me: failed program was:" >&5
3584sed 's/^/| /' conftest.$ac_ext >&5
3585
3586fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003587rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00003588done
3589rm -f conftest.$ac_ext conftest.$ac_objext
3590CC=$ac_save_CC
3591
3592fi
3593
3594case "x$ac_cv_prog_cc_stdc" in
3595 x|xno)
3596 echo "$as_me:$LINENO: result: none needed" >&5
3597echo "${ECHO_T}none needed" >&6 ;;
3598 *)
3599 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3600echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3601 CC="$CC $ac_cv_prog_cc_stdc" ;;
3602esac
3603
John Criswell7a73b802003-06-30 21:59:07 +00003604# Some people use a C++ compiler to compile C. Since we use `exit',
3605# in C++ we need to declare it. In case someone uses the same compiler
3606# for both compiling C and C++ we need to have the C++ compiler decide
3607# the declaration of exit, since it's the most demanding environment.
3608cat >conftest.$ac_ext <<_ACEOF
3609#ifndef __cplusplus
3610 choke me
3611#endif
3612_ACEOF
3613rm -f conftest.$ac_objext
3614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003615 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003616 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003622 { ac_try='test -z "$ac_c_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 (eval $ac_try) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3635 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00003636 '' \
John Criswell7a73b802003-06-30 21:59:07 +00003637 'extern "C" void std::exit (int) throw (); using std::exit;' \
3638 'extern "C" void std::exit (int); using std::exit;' \
3639 'extern "C" void exit (int) throw ();' \
3640 'extern "C" void exit (int);' \
3641 'void exit (int);'
3642do
3643 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003644/* confdefs.h. */
3645_ACEOF
3646cat confdefs.h >>conftest.$ac_ext
3647cat >>conftest.$ac_ext <<_ACEOF
3648/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00003649$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00003650#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00003651int
3652main ()
3653{
3654exit (42);
3655 ;
3656 return 0;
3657}
3658_ACEOF
3659rm -f conftest.$ac_objext
3660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003661 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003662 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003663 grep -v '^ *+' conftest.er1 >conftest.err
3664 rm -f conftest.er1
3665 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003668 { ac_try='test -z "$ac_c_werror_flag"
3669 || test ! -s conftest.err'
3670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671 (eval $ac_try) 2>&5
3672 ac_status=$?
3673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674 (exit $ac_status); }; } &&
3675 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3677 (eval $ac_try) 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; }; then
3681 :
3682else
3683 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003684sed 's/^/| /' conftest.$ac_ext >&5
3685
John Criswell7a73b802003-06-30 21:59:07 +00003686continue
3687fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003688rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003689 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003690/* confdefs.h. */
3691_ACEOF
3692cat confdefs.h >>conftest.$ac_ext
3693cat >>conftest.$ac_ext <<_ACEOF
3694/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003695$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00003696int
3697main ()
3698{
3699exit (42);
3700 ;
3701 return 0;
3702}
3703_ACEOF
3704rm -f conftest.$ac_objext
3705if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003706 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003707 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003708 grep -v '^ *+' conftest.er1 >conftest.err
3709 rm -f conftest.er1
3710 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003713 { ac_try='test -z "$ac_c_werror_flag"
3714 || test ! -s conftest.err'
3715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716 (eval $ac_try) 2>&5
3717 ac_status=$?
3718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); }; } &&
3720 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00003721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3722 (eval $ac_try) 2>&5
3723 ac_status=$?
3724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 (exit $ac_status); }; }; then
3726 break
3727else
3728 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003729sed 's/^/| /' conftest.$ac_ext >&5
3730
John Criswell7a73b802003-06-30 21:59:07 +00003731fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003733done
3734rm -f conftest*
3735if test -n "$ac_declaration"; then
3736 echo '#ifdef __cplusplus' >>confdefs.h
3737 echo $ac_declaration >>confdefs.h
3738 echo '#endif' >>confdefs.h
3739fi
3740
3741else
3742 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003743sed 's/^/| /' conftest.$ac_ext >&5
3744
John Criswell7a73b802003-06-30 21:59:07 +00003745fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003746rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003747ac_ext=c
3748ac_cpp='$CPP $CPPFLAGS'
3749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003753ac_ext=cc
3754ac_cpp='$CXXCPP $CPPFLAGS'
3755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3758if test -n "$ac_tool_prefix"; then
3759 for ac_prog in $CCC g++
3760 do
3761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3762set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3763echo "$as_me:$LINENO: checking for $ac_word" >&5
3764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3765if test "${ac_cv_prog_CXX+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00003766 echo $ECHO_N "(cached) $ECHO_C" >&6
3767else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003768 if test -n "$CXX"; then
3769 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3770else
3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH
John Criswell7a73b802003-06-30 21:59:07 +00003773do
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3778 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782done
3783done
3784
3785fi
3786fi
3787CXX=$ac_cv_prog_CXX
3788if test -n "$CXX"; then
3789 echo "$as_me:$LINENO: result: $CXX" >&5
3790echo "${ECHO_T}$CXX" >&6
3791else
3792 echo "$as_me:$LINENO: result: no" >&5
3793echo "${ECHO_T}no" >&6
3794fi
3795
3796 test -n "$CXX" && break
3797 done
3798fi
3799if test -z "$CXX"; then
3800 ac_ct_CXX=$CXX
3801 for ac_prog in $CCC g++
3802do
3803 # Extract the first word of "$ac_prog", so it can be a program name with args.
3804set dummy $ac_prog; ac_word=$2
3805echo "$as_me:$LINENO: checking for $ac_word" >&5
3806echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3807if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3808 echo $ECHO_N "(cached) $ECHO_C" >&6
3809else
3810 if test -n "$ac_ct_CXX"; then
3811 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3812else
3813as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814for as_dir in $PATH
3815do
3816 IFS=$as_save_IFS
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_ac_ct_CXX="$ac_prog"
3821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3822 break 2
3823 fi
3824done
3825done
3826
3827fi
3828fi
3829ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3830if test -n "$ac_ct_CXX"; then
3831 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3832echo "${ECHO_T}$ac_ct_CXX" >&6
3833else
3834 echo "$as_me:$LINENO: result: no" >&5
3835echo "${ECHO_T}no" >&6
3836fi
3837
3838 test -n "$ac_ct_CXX" && break
3839done
3840test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3841
3842 CXX=$ac_ct_CXX
3843fi
3844
3845
3846# Provide some information about the compiler.
3847echo "$as_me:$LINENO:" \
3848 "checking for C++ compiler version" >&5
3849ac_compiler=`set X $ac_compile; echo $2`
3850{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3851 (eval $ac_compiler --version </dev/null >&5) 2>&5
3852 ac_status=$?
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }
3855{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3856 (eval $ac_compiler -v </dev/null >&5) 2>&5
3857 ac_status=$?
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }
3860{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3861 (eval $ac_compiler -V </dev/null >&5) 2>&5
3862 ac_status=$?
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }
3865
3866echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3867echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3868if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
John Criswell7a73b802003-06-30 21:59:07 +00003871 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003872/* confdefs.h. */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
3876/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003877
3878int
3879main ()
3880{
3881#ifndef __GNUC__
3882 choke me
John Criswell0c38eaf2003-09-10 15:17:25 +00003883#endif
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003884
3885 ;
3886 return 0;
3887}
John Criswell7a73b802003-06-30 21:59:07 +00003888_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003889rm -f conftest.$ac_objext
3890if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3891 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003892 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003893 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003894 rm -f conftest.er1
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003897 (exit $ac_status); } &&
3898 { ac_try='test -z "$ac_cxx_werror_flag"
3899 || test ! -s conftest.err'
3900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3901 (eval $ac_try) 2>&5
3902 ac_status=$?
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; } &&
3905 { ac_try='test -s conftest.$ac_objext'
3906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907 (eval $ac_try) 2>&5
3908 ac_status=$?
3909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910 (exit $ac_status); }; }; then
3911 ac_compiler_gnu=yes
3912else
3913 echo "$as_me: failed program was:" >&5
3914sed 's/^/| /' conftest.$ac_ext >&5
3915
3916ac_compiler_gnu=no
3917fi
3918rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3919ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3920
3921fi
3922echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3923echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3924GXX=`test $ac_compiler_gnu = yes && echo yes`
3925ac_test_CXXFLAGS=${CXXFLAGS+set}
3926ac_save_CXXFLAGS=$CXXFLAGS
3927CXXFLAGS="-g"
3928echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3929echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3930if test "${ac_cv_prog_cxx_g+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3932else
3933 cat >conftest.$ac_ext <<_ACEOF
3934/* confdefs.h. */
3935_ACEOF
3936cat confdefs.h >>conftest.$ac_ext
3937cat >>conftest.$ac_ext <<_ACEOF
3938/* end confdefs.h. */
3939
3940int
3941main ()
3942{
3943
3944 ;
3945 return 0;
3946}
3947_ACEOF
3948rm -f conftest.$ac_objext
3949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3950 (eval $ac_compile) 2>conftest.er1
3951 ac_status=$?
3952 grep -v '^ *+' conftest.er1 >conftest.err
3953 rm -f conftest.er1
3954 cat conftest.err >&5
3955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3956 (exit $ac_status); } &&
3957 { ac_try='test -z "$ac_cxx_werror_flag"
3958 || test ! -s conftest.err'
3959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960 (eval $ac_try) 2>&5
3961 ac_status=$?
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); }; } &&
3964 { ac_try='test -s conftest.$ac_objext'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966 (eval $ac_try) 2>&5
3967 ac_status=$?
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then
3970 ac_cv_prog_cxx_g=yes
3971else
3972 echo "$as_me: failed program was:" >&5
3973sed 's/^/| /' conftest.$ac_ext >&5
3974
3975ac_cv_prog_cxx_g=no
3976fi
3977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3978fi
3979echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3980echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3981if test "$ac_test_CXXFLAGS" = set; then
3982 CXXFLAGS=$ac_save_CXXFLAGS
3983elif test $ac_cv_prog_cxx_g = yes; then
3984 if test "$GXX" = yes; then
3985 CXXFLAGS="-g -O2"
John Criswell7a73b802003-06-30 21:59:07 +00003986 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003987 CXXFLAGS="-g"
John Criswell7a73b802003-06-30 21:59:07 +00003988 fi
3989else
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003990 if test "$GXX" = yes; then
3991 CXXFLAGS="-O2"
3992 else
3993 CXXFLAGS=
3994 fi
John Criswell7a73b802003-06-30 21:59:07 +00003995fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00003996for ac_declaration in \
3997 '' \
3998 'extern "C" void std::exit (int) throw (); using std::exit;' \
3999 'extern "C" void std::exit (int); using std::exit;' \
4000 'extern "C" void exit (int) throw ();' \
4001 'extern "C" void exit (int);' \
4002 'void exit (int);'
4003do
4004 cat >conftest.$ac_ext <<_ACEOF
4005/* confdefs.h. */
4006_ACEOF
4007cat confdefs.h >>conftest.$ac_ext
4008cat >>conftest.$ac_ext <<_ACEOF
4009/* end confdefs.h. */
4010$ac_declaration
4011#include <stdlib.h>
4012int
4013main ()
4014{
4015exit (42);
4016 ;
4017 return 0;
4018}
4019_ACEOF
4020rm -f conftest.$ac_objext
4021if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4022 (eval $ac_compile) 2>conftest.er1
4023 ac_status=$?
4024 grep -v '^ *+' conftest.er1 >conftest.err
4025 rm -f conftest.er1
4026 cat conftest.err >&5
4027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4028 (exit $ac_status); } &&
4029 { ac_try='test -z "$ac_cxx_werror_flag"
4030 || test ! -s conftest.err'
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); }; } &&
4036 { ac_try='test -s conftest.$ac_objext'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004042 :
4043else
4044 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004045sed 's/^/| /' conftest.$ac_ext >&5
4046
John Criswell7a73b802003-06-30 21:59:07 +00004047continue
4048fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004050 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004051/* confdefs.h. */
4052_ACEOF
4053cat confdefs.h >>conftest.$ac_ext
4054cat >>conftest.$ac_ext <<_ACEOF
4055/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004056$ac_declaration
4057int
4058main ()
4059{
4060exit (42);
4061 ;
4062 return 0;
4063}
John Criswell7a73b802003-06-30 21:59:07 +00004064_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004065rm -f conftest.$ac_objext
4066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4067 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004068 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004069 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004073 (exit $ac_status); } &&
4074 { ac_try='test -z "$ac_cxx_werror_flag"
4075 || test ! -s conftest.err'
4076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4077 (eval $ac_try) 2>&5
4078 ac_status=$?
4079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4080 (exit $ac_status); }; } &&
4081 { ac_try='test -s conftest.$ac_objext'
4082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004087 break
John Criswell7a73b802003-06-30 21:59:07 +00004088else
4089 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004090sed 's/^/| /' conftest.$ac_ext >&5
4091
John Criswell7a73b802003-06-30 21:59:07 +00004092fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004093rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004094done
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004095rm -f conftest*
4096if test -n "$ac_declaration"; then
4097 echo '#ifdef __cplusplus' >>confdefs.h
4098 echo $ac_declaration >>confdefs.h
4099 echo '#endif' >>confdefs.h
John Criswell7a73b802003-06-30 21:59:07 +00004100fi
4101
4102ac_ext=c
4103ac_cpp='$CPP $CPPFLAGS'
4104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
John Criswell7a73b802003-06-30 21:59:07 +00004108echo "$as_me:$LINENO: checking " >&5
4109echo $ECHO_N "checking ... $ECHO_C" >&6
4110if test "${ac_cv_has_flex+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4112else
4113 for ac_prog in flex lex
4114do
4115 # Extract the first word of "$ac_prog", so it can be a program name with args.
4116set dummy $ac_prog; ac_word=$2
4117echo "$as_me:$LINENO: checking for $ac_word" >&5
4118echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4119if test "${ac_cv_prog_LEX+set}" = set; then
4120 echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122 if test -n "$LEX"; then
4123 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4124else
4125as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126for as_dir in $PATH
4127do
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_LEX="$ac_prog"
4133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4135 fi
4136done
4137done
4138
4139fi
4140fi
4141LEX=$ac_cv_prog_LEX
4142if test -n "$LEX"; then
4143 echo "$as_me:$LINENO: result: $LEX" >&5
4144echo "${ECHO_T}$LEX" >&6
4145else
4146 echo "$as_me:$LINENO: result: no" >&5
4147echo "${ECHO_T}no" >&6
4148fi
4149
4150 test -n "$LEX" && break
4151done
4152test -n "$LEX" || LEX=":"
4153
4154if test -z "$LEXLIB"
4155then
4156 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
4157echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4158if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4159 echo $ECHO_N "(cached) $ECHO_C" >&6
4160else
4161 ac_check_lib_save_LIBS=$LIBS
4162LIBS="-lfl $LIBS"
4163cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004164/* confdefs.h. */
4165_ACEOF
4166cat confdefs.h >>conftest.$ac_ext
4167cat >>conftest.$ac_ext <<_ACEOF
4168/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004169
4170/* Override any gcc2 internal prototype to avoid an error. */
4171#ifdef __cplusplus
4172extern "C"
4173#endif
4174/* We use char because int might match the return type of a gcc2
4175 builtin and then its argument prototype would still apply. */
4176char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004177int
4178main ()
4179{
4180yywrap ();
4181 ;
4182 return 0;
4183}
4184_ACEOF
4185rm -f conftest.$ac_objext conftest$ac_exeext
4186if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004187 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004188 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004194 { ac_try='test -z "$ac_c_werror_flag"
4195 || test ! -s conftest.err'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4197 (eval $ac_try) 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; } &&
4201 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4203 (eval $ac_try) 2>&5
4204 ac_status=$?
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); }; }; then
4207 ac_cv_lib_fl_yywrap=yes
4208else
4209 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004210sed 's/^/| /' conftest.$ac_ext >&5
4211
John Criswell7a73b802003-06-30 21:59:07 +00004212ac_cv_lib_fl_yywrap=no
4213fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004214rm -f conftest.err conftest.$ac_objext \
4215 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004216LIBS=$ac_check_lib_save_LIBS
4217fi
4218echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
4219echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4220if test $ac_cv_lib_fl_yywrap = yes; then
4221 LEXLIB="-lfl"
4222else
4223 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
4224echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4225if test "${ac_cv_lib_l_yywrap+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227else
4228 ac_check_lib_save_LIBS=$LIBS
4229LIBS="-ll $LIBS"
4230cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004231/* confdefs.h. */
4232_ACEOF
4233cat confdefs.h >>conftest.$ac_ext
4234cat >>conftest.$ac_ext <<_ACEOF
4235/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004236
4237/* Override any gcc2 internal prototype to avoid an error. */
4238#ifdef __cplusplus
4239extern "C"
4240#endif
4241/* We use char because int might match the return type of a gcc2
4242 builtin and then its argument prototype would still apply. */
4243char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00004244int
4245main ()
4246{
4247yywrap ();
4248 ;
4249 return 0;
4250}
4251_ACEOF
4252rm -f conftest.$ac_objext conftest$ac_exeext
4253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004254 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004255 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004261 { ac_try='test -z "$ac_c_werror_flag"
4262 || test ! -s conftest.err'
4263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4264 (eval $ac_try) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; } &&
4268 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270 (eval $ac_try) 2>&5
4271 ac_status=$?
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4274 ac_cv_lib_l_yywrap=yes
4275else
4276 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004277sed 's/^/| /' conftest.$ac_ext >&5
4278
John Criswell7a73b802003-06-30 21:59:07 +00004279ac_cv_lib_l_yywrap=no
4280fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004281rm -f conftest.err conftest.$ac_objext \
4282 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004283LIBS=$ac_check_lib_save_LIBS
4284fi
4285echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
4286echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4287if test $ac_cv_lib_l_yywrap = yes; then
4288 LEXLIB="-ll"
4289fi
4290
4291fi
4292
4293fi
4294
4295if test "x$LEX" != "x:"; then
4296 echo "$as_me:$LINENO: checking lex output file root" >&5
4297echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4298if test "${ac_cv_prog_lex_root+set}" = set; then
4299 echo $ECHO_N "(cached) $ECHO_C" >&6
4300else
4301 # The minimal lex program is just a single line: %%. But some broken lexes
4302# (Solaris, I think it was) want two %% lines, so accommodate them.
4303cat >conftest.l <<_ACEOF
4304%%
4305%%
4306_ACEOF
4307{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4308 (eval $LEX conftest.l) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }
4312if test -f lex.yy.c; then
4313 ac_cv_prog_lex_root=lex.yy
4314elif test -f lexyy.c; then
4315 ac_cv_prog_lex_root=lexyy
4316else
4317 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
4318echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4319 { (exit 1); exit 1; }; }
4320fi
4321fi
4322echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
4323echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
4324rm -f conftest.l
4325LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4326
4327echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
4328echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4329if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331else
4332 # POSIX says lex can declare yytext either as a pointer or an array; the
4333# default is implementation-dependent. Figure out which it is, since
4334# not all implementations provide the %pointer and %array declarations.
4335ac_cv_prog_lex_yytext_pointer=no
4336echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4337ac_save_LIBS=$LIBS
4338LIBS="$LIBS $LEXLIB"
4339cat >conftest.$ac_ext <<_ACEOF
4340`cat $LEX_OUTPUT_ROOT.c`
4341_ACEOF
4342rm -f conftest.$ac_objext conftest$ac_exeext
4343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004344 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004345 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004351 { ac_try='test -z "$ac_c_werror_flag"
4352 || test ! -s conftest.err'
4353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; } &&
4358 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00004359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 (eval $ac_try) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; }; then
4364 ac_cv_prog_lex_yytext_pointer=yes
4365else
4366 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004367sed 's/^/| /' conftest.$ac_ext >&5
4368
John Criswell7a73b802003-06-30 21:59:07 +00004369fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004370rm -f conftest.err conftest.$ac_objext \
4371 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004372LIBS=$ac_save_LIBS
4373rm -f "${LEX_OUTPUT_ROOT}.c"
4374
4375fi
4376echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
4377echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4378if test $ac_cv_prog_lex_yytext_pointer = yes; then
4379
4380cat >>confdefs.h <<\_ACEOF
4381#define YYTEXT_POINTER 1
4382_ACEOF
4383
4384fi
4385
4386fi
4387
4388fi
4389echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
4390echo "${ECHO_T}$ac_cv_has_flex" >&6
4391if test "$LEX" != "flex"; then
4392 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
4393echo "$as_me: error: flex not found but required" >&2;}
4394 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00004395else
4396 FLEX=flex
4397
John Criswell7a73b802003-06-30 21:59:07 +00004398fi
4399
4400echo "$as_me:$LINENO: checking " >&5
4401echo $ECHO_N "checking ... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004402if test "${llvm_cv_has_bison+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404else
4405 for ac_prog in 'bison -y' byacc
4406do
4407 # Extract the first word of "$ac_prog", so it can be a program name with args.
4408set dummy $ac_prog; ac_word=$2
4409echo "$as_me:$LINENO: checking for $ac_word" >&5
4410echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4411if test "${ac_cv_prog_YACC+set}" = set; then
4412 echo $ECHO_N "(cached) $ECHO_C" >&6
4413else
4414 if test -n "$YACC"; then
4415 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4416else
4417as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418for as_dir in $PATH
4419do
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424 ac_cv_prog_YACC="$ac_prog"
4425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4427 fi
4428done
4429done
4430
4431fi
4432fi
4433YACC=$ac_cv_prog_YACC
4434if test -n "$YACC"; then
4435 echo "$as_me:$LINENO: result: $YACC" >&5
4436echo "${ECHO_T}$YACC" >&6
4437else
4438 echo "$as_me:$LINENO: result: no" >&5
4439echo "${ECHO_T}no" >&6
4440fi
4441
4442 test -n "$YACC" && break
4443done
4444test -n "$YACC" || YACC="yacc"
4445
4446
4447fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +00004448echo "$as_me:$LINENO: result: $llvm_cv_has_bison" >&5
4449echo "${ECHO_T}$llvm_cv_has_bison" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004450if test "$YACC" != "bison -y"; then
4451 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
4452echo "$as_me: error: bison not found but required" >&2;}
4453 { (exit 1); exit 1; }; }
4454else
Brian Gaeke12810632004-01-13 06:52:10 +00004455 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00004456
4457fi
4458
Reid Spencer17795972004-11-18 09:47:37 +00004459
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004460echo "$as_me:$LINENO: checking for GNU make" >&5
4461echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
4462if test "${llvm_cv_gnu_make_command+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004463 echo $ECHO_N "(cached) $ECHO_C" >&6
4464else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004465 llvm_cv_gnu_make_command=''
4466 for a in "$MAKE" make gmake gnumake ; do
4467 if test -z "$a" ; then continue ; fi ;
4468 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
4469 then
4470 llvm_cv_gnu_make_command=$a ;
4471 break;
John Criswell47fdd832003-07-14 16:52:07 +00004472 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004473 done
John Criswell7a73b802003-06-30 21:59:07 +00004474fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004475echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
4476echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6
4477 if test "x$llvm_cv_gnu_make_command" != "x" ; then
4478 ifGNUmake='' ;
4479 else
4480 ifGNUmake='#' ;
4481 echo "$as_me:$LINENO: result: \"Not found\"" >&5
4482echo "${ECHO_T}\"Not found\"" >&6;
4483 fi
John Criswell7a73b802003-06-30 21:59:07 +00004484
John Criswell7a73b802003-06-30 21:59:07 +00004485
4486echo "$as_me:$LINENO: checking whether ln -s works" >&5
4487echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4488LN_S=$as_ln_s
4489if test "$LN_S" = "ln -s"; then
4490 echo "$as_me:$LINENO: result: yes" >&5
4491echo "${ECHO_T}yes" >&6
4492else
4493 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4494echo "${ECHO_T}no, using $LN_S" >&6
4495fi
4496
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004497# Extract the first word of "date", so it can be a program name with args.
4498set dummy date; ac_word=$2
4499echo "$as_me:$LINENO: checking for $ac_word" >&5
4500echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4501if test "${ac_cv_path_DATE+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004502 echo $ECHO_N "(cached) $ECHO_C" >&6
4503else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004504 case $DATE in
4505 [\\/]* | ?:[\\/]*)
4506 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
John Criswell7a73b802003-06-30 21:59:07 +00004507 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004508 *)
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_exec_ext in '' $ac_executable_extensions; do
4515 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4516 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
4517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4518 break 2
John Criswell7a73b802003-06-30 21:59:07 +00004519 fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004520done
4521done
John Criswell7a73b802003-06-30 21:59:07 +00004522
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004523 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
John Criswell47fdd832003-07-14 16:52:07 +00004524 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004525esac
John Criswell7a73b802003-06-30 21:59:07 +00004526fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004527DATE=$ac_cv_path_DATE
John Criswell7a73b802003-06-30 21:59:07 +00004528
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004529if test -n "$DATE"; then
4530 echo "$as_me:$LINENO: result: $DATE" >&5
4531echo "${ECHO_T}$DATE" >&6
4532else
4533 echo "$as_me:$LINENO: result: no" >&5
4534echo "${ECHO_T}no" >&6
4535fi
John Criswell7a73b802003-06-30 21:59:07 +00004536
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004537# Extract the first word of "find", so it can be a program name with args.
4538set dummy find; ac_word=$2
4539echo "$as_me:$LINENO: checking for $ac_word" >&5
4540echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4541if test "${ac_cv_path_FIND+set}" = set; then
John Criswell47fdd832003-07-14 16:52:07 +00004542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543else
Reid Spencer2bc7bd52004-11-29 12:29:58 +00004544 case $FIND in
4545 [\\/]* | ?:[\\/]*)
4546 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4547 ;;
4548 *)
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4550for as_dir in $PATH
4551do
4552 IFS=$as_save_IFS
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4558 break 2
4559 fi
4560done
4561done
4562
4563 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
4564 ;;
4565esac
4566fi
4567FIND=$ac_cv_path_FIND
4568
4569if test -n "$FIND"; then
4570 echo "$as_me:$LINENO: result: $FIND" >&5
4571echo "${ECHO_T}$FIND" >&6
4572else
4573 echo "$as_me:$LINENO: result: no" >&5
4574echo "${ECHO_T}no" >&6
4575fi
4576
4577# Extract the first word of "grep", so it can be a program name with args.
4578set dummy grep; ac_word=$2
4579echo "$as_me:$LINENO: checking for $ac_word" >&5
4580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4581if test "${ac_cv_path_GREP+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583else
4584 case $GREP in
4585 [\\/]* | ?:[\\/]*)
4586 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
4587 ;;
4588 *)
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590for as_dir in $PATH
4591do
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4596 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4599 fi
4600done
4601done
4602
4603 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
4604 ;;
4605esac
4606fi
4607GREP=$ac_cv_path_GREP
4608
4609if test -n "$GREP"; then
4610 echo "$as_me:$LINENO: result: $GREP" >&5
4611echo "${ECHO_T}$GREP" >&6
4612else
4613 echo "$as_me:$LINENO: result: no" >&5
4614echo "${ECHO_T}no" >&6
4615fi
4616
4617# Extract the first word of "mkdir", so it can be a program name with args.
4618set dummy mkdir; ac_word=$2
4619echo "$as_me:$LINENO: checking for $ac_word" >&5
4620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4621if test "${ac_cv_path_MKDIR+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623else
4624 case $MKDIR in
4625 [\\/]* | ?:[\\/]*)
4626 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4627 ;;
4628 *)
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630for as_dir in $PATH
4631do
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4636 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4639 fi
4640done
4641done
4642
4643 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
4644 ;;
4645esac
4646fi
4647MKDIR=$ac_cv_path_MKDIR
4648
4649if test -n "$MKDIR"; then
4650 echo "$as_me:$LINENO: result: $MKDIR" >&5
4651echo "${ECHO_T}$MKDIR" >&6
4652else
4653 echo "$as_me:$LINENO: result: no" >&5
4654echo "${ECHO_T}no" >&6
4655fi
4656
4657# Extract the first word of "mv", so it can be a program name with args.
4658set dummy mv; ac_word=$2
4659echo "$as_me:$LINENO: checking for $ac_word" >&5
4660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4661if test "${ac_cv_path_MV+set}" = set; then
4662 echo $ECHO_N "(cached) $ECHO_C" >&6
4663else
4664 case $MV in
4665 [\\/]* | ?:[\\/]*)
4666 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4667 ;;
4668 *)
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670for as_dir in $PATH
4671do
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4679 fi
4680done
4681done
4682
4683 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4684 ;;
4685esac
4686fi
4687MV=$ac_cv_path_MV
4688
4689if test -n "$MV"; then
4690 echo "$as_me:$LINENO: result: $MV" >&5
4691echo "${ECHO_T}$MV" >&6
4692else
4693 echo "$as_me:$LINENO: result: no" >&5
4694echo "${ECHO_T}no" >&6
4695fi
4696
4697# Extract the first word of "pax", so it can be a program name with args.
4698set dummy pax; ac_word=$2
4699echo "$as_me:$LINENO: checking for $ac_word" >&5
4700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701if test "${ac_cv_path_PAX+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
4704 case $PAX in
4705 [\\/]* | ?:[\\/]*)
4706 ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
4707 ;;
4708 *)
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH
4711do
4712 IFS=$as_save_IFS
4713 test -z "$as_dir" && as_dir=.
4714 for ac_exec_ext in '' $ac_executable_extensions; do
4715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4716 ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
4717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718 break 2
4719 fi
4720done
4721done
4722
4723 test -z "$ac_cv_path_PAX" && ac_cv_path_PAX="pax"
4724 ;;
4725esac
4726fi
4727PAX=$ac_cv_path_PAX
4728
4729if test -n "$PAX"; then
4730 echo "$as_me:$LINENO: result: $PAX" >&5
4731echo "${ECHO_T}$PAX" >&6
4732else
4733 echo "$as_me:$LINENO: result: no" >&5
4734echo "${ECHO_T}no" >&6
4735fi
4736
4737if test -n "$ac_tool_prefix"; then
4738 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4739set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4740echo "$as_me:$LINENO: checking for $ac_word" >&5
4741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4742if test "${ac_cv_prog_RANLIB+set}" = set; then
4743 echo $ECHO_N "(cached) $ECHO_C" >&6
4744else
4745 if test -n "$RANLIB"; then
4746 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4747else
4748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749for as_dir in $PATH
4750do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_exec_ext in '' $ac_executable_extensions; do
4754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4755 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 break 2
4758 fi
4759done
4760done
4761
4762fi
4763fi
4764RANLIB=$ac_cv_prog_RANLIB
4765if test -n "$RANLIB"; then
4766 echo "$as_me:$LINENO: result: $RANLIB" >&5
4767echo "${ECHO_T}$RANLIB" >&6
4768else
4769 echo "$as_me:$LINENO: result: no" >&5
4770echo "${ECHO_T}no" >&6
4771fi
4772
4773fi
4774if test -z "$ac_cv_prog_RANLIB"; then
4775 ac_ct_RANLIB=$RANLIB
4776 # Extract the first word of "ranlib", so it can be a program name with args.
4777set dummy ranlib; ac_word=$2
4778echo "$as_me:$LINENO: checking for $ac_word" >&5
4779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4780if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782else
4783 if test -n "$ac_ct_RANLIB"; then
4784 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4785else
4786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787for as_dir in $PATH
4788do
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4793 ac_cv_prog_ac_ct_RANLIB="ranlib"
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4796 fi
4797done
4798done
4799
4800 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4801fi
4802fi
4803ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4804if test -n "$ac_ct_RANLIB"; then
4805 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4806echo "${ECHO_T}$ac_ct_RANLIB" >&6
4807else
4808 echo "$as_me:$LINENO: result: no" >&5
4809echo "${ECHO_T}no" >&6
4810fi
4811
4812 RANLIB=$ac_ct_RANLIB
4813else
4814 RANLIB="$ac_cv_prog_RANLIB"
4815fi
4816
4817# Extract the first word of "rm", so it can be a program name with args.
4818set dummy rm; ac_word=$2
4819echo "$as_me:$LINENO: checking for $ac_word" >&5
4820echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4821if test "${ac_cv_path_RM+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823else
4824 case $RM in
4825 [\\/]* | ?:[\\/]*)
4826 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4827 ;;
4828 *)
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832 IFS=$as_save_IFS
4833 test -z "$as_dir" && as_dir=.
4834 for ac_exec_ext in '' $ac_executable_extensions; do
4835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4838 break 2
4839 fi
4840done
4841done
4842
4843 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4844 ;;
4845esac
4846fi
4847RM=$ac_cv_path_RM
4848
4849if test -n "$RM"; then
4850 echo "$as_me:$LINENO: result: $RM" >&5
4851echo "${ECHO_T}$RM" >&6
4852else
4853 echo "$as_me:$LINENO: result: no" >&5
4854echo "${ECHO_T}no" >&6
4855fi
4856
4857# Extract the first word of "sed", so it can be a program name with args.
4858set dummy sed; ac_word=$2
4859echo "$as_me:$LINENO: checking for $ac_word" >&5
4860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4861if test "${ac_cv_path_SED+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864 case $SED in
4865 [\\/]* | ?:[\\/]*)
4866 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4867 ;;
4868 *)
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4876 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880done
4881done
4882
4883 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
4884 ;;
4885esac
4886fi
4887SED=$ac_cv_path_SED
4888
4889if test -n "$SED"; then
4890 echo "$as_me:$LINENO: result: $SED" >&5
4891echo "${ECHO_T}$SED" >&6
4892else
4893 echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6
4895fi
4896
4897# Extract the first word of "tar", so it can be a program name with args.
4898set dummy tar; ac_word=$2
4899echo "$as_me:$LINENO: checking for $ac_word" >&5
4900echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4901if test "${ac_cv_path_TAR+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4903else
4904 case $TAR in
4905 [\\/]* | ?:[\\/]*)
4906 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4907 ;;
4908 *)
4909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4910for as_dir in $PATH
4911do
4912 IFS=$as_save_IFS
4913 test -z "$as_dir" && as_dir=.
4914 for ac_exec_ext in '' $ac_executable_extensions; do
4915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4916 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4918 break 2
4919 fi
4920done
4921done
4922
4923 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
4924 ;;
4925esac
4926fi
4927TAR=$ac_cv_path_TAR
4928
4929if test -n "$TAR"; then
4930 echo "$as_me:$LINENO: result: $TAR" >&5
4931echo "${ECHO_T}$TAR" >&6
4932else
4933 echo "$as_me:$LINENO: result: no" >&5
4934echo "${ECHO_T}no" >&6
4935fi
4936
4937
4938# Find a good install program. We prefer a C program (faster),
4939# so one script is as good as another. But avoid the broken or
4940# incompatible versions:
4941# SysV /etc/install, /usr/sbin/install
4942# SunOS /usr/etc/install
4943# IRIX /sbin/install
4944# AIX /bin/install
4945# AmigaOS /C/install, which installs bootblocks on floppy discs
4946# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4947# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4948# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4949# OS/2's system install, which has a completely different semantic
4950# ./install, which can be erroneously created by make from ./install.sh.
4951echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4952echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4953if test -z "$INSTALL"; then
4954if test "${ac_cv_path_install+set}" = set; then
4955 echo $ECHO_N "(cached) $ECHO_C" >&6
4956else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH
4959do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 # Account for people who put trailing slashes in PATH elements.
4963case $as_dir/ in
4964 ./ | .// | /cC/* | \
4965 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4966 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4967 /usr/ucb/* ) ;;
4968 *)
4969 # OSF1 and SCO ODT 3.0 have their own names for install.
4970 # Don't use installbsd from OSF since it installs stuff as root
4971 # by default.
4972 for ac_prog in ginstall scoinst install; do
4973 for ac_exec_ext in '' $ac_executable_extensions; do
4974 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4975 if test $ac_prog = install &&
4976 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4977 # AIX install. It has an incompatible calling convention.
4978 :
4979 elif test $ac_prog = install &&
4980 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4981 # program-specific install script used by HP pwplus--don't use.
4982 :
4983 else
4984 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4985 break 3
4986 fi
4987 fi
4988 done
4989 done
4990 ;;
4991esac
4992done
4993
4994
4995fi
4996 if test "${ac_cv_path_install+set}" = set; then
4997 INSTALL=$ac_cv_path_install
4998 else
4999 # As a last resort, use the slow shell script. We don't cache a
5000 # path for INSTALL within a source directory, because that will
5001 # break other packages using the cache if that directory is
5002 # removed, or if the path is relative.
5003 INSTALL=$ac_install_sh
5004 fi
5005fi
5006echo "$as_me:$LINENO: result: $INSTALL" >&5
5007echo "${ECHO_T}$INSTALL" >&6
5008
5009# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5010# It thinks the first close brace ends the variable substitution.
5011test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5012
5013test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5014
5015test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5016
5017
5018# Extract the first word of "bzip2", so it can be a program name with args.
5019set dummy bzip2; ac_word=$2
5020echo "$as_me:$LINENO: checking for $ac_word" >&5
5021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5022if test "${ac_cv_path_BZIP2+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024else
5025 case $BZIP2 in
5026 [\\/]* | ?:[\\/]*)
5027 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
5028 ;;
5029 *)
5030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH
5032do
5033 IFS=$as_save_IFS
5034 test -z "$as_dir" && as_dir=.
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5037 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
5038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 break 2
5040 fi
5041done
5042done
5043
5044 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="true bzip2"
5045 ;;
5046esac
5047fi
5048BZIP2=$ac_cv_path_BZIP2
5049
5050if test -n "$BZIP2"; then
5051 echo "$as_me:$LINENO: result: $BZIP2" >&5
5052echo "${ECHO_T}$BZIP2" >&6
5053else
5054 echo "$as_me:$LINENO: result: no" >&5
5055echo "${ECHO_T}no" >&6
5056fi
5057
5058# Extract the first word of "dot", so it can be a program name with args.
5059set dummy dot; ac_word=$2
5060echo "$as_me:$LINENO: checking for $ac_word" >&5
5061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5062if test "${ac_cv_path_DOT+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064else
5065 case $DOT in
5066 [\\/]* | ?:[\\/]*)
5067 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
5068 ;;
5069 *)
5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071for as_dir in $PATH
5072do
5073 IFS=$as_save_IFS
5074 test -z "$as_dir" && as_dir=.
5075 for ac_exec_ext in '' $ac_executable_extensions; do
5076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5077 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
5078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 break 2
5080 fi
5081done
5082done
5083
5084 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
5085 ;;
5086esac
5087fi
5088DOT=$ac_cv_path_DOT
5089
5090if test -n "$DOT"; then
5091 echo "$as_me:$LINENO: result: $DOT" >&5
5092echo "${ECHO_T}$DOT" >&6
5093else
5094 echo "$as_me:$LINENO: result: no" >&5
5095echo "${ECHO_T}no" >&6
5096fi
5097
5098# Extract the first word of "doxygen", so it can be a program name with args.
5099set dummy doxygen; ac_word=$2
5100echo "$as_me:$LINENO: checking for $ac_word" >&5
5101echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102if test "${ac_cv_path_DOXYGEN+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105 case $DOXYGEN in
5106 [\\/]* | ?:[\\/]*)
5107 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
5108 ;;
5109 *)
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111for as_dir in $PATH
5112do
5113 IFS=$as_save_IFS
5114 test -z "$as_dir" && as_dir=.
5115 for ac_exec_ext in '' $ac_executable_extensions; do
5116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5117 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
5118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 break 2
5120 fi
5121done
5122done
5123
5124 test -z "$ac_cv_path_DOXYGEN" && ac_cv_path_DOXYGEN="true doxygen"
5125 ;;
5126esac
5127fi
5128DOXYGEN=$ac_cv_path_DOXYGEN
5129
5130if test -n "$DOXYGEN"; then
5131 echo "$as_me:$LINENO: result: $DOXYGEN" >&5
5132echo "${ECHO_T}$DOXYGEN" >&6
5133else
5134 echo "$as_me:$LINENO: result: no" >&5
5135echo "${ECHO_T}no" >&6
5136fi
5137
5138# Extract the first word of "etags", so it can be a program name with args.
5139set dummy etags; ac_word=$2
5140echo "$as_me:$LINENO: checking for $ac_word" >&5
5141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5142if test "${ac_cv_path_ETAGS+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145 case $ETAGS in
5146 [\\/]* | ?:[\\/]*)
5147 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
5148 ;;
5149 *)
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151for as_dir in $PATH
5152do
5153 IFS=$as_save_IFS
5154 test -z "$as_dir" && as_dir=.
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5157 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159 break 2
5160 fi
5161done
5162done
5163
5164 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
5165 ;;
5166esac
5167fi
5168ETAGS=$ac_cv_path_ETAGS
5169
5170if test -n "$ETAGS"; then
5171 echo "$as_me:$LINENO: result: $ETAGS" >&5
5172echo "${ECHO_T}$ETAGS" >&6
5173else
5174 echo "$as_me:$LINENO: result: no" >&5
5175echo "${ECHO_T}no" >&6
5176fi
5177
5178# Extract the first word of "groff", so it can be a program name with args.
5179set dummy groff; ac_word=$2
5180echo "$as_me:$LINENO: checking for $ac_word" >&5
5181echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5182if test "${ac_cv_path_GROFF+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5184else
5185 case $GROFF in
5186 [\\/]* | ?:[\\/]*)
5187 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
5188 ;;
5189 *)
5190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191for as_dir in $PATH
5192do
5193 IFS=$as_save_IFS
5194 test -z "$as_dir" && as_dir=.
5195 for ac_exec_ext in '' $ac_executable_extensions; do
5196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5199 break 2
5200 fi
5201done
5202done
5203
5204 test -z "$ac_cv_path_GROFF" && ac_cv_path_GROFF="true groff"
5205 ;;
5206esac
5207fi
5208GROFF=$ac_cv_path_GROFF
5209
5210if test -n "$GROFF"; then
5211 echo "$as_me:$LINENO: result: $GROFF" >&5
5212echo "${ECHO_T}$GROFF" >&6
5213else
5214 echo "$as_me:$LINENO: result: no" >&5
5215echo "${ECHO_T}no" >&6
5216fi
5217
5218# Extract the first word of "gzip", so it can be a program name with args.
5219set dummy gzip; ac_word=$2
5220echo "$as_me:$LINENO: checking for $ac_word" >&5
5221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5222if test "${ac_cv_path_GZIP+set}" = set; then
5223 echo $ECHO_N "(cached) $ECHO_C" >&6
5224else
5225 case $GZIP in
5226 [\\/]* | ?:[\\/]*)
5227 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
5228 ;;
5229 *)
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
5236 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
5238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5240 fi
5241done
5242done
5243
5244 test -z "$ac_cv_path_GZIP" && ac_cv_path_GZIP="true gzip"
5245 ;;
5246esac
5247fi
5248GZIP=$ac_cv_path_GZIP
5249
5250if test -n "$GZIP"; then
5251 echo "$as_me:$LINENO: result: $GZIP" >&5
5252echo "${ECHO_T}$GZIP" >&6
5253else
5254 echo "$as_me:$LINENO: result: no" >&5
5255echo "${ECHO_T}no" >&6
5256fi
5257
5258# Extract the first word of "pod2html", so it can be a program name with args.
5259set dummy pod2html; ac_word=$2
5260echo "$as_me:$LINENO: checking for $ac_word" >&5
5261echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262if test "${ac_cv_path_POD2HTML+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264else
5265 case $POD2HTML in
5266 [\\/]* | ?:[\\/]*)
5267 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
5268 ;;
5269 *)
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271for as_dir in $PATH
5272do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5277 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5280 fi
5281done
5282done
5283
5284 test -z "$ac_cv_path_POD2HTML" && ac_cv_path_POD2HTML="true pod2html"
5285 ;;
5286esac
5287fi
5288POD2HTML=$ac_cv_path_POD2HTML
5289
5290if test -n "$POD2HTML"; then
5291 echo "$as_me:$LINENO: result: $POD2HTML" >&5
5292echo "${ECHO_T}$POD2HTML" >&6
5293else
5294 echo "$as_me:$LINENO: result: no" >&5
5295echo "${ECHO_T}no" >&6
5296fi
5297
5298# Extract the first word of "pod2man", so it can be a program name with args.
5299set dummy pod2man; ac_word=$2
5300echo "$as_me:$LINENO: checking for $ac_word" >&5
5301echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5302if test "${ac_cv_path_POD2MAN+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5304else
5305 case $POD2MAN in
5306 [\\/]* | ?:[\\/]*)
5307 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
5308 ;;
5309 *)
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH
5312do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_exec_ext in '' $ac_executable_extensions; do
5316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
5318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319 break 2
5320 fi
5321done
5322done
5323
5324 test -z "$ac_cv_path_POD2MAN" && ac_cv_path_POD2MAN="true pod2man"
5325 ;;
5326esac
5327fi
5328POD2MAN=$ac_cv_path_POD2MAN
5329
5330if test -n "$POD2MAN"; then
5331 echo "$as_me:$LINENO: result: $POD2MAN" >&5
5332echo "${ECHO_T}$POD2MAN" >&6
5333else
5334 echo "$as_me:$LINENO: result: no" >&5
5335echo "${ECHO_T}no" >&6
5336fi
5337
5338# Extract the first word of "python", so it can be a program name with args.
5339set dummy python; ac_word=$2
5340echo "$as_me:$LINENO: checking for $ac_word" >&5
5341echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5342if test "${ac_cv_path_PYTHON+set}" = set; then
5343 echo $ECHO_N "(cached) $ECHO_C" >&6
5344else
5345 case $PYTHON in
5346 [\\/]* | ?:[\\/]*)
5347 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5348 ;;
5349 *)
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351for as_dir in $PATH
5352do
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5358 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5360 fi
5361done
5362done
5363
5364 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
5365 ;;
5366esac
5367fi
5368PYTHON=$ac_cv_path_PYTHON
5369
5370if test -n "$PYTHON"; then
5371 echo "$as_me:$LINENO: result: $PYTHON" >&5
5372echo "${ECHO_T}$PYTHON" >&6
5373else
5374 echo "$as_me:$LINENO: result: no" >&5
5375echo "${ECHO_T}no" >&6
5376fi
5377
5378# Extract the first word of "qmtest", so it can be a program name with args.
5379set dummy qmtest; ac_word=$2
5380echo "$as_me:$LINENO: checking for $ac_word" >&5
5381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5382if test "${ac_cv_path_QMTEST+set}" = set; then
5383 echo $ECHO_N "(cached) $ECHO_C" >&6
5384else
5385 case $QMTEST in
5386 [\\/]* | ?:[\\/]*)
5387 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
5388 ;;
5389 *)
5390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5391for as_dir in $PATH
5392do
5393 IFS=$as_save_IFS
5394 test -z "$as_dir" && as_dir=.
5395 for ac_exec_ext in '' $ac_executable_extensions; do
5396 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5397 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
5398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 break 2
5400 fi
5401done
5402done
5403
5404 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
5405 ;;
5406esac
5407fi
5408QMTEST=$ac_cv_path_QMTEST
5409
5410if test -n "$QMTEST"; then
5411 echo "$as_me:$LINENO: result: $QMTEST" >&5
5412echo "${ECHO_T}$QMTEST" >&6
5413else
5414 echo "$as_me:$LINENO: result: no" >&5
5415echo "${ECHO_T}no" >&6
5416fi
5417
5418# Extract the first word of "runtest", so it can be a program name with args.
5419set dummy runtest; ac_word=$2
5420echo "$as_me:$LINENO: checking for $ac_word" >&5
5421echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5422if test "${ac_cv_path_RUNTEST+set}" = set; then
5423 echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425 case $RUNTEST in
5426 [\\/]* | ?:[\\/]*)
5427 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
5428 ;;
5429 *)
5430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431for as_dir in $PATH
5432do
5433 IFS=$as_save_IFS
5434 test -z "$as_dir" && as_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5437 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
5438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5439 break 2
5440 fi
5441done
5442done
5443
5444 test -z "$ac_cv_path_RUNTEST" && ac_cv_path_RUNTEST="true runtest"
5445 ;;
5446esac
5447fi
5448RUNTEST=$ac_cv_path_RUNTEST
5449
5450if test -n "$RUNTEST"; then
5451 echo "$as_me:$LINENO: result: $RUNTEST" >&5
5452echo "${ECHO_T}$RUNTEST" >&6
5453else
5454 echo "$as_me:$LINENO: result: no" >&5
5455echo "${ECHO_T}no" >&6
5456fi
5457
5458# Extract the first word of "zip", so it can be a program name with args.
5459set dummy zip; ac_word=$2
5460echo "$as_me:$LINENO: checking for $ac_word" >&5
5461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5462if test "${ac_cv_path_ZIP+set}" = set; then
5463 echo $ECHO_N "(cached) $ECHO_C" >&6
5464else
5465 case $ZIP in
5466 [\\/]* | ?:[\\/]*)
5467 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5468 ;;
5469 *)
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471for as_dir in $PATH
5472do
5473 IFS=$as_save_IFS
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5479 break 2
5480 fi
5481done
5482done
5483
5484 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="true zip"
5485 ;;
5486esac
5487fi
5488ZIP=$ac_cv_path_ZIP
5489
5490if test -n "$ZIP"; then
5491 echo "$as_me:$LINENO: result: $ZIP" >&5
5492echo "${ECHO_T}$ZIP" >&6
5493else
5494 echo "$as_me:$LINENO: result: no" >&5
5495echo "${ECHO_T}no" >&6
5496fi
5497
5498
5499echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
5500echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
5501if test "${llvm_cv_link_use_r+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503else
5504 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005505ac_cpp='$CPP $CPPFLAGS'
5506ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5507ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5508ac_compiler_gnu=$ac_cv_c_compiler_gnu
5509
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005510 oldcflags="$CFLAGS"
5511 CFLAGS="$CFLAGS -Wl,-R."
5512 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005513/* confdefs.h. */
5514_ACEOF
5515cat confdefs.h >>conftest.$ac_ext
5516cat >>conftest.$ac_ext <<_ACEOF
5517/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00005518
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005519int
5520main ()
5521{
5522int main() { return 0; }
5523 ;
5524 return 0;
5525}
John Criswell47fdd832003-07-14 16:52:07 +00005526_ACEOF
5527rm -f conftest.$ac_objext conftest$ac_exeext
5528if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005529 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005530 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005531 grep -v '^ *+' conftest.er1 >conftest.err
5532 rm -f conftest.er1
5533 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005535 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005536 { ac_try='test -z "$ac_c_werror_flag"
5537 || test ! -s conftest.err'
5538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); }; } &&
5543 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00005544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5545 (eval $ac_try) 2>&5
5546 ac_status=$?
5547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5548 (exit $ac_status); }; }; then
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005549 llvm_cv_link_use_r=yes
John Criswell7a73b802003-06-30 21:59:07 +00005550else
John Criswell47fdd832003-07-14 16:52:07 +00005551 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005552sed 's/^/| /' conftest.$ac_ext >&5
5553
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005554llvm_cv_link_use_r=no
John Criswell7a73b802003-06-30 21:59:07 +00005555fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005556rm -f conftest.err conftest.$ac_objext \
5557 conftest$ac_exeext conftest.$ac_ext
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005558 CFLAGS="$oldcflags"
5559 ac_ext=c
John Criswell47fdd832003-07-14 16:52:07 +00005560ac_cpp='$CPP $CPPFLAGS'
5561ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5562ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5563ac_compiler_gnu=$ac_cv_c_compiler_gnu
5564
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005565
John Criswell7a73b802003-06-30 21:59:07 +00005566fi
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005567echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
5568echo "${ECHO_T}$llvm_cv_link_use_r" >&6
5569if test "$llvm_cv_link_use_r" = yes ; then
5570
5571cat >>confdefs.h <<\_ACEOF
5572#define HAVE_LINK_R 1
5573_ACEOF
5574
John Criswell47fdd832003-07-14 16:52:07 +00005575 fi
John Criswell47fdd832003-07-14 16:52:07 +00005576
John Criswell47fdd832003-07-14 16:52:07 +00005577
John Criswell47fdd832003-07-14 16:52:07 +00005578
John Criswell7a73b802003-06-30 21:59:07 +00005579
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005580echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
5581echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5582if test "${ac_cv_c_const+set}" = set; then
5583 echo $ECHO_N "(cached) $ECHO_C" >&6
5584else
5585 cat >conftest.$ac_ext <<_ACEOF
5586/* confdefs.h. */
5587_ACEOF
5588cat confdefs.h >>conftest.$ac_ext
5589cat >>conftest.$ac_ext <<_ACEOF
5590/* end confdefs.h. */
5591
5592int
5593main ()
5594{
5595/* FIXME: Include the comments suggested by Paul. */
5596#ifndef __cplusplus
5597 /* Ultrix mips cc rejects this. */
5598 typedef int charset[2];
5599 const charset x;
5600 /* SunOS 4.1.1 cc rejects this. */
5601 char const *const *ccp;
5602 char **p;
5603 /* NEC SVR4.0.2 mips cc rejects this. */
5604 struct point {int x, y;};
5605 static struct point const zero = {0,0};
5606 /* AIX XL C 1.02.0.0 rejects this.
5607 It does not let you subtract one const X* pointer from another in
5608 an arm of an if-expression whose if-part is not a constant
5609 expression */
5610 const char *g = "string";
5611 ccp = &g + (g ? g-g : 0);
5612 /* HPUX 7.0 cc rejects these. */
5613 ++ccp;
5614 p = (char**) ccp;
5615 ccp = (char const *const *) p;
5616 { /* SCO 3.2v4 cc rejects this. */
5617 char *t;
5618 char const *s = 0 ? (char *) 0 : (char const *) 0;
5619
5620 *t++ = 0;
5621 }
5622 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5623 int x[] = {25, 17};
5624 const int *foo = &x[0];
5625 ++foo;
5626 }
5627 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5628 typedef const int *iptr;
5629 iptr p = 0;
5630 ++p;
5631 }
5632 { /* AIX XL C 1.02.0.0 rejects this saying
5633 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5634 struct s { int j; const int *ap[3]; };
5635 struct s *b; b->j = 5;
5636 }
5637 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5638 const int foo = 10;
5639 }
5640#endif
5641
5642 ;
5643 return 0;
5644}
5645_ACEOF
5646rm -f conftest.$ac_objext
5647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5648 (eval $ac_compile) 2>conftest.er1
5649 ac_status=$?
5650 grep -v '^ *+' conftest.er1 >conftest.err
5651 rm -f conftest.er1
5652 cat conftest.err >&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } &&
5655 { ac_try='test -z "$ac_c_werror_flag"
5656 || test ! -s conftest.err'
5657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5658 (eval $ac_try) 2>&5
5659 ac_status=$?
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); }; } &&
5662 { ac_try='test -s conftest.$ac_objext'
5663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5664 (eval $ac_try) 2>&5
5665 ac_status=$?
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); }; }; then
5668 ac_cv_c_const=yes
5669else
5670 echo "$as_me: failed program was:" >&5
5671sed 's/^/| /' conftest.$ac_ext >&5
5672
5673ac_cv_c_const=no
5674fi
5675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5676fi
5677echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5678echo "${ECHO_T}$ac_cv_c_const" >&6
5679if test $ac_cv_c_const = no; then
5680
5681cat >>confdefs.h <<\_ACEOF
5682#define const
5683_ACEOF
5684
5685fi
5686
5687
5688echo "$as_me:$LINENO: checking for egrep" >&5
5689echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5690if test "${ac_cv_prog_egrep+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5692else
5693 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5694 then ac_cv_prog_egrep='grep -E'
5695 else ac_cv_prog_egrep='egrep'
5696 fi
5697fi
5698echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5699echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5700 EGREP=$ac_cv_prog_egrep
5701
John Criswell7a73b802003-06-30 21:59:07 +00005702
5703echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5704echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5705if test "${ac_cv_header_stdc+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005709/* confdefs.h. */
5710_ACEOF
5711cat confdefs.h >>conftest.$ac_ext
5712cat >>conftest.$ac_ext <<_ACEOF
5713/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005714#include <stdlib.h>
5715#include <stdarg.h>
5716#include <string.h>
5717#include <float.h>
5718
John Criswell0c38eaf2003-09-10 15:17:25 +00005719int
5720main ()
5721{
5722
5723 ;
5724 return 0;
5725}
John Criswell7a73b802003-06-30 21:59:07 +00005726_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005727rm -f conftest.$ac_objext
5728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005729 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00005730 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005731 grep -v '^ *+' conftest.er1 >conftest.err
5732 rm -f conftest.er1
5733 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00005734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005735 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005736 { ac_try='test -z "$ac_c_werror_flag"
5737 || test ! -s conftest.err'
5738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5739 (eval $ac_try) 2>&5
5740 ac_status=$?
5741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5742 (exit $ac_status); }; } &&
5743 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00005744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5745 (eval $ac_try) 2>&5
5746 ac_status=$?
5747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5748 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00005749 ac_cv_header_stdc=yes
5750else
5751 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005752sed 's/^/| /' conftest.$ac_ext >&5
5753
5754ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00005755fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005757
5758if test $ac_cv_header_stdc = yes; then
5759 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5760 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005761/* confdefs.h. */
5762_ACEOF
5763cat confdefs.h >>conftest.$ac_ext
5764cat >>conftest.$ac_ext <<_ACEOF
5765/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005766#include <string.h>
5767
5768_ACEOF
5769if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005770 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005771 :
5772else
5773 ac_cv_header_stdc=no
5774fi
5775rm -f conftest*
5776
5777fi
5778
5779if test $ac_cv_header_stdc = yes; then
5780 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5781 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005782/* confdefs.h. */
5783_ACEOF
5784cat confdefs.h >>conftest.$ac_ext
5785cat >>conftest.$ac_ext <<_ACEOF
5786/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005787#include <stdlib.h>
5788
5789_ACEOF
5790if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00005791 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00005792 :
5793else
5794 ac_cv_header_stdc=no
5795fi
5796rm -f conftest*
5797
5798fi
5799
5800if test $ac_cv_header_stdc = yes; then
5801 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5802 if test "$cross_compiling" = yes; then
5803 :
5804else
5805 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00005806/* confdefs.h. */
5807_ACEOF
5808cat confdefs.h >>conftest.$ac_ext
5809cat >>conftest.$ac_ext <<_ACEOF
5810/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00005811#include <ctype.h>
5812#if ((' ' & 0x0FF) == 0x020)
5813# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5814# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5815#else
John Criswell0c38eaf2003-09-10 15:17:25 +00005816# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00005817 (('a' <= (c) && (c) <= 'i') \
5818 || ('j' <= (c) && (c) <= 'r') \
5819 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00005820# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5821#endif
5822
5823#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5824int
5825main ()
5826{
5827 int i;
5828 for (i = 0; i < 256; i++)
5829 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00005830 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00005831 exit(2);
5832 exit (0);
5833}
5834_ACEOF
5835rm -f conftest$ac_exeext
5836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5837 (eval $ac_link) 2>&5
5838 ac_status=$?
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5842 (eval $ac_try) 2>&5
5843 ac_status=$?
5844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5845 (exit $ac_status); }; }; then
5846 :
5847else
5848 echo "$as_me: program exited with status $ac_status" >&5
5849echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005850sed 's/^/| /' conftest.$ac_ext >&5
5851
John Criswell7a73b802003-06-30 21:59:07 +00005852( exit $ac_status )
5853ac_cv_header_stdc=no
5854fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005855rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00005856fi
5857fi
5858fi
5859echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5860echo "${ECHO_T}$ac_cv_header_stdc" >&6
5861if test $ac_cv_header_stdc = yes; then
5862
5863cat >>confdefs.h <<\_ACEOF
5864#define STDC_HEADERS 1
5865_ACEOF
5866
5867fi
5868
Reid Spencer2bc7bd52004-11-29 12:29:58 +00005869
5870
5871
5872
5873
5874ac_header_dirent=no
5875for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5876 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5877echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5878echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
5879if eval "test \"\${$as_ac_Header+set}\" = set"; then
5880 echo $ECHO_N "(cached) $ECHO_C" >&6
5881else
5882 cat >conftest.$ac_ext <<_ACEOF
5883/* confdefs.h. */
5884_ACEOF
5885cat confdefs.h >>conftest.$ac_ext
5886cat >>conftest.$ac_ext <<_ACEOF
5887/* end confdefs.h. */
5888#include <sys/types.h>
5889#include <$ac_hdr>
5890
5891int
5892main ()
5893{
5894if ((DIR *) 0)
5895return 0;
5896 ;
5897 return 0;
5898}
5899_ACEOF
5900rm -f conftest.$ac_objext
5901if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5902 (eval $ac_compile) 2>conftest.er1
5903 ac_status=$?
5904 grep -v '^ *+' conftest.er1 >conftest.err
5905 rm -f conftest.er1
5906 cat conftest.err >&5
5907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5908 (exit $ac_status); } &&
5909 { ac_try='test -z "$ac_c_werror_flag"
5910 || test ! -s conftest.err'
5911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5912 (eval $ac_try) 2>&5
5913 ac_status=$?
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; } &&
5916 { ac_try='test -s conftest.$ac_objext'
5917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5918 (eval $ac_try) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 eval "$as_ac_Header=yes"
5923else
5924 echo "$as_me: failed program was:" >&5
5925sed 's/^/| /' conftest.$ac_ext >&5
5926
5927eval "$as_ac_Header=no"
5928fi
5929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5930fi
5931echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5932echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5933if test `eval echo '${'$as_ac_Header'}'` = yes; then
5934 cat >>confdefs.h <<_ACEOF
5935#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5936_ACEOF
5937
5938ac_header_dirent=$ac_hdr; break
5939fi
5940
5941done
5942# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5943if test $ac_header_dirent = dirent.h; then
5944 echo "$as_me:$LINENO: checking for library containing opendir" >&5
5945echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
5946if test "${ac_cv_search_opendir+set}" = set; then
5947 echo $ECHO_N "(cached) $ECHO_C" >&6
5948else
5949 ac_func_search_save_LIBS=$LIBS
5950ac_cv_search_opendir=no
5951cat >conftest.$ac_ext <<_ACEOF
5952/* confdefs.h. */
5953_ACEOF
5954cat confdefs.h >>conftest.$ac_ext
5955cat >>conftest.$ac_ext <<_ACEOF
5956/* end confdefs.h. */
5957
5958/* Override any gcc2 internal prototype to avoid an error. */
5959#ifdef __cplusplus
5960extern "C"
5961#endif
5962/* We use char because int might match the return type of a gcc2
5963 builtin and then its argument prototype would still apply. */
5964char opendir ();
5965int
5966main ()
5967{
5968opendir ();
5969 ;
5970 return 0;
5971}
5972_ACEOF
5973rm -f conftest.$ac_objext conftest$ac_exeext
5974if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5975 (eval $ac_link) 2>conftest.er1
5976 ac_status=$?
5977 grep -v '^ *+' conftest.er1 >conftest.err
5978 rm -f conftest.er1
5979 cat conftest.err >&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); } &&
5982 { ac_try='test -z "$ac_c_werror_flag"
5983 || test ! -s conftest.err'
5984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5985 (eval $ac_try) 2>&5
5986 ac_status=$?
5987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5988 (exit $ac_status); }; } &&
5989 { ac_try='test -s conftest$ac_exeext'
5990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5991 (eval $ac_try) 2>&5
5992 ac_status=$?
5993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994 (exit $ac_status); }; }; then
5995 ac_cv_search_opendir="none required"
5996else
5997 echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000fi
6001rm -f conftest.err conftest.$ac_objext \
6002 conftest$ac_exeext conftest.$ac_ext
6003if test "$ac_cv_search_opendir" = no; then
6004 for ac_lib in dir; do
6005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6006 cat >conftest.$ac_ext <<_ACEOF
6007/* confdefs.h. */
6008_ACEOF
6009cat confdefs.h >>conftest.$ac_ext
6010cat >>conftest.$ac_ext <<_ACEOF
6011/* end confdefs.h. */
6012
6013/* Override any gcc2 internal prototype to avoid an error. */
6014#ifdef __cplusplus
6015extern "C"
6016#endif
6017/* We use char because int might match the return type of a gcc2
6018 builtin and then its argument prototype would still apply. */
6019char opendir ();
6020int
6021main ()
6022{
6023opendir ();
6024 ;
6025 return 0;
6026}
6027_ACEOF
6028rm -f conftest.$ac_objext conftest$ac_exeext
6029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6030 (eval $ac_link) 2>conftest.er1
6031 ac_status=$?
6032 grep -v '^ *+' conftest.er1 >conftest.err
6033 rm -f conftest.er1
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } &&
6037 { ac_try='test -z "$ac_c_werror_flag"
6038 || test ! -s conftest.err'
6039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6040 (eval $ac_try) 2>&5
6041 ac_status=$?
6042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6043 (exit $ac_status); }; } &&
6044 { ac_try='test -s conftest$ac_exeext'
6045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6046 (eval $ac_try) 2>&5
6047 ac_status=$?
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; }; then
6050 ac_cv_search_opendir="-l$ac_lib"
6051break
6052else
6053 echo "$as_me: failed program was:" >&5
6054sed 's/^/| /' conftest.$ac_ext >&5
6055
6056fi
6057rm -f conftest.err conftest.$ac_objext \
6058 conftest$ac_exeext conftest.$ac_ext
6059 done
6060fi
6061LIBS=$ac_func_search_save_LIBS
6062fi
6063echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6064echo "${ECHO_T}$ac_cv_search_opendir" >&6
6065if test "$ac_cv_search_opendir" != no; then
6066 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6067
6068fi
6069
6070else
6071 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6072echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6073if test "${ac_cv_search_opendir+set}" = set; then
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075else
6076 ac_func_search_save_LIBS=$LIBS
6077ac_cv_search_opendir=no
6078cat >conftest.$ac_ext <<_ACEOF
6079/* confdefs.h. */
6080_ACEOF
6081cat confdefs.h >>conftest.$ac_ext
6082cat >>conftest.$ac_ext <<_ACEOF
6083/* end confdefs.h. */
6084
6085/* Override any gcc2 internal prototype to avoid an error. */
6086#ifdef __cplusplus
6087extern "C"
6088#endif
6089/* We use char because int might match the return type of a gcc2
6090 builtin and then its argument prototype would still apply. */
6091char opendir ();
6092int
6093main ()
6094{
6095opendir ();
6096 ;
6097 return 0;
6098}
6099_ACEOF
6100rm -f conftest.$ac_objext conftest$ac_exeext
6101if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6102 (eval $ac_link) 2>conftest.er1
6103 ac_status=$?
6104 grep -v '^ *+' conftest.er1 >conftest.err
6105 rm -f conftest.er1
6106 cat conftest.err >&5
6107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); } &&
6109 { ac_try='test -z "$ac_c_werror_flag"
6110 || test ! -s conftest.err'
6111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6112 (eval $ac_try) 2>&5
6113 ac_status=$?
6114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6115 (exit $ac_status); }; } &&
6116 { ac_try='test -s 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 ac_cv_search_opendir="none required"
6123else
6124 echo "$as_me: failed program was:" >&5
6125sed 's/^/| /' conftest.$ac_ext >&5
6126
6127fi
6128rm -f conftest.err conftest.$ac_objext \
6129 conftest$ac_exeext conftest.$ac_ext
6130if test "$ac_cv_search_opendir" = no; then
6131 for ac_lib in x; do
6132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6133 cat >conftest.$ac_ext <<_ACEOF
6134/* confdefs.h. */
6135_ACEOF
6136cat confdefs.h >>conftest.$ac_ext
6137cat >>conftest.$ac_ext <<_ACEOF
6138/* end confdefs.h. */
6139
6140/* Override any gcc2 internal prototype to avoid an error. */
6141#ifdef __cplusplus
6142extern "C"
6143#endif
6144/* We use char because int might match the return type of a gcc2
6145 builtin and then its argument prototype would still apply. */
6146char opendir ();
6147int
6148main ()
6149{
6150opendir ();
6151 ;
6152 return 0;
6153}
6154_ACEOF
6155rm -f conftest.$ac_objext conftest$ac_exeext
6156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6157 (eval $ac_link) 2>conftest.er1
6158 ac_status=$?
6159 grep -v '^ *+' conftest.er1 >conftest.err
6160 rm -f conftest.er1
6161 cat conftest.err >&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); } &&
6164 { ac_try='test -z "$ac_c_werror_flag"
6165 || test ! -s conftest.err'
6166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6167 (eval $ac_try) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; } &&
6171 { ac_try='test -s conftest$ac_exeext'
6172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6173 (eval $ac_try) 2>&5
6174 ac_status=$?
6175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6176 (exit $ac_status); }; }; then
6177 ac_cv_search_opendir="-l$ac_lib"
6178break
6179else
6180 echo "$as_me: failed program was:" >&5
6181sed 's/^/| /' conftest.$ac_ext >&5
6182
6183fi
6184rm -f conftest.err conftest.$ac_objext \
6185 conftest$ac_exeext conftest.$ac_ext
6186 done
6187fi
6188LIBS=$ac_func_search_save_LIBS
6189fi
6190echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6191echo "${ECHO_T}$ac_cv_search_opendir" >&6
6192if test "$ac_cv_search_opendir" != no; then
6193 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6194
6195fi
6196
6197fi
6198
John Criswell7a73b802003-06-30 21:59:07 +00006199# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00006210 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00006211do
6212as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6213echo "$as_me:$LINENO: checking for $ac_header" >&5
6214echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6215if eval "test \"\${$as_ac_Header+set}\" = set"; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
6218 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006219/* confdefs.h. */
6220_ACEOF
6221cat confdefs.h >>conftest.$ac_ext
6222cat >>conftest.$ac_ext <<_ACEOF
6223/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006224$ac_includes_default
6225
6226#include <$ac_header>
6227_ACEOF
6228rm -f conftest.$ac_objext
6229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006230 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006231 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006232 grep -v '^ *+' conftest.er1 >conftest.err
6233 rm -f conftest.er1
6234 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6236 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006237 { ac_try='test -z "$ac_c_werror_flag"
6238 || test ! -s conftest.err'
6239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6240 (eval $ac_try) 2>&5
6241 ac_status=$?
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); }; } &&
6244 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6246 (eval $ac_try) 2>&5
6247 ac_status=$?
6248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); }; }; then
6250 eval "$as_ac_Header=yes"
6251else
6252 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006253sed 's/^/| /' conftest.$ac_ext >&5
6254
John Criswell7a73b802003-06-30 21:59:07 +00006255eval "$as_ac_Header=no"
6256fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006258fi
6259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6261if test `eval echo '${'$as_ac_Header'}'` = yes; then
6262 cat >>confdefs.h <<_ACEOF
6263#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6264_ACEOF
6265
6266fi
6267
6268done
6269
6270
6271
6272for ac_header in dlfcn.h
6273do
6274as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00006275if eval "test \"\${$as_ac_Header+set}\" = set"; then
6276 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00006277echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6278if eval "test \"\${$as_ac_Header+set}\" = set"; then
6279 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006280fi
6281echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6282echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006283else
Brian Gaeke0a621332004-09-08 20:38:05 +00006284 # Is the header compilable?
6285echo "$as_me:$LINENO: checking $ac_header usability" >&5
6286echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6287cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006288/* confdefs.h. */
6289_ACEOF
6290cat confdefs.h >>conftest.$ac_ext
6291cat >>conftest.$ac_ext <<_ACEOF
6292/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006293$ac_includes_default
6294#include <$ac_header>
6295_ACEOF
6296rm -f conftest.$ac_objext
6297if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006298 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006299 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006305 { ac_try='test -z "$ac_c_werror_flag"
6306 || test ! -s conftest.err'
6307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6308 (eval $ac_try) 2>&5
6309 ac_status=$?
6310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6311 (exit $ac_status); }; } &&
6312 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00006313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6314 (eval $ac_try) 2>&5
6315 ac_status=$?
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006318 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00006319else
6320 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006321sed 's/^/| /' conftest.$ac_ext >&5
6322
Brian Gaeke0a621332004-09-08 20:38:05 +00006323ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00006324fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00006326echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6327echo "${ECHO_T}$ac_header_compiler" >&6
6328
6329# Is the header present?
6330echo "$as_me:$LINENO: checking $ac_header presence" >&5
6331echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6332cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006333/* confdefs.h. */
6334_ACEOF
6335cat confdefs.h >>conftest.$ac_ext
6336cat >>conftest.$ac_ext <<_ACEOF
6337/* end confdefs.h. */
6338#include <$ac_header>
6339_ACEOF
6340if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6341 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } >/dev/null; then
6348 if test -s conftest.err; then
6349 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00006350 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00006351 else
6352 ac_cpp_err=
6353 fi
6354else
6355 ac_cpp_err=yes
6356fi
6357if test -z "$ac_cpp_err"; then
6358 ac_header_preproc=yes
6359else
6360 echo "$as_me: failed program was:" >&5
6361sed 's/^/| /' conftest.$ac_ext >&5
6362
6363 ac_header_preproc=no
6364fi
6365rm -f conftest.err conftest.$ac_ext
6366echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6367echo "${ECHO_T}$ac_header_preproc" >&6
6368
6369# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006370case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6371 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00006372 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6373echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006374 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6375echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6376 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006377 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006378 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00006379 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6380echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006381 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6382echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6384echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6386echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6388echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00006389 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6390echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00006391 (
6392 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00006393## ----------------------------------- ##
6394## Report this to llvmbugs@cs.uiuc.edu ##
6395## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00006396_ASBOX
6397 ) |
6398 sed "s/^/$as_me: WARNING: /" >&2
6399 ;;
6400esac
6401echo "$as_me:$LINENO: checking for $ac_header" >&5
6402echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6403if eval "test \"\${$as_ac_Header+set}\" = set"; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405else
Reid Spencer2706f8c2004-09-19 23:53:36 +00006406 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00006407fi
6408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6409echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00006410
6411fi
John Criswell7a73b802003-06-30 21:59:07 +00006412if test `eval echo '${'$as_ac_Header'}'` = yes; then
6413 cat >>confdefs.h <<_ACEOF
6414#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6415_ACEOF
6416
6417fi
6418
6419done
6420
Reid Spencer2bc7bd52004-11-29 12:29:58 +00006421# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
6422if test "${enable_ltdl_install+set}" = set; then
6423 enableval="$enable_ltdl_install"
6424
6425fi;
6426
6427
6428
6429if test x"${enable_ltdl_install-no}" != xno; then
6430 INSTALL_LTDL_TRUE=
6431 INSTALL_LTDL_FALSE='#'
6432else
6433 INSTALL_LTDL_TRUE='#'
6434 INSTALL_LTDL_FALSE=
6435fi
6436
6437
6438
6439if test x"${enable_ltdl_convenience-no}" != xno; then
6440 CONVENIENCE_LTDL_TRUE=
6441 CONVENIENCE_LTDL_FALSE='#'
6442else
6443 CONVENIENCE_LTDL_TRUE='#'
6444 CONVENIENCE_LTDL_FALSE=
6445fi
6446
6447
6448echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6449echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6450library_names_spec=
6451libname_spec='lib$name'
6452soname_spec=
6453shrext_cmds=".so"
6454postinstall_cmds=
6455postuninstall_cmds=
6456finish_cmds=
6457finish_eval=
6458shlibpath_var=
6459shlibpath_overrides_runpath=unknown
6460version_type=none
6461dynamic_linker="$host_os ld.so"
6462sys_lib_dlsearch_path_spec="/lib /usr/lib"
6463if test "$GCC" = yes; then
6464 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6465 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6466 # if the path contains ";" then we assume it to be the separator
6467 # otherwise default to the standard path separator (i.e. ":") - it is
6468 # assumed that no part of a normal pathname contains ";" but that should
6469 # okay in the real world where ";" in dirpaths is itself problematic.
6470 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6471 else
6472 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6473 fi
6474else
6475 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6476fi
6477need_lib_prefix=unknown
6478hardcode_into_libs=no
6479
6480# when you set need_version to no, make sure it does not cause -set_version
6481# flags to be left without arguments
6482need_version=unknown
6483
6484case $host_os in
6485aix3*)
6486 version_type=linux
6487 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6488 shlibpath_var=LIBPATH
6489
6490 # AIX 3 has no versioning support, so we append a major version to the name.
6491 soname_spec='${libname}${release}${shared_ext}$major'
6492 ;;
6493
6494aix4* | aix5*)
6495 version_type=linux
6496 need_lib_prefix=no
6497 need_version=no
6498 hardcode_into_libs=yes
6499 if test "$host_cpu" = ia64; then
6500 # AIX 5 supports IA64
6501 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6502 shlibpath_var=LD_LIBRARY_PATH
6503 else
6504 # With GCC up to 2.95.x, collect2 would create an import file
6505 # for dependence libraries. The import file would start with
6506 # the line `#! .'. This would cause the generated library to
6507 # depend on `.', always an invalid library. This was fixed in
6508 # development snapshots of GCC prior to 3.0.
6509 case $host_os in
6510 aix4 | aix4.[01] | aix4.[01].*)
6511 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6512 echo ' yes '
6513 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6514 :
6515 else
6516 can_build_shared=no
6517 fi
6518 ;;
6519 esac
6520 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6521 # soname into executable. Probably we can add versioning support to
6522 # collect2, so additional links can be useful in future.
6523 if test "$aix_use_runtimelinking" = yes; then
6524 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6525 # instead of lib<name>.a to let people know that these are not
6526 # typical AIX shared libraries.
6527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6528 else
6529 # We preserve .a as extension for shared libraries through AIX4.2
6530 # and later when we are not doing run time linking.
6531 library_names_spec='${libname}${release}.a $libname.a'
6532 soname_spec='${libname}${release}${shared_ext}$major'
6533 fi
6534 shlibpath_var=LIBPATH
6535 fi
6536 ;;
6537
6538amigaos*)
6539 library_names_spec='$libname.ixlibrary $libname.a'
6540 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6541 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'
6542 ;;
6543
6544beos*)
6545 library_names_spec='${libname}${shared_ext}'
6546 dynamic_linker="$host_os ld.so"
6547 shlibpath_var=LIBRARY_PATH
6548 ;;
6549
6550bsdi[45]*)
6551 version_type=linux
6552 need_version=no
6553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6554 soname_spec='${libname}${release}${shared_ext}$major'
6555 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6556 shlibpath_var=LD_LIBRARY_PATH
6557 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6558 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6559 # the default ld.so.conf also contains /usr/contrib/lib and
6560 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6561 # libtool to hard-code these into programs
6562 ;;
6563
6564cygwin* | mingw* | pw32*)
6565 version_type=windows
6566 shrext_cmds=".dll"
6567 need_version=no
6568 need_lib_prefix=no
6569
6570 case $GCC,$host_os in
6571 yes,cygwin* | yes,mingw* | yes,pw32*)
6572 library_names_spec='$libname.dll.a'
6573 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6574 postinstall_cmds='base_file=`basename \${file}`~
6575 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6576 dldir=$destdir/`dirname \$dlpath`~
6577 test -d \$dldir || mkdir -p \$dldir~
6578 $install_prog $dir/$dlname \$dldir/$dlname'
6579 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6580 dlpath=$dir/\$dldll~
6581 $rm \$dlpath'
6582 shlibpath_overrides_runpath=yes
6583
6584 case $host_os in
6585 cygwin*)
6586 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6587 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6588 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
6589 ;;
6590 mingw*)
6591 # MinGW DLLs use traditional 'lib' prefix
6592 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6593 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6594 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6595 # It is most probably a Windows format PATH printed by
6596 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6597 # path with ; separators, and with drive letters. We can handle the
6598 # drive letters (cygwin fileutils understands them), so leave them,
6599 # especially as we might pass files found there to a mingw objdump,
6600 # which wouldn't understand a cygwinified path. Ahh.
6601 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6602 else
6603 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
6604 fi
6605 ;;
6606 pw32*)
6607 # pw32 DLLs use 'pw' prefix rather than 'lib'
6608 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
6609 ;;
6610 esac
6611 ;;
6612
6613 *)
6614 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6615 ;;
6616 esac
6617 dynamic_linker='Win32 ld.exe'
6618 # FIXME: first we should search . and the directory the executable is in
6619 shlibpath_var=PATH
6620 ;;
6621
6622darwin* | rhapsody*)
6623 dynamic_linker="$host_os dyld"
6624 version_type=darwin
6625 need_lib_prefix=no
6626 need_version=no
6627 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6628 soname_spec='${libname}${release}${major}$shared_ext'
6629 shlibpath_overrides_runpath=yes
6630 shlibpath_var=DYLD_LIBRARY_PATH
6631 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
6632 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6633 if test "$GCC" = yes; then
6634 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"`
6635 else
6636 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
6637 fi
6638 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6639 ;;
6640
6641dgux*)
6642 version_type=linux
6643 need_lib_prefix=no
6644 need_version=no
6645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6646 soname_spec='${libname}${release}${shared_ext}$major'
6647 shlibpath_var=LD_LIBRARY_PATH
6648 ;;
6649
6650freebsd1*)
6651 dynamic_linker=no
6652 ;;
6653
6654kfreebsd*-gnu)
6655 version_type=linux
6656 need_lib_prefix=no
6657 need_version=no
6658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6659 soname_spec='${libname}${release}${shared_ext}$major'
6660 shlibpath_var=LD_LIBRARY_PATH
6661 shlibpath_overrides_runpath=no
6662 hardcode_into_libs=yes
6663 dynamic_linker='GNU ld.so'
6664 ;;
6665
6666freebsd*)
6667 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6668 version_type=freebsd-$objformat
6669 case $version_type in
6670 freebsd-elf*)
6671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6672 need_version=no
6673 need_lib_prefix=no
6674 ;;
6675 freebsd-*)
6676 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6677 need_version=yes
6678 ;;
6679 esac
6680 shlibpath_var=LD_LIBRARY_PATH
6681 case $host_os in
6682 freebsd2*)
6683 shlibpath_overrides_runpath=yes
6684 ;;
6685 freebsd3.01* | freebsdelf3.01*)
6686 shlibpath_overrides_runpath=yes
6687 hardcode_into_libs=yes
6688 ;;
6689 *) # from 3.2 on
6690 shlibpath_overrides_runpath=no
6691 hardcode_into_libs=yes
6692 ;;
6693 esac
6694 ;;
6695
6696gnu*)
6697 version_type=linux
6698 need_lib_prefix=no
6699 need_version=no
6700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6701 soname_spec='${libname}${release}${shared_ext}$major'
6702 shlibpath_var=LD_LIBRARY_PATH
6703 hardcode_into_libs=yes
6704 ;;
6705
6706hpux9* | hpux10* | hpux11*)
6707 # Give a soname corresponding to the major version so that dld.sl refuses to
6708 # link against other versions.
6709 version_type=sunos
6710 need_lib_prefix=no
6711 need_version=no
6712 case "$host_cpu" in
6713 ia64*)
6714 shrext_cmds='.so'
6715 hardcode_into_libs=yes
6716 dynamic_linker="$host_os dld.so"
6717 shlibpath_var=LD_LIBRARY_PATH
6718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6720 soname_spec='${libname}${release}${shared_ext}$major'
6721 if test "X$HPUX_IA64_MODE" = X32; then
6722 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6723 else
6724 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6725 fi
6726 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6727 ;;
6728 hppa*64*)
6729 shrext_cmds='.sl'
6730 hardcode_into_libs=yes
6731 dynamic_linker="$host_os dld.sl"
6732 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6733 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6735 soname_spec='${libname}${release}${shared_ext}$major'
6736 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6738 ;;
6739 *)
6740 shrext_cmds='.sl'
6741 dynamic_linker="$host_os dld.sl"
6742 shlibpath_var=SHLIB_PATH
6743 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6745 soname_spec='${libname}${release}${shared_ext}$major'
6746 ;;
6747 esac
6748 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6749 postinstall_cmds='chmod 555 $lib'
6750 ;;
6751
6752irix5* | irix6* | nonstopux*)
6753 case $host_os in
6754 nonstopux*) version_type=nonstopux ;;
6755 *)
6756 if test "$lt_cv_prog_gnu_ld" = yes; then
6757 version_type=linux
6758 else
6759 version_type=irix
6760 fi ;;
6761 esac
6762 need_lib_prefix=no
6763 need_version=no
6764 soname_spec='${libname}${release}${shared_ext}$major'
6765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6766 case $host_os in
6767 irix5* | nonstopux*)
6768 libsuff= shlibsuff=
6769 ;;
6770 *)
6771 case $LD in # libtool.m4 will add one of these switches to LD
6772 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6773 libsuff= shlibsuff= libmagic=32-bit;;
6774 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6775 libsuff=32 shlibsuff=N32 libmagic=N32;;
6776 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6777 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6778 *) libsuff= shlibsuff= libmagic=never-match;;
6779 esac
6780 ;;
6781 esac
6782 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6783 shlibpath_overrides_runpath=no
6784 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6785 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6786 hardcode_into_libs=yes
6787 ;;
6788
6789# No shared lib support for Linux oldld, aout, or coff.
6790linux*oldld* | linux*aout* | linux*coff*)
6791 dynamic_linker=no
6792 ;;
6793
6794# This must be Linux ELF.
6795linux*)
6796 version_type=linux
6797 need_lib_prefix=no
6798 need_version=no
6799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6800 soname_spec='${libname}${release}${shared_ext}$major'
6801 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6802 shlibpath_var=LD_LIBRARY_PATH
6803 shlibpath_overrides_runpath=no
6804 # This implies no fast_install, which is unacceptable.
6805 # Some rework will be needed to allow for fast_install
6806 # before this can be enabled.
6807 hardcode_into_libs=yes
6808
6809 # Append ld.so.conf contents to the search path
6810 if test -f /etc/ld.so.conf; then
6811 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
6812 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
6813 fi
6814
6815 # We used to test for /lib/ld.so.1 and disable shared libraries on
6816 # powerpc, because MkLinux only supported shared libraries with the
6817 # GNU dynamic linker. Since this was broken with cross compilers,
6818 # most powerpc-linux boxes support dynamic linking these days and
6819 # people can always --disable-shared, the test was removed, and we
6820 # assume the GNU/Linux dynamic linker is in use.
6821 dynamic_linker='GNU/Linux ld.so'
6822 ;;
6823
6824knetbsd*-gnu)
6825 version_type=linux
6826 need_lib_prefix=no
6827 need_version=no
6828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6829 soname_spec='${libname}${release}${shared_ext}$major'
6830 shlibpath_var=LD_LIBRARY_PATH
6831 shlibpath_overrides_runpath=no
6832 hardcode_into_libs=yes
6833 dynamic_linker='GNU ld.so'
6834 ;;
6835
6836netbsd*)
6837 version_type=sunos
6838 need_lib_prefix=no
6839 need_version=no
6840 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6842 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6843 dynamic_linker='NetBSD (a.out) ld.so'
6844 else
6845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
6846 soname_spec='${libname}${release}${shared_ext}$major'
6847 dynamic_linker='NetBSD ld.elf_so'
6848 fi
6849 shlibpath_var=LD_LIBRARY_PATH
6850 shlibpath_overrides_runpath=yes
6851 hardcode_into_libs=yes
6852 ;;
6853
6854newsos6)
6855 version_type=linux
6856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6857 shlibpath_var=LD_LIBRARY_PATH
6858 shlibpath_overrides_runpath=yes
6859 ;;
6860
6861nto-qnx*)
6862 version_type=linux
6863 need_lib_prefix=no
6864 need_version=no
6865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6866 soname_spec='${libname}${release}${shared_ext}$major'
6867 shlibpath_var=LD_LIBRARY_PATH
6868 shlibpath_overrides_runpath=yes
6869 ;;
6870
6871openbsd*)
6872 version_type=sunos
6873 need_lib_prefix=no
6874 need_version=no
6875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6877 shlibpath_var=LD_LIBRARY_PATH
6878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6879 case $host_os in
6880 openbsd2.[89] | openbsd2.[89].*)
6881 shlibpath_overrides_runpath=no
6882 ;;
6883 *)
6884 shlibpath_overrides_runpath=yes
6885 ;;
6886 esac
6887 else
6888 shlibpath_overrides_runpath=yes
6889 fi
6890 ;;
6891
6892os2*)
6893 libname_spec='$name'
6894 shrext_cmds=".dll"
6895 need_lib_prefix=no
6896 library_names_spec='$libname${shared_ext} $libname.a'
6897 dynamic_linker='OS/2 ld.exe'
6898 shlibpath_var=LIBPATH
6899 ;;
6900
6901osf3* | osf4* | osf5*)
6902 version_type=osf
6903 need_lib_prefix=no
6904 need_version=no
6905 soname_spec='${libname}${release}${shared_ext}$major'
6906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6907 shlibpath_var=LD_LIBRARY_PATH
6908 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6909 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6910 ;;
6911
6912sco3.2v5*)
6913 version_type=osf
6914 soname_spec='${libname}${release}${shared_ext}$major'
6915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6916 shlibpath_var=LD_LIBRARY_PATH
6917 ;;
6918
6919solaris*)
6920 version_type=linux
6921 need_lib_prefix=no
6922 need_version=no
6923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6924 soname_spec='${libname}${release}${shared_ext}$major'
6925 shlibpath_var=LD_LIBRARY_PATH
6926 shlibpath_overrides_runpath=yes
6927 hardcode_into_libs=yes
6928 # ldd complains unless libraries are executable
6929 postinstall_cmds='chmod +x $lib'
6930 ;;
6931
6932sunos4*)
6933 version_type=sunos
6934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6935 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6936 shlibpath_var=LD_LIBRARY_PATH
6937 shlibpath_overrides_runpath=yes
6938 if test "$with_gnu_ld" = yes; then
6939 need_lib_prefix=no
6940 fi
6941 need_version=yes
6942 ;;
6943
6944sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6945 version_type=linux
6946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6947 soname_spec='${libname}${release}${shared_ext}$major'
6948 shlibpath_var=LD_LIBRARY_PATH
6949 case $host_vendor in
6950 sni)
6951 shlibpath_overrides_runpath=no
6952 need_lib_prefix=no
6953 export_dynamic_flag_spec='${wl}-Blargedynsym'
6954 runpath_var=LD_RUN_PATH
6955 ;;
6956 siemens)
6957 need_lib_prefix=no
6958 ;;
6959 motorola)
6960 need_lib_prefix=no
6961 need_version=no
6962 shlibpath_overrides_runpath=no
6963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6964 ;;
6965 esac
6966 ;;
6967
6968sysv4*MP*)
6969 if test -d /usr/nec ;then
6970 version_type=linux
6971 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6972 soname_spec='$libname${shared_ext}.$major'
6973 shlibpath_var=LD_LIBRARY_PATH
6974 fi
6975 ;;
6976
6977uts4*)
6978 version_type=linux
6979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6980 soname_spec='${libname}${release}${shared_ext}$major'
6981 shlibpath_var=LD_LIBRARY_PATH
6982 ;;
6983
6984*)
6985 dynamic_linker=no
6986 ;;
6987esac
6988echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6989echo "${ECHO_T}$dynamic_linker" >&6
6990test "$dynamic_linker" = no && can_build_shared=no
6991
6992
6993echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
6994echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6
6995if test "${libltdl_cv_shlibext+set}" = set; then
6996 echo $ECHO_N "(cached) $ECHO_C" >&6
6997else
6998
6999module=yes
7000eval libltdl_cv_shlibext=$shrext_cmds
7001
7002fi
7003echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
7004echo "${ECHO_T}$libltdl_cv_shlibext" >&6
7005if test -n "$libltdl_cv_shlibext"; then
7006
7007cat >>confdefs.h <<_ACEOF
7008#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
7009_ACEOF
7010
7011fi
7012
7013
7014echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
7015echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6
7016if test "${libltdl_cv_shlibpath_var+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7018else
7019 libltdl_cv_shlibpath_var="$shlibpath_var"
7020fi
7021echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
7022echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6
7023if test -n "$libltdl_cv_shlibpath_var"; then
7024
7025cat >>confdefs.h <<_ACEOF
7026#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
7027_ACEOF
7028
7029fi
7030
7031
7032echo "$as_me:$LINENO: checking for the default library search path" >&5
7033echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6
7034if test "${libltdl_cv_sys_search_path+set}" = set; then
7035 echo $ECHO_N "(cached) $ECHO_C" >&6
7036else
7037 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
7038fi
7039echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
7040echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6
7041if test -n "$libltdl_cv_sys_search_path"; then
7042 sys_search_path=
7043 for dir in $libltdl_cv_sys_search_path; do
7044 if test -z "$sys_search_path"; then
7045 sys_search_path="$dir"
7046 else
7047 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
7048 fi
7049 done
7050
7051cat >>confdefs.h <<_ACEOF
7052#define LTDL_SYSSEARCHPATH "$sys_search_path"
7053_ACEOF
7054
7055fi
7056
7057echo "$as_me:$LINENO: checking for objdir" >&5
7058echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7059if test "${libltdl_cv_objdir+set}" = set; then
7060 echo $ECHO_N "(cached) $ECHO_C" >&6
7061else
7062 libltdl_cv_objdir="$objdir"
7063 if test -n "$objdir"; then
7064 :
7065 else
7066 rm -f .libs 2>/dev/null
7067 mkdir .libs 2>/dev/null
7068 if test -d .libs; then
7069 libltdl_cv_objdir=.libs
7070 else
7071 # MS-DOS does not allow filenames that begin with a dot.
7072 libltdl_cv_objdir=_libs
7073 fi
7074 rmdir .libs 2>/dev/null
7075 fi
7076
7077fi
7078echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
7079echo "${ECHO_T}$libltdl_cv_objdir" >&6
7080
7081cat >>confdefs.h <<_ACEOF
7082#define LTDL_OBJDIR "$libltdl_cv_objdir/"
7083_ACEOF
7084
7085
7086echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
7087echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
7088if test "${lt_cv_path_NM+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090else
7091 if test -n "$NM"; then
7092 # Let the user override the test.
7093 lt_cv_path_NM="$NM"
7094else
7095 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7096 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
7097 IFS="$lt_save_ifs"
7098 test -z "$ac_dir" && ac_dir=.
7099 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
7100 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7101 # Check to see if the nm accepts a BSD-compat flag.
7102 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7103 # nm: unknown option "B" ignored
7104 # Tru64's nm complains that /dev/null is an invalid object file
7105 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7106 */dev/null* | *'Invalid file or object type'*)
7107 lt_cv_path_NM="$tmp_nm -B"
7108 break
7109 ;;
7110 *)
7111 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7112 */dev/null*)
7113 lt_cv_path_NM="$tmp_nm -p"
7114 break
7115 ;;
7116 *)
7117 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7118 continue # so that we can try to find one that supports BSD flags
7119 ;;
7120 esac
7121 esac
7122 fi
7123 done
7124 IFS="$lt_save_ifs"
7125 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
7126fi
7127fi
7128echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
7129echo "${ECHO_T}$lt_cv_path_NM" >&6
7130NM="$lt_cv_path_NM"
7131
7132
7133
7134
7135
7136# Check for command to grab the raw symbol name followed by C symbol from nm.
7137echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7138echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7139if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7140 echo $ECHO_N "(cached) $ECHO_C" >&6
7141else
7142
7143# These are sane defaults that work on at least a few old systems.
7144# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7145
7146# Character class describing NM global symbol codes.
7147symcode='[BCDEGRST]'
7148
7149# Regexp to match symbols that can be accessed directly from C.
7150sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7151
7152# Transform the above into a raw symbol and a C symbol.
7153symxfrm='\1 \2\3 \3'
7154
7155# Transform an extracted symbol line into a proper C declaration
7156lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7157
7158# Transform an extracted symbol line into symbol name and symbol address
7159lt_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'"
7160
7161# Define system-specific variables.
7162case $host_os in
7163aix*)
7164 symcode='[BCDT]'
7165 ;;
7166cygwin* | mingw* | pw32*)
7167 symcode='[ABCDGISTW]'
7168 ;;
7169hpux*) # Its linker distinguishes data from code symbols
7170 if test "$host_cpu" = ia64; then
7171 symcode='[ABCDEGRST]'
7172 fi
7173 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7174 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'"
7175 ;;
7176linux*)
7177 if test "$host_cpu" = ia64; then
7178 symcode='[ABCDGIRSTW]'
7179 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7180 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'"
7181 fi
7182 ;;
7183irix* | nonstopux*)
7184 symcode='[BCDEGRST]'
7185 ;;
7186osf*)
7187 symcode='[BCDEGQRST]'
7188 ;;
7189solaris* | sysv5*)
7190 symcode='[BDRT]'
7191 ;;
7192sysv4)
7193 symcode='[DFNSTU]'
7194 ;;
7195esac
7196
7197# Handle CRLF in mingw tool chain
7198opt_cr=
7199case $build_os in
7200mingw*)
7201 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7202 ;;
7203esac
7204
7205# If we're using GNU nm, then use its standard symbol codes.
7206case `$NM -V 2>&1` in
7207*GNU* | *'with BFD'*)
7208 symcode='[ABCDGIRSTW]' ;;
7209esac
7210
7211# Try without a prefix undercore, then with it.
7212for ac_symprfx in "" "_"; do
7213
7214 # Write the raw and C identifiers.
7215 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7216
7217 # Check to see that the pipe works correctly.
7218 pipe_works=no
7219
7220 rm -f conftest*
7221 cat > conftest.$ac_ext <<EOF
7222#ifdef __cplusplus
7223extern "C" {
7224#endif
7225char nm_test_var;
7226void nm_test_func(){}
7227#ifdef __cplusplus
7228}
7229#endif
7230int main(){nm_test_var='a';nm_test_func();return(0);}
7231EOF
7232
7233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7234 (eval $ac_compile) 2>&5
7235 ac_status=$?
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); }; then
7238 # Now try to grab the symbols.
7239 nlist=conftest.nm
7240 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7241 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7242 ac_status=$?
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); } && test -s "$nlist"; then
7245 # Try sorting and uniquifying the output.
7246 if sort "$nlist" | uniq > "$nlist"T; then
7247 mv -f "$nlist"T "$nlist"
7248 else
7249 rm -f "$nlist"T
7250 fi
7251
7252 # Make sure that we snagged all the symbols we need.
7253 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7254 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7255 cat <<EOF > conftest.$ac_ext
7256#ifdef __cplusplus
7257extern "C" {
7258#endif
7259
7260EOF
7261 # Now generate the symbol file.
7262 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7263
7264 cat <<EOF >> conftest.$ac_ext
7265#if defined (__STDC__) && __STDC__
7266# define lt_ptr_t void *
7267#else
7268# define lt_ptr_t char *
7269# define const
7270#endif
7271
7272/* The mapping between symbol names and symbols. */
7273const struct {
7274 const char *name;
7275 lt_ptr_t address;
7276}
7277lt_preloaded_symbols[] =
7278{
7279EOF
7280 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7281 cat <<\EOF >> conftest.$ac_ext
7282 {0, (lt_ptr_t) 0}
7283};
7284
7285#ifdef __cplusplus
7286}
7287#endif
7288EOF
7289 # Now try linking the two files.
7290 mv conftest.$ac_objext conftstm.$ac_objext
7291 lt_save_LIBS="$LIBS"
7292 lt_save_CFLAGS="$CFLAGS"
7293 LIBS="conftstm.$ac_objext"
7294 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296 (eval $ac_link) 2>&5
7297 ac_status=$?
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7300 pipe_works=yes
7301 fi
7302 LIBS="$lt_save_LIBS"
7303 CFLAGS="$lt_save_CFLAGS"
7304 else
7305 echo "cannot find nm_test_func in $nlist" >&5
7306 fi
7307 else
7308 echo "cannot find nm_test_var in $nlist" >&5
7309 fi
7310 else
7311 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7312 fi
7313 else
7314 echo "$progname: failed program was:" >&5
7315 cat conftest.$ac_ext >&5
7316 fi
7317 rm -f conftest* conftst*
7318
7319 # Do not use the global_symbol_pipe unless it works.
7320 if test "$pipe_works" = yes; then
7321 break
7322 else
7323 lt_cv_sys_global_symbol_pipe=
7324 fi
7325done
7326
7327fi
7328
7329if test -z "$lt_cv_sys_global_symbol_pipe"; then
7330 lt_cv_sys_global_symbol_to_cdecl=
7331fi
7332if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7333 echo "$as_me:$LINENO: result: failed" >&5
7334echo "${ECHO_T}failed" >&6
7335else
7336 echo "$as_me:$LINENO: result: ok" >&5
7337echo "${ECHO_T}ok" >&6
7338fi
7339
7340
7341echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
7342echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6
7343if test "${libltdl_cv_preloaded_symbols+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345else
7346 if test -n "$lt_cv_sys_global_symbol_pipe"; then
7347 libltdl_cv_preloaded_symbols=yes
7348 else
7349 libltdl_cv_preloaded_symbols=no
7350 fi
7351
7352fi
7353echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
7354echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6
7355if test x"$libltdl_cv_preloaded_symbols" = xyes; then
7356
7357cat >>confdefs.h <<\_ACEOF
7358#define HAVE_PRELOADED_SYMBOLS 1
7359_ACEOF
7360
7361fi
7362
7363LIBADD_DL=
7364
7365ac_ext=c
7366ac_cpp='$CPP $CPPFLAGS'
7367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369ac_compiler_gnu=$ac_cv_c_compiler_gnu
7370
7371
7372echo "$as_me:$LINENO: checking for shl_load" >&5
7373echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7374if test "${ac_cv_func_shl_load+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7376else
7377 cat >conftest.$ac_ext <<_ACEOF
7378/* confdefs.h. */
7379_ACEOF
7380cat confdefs.h >>conftest.$ac_ext
7381cat >>conftest.$ac_ext <<_ACEOF
7382/* end confdefs.h. */
7383/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7385#define shl_load innocuous_shl_load
7386
7387/* System header to define __stub macros and hopefully few prototypes,
7388 which can conflict with char shl_load (); below.
7389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7390 <limits.h> exists even on freestanding compilers. */
7391
7392#ifdef __STDC__
7393# include <limits.h>
7394#else
7395# include <assert.h>
7396#endif
7397
7398#undef shl_load
7399
7400/* Override any gcc2 internal prototype to avoid an error. */
7401#ifdef __cplusplus
7402extern "C"
7403{
7404#endif
7405/* We use char because int might match the return type of a gcc2
7406 builtin and then its argument prototype would still apply. */
7407char shl_load ();
7408/* The GNU C library defines this for functions which it implements
7409 to always fail with ENOSYS. Some functions are actually named
7410 something starting with __ and the normal name is an alias. */
7411#if defined (__stub_shl_load) || defined (__stub___shl_load)
7412choke me
7413#else
7414char (*f) () = shl_load;
7415#endif
7416#ifdef __cplusplus
7417}
7418#endif
7419
7420int
7421main ()
7422{
7423return f != shl_load;
7424 ;
7425 return 0;
7426}
7427_ACEOF
7428rm -f conftest.$ac_objext conftest$ac_exeext
7429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7430 (eval $ac_link) 2>conftest.er1
7431 ac_status=$?
7432 grep -v '^ *+' conftest.er1 >conftest.err
7433 rm -f conftest.er1
7434 cat conftest.err >&5
7435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7436 (exit $ac_status); } &&
7437 { ac_try='test -z "$ac_c_werror_flag"
7438 || test ! -s conftest.err'
7439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7440 (eval $ac_try) 2>&5
7441 ac_status=$?
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); }; } &&
7444 { ac_try='test -s conftest$ac_exeext'
7445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7446 (eval $ac_try) 2>&5
7447 ac_status=$?
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7449 (exit $ac_status); }; }; then
7450 ac_cv_func_shl_load=yes
7451else
7452 echo "$as_me: failed program was:" >&5
7453sed 's/^/| /' conftest.$ac_ext >&5
7454
7455ac_cv_func_shl_load=no
7456fi
7457rm -f conftest.err conftest.$ac_objext \
7458 conftest$ac_exeext conftest.$ac_ext
7459fi
7460echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7461echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7462if test $ac_cv_func_shl_load = yes; then
7463
7464cat >>confdefs.h <<\_ACEOF
7465#define HAVE_SHL_LOAD 1
7466_ACEOF
7467
7468else
7469 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7470echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7471if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7472 echo $ECHO_N "(cached) $ECHO_C" >&6
7473else
7474 ac_check_lib_save_LIBS=$LIBS
7475LIBS="-ldld $LIBS"
7476cat >conftest.$ac_ext <<_ACEOF
7477/* confdefs.h. */
7478_ACEOF
7479cat confdefs.h >>conftest.$ac_ext
7480cat >>conftest.$ac_ext <<_ACEOF
7481/* end confdefs.h. */
7482
7483/* Override any gcc2 internal prototype to avoid an error. */
7484#ifdef __cplusplus
7485extern "C"
7486#endif
7487/* We use char because int might match the return type of a gcc2
7488 builtin and then its argument prototype would still apply. */
7489char shl_load ();
7490int
7491main ()
7492{
7493shl_load ();
7494 ;
7495 return 0;
7496}
7497_ACEOF
7498rm -f conftest.$ac_objext conftest$ac_exeext
7499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7500 (eval $ac_link) 2>conftest.er1
7501 ac_status=$?
7502 grep -v '^ *+' conftest.er1 >conftest.err
7503 rm -f conftest.er1
7504 cat conftest.err >&5
7505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7506 (exit $ac_status); } &&
7507 { ac_try='test -z "$ac_c_werror_flag"
7508 || test ! -s conftest.err'
7509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510 (eval $ac_try) 2>&5
7511 ac_status=$?
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513 (exit $ac_status); }; } &&
7514 { ac_try='test -s conftest$ac_exeext'
7515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7516 (eval $ac_try) 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; }; then
7520 ac_cv_lib_dld_shl_load=yes
7521else
7522 echo "$as_me: failed program was:" >&5
7523sed 's/^/| /' conftest.$ac_ext >&5
7524
7525ac_cv_lib_dld_shl_load=no
7526fi
7527rm -f conftest.err conftest.$ac_objext \
7528 conftest$ac_exeext conftest.$ac_ext
7529LIBS=$ac_check_lib_save_LIBS
7530fi
7531echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7532echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7533if test $ac_cv_lib_dld_shl_load = yes; then
7534
7535cat >>confdefs.h <<\_ACEOF
7536#define HAVE_SHL_LOAD 1
7537_ACEOF
7538
7539 LIBADD_DL="$LIBADD_DL -ldld"
7540else
7541 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7542echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7543if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545else
7546 ac_check_lib_save_LIBS=$LIBS
7547LIBS="-ldl $LIBS"
7548cat >conftest.$ac_ext <<_ACEOF
7549/* confdefs.h. */
7550_ACEOF
7551cat confdefs.h >>conftest.$ac_ext
7552cat >>conftest.$ac_ext <<_ACEOF
7553/* end confdefs.h. */
7554
7555/* Override any gcc2 internal prototype to avoid an error. */
7556#ifdef __cplusplus
7557extern "C"
7558#endif
7559/* We use char because int might match the return type of a gcc2
7560 builtin and then its argument prototype would still apply. */
7561char dlopen ();
7562int
7563main ()
7564{
7565dlopen ();
7566 ;
7567 return 0;
7568}
7569_ACEOF
7570rm -f conftest.$ac_objext conftest$ac_exeext
7571if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7572 (eval $ac_link) 2>conftest.er1
7573 ac_status=$?
7574 grep -v '^ *+' conftest.er1 >conftest.err
7575 rm -f conftest.er1
7576 cat conftest.err >&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } &&
7579 { ac_try='test -z "$ac_c_werror_flag"
7580 || test ! -s conftest.err'
7581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7582 (eval $ac_try) 2>&5
7583 ac_status=$?
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); }; } &&
7586 { ac_try='test -s conftest$ac_exeext'
7587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7588 (eval $ac_try) 2>&5
7589 ac_status=$?
7590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7591 (exit $ac_status); }; }; then
7592 ac_cv_lib_dl_dlopen=yes
7593else
7594 echo "$as_me: failed program was:" >&5
7595sed 's/^/| /' conftest.$ac_ext >&5
7596
7597ac_cv_lib_dl_dlopen=no
7598fi
7599rm -f conftest.err conftest.$ac_objext \
7600 conftest$ac_exeext conftest.$ac_ext
7601LIBS=$ac_check_lib_save_LIBS
7602fi
7603echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7604echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7605if test $ac_cv_lib_dl_dlopen = yes; then
7606
7607cat >>confdefs.h <<\_ACEOF
7608#define HAVE_LIBDL 1
7609_ACEOF
7610
7611 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
7612else
7613 cat >conftest.$ac_ext <<_ACEOF
7614/* confdefs.h. */
7615_ACEOF
7616cat confdefs.h >>conftest.$ac_ext
7617cat >>conftest.$ac_ext <<_ACEOF
7618/* end confdefs.h. */
7619#if HAVE_DLFCN_H
7620# include <dlfcn.h>
7621#endif
7622
7623int
7624main ()
7625{
7626dlopen(0, 0);
7627 ;
7628 return 0;
7629}
7630_ACEOF
7631rm -f conftest.$ac_objext conftest$ac_exeext
7632if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7633 (eval $ac_link) 2>conftest.er1
7634 ac_status=$?
7635 grep -v '^ *+' conftest.er1 >conftest.err
7636 rm -f conftest.er1
7637 cat conftest.err >&5
7638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7639 (exit $ac_status); } &&
7640 { ac_try='test -z "$ac_c_werror_flag"
7641 || test ! -s conftest.err'
7642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7643 (eval $ac_try) 2>&5
7644 ac_status=$?
7645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7646 (exit $ac_status); }; } &&
7647 { ac_try='test -s conftest$ac_exeext'
7648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7649 (eval $ac_try) 2>&5
7650 ac_status=$?
7651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7652 (exit $ac_status); }; }; then
7653
7654cat >>confdefs.h <<\_ACEOF
7655#define HAVE_LIBDL 1
7656_ACEOF
7657 libltdl_cv_func_dlopen="yes"
7658else
7659 echo "$as_me: failed program was:" >&5
7660sed 's/^/| /' conftest.$ac_ext >&5
7661
7662echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7663echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7664if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666else
7667 ac_check_lib_save_LIBS=$LIBS
7668LIBS="-lsvld $LIBS"
7669cat >conftest.$ac_ext <<_ACEOF
7670/* confdefs.h. */
7671_ACEOF
7672cat confdefs.h >>conftest.$ac_ext
7673cat >>conftest.$ac_ext <<_ACEOF
7674/* end confdefs.h. */
7675
7676/* Override any gcc2 internal prototype to avoid an error. */
7677#ifdef __cplusplus
7678extern "C"
7679#endif
7680/* We use char because int might match the return type of a gcc2
7681 builtin and then its argument prototype would still apply. */
7682char dlopen ();
7683int
7684main ()
7685{
7686dlopen ();
7687 ;
7688 return 0;
7689}
7690_ACEOF
7691rm -f conftest.$ac_objext conftest$ac_exeext
7692if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7693 (eval $ac_link) 2>conftest.er1
7694 ac_status=$?
7695 grep -v '^ *+' conftest.er1 >conftest.err
7696 rm -f conftest.er1
7697 cat conftest.err >&5
7698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7699 (exit $ac_status); } &&
7700 { ac_try='test -z "$ac_c_werror_flag"
7701 || test ! -s conftest.err'
7702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7703 (eval $ac_try) 2>&5
7704 ac_status=$?
7705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); }; } &&
7707 { ac_try='test -s conftest$ac_exeext'
7708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7709 (eval $ac_try) 2>&5
7710 ac_status=$?
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; }; then
7713 ac_cv_lib_svld_dlopen=yes
7714else
7715 echo "$as_me: failed program was:" >&5
7716sed 's/^/| /' conftest.$ac_ext >&5
7717
7718ac_cv_lib_svld_dlopen=no
7719fi
7720rm -f conftest.err conftest.$ac_objext \
7721 conftest$ac_exeext conftest.$ac_ext
7722LIBS=$ac_check_lib_save_LIBS
7723fi
7724echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7725echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7726if test $ac_cv_lib_svld_dlopen = yes; then
7727
7728cat >>confdefs.h <<\_ACEOF
7729#define HAVE_LIBDL 1
7730_ACEOF
7731
7732 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
7733else
7734 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7735echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7736if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7737 echo $ECHO_N "(cached) $ECHO_C" >&6
7738else
7739 ac_check_lib_save_LIBS=$LIBS
7740LIBS="-ldld $LIBS"
7741cat >conftest.$ac_ext <<_ACEOF
7742/* confdefs.h. */
7743_ACEOF
7744cat confdefs.h >>conftest.$ac_ext
7745cat >>conftest.$ac_ext <<_ACEOF
7746/* end confdefs.h. */
7747
7748/* Override any gcc2 internal prototype to avoid an error. */
7749#ifdef __cplusplus
7750extern "C"
7751#endif
7752/* We use char because int might match the return type of a gcc2
7753 builtin and then its argument prototype would still apply. */
7754char dld_link ();
7755int
7756main ()
7757{
7758dld_link ();
7759 ;
7760 return 0;
7761}
7762_ACEOF
7763rm -f conftest.$ac_objext conftest$ac_exeext
7764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7765 (eval $ac_link) 2>conftest.er1
7766 ac_status=$?
7767 grep -v '^ *+' conftest.er1 >conftest.err
7768 rm -f conftest.er1
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } &&
7772 { ac_try='test -z "$ac_c_werror_flag"
7773 || test ! -s conftest.err'
7774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7775 (eval $ac_try) 2>&5
7776 ac_status=$?
7777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7778 (exit $ac_status); }; } &&
7779 { ac_try='test -s conftest$ac_exeext'
7780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7781 (eval $ac_try) 2>&5
7782 ac_status=$?
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); }; }; then
7785 ac_cv_lib_dld_dld_link=yes
7786else
7787 echo "$as_me: failed program was:" >&5
7788sed 's/^/| /' conftest.$ac_ext >&5
7789
7790ac_cv_lib_dld_dld_link=no
7791fi
7792rm -f conftest.err conftest.$ac_objext \
7793 conftest$ac_exeext conftest.$ac_ext
7794LIBS=$ac_check_lib_save_LIBS
7795fi
7796echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7797echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7798if test $ac_cv_lib_dld_dld_link = yes; then
7799
7800cat >>confdefs.h <<\_ACEOF
7801#define HAVE_DLD 1
7802_ACEOF
7803
7804 LIBADD_DL="$LIBADD_DL -ldld"
7805else
7806 echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
7807echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6
7808if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810else
7811 cat >conftest.$ac_ext <<_ACEOF
7812/* confdefs.h. */
7813_ACEOF
7814cat confdefs.h >>conftest.$ac_ext
7815cat >>conftest.$ac_ext <<_ACEOF
7816/* end confdefs.h. */
7817/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
7818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7819#define _dyld_func_lookup innocuous__dyld_func_lookup
7820
7821/* System header to define __stub macros and hopefully few prototypes,
7822 which can conflict with char _dyld_func_lookup (); below.
7823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7824 <limits.h> exists even on freestanding compilers. */
7825
7826#ifdef __STDC__
7827# include <limits.h>
7828#else
7829# include <assert.h>
7830#endif
7831
7832#undef _dyld_func_lookup
7833
7834/* Override any gcc2 internal prototype to avoid an error. */
7835#ifdef __cplusplus
7836extern "C"
7837{
7838#endif
7839/* We use char because int might match the return type of a gcc2
7840 builtin and then its argument prototype would still apply. */
7841char _dyld_func_lookup ();
7842/* The GNU C library defines this for functions which it implements
7843 to always fail with ENOSYS. Some functions are actually named
7844 something starting with __ and the normal name is an alias. */
7845#if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup)
7846choke me
7847#else
7848char (*f) () = _dyld_func_lookup;
7849#endif
7850#ifdef __cplusplus
7851}
7852#endif
7853
7854int
7855main ()
7856{
7857return f != _dyld_func_lookup;
7858 ;
7859 return 0;
7860}
7861_ACEOF
7862rm -f conftest.$ac_objext conftest$ac_exeext
7863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7864 (eval $ac_link) 2>conftest.er1
7865 ac_status=$?
7866 grep -v '^ *+' conftest.er1 >conftest.err
7867 rm -f conftest.er1
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } &&
7871 { ac_try='test -z "$ac_c_werror_flag"
7872 || test ! -s conftest.err'
7873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7874 (eval $ac_try) 2>&5
7875 ac_status=$?
7876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877 (exit $ac_status); }; } &&
7878 { ac_try='test -s conftest$ac_exeext'
7879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7880 (eval $ac_try) 2>&5
7881 ac_status=$?
7882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883 (exit $ac_status); }; }; then
7884 ac_cv_func__dyld_func_lookup=yes
7885else
7886 echo "$as_me: failed program was:" >&5
7887sed 's/^/| /' conftest.$ac_ext >&5
7888
7889ac_cv_func__dyld_func_lookup=no
7890fi
7891rm -f conftest.err conftest.$ac_objext \
7892 conftest$ac_exeext conftest.$ac_ext
7893fi
7894echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
7895echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6
7896if test $ac_cv_func__dyld_func_lookup = yes; then
7897
7898cat >>confdefs.h <<\_ACEOF
7899#define HAVE_DYLD 1
7900_ACEOF
7901
7902fi
7903
7904
7905fi
7906
7907
7908fi
7909
7910
7911fi
7912rm -f conftest.err conftest.$ac_objext \
7913 conftest$ac_exeext conftest.$ac_ext
7914
7915fi
7916
7917
7918fi
7919
7920
7921fi
7922
7923
7924if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
7925then
7926 lt_save_LIBS="$LIBS"
7927 LIBS="$LIBS $LIBADD_DL"
7928
7929for ac_func in dlerror
7930do
7931as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7932echo "$as_me:$LINENO: checking for $ac_func" >&5
7933echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7934if eval "test \"\${$as_ac_var+set}\" = set"; then
7935 echo $ECHO_N "(cached) $ECHO_C" >&6
7936else
7937 cat >conftest.$ac_ext <<_ACEOF
7938/* confdefs.h. */
7939_ACEOF
7940cat confdefs.h >>conftest.$ac_ext
7941cat >>conftest.$ac_ext <<_ACEOF
7942/* end confdefs.h. */
7943/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7945#define $ac_func innocuous_$ac_func
7946
7947/* System header to define __stub macros and hopefully few prototypes,
7948 which can conflict with char $ac_func (); below.
7949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7950 <limits.h> exists even on freestanding compilers. */
7951
7952#ifdef __STDC__
7953# include <limits.h>
7954#else
7955# include <assert.h>
7956#endif
7957
7958#undef $ac_func
7959
7960/* Override any gcc2 internal prototype to avoid an error. */
7961#ifdef __cplusplus
7962extern "C"
7963{
7964#endif
7965/* We use char because int might match the return type of a gcc2
7966 builtin and then its argument prototype would still apply. */
7967char $ac_func ();
7968/* The GNU C library defines this for functions which it implements
7969 to always fail with ENOSYS. Some functions are actually named
7970 something starting with __ and the normal name is an alias. */
7971#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7972choke me
7973#else
7974char (*f) () = $ac_func;
7975#endif
7976#ifdef __cplusplus
7977}
7978#endif
7979
7980int
7981main ()
7982{
7983return f != $ac_func;
7984 ;
7985 return 0;
7986}
7987_ACEOF
7988rm -f conftest.$ac_objext conftest$ac_exeext
7989if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7990 (eval $ac_link) 2>conftest.er1
7991 ac_status=$?
7992 grep -v '^ *+' conftest.er1 >conftest.err
7993 rm -f conftest.er1
7994 cat conftest.err >&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); } &&
7997 { ac_try='test -z "$ac_c_werror_flag"
7998 || test ! -s conftest.err'
7999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8000 (eval $ac_try) 2>&5
8001 ac_status=$?
8002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8003 (exit $ac_status); }; } &&
8004 { ac_try='test -s conftest$ac_exeext'
8005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8006 (eval $ac_try) 2>&5
8007 ac_status=$?
8008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8009 (exit $ac_status); }; }; then
8010 eval "$as_ac_var=yes"
8011else
8012 echo "$as_me: failed program was:" >&5
8013sed 's/^/| /' conftest.$ac_ext >&5
8014
8015eval "$as_ac_var=no"
8016fi
8017rm -f conftest.err conftest.$ac_objext \
8018 conftest$ac_exeext conftest.$ac_ext
8019fi
8020echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8021echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8022if test `eval echo '${'$as_ac_var'}'` = yes; then
8023 cat >>confdefs.h <<_ACEOF
8024#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8025_ACEOF
8026
8027fi
8028done
8029
8030 LIBS="$lt_save_LIBS"
8031fi
8032ac_ext=c
8033ac_cpp='$CPP $CPPFLAGS'
8034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8036ac_compiler_gnu=$ac_cv_c_compiler_gnu
8037
8038
8039
8040echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
8041echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6
8042if test "${ac_cv_sys_symbol_underscore+set}" = set; then
8043 echo $ECHO_N "(cached) $ECHO_C" >&6
8044else
8045 ac_cv_sys_symbol_underscore=no
8046 cat > conftest.$ac_ext <<EOF
8047void nm_test_func(){}
8048int main(){nm_test_func;return 0;}
8049EOF
8050 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8051 (eval $ac_compile) 2>&5
8052 ac_status=$?
8053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8054 (exit $ac_status); }; then
8055 # Now try to grab the symbols.
8056 ac_nlist=conftest.nm
8057 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
8058 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
8059 ac_status=$?
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && test -s "$ac_nlist"; then
8062 # See whether the symbols have a leading underscore.
8063 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
8064 ac_cv_sys_symbol_underscore=yes
8065 else
8066 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
8067 :
8068 else
8069 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
8070 fi
8071 fi
8072 else
8073 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
8074 fi
8075 else
8076 echo "configure: failed program was:" >&5
8077 cat conftest.c >&5
8078 fi
8079 rm -rf conftest*
8080
8081fi
8082echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
8083echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6
8084
8085
8086if test x"$ac_cv_sys_symbol_underscore" = xyes; then
8087 if test x"$libltdl_cv_func_dlopen" = xyes ||
8088 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
8089 echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
8090echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6
8091if test "${libltdl_cv_need_uscore+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8093else
8094 libltdl_cv_need_uscore=unknown
8095 save_LIBS="$LIBS"
8096 LIBS="$LIBS $LIBADD_DL"
8097 if test "$cross_compiling" = yes; then :
8098 libltdl_cv_need_uscore=cross
8099else
8100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8101 lt_status=$lt_dlunknown
8102 cat > conftest.$ac_ext <<EOF
8103#line 8103 "configure"
8104#include "confdefs.h"
8105
8106#if HAVE_DLFCN_H
8107#include <dlfcn.h>
8108#endif
8109
8110#include <stdio.h>
8111
8112#ifdef RTLD_GLOBAL
8113# define LT_DLGLOBAL RTLD_GLOBAL
8114#else
8115# ifdef DL_GLOBAL
8116# define LT_DLGLOBAL DL_GLOBAL
8117# else
8118# define LT_DLGLOBAL 0
8119# endif
8120#endif
8121
8122/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8123 find out it does not work in some platform. */
8124#ifndef LT_DLLAZY_OR_NOW
8125# ifdef RTLD_LAZY
8126# define LT_DLLAZY_OR_NOW RTLD_LAZY
8127# else
8128# ifdef DL_LAZY
8129# define LT_DLLAZY_OR_NOW DL_LAZY
8130# else
8131# ifdef RTLD_NOW
8132# define LT_DLLAZY_OR_NOW RTLD_NOW
8133# else
8134# ifdef DL_NOW
8135# define LT_DLLAZY_OR_NOW DL_NOW
8136# else
8137# define LT_DLLAZY_OR_NOW 0
8138# endif
8139# endif
8140# endif
8141# endif
8142#endif
8143
8144#ifdef __cplusplus
8145extern "C" void exit (int);
8146#endif
8147
8148void fnord() { int i=42;}
8149int main ()
8150{
8151 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8152 int status = $lt_dlunknown;
8153
8154 if (self)
8155 {
8156 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8157 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8158 /* dlclose (self); */
8159 }
8160
8161 exit (status);
8162}
8163EOF
8164 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8165 (eval $ac_link) 2>&5
8166 ac_status=$?
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8169 (./conftest; exit; ) 2>/dev/null
8170 lt_status=$?
8171 case x$lt_status in
8172 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
8173 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
8174 x$lt_unknown|x*) ;;
8175 esac
8176 else :
8177 # compilation failed
8178
8179 fi
8180fi
8181rm -fr conftest*
8182
8183 LIBS="$save_LIBS"
8184
8185fi
8186echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
8187echo "${ECHO_T}$libltdl_cv_need_uscore" >&6
8188 fi
8189fi
8190
8191if test x"$libltdl_cv_need_uscore" = xyes; then
8192
8193cat >>confdefs.h <<\_ACEOF
8194#define NEED_USCORE 1
8195_ACEOF
8196
8197fi
8198
8199
8200echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
8201echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6
8202if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
8203 echo $ECHO_N "(cached) $ECHO_C" >&6
8204else
8205 # PORTME does your system automatically load deplibs for dlopen?
8206 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
8207 # For now, we just catch OSes we know something about -- in the
8208 # future, we'll try test this programmatically.
8209 libltdl_cv_sys_dlopen_deplibs=unknown
8210 case "$host_os" in
8211 aix3*|aix4.1.*|aix4.2.*)
8212 # Unknown whether this is true for these versions of AIX, but
8213 # we want this `case' here to explicitly catch those versions.
8214 libltdl_cv_sys_dlopen_deplibs=unknown
8215 ;;
8216 aix[45]*)
8217 libltdl_cv_sys_dlopen_deplibs=yes
8218 ;;
8219 darwin*)
8220 # Assuming the user has installed a libdl from somewhere, this is true
8221 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
8222 libltdl_cv_sys_dlopen_deplibs=yes
8223 ;;
8224 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
8225 # GNU and its variants, using gnu ld.so (Glibc)
8226 libltdl_cv_sys_dlopen_deplibs=yes
8227 ;;
8228 hpux10*|hpux11*)
8229 libltdl_cv_sys_dlopen_deplibs=yes
8230 ;;
8231 irix[12345]*|irix6.[01]*)
8232 # Catch all versions of IRIX before 6.2, and indicate that we don't
8233 # know how it worked for any of those versions.
8234 libltdl_cv_sys_dlopen_deplibs=unknown
8235 ;;
8236 irix*)
8237 # The case above catches anything before 6.2, and it's known that
8238 # at 6.2 and later dlopen does load deplibs.
8239 libltdl_cv_sys_dlopen_deplibs=yes
8240 ;;
8241 netbsd*)
8242 libltdl_cv_sys_dlopen_deplibs=yes
8243 ;;
8244 openbsd*)
8245 libltdl_cv_sys_dlopen_deplibs=yes
8246 ;;
8247 osf[1234]*)
8248 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
8249 # it did *not* use an RPATH in a shared library to find objects the
8250 # library depends on, so we explictly say `no'.
8251 libltdl_cv_sys_dlopen_deplibs=no
8252 ;;
8253 osf5.0|osf5.0a|osf5.1)
8254 # dlopen *does* load deplibs and with the right loader patch applied
8255 # it even uses RPATH in a shared library to search for shared objects
8256 # that the library depends on, but there's no easy way to know if that
8257 # patch is installed. Since this is the case, all we can really
8258 # say is unknown -- it depends on the patch being installed. If
8259 # it is, this changes to `yes'. Without it, it would be `no'.
8260 libltdl_cv_sys_dlopen_deplibs=unknown
8261 ;;
8262 osf*)
8263 # the two cases above should catch all versions of osf <= 5.1. Read
8264 # the comments above for what we know about them.
8265 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
8266 # is used to find them so we can finally say `yes'.
8267 libltdl_cv_sys_dlopen_deplibs=yes
8268 ;;
8269 solaris*)
8270 libltdl_cv_sys_dlopen_deplibs=yes
8271 ;;
8272 esac
8273
8274fi
8275echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
8276echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6
8277if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
8278
8279cat >>confdefs.h <<\_ACEOF
8280#define LTDL_DLOPEN_DEPLIBS 1
8281_ACEOF
8282
8283fi
8284
8285
8286for ac_header in argz.h
8287do
8288as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8289if eval "test \"\${$as_ac_Header+set}\" = set"; then
8290 echo "$as_me:$LINENO: checking for $ac_header" >&5
8291echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8292if eval "test \"\${$as_ac_Header+set}\" = set"; then
8293 echo $ECHO_N "(cached) $ECHO_C" >&6
8294fi
8295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8297else
8298 # Is the header compilable?
8299echo "$as_me:$LINENO: checking $ac_header usability" >&5
8300echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8301cat >conftest.$ac_ext <<_ACEOF
8302/* confdefs.h. */
8303_ACEOF
8304cat confdefs.h >>conftest.$ac_ext
8305cat >>conftest.$ac_ext <<_ACEOF
8306/* end confdefs.h. */
8307$ac_includes_default
8308#include <$ac_header>
8309_ACEOF
8310rm -f conftest.$ac_objext
8311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8312 (eval $ac_compile) 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } &&
8319 { ac_try='test -z "$ac_c_werror_flag"
8320 || test ! -s conftest.err'
8321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8322 (eval $ac_try) 2>&5
8323 ac_status=$?
8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8325 (exit $ac_status); }; } &&
8326 { ac_try='test -s conftest.$ac_objext'
8327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328 (eval $ac_try) 2>&5
8329 ac_status=$?
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331 (exit $ac_status); }; }; then
8332 ac_header_compiler=yes
8333else
8334 echo "$as_me: failed program was:" >&5
8335sed 's/^/| /' conftest.$ac_ext >&5
8336
8337ac_header_compiler=no
8338fi
8339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8340echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8341echo "${ECHO_T}$ac_header_compiler" >&6
8342
8343# Is the header present?
8344echo "$as_me:$LINENO: checking $ac_header presence" >&5
8345echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8346cat >conftest.$ac_ext <<_ACEOF
8347/* confdefs.h. */
8348_ACEOF
8349cat confdefs.h >>conftest.$ac_ext
8350cat >>conftest.$ac_ext <<_ACEOF
8351/* end confdefs.h. */
8352#include <$ac_header>
8353_ACEOF
8354if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8355 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8356 ac_status=$?
8357 grep -v '^ *+' conftest.er1 >conftest.err
8358 rm -f conftest.er1
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } >/dev/null; then
8362 if test -s conftest.err; then
8363 ac_cpp_err=$ac_c_preproc_warn_flag
8364 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8365 else
8366 ac_cpp_err=
8367 fi
8368else
8369 ac_cpp_err=yes
8370fi
8371if test -z "$ac_cpp_err"; then
8372 ac_header_preproc=yes
8373else
8374 echo "$as_me: failed program was:" >&5
8375sed 's/^/| /' conftest.$ac_ext >&5
8376
8377 ac_header_preproc=no
8378fi
8379rm -f conftest.err conftest.$ac_ext
8380echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8381echo "${ECHO_T}$ac_header_preproc" >&6
8382
8383# So? What about this header?
8384case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8385 yes:no: )
8386 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8387echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8389echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8390 ac_header_preproc=yes
8391 ;;
8392 no:yes:* )
8393 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8394echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8395 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8396echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8397 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8398echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8399 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8400echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8401 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8402echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8403 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8404echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8405 (
8406 cat <<\_ASBOX
8407## ----------------------------------- ##
8408## Report this to llvmbugs@cs.uiuc.edu ##
8409## ----------------------------------- ##
8410_ASBOX
8411 ) |
8412 sed "s/^/$as_me: WARNING: /" >&2
8413 ;;
8414esac
8415echo "$as_me:$LINENO: checking for $ac_header" >&5
8416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8417if eval "test \"\${$as_ac_Header+set}\" = set"; then
8418 echo $ECHO_N "(cached) $ECHO_C" >&6
8419else
8420 eval "$as_ac_Header=\$ac_header_preproc"
8421fi
8422echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8423echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8424
8425fi
8426if test `eval echo '${'$as_ac_Header'}'` = yes; then
8427 cat >>confdefs.h <<_ACEOF
8428#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8429_ACEOF
8430
8431fi
8432
8433done
8434
8435
8436echo "$as_me:$LINENO: checking for error_t" >&5
8437echo $ECHO_N "checking for error_t... $ECHO_C" >&6
8438if test "${ac_cv_type_error_t+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8440else
8441 cat >conftest.$ac_ext <<_ACEOF
8442/* confdefs.h. */
8443_ACEOF
8444cat confdefs.h >>conftest.$ac_ext
8445cat >>conftest.$ac_ext <<_ACEOF
8446/* end confdefs.h. */
8447#if HAVE_ARGZ_H
8448# include <argz.h>
8449#endif
8450
8451int
8452main ()
8453{
8454if ((error_t *) 0)
8455 return 0;
8456if (sizeof (error_t))
8457 return 0;
8458 ;
8459 return 0;
8460}
8461_ACEOF
8462rm -f conftest.$ac_objext
8463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8464 (eval $ac_compile) 2>conftest.er1
8465 ac_status=$?
8466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
8469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
8471 { ac_try='test -z "$ac_c_werror_flag"
8472 || test ! -s conftest.err'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 (eval $ac_try) 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest.$ac_objext'
8479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 (eval $ac_try) 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 ac_cv_type_error_t=yes
8485else
8486 echo "$as_me: failed program was:" >&5
8487sed 's/^/| /' conftest.$ac_ext >&5
8488
8489ac_cv_type_error_t=no
8490fi
8491rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8492fi
8493echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
8494echo "${ECHO_T}$ac_cv_type_error_t" >&6
8495if test $ac_cv_type_error_t = yes; then
8496
8497cat >>confdefs.h <<_ACEOF
8498#define HAVE_ERROR_T 1
8499_ACEOF
8500
8501
8502else
8503
8504cat >>confdefs.h <<\_ACEOF
8505#define error_t int
8506_ACEOF
8507
8508fi
8509
8510
8511
8512
8513
8514
8515
8516for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
8517do
8518as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8519echo "$as_me:$LINENO: checking for $ac_func" >&5
8520echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8521if eval "test \"\${$as_ac_var+set}\" = set"; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523else
8524 cat >conftest.$ac_ext <<_ACEOF
8525/* confdefs.h. */
8526_ACEOF
8527cat confdefs.h >>conftest.$ac_ext
8528cat >>conftest.$ac_ext <<_ACEOF
8529/* end confdefs.h. */
8530/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8532#define $ac_func innocuous_$ac_func
8533
8534/* System header to define __stub macros and hopefully few prototypes,
8535 which can conflict with char $ac_func (); below.
8536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8537 <limits.h> exists even on freestanding compilers. */
8538
8539#ifdef __STDC__
8540# include <limits.h>
8541#else
8542# include <assert.h>
8543#endif
8544
8545#undef $ac_func
8546
8547/* Override any gcc2 internal prototype to avoid an error. */
8548#ifdef __cplusplus
8549extern "C"
8550{
8551#endif
8552/* We use char because int might match the return type of a gcc2
8553 builtin and then its argument prototype would still apply. */
8554char $ac_func ();
8555/* The GNU C library defines this for functions which it implements
8556 to always fail with ENOSYS. Some functions are actually named
8557 something starting with __ and the normal name is an alias. */
8558#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8559choke me
8560#else
8561char (*f) () = $ac_func;
8562#endif
8563#ifdef __cplusplus
8564}
8565#endif
8566
8567int
8568main ()
8569{
8570return f != $ac_func;
8571 ;
8572 return 0;
8573}
8574_ACEOF
8575rm -f conftest.$ac_objext conftest$ac_exeext
8576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8577 (eval $ac_link) 2>conftest.er1
8578 ac_status=$?
8579 grep -v '^ *+' conftest.er1 >conftest.err
8580 rm -f conftest.er1
8581 cat conftest.err >&5
8582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8583 (exit $ac_status); } &&
8584 { ac_try='test -z "$ac_c_werror_flag"
8585 || test ! -s conftest.err'
8586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 (eval $ac_try) 2>&5
8588 ac_status=$?
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); }; } &&
8591 { ac_try='test -s conftest$ac_exeext'
8592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8593 (eval $ac_try) 2>&5
8594 ac_status=$?
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); }; }; then
8597 eval "$as_ac_var=yes"
8598else
8599 echo "$as_me: failed program was:" >&5
8600sed 's/^/| /' conftest.$ac_ext >&5
8601
8602eval "$as_ac_var=no"
8603fi
8604rm -f conftest.err conftest.$ac_objext \
8605 conftest$ac_exeext conftest.$ac_ext
8606fi
8607echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8608echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8609if test `eval echo '${'$as_ac_var'}'` = yes; then
8610 cat >>confdefs.h <<_ACEOF
8611#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8612_ACEOF
8613
8614fi
8615done
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
8645 stdio.h unistd.h
8646do
8647as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8648if eval "test \"\${$as_ac_Header+set}\" = set"; then
8649 echo "$as_me:$LINENO: checking for $ac_header" >&5
8650echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8651if eval "test \"\${$as_ac_Header+set}\" = set"; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653fi
8654echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8655echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8656else
8657 # Is the header compilable?
8658echo "$as_me:$LINENO: checking $ac_header usability" >&5
8659echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8660cat >conftest.$ac_ext <<_ACEOF
8661/* confdefs.h. */
8662_ACEOF
8663cat confdefs.h >>conftest.$ac_ext
8664cat >>conftest.$ac_ext <<_ACEOF
8665/* end confdefs.h. */
8666$ac_includes_default
8667#include <$ac_header>
8668_ACEOF
8669rm -f conftest.$ac_objext
8670if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8671 (eval $ac_compile) 2>conftest.er1
8672 ac_status=$?
8673 grep -v '^ *+' conftest.er1 >conftest.err
8674 rm -f conftest.er1
8675 cat conftest.err >&5
8676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677 (exit $ac_status); } &&
8678 { ac_try='test -z "$ac_c_werror_flag"
8679 || test ! -s conftest.err'
8680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 (eval $ac_try) 2>&5
8682 ac_status=$?
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); }; } &&
8685 { ac_try='test -s conftest.$ac_objext'
8686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8687 (eval $ac_try) 2>&5
8688 ac_status=$?
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); }; }; then
8691 ac_header_compiler=yes
8692else
8693 echo "$as_me: failed program was:" >&5
8694sed 's/^/| /' conftest.$ac_ext >&5
8695
8696ac_header_compiler=no
8697fi
8698rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8699echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8700echo "${ECHO_T}$ac_header_compiler" >&6
8701
8702# Is the header present?
8703echo "$as_me:$LINENO: checking $ac_header presence" >&5
8704echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8705cat >conftest.$ac_ext <<_ACEOF
8706/* confdefs.h. */
8707_ACEOF
8708cat confdefs.h >>conftest.$ac_ext
8709cat >>conftest.$ac_ext <<_ACEOF
8710/* end confdefs.h. */
8711#include <$ac_header>
8712_ACEOF
8713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8715 ac_status=$?
8716 grep -v '^ *+' conftest.er1 >conftest.err
8717 rm -f conftest.er1
8718 cat conftest.err >&5
8719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720 (exit $ac_status); } >/dev/null; then
8721 if test -s conftest.err; then
8722 ac_cpp_err=$ac_c_preproc_warn_flag
8723 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8724 else
8725 ac_cpp_err=
8726 fi
8727else
8728 ac_cpp_err=yes
8729fi
8730if test -z "$ac_cpp_err"; then
8731 ac_header_preproc=yes
8732else
8733 echo "$as_me: failed program was:" >&5
8734sed 's/^/| /' conftest.$ac_ext >&5
8735
8736 ac_header_preproc=no
8737fi
8738rm -f conftest.err conftest.$ac_ext
8739echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8740echo "${ECHO_T}$ac_header_preproc" >&6
8741
8742# So? What about this header?
8743case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8744 yes:no: )
8745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8746echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8748echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8749 ac_header_preproc=yes
8750 ;;
8751 no:yes:* )
8752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8753echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8755echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8757echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8759echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8761echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8763echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8764 (
8765 cat <<\_ASBOX
8766## ----------------------------------- ##
8767## Report this to llvmbugs@cs.uiuc.edu ##
8768## ----------------------------------- ##
8769_ASBOX
8770 ) |
8771 sed "s/^/$as_me: WARNING: /" >&2
8772 ;;
8773esac
8774echo "$as_me:$LINENO: checking for $ac_header" >&5
8775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8776if eval "test \"\${$as_ac_Header+set}\" = set"; then
8777 echo $ECHO_N "(cached) $ECHO_C" >&6
8778else
8779 eval "$as_ac_Header=\$ac_header_preproc"
8780fi
8781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8783
8784fi
8785if test `eval echo '${'$as_ac_Header'}'` = yes; then
8786 cat >>confdefs.h <<_ACEOF
8787#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8788_ACEOF
8789
8790fi
8791
8792done
8793
8794
8795
8796
8797
8798for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
8799do
8800as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8801if eval "test \"\${$as_ac_Header+set}\" = set"; then
8802 echo "$as_me:$LINENO: checking for $ac_header" >&5
8803echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8804if eval "test \"\${$as_ac_Header+set}\" = set"; then
8805 echo $ECHO_N "(cached) $ECHO_C" >&6
8806fi
8807echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8808echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8809else
8810 # Is the header compilable?
8811echo "$as_me:$LINENO: checking $ac_header usability" >&5
8812echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8813cat >conftest.$ac_ext <<_ACEOF
8814/* confdefs.h. */
8815_ACEOF
8816cat confdefs.h >>conftest.$ac_ext
8817cat >>conftest.$ac_ext <<_ACEOF
8818/* end confdefs.h. */
8819$ac_includes_default
8820#include <$ac_header>
8821_ACEOF
8822rm -f conftest.$ac_objext
8823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8824 (eval $ac_compile) 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } &&
8831 { ac_try='test -z "$ac_c_werror_flag"
8832 || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8834 (eval $ac_try) 2>&5
8835 ac_status=$?
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest.$ac_objext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8840 (eval $ac_try) 2>&5
8841 ac_status=$?
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_header_compiler=yes
8845else
8846 echo "$as_me: failed program was:" >&5
8847sed 's/^/| /' conftest.$ac_ext >&5
8848
8849ac_header_compiler=no
8850fi
8851rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8852echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8853echo "${ECHO_T}$ac_header_compiler" >&6
8854
8855# Is the header present?
8856echo "$as_me:$LINENO: checking $ac_header presence" >&5
8857echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8858cat >conftest.$ac_ext <<_ACEOF
8859/* confdefs.h. */
8860_ACEOF
8861cat confdefs.h >>conftest.$ac_ext
8862cat >>conftest.$ac_ext <<_ACEOF
8863/* end confdefs.h. */
8864#include <$ac_header>
8865_ACEOF
8866if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8868 ac_status=$?
8869 grep -v '^ *+' conftest.er1 >conftest.err
8870 rm -f conftest.er1
8871 cat conftest.err >&5
8872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8873 (exit $ac_status); } >/dev/null; then
8874 if test -s conftest.err; then
8875 ac_cpp_err=$ac_c_preproc_warn_flag
8876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8877 else
8878 ac_cpp_err=
8879 fi
8880else
8881 ac_cpp_err=yes
8882fi
8883if test -z "$ac_cpp_err"; then
8884 ac_header_preproc=yes
8885else
8886 echo "$as_me: failed program was:" >&5
8887sed 's/^/| /' conftest.$ac_ext >&5
8888
8889 ac_header_preproc=no
8890fi
8891rm -f conftest.err conftest.$ac_ext
8892echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8893echo "${ECHO_T}$ac_header_preproc" >&6
8894
8895# So? What about this header?
8896case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8897 yes:no: )
8898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8899echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8901echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8902 ac_header_preproc=yes
8903 ;;
8904 no:yes:* )
8905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8906echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8908echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8910echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8912echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8914echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8916echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8917 (
8918 cat <<\_ASBOX
8919## ----------------------------------- ##
8920## Report this to llvmbugs@cs.uiuc.edu ##
8921## ----------------------------------- ##
8922_ASBOX
8923 ) |
8924 sed "s/^/$as_me: WARNING: /" >&2
8925 ;;
8926esac
8927echo "$as_me:$LINENO: checking for $ac_header" >&5
8928echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8929if eval "test \"\${$as_ac_Header+set}\" = set"; then
8930 echo $ECHO_N "(cached) $ECHO_C" >&6
8931else
8932 eval "$as_ac_Header=\$ac_header_preproc"
8933fi
8934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8936
8937fi
8938if test `eval echo '${'$as_ac_Header'}'` = yes; then
8939 cat >>confdefs.h <<_ACEOF
8940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8941_ACEOF
8942
8943fi
8944
8945done
8946
8947
8948
8949for ac_header in string.h strings.h
8950do
8951as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8952if eval "test \"\${$as_ac_Header+set}\" = set"; then
8953 echo "$as_me:$LINENO: checking for $ac_header" >&5
8954echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8955if eval "test \"\${$as_ac_Header+set}\" = set"; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8957fi
8958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8960else
8961 # Is the header compilable?
8962echo "$as_me:$LINENO: checking $ac_header usability" >&5
8963echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8964cat >conftest.$ac_ext <<_ACEOF
8965/* confdefs.h. */
8966_ACEOF
8967cat confdefs.h >>conftest.$ac_ext
8968cat >>conftest.$ac_ext <<_ACEOF
8969/* end confdefs.h. */
8970$ac_includes_default
8971#include <$ac_header>
8972_ACEOF
8973rm -f conftest.$ac_objext
8974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8975 (eval $ac_compile) 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } &&
8982 { ac_try='test -z "$ac_c_werror_flag"
8983 || test ! -s conftest.err'
8984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8985 (eval $ac_try) 2>&5
8986 ac_status=$?
8987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8988 (exit $ac_status); }; } &&
8989 { ac_try='test -s conftest.$ac_objext'
8990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8991 (eval $ac_try) 2>&5
8992 ac_status=$?
8993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8994 (exit $ac_status); }; }; then
8995 ac_header_compiler=yes
8996else
8997 echo "$as_me: failed program was:" >&5
8998sed 's/^/| /' conftest.$ac_ext >&5
8999
9000ac_header_compiler=no
9001fi
9002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9003echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9004echo "${ECHO_T}$ac_header_compiler" >&6
9005
9006# Is the header present?
9007echo "$as_me:$LINENO: checking $ac_header presence" >&5
9008echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9009cat >conftest.$ac_ext <<_ACEOF
9010/* confdefs.h. */
9011_ACEOF
9012cat confdefs.h >>conftest.$ac_ext
9013cat >>conftest.$ac_ext <<_ACEOF
9014/* end confdefs.h. */
9015#include <$ac_header>
9016_ACEOF
9017if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9018 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9019 ac_status=$?
9020 grep -v '^ *+' conftest.er1 >conftest.err
9021 rm -f conftest.er1
9022 cat conftest.err >&5
9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9024 (exit $ac_status); } >/dev/null; then
9025 if test -s conftest.err; then
9026 ac_cpp_err=$ac_c_preproc_warn_flag
9027 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9028 else
9029 ac_cpp_err=
9030 fi
9031else
9032 ac_cpp_err=yes
9033fi
9034if test -z "$ac_cpp_err"; then
9035 ac_header_preproc=yes
9036else
9037 echo "$as_me: failed program was:" >&5
9038sed 's/^/| /' conftest.$ac_ext >&5
9039
9040 ac_header_preproc=no
9041fi
9042rm -f conftest.err conftest.$ac_ext
9043echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9044echo "${ECHO_T}$ac_header_preproc" >&6
9045
9046# So? What about this header?
9047case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9048 yes:no: )
9049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9050echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9052echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9053 ac_header_preproc=yes
9054 ;;
9055 no:yes:* )
9056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9057echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9059echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9061echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9063echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9065echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9067echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9068 (
9069 cat <<\_ASBOX
9070## ----------------------------------- ##
9071## Report this to llvmbugs@cs.uiuc.edu ##
9072## ----------------------------------- ##
9073_ASBOX
9074 ) |
9075 sed "s/^/$as_me: WARNING: /" >&2
9076 ;;
9077esac
9078echo "$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
9082else
9083 eval "$as_ac_Header=\$ac_header_preproc"
9084fi
9085echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9086echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9087
9088fi
9089if test `eval echo '${'$as_ac_Header'}'` = yes; then
9090 cat >>confdefs.h <<_ACEOF
9091#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9092_ACEOF
9093 break
9094fi
9095
9096done
9097
9098
9099
9100
9101for ac_func in strchr index
9102do
9103as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9104echo "$as_me:$LINENO: checking for $ac_func" >&5
9105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9106if eval "test \"\${$as_ac_var+set}\" = set"; then
9107 echo $ECHO_N "(cached) $ECHO_C" >&6
9108else
9109 cat >conftest.$ac_ext <<_ACEOF
9110/* confdefs.h. */
9111_ACEOF
9112cat confdefs.h >>conftest.$ac_ext
9113cat >>conftest.$ac_ext <<_ACEOF
9114/* end confdefs.h. */
9115/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9117#define $ac_func innocuous_$ac_func
9118
9119/* System header to define __stub macros and hopefully few prototypes,
9120 which can conflict with char $ac_func (); below.
9121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9122 <limits.h> exists even on freestanding compilers. */
9123
9124#ifdef __STDC__
9125# include <limits.h>
9126#else
9127# include <assert.h>
9128#endif
9129
9130#undef $ac_func
9131
9132/* Override any gcc2 internal prototype to avoid an error. */
9133#ifdef __cplusplus
9134extern "C"
9135{
9136#endif
9137/* We use char because int might match the return type of a gcc2
9138 builtin and then its argument prototype would still apply. */
9139char $ac_func ();
9140/* The GNU C library defines this for functions which it implements
9141 to always fail with ENOSYS. Some functions are actually named
9142 something starting with __ and the normal name is an alias. */
9143#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9144choke me
9145#else
9146char (*f) () = $ac_func;
9147#endif
9148#ifdef __cplusplus
9149}
9150#endif
9151
9152int
9153main ()
9154{
9155return f != $ac_func;
9156 ;
9157 return 0;
9158}
9159_ACEOF
9160rm -f conftest.$ac_objext conftest$ac_exeext
9161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9162 (eval $ac_link) 2>conftest.er1
9163 ac_status=$?
9164 grep -v '^ *+' conftest.er1 >conftest.err
9165 rm -f conftest.er1
9166 cat conftest.err >&5
9167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168 (exit $ac_status); } &&
9169 { ac_try='test -z "$ac_c_werror_flag"
9170 || test ! -s conftest.err'
9171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9172 (eval $ac_try) 2>&5
9173 ac_status=$?
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); }; } &&
9176 { ac_try='test -s conftest$ac_exeext'
9177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9178 (eval $ac_try) 2>&5
9179 ac_status=$?
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); }; }; then
9182 eval "$as_ac_var=yes"
9183else
9184 echo "$as_me: failed program was:" >&5
9185sed 's/^/| /' conftest.$ac_ext >&5
9186
9187eval "$as_ac_var=no"
9188fi
9189rm -f conftest.err conftest.$ac_objext \
9190 conftest$ac_exeext conftest.$ac_ext
9191fi
9192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9193echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9194if test `eval echo '${'$as_ac_var'}'` = yes; then
9195 cat >>confdefs.h <<_ACEOF
9196#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9197_ACEOF
9198 break
9199fi
9200done
9201
9202
9203
9204for ac_func in strrchr rindex
9205do
9206as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9207echo "$as_me:$LINENO: checking for $ac_func" >&5
9208echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9209if eval "test \"\${$as_ac_var+set}\" = set"; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211else
9212 cat >conftest.$ac_ext <<_ACEOF
9213/* confdefs.h. */
9214_ACEOF
9215cat confdefs.h >>conftest.$ac_ext
9216cat >>conftest.$ac_ext <<_ACEOF
9217/* end confdefs.h. */
9218/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9220#define $ac_func innocuous_$ac_func
9221
9222/* System header to define __stub macros and hopefully few prototypes,
9223 which can conflict with char $ac_func (); below.
9224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9225 <limits.h> exists even on freestanding compilers. */
9226
9227#ifdef __STDC__
9228# include <limits.h>
9229#else
9230# include <assert.h>
9231#endif
9232
9233#undef $ac_func
9234
9235/* Override any gcc2 internal prototype to avoid an error. */
9236#ifdef __cplusplus
9237extern "C"
9238{
9239#endif
9240/* We use char because int might match the return type of a gcc2
9241 builtin and then its argument prototype would still apply. */
9242char $ac_func ();
9243/* The GNU C library defines this for functions which it implements
9244 to always fail with ENOSYS. Some functions are actually named
9245 something starting with __ and the normal name is an alias. */
9246#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9247choke me
9248#else
9249char (*f) () = $ac_func;
9250#endif
9251#ifdef __cplusplus
9252}
9253#endif
9254
9255int
9256main ()
9257{
9258return f != $ac_func;
9259 ;
9260 return 0;
9261}
9262_ACEOF
9263rm -f conftest.$ac_objext conftest$ac_exeext
9264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9265 (eval $ac_link) 2>conftest.er1
9266 ac_status=$?
9267 grep -v '^ *+' conftest.er1 >conftest.err
9268 rm -f conftest.er1
9269 cat conftest.err >&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); } &&
9272 { ac_try='test -z "$ac_c_werror_flag"
9273 || test ! -s conftest.err'
9274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9275 (eval $ac_try) 2>&5
9276 ac_status=$?
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); }; } &&
9279 { ac_try='test -s conftest$ac_exeext'
9280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281 (eval $ac_try) 2>&5
9282 ac_status=$?
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; }; then
9285 eval "$as_ac_var=yes"
9286else
9287 echo "$as_me: failed program was:" >&5
9288sed 's/^/| /' conftest.$ac_ext >&5
9289
9290eval "$as_ac_var=no"
9291fi
9292rm -f conftest.err conftest.$ac_objext \
9293 conftest$ac_exeext conftest.$ac_ext
9294fi
9295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9296echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9297if test `eval echo '${'$as_ac_var'}'` = yes; then
9298 cat >>confdefs.h <<_ACEOF
9299#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9300_ACEOF
9301 break
9302fi
9303done
9304
9305
9306
9307for ac_func in memcpy bcopy
9308do
9309as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9310echo "$as_me:$LINENO: checking for $ac_func" >&5
9311echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9312if eval "test \"\${$as_ac_var+set}\" = set"; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314else
9315 cat >conftest.$ac_ext <<_ACEOF
9316/* confdefs.h. */
9317_ACEOF
9318cat confdefs.h >>conftest.$ac_ext
9319cat >>conftest.$ac_ext <<_ACEOF
9320/* end confdefs.h. */
9321/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9323#define $ac_func innocuous_$ac_func
9324
9325/* System header to define __stub macros and hopefully few prototypes,
9326 which can conflict with char $ac_func (); below.
9327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9328 <limits.h> exists even on freestanding compilers. */
9329
9330#ifdef __STDC__
9331# include <limits.h>
9332#else
9333# include <assert.h>
9334#endif
9335
9336#undef $ac_func
9337
9338/* Override any gcc2 internal prototype to avoid an error. */
9339#ifdef __cplusplus
9340extern "C"
9341{
9342#endif
9343/* We use char because int might match the return type of a gcc2
9344 builtin and then its argument prototype would still apply. */
9345char $ac_func ();
9346/* The GNU C library defines this for functions which it implements
9347 to always fail with ENOSYS. Some functions are actually named
9348 something starting with __ and the normal name is an alias. */
9349#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9350choke me
9351#else
9352char (*f) () = $ac_func;
9353#endif
9354#ifdef __cplusplus
9355}
9356#endif
9357
9358int
9359main ()
9360{
9361return f != $ac_func;
9362 ;
9363 return 0;
9364}
9365_ACEOF
9366rm -f conftest.$ac_objext conftest$ac_exeext
9367if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9368 (eval $ac_link) 2>conftest.er1
9369 ac_status=$?
9370 grep -v '^ *+' conftest.er1 >conftest.err
9371 rm -f conftest.er1
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag"
9376 || test ! -s conftest.err'
9377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9378 (eval $ac_try) 2>&5
9379 ac_status=$?
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); }; } &&
9382 { ac_try='test -s conftest$ac_exeext'
9383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9384 (eval $ac_try) 2>&5
9385 ac_status=$?
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); }; }; then
9388 eval "$as_ac_var=yes"
9389else
9390 echo "$as_me: failed program was:" >&5
9391sed 's/^/| /' conftest.$ac_ext >&5
9392
9393eval "$as_ac_var=no"
9394fi
9395rm -f conftest.err conftest.$ac_objext \
9396 conftest$ac_exeext conftest.$ac_ext
9397fi
9398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9399echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9400if test `eval echo '${'$as_ac_var'}'` = yes; then
9401 cat >>confdefs.h <<_ACEOF
9402#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9403_ACEOF
9404 break
9405fi
9406done
9407
9408
9409
9410for ac_func in memmove strcmp
9411do
9412as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9413echo "$as_me:$LINENO: checking for $ac_func" >&5
9414echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9415if eval "test \"\${$as_ac_var+set}\" = set"; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417else
9418 cat >conftest.$ac_ext <<_ACEOF
9419/* confdefs.h. */
9420_ACEOF
9421cat confdefs.h >>conftest.$ac_ext
9422cat >>conftest.$ac_ext <<_ACEOF
9423/* end confdefs.h. */
9424/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9426#define $ac_func innocuous_$ac_func
9427
9428/* System header to define __stub macros and hopefully few prototypes,
9429 which can conflict with char $ac_func (); below.
9430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9431 <limits.h> exists even on freestanding compilers. */
9432
9433#ifdef __STDC__
9434# include <limits.h>
9435#else
9436# include <assert.h>
9437#endif
9438
9439#undef $ac_func
9440
9441/* Override any gcc2 internal prototype to avoid an error. */
9442#ifdef __cplusplus
9443extern "C"
9444{
9445#endif
9446/* We use char because int might match the return type of a gcc2
9447 builtin and then its argument prototype would still apply. */
9448char $ac_func ();
9449/* The GNU C library defines this for functions which it implements
9450 to always fail with ENOSYS. Some functions are actually named
9451 something starting with __ and the normal name is an alias. */
9452#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9453choke me
9454#else
9455char (*f) () = $ac_func;
9456#endif
9457#ifdef __cplusplus
9458}
9459#endif
9460
9461int
9462main ()
9463{
9464return f != $ac_func;
9465 ;
9466 return 0;
9467}
9468_ACEOF
9469rm -f conftest.$ac_objext conftest$ac_exeext
9470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9471 (eval $ac_link) 2>conftest.er1
9472 ac_status=$?
9473 grep -v '^ *+' conftest.er1 >conftest.err
9474 rm -f conftest.er1
9475 cat conftest.err >&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } &&
9478 { ac_try='test -z "$ac_c_werror_flag"
9479 || test ! -s conftest.err'
9480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9481 (eval $ac_try) 2>&5
9482 ac_status=$?
9483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9484 (exit $ac_status); }; } &&
9485 { ac_try='test -s conftest$ac_exeext'
9486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9487 (eval $ac_try) 2>&5
9488 ac_status=$?
9489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9490 (exit $ac_status); }; }; then
9491 eval "$as_ac_var=yes"
9492else
9493 echo "$as_me: failed program was:" >&5
9494sed 's/^/| /' conftest.$ac_ext >&5
9495
9496eval "$as_ac_var=no"
9497fi
9498rm -f conftest.err conftest.$ac_objext \
9499 conftest$ac_exeext conftest.$ac_ext
9500fi
9501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9502echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9503if test `eval echo '${'$as_ac_var'}'` = yes; then
9504 cat >>confdefs.h <<_ACEOF
9505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9506_ACEOF
9507
9508fi
9509done
9510
9511
9512
9513
9514for ac_func in closedir opendir readdir
9515do
9516as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9517echo "$as_me:$LINENO: checking for $ac_func" >&5
9518echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9519if eval "test \"\${$as_ac_var+set}\" = set"; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9521else
9522 cat >conftest.$ac_ext <<_ACEOF
9523/* confdefs.h. */
9524_ACEOF
9525cat confdefs.h >>conftest.$ac_ext
9526cat >>conftest.$ac_ext <<_ACEOF
9527/* end confdefs.h. */
9528/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9529 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9530#define $ac_func innocuous_$ac_func
9531
9532/* System header to define __stub macros and hopefully few prototypes,
9533 which can conflict with char $ac_func (); below.
9534 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9535 <limits.h> exists even on freestanding compilers. */
9536
9537#ifdef __STDC__
9538# include <limits.h>
9539#else
9540# include <assert.h>
9541#endif
9542
9543#undef $ac_func
9544
9545/* Override any gcc2 internal prototype to avoid an error. */
9546#ifdef __cplusplus
9547extern "C"
9548{
9549#endif
9550/* We use char because int might match the return type of a gcc2
9551 builtin and then its argument prototype would still apply. */
9552char $ac_func ();
9553/* The GNU C library defines this for functions which it implements
9554 to always fail with ENOSYS. Some functions are actually named
9555 something starting with __ and the normal name is an alias. */
9556#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9557choke me
9558#else
9559char (*f) () = $ac_func;
9560#endif
9561#ifdef __cplusplus
9562}
9563#endif
9564
9565int
9566main ()
9567{
9568return f != $ac_func;
9569 ;
9570 return 0;
9571}
9572_ACEOF
9573rm -f conftest.$ac_objext conftest$ac_exeext
9574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575 (eval $ac_link) 2>conftest.er1
9576 ac_status=$?
9577 grep -v '^ *+' conftest.er1 >conftest.err
9578 rm -f conftest.er1
9579 cat conftest.err >&5
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); } &&
9582 { ac_try='test -z "$ac_c_werror_flag"
9583 || test ! -s conftest.err'
9584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9585 (eval $ac_try) 2>&5
9586 ac_status=$?
9587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588 (exit $ac_status); }; } &&
9589 { ac_try='test -s conftest$ac_exeext'
9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591 (eval $ac_try) 2>&5
9592 ac_status=$?
9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594 (exit $ac_status); }; }; then
9595 eval "$as_ac_var=yes"
9596else
9597 echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
9600eval "$as_ac_var=no"
9601fi
9602rm -f conftest.err conftest.$ac_objext \
9603 conftest$ac_exeext conftest.$ac_ext
9604fi
9605echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9606echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9607if test `eval echo '${'$as_ac_var'}'` = yes; then
9608 cat >>confdefs.h <<_ACEOF
9609#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9610_ACEOF
9611
9612fi
9613done
9614
9615
9616# Check whether --enable-shared or --disable-shared was given.
9617if test "${enable_shared+set}" = set; then
9618 enableval="$enable_shared"
9619 p=${PACKAGE-default}
9620 case $enableval in
9621 yes) enable_shared=yes ;;
9622 no) enable_shared=no ;;
9623 *)
9624 enable_shared=no
9625 # Look at the argument we got. We use all the common list separators.
9626 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9627 for pkg in $enableval; do
9628 IFS="$lt_save_ifs"
9629 if test "X$pkg" = "X$p"; then
9630 enable_shared=yes
9631 fi
9632 done
9633 IFS="$lt_save_ifs"
9634 ;;
9635 esac
9636else
9637 enable_shared=yes
9638fi;
9639
9640# Check whether --enable-static or --disable-static was given.
9641if test "${enable_static+set}" = set; then
9642 enableval="$enable_static"
9643 p=${PACKAGE-default}
9644 case $enableval in
9645 yes) enable_static=yes ;;
9646 no) enable_static=no ;;
9647 *)
9648 enable_static=no
9649 # Look at the argument we got. We use all the common list separators.
9650 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9651 for pkg in $enableval; do
9652 IFS="$lt_save_ifs"
9653 if test "X$pkg" = "X$p"; then
9654 enable_static=yes
9655 fi
9656 done
9657 IFS="$lt_save_ifs"
9658 ;;
9659 esac
9660else
9661 enable_static=yes
9662fi;
9663
9664# Check whether --enable-fast-install or --disable-fast-install was given.
9665if test "${enable_fast_install+set}" = set; then
9666 enableval="$enable_fast_install"
9667 p=${PACKAGE-default}
9668 case $enableval in
9669 yes) enable_fast_install=yes ;;
9670 no) enable_fast_install=no ;;
9671 *)
9672 enable_fast_install=no
9673 # Look at the argument we got. We use all the common list separators.
9674 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9675 for pkg in $enableval; do
9676 IFS="$lt_save_ifs"
9677 if test "X$pkg" = "X$p"; then
9678 enable_fast_install=yes
9679 fi
9680 done
9681 IFS="$lt_save_ifs"
9682 ;;
9683 esac
9684else
9685 enable_fast_install=yes
9686fi;
9687
9688echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9689echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9690if test "${lt_cv_path_SED+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9692else
9693 # Loop through the user's path and test for sed and gsed.
9694# Then use that list of sed's as ones to test for truncation.
9695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9696for as_dir in $PATH
9697do
9698 IFS=$as_save_IFS
9699 test -z "$as_dir" && as_dir=.
9700 for lt_ac_prog in sed gsed; do
9701 for ac_exec_ext in '' $ac_executable_extensions; do
9702 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9703 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9704 fi
9705 done
9706 done
9707done
9708lt_ac_max=0
9709lt_ac_count=0
9710# Add /usr/xpg4/bin/sed as it is typically found on Solaris
9711# along with /bin/sed that truncates output.
9712for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9713 test ! -f $lt_ac_sed && break
9714 cat /dev/null > conftest.in
9715 lt_ac_count=0
9716 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9717 # Check for GNU sed and select it if it is found.
9718 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9719 lt_cv_path_SED=$lt_ac_sed
9720 break
9721 fi
9722 while true; do
9723 cat conftest.in conftest.in >conftest.tmp
9724 mv conftest.tmp conftest.in
9725 cp conftest.in conftest.nl
9726 echo >>conftest.nl
9727 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9728 cmp -s conftest.out conftest.nl || break
9729 # 10000 chars as input seems more than enough
9730 test $lt_ac_count -gt 10 && break
9731 lt_ac_count=`expr $lt_ac_count + 1`
9732 if test $lt_ac_count -gt $lt_ac_max; then
9733 lt_ac_max=$lt_ac_count
9734 lt_cv_path_SED=$lt_ac_sed
9735 fi
9736 done
9737done
9738
9739fi
9740
9741SED=$lt_cv_path_SED
9742echo "$as_me:$LINENO: result: $SED" >&5
9743echo "${ECHO_T}$SED" >&6
9744
9745
9746# Check whether --with-gnu-ld or --without-gnu-ld was given.
9747if test "${with_gnu_ld+set}" = set; then
9748 withval="$with_gnu_ld"
9749 test "$withval" = no || with_gnu_ld=yes
9750else
9751 with_gnu_ld=no
9752fi;
9753ac_prog=ld
9754if test "$GCC" = yes; then
9755 # Check if gcc -print-prog-name=ld gives a path.
9756 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9757echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9758 case $host in
9759 *-*-mingw*)
9760 # gcc leaves a trailing carriage return which upsets mingw
9761 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9762 *)
9763 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9764 esac
9765 case $ac_prog in
9766 # Accept absolute paths.
9767 [\\/]* | ?:[\\/]*)
9768 re_direlt='/[^/][^/]*/\.\./'
9769 # Canonicalize the pathname of ld
9770 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9771 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9772 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9773 done
9774 test -z "$LD" && LD="$ac_prog"
9775 ;;
9776 "")
9777 # If it fails, then pretend we aren't using GCC.
9778 ac_prog=ld
9779 ;;
9780 *)
9781 # If it is relative, then search for the first ld in PATH.
9782 with_gnu_ld=unknown
9783 ;;
9784 esac
9785elif test "$with_gnu_ld" = yes; then
9786 echo "$as_me:$LINENO: checking for GNU ld" >&5
9787echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9788else
9789 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9790echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9791fi
9792if test "${lt_cv_path_LD+set}" = set; then
9793 echo $ECHO_N "(cached) $ECHO_C" >&6
9794else
9795 if test -z "$LD"; then
9796 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9797 for ac_dir in $PATH; do
9798 IFS="$lt_save_ifs"
9799 test -z "$ac_dir" && ac_dir=.
9800 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9801 lt_cv_path_LD="$ac_dir/$ac_prog"
9802 # Check to see if the program is GNU ld. I'd rather use --version,
9803 # but apparently some GNU ld's only accept -v.
9804 # Break only if it was the GNU/non-GNU ld that we prefer.
9805 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9806 *GNU* | *'with BFD'*)
9807 test "$with_gnu_ld" != no && break
9808 ;;
9809 *)
9810 test "$with_gnu_ld" != yes && break
9811 ;;
9812 esac
9813 fi
9814 done
9815 IFS="$lt_save_ifs"
9816else
9817 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9818fi
9819fi
9820
9821LD="$lt_cv_path_LD"
9822if test -n "$LD"; then
9823 echo "$as_me:$LINENO: result: $LD" >&5
9824echo "${ECHO_T}$LD" >&6
9825else
9826 echo "$as_me:$LINENO: result: no" >&5
9827echo "${ECHO_T}no" >&6
9828fi
9829test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9830echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9831 { (exit 1); exit 1; }; }
9832echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9833echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9834if test "${lt_cv_prog_gnu_ld+set}" = set; then
9835 echo $ECHO_N "(cached) $ECHO_C" >&6
9836else
9837 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9838case `$LD -v 2>&1 </dev/null` in
9839*GNU* | *'with BFD'*)
9840 lt_cv_prog_gnu_ld=yes
9841 ;;
9842*)
9843 lt_cv_prog_gnu_ld=no
9844 ;;
9845esac
9846fi
9847echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9848echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9849with_gnu_ld=$lt_cv_prog_gnu_ld
9850
9851
9852echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
9853echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
9854if test "${lt_cv_ld_reload_flag+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856else
9857 lt_cv_ld_reload_flag='-r'
9858fi
9859echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
9860echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
9861reload_flag=$lt_cv_ld_reload_flag
9862case $reload_flag in
9863"" | " "*) ;;
9864*) reload_flag=" $reload_flag" ;;
9865esac
9866reload_cmds='$LD$reload_flag -o $output$reload_objs'
9867case $host_os in
9868 darwin*)
9869 if test "$GCC" = yes; then
9870 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
9871 else
9872 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9873 fi
9874 ;;
9875esac
9876
9877echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
9878echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
9879if test "${lt_cv_deplibs_check_method+set}" = set; then
9880 echo $ECHO_N "(cached) $ECHO_C" >&6
9881else
9882 lt_cv_file_magic_cmd='$MAGIC_CMD'
9883lt_cv_file_magic_test_file=
9884lt_cv_deplibs_check_method='unknown'
9885# Need to set the preceding variable on all platforms that support
9886# interlibrary dependencies.
9887# 'none' -- dependencies not supported.
9888# `unknown' -- same as none, but documents that we really don't know.
9889# 'pass_all' -- all dependencies passed with no checks.
9890# 'test_compile' -- check by making test program.
9891# 'file_magic [[regex]]' -- check by looking for files in library path
9892# which responds to the $file_magic_cmd with a given extended regex.
9893# If you have `file' or equivalent on your system and you're not sure
9894# whether `pass_all' will *always* work, you probably want this one.
9895
9896case $host_os in
9897aix4* | aix5*)
9898 lt_cv_deplibs_check_method=pass_all
9899 ;;
9900
9901beos*)
9902 lt_cv_deplibs_check_method=pass_all
9903 ;;
9904
9905bsdi[45]*)
9906 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9907 lt_cv_file_magic_cmd='/usr/bin/file -L'
9908 lt_cv_file_magic_test_file=/shlib/libc.so
9909 ;;
9910
9911cygwin*)
9912 # func_win32_libid is a shell function defined in ltmain.sh
9913 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9914 lt_cv_file_magic_cmd='func_win32_libid'
9915 ;;
9916
9917mingw* | pw32*)
9918 # Base MSYS/MinGW do not provide the 'file' command needed by
9919 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
9920 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9921 lt_cv_file_magic_cmd='$OBJDUMP -f'
9922 ;;
9923
9924darwin* | rhapsody*)
9925 lt_cv_deplibs_check_method=pass_all
9926 ;;
9927
9928freebsd* | kfreebsd*-gnu)
9929 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9930 case $host_cpu in
9931 i*86 )
9932 # Not sure whether the presence of OpenBSD here was a mistake.
9933 # Let's accept both of them until this is cleared up.
9934 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
9935 lt_cv_file_magic_cmd=/usr/bin/file
9936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9937 ;;
9938 esac
9939 else
9940 lt_cv_deplibs_check_method=pass_all
9941 fi
9942 ;;
9943
9944gnu*)
9945 lt_cv_deplibs_check_method=pass_all
9946 ;;
9947
9948hpux10.20* | hpux11*)
9949 lt_cv_file_magic_cmd=/usr/bin/file
9950 case "$host_cpu" in
9951 ia64*)
9952 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9953 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9954 ;;
9955 hppa*64*)
9956 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]'
9957 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9958 ;;
9959 *)
9960 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9961 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9962 ;;
9963 esac
9964 ;;
9965
9966irix5* | irix6* | nonstopux*)
9967 case $LD in
9968 *-32|*"-32 ") libmagic=32-bit;;
9969 *-n32|*"-n32 ") libmagic=N32;;
9970 *-64|*"-64 ") libmagic=64-bit;;
9971 *) libmagic=never-match;;
9972 esac
9973 lt_cv_deplibs_check_method=pass_all
9974 ;;
9975
9976# This must be Linux ELF.
9977linux*)
9978 lt_cv_deplibs_check_method=pass_all
9979 ;;
9980
9981netbsd*)
9982 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
9983 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9984 else
9985 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9986 fi
9987 ;;
9988
9989newos6*)
9990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9991 lt_cv_file_magic_cmd=/usr/bin/file
9992 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9993 ;;
9994
9995nto-qnx*)
9996 lt_cv_deplibs_check_method=unknown
9997 ;;
9998
9999openbsd*)
10000 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10002 else
10003 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10004 fi
10005 ;;
10006
10007osf3* | osf4* | osf5*)
10008 lt_cv_deplibs_check_method=pass_all
10009 ;;
10010
10011sco3.2v5*)
10012 lt_cv_deplibs_check_method=pass_all
10013 ;;
10014
10015solaris*)
10016 lt_cv_deplibs_check_method=pass_all
10017 ;;
10018
10019sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10020 case $host_vendor in
10021 motorola)
10022 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]'
10023 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10024 ;;
10025 ncr)
10026 lt_cv_deplibs_check_method=pass_all
10027 ;;
10028 sequent)
10029 lt_cv_file_magic_cmd='/bin/file'
10030 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10031 ;;
10032 sni)
10033 lt_cv_file_magic_cmd='/bin/file'
10034 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10035 lt_cv_file_magic_test_file=/lib/libc.so
10036 ;;
10037 siemens)
10038 lt_cv_deplibs_check_method=pass_all
10039 ;;
10040 esac
10041 ;;
10042
10043sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10044 lt_cv_deplibs_check_method=pass_all
10045 ;;
10046esac
10047
10048fi
10049echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10050echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10051file_magic_cmd=$lt_cv_file_magic_cmd
10052deplibs_check_method=$lt_cv_deplibs_check_method
10053test -z "$deplibs_check_method" && deplibs_check_method=unknown
10054
10055
10056
10057# If no C compiler was specified, use CC.
10058LTCC=${LTCC-"$CC"}
10059
10060# Allow CC to be a program name with arguments.
10061compiler=$CC
10062
10063# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10064if test "${enable_libtool_lock+set}" = set; then
10065 enableval="$enable_libtool_lock"
10066
10067fi;
10068test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10069
10070# Some flags need to be propagated to the compiler or linker for good
10071# libtool support.
10072case $host in
10073ia64-*-hpux*)
10074 # Find out which ABI we are using.
10075 echo 'int i;' > conftest.$ac_ext
10076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10077 (eval $ac_compile) 2>&5
10078 ac_status=$?
10079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); }; then
10081 case `/usr/bin/file conftest.$ac_objext` in
10082 *ELF-32*)
10083 HPUX_IA64_MODE="32"
10084 ;;
10085 *ELF-64*)
10086 HPUX_IA64_MODE="64"
10087 ;;
10088 esac
10089 fi
10090 rm -rf conftest*
10091 ;;
10092*-*-irix6*)
10093 # Find out which ABI we are using.
10094 echo '#line 10094 "configure"' > conftest.$ac_ext
10095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10096 (eval $ac_compile) 2>&5
10097 ac_status=$?
10098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099 (exit $ac_status); }; then
10100 if test "$lt_cv_prog_gnu_ld" = yes; then
10101 case `/usr/bin/file conftest.$ac_objext` in
10102 *32-bit*)
10103 LD="${LD-ld} -melf32bsmip"
10104 ;;
10105 *N32*)
10106 LD="${LD-ld} -melf32bmipn32"
10107 ;;
10108 *64-bit*)
10109 LD="${LD-ld} -melf64bmip"
10110 ;;
10111 esac
10112 else
10113 case `/usr/bin/file conftest.$ac_objext` in
10114 *32-bit*)
10115 LD="${LD-ld} -32"
10116 ;;
10117 *N32*)
10118 LD="${LD-ld} -n32"
10119 ;;
10120 *64-bit*)
10121 LD="${LD-ld} -64"
10122 ;;
10123 esac
10124 fi
10125 fi
10126 rm -rf conftest*
10127 ;;
10128
10129x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10130 # Find out which ABI we are using.
10131 echo 'int i;' > conftest.$ac_ext
10132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10133 (eval $ac_compile) 2>&5
10134 ac_status=$?
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; then
10137 case "`/usr/bin/file conftest.o`" in
10138 *32-bit*)
10139 case $host in
10140 x86_64-*linux*)
10141 LD="${LD-ld} -m elf_i386"
10142 ;;
10143 ppc64-*linux*|powerpc64-*linux*)
10144 LD="${LD-ld} -m elf32ppclinux"
10145 ;;
10146 s390x-*linux*)
10147 LD="${LD-ld} -m elf_s390"
10148 ;;
10149 sparc64-*linux*)
10150 LD="${LD-ld} -m elf32_sparc"
10151 ;;
10152 esac
10153 ;;
10154 *64-bit*)
10155 case $host in
10156 x86_64-*linux*)
10157 LD="${LD-ld} -m elf_x86_64"
10158 ;;
10159 ppc*-*linux*|powerpc*-*linux*)
10160 LD="${LD-ld} -m elf64ppc"
10161 ;;
10162 s390*-*linux*)
10163 LD="${LD-ld} -m elf64_s390"
10164 ;;
10165 sparc*-*linux*)
10166 LD="${LD-ld} -m elf64_sparc"
10167 ;;
10168 esac
10169 ;;
10170 esac
10171 fi
10172 rm -rf conftest*
10173 ;;
10174
10175*-*-sco3.2v5*)
10176 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10177 SAVE_CFLAGS="$CFLAGS"
10178 CFLAGS="$CFLAGS -belf"
10179 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10180echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10181if test "${lt_cv_cc_needs_belf+set}" = set; then
10182 echo $ECHO_N "(cached) $ECHO_C" >&6
10183else
10184 ac_ext=c
10185ac_cpp='$CPP $CPPFLAGS'
10186ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10187ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10188ac_compiler_gnu=$ac_cv_c_compiler_gnu
10189
10190 cat >conftest.$ac_ext <<_ACEOF
10191/* confdefs.h. */
10192_ACEOF
10193cat confdefs.h >>conftest.$ac_ext
10194cat >>conftest.$ac_ext <<_ACEOF
10195/* end confdefs.h. */
10196
10197_ACEOF
10198rm -f conftest.$ac_objext conftest$ac_exeext
10199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10200 (eval $ac_link) 2>conftest.er1
10201 ac_status=$?
10202 grep -v '^ *+' conftest.er1 >conftest.err
10203 rm -f conftest.er1
10204 cat conftest.err >&5
10205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10206 (exit $ac_status); } &&
10207 { ac_try='test -z "$ac_c_werror_flag"
10208 || test ! -s conftest.err'
10209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10210 (eval $ac_try) 2>&5
10211 ac_status=$?
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; } &&
10214 { ac_try='test -s conftest$ac_exeext'
10215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10216 (eval $ac_try) 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 lt_cv_cc_needs_belf=yes
10221else
10222 echo "$as_me: failed program was:" >&5
10223sed 's/^/| /' conftest.$ac_ext >&5
10224
10225lt_cv_cc_needs_belf=no
10226fi
10227rm -f conftest.err conftest.$ac_objext \
10228 conftest$ac_exeext conftest.$ac_ext
10229 ac_ext=c
10230ac_cpp='$CPP $CPPFLAGS'
10231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10233ac_compiler_gnu=$ac_cv_c_compiler_gnu
10234
10235fi
10236echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10237echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10238 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10239 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10240 CFLAGS="$SAVE_CFLAGS"
10241 fi
10242 ;;
10243
10244esac
10245
10246need_locks="$enable_libtool_lock"
10247
10248
Reid Spencer2706f8c2004-09-19 23:53:36 +000010249
10250
10251if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10252 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10253 (test "X$CXX" != "Xg++"))) ; then
10254 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +000010255ac_cpp='$CXXCPP $CPPFLAGS'
10256ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10257ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10258ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10259echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
10260echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
10261if test -z "$CXXCPP"; then
10262 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000010263 echo $ECHO_N "(cached) $ECHO_C" >&6
10264else
John Criswell47fdd832003-07-14 16:52:07 +000010265 # Double quotes because CXXCPP needs to be expanded
10266 for CXXCPP in "$CXX -E" "/lib/cpp"
10267 do
10268 ac_preproc_ok=false
10269for ac_cxx_preproc_warn_flag in '' yes
10270do
10271 # Use a header file that comes with gcc, so configuring glibc
10272 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010273 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10274 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010275 # On the NeXT, cc -E runs the code through the compiler's parser,
10276 # not just through cpp. "Syntax error" is here to catch this case.
10277 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010278/* confdefs.h. */
10279_ACEOF
10280cat confdefs.h >>conftest.$ac_ext
10281cat >>conftest.$ac_ext <<_ACEOF
10282/* end confdefs.h. */
10283#ifdef __STDC__
10284# include <limits.h>
10285#else
10286# include <assert.h>
10287#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010288 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010289_ACEOF
10290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10292 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010293 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010294 rm -f conftest.er1
10295 cat conftest.err >&5
10296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10297 (exit $ac_status); } >/dev/null; then
10298 if test -s conftest.err; then
10299 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010300 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000010301 else
John Criswell47fdd832003-07-14 16:52:07 +000010302 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +000010303 fi
John Criswell47fdd832003-07-14 16:52:07 +000010304else
10305 ac_cpp_err=yes
10306fi
10307if test -z "$ac_cpp_err"; then
10308 :
10309else
10310 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010311sed 's/^/| /' conftest.$ac_ext >&5
10312
John Criswell47fdd832003-07-14 16:52:07 +000010313 # Broken: fails on valid input.
10314continue
10315fi
10316rm -f conftest.err conftest.$ac_ext
10317
10318 # OK, works on sane cases. Now check whether non-existent headers
10319 # can be detected and how.
10320 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010321/* confdefs.h. */
10322_ACEOF
10323cat confdefs.h >>conftest.$ac_ext
10324cat >>conftest.$ac_ext <<_ACEOF
10325/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010326#include <ac_nonexistent.h>
10327_ACEOF
10328if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10330 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010331 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010332 rm -f conftest.er1
10333 cat conftest.err >&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } >/dev/null; then
10336 if test -s conftest.err; then
10337 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010338 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010339 else
10340 ac_cpp_err=
10341 fi
10342else
10343 ac_cpp_err=yes
10344fi
10345if test -z "$ac_cpp_err"; then
10346 # Broken: success on invalid input.
10347continue
10348else
10349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010350sed 's/^/| /' conftest.$ac_ext >&5
10351
John Criswell47fdd832003-07-14 16:52:07 +000010352 # Passes both tests.
10353ac_preproc_ok=:
10354break
10355fi
10356rm -f conftest.err conftest.$ac_ext
10357
10358done
10359# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10360rm -f conftest.err conftest.$ac_ext
10361if $ac_preproc_ok; then
10362 break
John Criswell7a73b802003-06-30 21:59:07 +000010363fi
10364
John Criswell47fdd832003-07-14 16:52:07 +000010365 done
10366 ac_cv_prog_CXXCPP=$CXXCPP
10367
10368fi
10369 CXXCPP=$ac_cv_prog_CXXCPP
10370else
10371 ac_cv_prog_CXXCPP=$CXXCPP
10372fi
10373echo "$as_me:$LINENO: result: $CXXCPP" >&5
10374echo "${ECHO_T}$CXXCPP" >&6
10375ac_preproc_ok=false
10376for ac_cxx_preproc_warn_flag in '' yes
10377do
10378 # Use a header file that comes with gcc, so configuring glibc
10379 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +000010380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10381 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +000010382 # On the NeXT, cc -E runs the code through the compiler's parser,
10383 # not just through cpp. "Syntax error" is here to catch this case.
10384 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010385/* confdefs.h. */
10386_ACEOF
10387cat confdefs.h >>conftest.$ac_ext
10388cat >>conftest.$ac_ext <<_ACEOF
10389/* end confdefs.h. */
10390#ifdef __STDC__
10391# include <limits.h>
10392#else
10393# include <assert.h>
10394#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000010395 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +000010396_ACEOF
10397if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10398 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10399 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010400 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010401 rm -f conftest.er1
10402 cat conftest.err >&5
10403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10404 (exit $ac_status); } >/dev/null; then
10405 if test -s conftest.err; then
10406 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010407 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010408 else
10409 ac_cpp_err=
10410 fi
10411else
10412 ac_cpp_err=yes
10413fi
10414if test -z "$ac_cpp_err"; then
10415 :
10416else
10417 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010418sed 's/^/| /' conftest.$ac_ext >&5
10419
John Criswell47fdd832003-07-14 16:52:07 +000010420 # Broken: fails on valid input.
10421continue
10422fi
10423rm -f conftest.err conftest.$ac_ext
10424
10425 # OK, works on sane cases. Now check whether non-existent headers
10426 # can be detected and how.
10427 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000010428/* confdefs.h. */
10429_ACEOF
10430cat confdefs.h >>conftest.$ac_ext
10431cat >>conftest.$ac_ext <<_ACEOF
10432/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000010433#include <ac_nonexistent.h>
10434_ACEOF
10435if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10437 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000010438 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +000010439 rm -f conftest.er1
10440 cat conftest.err >&5
10441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10442 (exit $ac_status); } >/dev/null; then
10443 if test -s conftest.err; then
10444 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000010445 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +000010446 else
10447 ac_cpp_err=
10448 fi
10449else
10450 ac_cpp_err=yes
10451fi
10452if test -z "$ac_cpp_err"; then
10453 # Broken: success on invalid input.
10454continue
10455else
10456 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010457sed 's/^/| /' conftest.$ac_ext >&5
10458
John Criswell47fdd832003-07-14 16:52:07 +000010459 # Passes both tests.
10460ac_preproc_ok=:
10461break
10462fi
10463rm -f conftest.err conftest.$ac_ext
10464
10465done
10466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10467rm -f conftest.err conftest.$ac_ext
10468if $ac_preproc_ok; then
10469 :
10470else
John Criswell0c38eaf2003-09-10 15:17:25 +000010471 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10472See \`config.log' for more details." >&5
10473echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
10474See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +000010475 { (exit 1); exit 1; }; }
10476fi
10477
10478ac_ext=cc
10479ac_cpp='$CXXCPP $CPPFLAGS'
10480ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10481ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10482ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10483
Reid Spencer2706f8c2004-09-19 23:53:36 +000010484fi
10485
John Criswell47fdd832003-07-14 16:52:07 +000010486
10487ac_ext=f
10488ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10489ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10490ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10491if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010492 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 +000010493 do
10494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10495set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10496echo "$as_me:$LINENO: checking for $ac_word" >&5
10497echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10498if test "${ac_cv_prog_F77+set}" = set; then
10499 echo $ECHO_N "(cached) $ECHO_C" >&6
10500else
10501 if test -n "$F77"; then
10502 ac_cv_prog_F77="$F77" # Let the user override the test.
10503else
10504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10505for as_dir in $PATH
10506do
10507 IFS=$as_save_IFS
10508 test -z "$as_dir" && as_dir=.
10509 for ac_exec_ext in '' $ac_executable_extensions; do
10510 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10511 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10512 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 break 2
10514 fi
10515done
10516done
10517
10518fi
10519fi
10520F77=$ac_cv_prog_F77
10521if test -n "$F77"; then
10522 echo "$as_me:$LINENO: result: $F77" >&5
10523echo "${ECHO_T}$F77" >&6
10524else
10525 echo "$as_me:$LINENO: result: no" >&5
10526echo "${ECHO_T}no" >&6
10527fi
10528
10529 test -n "$F77" && break
10530 done
10531fi
10532if test -z "$F77"; then
10533 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +000010534 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 +000010535do
10536 # Extract the first word of "$ac_prog", so it can be a program name with args.
10537set dummy $ac_prog; ac_word=$2
10538echo "$as_me:$LINENO: checking for $ac_word" >&5
10539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10540if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
10541 echo $ECHO_N "(cached) $ECHO_C" >&6
10542else
10543 if test -n "$ac_ct_F77"; then
10544 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10545else
10546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547for as_dir in $PATH
10548do
10549 IFS=$as_save_IFS
10550 test -z "$as_dir" && as_dir=.
10551 for ac_exec_ext in '' $ac_executable_extensions; do
10552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10553 ac_cv_prog_ac_ct_F77="$ac_prog"
10554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10555 break 2
10556 fi
10557done
10558done
10559
10560fi
10561fi
10562ac_ct_F77=$ac_cv_prog_ac_ct_F77
10563if test -n "$ac_ct_F77"; then
10564 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
10565echo "${ECHO_T}$ac_ct_F77" >&6
10566else
10567 echo "$as_me:$LINENO: result: no" >&5
10568echo "${ECHO_T}no" >&6
10569fi
10570
10571 test -n "$ac_ct_F77" && break
10572done
10573
10574 F77=$ac_ct_F77
10575fi
10576
10577
10578# Provide some information about the compiler.
Reid Spencer2bc7bd52004-11-29 12:29:58 +000010579echo "$as_me:10579:" \
John Criswell47fdd832003-07-14 16:52:07 +000010580 "checking for Fortran 77 compiler version" >&5
10581ac_compiler=`set X $ac_compile; echo $2`
10582{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
10583 (eval $ac_compiler --version </dev/null >&5) 2>&5
10584 ac_status=$?
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); }
10587{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
10588 (eval $ac_compiler -v </dev/null >&5) 2>&5
10589 ac_status=$?
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }
10592{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
10593 (eval $ac_compiler -V </dev/null >&5) 2>&5
10594 ac_status=$?
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +000010597rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +000010598
10599# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +000010600# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +000010601ac_save_ext=$ac_ext
10602ac_ext=F
10603echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
10604echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
10605if test "${ac_cv_f77_compiler_gnu+set}" = set; then
10606 echo $ECHO_N "(cached) $ECHO_C" >&6
10607else
10608 cat >conftest.$ac_ext <<_ACEOF
10609 program main
10610#ifndef __GNUC__
10611 choke me
10612#endif
10613
10614 end
10615_ACEOF
10616rm -f conftest.$ac_objext
10617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010618 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010619 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010620 grep -v '^ *+' conftest.er1 >conftest.err
10621 rm -f conftest.er1
10622 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010625 { ac_try='test -z "$ac_f77_werror_flag"
10626 || test ! -s conftest.err'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; } &&
10632 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10635 ac_status=$?
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10638 ac_compiler_gnu=yes
10639else
10640 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010641sed 's/^/| /' conftest.$ac_ext >&5
10642
John Criswell47fdd832003-07-14 16:52:07 +000010643ac_compiler_gnu=no
10644fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010646ac_cv_f77_compiler_gnu=$ac_compiler_gnu
10647
10648fi
10649echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
10650echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
10651ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +000010652ac_test_FFLAGS=${FFLAGS+set}
10653ac_save_FFLAGS=$FFLAGS
10654FFLAGS=
10655echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
10656echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
10657if test "${ac_cv_prog_f77_g+set}" = set; then
10658 echo $ECHO_N "(cached) $ECHO_C" >&6
10659else
10660 FFLAGS=-g
10661cat >conftest.$ac_ext <<_ACEOF
10662 program main
10663
10664 end
10665_ACEOF
10666rm -f conftest.$ac_objext
10667if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000010668 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000010669 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000010670 grep -v '^ *+' conftest.er1 >conftest.err
10671 rm -f conftest.er1
10672 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000010673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10674 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000010675 { ac_try='test -z "$ac_f77_werror_flag"
10676 || test ! -s conftest.err'
10677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10678 (eval $ac_try) 2>&5
10679 ac_status=$?
10680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10681 (exit $ac_status); }; } &&
10682 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +000010683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10684 (eval $ac_try) 2>&5
10685 ac_status=$?
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; }; then
10688 ac_cv_prog_f77_g=yes
10689else
10690 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000010691sed 's/^/| /' conftest.$ac_ext >&5
10692
John Criswell47fdd832003-07-14 16:52:07 +000010693ac_cv_prog_f77_g=no
10694fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010695rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000010696
10697fi
10698echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
10699echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
10700if test "$ac_test_FFLAGS" = set; then
10701 FFLAGS=$ac_save_FFLAGS
10702elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010703 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010704 FFLAGS="-g -O2"
10705 else
10706 FFLAGS="-g"
10707 fi
10708else
Reid Spencer2706f8c2004-09-19 23:53:36 +000010709 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +000010710 FFLAGS="-O2"
10711 else
10712 FFLAGS=
10713 fi
10714fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000010715
10716G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +000010717ac_ext=c
10718ac_cpp='$CPP $CPPFLAGS'
10719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10721ac_compiler_gnu=$ac_cv_c_compiler_gnu
10722
10723
10724
10725# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10726
10727# find the maximum length of command line arguments
10728echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10729echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10730if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10731 echo $ECHO_N "(cached) $ECHO_C" >&6
10732else
10733 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +000010734 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +000010735
10736 case $build_os in
10737 msdosdjgpp*)
10738 # On DJGPP, this test can blow up pretty badly due to problems in libc
10739 # (any single argument exceeding 2000 bytes causes a buffer overrun
10740 # during glob expansion). Even if it were fixed, the result of this
10741 # check would be larger than it should be.
10742 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10743 ;;
10744
10745 gnu*)
10746 # Under GNU Hurd, this test is not required because there is
10747 # no limit to the length of command line arguments.
10748 # Libtool will interpret -1 as no limit whatsoever
10749 lt_cv_sys_max_cmd_len=-1;
10750 ;;
10751
10752 cygwin* | mingw*)
10753 # On Win9x/ME, this test blows up -- it succeeds, but takes
10754 # about 5 minutes as the teststring grows exponentially.
10755 # Worse, since 9x/ME are not pre-emptively multitasking,
10756 # you end up with a "frozen" computer, even though with patience
10757 # the test eventually succeeds (with a max line length of 256k).
10758 # Instead, let's just punt: use the minimum linelength reported by
10759 # all of the supported platforms: 8192 (on NT/2K/XP).
10760 lt_cv_sys_max_cmd_len=8192;
10761 ;;
10762
Reid Spencer2706f8c2004-09-19 23:53:36 +000010763 amigaos*)
10764 # On AmigaOS with pdksh, this test takes hours, literally.
10765 # So we just punt and use a minimum line length of 8192.
10766 lt_cv_sys_max_cmd_len=8192;
10767 ;;
10768
10769 netbsd* | freebsd* | openbsd* | darwin* )
10770 # This has been around since 386BSD, at least. Likely further.
10771 if test -x /sbin/sysctl; then
10772 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10773 elif test -x /usr/sbin/sysctl; then
10774 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10775 else
10776 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
10777 fi
10778 # And add a safety zone
10779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10780 ;;
10781
John Criswell47fdd832003-07-14 16:52:07 +000010782 *)
10783 # If test is not a shell built-in, we'll probably end up computing a
10784 # maximum length that is only half of the actual maximum length, but
10785 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +000010786 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10787 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10788 = "XX$teststring") >/dev/null 2>&1 &&
10789 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +000010790 lt_cv_sys_max_cmd_len=$new_result &&
10791 test $i != 17 # 1/2 MB should be enough
10792 do
10793 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +000010794 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +000010795 done
Reid Spencer2706f8c2004-09-19 23:53:36 +000010796 teststring=
John Criswell47fdd832003-07-14 16:52:07 +000010797 # Add a significant safety factor because C++ compilers can tack on massive
10798 # amounts of additional arguments before passing them to the linker.
10799 # It appears as though 1/2 is a usable value.
10800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10801 ;;
10802 esac
10803
10804fi
10805
10806if test -n $lt_cv_sys_max_cmd_len ; then
10807 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10808echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10809else
10810 echo "$as_me:$LINENO: result: none" >&5
10811echo "${ECHO_T}none" >&6
10812fi
10813
10814
10815
10816
10817# Check for command to grab the raw symbol name followed by C symbol from nm.
10818echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10819echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10820if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10821 echo $ECHO_N "(cached) $ECHO_C" >&6
10822else
10823
10824# These are sane defaults that work on at least a few old systems.
10825# [They come from Ultrix. What could be older than Ultrix?!! ;)]
10826
10827# Character class describing NM global symbol codes.
10828symcode='[BCDEGRST]'
10829
10830# Regexp to match symbols that can be accessed directly from C.
10831sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10832
10833# Transform the above into a raw symbol and a C symbol.
10834symxfrm='\1 \2\3 \3'
10835
10836# Transform an extracted symbol line into a proper C declaration
10837lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10838
10839# Transform an extracted symbol line into symbol name and symbol address
10840lt_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'"
10841
10842# Define system-specific variables.
10843case $host_os in
10844aix*)
10845 symcode='[BCDT]'
10846 ;;
10847cygwin* | mingw* | pw32*)
10848 symcode='[ABCDGISTW]'
10849 ;;
10850hpux*) # Its linker distinguishes data from code symbols
10851 if test "$host_cpu" = ia64; then
10852 symcode='[ABCDEGRST]'
10853 fi
10854 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10855 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'"
10856 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010857linux*)
10858 if test "$host_cpu" = ia64; then
10859 symcode='[ABCDGIRSTW]'
10860 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10861 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'"
10862 fi
10863 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010864irix* | nonstopux*)
10865 symcode='[BCDEGRST]'
10866 ;;
10867osf*)
10868 symcode='[BCDEGQRST]'
10869 ;;
10870solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010871 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +000010872 ;;
10873sysv4)
10874 symcode='[DFNSTU]'
10875 ;;
10876esac
10877
10878# Handle CRLF in mingw tool chain
10879opt_cr=
10880case $build_os in
10881mingw*)
10882 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10883 ;;
10884esac
10885
10886# If we're using GNU nm, then use its standard symbol codes.
10887case `$NM -V 2>&1` in
10888*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000010889 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +000010890esac
10891
10892# Try without a prefix undercore, then with it.
10893for ac_symprfx in "" "_"; do
10894
10895 # Write the raw and C identifiers.
10896 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10897
10898 # Check to see that the pipe works correctly.
10899 pipe_works=no
10900
10901 rm -f conftest*
10902 cat > conftest.$ac_ext <<EOF
10903#ifdef __cplusplus
10904extern "C" {
10905#endif
10906char nm_test_var;
10907void nm_test_func(){}
10908#ifdef __cplusplus
10909}
10910#endif
10911int main(){nm_test_var='a';nm_test_func();return(0);}
10912EOF
10913
10914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10915 (eval $ac_compile) 2>&5
10916 ac_status=$?
10917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918 (exit $ac_status); }; then
10919 # Now try to grab the symbols.
10920 nlist=conftest.nm
10921 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10922 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10923 ac_status=$?
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } && test -s "$nlist"; then
10926 # Try sorting and uniquifying the output.
10927 if sort "$nlist" | uniq > "$nlist"T; then
10928 mv -f "$nlist"T "$nlist"
10929 else
10930 rm -f "$nlist"T
10931 fi
10932
10933 # Make sure that we snagged all the symbols we need.
10934 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10935 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10936 cat <<EOF > conftest.$ac_ext
10937#ifdef __cplusplus
10938extern "C" {
10939#endif
10940
10941EOF
10942 # Now generate the symbol file.
10943 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10944
10945 cat <<EOF >> conftest.$ac_ext
10946#if defined (__STDC__) && __STDC__
10947# define lt_ptr_t void *
10948#else
10949# define lt_ptr_t char *
10950# define const
10951#endif
10952
10953/* The mapping between symbol names and symbols. */
10954const struct {
10955 const char *name;
10956 lt_ptr_t address;
10957}
10958lt_preloaded_symbols[] =
10959{
10960EOF
10961 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10962 cat <<\EOF >> conftest.$ac_ext
10963 {0, (lt_ptr_t) 0}
10964};
10965
10966#ifdef __cplusplus
10967}
10968#endif
10969EOF
10970 # Now try linking the two files.
10971 mv conftest.$ac_objext conftstm.$ac_objext
10972 lt_save_LIBS="$LIBS"
10973 lt_save_CFLAGS="$CFLAGS"
10974 LIBS="conftstm.$ac_objext"
10975 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10977 (eval $ac_link) 2>&5
10978 ac_status=$?
10979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10980 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10981 pipe_works=yes
10982 fi
10983 LIBS="$lt_save_LIBS"
10984 CFLAGS="$lt_save_CFLAGS"
10985 else
10986 echo "cannot find nm_test_func in $nlist" >&5
10987 fi
10988 else
10989 echo "cannot find nm_test_var in $nlist" >&5
10990 fi
10991 else
10992 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10993 fi
10994 else
10995 echo "$progname: failed program was:" >&5
10996 cat conftest.$ac_ext >&5
10997 fi
10998 rm -f conftest* conftst*
10999
11000 # Do not use the global_symbol_pipe unless it works.
11001 if test "$pipe_works" = yes; then
11002 break
11003 else
11004 lt_cv_sys_global_symbol_pipe=
11005 fi
11006done
11007
11008fi
11009
11010if test -z "$lt_cv_sys_global_symbol_pipe"; then
11011 lt_cv_sys_global_symbol_to_cdecl=
11012fi
11013if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11014 echo "$as_me:$LINENO: result: failed" >&5
11015echo "${ECHO_T}failed" >&6
11016else
11017 echo "$as_me:$LINENO: result: ok" >&5
11018echo "${ECHO_T}ok" >&6
11019fi
11020
11021echo "$as_me:$LINENO: checking for objdir" >&5
11022echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11023if test "${lt_cv_objdir+set}" = set; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11025else
11026 rm -f .libs 2>/dev/null
11027mkdir .libs 2>/dev/null
11028if test -d .libs; then
11029 lt_cv_objdir=.libs
11030else
11031 # MS-DOS does not allow filenames that begin with a dot.
11032 lt_cv_objdir=_libs
11033fi
11034rmdir .libs 2>/dev/null
11035fi
11036echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11037echo "${ECHO_T}$lt_cv_objdir" >&6
11038objdir=$lt_cv_objdir
11039
11040
11041
11042
11043
11044case $host_os in
11045aix3*)
11046 # AIX sometimes has problems with the GCC collect2 program. For some
11047 # reason, if we set the COLLECT_NAMES environment variable, the problems
11048 # vanish in a puff of smoke.
11049 if test "X${COLLECT_NAMES+set}" != Xset; then
11050 COLLECT_NAMES=
11051 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +000011052 fi
11053 ;;
11054esac
11055
John Criswell47fdd832003-07-14 16:52:07 +000011056# Sed substitution that helps us do robust quoting. It backslashifies
11057# metacharacters that are still active within double-quoted strings.
11058Xsed='sed -e s/^X//'
11059sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11060
11061# Same as above, but do not quote variable references.
11062double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11063
11064# Sed substitution to delay expansion of an escaped shell variable in a
11065# double_quote_subst'ed string.
11066delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11067
11068# Sed substitution to avoid accidental globbing in evaled expressions
11069no_glob_subst='s/\*/\\\*/g'
11070
11071# Constants:
11072rm="rm -f"
11073
11074# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +000011075default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +000011076can_build_shared=yes
11077
11078# All known linkers require a `.a' archive for static linking (except M$VC,
11079# which needs '.lib').
11080libext=a
11081ltmain="$ac_aux_dir/ltmain.sh"
11082ofile="$default_ofile"
11083with_gnu_ld="$lt_cv_prog_gnu_ld"
11084
11085if test -n "$ac_tool_prefix"; then
11086 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11087set dummy ${ac_tool_prefix}ar; ac_word=$2
11088echo "$as_me:$LINENO: checking for $ac_word" >&5
11089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11090if test "${ac_cv_prog_AR+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
11092else
11093 if test -n "$AR"; then
11094 ac_cv_prog_AR="$AR" # Let the user override the test.
11095else
11096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11097for as_dir in $PATH
11098do
11099 IFS=$as_save_IFS
11100 test -z "$as_dir" && as_dir=.
11101 for ac_exec_ext in '' $ac_executable_extensions; do
11102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11103 ac_cv_prog_AR="${ac_tool_prefix}ar"
11104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11105 break 2
11106 fi
11107done
11108done
11109
11110fi
11111fi
11112AR=$ac_cv_prog_AR
11113if test -n "$AR"; then
11114 echo "$as_me:$LINENO: result: $AR" >&5
11115echo "${ECHO_T}$AR" >&6
11116else
11117 echo "$as_me:$LINENO: result: no" >&5
11118echo "${ECHO_T}no" >&6
11119fi
11120
11121fi
11122if test -z "$ac_cv_prog_AR"; then
11123 ac_ct_AR=$AR
11124 # Extract the first word of "ar", so it can be a program name with args.
11125set dummy ar; ac_word=$2
11126echo "$as_me:$LINENO: checking for $ac_word" >&5
11127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11128if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11130else
11131 if test -n "$ac_ct_AR"; then
11132 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11133else
11134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11135for as_dir in $PATH
11136do
11137 IFS=$as_save_IFS
11138 test -z "$as_dir" && as_dir=.
11139 for ac_exec_ext in '' $ac_executable_extensions; do
11140 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11141 ac_cv_prog_ac_ct_AR="ar"
11142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11143 break 2
11144 fi
11145done
11146done
11147
11148 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11149fi
11150fi
11151ac_ct_AR=$ac_cv_prog_ac_ct_AR
11152if test -n "$ac_ct_AR"; then
11153 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11154echo "${ECHO_T}$ac_ct_AR" >&6
11155else
11156 echo "$as_me:$LINENO: result: no" >&5
11157echo "${ECHO_T}no" >&6
11158fi
11159
11160 AR=$ac_ct_AR
11161else
11162 AR="$ac_cv_prog_AR"
11163fi
11164
John Criswell7a73b802003-06-30 21:59:07 +000011165if test -n "$ac_tool_prefix"; then
11166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11167set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11168echo "$as_me:$LINENO: checking for $ac_word" >&5
11169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11170if test "${ac_cv_prog_RANLIB+set}" = set; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11172else
11173 if test -n "$RANLIB"; then
11174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11175else
11176as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11177for as_dir in $PATH
11178do
11179 IFS=$as_save_IFS
11180 test -z "$as_dir" && as_dir=.
11181 for ac_exec_ext in '' $ac_executable_extensions; do
11182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11185 break 2
11186 fi
11187done
11188done
11189
11190fi
11191fi
11192RANLIB=$ac_cv_prog_RANLIB
11193if test -n "$RANLIB"; then
11194 echo "$as_me:$LINENO: result: $RANLIB" >&5
11195echo "${ECHO_T}$RANLIB" >&6
11196else
11197 echo "$as_me:$LINENO: result: no" >&5
11198echo "${ECHO_T}no" >&6
11199fi
11200
11201fi
11202if test -z "$ac_cv_prog_RANLIB"; then
11203 ac_ct_RANLIB=$RANLIB
11204 # Extract the first word of "ranlib", so it can be a program name with args.
11205set dummy ranlib; ac_word=$2
11206echo "$as_me:$LINENO: checking for $ac_word" >&5
11207echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11208if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11209 echo $ECHO_N "(cached) $ECHO_C" >&6
11210else
11211 if test -n "$ac_ct_RANLIB"; then
11212 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11213else
11214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215for as_dir in $PATH
11216do
11217 IFS=$as_save_IFS
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11221 ac_cv_prog_ac_ct_RANLIB="ranlib"
11222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11223 break 2
11224 fi
11225done
11226done
11227
11228 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11229fi
11230fi
11231ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11232if test -n "$ac_ct_RANLIB"; then
11233 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11234echo "${ECHO_T}$ac_ct_RANLIB" >&6
11235else
11236 echo "$as_me:$LINENO: result: no" >&5
11237echo "${ECHO_T}no" >&6
11238fi
11239
11240 RANLIB=$ac_ct_RANLIB
11241else
11242 RANLIB="$ac_cv_prog_RANLIB"
11243fi
11244
11245if test -n "$ac_tool_prefix"; then
11246 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11247set dummy ${ac_tool_prefix}strip; ac_word=$2
11248echo "$as_me:$LINENO: checking for $ac_word" >&5
11249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11250if test "${ac_cv_prog_STRIP+set}" = set; then
11251 echo $ECHO_N "(cached) $ECHO_C" >&6
11252else
11253 if test -n "$STRIP"; then
11254 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11255else
11256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257for as_dir in $PATH
11258do
11259 IFS=$as_save_IFS
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11265 break 2
11266 fi
11267done
11268done
11269
11270fi
11271fi
11272STRIP=$ac_cv_prog_STRIP
11273if test -n "$STRIP"; then
11274 echo "$as_me:$LINENO: result: $STRIP" >&5
11275echo "${ECHO_T}$STRIP" >&6
11276else
11277 echo "$as_me:$LINENO: result: no" >&5
11278echo "${ECHO_T}no" >&6
11279fi
11280
11281fi
11282if test -z "$ac_cv_prog_STRIP"; then
11283 ac_ct_STRIP=$STRIP
11284 # Extract the first word of "strip", so it can be a program name with args.
11285set dummy strip; ac_word=$2
11286echo "$as_me:$LINENO: checking for $ac_word" >&5
11287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11288if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11289 echo $ECHO_N "(cached) $ECHO_C" >&6
11290else
11291 if test -n "$ac_ct_STRIP"; then
11292 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11293else
11294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11295for as_dir in $PATH
11296do
11297 IFS=$as_save_IFS
11298 test -z "$as_dir" && as_dir=.
11299 for ac_exec_ext in '' $ac_executable_extensions; do
11300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11301 ac_cv_prog_ac_ct_STRIP="strip"
11302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11303 break 2
11304 fi
11305done
11306done
11307
11308 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11309fi
11310fi
11311ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11312if test -n "$ac_ct_STRIP"; then
11313 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11314echo "${ECHO_T}$ac_ct_STRIP" >&6
11315else
11316 echo "$as_me:$LINENO: result: no" >&5
11317echo "${ECHO_T}no" >&6
11318fi
11319
11320 STRIP=$ac_ct_STRIP
11321else
11322 STRIP="$ac_cv_prog_STRIP"
11323fi
11324
11325
John Criswell7a73b802003-06-30 21:59:07 +000011326old_CC="$CC"
11327old_CFLAGS="$CFLAGS"
11328
11329# Set sane defaults for various variables
11330test -z "$AR" && AR=ar
11331test -z "$AR_FLAGS" && AR_FLAGS=cru
11332test -z "$AS" && AS=as
11333test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +000011334test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +000011335test -z "$DLLTOOL" && DLLTOOL=dlltool
11336test -z "$LD" && LD=ld
11337test -z "$LN_S" && LN_S="ln -s"
11338test -z "$MAGIC_CMD" && MAGIC_CMD=file
11339test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +000011340test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +000011341test -z "$OBJDUMP" && OBJDUMP=objdump
11342test -z "$RANLIB" && RANLIB=:
11343test -z "$STRIP" && STRIP=:
11344test -z "$ac_objext" && ac_objext=o
11345
John Criswell7a73b802003-06-30 21:59:07 +000011346# Determine commands to create old-style static archives.
11347old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11348old_postinstall_cmds='chmod 644 $oldlib'
11349old_postuninstall_cmds=
11350
11351if test -n "$RANLIB"; then
11352 case $host_os in
11353 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +000011354 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011355 ;;
11356 *)
Reid Spencer177dbe22004-10-13 01:01:03 +000011357 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +000011358 ;;
11359 esac
Reid Spencer177dbe22004-10-13 01:01:03 +000011360 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +000011361fi
11362
Reid Spencer2706f8c2004-09-19 23:53:36 +000011363cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11364
John Criswell47fdd832003-07-14 16:52:07 +000011365# Only perform the check for file, if the check method requires it
11366case $deplibs_check_method in
11367file_magic*)
11368 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11369 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11370echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11371if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011373else
John Criswell47fdd832003-07-14 16:52:07 +000011374 case $MAGIC_CMD in
11375[\\/*] | ?:[\\/]*)
11376 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11377 ;;
11378*)
11379 lt_save_MAGIC_CMD="$MAGIC_CMD"
11380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11381 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11382 for ac_dir in $ac_dummy; do
11383 IFS="$lt_save_ifs"
11384 test -z "$ac_dir" && ac_dir=.
11385 if test -f $ac_dir/${ac_tool_prefix}file; then
11386 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11387 if test -n "$file_magic_test_file"; then
11388 case $deplibs_check_method in
11389 "file_magic "*)
11390 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11391 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11392 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11393 $EGREP "$file_magic_regex" > /dev/null; then
11394 :
11395 else
11396 cat <<EOF 1>&2
11397
11398*** Warning: the command libtool uses to detect shared libraries,
11399*** $file_magic_cmd, produces output that libtool cannot recognize.
11400*** The result is that libtool may fail to recognize shared libraries
11401*** as such. This will affect the creation of libtool libraries that
11402*** depend on shared libraries, but programs linked with such libtool
11403*** libraries will work regardless of this problem. Nevertheless, you
11404*** may want to report the problem to your system manager and/or to
11405*** bug-libtool@gnu.org
11406
11407EOF
11408 fi ;;
11409 esac
11410 fi
11411 break
11412 fi
11413 done
11414 IFS="$lt_save_ifs"
11415 MAGIC_CMD="$lt_save_MAGIC_CMD"
11416 ;;
11417esac
John Criswell7a73b802003-06-30 21:59:07 +000011418fi
John Criswell7a73b802003-06-30 21:59:07 +000011419
John Criswell47fdd832003-07-14 16:52:07 +000011420MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11421if test -n "$MAGIC_CMD"; then
11422 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11423echo "${ECHO_T}$MAGIC_CMD" >&6
11424else
11425 echo "$as_me:$LINENO: result: no" >&5
11426echo "${ECHO_T}no" >&6
11427fi
John Criswell7a73b802003-06-30 21:59:07 +000011428
John Criswell47fdd832003-07-14 16:52:07 +000011429if test -z "$lt_cv_path_MAGIC_CMD"; then
11430 if test -n "$ac_tool_prefix"; then
11431 echo "$as_me:$LINENO: checking for file" >&5
11432echo $ECHO_N "checking for file... $ECHO_C" >&6
11433if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11435else
11436 case $MAGIC_CMD in
11437[\\/*] | ?:[\\/]*)
11438 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11439 ;;
11440*)
11441 lt_save_MAGIC_CMD="$MAGIC_CMD"
11442 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11443 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11444 for ac_dir in $ac_dummy; do
11445 IFS="$lt_save_ifs"
11446 test -z "$ac_dir" && ac_dir=.
11447 if test -f $ac_dir/file; then
11448 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11449 if test -n "$file_magic_test_file"; then
11450 case $deplibs_check_method in
11451 "file_magic "*)
11452 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11453 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11454 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11455 $EGREP "$file_magic_regex" > /dev/null; then
11456 :
11457 else
11458 cat <<EOF 1>&2
11459
11460*** Warning: the command libtool uses to detect shared libraries,
11461*** $file_magic_cmd, produces output that libtool cannot recognize.
11462*** The result is that libtool may fail to recognize shared libraries
11463*** as such. This will affect the creation of libtool libraries that
11464*** depend on shared libraries, but programs linked with such libtool
11465*** libraries will work regardless of this problem. Nevertheless, you
11466*** may want to report the problem to your system manager and/or to
11467*** bug-libtool@gnu.org
11468
11469EOF
11470 fi ;;
11471 esac
11472 fi
11473 break
11474 fi
11475 done
11476 IFS="$lt_save_ifs"
11477 MAGIC_CMD="$lt_save_MAGIC_CMD"
11478 ;;
11479esac
11480fi
11481
11482MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11483if test -n "$MAGIC_CMD"; then
11484 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11485echo "${ECHO_T}$MAGIC_CMD" >&6
11486else
11487 echo "$as_me:$LINENO: result: no" >&5
11488echo "${ECHO_T}no" >&6
11489fi
11490
11491 else
11492 MAGIC_CMD=:
11493 fi
11494fi
11495
11496 fi
11497 ;;
11498esac
11499
Reid Spencer17795972004-11-18 09:47:37 +000011500enable_dlopen=yes
John Criswell47fdd832003-07-14 16:52:07 +000011501enable_win32_dll=no
11502
11503# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11504if test "${enable_libtool_lock+set}" = set; then
11505 enableval="$enable_libtool_lock"
11506
11507fi;
11508test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11509
John Criswell7a73b802003-06-30 21:59:07 +000011510
11511# Check whether --with-pic or --without-pic was given.
11512if test "${with_pic+set}" = set; then
11513 withval="$with_pic"
11514 pic_mode="$withval"
11515else
11516 pic_mode=default
11517fi;
11518test -z "$pic_mode" && pic_mode=default
11519
John Criswell47fdd832003-07-14 16:52:07 +000011520# Use C for the default configuration in the libtool script
11521tagname=
11522lt_save_CC="$CC"
11523ac_ext=c
11524ac_cpp='$CPP $CPPFLAGS'
11525ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11526ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11527ac_compiler_gnu=$ac_cv_c_compiler_gnu
11528
11529
11530# Source file extension for C test sources.
11531ac_ext=c
11532
11533# Object file extension for compiled C test sources.
11534objext=o
11535objext=$objext
11536
11537# Code to be used in simple compile tests
11538lt_simple_compile_test_code="int some_variable = 0;\n"
11539
11540# Code to be used in simple link tests
11541lt_simple_link_test_code='int main(){return(0);}\n'
11542
11543
11544# If no C compiler was specified, use CC.
11545LTCC=${LTCC-"$CC"}
11546
11547# Allow CC to be a program name with arguments.
11548compiler=$CC
11549
11550
11551#
11552# Check for any special shared library compilation flags.
11553#
11554lt_prog_cc_shlib=
11555if test "$GCC" = no; then
11556 case $host_os in
11557 sco3.2v5*)
11558 lt_prog_cc_shlib='-belf'
11559 ;;
11560 esac
11561fi
11562if test -n "$lt_prog_cc_shlib"; then
11563 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11564echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11565 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11566 else
11567 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11568echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11569 lt_cv_prog_cc_can_build_shared=no
11570 fi
11571fi
11572
11573
11574#
11575# Check to make sure the static flag actually works.
11576#
11577echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11578echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11579if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011580 echo $ECHO_N "(cached) $ECHO_C" >&6
11581else
John Criswell47fdd832003-07-14 16:52:07 +000011582 lt_prog_compiler_static_works=no
11583 save_LDFLAGS="$LDFLAGS"
11584 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11585 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11586 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11587 # The compiler can only warn and ignore the option if not recognized
11588 # So say no if there are warnings
11589 if test -s conftest.err; then
11590 # Append any errors to the config.log.
11591 cat conftest.err 1>&5
11592 else
11593 lt_prog_compiler_static_works=yes
11594 fi
11595 fi
11596 $rm conftest*
11597 LDFLAGS="$save_LDFLAGS"
11598
11599fi
11600echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11601echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11602
11603if test x"$lt_prog_compiler_static_works" = xyes; then
11604 :
11605else
11606 lt_prog_compiler_static=
11607fi
11608
11609
11610
John Criswell47fdd832003-07-14 16:52:07 +000011611
11612lt_prog_compiler_no_builtin_flag=
11613
11614if test "$GCC" = yes; then
11615 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11616
Reid Spencer2706f8c2004-09-19 23:53:36 +000011617
11618echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011619echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11620if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11622else
11623 lt_cv_prog_compiler_rtti_exceptions=no
11624 ac_outfile=conftest.$ac_objext
11625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11626 lt_compiler_flag="-fno-rtti -fno-exceptions"
11627 # Insert the option either (1) after the last *FLAGS variable, or
11628 # (2) before a word containing "conftest.", or (3) at the end.
11629 # Note that $ac_compile itself does not contain backslashes and begins
11630 # with a dollar sign (not a hyphen), so the echo should work correctly.
11631 # The option is referenced via a variable to avoid confusing sed.
11632 lt_compile=`echo "$ac_compile" | $SED \
11633 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11635 -e 's:$: $lt_compiler_flag:'`
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011636 (eval echo "\"\$as_me:11636: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011637 (eval "$lt_compile" 2>conftest.err)
11638 ac_status=$?
11639 cat conftest.err >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011640 echo "$as_me:11640: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011641 if (exit $ac_status) && test -s "$ac_outfile"; then
11642 # The compiler can only warn and ignore the option if not recognized
11643 # So say no if there are warnings
11644 if test ! -s conftest.err; then
11645 lt_cv_prog_compiler_rtti_exceptions=yes
11646 fi
11647 fi
11648 $rm conftest*
11649
11650fi
11651echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11652echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11653
11654if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11655 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11656else
11657 :
11658fi
11659
11660fi
11661
11662lt_prog_compiler_wl=
11663lt_prog_compiler_pic=
11664lt_prog_compiler_static=
11665
11666echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11667echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011668
11669 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +000011670 lt_prog_compiler_wl='-Wl,'
11671 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +000011672
11673 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011674 aix*)
11675 # All AIX code is PIC.
11676 if test "$host_cpu" = ia64; then
11677 # AIX 5 now supports IA64 processor
11678 lt_prog_compiler_static='-Bstatic'
11679 fi
John Criswell7a73b802003-06-30 21:59:07 +000011680 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011681
John Criswell7a73b802003-06-30 21:59:07 +000011682 amigaos*)
11683 # FIXME: we need at least 68020 code to build shared libraries, but
11684 # adding the `-m68020' flag to GCC prevents building anything better,
11685 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +000011686 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +000011687 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011688
11689 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +000011690 # PIC is the default for these OSes.
11691 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011692
11693 mingw* | pw32* | os2*)
11694 # This hack is so that the source file can tell whether it is being
11695 # built for inclusion in a dll (and should export symbols for example).
11696 lt_prog_compiler_pic='-DDLL_EXPORT'
11697 ;;
11698
John Criswell7a73b802003-06-30 21:59:07 +000011699 darwin* | rhapsody*)
11700 # PIC is the default on this platform
11701 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +000011702 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +000011703 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011704
11705 msdosdjgpp*)
11706 # Just because we use GCC doesn't mean we suddenly get shared libraries
11707 # on systems that don't support them.
11708 lt_prog_compiler_can_build_shared=no
11709 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011710 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011711
John Criswell7a73b802003-06-30 21:59:07 +000011712 sysv4*MP*)
11713 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +000011714 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +000011715 fi
11716 ;;
John Criswell47fdd832003-07-14 16:52:07 +000011717
11718 hpux*)
11719 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11720 # not for PA HP-UX.
11721 case "$host_cpu" in
11722 hppa*64*|ia64*)
11723 # +Z the default
11724 ;;
11725 *)
11726 lt_prog_compiler_pic='-fPIC'
11727 ;;
11728 esac
11729 ;;
11730
John Criswell7a73b802003-06-30 21:59:07 +000011731 *)
John Criswell47fdd832003-07-14 16:52:07 +000011732 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +000011733 ;;
11734 esac
11735 else
John Criswell47fdd832003-07-14 16:52:07 +000011736 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +000011737 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000011738 aix*)
11739 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011740 if test "$host_cpu" = ia64; then
11741 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +000011742 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011743 else
John Criswell47fdd832003-07-14 16:52:07 +000011744 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +000011745 fi
11746 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011747 darwin*)
11748 # PIC is the default on this platform
11749 # Common symbols not allowed in MH_DYLIB files
11750 case "$cc_basename" in
11751 xlc*)
11752 lt_prog_compiler_pic='-qnocommon'
11753 lt_prog_compiler_wl='-Wl,'
11754 ;;
11755 esac
11756 ;;
John Criswell7a73b802003-06-30 21:59:07 +000011757
John Criswell47fdd832003-07-14 16:52:07 +000011758 mingw* | pw32* | os2*)
11759 # This hack is so that the source file can tell whether it is being
11760 # built for inclusion in a dll (and should export symbols for example).
11761 lt_prog_compiler_pic='-DDLL_EXPORT'
11762 ;;
11763
John Criswell7a73b802003-06-30 21:59:07 +000011764 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +000011765 lt_prog_compiler_wl='-Wl,'
11766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11767 # not for PA HP-UX.
11768 case "$host_cpu" in
11769 hppa*64*|ia64*)
11770 # +Z the default
11771 ;;
11772 *)
11773 lt_prog_compiler_pic='+Z'
11774 ;;
11775 esac
11776 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11777 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +000011778 ;;
11779
John Criswell47fdd832003-07-14 16:52:07 +000011780 irix5* | irix6* | nonstopux*)
11781 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011782 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +000011783 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011784 ;;
11785
11786 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +000011787 lt_prog_compiler_pic='-KPIC'
11788 lt_prog_compiler_static='-Bstatic'
11789 ;;
11790
11791 linux*)
11792 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011793 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000011794 lt_prog_compiler_wl='-Wl,'
11795 lt_prog_compiler_pic='-KPIC'
11796 lt_prog_compiler_static='-static'
11797 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000011798 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000011799 lt_prog_compiler_wl='-Wl,'
11800 # All Alpha code is PIC.
11801 lt_prog_compiler_static='-non_shared'
11802 ;;
11803 esac
John Criswell7a73b802003-06-30 21:59:07 +000011804 ;;
11805
11806 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +000011807 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +000011808 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +000011809 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +000011810 ;;
11811
11812 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +000011813 lt_prog_compiler_pic='-Kpic'
11814 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +000011815 ;;
11816
11817 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +000011818 lt_prog_compiler_wl='-Wl,'
11819 lt_prog_compiler_pic='-KPIC'
11820 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011821 ;;
11822
11823 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +000011824 lt_prog_compiler_wl='-Qoption ld '
11825 lt_prog_compiler_pic='-PIC'
11826 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011827 ;;
11828
11829 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +000011830 lt_prog_compiler_wl='-Wl,'
11831 lt_prog_compiler_pic='-KPIC'
11832 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011833 ;;
11834
11835 sysv4*MP*)
11836 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +000011837 lt_prog_compiler_pic='-Kconform_pic'
11838 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +000011839 fi
11840 ;;
11841
John Criswell47fdd832003-07-14 16:52:07 +000011842 uts4*)
11843 lt_prog_compiler_pic='-pic'
11844 lt_prog_compiler_static='-Bstatic'
11845 ;;
11846
John Criswell7a73b802003-06-30 21:59:07 +000011847 *)
John Criswell47fdd832003-07-14 16:52:07 +000011848 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011849 ;;
11850 esac
11851 fi
11852
John Criswell47fdd832003-07-14 16:52:07 +000011853echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11854echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011855
John Criswell47fdd832003-07-14 16:52:07 +000011856#
11857# Check to make sure the PIC flag actually works.
11858#
11859if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000011860
11861echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011862echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11863if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011864 echo $ECHO_N "(cached) $ECHO_C" >&6
11865else
John Criswell47fdd832003-07-14 16:52:07 +000011866 lt_prog_compiler_pic_works=no
11867 ac_outfile=conftest.$ac_objext
11868 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11869 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11870 # Insert the option either (1) after the last *FLAGS variable, or
11871 # (2) before a word containing "conftest.", or (3) at the end.
11872 # Note that $ac_compile itself does not contain backslashes and begins
11873 # with a dollar sign (not a hyphen), so the echo should work correctly.
11874 # The option is referenced via a variable to avoid confusing sed.
11875 lt_compile=`echo "$ac_compile" | $SED \
11876 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11877 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11878 -e 's:$: $lt_compiler_flag:'`
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011879 (eval echo "\"\$as_me:11879: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011880 (eval "$lt_compile" 2>conftest.err)
11881 ac_status=$?
11882 cat conftest.err >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011883 echo "$as_me:11883: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011884 if (exit $ac_status) && test -s "$ac_outfile"; then
11885 # The compiler can only warn and ignore the option if not recognized
11886 # So say no if there are warnings
11887 if test ! -s conftest.err; then
11888 lt_prog_compiler_pic_works=yes
11889 fi
11890 fi
11891 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000011892
John Criswell47fdd832003-07-14 16:52:07 +000011893fi
11894echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11895echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011896
John Criswell47fdd832003-07-14 16:52:07 +000011897if test x"$lt_prog_compiler_pic_works" = xyes; then
11898 case $lt_prog_compiler_pic in
11899 "" | " "*) ;;
11900 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11901 esac
John Criswell7a73b802003-06-30 21:59:07 +000011902else
John Criswell47fdd832003-07-14 16:52:07 +000011903 lt_prog_compiler_pic=
11904 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000011905fi
11906
John Criswell7a73b802003-06-30 21:59:07 +000011907fi
John Criswell47fdd832003-07-14 16:52:07 +000011908case "$host_os" in
11909 # For platforms which do not support PIC, -DPIC is meaningless:
11910 *djgpp*)
11911 lt_prog_compiler_pic=
11912 ;;
11913 *)
11914 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11915 ;;
11916esac
John Criswell7a73b802003-06-30 21:59:07 +000011917
John Criswell7a73b802003-06-30 21:59:07 +000011918echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11919echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +000011920if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000011921 echo $ECHO_N "(cached) $ECHO_C" >&6
11922else
John Criswell47fdd832003-07-14 16:52:07 +000011923 lt_cv_prog_compiler_c_o=no
11924 $rm -r conftest 2>/dev/null
11925 mkdir conftest
11926 cd conftest
11927 mkdir out
11928 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000011929
John Criswell47fdd832003-07-14 16:52:07 +000011930 lt_compiler_flag="-o out/conftest2.$ac_objext"
11931 # Insert the option either (1) after the last *FLAGS variable, or
11932 # (2) before a word containing "conftest.", or (3) at the end.
11933 # Note that $ac_compile itself does not contain backslashes and begins
11934 # with a dollar sign (not a hyphen), so the echo should work correctly.
11935 lt_compile=`echo "$ac_compile" | $SED \
11936 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11937 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11938 -e 's:$: $lt_compiler_flag:'`
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011939 (eval echo "\"\$as_me:11939: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000011940 (eval "$lt_compile" 2>out/conftest.err)
11941 ac_status=$?
11942 cat out/conftest.err >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000011943 echo "$as_me:11943: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000011944 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11945 then
11946 # The compiler can only warn and ignore the option if not recognized
11947 # So say no if there are warnings
11948 if test ! -s out/conftest.err; then
11949 lt_cv_prog_compiler_c_o=yes
11950 fi
11951 fi
11952 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000011953 $rm conftest*
11954 # SGI C++ compiler will create directory out/ii_files/ for
11955 # template instantiation
11956 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11957 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000011958 cd ..
11959 rmdir conftest
11960 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +000011961
11962fi
John Criswell47fdd832003-07-14 16:52:07 +000011963echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
11964echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +000011965
John Criswell7a73b802003-06-30 21:59:07 +000011966
John Criswell7a73b802003-06-30 21:59:07 +000011967hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +000011968if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +000011969 # do not overwrite the value of need_locks provided by the user
11970 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11971echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11972 hard_links=yes
11973 $rm conftest*
11974 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11975 touch conftest.a
11976 ln conftest.a conftest.b 2>&5 || hard_links=no
11977 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11978 echo "$as_me:$LINENO: result: $hard_links" >&5
11979echo "${ECHO_T}$hard_links" >&6
11980 if test "$hard_links" = no; then
11981 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11982echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11983 need_locks=warn
11984 fi
11985else
11986 need_locks=no
11987fi
John Criswell7a73b802003-06-30 21:59:07 +000011988
John Criswell47fdd832003-07-14 16:52:07 +000011989echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11990echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11991
11992 runpath_var=
11993 allow_undefined_flag=
11994 enable_shared_with_static_runtimes=no
11995 archive_cmds=
11996 archive_expsym_cmds=
11997 old_archive_From_new_cmds=
11998 old_archive_from_expsyms_cmds=
11999 export_dynamic_flag_spec=
12000 whole_archive_flag_spec=
12001 thread_safe_flag_spec=
12002 hardcode_libdir_flag_spec=
12003 hardcode_libdir_flag_spec_ld=
12004 hardcode_libdir_separator=
12005 hardcode_direct=no
12006 hardcode_minus_L=no
12007 hardcode_shlibpath_var=unsupported
12008 link_all_deplibs=unknown
12009 hardcode_automatic=no
12010 module_cmds=
12011 module_expsym_cmds=
12012 always_export_symbols=no
12013 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12014 # include_expsyms should be a list of space-separated symbols to be *always*
12015 # included in the symbol list
12016 include_expsyms=
12017 # exclude_expsyms can be an extended regexp of symbols to exclude
12018 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12019 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12020 # as well as any symbol that contains `d'.
12021 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12022 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12023 # platforms (ab)use it in PIC code, but their linkers get confused if
12024 # the symbol is explicitly referenced. Since portable code cannot
12025 # rely on this symbol name, it's probably fine to never include it in
12026 # preloaded symbol tables.
12027 extract_expsyms_cmds=
12028
12029 case $host_os in
12030 cygwin* | mingw* | pw32*)
12031 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12032 # When not using gcc, we currently assume that we are using
12033 # Microsoft Visual C++.
12034 if test "$GCC" != yes; then
12035 with_gnu_ld=no
12036 fi
12037 ;;
12038 openbsd*)
12039 with_gnu_ld=no
12040 ;;
12041 esac
12042
12043 ld_shlibs=yes
12044 if test "$with_gnu_ld" = yes; then
12045 # If archive_cmds runs LD, not CC, wlarc should be empty
12046 wlarc='${wl}'
12047
12048 # See if GNU ld supports shared libraries.
12049 case $host_os in
12050 aix3* | aix4* | aix5*)
12051 # On AIX/PPC, the GNU linker is very broken
12052 if test "$host_cpu" != ia64; then
12053 ld_shlibs=no
12054 cat <<EOF 1>&2
12055
12056*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12057*** to be unable to reliably create shared libraries on AIX.
12058*** Therefore, libtool is disabling shared libraries support. If you
12059*** really care for shared libraries, you may want to modify your PATH
12060*** so that a non-GNU linker is found, and then restart.
12061
12062EOF
12063 fi
12064 ;;
12065
12066 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012067 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 +000012068 hardcode_libdir_flag_spec='-L$libdir'
12069 hardcode_minus_L=yes
12070
12071 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12072 # that the semantics of dynamic libraries on AmigaOS, at least up
12073 # to version 4, is to share data among multiple programs linked
12074 # with the same dynamic library. Since this doesn't match the
12075 # behavior of shared libraries on other platforms, we can't use
12076 # them.
12077 ld_shlibs=no
12078 ;;
12079
12080 beos*)
12081 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12082 allow_undefined_flag=unsupported
12083 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12084 # support --undefined. This deserves some investigation. FIXME
12085 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12086 else
12087 ld_shlibs=no
12088 fi
12089 ;;
12090
12091 cygwin* | mingw* | pw32*)
12092 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12093 # as there is no search path for DLLs.
12094 hardcode_libdir_flag_spec='-L$libdir'
12095 allow_undefined_flag=unsupported
12096 always_export_symbols=no
12097 enable_shared_with_static_runtimes=yes
12098 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12099
12100 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12101 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12102 # If the export-symbols file already is a .def file (1st line
12103 # is EXPORTS), use it as is; otherwise, prepend...
12104 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12105 cp $export_symbols $output_objdir/$soname.def;
12106 else
12107 echo EXPORTS > $output_objdir/$soname.def;
12108 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000012109 fi~
12110 $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 +000012111 else
12112 ld_shlibs=no
12113 fi
12114 ;;
12115
12116 netbsd*)
12117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12118 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12119 wlarc=
12120 else
12121 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12122 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12123 fi
12124 ;;
12125
12126 solaris* | sysv5*)
12127 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12128 ld_shlibs=no
12129 cat <<EOF 1>&2
12130
12131*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12132*** create shared libraries on Solaris systems. Therefore, libtool
12133*** is disabling shared libraries support. We urge you to upgrade GNU
12134*** binutils to release 2.9.1 or newer. Another option is to modify
12135*** your PATH or compiler configuration so that the native linker is
12136*** used, and then restart.
12137
12138EOF
12139 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12141 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12142 else
12143 ld_shlibs=no
12144 fi
12145 ;;
12146
12147 sunos4*)
12148 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12149 wlarc=
12150 hardcode_direct=yes
12151 hardcode_shlibpath_var=no
12152 ;;
12153
Reid Spencer2706f8c2004-09-19 23:53:36 +000012154 linux*)
12155 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12156 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12157 archive_cmds="$tmp_archive_cmds"
12158 supports_anon_versioning=no
12159 case `$LD -v 2>/dev/null` in
12160 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12161 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12162 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12163 *\ 2.11.*) ;; # other 2.11 versions
12164 *) supports_anon_versioning=yes ;;
12165 esac
12166 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012167 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12168cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12169$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000012170 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12171 else
12172 archive_expsym_cmds="$tmp_archive_cmds"
12173 fi
12174 else
12175 ld_shlibs=no
12176 fi
12177 ;;
12178
John Criswell47fdd832003-07-14 16:52:07 +000012179 *)
12180 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12181 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12182 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12183 else
12184 ld_shlibs=no
12185 fi
12186 ;;
12187 esac
12188
12189 if test "$ld_shlibs" = yes; then
12190 runpath_var=LD_RUN_PATH
12191 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12192 export_dynamic_flag_spec='${wl}--export-dynamic'
12193 # ancient GNU ld didn't support --whole-archive et. al.
12194 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12195 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12196 else
12197 whole_archive_flag_spec=
12198 fi
12199 fi
12200 else
12201 # PORTME fill in a description of your system's linker (not GNU ld)
12202 case $host_os in
12203 aix3*)
12204 allow_undefined_flag=unsupported
12205 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000012206 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 +000012207 # Note: this linker hardcodes the directories in LIBPATH if there
12208 # are no directories specified by -L.
12209 hardcode_minus_L=yes
12210 if test "$GCC" = yes && test -z "$link_static_flag"; then
12211 # Neither direct hardcoding nor static linking is supported with a
12212 # broken collect2.
12213 hardcode_direct=unsupported
12214 fi
12215 ;;
12216
12217 aix4* | aix5*)
12218 if test "$host_cpu" = ia64; then
12219 # On IA64, the linker does run time linking by default, so we don't
12220 # have to do anything special.
12221 aix_use_runtimelinking=no
12222 exp_sym_flag='-Bexport'
12223 no_entry_flag=""
12224 else
12225 # If we're using GNU nm, then we don't want the "-C" option.
12226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12227 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12228 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'
12229 else
12230 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'
12231 fi
12232 aix_use_runtimelinking=no
12233
12234 # Test if we are trying to use run time linking or normal
12235 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12236 # need to do runtime linking.
12237 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12238 for ld_flag in $LDFLAGS; do
12239 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12240 aix_use_runtimelinking=yes
12241 break
12242 fi
12243 done
12244 esac
12245
12246 exp_sym_flag='-bexport'
12247 no_entry_flag='-bnoentry'
12248 fi
12249
12250 # When large executables or shared objects are built, AIX ld can
12251 # have problems creating the table of contents. If linking a library
12252 # or program results in "error TOC overflow" add -mminimal-toc to
12253 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12254 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12255
12256 archive_cmds=''
12257 hardcode_direct=yes
12258 hardcode_libdir_separator=':'
12259 link_all_deplibs=yes
12260
12261 if test "$GCC" = yes; then
12262 case $host_os in aix4.012|aix4.012.*)
12263 # We only want to do this on AIX 4.2 and lower, the check
12264 # below for broken collect2 doesn't work under 4.3+
12265 collect2name=`${CC} -print-prog-name=collect2`
12266 if test -f "$collect2name" && \
12267 strings "$collect2name" | grep resolve_lib_name >/dev/null
12268 then
12269 # We have reworked collect2
12270 hardcode_direct=yes
12271 else
12272 # We have old collect2
12273 hardcode_direct=unsupported
12274 # It fails to find uninstalled libraries when the uninstalled
12275 # path is not listed in the libpath. Setting hardcode_minus_L
12276 # to unsupported forces relinking
12277 hardcode_minus_L=yes
12278 hardcode_libdir_flag_spec='-L$libdir'
12279 hardcode_libdir_separator=
12280 fi
12281 esac
12282 shared_flag='-shared'
12283 else
12284 # not using gcc
12285 if test "$host_cpu" = ia64; then
12286 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12287 # chokes on -Wl,-G. The following line is correct:
12288 shared_flag='-G'
12289 else
12290 if test "$aix_use_runtimelinking" = yes; then
12291 shared_flag='${wl}-G'
12292 else
12293 shared_flag='${wl}-bM:SRE'
12294 fi
12295 fi
12296 fi
12297
12298 # It seems that -bexpall does not export symbols beginning with
12299 # underscore (_), so it is better to generate a list of symbols to export.
12300 always_export_symbols=yes
12301 if test "$aix_use_runtimelinking" = yes; then
12302 # Warning - without using the other runtime loading flags (-brtl),
12303 # -berok will link without error, but may produce a broken library.
12304 allow_undefined_flag='-berok'
12305 # Determine the default libpath from the value encoded in an empty executable.
12306 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012307/* confdefs.h. */
12308_ACEOF
12309cat confdefs.h >>conftest.$ac_ext
12310cat >>conftest.$ac_ext <<_ACEOF
12311/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012312
John Criswell7a73b802003-06-30 21:59:07 +000012313int
12314main ()
12315{
John Criswell47fdd832003-07-14 16:52:07 +000012316
John Criswell7a73b802003-06-30 21:59:07 +000012317 ;
12318 return 0;
12319}
12320_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +000012321rm -f conftest.$ac_objext conftest$ac_exeext
12322if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012323 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000012324 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012325 grep -v '^ *+' conftest.er1 >conftest.err
12326 rm -f conftest.er1
12327 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000012328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12329 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012330 { ac_try='test -z "$ac_c_werror_flag"
12331 || test ! -s conftest.err'
12332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12333 (eval $ac_try) 2>&5
12334 ac_status=$?
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); }; } &&
12337 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000012338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12339 (eval $ac_try) 2>&5
12340 ac_status=$?
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012343
John Criswell47fdd832003-07-14 16:52:07 +000012344aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12345}'`
12346# Check for a 64-bit object if we didn't find anything.
12347if 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; }
12348}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012349else
12350 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012351sed 's/^/| /' conftest.$ac_ext >&5
12352
John Criswell7a73b802003-06-30 21:59:07 +000012353fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012354rm -f conftest.err conftest.$ac_objext \
12355 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012356if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012357
John Criswell47fdd832003-07-14 16:52:07 +000012358 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12359 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"
12360 else
12361 if test "$host_cpu" = ia64; then
12362 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12363 allow_undefined_flag="-z nodefs"
12364 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"
12365 else
12366 # Determine the default libpath from the value encoded in an empty executable.
12367 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012368/* confdefs.h. */
12369_ACEOF
12370cat confdefs.h >>conftest.$ac_ext
12371cat >>conftest.$ac_ext <<_ACEOF
12372/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000012373
John Criswell47fdd832003-07-14 16:52:07 +000012374int
12375main ()
12376{
John Criswell7a73b802003-06-30 21:59:07 +000012377
John Criswell47fdd832003-07-14 16:52:07 +000012378 ;
12379 return 0;
12380}
12381_ACEOF
12382rm -f conftest.$ac_objext conftest$ac_exeext
12383if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012384 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012385 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012386 grep -v '^ *+' conftest.er1 >conftest.err
12387 rm -f conftest.er1
12388 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012391 { ac_try='test -z "$ac_c_werror_flag"
12392 || test ! -s conftest.err'
12393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12394 (eval $ac_try) 2>&5
12395 ac_status=$?
12396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); }; } &&
12398 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12400 (eval $ac_try) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000012404
John Criswell47fdd832003-07-14 16:52:07 +000012405aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12406}'`
12407# Check for a 64-bit object if we didn't find anything.
12408if 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; }
12409}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +000012410else
John Criswell47fdd832003-07-14 16:52:07 +000012411 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012412sed 's/^/| /' conftest.$ac_ext >&5
12413
John Criswell47fdd832003-07-14 16:52:07 +000012414fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012415rm -f conftest.err conftest.$ac_objext \
12416 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012417if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +000012418
John Criswell47fdd832003-07-14 16:52:07 +000012419 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12420 # Warning - without using the other run time loading flags,
12421 # -berok will link without error, but may produce a broken library.
12422 no_undefined_flag=' ${wl}-bernotok'
12423 allow_undefined_flag=' ${wl}-berok'
12424 # -bexpall does not export symbols beginning with underscore (_)
12425 always_export_symbols=yes
12426 # Exported symbols can be pulled into shared objects from archives
12427 whole_archive_flag_spec=' '
12428 archive_cmds_need_lc=yes
12429 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000012430 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 +000012431 fi
12432 fi
John Criswell7a73b802003-06-30 21:59:07 +000012433 ;;
John Criswell47fdd832003-07-14 16:52:07 +000012434
12435 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000012436 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 +000012437 hardcode_libdir_flag_spec='-L$libdir'
12438 hardcode_minus_L=yes
12439 # see comment about different semantics on the GNU ld section
12440 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +000012441 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012442
Reid Spencer2706f8c2004-09-19 23:53:36 +000012443 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000012444 export_dynamic_flag_spec=-rdynamic
12445 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012446
John Criswell47fdd832003-07-14 16:52:07 +000012447 cygwin* | mingw* | pw32*)
12448 # When not using gcc, we currently assume that we are using
12449 # Microsoft Visual C++.
12450 # hardcode_libdir_flag_spec is actually meaningless, as there is
12451 # no search path for DLLs.
12452 hardcode_libdir_flag_spec=' '
12453 allow_undefined_flag=unsupported
12454 # Tell ltmain to make .lib files, not .a files.
12455 libext=lib
12456 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012457 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000012458 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000012459 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +000012460 # The linker will automatically build a .lib file if we build a DLL.
12461 old_archive_From_new_cmds='true'
12462 # FIXME: Should let the user specify the lib program.
12463 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12464 fix_srcfile_path='`cygpath -w "$srcfile"`'
12465 enable_shared_with_static_runtimes=yes
12466 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012467
John Criswell47fdd832003-07-14 16:52:07 +000012468 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +000012469 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012470 rhapsody* | darwin1.[012])
12471 allow_undefined_flag='${wl}-undefined ${wl}suppress'
12472 ;;
12473 *) # Darwin 1.3 on
12474 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12475 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12476 else
12477 case ${MACOSX_DEPLOYMENT_TARGET} in
12478 10.[012])
12479 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12480 ;;
12481 10.*)
12482 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
12483 ;;
12484 esac
12485 fi
12486 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012487 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000012488 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +000012489 hardcode_direct=no
12490 hardcode_automatic=yes
12491 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000012492 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +000012493 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000012494 if test "$GCC" = yes ; then
12495 output_verbose_link_cmd='echo'
12496 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12497 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12498 # 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 +000012499 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}'
12500 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 +000012501 else
12502 case "$cc_basename" in
12503 xlc*)
12504 output_verbose_link_cmd='echo'
12505 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
12506 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12507 # 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 +000012508 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}'
12509 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 +000012510 ;;
12511 *)
12512 ld_shlibs=no
12513 ;;
12514 esac
John Criswell7a73b802003-06-30 21:59:07 +000012515 fi
John Criswell47fdd832003-07-14 16:52:07 +000012516 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012517
John Criswell47fdd832003-07-14 16:52:07 +000012518 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +000012519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +000012520 hardcode_libdir_flag_spec='-L$libdir'
12521 hardcode_shlibpath_var=no
12522 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012523
John Criswell47fdd832003-07-14 16:52:07 +000012524 freebsd1*)
12525 ld_shlibs=no
12526 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012527
John Criswell47fdd832003-07-14 16:52:07 +000012528 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12529 # support. Future versions do this automatically, but an explicit c++rt0.o
12530 # does not break anything, and helps significantly (at the cost of a little
12531 # extra space).
12532 freebsd2.2*)
12533 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12534 hardcode_libdir_flag_spec='-R$libdir'
12535 hardcode_direct=yes
12536 hardcode_shlibpath_var=no
12537 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012538
John Criswell47fdd832003-07-14 16:52:07 +000012539 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12540 freebsd2*)
12541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12542 hardcode_direct=yes
12543 hardcode_minus_L=yes
12544 hardcode_shlibpath_var=no
12545 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012546
John Criswell47fdd832003-07-14 16:52:07 +000012547 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012548 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000012549 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12550 hardcode_libdir_flag_spec='-R$libdir'
12551 hardcode_direct=yes
12552 hardcode_shlibpath_var=no
12553 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012554
John Criswell47fdd832003-07-14 16:52:07 +000012555 hpux9*)
12556 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000012557 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 +000012558 else
Reid Spencer177dbe22004-10-13 01:01:03 +000012559 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 +000012560 fi
12561 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12562 hardcode_libdir_separator=:
12563 hardcode_direct=yes
12564
12565 # hardcode_minus_L: Not really in the search PATH,
12566 # but as the default location of the library.
12567 hardcode_minus_L=yes
12568 export_dynamic_flag_spec='${wl}-E'
12569 ;;
12570
12571 hpux10* | hpux11*)
12572 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12573 case "$host_cpu" in
12574 hppa*64*|ia64*)
12575 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12576 ;;
12577 *)
12578 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12579 ;;
12580 esac
12581 else
12582 case "$host_cpu" in
12583 hppa*64*|ia64*)
12584 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12585 ;;
12586 *)
12587 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12588 ;;
12589 esac
12590 fi
12591 if test "$with_gnu_ld" = no; then
12592 case "$host_cpu" in
12593 hppa*64*)
12594 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12595 hardcode_libdir_flag_spec_ld='+b $libdir'
12596 hardcode_libdir_separator=:
12597 hardcode_direct=no
12598 hardcode_shlibpath_var=no
12599 ;;
12600 ia64*)
12601 hardcode_libdir_flag_spec='-L$libdir'
12602 hardcode_direct=no
12603 hardcode_shlibpath_var=no
12604
12605 # hardcode_minus_L: Not really in the search PATH,
12606 # but as the default location of the library.
12607 hardcode_minus_L=yes
12608 ;;
12609 *)
12610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12611 hardcode_libdir_separator=:
12612 hardcode_direct=yes
12613 export_dynamic_flag_spec='${wl}-E'
12614
12615 # hardcode_minus_L: Not really in the search PATH,
12616 # but as the default location of the library.
12617 hardcode_minus_L=yes
12618 ;;
12619 esac
12620 fi
12621 ;;
12622
12623 irix5* | irix6* | nonstopux*)
12624 if test "$GCC" = yes; then
12625 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'
12626 else
12627 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'
12628 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12629 fi
12630 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12631 hardcode_libdir_separator=:
12632 link_all_deplibs=yes
12633 ;;
12634
12635 netbsd*)
12636 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12638 else
12639 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12640 fi
12641 hardcode_libdir_flag_spec='-R$libdir'
12642 hardcode_direct=yes
12643 hardcode_shlibpath_var=no
12644 ;;
12645
12646 newsos6)
12647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12648 hardcode_direct=yes
12649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12650 hardcode_libdir_separator=:
12651 hardcode_shlibpath_var=no
12652 ;;
12653
12654 openbsd*)
12655 hardcode_direct=yes
12656 hardcode_shlibpath_var=no
12657 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12658 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000012659 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 +000012660 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12661 export_dynamic_flag_spec='${wl}-E'
12662 else
12663 case $host_os in
12664 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12665 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12666 hardcode_libdir_flag_spec='-R$libdir'
12667 ;;
12668 *)
12669 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12670 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12671 ;;
12672 esac
12673 fi
12674 ;;
12675
12676 os2*)
12677 hardcode_libdir_flag_spec='-L$libdir'
12678 hardcode_minus_L=yes
12679 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000012680 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 +000012681 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12682 ;;
12683
12684 osf3*)
12685 if test "$GCC" = yes; then
12686 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12687 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'
12688 else
12689 allow_undefined_flag=' -expect_unresolved \*'
12690 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'
12691 fi
12692 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12693 hardcode_libdir_separator=:
12694 ;;
12695
12696 osf4* | osf5*) # as osf3* with the addition of -msym flag
12697 if test "$GCC" = yes; then
12698 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12699 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'
12700 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12701 else
12702 allow_undefined_flag=' -expect_unresolved \*'
12703 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 +000012704 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12705 $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'
12706
John Criswell47fdd832003-07-14 16:52:07 +000012707 # Both c and cxx compiler support -rpath directly
12708 hardcode_libdir_flag_spec='-rpath $libdir'
12709 fi
12710 hardcode_libdir_separator=:
12711 ;;
12712
12713 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +000012714 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12715 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +000012716 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +000012717 runpath_var=LD_RUN_PATH
12718 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +000012719 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012720
John Criswell47fdd832003-07-14 16:52:07 +000012721 solaris*)
12722 no_undefined_flag=' -z text'
12723 if test "$GCC" = yes; then
12724 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012725 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12726 $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 +000012727 else
12728 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012729 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12730 $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 +000012731 fi
12732 hardcode_libdir_flag_spec='-R$libdir'
12733 hardcode_shlibpath_var=no
12734 case $host_os in
12735 solaris2.[0-5] | solaris2.[0-5].*) ;;
12736 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12737 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12738 esac
12739 link_all_deplibs=yes
12740 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012741
John Criswell47fdd832003-07-14 16:52:07 +000012742 sunos4*)
12743 if test "x$host_vendor" = xsequent; then
12744 # Use $CC to link under sequent, because it throws in some extra .o
12745 # files that make .init and .fini sections work.
12746 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12747 else
12748 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12749 fi
12750 hardcode_libdir_flag_spec='-L$libdir'
12751 hardcode_direct=yes
12752 hardcode_minus_L=yes
12753 hardcode_shlibpath_var=no
12754 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012755
John Criswell47fdd832003-07-14 16:52:07 +000012756 sysv4)
12757 case $host_vendor in
12758 sni)
12759 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12760 hardcode_direct=yes # is this really true???
12761 ;;
12762 siemens)
12763 ## LD is ld it makes a PLAMLIB
12764 ## CC just makes a GrossModule.
12765 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12766 reload_cmds='$CC -r -o $output$reload_objs'
12767 hardcode_direct=no
12768 ;;
12769 motorola)
12770 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12771 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12772 ;;
12773 esac
12774 runpath_var='LD_RUN_PATH'
12775 hardcode_shlibpath_var=no
12776 ;;
12777
12778 sysv4.3*)
12779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12780 hardcode_shlibpath_var=no
12781 export_dynamic_flag_spec='-Bexport'
12782 ;;
12783
12784 sysv4*MP*)
12785 if test -d /usr/nec; then
12786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12787 hardcode_shlibpath_var=no
12788 runpath_var=LD_RUN_PATH
12789 hardcode_runpath_var=yes
12790 ld_shlibs=yes
12791 fi
12792 ;;
12793
12794 sysv4.2uw2*)
12795 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12796 hardcode_direct=yes
12797 hardcode_minus_L=no
12798 hardcode_shlibpath_var=no
12799 hardcode_runpath_var=yes
12800 runpath_var=LD_RUN_PATH
12801 ;;
12802
12803 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12804 no_undefined_flag='${wl}-z ${wl}text'
12805 if test "$GCC" = yes; then
12806 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12807 else
12808 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12809 fi
12810 runpath_var='LD_RUN_PATH'
12811 hardcode_shlibpath_var=no
12812 ;;
12813
12814 sysv5*)
12815 no_undefined_flag=' -z text'
12816 # $CC -shared without GNU ld will not create a library from C++
12817 # object files and a static libstdc++, better avoid it by now
12818 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000012819 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12820 $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 +000012821 hardcode_libdir_flag_spec=
12822 hardcode_shlibpath_var=no
12823 runpath_var='LD_RUN_PATH'
12824 ;;
12825
12826 uts4*)
12827 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12828 hardcode_libdir_flag_spec='-L$libdir'
12829 hardcode_shlibpath_var=no
12830 ;;
12831
12832 *)
12833 ld_shlibs=no
12834 ;;
12835 esac
12836 fi
12837
John Criswell7a73b802003-06-30 21:59:07 +000012838echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12839echo "${ECHO_T}$ld_shlibs" >&6
12840test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000012841
John Criswell47fdd832003-07-14 16:52:07 +000012842variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12843if test "$GCC" = yes; then
12844 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12845fi
12846
12847#
12848# Do we need to explicitly link libc?
12849#
12850case "x$archive_cmds_need_lc" in
12851x|xyes)
12852 # Assume -lc should be added
12853 archive_cmds_need_lc=yes
12854
12855 if test "$enable_shared" = yes && test "$GCC" = yes; then
12856 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +000012857 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000012858 # FIXME: we may have to deal with multi-command sequences.
12859 ;;
12860 '$CC '*)
12861 # Test whether the compiler implicitly links with -lc since on some
12862 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12863 # to ld, don't add -lc before -lgcc.
12864 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12865echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12866 $rm conftest*
12867 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12868
12869 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12870 (eval $ac_compile) 2>&5
12871 ac_status=$?
12872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12873 (exit $ac_status); } 2>conftest.err; then
12874 soname=conftest
12875 lib=conftest
12876 libobjs=conftest.$ac_objext
12877 deplibs=
12878 wl=$lt_prog_compiler_wl
12879 compiler_flags=-v
12880 linker_flags=-v
12881 verstring=
12882 output_objdir=.
12883 libname=conftest
12884 lt_save_allow_undefined_flag=$allow_undefined_flag
12885 allow_undefined_flag=
12886 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12887 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12888 ac_status=$?
12889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12890 (exit $ac_status); }
12891 then
12892 archive_cmds_need_lc=no
12893 else
12894 archive_cmds_need_lc=yes
12895 fi
12896 allow_undefined_flag=$lt_save_allow_undefined_flag
12897 else
12898 cat conftest.err 1>&5
12899 fi
12900 $rm conftest*
12901 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12902echo "${ECHO_T}$archive_cmds_need_lc" >&6
12903 ;;
12904 esac
12905 fi
12906 ;;
12907esac
12908
John Criswell7a73b802003-06-30 21:59:07 +000012909echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12910echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12911library_names_spec=
12912libname_spec='lib$name'
12913soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000012914shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +000012915postinstall_cmds=
12916postuninstall_cmds=
12917finish_cmds=
12918finish_eval=
12919shlibpath_var=
12920shlibpath_overrides_runpath=unknown
12921version_type=none
12922dynamic_linker="$host_os ld.so"
12923sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +000012924if test "$GCC" = yes; then
12925 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12926 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12927 # if the path contains ";" then we assume it to be the separator
12928 # otherwise default to the standard path separator (i.e. ":") - it is
12929 # assumed that no part of a normal pathname contains ";" but that should
12930 # okay in the real world where ";" in dirpaths is itself problematic.
12931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12932 else
12933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12934 fi
12935else
12936 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12937fi
12938need_lib_prefix=unknown
12939hardcode_into_libs=no
12940
12941# when you set need_version to no, make sure it does not cause -set_version
12942# flags to be left without arguments
12943need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +000012944
12945case $host_os in
12946aix3*)
12947 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000012948 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000012949 shlibpath_var=LIBPATH
12950
John Criswell47fdd832003-07-14 16:52:07 +000012951 # AIX 3 has no versioning support, so we append a major version to the name.
12952 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000012953 ;;
12954
12955aix4* | aix5*)
12956 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000012957 need_lib_prefix=no
12958 need_version=no
12959 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000012960 if test "$host_cpu" = ia64; then
12961 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +000012962 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000012963 shlibpath_var=LD_LIBRARY_PATH
12964 else
12965 # With GCC up to 2.95.x, collect2 would create an import file
12966 # for dependence libraries. The import file would start with
12967 # the line `#! .'. This would cause the generated library to
12968 # depend on `.', always an invalid library. This was fixed in
12969 # development snapshots of GCC prior to 3.0.
12970 case $host_os in
12971 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +000012972 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12973 echo ' yes '
12974 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12975 :
12976 else
12977 can_build_shared=no
12978 fi
12979 ;;
John Criswell7a73b802003-06-30 21:59:07 +000012980 esac
John Criswell47fdd832003-07-14 16:52:07 +000012981 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12982 # soname into executable. Probably we can add versioning support to
12983 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +000012984 if test "$aix_use_runtimelinking" = yes; then
12985 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12986 # instead of lib<name>.a to let people know that these are not
12987 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000012988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000012989 else
12990 # We preserve .a as extension for shared libraries through AIX4.2
12991 # and later when we are not doing run time linking.
12992 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +000012993 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000012994 fi
12995 shlibpath_var=LIBPATH
12996 fi
12997 ;;
12998
12999amigaos*)
13000 library_names_spec='$libname.ixlibrary $libname.a'
13001 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013002 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 +000013003 ;;
13004
13005beos*)
John Criswell47fdd832003-07-14 16:52:07 +000013006 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013007 dynamic_linker="$host_os ld.so"
13008 shlibpath_var=LIBRARY_PATH
13009 ;;
13010
Reid Spencer2706f8c2004-09-19 23:53:36 +000013011bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +000013012 version_type=linux
13013 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13015 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013016 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13017 shlibpath_var=LD_LIBRARY_PATH
13018 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13019 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +000013020 # the default ld.so.conf also contains /usr/contrib/lib and
13021 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13022 # libtool to hard-code these into programs
13023 ;;
13024
13025cygwin* | mingw* | pw32*)
13026 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000013027 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013028 need_version=no
13029 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013030
John Criswell7a73b802003-06-30 21:59:07 +000013031 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013032 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013033 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +000013034 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000013035 postinstall_cmds='base_file=`basename \${file}`~
13036 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13037 dldir=$destdir/`dirname \$dlpath`~
13038 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000013039 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000013040 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13041 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +000013042 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +000013043 shlibpath_overrides_runpath=yes
13044
13045 case $host_os in
13046 cygwin*)
13047 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13048 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 +000013049 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013050 ;;
13051 mingw*)
13052 # MinGW DLLs use traditional 'lib' prefix
13053 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13055 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13056 # It is most probably a Windows format PATH printed by
13057 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13058 # path with ; separators, and with drive letters. We can handle the
13059 # drive letters (cygwin fileutils understands them), so leave them,
13060 # especially as we might pass files found there to a mingw objdump,
13061 # which wouldn't understand a cygwinified path. Ahh.
13062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13063 else
13064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13065 fi
13066 ;;
13067 pw32*)
13068 # pw32 DLLs use 'pw' prefix rather than 'lib'
13069 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13070 ;;
13071 esac
John Criswell7a73b802003-06-30 21:59:07 +000013072 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013073
John Criswell7a73b802003-06-30 21:59:07 +000013074 *)
John Criswell47fdd832003-07-14 16:52:07 +000013075 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +000013076 ;;
13077 esac
13078 dynamic_linker='Win32 ld.exe'
13079 # FIXME: first we should search . and the directory the executable is in
13080 shlibpath_var=PATH
13081 ;;
13082
13083darwin* | rhapsody*)
13084 dynamic_linker="$host_os dyld"
13085 version_type=darwin
13086 need_lib_prefix=no
13087 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000013088 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013089 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +000013090 shlibpath_overrides_runpath=yes
13091 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000013092 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000013093 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013094 if test "$GCC" = yes; then
13095 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"`
13096 else
13097 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000013098 fi
13099 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13100 ;;
13101
13102dgux*)
13103 version_type=linux
13104 need_lib_prefix=no
13105 need_version=no
13106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13107 soname_spec='${libname}${release}${shared_ext}$major'
13108 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013109 ;;
13110
13111freebsd1*)
13112 dynamic_linker=no
13113 ;;
13114
Reid Spencer2706f8c2004-09-19 23:53:36 +000013115kfreebsd*-gnu)
13116 version_type=linux
13117 need_lib_prefix=no
13118 need_version=no
13119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13120 soname_spec='${libname}${release}${shared_ext}$major'
13121 shlibpath_var=LD_LIBRARY_PATH
13122 shlibpath_overrides_runpath=no
13123 hardcode_into_libs=yes
13124 dynamic_linker='GNU ld.so'
13125 ;;
13126
John Criswell7a73b802003-06-30 21:59:07 +000013127freebsd*)
13128 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13129 version_type=freebsd-$objformat
13130 case $version_type in
13131 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +000013132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013133 need_version=no
13134 need_lib_prefix=no
13135 ;;
13136 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +000013137 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013138 need_version=yes
13139 ;;
13140 esac
13141 shlibpath_var=LD_LIBRARY_PATH
13142 case $host_os in
13143 freebsd2*)
13144 shlibpath_overrides_runpath=yes
13145 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013146 freebsd3.01* | freebsdelf3.01*)
13147 shlibpath_overrides_runpath=yes
13148 hardcode_into_libs=yes
13149 ;;
13150 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +000013151 shlibpath_overrides_runpath=no
13152 hardcode_into_libs=yes
13153 ;;
13154 esac
13155 ;;
13156
13157gnu*)
13158 version_type=linux
13159 need_lib_prefix=no
13160 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13162 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013163 shlibpath_var=LD_LIBRARY_PATH
13164 hardcode_into_libs=yes
13165 ;;
13166
13167hpux9* | hpux10* | hpux11*)
13168 # Give a soname corresponding to the major version so that dld.sl refuses to
13169 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +000013170 version_type=sunos
13171 need_lib_prefix=no
13172 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013173 case "$host_cpu" in
13174 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013175 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000013176 hardcode_into_libs=yes
13177 dynamic_linker="$host_os dld.so"
13178 shlibpath_var=LD_LIBRARY_PATH
13179 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13181 soname_spec='${libname}${release}${shared_ext}$major'
13182 if test "X$HPUX_IA64_MODE" = X32; then
13183 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13184 else
13185 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13186 fi
13187 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13188 ;;
13189 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013190 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013191 hardcode_into_libs=yes
13192 dynamic_linker="$host_os dld.sl"
13193 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13196 soname_spec='${libname}${release}${shared_ext}$major'
13197 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13199 ;;
13200 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013201 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000013202 dynamic_linker="$host_os dld.sl"
13203 shlibpath_var=SHLIB_PATH
13204 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13206 soname_spec='${libname}${release}${shared_ext}$major'
13207 ;;
13208 esac
John Criswell7a73b802003-06-30 21:59:07 +000013209 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13210 postinstall_cmds='chmod 555 $lib'
13211 ;;
13212
John Criswell47fdd832003-07-14 16:52:07 +000013213irix5* | irix6* | nonstopux*)
13214 case $host_os in
13215 nonstopux*) version_type=nonstopux ;;
13216 *)
13217 if test "$lt_cv_prog_gnu_ld" = yes; then
13218 version_type=linux
13219 else
13220 version_type=irix
13221 fi ;;
13222 esac
John Criswell7a73b802003-06-30 21:59:07 +000013223 need_lib_prefix=no
13224 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013225 soname_spec='${libname}${release}${shared_ext}$major'
13226 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 +000013227 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +000013228 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +000013229 libsuff= shlibsuff=
13230 ;;
13231 *)
13232 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +000013233 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13234 libsuff= shlibsuff= libmagic=32-bit;;
13235 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13236 libsuff=32 shlibsuff=N32 libmagic=N32;;
13237 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13238 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +000013239 *) libsuff= shlibsuff= libmagic=never-match;;
13240 esac
13241 ;;
13242 esac
13243 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13244 shlibpath_overrides_runpath=no
13245 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13246 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +000013247 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +000013248 ;;
13249
13250# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +000013251linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +000013252 dynamic_linker=no
13253 ;;
13254
13255# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +000013256linux*)
John Criswell7a73b802003-06-30 21:59:07 +000013257 version_type=linux
13258 need_lib_prefix=no
13259 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13261 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13263 shlibpath_var=LD_LIBRARY_PATH
13264 shlibpath_overrides_runpath=no
13265 # This implies no fast_install, which is unacceptable.
13266 # Some rework will be needed to allow for fast_install
13267 # before this can be enabled.
13268 hardcode_into_libs=yes
13269
Reid Spencer2706f8c2004-09-19 23:53:36 +000013270 # Append ld.so.conf contents to the search path
13271 if test -f /etc/ld.so.conf; then
13272 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13273 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13274 fi
13275
John Criswell7a73b802003-06-30 21:59:07 +000013276 # We used to test for /lib/ld.so.1 and disable shared libraries on
13277 # powerpc, because MkLinux only supported shared libraries with the
13278 # GNU dynamic linker. Since this was broken with cross compilers,
13279 # most powerpc-linux boxes support dynamic linking these days and
13280 # people can always --disable-shared, the test was removed, and we
13281 # assume the GNU/Linux dynamic linker is in use.
13282 dynamic_linker='GNU/Linux ld.so'
13283 ;;
13284
Reid Spencer2706f8c2004-09-19 23:53:36 +000013285knetbsd*-gnu)
13286 version_type=linux
13287 need_lib_prefix=no
13288 need_version=no
13289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13290 soname_spec='${libname}${release}${shared_ext}$major'
13291 shlibpath_var=LD_LIBRARY_PATH
13292 shlibpath_overrides_runpath=no
13293 hardcode_into_libs=yes
13294 dynamic_linker='GNU ld.so'
13295 ;;
13296
John Criswell7a73b802003-06-30 21:59:07 +000013297netbsd*)
13298 version_type=sunos
13299 need_lib_prefix=no
13300 need_version=no
13301 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +000013302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013303 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13304 dynamic_linker='NetBSD (a.out) ld.so'
13305 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000013307 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013308 dynamic_linker='NetBSD ld.elf_so'
13309 fi
13310 shlibpath_var=LD_LIBRARY_PATH
13311 shlibpath_overrides_runpath=yes
13312 hardcode_into_libs=yes
13313 ;;
13314
13315newsos6)
13316 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13318 shlibpath_var=LD_LIBRARY_PATH
13319 shlibpath_overrides_runpath=yes
13320 ;;
13321
Reid Spencer2706f8c2004-09-19 23:53:36 +000013322nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000013323 version_type=linux
13324 need_lib_prefix=no
13325 need_version=no
13326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13327 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013328 shlibpath_var=LD_LIBRARY_PATH
13329 shlibpath_overrides_runpath=yes
13330 ;;
13331
13332openbsd*)
13333 version_type=sunos
13334 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013335 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13337 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13338 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +000013339 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 +000013340 case $host_os in
13341 openbsd2.[89] | openbsd2.[89].*)
13342 shlibpath_overrides_runpath=no
13343 ;;
13344 *)
13345 shlibpath_overrides_runpath=yes
13346 ;;
13347 esac
John Criswell7a73b802003-06-30 21:59:07 +000013348 else
13349 shlibpath_overrides_runpath=yes
13350 fi
John Criswell7a73b802003-06-30 21:59:07 +000013351 ;;
13352
13353os2*)
13354 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013355 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +000013356 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +000013357 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +000013358 dynamic_linker='OS/2 ld.exe'
13359 shlibpath_var=LIBPATH
13360 ;;
13361
13362osf3* | osf4* | osf5*)
13363 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013364 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013365 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013366 soname_spec='${libname}${release}${shared_ext}$major'
13367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013368 shlibpath_var=LD_LIBRARY_PATH
13369 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13370 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13371 ;;
13372
13373sco3.2v5*)
13374 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +000013375 soname_spec='${libname}${release}${shared_ext}$major'
13376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +000013377 shlibpath_var=LD_LIBRARY_PATH
13378 ;;
13379
13380solaris*)
13381 version_type=linux
13382 need_lib_prefix=no
13383 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000013384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13385 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013386 shlibpath_var=LD_LIBRARY_PATH
13387 shlibpath_overrides_runpath=yes
13388 hardcode_into_libs=yes
13389 # ldd complains unless libraries are executable
13390 postinstall_cmds='chmod +x $lib'
13391 ;;
13392
13393sunos4*)
13394 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +000013395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +000013396 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13397 shlibpath_var=LD_LIBRARY_PATH
13398 shlibpath_overrides_runpath=yes
13399 if test "$with_gnu_ld" = yes; then
13400 need_lib_prefix=no
13401 fi
13402 need_version=yes
13403 ;;
13404
13405sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13406 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +000013409 shlibpath_var=LD_LIBRARY_PATH
13410 case $host_vendor in
13411 sni)
13412 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +000013413 need_lib_prefix=no
13414 export_dynamic_flag_spec='${wl}-Blargedynsym'
13415 runpath_var=LD_RUN_PATH
13416 ;;
13417 siemens)
13418 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +000013419 ;;
13420 motorola)
13421 need_lib_prefix=no
13422 need_version=no
13423 shlibpath_overrides_runpath=no
13424 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13425 ;;
13426 esac
13427 ;;
13428
John Criswell7a73b802003-06-30 21:59:07 +000013429sysv4*MP*)
13430 if test -d /usr/nec ;then
13431 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +000013432 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13433 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +000013434 shlibpath_var=LD_LIBRARY_PATH
13435 fi
13436 ;;
13437
John Criswell47fdd832003-07-14 16:52:07 +000013438uts4*)
13439 version_type=linux
13440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13441 soname_spec='${libname}${release}${shared_ext}$major'
13442 shlibpath_var=LD_LIBRARY_PATH
13443 ;;
13444
John Criswell7a73b802003-06-30 21:59:07 +000013445*)
13446 dynamic_linker=no
13447 ;;
13448esac
13449echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13450echo "${ECHO_T}$dynamic_linker" >&6
13451test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +000013452
Reid Spencer2706f8c2004-09-19 23:53:36 +000013453echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13454echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13455hardcode_action=
13456if test -n "$hardcode_libdir_flag_spec" || \
13457 test -n "$runpath_var" || \
13458 test "X$hardcode_automatic" = "Xyes" ; then
13459
13460 # We can hardcode non-existant directories.
13461 if test "$hardcode_direct" != no &&
13462 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13463 # have to relink, otherwise we might link with an installed library
13464 # when we should be linking with a yet-to-be-installed one
13465 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13466 test "$hardcode_minus_L" != no; then
13467 # Linking always hardcodes the temporary library directory.
13468 hardcode_action=relink
13469 else
13470 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13471 hardcode_action=immediate
13472 fi
13473else
13474 # We cannot hardcode anything, or else we can only hardcode existing
13475 # directories.
13476 hardcode_action=unsupported
13477fi
13478echo "$as_me:$LINENO: result: $hardcode_action" >&5
13479echo "${ECHO_T}$hardcode_action" >&6
13480
13481if test "$hardcode_action" = relink; then
13482 # Fast installation is not supported
13483 enable_fast_install=no
13484elif test "$shlibpath_overrides_runpath" = yes ||
13485 test "$enable_shared" = no; then
13486 # Fast installation is not necessary
13487 enable_fast_install=needless
13488fi
13489
13490striplib=
13491old_striplib=
13492echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13493echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13494if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13495 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13496 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13497 echo "$as_me:$LINENO: result: yes" >&5
13498echo "${ECHO_T}yes" >&6
13499else
13500# FIXME - insert some real tests, host_os isn't really good enough
13501 case $host_os in
13502 darwin*)
13503 if test -n "$STRIP" ; then
13504 striplib="$STRIP -x"
13505 echo "$as_me:$LINENO: result: yes" >&5
13506echo "${ECHO_T}yes" >&6
13507 else
13508 echo "$as_me:$LINENO: result: no" >&5
13509echo "${ECHO_T}no" >&6
13510fi
13511 ;;
13512 *)
13513 echo "$as_me:$LINENO: result: no" >&5
13514echo "${ECHO_T}no" >&6
13515 ;;
13516 esac
13517fi
13518
John Criswell7a73b802003-06-30 21:59:07 +000013519if test "x$enable_dlopen" != xyes; then
13520 enable_dlopen=unknown
13521 enable_dlopen_self=unknown
13522 enable_dlopen_self_static=unknown
13523else
13524 lt_cv_dlopen=no
13525 lt_cv_dlopen_libs=
13526
13527 case $host_os in
13528 beos*)
13529 lt_cv_dlopen="load_add_on"
13530 lt_cv_dlopen_libs=
13531 lt_cv_dlopen_self=yes
13532 ;;
13533
John Criswell47fdd832003-07-14 16:52:07 +000013534 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +000013535 lt_cv_dlopen="LoadLibrary"
13536 lt_cv_dlopen_libs=
13537 ;;
13538
John Criswell47fdd832003-07-14 16:52:07 +000013539 cygwin*)
13540 lt_cv_dlopen="dlopen"
13541 lt_cv_dlopen_libs=
13542 ;;
13543
13544 darwin*)
13545 # if libdl is installed we need to link against it
13546 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13547echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13548if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13549 echo $ECHO_N "(cached) $ECHO_C" >&6
13550else
13551 ac_check_lib_save_LIBS=$LIBS
13552LIBS="-ldl $LIBS"
13553cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013554/* confdefs.h. */
13555_ACEOF
13556cat confdefs.h >>conftest.$ac_ext
13557cat >>conftest.$ac_ext <<_ACEOF
13558/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000013559
13560/* Override any gcc2 internal prototype to avoid an error. */
13561#ifdef __cplusplus
13562extern "C"
13563#endif
13564/* We use char because int might match the return type of a gcc2
13565 builtin and then its argument prototype would still apply. */
13566char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000013567int
13568main ()
13569{
13570dlopen ();
13571 ;
13572 return 0;
13573}
13574_ACEOF
13575rm -f conftest.$ac_objext conftest$ac_exeext
13576if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013577 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013578 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013579 grep -v '^ *+' conftest.er1 >conftest.err
13580 rm -f conftest.er1
13581 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013584 { ac_try='test -z "$ac_c_werror_flag"
13585 || test ! -s conftest.err'
13586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13587 (eval $ac_try) 2>&5
13588 ac_status=$?
13589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13590 (exit $ac_status); }; } &&
13591 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13593 (eval $ac_try) 2>&5
13594 ac_status=$?
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; }; then
13597 ac_cv_lib_dl_dlopen=yes
13598else
13599 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013600sed 's/^/| /' conftest.$ac_ext >&5
13601
John Criswell47fdd832003-07-14 16:52:07 +000013602ac_cv_lib_dl_dlopen=no
13603fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013604rm -f conftest.err conftest.$ac_objext \
13605 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013606LIBS=$ac_check_lib_save_LIBS
13607fi
13608echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13609echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13610if test $ac_cv_lib_dl_dlopen = yes; then
13611 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13612else
13613
13614 lt_cv_dlopen="dyld"
13615 lt_cv_dlopen_libs=
13616 lt_cv_dlopen_self=yes
13617
13618fi
13619
13620 ;;
13621
John Criswell7a73b802003-06-30 21:59:07 +000013622 *)
13623 echo "$as_me:$LINENO: checking for shl_load" >&5
13624echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13625if test "${ac_cv_func_shl_load+set}" = set; then
13626 echo $ECHO_N "(cached) $ECHO_C" >&6
13627else
13628 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013629/* confdefs.h. */
13630_ACEOF
13631cat confdefs.h >>conftest.$ac_ext
13632cat >>conftest.$ac_ext <<_ACEOF
13633/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013634/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13636#define shl_load innocuous_shl_load
13637
John Criswell7a73b802003-06-30 21:59:07 +000013638/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013639 which can conflict with char shl_load (); below.
13640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13641 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013642
John Criswell0c38eaf2003-09-10 15:17:25 +000013643#ifdef __STDC__
13644# include <limits.h>
13645#else
13646# include <assert.h>
13647#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013648
13649#undef shl_load
13650
John Criswell7a73b802003-06-30 21:59:07 +000013651/* Override any gcc2 internal prototype to avoid an error. */
13652#ifdef __cplusplus
13653extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013654{
John Criswell7a73b802003-06-30 21:59:07 +000013655#endif
13656/* We use char because int might match the return type of a gcc2
13657 builtin and then its argument prototype would still apply. */
13658char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013659/* The GNU C library defines this for functions which it implements
13660 to always fail with ENOSYS. Some functions are actually named
13661 something starting with __ and the normal name is an alias. */
13662#if defined (__stub_shl_load) || defined (__stub___shl_load)
13663choke me
13664#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013665char (*f) () = shl_load;
13666#endif
13667#ifdef __cplusplus
13668}
John Criswell7a73b802003-06-30 21:59:07 +000013669#endif
13670
John Criswell0c38eaf2003-09-10 15:17:25 +000013671int
13672main ()
13673{
13674return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +000013675 ;
13676 return 0;
13677}
13678_ACEOF
13679rm -f conftest.$ac_objext conftest$ac_exeext
13680if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013681 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013682 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013683 grep -v '^ *+' conftest.er1 >conftest.err
13684 rm -f conftest.er1
13685 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013688 { ac_try='test -z "$ac_c_werror_flag"
13689 || test ! -s conftest.err'
13690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13691 (eval $ac_try) 2>&5
13692 ac_status=$?
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; } &&
13695 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13697 (eval $ac_try) 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); }; }; then
13701 ac_cv_func_shl_load=yes
13702else
13703 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013704sed 's/^/| /' conftest.$ac_ext >&5
13705
John Criswell7a73b802003-06-30 21:59:07 +000013706ac_cv_func_shl_load=no
13707fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013708rm -f conftest.err conftest.$ac_objext \
13709 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013710fi
13711echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13712echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13713if test $ac_cv_func_shl_load = yes; then
13714 lt_cv_dlopen="shl_load"
13715else
13716 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13717echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13718if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13719 echo $ECHO_N "(cached) $ECHO_C" >&6
13720else
13721 ac_check_lib_save_LIBS=$LIBS
13722LIBS="-ldld $LIBS"
13723cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013724/* confdefs.h. */
13725_ACEOF
13726cat confdefs.h >>conftest.$ac_ext
13727cat >>conftest.$ac_ext <<_ACEOF
13728/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013729
13730/* Override any gcc2 internal prototype to avoid an error. */
13731#ifdef __cplusplus
13732extern "C"
13733#endif
13734/* We use char because int might match the return type of a gcc2
13735 builtin and then its argument prototype would still apply. */
13736char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +000013737int
13738main ()
13739{
13740shl_load ();
13741 ;
13742 return 0;
13743}
13744_ACEOF
13745rm -f conftest.$ac_objext conftest$ac_exeext
13746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013747 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013748 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013749 grep -v '^ *+' conftest.er1 >conftest.err
13750 rm -f conftest.er1
13751 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013754 { ac_try='test -z "$ac_c_werror_flag"
13755 || test ! -s conftest.err'
13756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13757 (eval $ac_try) 2>&5
13758 ac_status=$?
13759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13760 (exit $ac_status); }; } &&
13761 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13763 (eval $ac_try) 2>&5
13764 ac_status=$?
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 ac_cv_lib_dld_shl_load=yes
13768else
13769 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013770sed 's/^/| /' conftest.$ac_ext >&5
13771
John Criswell7a73b802003-06-30 21:59:07 +000013772ac_cv_lib_dld_shl_load=no
13773fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013774rm -f conftest.err conftest.$ac_objext \
13775 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013776LIBS=$ac_check_lib_save_LIBS
13777fi
13778echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13779echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13780if test $ac_cv_lib_dld_shl_load = yes; then
13781 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13782else
13783 echo "$as_me:$LINENO: checking for dlopen" >&5
13784echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13785if test "${ac_cv_func_dlopen+set}" = set; then
13786 echo $ECHO_N "(cached) $ECHO_C" >&6
13787else
13788 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013789/* confdefs.h. */
13790_ACEOF
13791cat confdefs.h >>conftest.$ac_ext
13792cat >>conftest.$ac_ext <<_ACEOF
13793/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013794/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13796#define dlopen innocuous_dlopen
13797
John Criswell7a73b802003-06-30 21:59:07 +000013798/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000013799 which can conflict with char dlopen (); below.
13800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13801 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000013802
John Criswell0c38eaf2003-09-10 15:17:25 +000013803#ifdef __STDC__
13804# include <limits.h>
13805#else
13806# include <assert.h>
13807#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000013808
13809#undef dlopen
13810
John Criswell7a73b802003-06-30 21:59:07 +000013811/* Override any gcc2 internal prototype to avoid an error. */
13812#ifdef __cplusplus
13813extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000013814{
John Criswell7a73b802003-06-30 21:59:07 +000013815#endif
13816/* We use char because int might match the return type of a gcc2
13817 builtin and then its argument prototype would still apply. */
13818char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013819/* The GNU C library defines this for functions which it implements
13820 to always fail with ENOSYS. Some functions are actually named
13821 something starting with __ and the normal name is an alias. */
13822#if defined (__stub_dlopen) || defined (__stub___dlopen)
13823choke me
13824#else
John Criswell0c38eaf2003-09-10 15:17:25 +000013825char (*f) () = dlopen;
13826#endif
13827#ifdef __cplusplus
13828}
John Criswell7a73b802003-06-30 21:59:07 +000013829#endif
13830
John Criswell0c38eaf2003-09-10 15:17:25 +000013831int
13832main ()
13833{
13834return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +000013835 ;
13836 return 0;
13837}
13838_ACEOF
13839rm -f conftest.$ac_objext conftest$ac_exeext
13840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013841 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013842 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013843 grep -v '^ *+' conftest.er1 >conftest.err
13844 rm -f conftest.er1
13845 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013848 { ac_try='test -z "$ac_c_werror_flag"
13849 || test ! -s conftest.err'
13850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13851 (eval $ac_try) 2>&5
13852 ac_status=$?
13853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13854 (exit $ac_status); }; } &&
13855 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13857 (eval $ac_try) 2>&5
13858 ac_status=$?
13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13860 (exit $ac_status); }; }; then
13861 ac_cv_func_dlopen=yes
13862else
13863 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013864sed 's/^/| /' conftest.$ac_ext >&5
13865
John Criswell7a73b802003-06-30 21:59:07 +000013866ac_cv_func_dlopen=no
13867fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013868rm -f conftest.err conftest.$ac_objext \
13869 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013870fi
13871echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13872echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13873if test $ac_cv_func_dlopen = yes; then
13874 lt_cv_dlopen="dlopen"
13875else
13876 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13877echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13878if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13879 echo $ECHO_N "(cached) $ECHO_C" >&6
13880else
13881 ac_check_lib_save_LIBS=$LIBS
13882LIBS="-ldl $LIBS"
13883cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013884/* confdefs.h. */
13885_ACEOF
13886cat confdefs.h >>conftest.$ac_ext
13887cat >>conftest.$ac_ext <<_ACEOF
13888/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013889
13890/* Override any gcc2 internal prototype to avoid an error. */
13891#ifdef __cplusplus
13892extern "C"
13893#endif
13894/* We use char because int might match the return type of a gcc2
13895 builtin and then its argument prototype would still apply. */
13896char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013897int
13898main ()
13899{
13900dlopen ();
13901 ;
13902 return 0;
13903}
13904_ACEOF
13905rm -f conftest.$ac_objext conftest$ac_exeext
13906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013907 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013908 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013909 grep -v '^ *+' conftest.er1 >conftest.err
13910 rm -f conftest.er1
13911 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13913 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013914 { ac_try='test -z "$ac_c_werror_flag"
13915 || test ! -s conftest.err'
13916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13917 (eval $ac_try) 2>&5
13918 ac_status=$?
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); }; } &&
13921 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13923 (eval $ac_try) 2>&5
13924 ac_status=$?
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_cv_lib_dl_dlopen=yes
13928else
13929 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013930sed 's/^/| /' conftest.$ac_ext >&5
13931
John Criswell7a73b802003-06-30 21:59:07 +000013932ac_cv_lib_dl_dlopen=no
13933fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013934rm -f conftest.err conftest.$ac_objext \
13935 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000013936LIBS=$ac_check_lib_save_LIBS
13937fi
13938echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13939echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13940if test $ac_cv_lib_dl_dlopen = yes; then
13941 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13942else
13943 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
13944echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
13945if test "${ac_cv_lib_svld_dlopen+set}" = set; then
13946 echo $ECHO_N "(cached) $ECHO_C" >&6
13947else
13948 ac_check_lib_save_LIBS=$LIBS
13949LIBS="-lsvld $LIBS"
13950cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000013951/* confdefs.h. */
13952_ACEOF
13953cat confdefs.h >>conftest.$ac_ext
13954cat >>conftest.$ac_ext <<_ACEOF
13955/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000013956
13957/* Override any gcc2 internal prototype to avoid an error. */
13958#ifdef __cplusplus
13959extern "C"
13960#endif
13961/* We use char because int might match the return type of a gcc2
13962 builtin and then its argument prototype would still apply. */
13963char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000013964int
13965main ()
13966{
13967dlopen ();
13968 ;
13969 return 0;
13970}
13971_ACEOF
13972rm -f conftest.$ac_objext conftest$ac_exeext
13973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013974 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000013975 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013976 grep -v '^ *+' conftest.er1 >conftest.err
13977 rm -f conftest.er1
13978 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000013979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013981 { ac_try='test -z "$ac_c_werror_flag"
13982 || test ! -s conftest.err'
13983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13984 (eval $ac_try) 2>&5
13985 ac_status=$?
13986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13987 (exit $ac_status); }; } &&
13988 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000013989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13990 (eval $ac_try) 2>&5
13991 ac_status=$?
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); }; }; then
13994 ac_cv_lib_svld_dlopen=yes
13995else
13996 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013997sed 's/^/| /' conftest.$ac_ext >&5
13998
John Criswell7a73b802003-06-30 21:59:07 +000013999ac_cv_lib_svld_dlopen=no
14000fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014001rm -f conftest.err conftest.$ac_objext \
14002 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014003LIBS=$ac_check_lib_save_LIBS
14004fi
14005echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14006echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14007if test $ac_cv_lib_svld_dlopen = yes; then
14008 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14009else
14010 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14011echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14012if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14014else
14015 ac_check_lib_save_LIBS=$LIBS
14016LIBS="-ldld $LIBS"
14017cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000014018/* confdefs.h. */
14019_ACEOF
14020cat confdefs.h >>conftest.$ac_ext
14021cat >>conftest.$ac_ext <<_ACEOF
14022/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000014023
14024/* Override any gcc2 internal prototype to avoid an error. */
14025#ifdef __cplusplus
14026extern "C"
14027#endif
14028/* We use char because int might match the return type of a gcc2
14029 builtin and then its argument prototype would still apply. */
14030char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +000014031int
14032main ()
14033{
14034dld_link ();
14035 ;
14036 return 0;
14037}
14038_ACEOF
14039rm -f conftest.$ac_objext conftest$ac_exeext
14040if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000014041 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000014042 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000014043 grep -v '^ *+' conftest.er1 >conftest.err
14044 rm -f conftest.er1
14045 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000014046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000014048 { ac_try='test -z "$ac_c_werror_flag"
14049 || test ! -s conftest.err'
14050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14051 (eval $ac_try) 2>&5
14052 ac_status=$?
14053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14054 (exit $ac_status); }; } &&
14055 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000014056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14057 (eval $ac_try) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_cv_lib_dld_dld_link=yes
14062else
14063 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000014064sed 's/^/| /' conftest.$ac_ext >&5
14065
John Criswell7a73b802003-06-30 21:59:07 +000014066ac_cv_lib_dld_dld_link=no
14067fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000014068rm -f conftest.err conftest.$ac_objext \
14069 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000014070LIBS=$ac_check_lib_save_LIBS
14071fi
14072echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14073echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14074if test $ac_cv_lib_dld_dld_link = yes; then
14075 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14076fi
14077
14078
14079fi
14080
14081
14082fi
14083
14084
14085fi
14086
14087
14088fi
14089
14090
14091fi
14092
14093 ;;
14094 esac
14095
14096 if test "x$lt_cv_dlopen" != xno; then
14097 enable_dlopen=yes
14098 else
14099 enable_dlopen=no
14100 fi
14101
14102 case $lt_cv_dlopen in
14103 dlopen)
14104 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +000014105 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +000014106
14107 save_LDFLAGS="$LDFLAGS"
14108 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14109
14110 save_LIBS="$LIBS"
14111 LIBS="$lt_cv_dlopen_libs $LIBS"
14112
14113 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14114echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14115if test "${lt_cv_dlopen_self+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14117else
14118 if test "$cross_compiling" = yes; then :
14119 lt_cv_dlopen_self=cross
14120else
John Criswell47fdd832003-07-14 16:52:07 +000014121 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014122 lt_status=$lt_dlunknown
14123 cat > conftest.$ac_ext <<EOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000014124#line 14124 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014125#include "confdefs.h"
14126
14127#if HAVE_DLFCN_H
14128#include <dlfcn.h>
14129#endif
14130
14131#include <stdio.h>
14132
14133#ifdef RTLD_GLOBAL
14134# define LT_DLGLOBAL RTLD_GLOBAL
14135#else
14136# ifdef DL_GLOBAL
14137# define LT_DLGLOBAL DL_GLOBAL
14138# else
14139# define LT_DLGLOBAL 0
14140# endif
14141#endif
14142
14143/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14144 find out it does not work in some platform. */
14145#ifndef LT_DLLAZY_OR_NOW
14146# ifdef RTLD_LAZY
14147# define LT_DLLAZY_OR_NOW RTLD_LAZY
14148# else
14149# ifdef DL_LAZY
14150# define LT_DLLAZY_OR_NOW DL_LAZY
14151# else
14152# ifdef RTLD_NOW
14153# define LT_DLLAZY_OR_NOW RTLD_NOW
14154# else
14155# ifdef DL_NOW
14156# define LT_DLLAZY_OR_NOW DL_NOW
14157# else
14158# define LT_DLLAZY_OR_NOW 0
14159# endif
14160# endif
14161# endif
14162# endif
14163#endif
14164
14165#ifdef __cplusplus
14166extern "C" void exit (int);
14167#endif
14168
14169void fnord() { int i=42;}
14170int main ()
14171{
14172 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14173 int status = $lt_dlunknown;
14174
14175 if (self)
14176 {
14177 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14178 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14179 /* dlclose (self); */
14180 }
14181
14182 exit (status);
14183}
14184EOF
14185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14186 (eval $ac_link) 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14190 (./conftest; exit; ) 2>/dev/null
14191 lt_status=$?
14192 case x$lt_status in
14193 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14194 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14195 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14196 esac
14197 else :
14198 # compilation failed
14199 lt_cv_dlopen_self=no
14200 fi
14201fi
14202rm -fr conftest*
14203
14204
14205fi
14206echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14207echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14208
14209 if test "x$lt_cv_dlopen_self" = xyes; then
14210 LDFLAGS="$LDFLAGS $link_static_flag"
14211 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14212echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14213if test "${lt_cv_dlopen_self_static+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14215else
14216 if test "$cross_compiling" = yes; then :
14217 lt_cv_dlopen_self_static=cross
14218else
John Criswell47fdd832003-07-14 16:52:07 +000014219 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +000014220 lt_status=$lt_dlunknown
14221 cat > conftest.$ac_ext <<EOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000014222#line 14222 "configure"
John Criswell7a73b802003-06-30 21:59:07 +000014223#include "confdefs.h"
14224
14225#if HAVE_DLFCN_H
14226#include <dlfcn.h>
14227#endif
14228
14229#include <stdio.h>
14230
14231#ifdef RTLD_GLOBAL
14232# define LT_DLGLOBAL RTLD_GLOBAL
14233#else
14234# ifdef DL_GLOBAL
14235# define LT_DLGLOBAL DL_GLOBAL
14236# else
14237# define LT_DLGLOBAL 0
14238# endif
14239#endif
14240
14241/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14242 find out it does not work in some platform. */
14243#ifndef LT_DLLAZY_OR_NOW
14244# ifdef RTLD_LAZY
14245# define LT_DLLAZY_OR_NOW RTLD_LAZY
14246# else
14247# ifdef DL_LAZY
14248# define LT_DLLAZY_OR_NOW DL_LAZY
14249# else
14250# ifdef RTLD_NOW
14251# define LT_DLLAZY_OR_NOW RTLD_NOW
14252# else
14253# ifdef DL_NOW
14254# define LT_DLLAZY_OR_NOW DL_NOW
14255# else
14256# define LT_DLLAZY_OR_NOW 0
14257# endif
14258# endif
14259# endif
14260# endif
14261#endif
14262
14263#ifdef __cplusplus
14264extern "C" void exit (int);
14265#endif
14266
14267void fnord() { int i=42;}
14268int main ()
14269{
14270 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14271 int status = $lt_dlunknown;
14272
14273 if (self)
14274 {
14275 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14276 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14277 /* dlclose (self); */
14278 }
14279
14280 exit (status);
14281}
14282EOF
14283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14284 (eval $ac_link) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14288 (./conftest; exit; ) 2>/dev/null
14289 lt_status=$?
14290 case x$lt_status in
14291 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14292 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14293 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14294 esac
14295 else :
14296 # compilation failed
14297 lt_cv_dlopen_self_static=no
14298 fi
14299fi
14300rm -fr conftest*
14301
14302
14303fi
14304echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14305echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14306 fi
14307
14308 CPPFLAGS="$save_CPPFLAGS"
14309 LDFLAGS="$save_LDFLAGS"
14310 LIBS="$save_LIBS"
14311 ;;
14312 esac
14313
14314 case $lt_cv_dlopen_self in
14315 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14316 *) enable_dlopen_self=unknown ;;
14317 esac
14318
14319 case $lt_cv_dlopen_self_static in
14320 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14321 *) enable_dlopen_self_static=unknown ;;
14322 esac
14323fi
14324
14325
John Criswell47fdd832003-07-14 16:52:07 +000014326# Report which librarie types wil actually be built
14327echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14328echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14329echo "$as_me:$LINENO: result: $can_build_shared" >&5
14330echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014331
John Criswell47fdd832003-07-14 16:52:07 +000014332echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14333echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14334test "$can_build_shared" = "no" && enable_shared=no
14335
14336# On AIX, shared libraries and static libraries use the same namespace, and
14337# are all built from PIC.
14338case "$host_os" in
14339aix3*)
14340 test "$enable_shared" = yes && enable_static=no
14341 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014342 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000014343 postinstall_cmds='$RANLIB $lib'
14344 fi
14345 ;;
14346
Reid Spencer2706f8c2004-09-19 23:53:36 +000014347aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000014348 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14349 test "$enable_shared" = yes && enable_static=no
14350 fi
John Criswell7a73b802003-06-30 21:59:07 +000014351 ;;
John Criswell47fdd832003-07-14 16:52:07 +000014352esac
14353echo "$as_me:$LINENO: result: $enable_shared" >&5
14354echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +000014355
John Criswell47fdd832003-07-14 16:52:07 +000014356echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14357echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14358# Make sure either enable_shared or enable_static is yes.
14359test "$enable_shared" = yes || enable_static=yes
14360echo "$as_me:$LINENO: result: $enable_static" >&5
14361echo "${ECHO_T}$enable_static" >&6
14362
14363# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +000014364# libtool distribution, otherwise you forgot to ship ltmain.sh
14365# with your package, and you will get complaints that there are
14366# no rules to generate ltmain.sh.
14367if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +000014368 # See if we are running on zsh, and set the options which allow our commands through
14369 # without removal of \ escapes.
14370 if test -n "${ZSH_VERSION+set}" ; then
14371 setopt NO_GLOB_SUBST
14372 fi
John Criswell7a73b802003-06-30 21:59:07 +000014373 # Now quote all the things that may contain metacharacters while being
14374 # careful not to overquote the AC_SUBSTed values. We take copies of the
14375 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014376 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14377 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014378 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14379 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14380 deplibs_check_method reload_flag reload_cmds need_locks \
14381 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14382 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +000014383 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +000014384 old_postinstall_cmds old_postuninstall_cmds \
14385 compiler \
14386 CC \
14387 LD \
14388 lt_prog_compiler_wl \
14389 lt_prog_compiler_pic \
14390 lt_prog_compiler_static \
14391 lt_prog_compiler_no_builtin_flag \
14392 export_dynamic_flag_spec \
14393 thread_safe_flag_spec \
14394 whole_archive_flag_spec \
14395 enable_shared_with_static_runtimes \
14396 old_archive_cmds \
14397 old_archive_from_new_cmds \
14398 predep_objects \
14399 postdep_objects \
14400 predeps \
14401 postdeps \
14402 compiler_lib_search_path \
14403 archive_cmds \
14404 archive_expsym_cmds \
14405 postinstall_cmds \
14406 postuninstall_cmds \
14407 old_archive_from_expsyms_cmds \
14408 allow_undefined_flag \
14409 no_undefined_flag \
14410 export_symbols_cmds \
14411 hardcode_libdir_flag_spec \
14412 hardcode_libdir_flag_spec_ld \
14413 hardcode_libdir_separator \
14414 hardcode_automatic \
14415 module_cmds \
14416 module_expsym_cmds \
14417 lt_cv_prog_compiler_c_o \
14418 exclude_expsyms \
14419 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +000014420
14421 case $var in
John Criswell47fdd832003-07-14 16:52:07 +000014422 old_archive_cmds | \
14423 old_archive_from_new_cmds | \
14424 archive_cmds | \
14425 archive_expsym_cmds | \
14426 module_cmds | \
14427 module_expsym_cmds | \
14428 old_archive_from_expsyms_cmds | \
14429 export_symbols_cmds | \
14430 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +000014431 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +000014432 old_postinstall_cmds | old_postuninstall_cmds | \
14433 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +000014434 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014435 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 +000014436 ;;
14437 *)
14438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14439 ;;
14440 esac
14441 done
14442
John Criswell47fdd832003-07-14 16:52:07 +000014443 case $lt_echo in
14444 *'\$0 --fallback-echo"')
14445 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14446 ;;
14447 esac
14448
14449cfgfile="${ofile}T"
14450 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14451 $rm -f "$cfgfile"
14452 { echo "$as_me:$LINENO: creating $ofile" >&5
14453echo "$as_me: creating $ofile" >&6;}
14454
14455 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014456#! $SHELL
14457
John Criswell47fdd832003-07-14 16:52:07 +000014458# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +000014459# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14460# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14461#
John Criswell47fdd832003-07-14 16:52:07 +000014462# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14463# Free Software Foundation, Inc.
14464#
14465# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +000014466# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14467#
14468# This program is free software; you can redistribute it and/or modify
14469# it under the terms of the GNU General Public License as published by
14470# the Free Software Foundation; either version 2 of the License, or
14471# (at your option) any later version.
14472#
14473# This program is distributed in the hope that it will be useful, but
14474# WITHOUT ANY WARRANTY; without even the implied warranty of
14475# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14476# General Public License for more details.
14477#
14478# You should have received a copy of the GNU General Public License
14479# along with this program; if not, write to the Free Software
14480# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
14481#
14482# As a special exception to the GNU General Public License, if you
14483# distribute this file as part of a program that contains a
14484# configuration script generated by Autoconf, you may include it under
14485# the same distribution terms that you use for the rest of that program.
14486
John Criswell47fdd832003-07-14 16:52:07 +000014487# A sed program that does not truncate output.
14488SED=$lt_SED
14489
John Criswell7a73b802003-06-30 21:59:07 +000014490# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +000014491Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +000014492
14493# The HP-UX ksh and POSIX shell print the target directory to stdout
14494# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014495(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000014496
John Criswell47fdd832003-07-14 16:52:07 +000014497# The names of the tagged configurations supported by this script.
14498available_tags=
14499
John Criswell7a73b802003-06-30 21:59:07 +000014500# ### BEGIN LIBTOOL CONFIG
14501
14502# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14503
14504# Shell to use when invoking shell scripts.
14505SHELL=$lt_SHELL
14506
14507# Whether or not to build shared libraries.
14508build_libtool_libs=$enable_shared
14509
14510# Whether or not to build static libraries.
14511build_old_libs=$enable_static
14512
14513# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +000014514build_libtool_need_lc=$archive_cmds_need_lc
14515
14516# Whether or not to disallow shared libs when runtime libs are static
14517allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +000014518
14519# Whether or not to optimize for fast installation.
14520fast_install=$enable_fast_install
14521
14522# The host system.
14523host_alias=$host_alias
14524host=$host
14525
14526# An echo program that does not interpret backslashes.
14527echo=$lt_echo
14528
14529# The archiver.
14530AR=$lt_AR
14531AR_FLAGS=$lt_AR_FLAGS
14532
John Criswell47fdd832003-07-14 16:52:07 +000014533# A C compiler.
14534LTCC=$lt_LTCC
14535
14536# A language-specific compiler.
14537CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +000014538
14539# Is the compiler the GNU C compiler?
14540with_gcc=$GCC
14541
John Criswell47fdd832003-07-14 16:52:07 +000014542# An ERE matcher.
14543EGREP=$lt_EGREP
14544
John Criswell7a73b802003-06-30 21:59:07 +000014545# The linker used to build libraries.
14546LD=$lt_LD
14547
14548# Whether we need hard or soft links.
14549LN_S=$lt_LN_S
14550
14551# A BSD-compatible nm program.
14552NM=$lt_NM
14553
14554# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014555STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +000014556
14557# Used to examine libraries when file_magic_cmd begins "file"
14558MAGIC_CMD=$MAGIC_CMD
14559
14560# Used on cygwin: DLL creation program.
14561DLLTOOL="$DLLTOOL"
14562
14563# Used on cygwin: object dumper.
14564OBJDUMP="$OBJDUMP"
14565
14566# Used on cygwin: assembler.
14567AS="$AS"
14568
14569# The name of the directory that contains temporary libtool files.
14570objdir=$objdir
14571
14572# How to create reloadable object files.
14573reload_flag=$lt_reload_flag
14574reload_cmds=$lt_reload_cmds
14575
14576# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +000014577wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +000014578
14579# Object file suffix (normally "o").
14580objext="$ac_objext"
14581
14582# Old archive suffix (normally "a").
14583libext="$libext"
14584
John Criswell47fdd832003-07-14 16:52:07 +000014585# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000014586shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000014587
John Criswell7a73b802003-06-30 21:59:07 +000014588# Executable file suffix (normally "").
14589exeext="$exeext"
14590
14591# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +000014592pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +000014593pic_mode=$pic_mode
14594
John Criswell47fdd832003-07-14 16:52:07 +000014595# What is the maximum length of a command?
14596max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +000014597
John Criswell47fdd832003-07-14 16:52:07 +000014598# Does compiler simultaneously support -c and -o options?
14599compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +000014600
14601# Must we lock files when doing compilation ?
14602need_locks=$lt_need_locks
14603
14604# Do we need the lib prefix for modules?
14605need_lib_prefix=$need_lib_prefix
14606
14607# Do we need a version for libraries?
14608need_version=$need_version
14609
14610# Whether dlopen is supported.
14611dlopen_support=$enable_dlopen
14612
14613# Whether dlopen of programs is supported.
14614dlopen_self=$enable_dlopen_self
14615
14616# Whether dlopen of statically linked programs is supported.
14617dlopen_self_static=$enable_dlopen_self_static
14618
14619# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +000014620link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +000014621
14622# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +000014623no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +000014624
14625# Compiler flag to allow reflexive dlopens.
14626export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14627
14628# Compiler flag to generate shared objects directly from archives.
14629whole_archive_flag_spec=$lt_whole_archive_flag_spec
14630
14631# Compiler flag to generate thread-safe objects.
14632thread_safe_flag_spec=$lt_thread_safe_flag_spec
14633
14634# Library versioning type.
14635version_type=$version_type
14636
14637# Format of library name prefix.
14638libname_spec=$lt_libname_spec
14639
14640# List of archive names. First name is the real one, the rest are links.
14641# The last name is the one that the linker finds with -lNAME.
14642library_names_spec=$lt_library_names_spec
14643
14644# The coded name of the library, if different from the real name.
14645soname_spec=$lt_soname_spec
14646
14647# Commands used to build and install an old-style archive.
14648RANLIB=$lt_RANLIB
14649old_archive_cmds=$lt_old_archive_cmds
14650old_postinstall_cmds=$lt_old_postinstall_cmds
14651old_postuninstall_cmds=$lt_old_postuninstall_cmds
14652
14653# Create an old-style archive from a shared archive.
14654old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14655
14656# Create a temporary old-style archive to link instead of a shared archive.
14657old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14658
14659# Commands used to build and install a shared archive.
14660archive_cmds=$lt_archive_cmds
14661archive_expsym_cmds=$lt_archive_expsym_cmds
14662postinstall_cmds=$lt_postinstall_cmds
14663postuninstall_cmds=$lt_postuninstall_cmds
14664
John Criswell47fdd832003-07-14 16:52:07 +000014665# Commands used to build a loadable module (assumed same as above if empty)
14666module_cmds=$lt_module_cmds
14667module_expsym_cmds=$lt_module_expsym_cmds
14668
John Criswell7a73b802003-06-30 21:59:07 +000014669# Commands to strip libraries.
14670old_striplib=$lt_old_striplib
14671striplib=$lt_striplib
14672
John Criswell47fdd832003-07-14 16:52:07 +000014673# Dependencies to place before the objects being linked to create a
14674# shared library.
14675predep_objects=$lt_predep_objects
14676
14677# Dependencies to place after the objects being linked to create a
14678# shared library.
14679postdep_objects=$lt_postdep_objects
14680
14681# Dependencies to place before the objects being linked to create a
14682# shared library.
14683predeps=$lt_predeps
14684
14685# Dependencies to place after the objects being linked to create a
14686# shared library.
14687postdeps=$lt_postdeps
14688
14689# The library search path used internally by the compiler when linking
14690# a shared library.
14691compiler_lib_search_path=$lt_compiler_lib_search_path
14692
John Criswell7a73b802003-06-30 21:59:07 +000014693# Method to check whether dependent libraries are shared objects.
14694deplibs_check_method=$lt_deplibs_check_method
14695
14696# Command to use when deplibs_check_method == file_magic.
14697file_magic_cmd=$lt_file_magic_cmd
14698
14699# Flag that allows shared libraries with undefined symbols to be built.
14700allow_undefined_flag=$lt_allow_undefined_flag
14701
14702# Flag that forces no undefined symbols.
14703no_undefined_flag=$lt_no_undefined_flag
14704
14705# Commands used to finish a libtool library installation in a directory.
14706finish_cmds=$lt_finish_cmds
14707
14708# Same as above, but a single script fragment to be evaled but not shown.
14709finish_eval=$lt_finish_eval
14710
14711# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +000014712global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +000014713
14714# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +000014715global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +000014716
14717# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +000014718global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +000014719
14720# This is the shared library runtime path variable.
14721runpath_var=$runpath_var
14722
14723# This is the shared library path variable.
14724shlibpath_var=$shlibpath_var
14725
14726# Is shlibpath searched before the hard-coded library search path?
14727shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14728
14729# How to hardcode a shared library path into an executable.
14730hardcode_action=$hardcode_action
14731
14732# Whether we should hardcode library paths into libraries.
14733hardcode_into_libs=$hardcode_into_libs
14734
14735# Flag to hardcode \$libdir into a binary during linking.
14736# This must work even if \$libdir does not exist.
14737hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14738
John Criswell47fdd832003-07-14 16:52:07 +000014739# If ld is used when linking, flag to hardcode \$libdir into
14740# a binary during linking. This must work even if \$libdir does
14741# not exist.
14742hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14743
John Criswell7a73b802003-06-30 21:59:07 +000014744# Whether we need a single -rpath flag with a separated argument.
14745hardcode_libdir_separator=$lt_hardcode_libdir_separator
14746
John Criswell47fdd832003-07-14 16:52:07 +000014747# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +000014748# resulting binary.
14749hardcode_direct=$hardcode_direct
14750
14751# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14752# resulting binary.
14753hardcode_minus_L=$hardcode_minus_L
14754
14755# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14756# the resulting binary.
14757hardcode_shlibpath_var=$hardcode_shlibpath_var
14758
John Criswell47fdd832003-07-14 16:52:07 +000014759# Set to yes if building a shared library automatically hardcodes DIR into the library
14760# and all subsequent libraries and executables linked against it.
14761hardcode_automatic=$hardcode_automatic
14762
John Criswell7a73b802003-06-30 21:59:07 +000014763# Variables whose values should be saved in libtool wrapper scripts and
14764# restored at relink time.
14765variables_saved_for_relink="$variables_saved_for_relink"
14766
14767# Whether libtool must link a program against all its dependency libraries.
14768link_all_deplibs=$link_all_deplibs
14769
14770# Compile-time system search path for libraries
14771sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14772
14773# Run-time system search path for libraries
14774sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14775
14776# Fix the shell variable \$srcfile for the compiler.
14777fix_srcfile_path="$fix_srcfile_path"
14778
14779# Set to yes if exported symbols are required.
14780always_export_symbols=$always_export_symbols
14781
14782# The commands to list exported symbols.
14783export_symbols_cmds=$lt_export_symbols_cmds
14784
14785# The commands to extract the exported symbol list from a shared archive.
14786extract_expsyms_cmds=$lt_extract_expsyms_cmds
14787
14788# Symbols that should not be listed in the preloaded symbols.
14789exclude_expsyms=$lt_exclude_expsyms
14790
14791# Symbols that must always be exported.
14792include_expsyms=$lt_include_expsyms
14793
14794# ### END LIBTOOL CONFIG
14795
14796__EOF__
14797
John Criswell47fdd832003-07-14 16:52:07 +000014798
John Criswell7a73b802003-06-30 21:59:07 +000014799 case $host_os in
14800 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +000014801 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +000014802
14803# AIX sometimes has problems with the GCC collect2 program. For some
14804# reason, if we set the COLLECT_NAMES environment variable, the problems
14805# vanish in a puff of smoke.
14806if test "X${COLLECT_NAMES+set}" != Xset; then
14807 COLLECT_NAMES=
14808 export COLLECT_NAMES
14809fi
14810EOF
14811 ;;
14812 esac
14813
John Criswell7a73b802003-06-30 21:59:07 +000014814 # We use sed instead of cat because bash on DJGPP gets confused if
14815 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14816 # text mode, it properly converts lines to CR/LF. This bash problem
14817 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +000014818 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +000014819
John Criswell47fdd832003-07-14 16:52:07 +000014820 mv -f "$cfgfile" "$ofile" || \
14821 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +000014822 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +000014823
14824else
14825 # If there is no Makefile yet, we rely on a make rule to execute
14826 # `config.status --recheck' to rerun these tests and create the
14827 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014828 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14829 if test -f "$ltmain_in"; then
14830 test -f Makefile && make "$ltmain"
14831 fi
John Criswell7a73b802003-06-30 21:59:07 +000014832fi
John Criswell7a73b802003-06-30 21:59:07 +000014833
14834
John Criswell47fdd832003-07-14 16:52:07 +000014835ac_ext=c
14836ac_cpp='$CPP $CPPFLAGS'
14837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14839ac_compiler_gnu=$ac_cv_c_compiler_gnu
14840
14841CC="$lt_save_CC"
14842
14843
14844# Check whether --with-tags or --without-tags was given.
14845if test "${with_tags+set}" = set; then
14846 withval="$with_tags"
14847 tagnames="$withval"
14848fi;
14849
14850if test -f "$ltmain" && test -n "$tagnames"; then
14851 if test ! -f "${ofile}"; then
14852 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14853echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14854 fi
14855
14856 if test -z "$LTCC"; then
14857 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14858 if test -z "$LTCC"; then
14859 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14860echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14861 else
14862 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14863echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14864 fi
14865 fi
14866
14867 # Extract list of available tagged configurations in $ofile.
14868 # Note that this assumes the entire list is on one line.
14869 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14870
14871 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14872 for tagname in $tagnames; do
14873 IFS="$lt_save_ifs"
14874 # Check whether tagname contains only valid characters
14875 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14876 "") ;;
14877 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14878echo "$as_me: error: invalid tag name: $tagname" >&2;}
14879 { (exit 1); exit 1; }; }
14880 ;;
14881 esac
14882
14883 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
14884 then
14885 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
14886echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
14887 { (exit 1); exit 1; }; }
14888 fi
14889
14890 # Update the list of available tags.
14891 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000014892 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +000014893
14894 case $tagname in
14895 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014896 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14897 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14898 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +000014899 ac_ext=cc
14900ac_cpp='$CXXCPP $CPPFLAGS'
14901ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14902ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14903ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14904
14905
14906
14907
14908archive_cmds_need_lc_CXX=no
14909allow_undefined_flag_CXX=
14910always_export_symbols_CXX=no
14911archive_expsym_cmds_CXX=
14912export_dynamic_flag_spec_CXX=
14913hardcode_direct_CXX=no
14914hardcode_libdir_flag_spec_CXX=
14915hardcode_libdir_flag_spec_ld_CXX=
14916hardcode_libdir_separator_CXX=
14917hardcode_minus_L_CXX=no
14918hardcode_automatic_CXX=no
14919module_cmds_CXX=
14920module_expsym_cmds_CXX=
14921link_all_deplibs_CXX=unknown
14922old_archive_cmds_CXX=$old_archive_cmds
14923no_undefined_flag_CXX=
14924whole_archive_flag_spec_CXX=
14925enable_shared_with_static_runtimes_CXX=no
14926
14927# Dependencies to place before and after the object being linked:
14928predep_objects_CXX=
14929postdep_objects_CXX=
14930predeps_CXX=
14931postdeps_CXX=
14932compiler_lib_search_path_CXX=
14933
14934# Source file extension for C++ test sources.
14935ac_ext=cc
14936
14937# Object file extension for compiled C++ test sources.
14938objext=o
14939objext_CXX=$objext
14940
14941# Code to be used in simple compile tests
14942lt_simple_compile_test_code="int some_variable = 0;\n"
14943
14944# Code to be used in simple link tests
14945lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
14946
14947# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14948
14949# If no C compiler was specified, use CC.
14950LTCC=${LTCC-"$CC"}
14951
14952# Allow CC to be a program name with arguments.
14953compiler=$CC
14954
14955
14956# Allow CC to be a program name with arguments.
14957lt_save_CC=$CC
14958lt_save_LD=$LD
14959lt_save_GCC=$GCC
14960GCC=$GXX
14961lt_save_with_gnu_ld=$with_gnu_ld
14962lt_save_path_LD=$lt_cv_path_LD
14963if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14964 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14965else
14966 unset lt_cv_prog_gnu_ld
14967fi
14968if test -n "${lt_cv_path_LDCXX+set}"; then
14969 lt_cv_path_LD=$lt_cv_path_LDCXX
14970else
14971 unset lt_cv_path_LD
14972fi
14973test -z "${LDCXX+set}" || LD=$LDCXX
14974CC=${CXX-"c++"}
14975compiler=$CC
14976compiler_CXX=$CC
14977cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
14978
14979# We don't want -fno-exception wen compiling C++ code, so set the
14980# no_builtin_flag separately
14981if test "$GXX" = yes; then
14982 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14983else
14984 lt_prog_compiler_no_builtin_flag_CXX=
14985fi
14986
14987if test "$GXX" = yes; then
14988 # Set up default GNU C++ configuration
14989
14990
14991# Check whether --with-gnu-ld or --without-gnu-ld was given.
14992if test "${with_gnu_ld+set}" = set; then
14993 withval="$with_gnu_ld"
14994 test "$withval" = no || with_gnu_ld=yes
14995else
14996 with_gnu_ld=no
14997fi;
14998ac_prog=ld
14999if test "$GCC" = yes; then
15000 # Check if gcc -print-prog-name=ld gives a path.
15001 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15002echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15003 case $host in
15004 *-*-mingw*)
15005 # gcc leaves a trailing carriage return which upsets mingw
15006 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15007 *)
15008 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15009 esac
15010 case $ac_prog in
15011 # Accept absolute paths.
15012 [\\/]* | ?:[\\/]*)
15013 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +000015014 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +000015015 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15016 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15017 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15018 done
15019 test -z "$LD" && LD="$ac_prog"
15020 ;;
15021 "")
15022 # If it fails, then pretend we aren't using GCC.
15023 ac_prog=ld
15024 ;;
15025 *)
15026 # If it is relative, then search for the first ld in PATH.
15027 with_gnu_ld=unknown
15028 ;;
15029 esac
15030elif test "$with_gnu_ld" = yes; then
15031 echo "$as_me:$LINENO: checking for GNU ld" >&5
15032echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15033else
15034 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15035echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15036fi
15037if test "${lt_cv_path_LD+set}" = set; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15039else
15040 if test -z "$LD"; then
15041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15042 for ac_dir in $PATH; do
15043 IFS="$lt_save_ifs"
15044 test -z "$ac_dir" && ac_dir=.
15045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15046 lt_cv_path_LD="$ac_dir/$ac_prog"
15047 # Check to see if the program is GNU ld. I'd rather use --version,
15048 # but apparently some GNU ld's only accept -v.
15049 # Break only if it was the GNU/non-GNU ld that we prefer.
15050 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15051 *GNU* | *'with BFD'*)
15052 test "$with_gnu_ld" != no && break
15053 ;;
15054 *)
15055 test "$with_gnu_ld" != yes && break
15056 ;;
15057 esac
15058 fi
15059 done
15060 IFS="$lt_save_ifs"
15061else
15062 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15063fi
15064fi
15065
15066LD="$lt_cv_path_LD"
15067if test -n "$LD"; then
15068 echo "$as_me:$LINENO: result: $LD" >&5
15069echo "${ECHO_T}$LD" >&6
15070else
15071 echo "$as_me:$LINENO: result: no" >&5
15072echo "${ECHO_T}no" >&6
15073fi
15074test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15075echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15076 { (exit 1); exit 1; }; }
15077echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15078echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15079if test "${lt_cv_prog_gnu_ld+set}" = set; then
15080 echo $ECHO_N "(cached) $ECHO_C" >&6
15081else
15082 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015083case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +000015084*GNU* | *'with BFD'*)
15085 lt_cv_prog_gnu_ld=yes
15086 ;;
15087*)
15088 lt_cv_prog_gnu_ld=no
15089 ;;
15090esac
15091fi
15092echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15093echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15094with_gnu_ld=$lt_cv_prog_gnu_ld
15095
15096
15097
15098 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15099 # archiving commands below assume that GNU ld is being used.
15100 if test "$with_gnu_ld" = yes; then
15101 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15102 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'
15103
15104 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15105 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15106
15107 # If archive_cmds runs LD, not CC, wlarc should be empty
15108 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15109 # investigate it a little bit more. (MM)
15110 wlarc='${wl}'
15111
15112 # ancient GNU ld didn't support --whole-archive et. al.
15113 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15114 grep 'no-whole-archive' > /dev/null; then
15115 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15116 else
15117 whole_archive_flag_spec_CXX=
15118 fi
15119 else
15120 with_gnu_ld=no
15121 wlarc=
15122
15123 # A generic and very simple default shared library creation
15124 # command for GNU C++ for the case where it uses the native
15125 # linker, instead of GNU ld. If possible, this setting should
15126 # overridden to take advantage of the native linker features on
15127 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015128 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015129 fi
15130
15131 # Commands to make compiler produce verbose output that lists
15132 # what "hidden" libraries, object files and flags are used when
15133 # linking a shared library.
15134 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15135
15136else
15137 GXX=no
15138 with_gnu_ld=no
15139 wlarc=
15140fi
15141
15142# PORTME: fill in a description of your system's C++ link characteristics
15143echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15144echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15145ld_shlibs_CXX=yes
15146case $host_os in
15147 aix3*)
15148 # FIXME: insert proper C++ library support
15149 ld_shlibs_CXX=no
15150 ;;
15151 aix4* | aix5*)
15152 if test "$host_cpu" = ia64; then
15153 # On IA64, the linker does run time linking by default, so we don't
15154 # have to do anything special.
15155 aix_use_runtimelinking=no
15156 exp_sym_flag='-Bexport'
15157 no_entry_flag=""
15158 else
15159 aix_use_runtimelinking=no
15160
15161 # Test if we are trying to use run time linking or normal
15162 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15163 # need to do runtime linking.
15164 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15165 for ld_flag in $LDFLAGS; do
15166 case $ld_flag in
15167 *-brtl*)
15168 aix_use_runtimelinking=yes
15169 break
15170 ;;
15171 esac
15172 done
15173 esac
15174
15175 exp_sym_flag='-bexport'
15176 no_entry_flag='-bnoentry'
15177 fi
15178
15179 # When large executables or shared objects are built, AIX ld can
15180 # have problems creating the table of contents. If linking a library
15181 # or program results in "error TOC overflow" add -mminimal-toc to
15182 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15183 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15184
15185 archive_cmds_CXX=''
15186 hardcode_direct_CXX=yes
15187 hardcode_libdir_separator_CXX=':'
15188 link_all_deplibs_CXX=yes
15189
15190 if test "$GXX" = yes; then
15191 case $host_os in aix4.012|aix4.012.*)
15192 # We only want to do this on AIX 4.2 and lower, the check
15193 # below for broken collect2 doesn't work under 4.3+
15194 collect2name=`${CC} -print-prog-name=collect2`
15195 if test -f "$collect2name" && \
15196 strings "$collect2name" | grep resolve_lib_name >/dev/null
15197 then
15198 # We have reworked collect2
15199 hardcode_direct_CXX=yes
15200 else
15201 # We have old collect2
15202 hardcode_direct_CXX=unsupported
15203 # It fails to find uninstalled libraries when the uninstalled
15204 # path is not listed in the libpath. Setting hardcode_minus_L
15205 # to unsupported forces relinking
15206 hardcode_minus_L_CXX=yes
15207 hardcode_libdir_flag_spec_CXX='-L$libdir'
15208 hardcode_libdir_separator_CXX=
15209 fi
15210 esac
15211 shared_flag='-shared'
15212 else
15213 # not using gcc
15214 if test "$host_cpu" = ia64; then
15215 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15216 # chokes on -Wl,-G. The following line is correct:
15217 shared_flag='-G'
15218 else
15219 if test "$aix_use_runtimelinking" = yes; then
15220 shared_flag='${wl}-G'
15221 else
15222 shared_flag='${wl}-bM:SRE'
15223 fi
15224 fi
15225 fi
15226
15227 # It seems that -bexpall does not export symbols beginning with
15228 # underscore (_), so it is better to generate a list of symbols to export.
15229 always_export_symbols_CXX=yes
15230 if test "$aix_use_runtimelinking" = yes; then
15231 # Warning - without using the other runtime loading flags (-brtl),
15232 # -berok will link without error, but may produce a broken library.
15233 allow_undefined_flag_CXX='-berok'
15234 # Determine the default libpath from the value encoded in an empty executable.
15235 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015236/* confdefs.h. */
15237_ACEOF
15238cat confdefs.h >>conftest.$ac_ext
15239cat >>conftest.$ac_ext <<_ACEOF
15240/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015241
John Criswell47fdd832003-07-14 16:52:07 +000015242int
15243main ()
15244{
15245
15246 ;
15247 return 0;
15248}
15249_ACEOF
15250rm -f conftest.$ac_objext conftest$ac_exeext
15251if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015252 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015253 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015254 grep -v '^ *+' conftest.er1 >conftest.err
15255 rm -f conftest.er1
15256 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15258 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015259 { ac_try='test -z "$ac_cxx_werror_flag"
15260 || test ! -s conftest.err'
15261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15262 (eval $ac_try) 2>&5
15263 ac_status=$?
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; } &&
15266 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15268 (eval $ac_try) 2>&5
15269 ac_status=$?
15270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15271 (exit $ac_status); }; }; then
15272
15273aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15274}'`
15275# Check for a 64-bit object if we didn't find anything.
15276if 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; }
15277}'`; fi
15278else
15279 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015280sed 's/^/| /' conftest.$ac_ext >&5
15281
John Criswell47fdd832003-07-14 16:52:07 +000015282fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015283rm -f conftest.err conftest.$ac_objext \
15284 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015285if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15286
15287 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15288
15289 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"
15290 else
15291 if test "$host_cpu" = ia64; then
15292 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15293 allow_undefined_flag_CXX="-z nodefs"
15294 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"
15295 else
15296 # Determine the default libpath from the value encoded in an empty executable.
15297 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015298/* confdefs.h. */
15299_ACEOF
15300cat confdefs.h >>conftest.$ac_ext
15301cat >>conftest.$ac_ext <<_ACEOF
15302/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015303
John Criswell47fdd832003-07-14 16:52:07 +000015304int
15305main ()
15306{
15307
15308 ;
15309 return 0;
15310}
15311_ACEOF
15312rm -f conftest.$ac_objext conftest$ac_exeext
15313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000015314 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015315 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000015316 grep -v '^ *+' conftest.er1 >conftest.err
15317 rm -f conftest.er1
15318 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15320 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000015321 { ac_try='test -z "$ac_cxx_werror_flag"
15322 || test ! -s conftest.err'
15323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15324 (eval $ac_try) 2>&5
15325 ac_status=$?
15326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15327 (exit $ac_status); }; } &&
15328 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15330 (eval $ac_try) 2>&5
15331 ac_status=$?
15332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333 (exit $ac_status); }; }; then
15334
15335aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15336}'`
15337# Check for a 64-bit object if we didn't find anything.
15338if 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; }
15339}'`; fi
15340else
15341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015342sed 's/^/| /' conftest.$ac_ext >&5
15343
John Criswell47fdd832003-07-14 16:52:07 +000015344fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015345rm -f conftest.err conftest.$ac_objext \
15346 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015347if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15348
15349 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15350 # Warning - without using the other run time loading flags,
15351 # -berok will link without error, but may produce a broken library.
15352 no_undefined_flag_CXX=' ${wl}-bernotok'
15353 allow_undefined_flag_CXX=' ${wl}-berok'
15354 # -bexpall does not export symbols beginning with underscore (_)
15355 always_export_symbols_CXX=yes
15356 # Exported symbols can be pulled into shared objects from archives
15357 whole_archive_flag_spec_CXX=' '
15358 archive_cmds_need_lc_CXX=yes
15359 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000015360 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 +000015361 fi
15362 fi
15363 ;;
15364 chorus*)
15365 case $cc_basename in
15366 *)
15367 # FIXME: insert proper C++ library support
15368 ld_shlibs_CXX=no
15369 ;;
15370 esac
15371 ;;
15372
Reid Spencer2706f8c2004-09-19 23:53:36 +000015373
John Criswell47fdd832003-07-14 16:52:07 +000015374 cygwin* | mingw* | pw32*)
15375 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15376 # as there is no search path for DLLs.
15377 hardcode_libdir_flag_spec_CXX='-L$libdir'
15378 allow_undefined_flag_CXX=unsupported
15379 always_export_symbols_CXX=no
15380 enable_shared_with_static_runtimes_CXX=yes
15381
15382 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15383 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'
15384 # If the export-symbols file already is a .def file (1st line
15385 # is EXPORTS), use it as is; otherwise, prepend...
15386 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15387 cp $export_symbols $output_objdir/$soname.def;
15388 else
15389 echo EXPORTS > $output_objdir/$soname.def;
15390 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015391 fi~
15392 $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 +000015393 else
15394 ld_shlibs_CXX=no
15395 fi
15396 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015397 darwin* | rhapsody*)
15398 case "$host_os" in
15399 rhapsody* | darwin1.[012])
15400 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
15401 ;;
15402 *) # Darwin 1.3 on
15403 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15404 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15405 else
15406 case ${MACOSX_DEPLOYMENT_TARGET} in
15407 10.[012])
15408 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15409 ;;
15410 10.*)
15411 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
15412 ;;
15413 esac
15414 fi
15415 ;;
15416 esac
15417 archive_cmds_need_lc_CXX=no
15418 hardcode_direct_CXX=no
15419 hardcode_automatic_CXX=yes
15420 hardcode_shlibpath_var_CXX=unsupported
15421 whole_archive_flag_spec_CXX=''
15422 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +000015423
Reid Spencer2706f8c2004-09-19 23:53:36 +000015424 if test "$GXX" = yes ; then
15425 lt_int_apple_cc_single_mod=no
15426 output_verbose_link_cmd='echo'
15427 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
15428 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015429 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015430 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015431 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 +000015432 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015433 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 +000015434 fi
15435 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15436 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15437 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015438 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 +000015439 else
Reid Spencer177dbe22004-10-13 01:01:03 +000015440 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 +000015441 fi
Reid Spencer177dbe22004-10-13 01:01:03 +000015442 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 +000015443 else
15444 case "$cc_basename" in
15445 xlc*)
15446 output_verbose_link_cmd='echo'
15447 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'
15448 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15449 # 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 +000015450 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}'
15451 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 +000015452 ;;
15453 *)
15454 ld_shlibs_CXX=no
15455 ;;
15456 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015457 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000015458 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015459
15460 dgux*)
15461 case $cc_basename in
15462 ec++)
15463 # FIXME: insert proper C++ library support
15464 ld_shlibs_CXX=no
15465 ;;
15466 ghcx)
15467 # Green Hills C++ Compiler
15468 # FIXME: insert proper C++ library support
15469 ld_shlibs_CXX=no
15470 ;;
15471 *)
15472 # FIXME: insert proper C++ library support
15473 ld_shlibs_CXX=no
15474 ;;
15475 esac
15476 ;;
15477 freebsd12*)
15478 # C++ shared libraries reported to be fairly broken before switch to ELF
15479 ld_shlibs_CXX=no
15480 ;;
15481 freebsd-elf*)
15482 archive_cmds_need_lc_CXX=no
15483 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015484 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000015485 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15486 # conventions
15487 ld_shlibs_CXX=yes
15488 ;;
15489 gnu*)
15490 ;;
15491 hpux9*)
15492 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15493 hardcode_libdir_separator_CXX=:
15494 export_dynamic_flag_spec_CXX='${wl}-E'
15495 hardcode_direct_CXX=yes
15496 hardcode_minus_L_CXX=yes # Not in the search PATH,
15497 # but as the default
15498 # location of the library.
15499
15500 case $cc_basename in
15501 CC)
15502 # FIXME: insert proper C++ library support
15503 ld_shlibs_CXX=no
15504 ;;
15505 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +000015506 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 +000015507 # Commands to make compiler produce verbose output that lists
15508 # what "hidden" libraries, object files and flags are used when
15509 # linking a shared library.
15510 #
15511 # There doesn't appear to be a way to prevent this compiler from
15512 # explicitly linking system object files so we need to strip them
15513 # from the output so that they don't get included in the library
15514 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015515 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 +000015516 ;;
15517 *)
15518 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015519 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 +000015520 else
15521 # FIXME: insert proper C++ library support
15522 ld_shlibs_CXX=no
15523 fi
15524 ;;
15525 esac
15526 ;;
15527 hpux10*|hpux11*)
15528 if test $with_gnu_ld = no; then
15529 case "$host_cpu" in
15530 hppa*64*)
15531 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15532 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15533 hardcode_libdir_separator_CXX=:
15534 ;;
15535 ia64*)
15536 hardcode_libdir_flag_spec_CXX='-L$libdir'
15537 ;;
15538 *)
15539 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15540 hardcode_libdir_separator_CXX=:
15541 export_dynamic_flag_spec_CXX='${wl}-E'
15542 ;;
15543 esac
15544 fi
15545 case "$host_cpu" in
15546 hppa*64*)
15547 hardcode_direct_CXX=no
15548 hardcode_shlibpath_var_CXX=no
15549 ;;
15550 ia64*)
15551 hardcode_direct_CXX=no
15552 hardcode_shlibpath_var_CXX=no
15553 hardcode_minus_L_CXX=yes # Not in the search PATH,
15554 # but as the default
15555 # location of the library.
15556 ;;
15557 *)
15558 hardcode_direct_CXX=yes
15559 hardcode_minus_L_CXX=yes # Not in the search PATH,
15560 # but as the default
15561 # location of the library.
15562 ;;
15563 esac
15564
15565 case $cc_basename in
15566 CC)
15567 # FIXME: insert proper C++ library support
15568 ld_shlibs_CXX=no
15569 ;;
15570 aCC)
15571 case "$host_cpu" in
15572 hppa*64*|ia64*)
15573 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15574 ;;
15575 *)
15576 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15577 ;;
15578 esac
15579 # Commands to make compiler produce verbose output that lists
15580 # what "hidden" libraries, object files and flags are used when
15581 # linking a shared library.
15582 #
15583 # There doesn't appear to be a way to prevent this compiler from
15584 # explicitly linking system object files so we need to strip them
15585 # from the output so that they don't get included in the library
15586 # dependencies.
15587 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'
15588 ;;
15589 *)
15590 if test "$GXX" = yes; then
15591 if test $with_gnu_ld = no; then
15592 case "$host_cpu" in
15593 ia64*|hppa*64*)
15594 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15595 ;;
15596 *)
15597 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'
15598 ;;
15599 esac
15600 fi
15601 else
15602 # FIXME: insert proper C++ library support
15603 ld_shlibs_CXX=no
15604 fi
15605 ;;
15606 esac
15607 ;;
15608 irix5* | irix6*)
15609 case $cc_basename in
15610 CC)
15611 # SGI C++
15612 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'
15613
15614 # Archives containing C++ object files must be created using
15615 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15616 # necessary to make sure instantiated templates are included
15617 # in the archive.
15618 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15619 ;;
15620 *)
15621 if test "$GXX" = yes; then
15622 if test "$with_gnu_ld" = no; then
15623 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'
15624 else
15625 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'
15626 fi
15627 fi
15628 link_all_deplibs_CXX=yes
15629 ;;
15630 esac
15631 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15632 hardcode_libdir_separator_CXX=:
15633 ;;
15634 linux*)
15635 case $cc_basename in
15636 KCC)
15637 # Kuck and Associates, Inc. (KAI) C++ Compiler
15638
15639 # KCC will only create a shared library if the output file
15640 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15641 # to its proper name (with version) after linking.
15642 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'
15643 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'
15644 # Commands to make compiler produce verbose output that lists
15645 # what "hidden" libraries, object files and flags are used when
15646 # linking a shared library.
15647 #
15648 # There doesn't appear to be a way to prevent this compiler from
15649 # explicitly linking system object files so we need to strip them
15650 # from the output so that they don't get included in the library
15651 # dependencies.
15652 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'
15653
15654 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15655 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15656
15657 # Archives containing C++ object files must be created using
15658 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15659 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15660 ;;
15661 icpc)
15662 # Intel C++
15663 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015664 # version 8.0 and above of icpc choke on multiply defined symbols
15665 # if we add $predep_objects and $postdep_objects, however 7.1 and
15666 # earlier do not add the objects themselves.
15667 case `$CC -V 2>&1` in
15668 *"Version 7."*)
15669 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15670 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'
15671 ;;
15672 *) # Version 8.0 or newer
15673 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15674 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15675 ;;
15676 esac
John Criswell47fdd832003-07-14 16:52:07 +000015677 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000015678 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15679 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15680 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15681 ;;
15682 cxx)
15683 # Compaq C++
15684 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15685 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'
15686
15687 runpath_var=LD_RUN_PATH
15688 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15689 hardcode_libdir_separator_CXX=:
15690
15691 # Commands to make compiler produce verbose output that lists
15692 # what "hidden" libraries, object files and flags are used when
15693 # linking a shared library.
15694 #
15695 # There doesn't appear to be a way to prevent this compiler from
15696 # explicitly linking system object files so we need to strip them
15697 # from the output so that they don't get included in the library
15698 # dependencies.
15699 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'
15700 ;;
15701 esac
15702 ;;
15703 lynxos*)
15704 # FIXME: insert proper C++ library support
15705 ld_shlibs_CXX=no
15706 ;;
15707 m88k*)
15708 # FIXME: insert proper C++ library support
15709 ld_shlibs_CXX=no
15710 ;;
15711 mvs*)
15712 case $cc_basename in
15713 cxx)
15714 # FIXME: insert proper C++ library support
15715 ld_shlibs_CXX=no
15716 ;;
15717 *)
15718 # FIXME: insert proper C++ library support
15719 ld_shlibs_CXX=no
15720 ;;
15721 esac
15722 ;;
15723 netbsd*)
15724 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15725 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15726 wlarc=
15727 hardcode_libdir_flag_spec_CXX='-R$libdir'
15728 hardcode_direct_CXX=yes
15729 hardcode_shlibpath_var_CXX=no
15730 fi
15731 # Workaround some broken pre-1.5 toolchains
15732 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15733 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015734 openbsd2*)
15735 # C++ shared libraries are fairly broken
15736 ld_shlibs_CXX=no
15737 ;;
15738 openbsd*)
15739 hardcode_direct_CXX=yes
15740 hardcode_shlibpath_var_CXX=no
15741 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15742 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15743 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15744 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15745 export_dynamic_flag_spec_CXX='${wl}-E'
15746 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15747 fi
15748 output_verbose_link_cmd='echo'
15749 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015750 osf3*)
15751 case $cc_basename in
15752 KCC)
15753 # Kuck and Associates, Inc. (KAI) C++ Compiler
15754
15755 # KCC will only create a shared library if the output file
15756 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15757 # to its proper name (with version) after linking.
15758 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'
15759
15760 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15761 hardcode_libdir_separator_CXX=:
15762
15763 # Archives containing C++ object files must be created using
15764 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15765 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15766
15767 ;;
15768 RCC)
15769 # Rational C++ 2.4.1
15770 # FIXME: insert proper C++ library support
15771 ld_shlibs_CXX=no
15772 ;;
15773 cxx)
15774 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15775 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'
15776
15777 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15778 hardcode_libdir_separator_CXX=:
15779
15780 # Commands to make compiler produce verbose output that lists
15781 # what "hidden" libraries, object files and flags are used when
15782 # linking a shared library.
15783 #
15784 # There doesn't appear to be a way to prevent this compiler from
15785 # explicitly linking system object files so we need to strip them
15786 # from the output so that they don't get included in the library
15787 # dependencies.
15788 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'
15789 ;;
15790 *)
15791 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15792 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15793 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'
15794
15795 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15796 hardcode_libdir_separator_CXX=:
15797
15798 # Commands to make compiler produce verbose output that lists
15799 # what "hidden" libraries, object files and flags are used when
15800 # linking a shared library.
15801 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15802
15803 else
15804 # FIXME: insert proper C++ library support
15805 ld_shlibs_CXX=no
15806 fi
15807 ;;
15808 esac
15809 ;;
15810 osf4* | osf5*)
15811 case $cc_basename in
15812 KCC)
15813 # Kuck and Associates, Inc. (KAI) C++ Compiler
15814
15815 # KCC will only create a shared library if the output file
15816 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15817 # to its proper name (with version) after linking.
15818 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'
15819
15820 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15821 hardcode_libdir_separator_CXX=:
15822
15823 # Archives containing C++ object files must be created using
15824 # the KAI C++ compiler.
15825 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15826 ;;
15827 RCC)
15828 # Rational C++ 2.4.1
15829 # FIXME: insert proper C++ library support
15830 ld_shlibs_CXX=no
15831 ;;
15832 cxx)
15833 allow_undefined_flag_CXX=' -expect_unresolved \*'
15834 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 +000015835 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15836 echo "-hidden">> $lib.exp~
15837 $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~
15838 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015839
15840 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15841 hardcode_libdir_separator_CXX=:
15842
15843 # Commands to make compiler produce verbose output that lists
15844 # what "hidden" libraries, object files and flags are used when
15845 # linking a shared library.
15846 #
15847 # There doesn't appear to be a way to prevent this compiler from
15848 # explicitly linking system object files so we need to strip them
15849 # from the output so that they don't get included in the library
15850 # dependencies.
15851 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'
15852 ;;
15853 *)
15854 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15855 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15856 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'
15857
15858 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15859 hardcode_libdir_separator_CXX=:
15860
15861 # Commands to make compiler produce verbose output that lists
15862 # what "hidden" libraries, object files and flags are used when
15863 # linking a shared library.
15864 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15865
15866 else
15867 # FIXME: insert proper C++ library support
15868 ld_shlibs_CXX=no
15869 fi
15870 ;;
15871 esac
15872 ;;
15873 psos*)
15874 # FIXME: insert proper C++ library support
15875 ld_shlibs_CXX=no
15876 ;;
15877 sco*)
15878 archive_cmds_need_lc_CXX=no
15879 case $cc_basename in
15880 CC)
15881 # FIXME: insert proper C++ library support
15882 ld_shlibs_CXX=no
15883 ;;
15884 *)
15885 # FIXME: insert proper C++ library support
15886 ld_shlibs_CXX=no
15887 ;;
15888 esac
15889 ;;
15890 sunos4*)
15891 case $cc_basename in
15892 CC)
15893 # Sun C++ 4.x
15894 # FIXME: insert proper C++ library support
15895 ld_shlibs_CXX=no
15896 ;;
15897 lcc)
15898 # Lucid
15899 # FIXME: insert proper C++ library support
15900 ld_shlibs_CXX=no
15901 ;;
15902 *)
15903 # FIXME: insert proper C++ library support
15904 ld_shlibs_CXX=no
15905 ;;
15906 esac
15907 ;;
15908 solaris*)
15909 case $cc_basename in
15910 CC)
15911 # Sun C++ 4.2, 5.x and Centerline C++
15912 no_undefined_flag_CXX=' -zdefs'
15913 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 +000015914 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15915 $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 +000015916
15917 hardcode_libdir_flag_spec_CXX='-R$libdir'
15918 hardcode_shlibpath_var_CXX=no
15919 case $host_os in
15920 solaris2.0-5 | solaris2.0-5.*) ;;
15921 *)
15922 # The C++ compiler is used as linker so we must use $wl
15923 # flag to pass the commands to the underlying system
15924 # linker.
15925 # Supported since Solaris 2.6 (maybe 2.5.1?)
15926 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15927 ;;
15928 esac
15929 link_all_deplibs_CXX=yes
15930
15931 # Commands to make compiler produce verbose output that lists
15932 # what "hidden" libraries, object files and flags are used when
15933 # linking a shared library.
15934 #
15935 # There doesn't appear to be a way to prevent this compiler from
15936 # explicitly linking system object files so we need to strip them
15937 # from the output so that they don't get included in the library
15938 # dependencies.
15939 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'
15940
15941 # Archives containing C++ object files must be created using
15942 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15943 # necessary to make sure instantiated templates are included
15944 # in the archive.
15945 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15946 ;;
15947 gcx)
15948 # Green Hills C++ Compiler
15949 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15950
15951 # The C++ compiler must be used to create the archive.
15952 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15953 ;;
15954 *)
15955 # GNU C++ compiler with Solaris linker
15956 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15957 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15958 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000015959 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 +000015960 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15961 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15962
John Criswell47fdd832003-07-14 16:52:07 +000015963 # Commands to make compiler produce verbose output that lists
15964 # what "hidden" libraries, object files and flags are used when
15965 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000015966 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000015967 else
15968 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15969 # platform.
15970 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 +000015971 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15972 $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 +000015973
15974 # Commands to make compiler produce verbose output that lists
15975 # what "hidden" libraries, object files and flags are used when
15976 # linking a shared library.
15977 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
15978 fi
15979
15980 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15981 fi
15982 ;;
15983 esac
15984 ;;
15985 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15986 archive_cmds_need_lc_CXX=no
15987 ;;
15988 tandem*)
15989 case $cc_basename in
15990 NCC)
15991 # NonStop-UX NCC 3.20
15992 # FIXME: insert proper C++ library support
15993 ld_shlibs_CXX=no
15994 ;;
15995 *)
15996 # FIXME: insert proper C++ library support
15997 ld_shlibs_CXX=no
15998 ;;
15999 esac
16000 ;;
16001 vxworks*)
16002 # FIXME: insert proper C++ library support
16003 ld_shlibs_CXX=no
16004 ;;
16005 *)
16006 # FIXME: insert proper C++ library support
16007 ld_shlibs_CXX=no
16008 ;;
16009esac
16010echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16011echo "${ECHO_T}$ld_shlibs_CXX" >&6
16012test "$ld_shlibs_CXX" = no && can_build_shared=no
16013
16014GCC_CXX="$GXX"
16015LD_CXX="$LD"
16016
John Criswell47fdd832003-07-14 16:52:07 +000016017
16018cat > conftest.$ac_ext <<EOF
16019class Foo
16020{
16021public:
16022 Foo (void) { a = 0; }
16023private:
16024 int a;
16025};
16026EOF
16027
16028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16029 (eval $ac_compile) 2>&5
16030 ac_status=$?
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); }; then
16033 # Parse the compiler output and extract the necessary
16034 # objects, libraries and library flags.
16035
16036 # Sentinel used to keep track of whether or not we are before
16037 # the conftest object file.
16038 pre_test_object_deps_done=no
16039
16040 # The `*' in the case matches for architectures that use `case' in
16041 # $output_verbose_cmd can trigger glob expansion during the loop
16042 # eval without this substitution.
16043 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16044
16045 for p in `eval $output_verbose_link_cmd`; do
16046 case $p in
16047
16048 -L* | -R* | -l*)
16049 # Some compilers place space between "-{L,R}" and the path.
16050 # Remove the space.
16051 if test $p = "-L" \
16052 || test $p = "-R"; then
16053 prev=$p
16054 continue
16055 else
16056 prev=
16057 fi
16058
16059 if test "$pre_test_object_deps_done" = no; then
16060 case $p in
16061 -L* | -R*)
16062 # Internal compiler library paths should come after those
16063 # provided the user. The postdeps already come after the
16064 # user supplied libs so there is no need to process them.
16065 if test -z "$compiler_lib_search_path_CXX"; then
16066 compiler_lib_search_path_CXX="${prev}${p}"
16067 else
16068 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16069 fi
16070 ;;
16071 # The "-l" case would never come before the object being
16072 # linked, so don't bother handling this case.
16073 esac
16074 else
16075 if test -z "$postdeps_CXX"; then
16076 postdeps_CXX="${prev}${p}"
16077 else
16078 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16079 fi
16080 fi
16081 ;;
16082
16083 *.$objext)
16084 # This assumes that the test object file only shows up
16085 # once in the compiler output.
16086 if test "$p" = "conftest.$objext"; then
16087 pre_test_object_deps_done=yes
16088 continue
16089 fi
16090
16091 if test "$pre_test_object_deps_done" = no; then
16092 if test -z "$predep_objects_CXX"; then
16093 predep_objects_CXX="$p"
16094 else
16095 predep_objects_CXX="$predep_objects_CXX $p"
16096 fi
16097 else
16098 if test -z "$postdep_objects_CXX"; then
16099 postdep_objects_CXX="$p"
16100 else
16101 postdep_objects_CXX="$postdep_objects_CXX $p"
16102 fi
16103 fi
16104 ;;
16105
16106 *) ;; # Ignore the rest.
16107
16108 esac
16109 done
16110
16111 # Clean up.
16112 rm -f a.out a.exe
16113else
16114 echo "libtool.m4: error: problem compiling CXX test program"
16115fi
16116
16117$rm -f confest.$objext
16118
16119case " $postdeps_CXX " in
16120*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16121esac
16122
16123lt_prog_compiler_wl_CXX=
16124lt_prog_compiler_pic_CXX=
16125lt_prog_compiler_static_CXX=
16126
16127echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16128echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16129
16130 # C++ specific cases for pic, static, wl, etc.
16131 if test "$GXX" = yes; then
16132 lt_prog_compiler_wl_CXX='-Wl,'
16133 lt_prog_compiler_static_CXX='-static'
16134
16135 case $host_os in
16136 aix*)
16137 # All AIX code is PIC.
16138 if test "$host_cpu" = ia64; then
16139 # AIX 5 now supports IA64 processor
16140 lt_prog_compiler_static_CXX='-Bstatic'
16141 fi
16142 ;;
16143 amigaos*)
16144 # FIXME: we need at least 68020 code to build shared libraries, but
16145 # adding the `-m68020' flag to GCC prevents building anything better,
16146 # like `-m68040'.
16147 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16148 ;;
16149 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16150 # PIC is the default for these OSes.
16151 ;;
16152 mingw* | os2* | pw32*)
16153 # This hack is so that the source file can tell whether it is being
16154 # built for inclusion in a dll (and should export symbols for example).
16155 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16156 ;;
16157 darwin* | rhapsody*)
16158 # PIC is the default on this platform
16159 # Common symbols not allowed in MH_DYLIB files
16160 lt_prog_compiler_pic_CXX='-fno-common'
16161 ;;
16162 *djgpp*)
16163 # DJGPP does not support shared libraries at all
16164 lt_prog_compiler_pic_CXX=
16165 ;;
16166 sysv4*MP*)
16167 if test -d /usr/nec; then
16168 lt_prog_compiler_pic_CXX=-Kconform_pic
16169 fi
16170 ;;
16171 hpux*)
16172 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16173 # not for PA HP-UX.
16174 case "$host_cpu" in
16175 hppa*64*|ia64*)
16176 ;;
16177 *)
16178 lt_prog_compiler_pic_CXX='-fPIC'
16179 ;;
16180 esac
16181 ;;
16182 *)
16183 lt_prog_compiler_pic_CXX='-fPIC'
16184 ;;
16185 esac
16186 else
16187 case $host_os in
16188 aix4* | aix5*)
16189 # All AIX code is PIC.
16190 if test "$host_cpu" = ia64; then
16191 # AIX 5 now supports IA64 processor
16192 lt_prog_compiler_static_CXX='-Bstatic'
16193 else
16194 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16195 fi
16196 ;;
16197 chorus*)
16198 case $cc_basename in
16199 cxch68)
16200 # Green Hills C++ Compiler
16201 # _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"
16202 ;;
16203 esac
16204 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016205 darwin*)
16206 # PIC is the default on this platform
16207 # Common symbols not allowed in MH_DYLIB files
16208 case "$cc_basename" in
16209 xlc*)
16210 lt_prog_compiler_pic_CXX='-qnocommon'
16211 lt_prog_compiler_wl_CXX='-Wl,'
16212 ;;
16213 esac
16214 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016215 dgux*)
16216 case $cc_basename in
16217 ec++)
16218 lt_prog_compiler_pic_CXX='-KPIC'
16219 ;;
16220 ghcx)
16221 # Green Hills C++ Compiler
16222 lt_prog_compiler_pic_CXX='-pic'
16223 ;;
16224 *)
16225 ;;
16226 esac
16227 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000016228 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016229 # FreeBSD uses GNU C++
16230 ;;
16231 hpux9* | hpux10* | hpux11*)
16232 case $cc_basename in
16233 CC)
16234 lt_prog_compiler_wl_CXX='-Wl,'
16235 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16236 if test "$host_cpu" != ia64; then
16237 lt_prog_compiler_pic_CXX='+Z'
16238 fi
16239 ;;
16240 aCC)
16241 lt_prog_compiler_wl_CXX='-Wl,'
16242 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16243 case "$host_cpu" in
16244 hppa*64*|ia64*)
16245 # +Z the default
16246 ;;
16247 *)
16248 lt_prog_compiler_pic_CXX='+Z'
16249 ;;
16250 esac
16251 ;;
16252 *)
16253 ;;
16254 esac
16255 ;;
16256 irix5* | irix6* | nonstopux*)
16257 case $cc_basename in
16258 CC)
16259 lt_prog_compiler_wl_CXX='-Wl,'
16260 lt_prog_compiler_static_CXX='-non_shared'
16261 # CC pic flag -KPIC is the default.
16262 ;;
16263 *)
16264 ;;
16265 esac
16266 ;;
16267 linux*)
16268 case $cc_basename in
16269 KCC)
16270 # KAI C++ Compiler
16271 lt_prog_compiler_wl_CXX='--backend -Wl,'
16272 lt_prog_compiler_pic_CXX='-fPIC'
16273 ;;
16274 icpc)
16275 # Intel C++
16276 lt_prog_compiler_wl_CXX='-Wl,'
16277 lt_prog_compiler_pic_CXX='-KPIC'
16278 lt_prog_compiler_static_CXX='-static'
16279 ;;
16280 cxx)
16281 # Compaq C++
16282 # Make sure the PIC flag is empty. It appears that all Alpha
16283 # Linux and Compaq Tru64 Unix objects are PIC.
16284 lt_prog_compiler_pic_CXX=
16285 lt_prog_compiler_static_CXX='-non_shared'
16286 ;;
16287 *)
16288 ;;
16289 esac
16290 ;;
16291 lynxos*)
16292 ;;
16293 m88k*)
16294 ;;
16295 mvs*)
16296 case $cc_basename in
16297 cxx)
16298 lt_prog_compiler_pic_CXX='-W c,exportall'
16299 ;;
16300 *)
16301 ;;
16302 esac
16303 ;;
16304 netbsd*)
16305 ;;
16306 osf3* | osf4* | osf5*)
16307 case $cc_basename in
16308 KCC)
16309 lt_prog_compiler_wl_CXX='--backend -Wl,'
16310 ;;
16311 RCC)
16312 # Rational C++ 2.4.1
16313 lt_prog_compiler_pic_CXX='-pic'
16314 ;;
16315 cxx)
16316 # Digital/Compaq C++
16317 lt_prog_compiler_wl_CXX='-Wl,'
16318 # Make sure the PIC flag is empty. It appears that all Alpha
16319 # Linux and Compaq Tru64 Unix objects are PIC.
16320 lt_prog_compiler_pic_CXX=
16321 lt_prog_compiler_static_CXX='-non_shared'
16322 ;;
16323 *)
16324 ;;
16325 esac
16326 ;;
16327 psos*)
16328 ;;
16329 sco*)
16330 case $cc_basename in
16331 CC)
16332 lt_prog_compiler_pic_CXX='-fPIC'
16333 ;;
16334 *)
16335 ;;
16336 esac
16337 ;;
16338 solaris*)
16339 case $cc_basename in
16340 CC)
16341 # Sun C++ 4.2, 5.x and Centerline C++
16342 lt_prog_compiler_pic_CXX='-KPIC'
16343 lt_prog_compiler_static_CXX='-Bstatic'
16344 lt_prog_compiler_wl_CXX='-Qoption ld '
16345 ;;
16346 gcx)
16347 # Green Hills C++ Compiler
16348 lt_prog_compiler_pic_CXX='-PIC'
16349 ;;
16350 *)
16351 ;;
16352 esac
16353 ;;
16354 sunos4*)
16355 case $cc_basename in
16356 CC)
16357 # Sun C++ 4.x
16358 lt_prog_compiler_pic_CXX='-pic'
16359 lt_prog_compiler_static_CXX='-Bstatic'
16360 ;;
16361 lcc)
16362 # Lucid
16363 lt_prog_compiler_pic_CXX='-pic'
16364 ;;
16365 *)
16366 ;;
16367 esac
16368 ;;
16369 tandem*)
16370 case $cc_basename in
16371 NCC)
16372 # NonStop-UX NCC 3.20
16373 lt_prog_compiler_pic_CXX='-KPIC'
16374 ;;
16375 *)
16376 ;;
16377 esac
16378 ;;
16379 unixware*)
16380 ;;
16381 vxworks*)
16382 ;;
16383 *)
16384 lt_prog_compiler_can_build_shared_CXX=no
16385 ;;
16386 esac
16387 fi
16388
16389echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16390echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16391
16392#
16393# Check to make sure the PIC flag actually works.
16394#
16395if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016396
16397echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016398echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16399if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16400 echo $ECHO_N "(cached) $ECHO_C" >&6
16401else
16402 lt_prog_compiler_pic_works_CXX=no
16403 ac_outfile=conftest.$ac_objext
16404 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16405 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16406 # Insert the option either (1) after the last *FLAGS variable, or
16407 # (2) before a word containing "conftest.", or (3) at the end.
16408 # Note that $ac_compile itself does not contain backslashes and begins
16409 # with a dollar sign (not a hyphen), so the echo should work correctly.
16410 # The option is referenced via a variable to avoid confusing sed.
16411 lt_compile=`echo "$ac_compile" | $SED \
16412 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16414 -e 's:$: $lt_compiler_flag:'`
Reid Spencer2bc7bd52004-11-29 12:29:58 +000016415 (eval echo "\"\$as_me:16415: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016416 (eval "$lt_compile" 2>conftest.err)
16417 ac_status=$?
16418 cat conftest.err >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000016419 echo "$as_me:16419: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016420 if (exit $ac_status) && test -s "$ac_outfile"; then
16421 # The compiler can only warn and ignore the option if not recognized
16422 # So say no if there are warnings
16423 if test ! -s conftest.err; then
16424 lt_prog_compiler_pic_works_CXX=yes
16425 fi
16426 fi
16427 $rm conftest*
16428
16429fi
16430echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16431echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16432
16433if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16434 case $lt_prog_compiler_pic_CXX in
16435 "" | " "*) ;;
16436 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16437 esac
16438else
16439 lt_prog_compiler_pic_CXX=
16440 lt_prog_compiler_can_build_shared_CXX=no
16441fi
16442
16443fi
16444case "$host_os" in
16445 # For platforms which do not support PIC, -DPIC is meaningless:
16446 *djgpp*)
16447 lt_prog_compiler_pic_CXX=
16448 ;;
16449 *)
16450 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16451 ;;
16452esac
16453
16454echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16455echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16456if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16457 echo $ECHO_N "(cached) $ECHO_C" >&6
16458else
16459 lt_cv_prog_compiler_c_o_CXX=no
16460 $rm -r conftest 2>/dev/null
16461 mkdir conftest
16462 cd conftest
16463 mkdir out
16464 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16465
John Criswell47fdd832003-07-14 16:52:07 +000016466 lt_compiler_flag="-o out/conftest2.$ac_objext"
16467 # Insert the option either (1) after the last *FLAGS variable, or
16468 # (2) before a word containing "conftest.", or (3) at the end.
16469 # Note that $ac_compile itself does not contain backslashes and begins
16470 # with a dollar sign (not a hyphen), so the echo should work correctly.
16471 lt_compile=`echo "$ac_compile" | $SED \
16472 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16473 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16474 -e 's:$: $lt_compiler_flag:'`
Reid Spencer2bc7bd52004-11-29 12:29:58 +000016475 (eval echo "\"\$as_me:16475: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000016476 (eval "$lt_compile" 2>out/conftest.err)
16477 ac_status=$?
16478 cat out/conftest.err >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000016479 echo "$as_me:16479: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000016480 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16481 then
16482 # The compiler can only warn and ignore the option if not recognized
16483 # So say no if there are warnings
16484 if test ! -s out/conftest.err; then
16485 lt_cv_prog_compiler_c_o_CXX=yes
16486 fi
16487 fi
16488 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000016489 $rm conftest*
16490 # SGI C++ compiler will create directory out/ii_files/ for
16491 # template instantiation
16492 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16493 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000016494 cd ..
16495 rmdir conftest
16496 $rm conftest*
16497
16498fi
16499echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16500echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16501
16502
16503hard_links="nottested"
16504if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16505 # do not overwrite the value of need_locks provided by the user
16506 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16507echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16508 hard_links=yes
16509 $rm conftest*
16510 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16511 touch conftest.a
16512 ln conftest.a conftest.b 2>&5 || hard_links=no
16513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16514 echo "$as_me:$LINENO: result: $hard_links" >&5
16515echo "${ECHO_T}$hard_links" >&6
16516 if test "$hard_links" = no; then
16517 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16518echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16519 need_locks=warn
16520 fi
16521else
16522 need_locks=no
16523fi
16524
16525echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16526echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16527
16528 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16529 case $host_os in
16530 aix4* | aix5*)
16531 # If we're using GNU nm, then we don't want the "-C" option.
16532 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16533 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16534 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'
16535 else
16536 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'
16537 fi
16538 ;;
16539 pw32*)
16540 export_symbols_cmds_CXX="$ltdll_cmds"
16541 ;;
16542 cygwin* | mingw*)
16543 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16544 ;;
16545 *)
16546 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16547 ;;
16548 esac
16549
16550echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16551echo "${ECHO_T}$ld_shlibs_CXX" >&6
16552test "$ld_shlibs_CXX" = no && can_build_shared=no
16553
16554variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16555if test "$GCC" = yes; then
16556 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16557fi
16558
16559#
16560# Do we need to explicitly link libc?
16561#
16562case "x$archive_cmds_need_lc_CXX" in
16563x|xyes)
16564 # Assume -lc should be added
16565 archive_cmds_need_lc_CXX=yes
16566
16567 if test "$enable_shared" = yes && test "$GCC" = yes; then
16568 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016569 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016570 # FIXME: we may have to deal with multi-command sequences.
16571 ;;
16572 '$CC '*)
16573 # Test whether the compiler implicitly links with -lc since on some
16574 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16575 # to ld, don't add -lc before -lgcc.
16576 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16577echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16578 $rm conftest*
16579 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16580
16581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16582 (eval $ac_compile) 2>&5
16583 ac_status=$?
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } 2>conftest.err; then
16586 soname=conftest
16587 lib=conftest
16588 libobjs=conftest.$ac_objext
16589 deplibs=
16590 wl=$lt_prog_compiler_wl_CXX
16591 compiler_flags=-v
16592 linker_flags=-v
16593 verstring=
16594 output_objdir=.
16595 libname=conftest
16596 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16597 allow_undefined_flag_CXX=
16598 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16599 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16600 ac_status=$?
16601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602 (exit $ac_status); }
16603 then
16604 archive_cmds_need_lc_CXX=no
16605 else
16606 archive_cmds_need_lc_CXX=yes
16607 fi
16608 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16609 else
16610 cat conftest.err 1>&5
16611 fi
16612 $rm conftest*
16613 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16614echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16615 ;;
16616 esac
16617 fi
16618 ;;
16619esac
16620
John Criswell47fdd832003-07-14 16:52:07 +000016621echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16622echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16623library_names_spec=
16624libname_spec='lib$name'
16625soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016626shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016627postinstall_cmds=
16628postuninstall_cmds=
16629finish_cmds=
16630finish_eval=
16631shlibpath_var=
16632shlibpath_overrides_runpath=unknown
16633version_type=none
16634dynamic_linker="$host_os ld.so"
16635sys_lib_dlsearch_path_spec="/lib /usr/lib"
16636if test "$GCC" = yes; then
16637 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16638 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16639 # if the path contains ";" then we assume it to be the separator
16640 # otherwise default to the standard path separator (i.e. ":") - it is
16641 # assumed that no part of a normal pathname contains ";" but that should
16642 # okay in the real world where ";" in dirpaths is itself problematic.
16643 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16644 else
16645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16646 fi
16647else
16648 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16649fi
16650need_lib_prefix=unknown
16651hardcode_into_libs=no
16652
16653# when you set need_version to no, make sure it does not cause -set_version
16654# flags to be left without arguments
16655need_version=unknown
16656
16657case $host_os in
16658aix3*)
16659 version_type=linux
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16661 shlibpath_var=LIBPATH
16662
16663 # AIX 3 has no versioning support, so we append a major version to the name.
16664 soname_spec='${libname}${release}${shared_ext}$major'
16665 ;;
16666
16667aix4* | aix5*)
16668 version_type=linux
16669 need_lib_prefix=no
16670 need_version=no
16671 hardcode_into_libs=yes
16672 if test "$host_cpu" = ia64; then
16673 # AIX 5 supports IA64
16674 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16675 shlibpath_var=LD_LIBRARY_PATH
16676 else
16677 # With GCC up to 2.95.x, collect2 would create an import file
16678 # for dependence libraries. The import file would start with
16679 # the line `#! .'. This would cause the generated library to
16680 # depend on `.', always an invalid library. This was fixed in
16681 # development snapshots of GCC prior to 3.0.
16682 case $host_os in
16683 aix4 | aix4.[01] | aix4.[01].*)
16684 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16685 echo ' yes '
16686 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16687 :
16688 else
16689 can_build_shared=no
16690 fi
16691 ;;
16692 esac
16693 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16694 # soname into executable. Probably we can add versioning support to
16695 # collect2, so additional links can be useful in future.
16696 if test "$aix_use_runtimelinking" = yes; then
16697 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16698 # instead of lib<name>.a to let people know that these are not
16699 # typical AIX shared libraries.
16700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16701 else
16702 # We preserve .a as extension for shared libraries through AIX4.2
16703 # and later when we are not doing run time linking.
16704 library_names_spec='${libname}${release}.a $libname.a'
16705 soname_spec='${libname}${release}${shared_ext}$major'
16706 fi
16707 shlibpath_var=LIBPATH
16708 fi
16709 ;;
16710
16711amigaos*)
16712 library_names_spec='$libname.ixlibrary $libname.a'
16713 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016714 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 +000016715 ;;
16716
16717beos*)
16718 library_names_spec='${libname}${shared_ext}'
16719 dynamic_linker="$host_os ld.so"
16720 shlibpath_var=LIBRARY_PATH
16721 ;;
16722
Reid Spencer2706f8c2004-09-19 23:53:36 +000016723bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016724 version_type=linux
16725 need_version=no
16726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16727 soname_spec='${libname}${release}${shared_ext}$major'
16728 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16729 shlibpath_var=LD_LIBRARY_PATH
16730 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16731 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16732 # the default ld.so.conf also contains /usr/contrib/lib and
16733 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16734 # libtool to hard-code these into programs
16735 ;;
16736
16737cygwin* | mingw* | pw32*)
16738 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016739 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016740 need_version=no
16741 need_lib_prefix=no
16742
16743 case $GCC,$host_os in
16744 yes,cygwin* | yes,mingw* | yes,pw32*)
16745 library_names_spec='$libname.dll.a'
16746 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016747 postinstall_cmds='base_file=`basename \${file}`~
16748 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16749 dldir=$destdir/`dirname \$dlpath`~
16750 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016751 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16753 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016754 $rm \$dlpath'
16755 shlibpath_overrides_runpath=yes
16756
16757 case $host_os in
16758 cygwin*)
16759 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16760 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 +000016761 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016762 ;;
16763 mingw*)
16764 # MinGW DLLs use traditional 'lib' prefix
16765 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16766 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16767 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16768 # It is most probably a Windows format PATH printed by
16769 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16770 # path with ; separators, and with drive letters. We can handle the
16771 # drive letters (cygwin fileutils understands them), so leave them,
16772 # especially as we might pass files found there to a mingw objdump,
16773 # which wouldn't understand a cygwinified path. Ahh.
16774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16775 else
16776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16777 fi
16778 ;;
16779 pw32*)
16780 # pw32 DLLs use 'pw' prefix rather than 'lib'
16781 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16782 ;;
16783 esac
16784 ;;
16785
16786 *)
16787 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16788 ;;
16789 esac
16790 dynamic_linker='Win32 ld.exe'
16791 # FIXME: first we should search . and the directory the executable is in
16792 shlibpath_var=PATH
16793 ;;
16794
16795darwin* | rhapsody*)
16796 dynamic_linker="$host_os dyld"
16797 version_type=darwin
16798 need_lib_prefix=no
16799 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016800 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016801 soname_spec='${libname}${release}${major}$shared_ext'
16802 shlibpath_overrides_runpath=yes
16803 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016804 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016805 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016806 if test "$GCC" = yes; then
16807 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"`
16808 else
16809 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016810 fi
16811 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16812 ;;
16813
16814dgux*)
16815 version_type=linux
16816 need_lib_prefix=no
16817 need_version=no
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16819 soname_spec='${libname}${release}${shared_ext}$major'
16820 shlibpath_var=LD_LIBRARY_PATH
16821 ;;
16822
16823freebsd1*)
16824 dynamic_linker=no
16825 ;;
16826
Reid Spencer2706f8c2004-09-19 23:53:36 +000016827kfreebsd*-gnu)
16828 version_type=linux
16829 need_lib_prefix=no
16830 need_version=no
16831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16832 soname_spec='${libname}${release}${shared_ext}$major'
16833 shlibpath_var=LD_LIBRARY_PATH
16834 shlibpath_overrides_runpath=no
16835 hardcode_into_libs=yes
16836 dynamic_linker='GNU ld.so'
16837 ;;
16838
John Criswell47fdd832003-07-14 16:52:07 +000016839freebsd*)
16840 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16841 version_type=freebsd-$objformat
16842 case $version_type in
16843 freebsd-elf*)
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16845 need_version=no
16846 need_lib_prefix=no
16847 ;;
16848 freebsd-*)
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16850 need_version=yes
16851 ;;
16852 esac
16853 shlibpath_var=LD_LIBRARY_PATH
16854 case $host_os in
16855 freebsd2*)
16856 shlibpath_overrides_runpath=yes
16857 ;;
16858 freebsd3.01* | freebsdelf3.01*)
16859 shlibpath_overrides_runpath=yes
16860 hardcode_into_libs=yes
16861 ;;
16862 *) # from 3.2 on
16863 shlibpath_overrides_runpath=no
16864 hardcode_into_libs=yes
16865 ;;
16866 esac
16867 ;;
16868
16869gnu*)
16870 version_type=linux
16871 need_lib_prefix=no
16872 need_version=no
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16874 soname_spec='${libname}${release}${shared_ext}$major'
16875 shlibpath_var=LD_LIBRARY_PATH
16876 hardcode_into_libs=yes
16877 ;;
16878
16879hpux9* | hpux10* | hpux11*)
16880 # Give a soname corresponding to the major version so that dld.sl refuses to
16881 # link against other versions.
16882 version_type=sunos
16883 need_lib_prefix=no
16884 need_version=no
16885 case "$host_cpu" in
16886 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016887 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016888 hardcode_into_libs=yes
16889 dynamic_linker="$host_os dld.so"
16890 shlibpath_var=LD_LIBRARY_PATH
16891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16893 soname_spec='${libname}${release}${shared_ext}$major'
16894 if test "X$HPUX_IA64_MODE" = X32; then
16895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16896 else
16897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16898 fi
16899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16900 ;;
16901 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016902 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016903 hardcode_into_libs=yes
16904 dynamic_linker="$host_os dld.sl"
16905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16908 soname_spec='${libname}${release}${shared_ext}$major'
16909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16911 ;;
16912 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016913 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016914 dynamic_linker="$host_os dld.sl"
16915 shlibpath_var=SHLIB_PATH
16916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16918 soname_spec='${libname}${release}${shared_ext}$major'
16919 ;;
16920 esac
16921 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16922 postinstall_cmds='chmod 555 $lib'
16923 ;;
16924
16925irix5* | irix6* | nonstopux*)
16926 case $host_os in
16927 nonstopux*) version_type=nonstopux ;;
16928 *)
16929 if test "$lt_cv_prog_gnu_ld" = yes; then
16930 version_type=linux
16931 else
16932 version_type=irix
16933 fi ;;
16934 esac
16935 need_lib_prefix=no
16936 need_version=no
16937 soname_spec='${libname}${release}${shared_ext}$major'
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16939 case $host_os in
16940 irix5* | nonstopux*)
16941 libsuff= shlibsuff=
16942 ;;
16943 *)
16944 case $LD in # libtool.m4 will add one of these switches to LD
16945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16946 libsuff= shlibsuff= libmagic=32-bit;;
16947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16948 libsuff=32 shlibsuff=N32 libmagic=N32;;
16949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16951 *) libsuff= shlibsuff= libmagic=never-match;;
16952 esac
16953 ;;
16954 esac
16955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16956 shlibpath_overrides_runpath=no
16957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16959 hardcode_into_libs=yes
16960 ;;
16961
16962# No shared lib support for Linux oldld, aout, or coff.
16963linux*oldld* | linux*aout* | linux*coff*)
16964 dynamic_linker=no
16965 ;;
16966
16967# This must be Linux ELF.
16968linux*)
16969 version_type=linux
16970 need_lib_prefix=no
16971 need_version=no
16972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16973 soname_spec='${libname}${release}${shared_ext}$major'
16974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 shlibpath_overrides_runpath=no
16977 # This implies no fast_install, which is unacceptable.
16978 # Some rework will be needed to allow for fast_install
16979 # before this can be enabled.
16980 hardcode_into_libs=yes
16981
Reid Spencer2706f8c2004-09-19 23:53:36 +000016982 # Append ld.so.conf contents to the search path
16983 if test -f /etc/ld.so.conf; then
16984 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16985 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16986 fi
16987
John Criswell47fdd832003-07-14 16:52:07 +000016988 # We used to test for /lib/ld.so.1 and disable shared libraries on
16989 # powerpc, because MkLinux only supported shared libraries with the
16990 # GNU dynamic linker. Since this was broken with cross compilers,
16991 # most powerpc-linux boxes support dynamic linking these days and
16992 # people can always --disable-shared, the test was removed, and we
16993 # assume the GNU/Linux dynamic linker is in use.
16994 dynamic_linker='GNU/Linux ld.so'
16995 ;;
16996
Reid Spencer2706f8c2004-09-19 23:53:36 +000016997knetbsd*-gnu)
16998 version_type=linux
16999 need_lib_prefix=no
17000 need_version=no
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17003 shlibpath_var=LD_LIBRARY_PATH
17004 shlibpath_overrides_runpath=no
17005 hardcode_into_libs=yes
17006 dynamic_linker='GNU ld.so'
17007 ;;
17008
John Criswell47fdd832003-07-14 16:52:07 +000017009netbsd*)
17010 version_type=sunos
17011 need_lib_prefix=no
17012 need_version=no
17013 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17015 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17016 dynamic_linker='NetBSD (a.out) ld.so'
17017 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017019 soname_spec='${libname}${release}${shared_ext}$major'
17020 dynamic_linker='NetBSD ld.elf_so'
17021 fi
17022 shlibpath_var=LD_LIBRARY_PATH
17023 shlibpath_overrides_runpath=yes
17024 hardcode_into_libs=yes
17025 ;;
17026
17027newsos6)
17028 version_type=linux
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17030 shlibpath_var=LD_LIBRARY_PATH
17031 shlibpath_overrides_runpath=yes
17032 ;;
17033
Reid Spencer2706f8c2004-09-19 23:53:36 +000017034nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017035 version_type=linux
17036 need_lib_prefix=no
17037 need_version=no
17038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039 soname_spec='${libname}${release}${shared_ext}$major'
17040 shlibpath_var=LD_LIBRARY_PATH
17041 shlibpath_overrides_runpath=yes
17042 ;;
17043
17044openbsd*)
17045 version_type=sunos
17046 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017047 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17050 shlibpath_var=LD_LIBRARY_PATH
17051 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17052 case $host_os in
17053 openbsd2.[89] | openbsd2.[89].*)
17054 shlibpath_overrides_runpath=no
17055 ;;
17056 *)
17057 shlibpath_overrides_runpath=yes
17058 ;;
17059 esac
17060 else
17061 shlibpath_overrides_runpath=yes
17062 fi
17063 ;;
17064
17065os2*)
17066 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017067 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017068 need_lib_prefix=no
17069 library_names_spec='$libname${shared_ext} $libname.a'
17070 dynamic_linker='OS/2 ld.exe'
17071 shlibpath_var=LIBPATH
17072 ;;
17073
17074osf3* | osf4* | osf5*)
17075 version_type=osf
17076 need_lib_prefix=no
17077 need_version=no
17078 soname_spec='${libname}${release}${shared_ext}$major'
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17080 shlibpath_var=LD_LIBRARY_PATH
17081 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17082 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17083 ;;
17084
17085sco3.2v5*)
17086 version_type=osf
17087 soname_spec='${libname}${release}${shared_ext}$major'
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089 shlibpath_var=LD_LIBRARY_PATH
17090 ;;
17091
17092solaris*)
17093 version_type=linux
17094 need_lib_prefix=no
17095 need_version=no
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17097 soname_spec='${libname}${release}${shared_ext}$major'
17098 shlibpath_var=LD_LIBRARY_PATH
17099 shlibpath_overrides_runpath=yes
17100 hardcode_into_libs=yes
17101 # ldd complains unless libraries are executable
17102 postinstall_cmds='chmod +x $lib'
17103 ;;
17104
17105sunos4*)
17106 version_type=sunos
17107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17108 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17109 shlibpath_var=LD_LIBRARY_PATH
17110 shlibpath_overrides_runpath=yes
17111 if test "$with_gnu_ld" = yes; then
17112 need_lib_prefix=no
17113 fi
17114 need_version=yes
17115 ;;
17116
17117sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17118 version_type=linux
17119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17120 soname_spec='${libname}${release}${shared_ext}$major'
17121 shlibpath_var=LD_LIBRARY_PATH
17122 case $host_vendor in
17123 sni)
17124 shlibpath_overrides_runpath=no
17125 need_lib_prefix=no
17126 export_dynamic_flag_spec='${wl}-Blargedynsym'
17127 runpath_var=LD_RUN_PATH
17128 ;;
17129 siemens)
17130 need_lib_prefix=no
17131 ;;
17132 motorola)
17133 need_lib_prefix=no
17134 need_version=no
17135 shlibpath_overrides_runpath=no
17136 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17137 ;;
17138 esac
17139 ;;
17140
17141sysv4*MP*)
17142 if test -d /usr/nec ;then
17143 version_type=linux
17144 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17145 soname_spec='$libname${shared_ext}.$major'
17146 shlibpath_var=LD_LIBRARY_PATH
17147 fi
17148 ;;
17149
17150uts4*)
17151 version_type=linux
17152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 shlibpath_var=LD_LIBRARY_PATH
17155 ;;
17156
17157*)
17158 dynamic_linker=no
17159 ;;
17160esac
17161echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17162echo "${ECHO_T}$dynamic_linker" >&6
17163test "$dynamic_linker" = no && can_build_shared=no
17164
Reid Spencer2706f8c2004-09-19 23:53:36 +000017165echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17166echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17167hardcode_action_CXX=
17168if test -n "$hardcode_libdir_flag_spec_CXX" || \
17169 test -n "$runpath_var_CXX" || \
17170 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17171
17172 # We can hardcode non-existant directories.
17173 if test "$hardcode_direct_CXX" != no &&
17174 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17175 # have to relink, otherwise we might link with an installed library
17176 # when we should be linking with a yet-to-be-installed one
17177 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17178 test "$hardcode_minus_L_CXX" != no; then
17179 # Linking always hardcodes the temporary library directory.
17180 hardcode_action_CXX=relink
17181 else
17182 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17183 hardcode_action_CXX=immediate
17184 fi
17185else
17186 # We cannot hardcode anything, or else we can only hardcode existing
17187 # directories.
17188 hardcode_action_CXX=unsupported
17189fi
17190echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17191echo "${ECHO_T}$hardcode_action_CXX" >&6
17192
17193if test "$hardcode_action_CXX" = relink; then
17194 # Fast installation is not supported
17195 enable_fast_install=no
17196elif test "$shlibpath_overrides_runpath" = yes ||
17197 test "$enable_shared" = no; then
17198 # Fast installation is not necessary
17199 enable_fast_install=needless
17200fi
17201
17202striplib=
17203old_striplib=
17204echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17205echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17206if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17207 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17208 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17209 echo "$as_me:$LINENO: result: yes" >&5
17210echo "${ECHO_T}yes" >&6
17211else
17212# FIXME - insert some real tests, host_os isn't really good enough
17213 case $host_os in
17214 darwin*)
17215 if test -n "$STRIP" ; then
17216 striplib="$STRIP -x"
17217 echo "$as_me:$LINENO: result: yes" >&5
17218echo "${ECHO_T}yes" >&6
17219 else
17220 echo "$as_me:$LINENO: result: no" >&5
17221echo "${ECHO_T}no" >&6
17222fi
17223 ;;
17224 *)
17225 echo "$as_me:$LINENO: result: no" >&5
17226echo "${ECHO_T}no" >&6
17227 ;;
17228 esac
17229fi
17230
John Criswell47fdd832003-07-14 16:52:07 +000017231if test "x$enable_dlopen" != xyes; then
17232 enable_dlopen=unknown
17233 enable_dlopen_self=unknown
17234 enable_dlopen_self_static=unknown
17235else
17236 lt_cv_dlopen=no
17237 lt_cv_dlopen_libs=
17238
17239 case $host_os in
17240 beos*)
17241 lt_cv_dlopen="load_add_on"
17242 lt_cv_dlopen_libs=
17243 lt_cv_dlopen_self=yes
17244 ;;
17245
17246 mingw* | pw32*)
17247 lt_cv_dlopen="LoadLibrary"
17248 lt_cv_dlopen_libs=
17249 ;;
17250
17251 cygwin*)
17252 lt_cv_dlopen="dlopen"
17253 lt_cv_dlopen_libs=
17254 ;;
17255
17256 darwin*)
17257 # if libdl is installed we need to link against it
17258 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17259echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17260if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17261 echo $ECHO_N "(cached) $ECHO_C" >&6
17262else
17263 ac_check_lib_save_LIBS=$LIBS
17264LIBS="-ldl $LIBS"
17265cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017266/* confdefs.h. */
17267_ACEOF
17268cat confdefs.h >>conftest.$ac_ext
17269cat >>conftest.$ac_ext <<_ACEOF
17270/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017271
17272/* Override any gcc2 internal prototype to avoid an error. */
17273#ifdef __cplusplus
17274extern "C"
17275#endif
17276/* We use char because int might match the return type of a gcc2
17277 builtin and then its argument prototype would still apply. */
17278char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017279int
17280main ()
17281{
17282dlopen ();
17283 ;
17284 return 0;
17285}
17286_ACEOF
17287rm -f conftest.$ac_objext conftest$ac_exeext
17288if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017289 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017290 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017291 grep -v '^ *+' conftest.er1 >conftest.err
17292 rm -f conftest.er1
17293 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017296 { ac_try='test -z "$ac_cxx_werror_flag"
17297 || test ! -s conftest.err'
17298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; } &&
17303 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17305 (eval $ac_try) 2>&5
17306 ac_status=$?
17307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308 (exit $ac_status); }; }; then
17309 ac_cv_lib_dl_dlopen=yes
17310else
17311 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017312sed 's/^/| /' conftest.$ac_ext >&5
17313
John Criswell47fdd832003-07-14 16:52:07 +000017314ac_cv_lib_dl_dlopen=no
17315fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017316rm -f conftest.err conftest.$ac_objext \
17317 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017318LIBS=$ac_check_lib_save_LIBS
17319fi
17320echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17321echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17322if test $ac_cv_lib_dl_dlopen = yes; then
17323 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17324else
17325
17326 lt_cv_dlopen="dyld"
17327 lt_cv_dlopen_libs=
17328 lt_cv_dlopen_self=yes
17329
17330fi
17331
17332 ;;
17333
17334 *)
17335 echo "$as_me:$LINENO: checking for shl_load" >&5
17336echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17337if test "${ac_cv_func_shl_load+set}" = set; then
17338 echo $ECHO_N "(cached) $ECHO_C" >&6
17339else
17340 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017341/* confdefs.h. */
17342_ACEOF
17343cat confdefs.h >>conftest.$ac_ext
17344cat >>conftest.$ac_ext <<_ACEOF
17345/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017346/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17348#define shl_load innocuous_shl_load
17349
John Criswell47fdd832003-07-14 16:52:07 +000017350/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017351 which can conflict with char shl_load (); below.
17352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17353 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017354
John Criswell0c38eaf2003-09-10 15:17:25 +000017355#ifdef __STDC__
17356# include <limits.h>
17357#else
17358# include <assert.h>
17359#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017360
17361#undef shl_load
17362
John Criswell47fdd832003-07-14 16:52:07 +000017363/* Override any gcc2 internal prototype to avoid an error. */
17364#ifdef __cplusplus
17365extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017366{
John Criswell47fdd832003-07-14 16:52:07 +000017367#endif
17368/* We use char because int might match the return type of a gcc2
17369 builtin and then its argument prototype would still apply. */
17370char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017371/* The GNU C library defines this for functions which it implements
17372 to always fail with ENOSYS. Some functions are actually named
17373 something starting with __ and the normal name is an alias. */
17374#if defined (__stub_shl_load) || defined (__stub___shl_load)
17375choke me
17376#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017377char (*f) () = shl_load;
17378#endif
17379#ifdef __cplusplus
17380}
John Criswell47fdd832003-07-14 16:52:07 +000017381#endif
17382
John Criswell0c38eaf2003-09-10 15:17:25 +000017383int
17384main ()
17385{
17386return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017387 ;
17388 return 0;
17389}
17390_ACEOF
17391rm -f conftest.$ac_objext conftest$ac_exeext
17392if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017393 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017394 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017395 grep -v '^ *+' conftest.er1 >conftest.err
17396 rm -f conftest.er1
17397 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017400 { ac_try='test -z "$ac_cxx_werror_flag"
17401 || test ! -s conftest.err'
17402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17403 (eval $ac_try) 2>&5
17404 ac_status=$?
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); }; } &&
17407 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17409 (eval $ac_try) 2>&5
17410 ac_status=$?
17411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17412 (exit $ac_status); }; }; then
17413 ac_cv_func_shl_load=yes
17414else
17415 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017416sed 's/^/| /' conftest.$ac_ext >&5
17417
John Criswell47fdd832003-07-14 16:52:07 +000017418ac_cv_func_shl_load=no
17419fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017420rm -f conftest.err conftest.$ac_objext \
17421 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017422fi
17423echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17424echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17425if test $ac_cv_func_shl_load = yes; then
17426 lt_cv_dlopen="shl_load"
17427else
17428 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17429echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17430if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17431 echo $ECHO_N "(cached) $ECHO_C" >&6
17432else
17433 ac_check_lib_save_LIBS=$LIBS
17434LIBS="-ldld $LIBS"
17435cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017436/* confdefs.h. */
17437_ACEOF
17438cat confdefs.h >>conftest.$ac_ext
17439cat >>conftest.$ac_ext <<_ACEOF
17440/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017441
17442/* Override any gcc2 internal prototype to avoid an error. */
17443#ifdef __cplusplus
17444extern "C"
17445#endif
17446/* We use char because int might match the return type of a gcc2
17447 builtin and then its argument prototype would still apply. */
17448char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017449int
17450main ()
17451{
17452shl_load ();
17453 ;
17454 return 0;
17455}
17456_ACEOF
17457rm -f conftest.$ac_objext conftest$ac_exeext
17458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017459 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017460 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017461 grep -v '^ *+' conftest.er1 >conftest.err
17462 rm -f conftest.er1
17463 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017466 { ac_try='test -z "$ac_cxx_werror_flag"
17467 || test ! -s conftest.err'
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17470 ac_status=$?
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; } &&
17473 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17476 ac_status=$?
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_lib_dld_shl_load=yes
17480else
17481 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017482sed 's/^/| /' conftest.$ac_ext >&5
17483
John Criswell47fdd832003-07-14 16:52:07 +000017484ac_cv_lib_dld_shl_load=no
17485fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017486rm -f conftest.err conftest.$ac_objext \
17487 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017488LIBS=$ac_check_lib_save_LIBS
17489fi
17490echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17491echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17492if test $ac_cv_lib_dld_shl_load = yes; then
17493 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17494else
17495 echo "$as_me:$LINENO: checking for dlopen" >&5
17496echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17497if test "${ac_cv_func_dlopen+set}" = set; then
17498 echo $ECHO_N "(cached) $ECHO_C" >&6
17499else
17500 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017501/* confdefs.h. */
17502_ACEOF
17503cat confdefs.h >>conftest.$ac_ext
17504cat >>conftest.$ac_ext <<_ACEOF
17505/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017506/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17508#define dlopen innocuous_dlopen
17509
John Criswell47fdd832003-07-14 16:52:07 +000017510/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017511 which can conflict with char dlopen (); below.
17512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17513 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017514
John Criswell0c38eaf2003-09-10 15:17:25 +000017515#ifdef __STDC__
17516# include <limits.h>
17517#else
17518# include <assert.h>
17519#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017520
17521#undef dlopen
17522
John Criswell47fdd832003-07-14 16:52:07 +000017523/* Override any gcc2 internal prototype to avoid an error. */
17524#ifdef __cplusplus
17525extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017526{
John Criswell47fdd832003-07-14 16:52:07 +000017527#endif
17528/* We use char because int might match the return type of a gcc2
17529 builtin and then its argument prototype would still apply. */
17530char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017531/* The GNU C library defines this for functions which it implements
17532 to always fail with ENOSYS. Some functions are actually named
17533 something starting with __ and the normal name is an alias. */
17534#if defined (__stub_dlopen) || defined (__stub___dlopen)
17535choke me
17536#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017537char (*f) () = dlopen;
17538#endif
17539#ifdef __cplusplus
17540}
John Criswell47fdd832003-07-14 16:52:07 +000017541#endif
17542
John Criswell0c38eaf2003-09-10 15:17:25 +000017543int
17544main ()
17545{
17546return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017547 ;
17548 return 0;
17549}
17550_ACEOF
17551rm -f conftest.$ac_objext conftest$ac_exeext
17552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017553 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017554 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017555 grep -v '^ *+' conftest.er1 >conftest.err
17556 rm -f conftest.er1
17557 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017560 { ac_try='test -z "$ac_cxx_werror_flag"
17561 || test ! -s conftest.err'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17564 ac_status=$?
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; } &&
17567 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17569 (eval $ac_try) 2>&5
17570 ac_status=$?
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); }; }; then
17573 ac_cv_func_dlopen=yes
17574else
17575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017576sed 's/^/| /' conftest.$ac_ext >&5
17577
John Criswell47fdd832003-07-14 16:52:07 +000017578ac_cv_func_dlopen=no
17579fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017580rm -f conftest.err conftest.$ac_objext \
17581 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017582fi
17583echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17584echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17585if test $ac_cv_func_dlopen = yes; then
17586 lt_cv_dlopen="dlopen"
17587else
17588 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17589echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17590if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17591 echo $ECHO_N "(cached) $ECHO_C" >&6
17592else
17593 ac_check_lib_save_LIBS=$LIBS
17594LIBS="-ldl $LIBS"
17595cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017596/* confdefs.h. */
17597_ACEOF
17598cat confdefs.h >>conftest.$ac_ext
17599cat >>conftest.$ac_ext <<_ACEOF
17600/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017601
17602/* Override any gcc2 internal prototype to avoid an error. */
17603#ifdef __cplusplus
17604extern "C"
17605#endif
17606/* We use char because int might match the return type of a gcc2
17607 builtin and then its argument prototype would still apply. */
17608char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017609int
17610main ()
17611{
17612dlopen ();
17613 ;
17614 return 0;
17615}
17616_ACEOF
17617rm -f conftest.$ac_objext conftest$ac_exeext
17618if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017619 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017620 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017621 grep -v '^ *+' conftest.er1 >conftest.err
17622 rm -f conftest.er1
17623 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017626 { ac_try='test -z "$ac_cxx_werror_flag"
17627 || test ! -s conftest.err'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; } &&
17633 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17636 ac_status=$?
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 ac_cv_lib_dl_dlopen=yes
17640else
17641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017642sed 's/^/| /' conftest.$ac_ext >&5
17643
John Criswell47fdd832003-07-14 16:52:07 +000017644ac_cv_lib_dl_dlopen=no
17645fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017646rm -f conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017648LIBS=$ac_check_lib_save_LIBS
17649fi
17650echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17651echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17652if test $ac_cv_lib_dl_dlopen = yes; then
17653 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17654else
17655 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17656echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17657if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17659else
17660 ac_check_lib_save_LIBS=$LIBS
17661LIBS="-lsvld $LIBS"
17662cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017663/* confdefs.h. */
17664_ACEOF
17665cat confdefs.h >>conftest.$ac_ext
17666cat >>conftest.$ac_ext <<_ACEOF
17667/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017668
17669/* Override any gcc2 internal prototype to avoid an error. */
17670#ifdef __cplusplus
17671extern "C"
17672#endif
17673/* We use char because int might match the return type of a gcc2
17674 builtin and then its argument prototype would still apply. */
17675char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017676int
17677main ()
17678{
17679dlopen ();
17680 ;
17681 return 0;
17682}
17683_ACEOF
17684rm -f conftest.$ac_objext conftest$ac_exeext
17685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017686 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017687 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017688 grep -v '^ *+' conftest.er1 >conftest.err
17689 rm -f conftest.er1
17690 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17692 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017693 { ac_try='test -z "$ac_cxx_werror_flag"
17694 || test ! -s conftest.err'
17695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696 (eval $ac_try) 2>&5
17697 ac_status=$?
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); }; } &&
17700 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702 (eval $ac_try) 2>&5
17703 ac_status=$?
17704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705 (exit $ac_status); }; }; then
17706 ac_cv_lib_svld_dlopen=yes
17707else
17708 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017709sed 's/^/| /' conftest.$ac_ext >&5
17710
John Criswell47fdd832003-07-14 16:52:07 +000017711ac_cv_lib_svld_dlopen=no
17712fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017713rm -f conftest.err conftest.$ac_objext \
17714 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017715LIBS=$ac_check_lib_save_LIBS
17716fi
17717echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17718echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17719if test $ac_cv_lib_svld_dlopen = yes; then
17720 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17721else
17722 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17723echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17724if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17725 echo $ECHO_N "(cached) $ECHO_C" >&6
17726else
17727 ac_check_lib_save_LIBS=$LIBS
17728LIBS="-ldld $LIBS"
17729cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017730/* confdefs.h. */
17731_ACEOF
17732cat confdefs.h >>conftest.$ac_ext
17733cat >>conftest.$ac_ext <<_ACEOF
17734/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017735
17736/* Override any gcc2 internal prototype to avoid an error. */
17737#ifdef __cplusplus
17738extern "C"
17739#endif
17740/* We use char because int might match the return type of a gcc2
17741 builtin and then its argument prototype would still apply. */
17742char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017743int
17744main ()
17745{
17746dld_link ();
17747 ;
17748 return 0;
17749}
17750_ACEOF
17751rm -f conftest.$ac_objext conftest$ac_exeext
17752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017753 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017754 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017755 grep -v '^ *+' conftest.er1 >conftest.err
17756 rm -f conftest.er1
17757 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017760 { ac_try='test -z "$ac_cxx_werror_flag"
17761 || test ! -s conftest.err'
17762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17763 (eval $ac_try) 2>&5
17764 ac_status=$?
17765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766 (exit $ac_status); }; } &&
17767 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17769 (eval $ac_try) 2>&5
17770 ac_status=$?
17771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17772 (exit $ac_status); }; }; then
17773 ac_cv_lib_dld_dld_link=yes
17774else
17775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017776sed 's/^/| /' conftest.$ac_ext >&5
17777
John Criswell47fdd832003-07-14 16:52:07 +000017778ac_cv_lib_dld_dld_link=no
17779fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017780rm -f conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017782LIBS=$ac_check_lib_save_LIBS
17783fi
17784echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17785echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17786if test $ac_cv_lib_dld_dld_link = yes; then
17787 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17788fi
17789
17790
17791fi
17792
17793
17794fi
17795
17796
17797fi
17798
17799
17800fi
17801
17802
17803fi
17804
17805 ;;
17806 esac
17807
17808 if test "x$lt_cv_dlopen" != xno; then
17809 enable_dlopen=yes
17810 else
17811 enable_dlopen=no
17812 fi
17813
17814 case $lt_cv_dlopen in
17815 dlopen)
17816 save_CPPFLAGS="$CPPFLAGS"
17817 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17818
17819 save_LDFLAGS="$LDFLAGS"
17820 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17821
17822 save_LIBS="$LIBS"
17823 LIBS="$lt_cv_dlopen_libs $LIBS"
17824
17825 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17826echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17827if test "${lt_cv_dlopen_self+set}" = set; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17829else
17830 if test "$cross_compiling" = yes; then :
17831 lt_cv_dlopen_self=cross
17832else
17833 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17834 lt_status=$lt_dlunknown
17835 cat > conftest.$ac_ext <<EOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000017836#line 17836 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017837#include "confdefs.h"
17838
17839#if HAVE_DLFCN_H
17840#include <dlfcn.h>
17841#endif
17842
17843#include <stdio.h>
17844
17845#ifdef RTLD_GLOBAL
17846# define LT_DLGLOBAL RTLD_GLOBAL
17847#else
17848# ifdef DL_GLOBAL
17849# define LT_DLGLOBAL DL_GLOBAL
17850# else
17851# define LT_DLGLOBAL 0
17852# endif
17853#endif
17854
17855/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17856 find out it does not work in some platform. */
17857#ifndef LT_DLLAZY_OR_NOW
17858# ifdef RTLD_LAZY
17859# define LT_DLLAZY_OR_NOW RTLD_LAZY
17860# else
17861# ifdef DL_LAZY
17862# define LT_DLLAZY_OR_NOW DL_LAZY
17863# else
17864# ifdef RTLD_NOW
17865# define LT_DLLAZY_OR_NOW RTLD_NOW
17866# else
17867# ifdef DL_NOW
17868# define LT_DLLAZY_OR_NOW DL_NOW
17869# else
17870# define LT_DLLAZY_OR_NOW 0
17871# endif
17872# endif
17873# endif
17874# endif
17875#endif
17876
17877#ifdef __cplusplus
17878extern "C" void exit (int);
17879#endif
17880
17881void fnord() { int i=42;}
17882int main ()
17883{
17884 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17885 int status = $lt_dlunknown;
17886
17887 if (self)
17888 {
17889 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17890 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17891 /* dlclose (self); */
17892 }
17893
17894 exit (status);
17895}
17896EOF
17897 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17898 (eval $ac_link) 2>&5
17899 ac_status=$?
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17902 (./conftest; exit; ) 2>/dev/null
17903 lt_status=$?
17904 case x$lt_status in
17905 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17906 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17907 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17908 esac
17909 else :
17910 # compilation failed
17911 lt_cv_dlopen_self=no
17912 fi
17913fi
17914rm -fr conftest*
17915
17916
17917fi
17918echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17919echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17920
17921 if test "x$lt_cv_dlopen_self" = xyes; then
17922 LDFLAGS="$LDFLAGS $link_static_flag"
17923 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17924echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17925if test "${lt_cv_dlopen_self_static+set}" = set; then
17926 echo $ECHO_N "(cached) $ECHO_C" >&6
17927else
17928 if test "$cross_compiling" = yes; then :
17929 lt_cv_dlopen_self_static=cross
17930else
17931 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17932 lt_status=$lt_dlunknown
17933 cat > conftest.$ac_ext <<EOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000017934#line 17934 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017935#include "confdefs.h"
17936
17937#if HAVE_DLFCN_H
17938#include <dlfcn.h>
17939#endif
17940
17941#include <stdio.h>
17942
17943#ifdef RTLD_GLOBAL
17944# define LT_DLGLOBAL RTLD_GLOBAL
17945#else
17946# ifdef DL_GLOBAL
17947# define LT_DLGLOBAL DL_GLOBAL
17948# else
17949# define LT_DLGLOBAL 0
17950# endif
17951#endif
17952
17953/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17954 find out it does not work in some platform. */
17955#ifndef LT_DLLAZY_OR_NOW
17956# ifdef RTLD_LAZY
17957# define LT_DLLAZY_OR_NOW RTLD_LAZY
17958# else
17959# ifdef DL_LAZY
17960# define LT_DLLAZY_OR_NOW DL_LAZY
17961# else
17962# ifdef RTLD_NOW
17963# define LT_DLLAZY_OR_NOW RTLD_NOW
17964# else
17965# ifdef DL_NOW
17966# define LT_DLLAZY_OR_NOW DL_NOW
17967# else
17968# define LT_DLLAZY_OR_NOW 0
17969# endif
17970# endif
17971# endif
17972# endif
17973#endif
17974
17975#ifdef __cplusplus
17976extern "C" void exit (int);
17977#endif
17978
17979void fnord() { int i=42;}
17980int main ()
17981{
17982 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17983 int status = $lt_dlunknown;
17984
17985 if (self)
17986 {
17987 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17988 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17989 /* dlclose (self); */
17990 }
17991
17992 exit (status);
17993}
17994EOF
17995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17996 (eval $ac_link) 2>&5
17997 ac_status=$?
17998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17999 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18000 (./conftest; exit; ) 2>/dev/null
18001 lt_status=$?
18002 case x$lt_status in
18003 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18004 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18005 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18006 esac
18007 else :
18008 # compilation failed
18009 lt_cv_dlopen_self_static=no
18010 fi
18011fi
18012rm -fr conftest*
18013
18014
18015fi
18016echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18017echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18018 fi
18019
18020 CPPFLAGS="$save_CPPFLAGS"
18021 LDFLAGS="$save_LDFLAGS"
18022 LIBS="$save_LIBS"
18023 ;;
18024 esac
18025
18026 case $lt_cv_dlopen_self in
18027 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18028 *) enable_dlopen_self=unknown ;;
18029 esac
18030
18031 case $lt_cv_dlopen_self_static in
18032 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18033 *) enable_dlopen_self_static=unknown ;;
18034 esac
18035fi
18036
18037
18038# The else clause should only fire when bootstrapping the
18039# libtool distribution, otherwise you forgot to ship ltmain.sh
18040# with your package, and you will get complaints that there are
18041# no rules to generate ltmain.sh.
18042if test -f "$ltmain"; then
18043 # See if we are running on zsh, and set the options which allow our commands through
18044 # without removal of \ escapes.
18045 if test -n "${ZSH_VERSION+set}" ; then
18046 setopt NO_GLOB_SUBST
18047 fi
18048 # Now quote all the things that may contain metacharacters while being
18049 # careful not to overquote the AC_SUBSTed values. We take copies of the
18050 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018051 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18052 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018053 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18054 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18055 deplibs_check_method reload_flag reload_cmds need_locks \
18056 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18057 lt_cv_sys_global_symbol_to_c_name_address \
18058 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18059 old_postinstall_cmds old_postuninstall_cmds \
18060 compiler_CXX \
18061 CC_CXX \
18062 LD_CXX \
18063 lt_prog_compiler_wl_CXX \
18064 lt_prog_compiler_pic_CXX \
18065 lt_prog_compiler_static_CXX \
18066 lt_prog_compiler_no_builtin_flag_CXX \
18067 export_dynamic_flag_spec_CXX \
18068 thread_safe_flag_spec_CXX \
18069 whole_archive_flag_spec_CXX \
18070 enable_shared_with_static_runtimes_CXX \
18071 old_archive_cmds_CXX \
18072 old_archive_from_new_cmds_CXX \
18073 predep_objects_CXX \
18074 postdep_objects_CXX \
18075 predeps_CXX \
18076 postdeps_CXX \
18077 compiler_lib_search_path_CXX \
18078 archive_cmds_CXX \
18079 archive_expsym_cmds_CXX \
18080 postinstall_cmds_CXX \
18081 postuninstall_cmds_CXX \
18082 old_archive_from_expsyms_cmds_CXX \
18083 allow_undefined_flag_CXX \
18084 no_undefined_flag_CXX \
18085 export_symbols_cmds_CXX \
18086 hardcode_libdir_flag_spec_CXX \
18087 hardcode_libdir_flag_spec_ld_CXX \
18088 hardcode_libdir_separator_CXX \
18089 hardcode_automatic_CXX \
18090 module_cmds_CXX \
18091 module_expsym_cmds_CXX \
18092 lt_cv_prog_compiler_c_o_CXX \
18093 exclude_expsyms_CXX \
18094 include_expsyms_CXX; do
18095
18096 case $var in
18097 old_archive_cmds_CXX | \
18098 old_archive_from_new_cmds_CXX | \
18099 archive_cmds_CXX | \
18100 archive_expsym_cmds_CXX | \
18101 module_cmds_CXX | \
18102 module_expsym_cmds_CXX | \
18103 old_archive_from_expsyms_cmds_CXX | \
18104 export_symbols_cmds_CXX | \
18105 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18106 postinstall_cmds | postuninstall_cmds | \
18107 old_postinstall_cmds | old_postuninstall_cmds | \
18108 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18109 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018110 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 +000018111 ;;
18112 *)
18113 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18114 ;;
18115 esac
18116 done
18117
18118 case $lt_echo in
18119 *'\$0 --fallback-echo"')
18120 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18121 ;;
18122 esac
18123
18124cfgfile="$ofile"
18125
18126 cat <<__EOF__ >> "$cfgfile"
18127# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18128
18129# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18130
18131# Shell to use when invoking shell scripts.
18132SHELL=$lt_SHELL
18133
18134# Whether or not to build shared libraries.
18135build_libtool_libs=$enable_shared
18136
18137# Whether or not to build static libraries.
18138build_old_libs=$enable_static
18139
18140# Whether or not to add -lc for building shared libraries.
18141build_libtool_need_lc=$archive_cmds_need_lc_CXX
18142
18143# Whether or not to disallow shared libs when runtime libs are static
18144allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18145
18146# Whether or not to optimize for fast installation.
18147fast_install=$enable_fast_install
18148
18149# The host system.
18150host_alias=$host_alias
18151host=$host
18152
18153# An echo program that does not interpret backslashes.
18154echo=$lt_echo
18155
18156# The archiver.
18157AR=$lt_AR
18158AR_FLAGS=$lt_AR_FLAGS
18159
18160# A C compiler.
18161LTCC=$lt_LTCC
18162
18163# A language-specific compiler.
18164CC=$lt_compiler_CXX
18165
18166# Is the compiler the GNU C compiler?
18167with_gcc=$GCC_CXX
18168
18169# An ERE matcher.
18170EGREP=$lt_EGREP
18171
18172# The linker used to build libraries.
18173LD=$lt_LD_CXX
18174
18175# Whether we need hard or soft links.
18176LN_S=$lt_LN_S
18177
18178# A BSD-compatible nm program.
18179NM=$lt_NM
18180
18181# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018182STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018183
18184# Used to examine libraries when file_magic_cmd begins "file"
18185MAGIC_CMD=$MAGIC_CMD
18186
18187# Used on cygwin: DLL creation program.
18188DLLTOOL="$DLLTOOL"
18189
18190# Used on cygwin: object dumper.
18191OBJDUMP="$OBJDUMP"
18192
18193# Used on cygwin: assembler.
18194AS="$AS"
18195
18196# The name of the directory that contains temporary libtool files.
18197objdir=$objdir
18198
18199# How to create reloadable object files.
18200reload_flag=$lt_reload_flag
18201reload_cmds=$lt_reload_cmds
18202
18203# How to pass a linker flag through the compiler.
18204wl=$lt_lt_prog_compiler_wl_CXX
18205
18206# Object file suffix (normally "o").
18207objext="$ac_objext"
18208
18209# Old archive suffix (normally "a").
18210libext="$libext"
18211
18212# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018213shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018214
18215# Executable file suffix (normally "").
18216exeext="$exeext"
18217
18218# Additional compiler flags for building library objects.
18219pic_flag=$lt_lt_prog_compiler_pic_CXX
18220pic_mode=$pic_mode
18221
18222# What is the maximum length of a command?
18223max_cmd_len=$lt_cv_sys_max_cmd_len
18224
18225# Does compiler simultaneously support -c and -o options?
18226compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18227
18228# Must we lock files when doing compilation ?
18229need_locks=$lt_need_locks
18230
18231# Do we need the lib prefix for modules?
18232need_lib_prefix=$need_lib_prefix
18233
18234# Do we need a version for libraries?
18235need_version=$need_version
18236
18237# Whether dlopen is supported.
18238dlopen_support=$enable_dlopen
18239
18240# Whether dlopen of programs is supported.
18241dlopen_self=$enable_dlopen_self
18242
18243# Whether dlopen of statically linked programs is supported.
18244dlopen_self_static=$enable_dlopen_self_static
18245
18246# Compiler flag to prevent dynamic linking.
18247link_static_flag=$lt_lt_prog_compiler_static_CXX
18248
18249# Compiler flag to turn off builtin functions.
18250no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18251
18252# Compiler flag to allow reflexive dlopens.
18253export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18254
18255# Compiler flag to generate shared objects directly from archives.
18256whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18257
18258# Compiler flag to generate thread-safe objects.
18259thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18260
18261# Library versioning type.
18262version_type=$version_type
18263
18264# Format of library name prefix.
18265libname_spec=$lt_libname_spec
18266
18267# List of archive names. First name is the real one, the rest are links.
18268# The last name is the one that the linker finds with -lNAME.
18269library_names_spec=$lt_library_names_spec
18270
18271# The coded name of the library, if different from the real name.
18272soname_spec=$lt_soname_spec
18273
18274# Commands used to build and install an old-style archive.
18275RANLIB=$lt_RANLIB
18276old_archive_cmds=$lt_old_archive_cmds_CXX
18277old_postinstall_cmds=$lt_old_postinstall_cmds
18278old_postuninstall_cmds=$lt_old_postuninstall_cmds
18279
18280# Create an old-style archive from a shared archive.
18281old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18282
18283# Create a temporary old-style archive to link instead of a shared archive.
18284old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18285
18286# Commands used to build and install a shared archive.
18287archive_cmds=$lt_archive_cmds_CXX
18288archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18289postinstall_cmds=$lt_postinstall_cmds
18290postuninstall_cmds=$lt_postuninstall_cmds
18291
18292# Commands used to build a loadable module (assumed same as above if empty)
18293module_cmds=$lt_module_cmds_CXX
18294module_expsym_cmds=$lt_module_expsym_cmds_CXX
18295
18296# Commands to strip libraries.
18297old_striplib=$lt_old_striplib
18298striplib=$lt_striplib
18299
18300# Dependencies to place before the objects being linked to create a
18301# shared library.
18302predep_objects=$lt_predep_objects_CXX
18303
18304# Dependencies to place after the objects being linked to create a
18305# shared library.
18306postdep_objects=$lt_postdep_objects_CXX
18307
18308# Dependencies to place before the objects being linked to create a
18309# shared library.
18310predeps=$lt_predeps_CXX
18311
18312# Dependencies to place after the objects being linked to create a
18313# shared library.
18314postdeps=$lt_postdeps_CXX
18315
18316# The library search path used internally by the compiler when linking
18317# a shared library.
18318compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18319
18320# Method to check whether dependent libraries are shared objects.
18321deplibs_check_method=$lt_deplibs_check_method
18322
18323# Command to use when deplibs_check_method == file_magic.
18324file_magic_cmd=$lt_file_magic_cmd
18325
18326# Flag that allows shared libraries with undefined symbols to be built.
18327allow_undefined_flag=$lt_allow_undefined_flag_CXX
18328
18329# Flag that forces no undefined symbols.
18330no_undefined_flag=$lt_no_undefined_flag_CXX
18331
18332# Commands used to finish a libtool library installation in a directory.
18333finish_cmds=$lt_finish_cmds
18334
18335# Same as above, but a single script fragment to be evaled but not shown.
18336finish_eval=$lt_finish_eval
18337
18338# Take the output of nm and produce a listing of raw symbols and C names.
18339global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18340
18341# Transform the output of nm in a proper C declaration
18342global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18343
18344# Transform the output of nm in a C name address pair
18345global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18346
18347# This is the shared library runtime path variable.
18348runpath_var=$runpath_var
18349
18350# This is the shared library path variable.
18351shlibpath_var=$shlibpath_var
18352
18353# Is shlibpath searched before the hard-coded library search path?
18354shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18355
18356# How to hardcode a shared library path into an executable.
18357hardcode_action=$hardcode_action_CXX
18358
18359# Whether we should hardcode library paths into libraries.
18360hardcode_into_libs=$hardcode_into_libs
18361
18362# Flag to hardcode \$libdir into a binary during linking.
18363# This must work even if \$libdir does not exist.
18364hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18365
18366# If ld is used when linking, flag to hardcode \$libdir into
18367# a binary during linking. This must work even if \$libdir does
18368# not exist.
18369hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18370
18371# Whether we need a single -rpath flag with a separated argument.
18372hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18373
18374# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18375# resulting binary.
18376hardcode_direct=$hardcode_direct_CXX
18377
18378# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18379# resulting binary.
18380hardcode_minus_L=$hardcode_minus_L_CXX
18381
18382# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18383# the resulting binary.
18384hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18385
18386# Set to yes if building a shared library automatically hardcodes DIR into the library
18387# and all subsequent libraries and executables linked against it.
18388hardcode_automatic=$hardcode_automatic_CXX
18389
18390# Variables whose values should be saved in libtool wrapper scripts and
18391# restored at relink time.
18392variables_saved_for_relink="$variables_saved_for_relink"
18393
18394# Whether libtool must link a program against all its dependency libraries.
18395link_all_deplibs=$link_all_deplibs_CXX
18396
18397# Compile-time system search path for libraries
18398sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18399
18400# Run-time system search path for libraries
18401sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18402
18403# Fix the shell variable \$srcfile for the compiler.
18404fix_srcfile_path="$fix_srcfile_path_CXX"
18405
18406# Set to yes if exported symbols are required.
18407always_export_symbols=$always_export_symbols_CXX
18408
18409# The commands to list exported symbols.
18410export_symbols_cmds=$lt_export_symbols_cmds_CXX
18411
18412# The commands to extract the exported symbol list from a shared archive.
18413extract_expsyms_cmds=$lt_extract_expsyms_cmds
18414
18415# Symbols that should not be listed in the preloaded symbols.
18416exclude_expsyms=$lt_exclude_expsyms_CXX
18417
18418# Symbols that must always be exported.
18419include_expsyms=$lt_include_expsyms_CXX
18420
18421# ### END LIBTOOL TAG CONFIG: $tagname
18422
18423__EOF__
18424
18425
18426else
18427 # If there is no Makefile yet, we rely on a make rule to execute
18428 # `config.status --recheck' to rerun these tests and create the
18429 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018430 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18431 if test -f "$ltmain_in"; then
18432 test -f Makefile && make "$ltmain"
18433 fi
John Criswell47fdd832003-07-14 16:52:07 +000018434fi
18435
18436
18437ac_ext=c
18438ac_cpp='$CPP $CPPFLAGS'
18439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18441ac_compiler_gnu=$ac_cv_c_compiler_gnu
18442
18443CC=$lt_save_CC
18444LDCXX=$LD
18445LD=$lt_save_LD
18446GCC=$lt_save_GCC
18447with_gnu_ldcxx=$with_gnu_ld
18448with_gnu_ld=$lt_save_with_gnu_ld
18449lt_cv_path_LDCXX=$lt_cv_path_LD
18450lt_cv_path_LD=$lt_save_path_LD
18451lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18452lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18453
18454 else
18455 tagname=""
18456 fi
18457 ;;
18458
18459 F77)
18460 if test -n "$F77" && test "X$F77" != "Xno"; then
18461
18462ac_ext=f
18463ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18464ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18465ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18466
18467
18468archive_cmds_need_lc_F77=no
18469allow_undefined_flag_F77=
18470always_export_symbols_F77=no
18471archive_expsym_cmds_F77=
18472export_dynamic_flag_spec_F77=
18473hardcode_direct_F77=no
18474hardcode_libdir_flag_spec_F77=
18475hardcode_libdir_flag_spec_ld_F77=
18476hardcode_libdir_separator_F77=
18477hardcode_minus_L_F77=no
18478hardcode_automatic_F77=no
18479module_cmds_F77=
18480module_expsym_cmds_F77=
18481link_all_deplibs_F77=unknown
18482old_archive_cmds_F77=$old_archive_cmds
18483no_undefined_flag_F77=
18484whole_archive_flag_spec_F77=
18485enable_shared_with_static_runtimes_F77=no
18486
18487# Source file extension for f77 test sources.
18488ac_ext=f
18489
18490# Object file extension for compiled f77 test sources.
18491objext=o
18492objext_F77=$objext
18493
18494# Code to be used in simple compile tests
18495lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18496
18497# Code to be used in simple link tests
18498lt_simple_link_test_code=" program t\n end\n"
18499
18500# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18501
18502# If no C compiler was specified, use CC.
18503LTCC=${LTCC-"$CC"}
18504
18505# Allow CC to be a program name with arguments.
18506compiler=$CC
18507
18508
18509# Allow CC to be a program name with arguments.
18510lt_save_CC="$CC"
18511CC=${F77-"f77"}
18512compiler=$CC
18513compiler_F77=$CC
18514cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18515
18516echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18517echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18518echo "$as_me:$LINENO: result: $can_build_shared" >&5
18519echo "${ECHO_T}$can_build_shared" >&6
18520
18521echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18522echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18523test "$can_build_shared" = "no" && enable_shared=no
18524
18525# On AIX, shared libraries and static libraries use the same namespace, and
18526# are all built from PIC.
18527case "$host_os" in
18528aix3*)
18529 test "$enable_shared" = yes && enable_static=no
18530 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000018531 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000018532 postinstall_cmds='$RANLIB $lib'
18533 fi
18534 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018535aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000018536 test "$enable_shared" = yes && enable_static=no
18537 ;;
18538esac
18539echo "$as_me:$LINENO: result: $enable_shared" >&5
18540echo "${ECHO_T}$enable_shared" >&6
18541
18542echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18543echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18544# Make sure either enable_shared or enable_static is yes.
18545test "$enable_shared" = yes || enable_static=yes
18546echo "$as_me:$LINENO: result: $enable_static" >&5
18547echo "${ECHO_T}$enable_static" >&6
18548
18549test "$ld_shlibs_F77" = no && can_build_shared=no
18550
18551GCC_F77="$G77"
18552LD_F77="$LD"
18553
18554lt_prog_compiler_wl_F77=
18555lt_prog_compiler_pic_F77=
18556lt_prog_compiler_static_F77=
18557
18558echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18559echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18560
18561 if test "$GCC" = yes; then
18562 lt_prog_compiler_wl_F77='-Wl,'
18563 lt_prog_compiler_static_F77='-static'
18564
18565 case $host_os in
18566 aix*)
18567 # All AIX code is PIC.
18568 if test "$host_cpu" = ia64; then
18569 # AIX 5 now supports IA64 processor
18570 lt_prog_compiler_static_F77='-Bstatic'
18571 fi
18572 ;;
18573
18574 amigaos*)
18575 # FIXME: we need at least 68020 code to build shared libraries, but
18576 # adding the `-m68020' flag to GCC prevents building anything better,
18577 # like `-m68040'.
18578 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18579 ;;
18580
18581 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18582 # PIC is the default for these OSes.
18583 ;;
18584
18585 mingw* | pw32* | os2*)
18586 # This hack is so that the source file can tell whether it is being
18587 # built for inclusion in a dll (and should export symbols for example).
18588 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18589 ;;
18590
18591 darwin* | rhapsody*)
18592 # PIC is the default on this platform
18593 # Common symbols not allowed in MH_DYLIB files
18594 lt_prog_compiler_pic_F77='-fno-common'
18595 ;;
18596
18597 msdosdjgpp*)
18598 # Just because we use GCC doesn't mean we suddenly get shared libraries
18599 # on systems that don't support them.
18600 lt_prog_compiler_can_build_shared_F77=no
18601 enable_shared=no
18602 ;;
18603
18604 sysv4*MP*)
18605 if test -d /usr/nec; then
18606 lt_prog_compiler_pic_F77=-Kconform_pic
18607 fi
18608 ;;
18609
18610 hpux*)
18611 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18612 # not for PA HP-UX.
18613 case "$host_cpu" in
18614 hppa*64*|ia64*)
18615 # +Z the default
18616 ;;
18617 *)
18618 lt_prog_compiler_pic_F77='-fPIC'
18619 ;;
18620 esac
18621 ;;
18622
18623 *)
18624 lt_prog_compiler_pic_F77='-fPIC'
18625 ;;
18626 esac
18627 else
18628 # PORTME Check for flag to pass linker flags through the system compiler.
18629 case $host_os in
18630 aix*)
18631 lt_prog_compiler_wl_F77='-Wl,'
18632 if test "$host_cpu" = ia64; then
18633 # AIX 5 now supports IA64 processor
18634 lt_prog_compiler_static_F77='-Bstatic'
18635 else
18636 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18637 fi
18638 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018639 darwin*)
18640 # PIC is the default on this platform
18641 # Common symbols not allowed in MH_DYLIB files
18642 case "$cc_basename" in
18643 xlc*)
18644 lt_prog_compiler_pic_F77='-qnocommon'
18645 lt_prog_compiler_wl_F77='-Wl,'
18646 ;;
18647 esac
18648 ;;
John Criswell47fdd832003-07-14 16:52:07 +000018649
18650 mingw* | pw32* | os2*)
18651 # This hack is so that the source file can tell whether it is being
18652 # built for inclusion in a dll (and should export symbols for example).
18653 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18654 ;;
18655
18656 hpux9* | hpux10* | hpux11*)
18657 lt_prog_compiler_wl_F77='-Wl,'
18658 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18659 # not for PA HP-UX.
18660 case "$host_cpu" in
18661 hppa*64*|ia64*)
18662 # +Z the default
18663 ;;
18664 *)
18665 lt_prog_compiler_pic_F77='+Z'
18666 ;;
18667 esac
18668 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18669 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18670 ;;
18671
18672 irix5* | irix6* | nonstopux*)
18673 lt_prog_compiler_wl_F77='-Wl,'
18674 # PIC (with -KPIC) is the default.
18675 lt_prog_compiler_static_F77='-non_shared'
18676 ;;
18677
18678 newsos6)
18679 lt_prog_compiler_pic_F77='-KPIC'
18680 lt_prog_compiler_static_F77='-Bstatic'
18681 ;;
18682
18683 linux*)
18684 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000018685 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000018686 lt_prog_compiler_wl_F77='-Wl,'
18687 lt_prog_compiler_pic_F77='-KPIC'
18688 lt_prog_compiler_static_F77='-static'
18689 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000018690 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000018691 lt_prog_compiler_wl_F77='-Wl,'
18692 # All Alpha code is PIC.
18693 lt_prog_compiler_static_F77='-non_shared'
18694 ;;
18695 esac
18696 ;;
18697
18698 osf3* | osf4* | osf5*)
18699 lt_prog_compiler_wl_F77='-Wl,'
18700 # All OSF/1 code is PIC.
18701 lt_prog_compiler_static_F77='-non_shared'
18702 ;;
18703
18704 sco3.2v5*)
18705 lt_prog_compiler_pic_F77='-Kpic'
18706 lt_prog_compiler_static_F77='-dn'
18707 ;;
18708
18709 solaris*)
18710 lt_prog_compiler_wl_F77='-Wl,'
18711 lt_prog_compiler_pic_F77='-KPIC'
18712 lt_prog_compiler_static_F77='-Bstatic'
18713 ;;
18714
18715 sunos4*)
18716 lt_prog_compiler_wl_F77='-Qoption ld '
18717 lt_prog_compiler_pic_F77='-PIC'
18718 lt_prog_compiler_static_F77='-Bstatic'
18719 ;;
18720
18721 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18722 lt_prog_compiler_wl_F77='-Wl,'
18723 lt_prog_compiler_pic_F77='-KPIC'
18724 lt_prog_compiler_static_F77='-Bstatic'
18725 ;;
18726
18727 sysv4*MP*)
18728 if test -d /usr/nec ;then
18729 lt_prog_compiler_pic_F77='-Kconform_pic'
18730 lt_prog_compiler_static_F77='-Bstatic'
18731 fi
18732 ;;
18733
18734 uts4*)
18735 lt_prog_compiler_pic_F77='-pic'
18736 lt_prog_compiler_static_F77='-Bstatic'
18737 ;;
18738
18739 *)
18740 lt_prog_compiler_can_build_shared_F77=no
18741 ;;
18742 esac
18743 fi
18744
18745echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18746echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18747
18748#
18749# Check to make sure the PIC flag actually works.
18750#
18751if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000018752
18753echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018754echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18755if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18757else
18758 lt_prog_compiler_pic_works_F77=no
18759 ac_outfile=conftest.$ac_objext
18760 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18761 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18762 # Insert the option either (1) after the last *FLAGS variable, or
18763 # (2) before a word containing "conftest.", or (3) at the end.
18764 # Note that $ac_compile itself does not contain backslashes and begins
18765 # with a dollar sign (not a hyphen), so the echo should work correctly.
18766 # The option is referenced via a variable to avoid confusing sed.
18767 lt_compile=`echo "$ac_compile" | $SED \
18768 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18769 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18770 -e 's:$: $lt_compiler_flag:'`
Reid Spencer2bc7bd52004-11-29 12:29:58 +000018771 (eval echo "\"\$as_me:18771: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018772 (eval "$lt_compile" 2>conftest.err)
18773 ac_status=$?
18774 cat conftest.err >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000018775 echo "$as_me:18775: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018776 if (exit $ac_status) && test -s "$ac_outfile"; then
18777 # The compiler can only warn and ignore the option if not recognized
18778 # So say no if there are warnings
18779 if test ! -s conftest.err; then
18780 lt_prog_compiler_pic_works_F77=yes
18781 fi
18782 fi
18783 $rm conftest*
18784
18785fi
18786echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18787echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18788
18789if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18790 case $lt_prog_compiler_pic_F77 in
18791 "" | " "*) ;;
18792 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18793 esac
18794else
18795 lt_prog_compiler_pic_F77=
18796 lt_prog_compiler_can_build_shared_F77=no
18797fi
18798
18799fi
18800case "$host_os" in
18801 # For platforms which do not support PIC, -DPIC is meaningless:
18802 *djgpp*)
18803 lt_prog_compiler_pic_F77=
18804 ;;
18805 *)
18806 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18807 ;;
18808esac
18809
18810echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18811echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18812if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18813 echo $ECHO_N "(cached) $ECHO_C" >&6
18814else
18815 lt_cv_prog_compiler_c_o_F77=no
18816 $rm -r conftest 2>/dev/null
18817 mkdir conftest
18818 cd conftest
18819 mkdir out
18820 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18821
John Criswell47fdd832003-07-14 16:52:07 +000018822 lt_compiler_flag="-o out/conftest2.$ac_objext"
18823 # Insert the option either (1) after the last *FLAGS variable, or
18824 # (2) before a word containing "conftest.", or (3) at the end.
18825 # Note that $ac_compile itself does not contain backslashes and begins
18826 # with a dollar sign (not a hyphen), so the echo should work correctly.
18827 lt_compile=`echo "$ac_compile" | $SED \
18828 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18830 -e 's:$: $lt_compiler_flag:'`
Reid Spencer2bc7bd52004-11-29 12:29:58 +000018831 (eval echo "\"\$as_me:18831: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000018832 (eval "$lt_compile" 2>out/conftest.err)
18833 ac_status=$?
18834 cat out/conftest.err >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000018835 echo "$as_me:18835: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000018836 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18837 then
18838 # The compiler can only warn and ignore the option if not recognized
18839 # So say no if there are warnings
18840 if test ! -s out/conftest.err; then
18841 lt_cv_prog_compiler_c_o_F77=yes
18842 fi
18843 fi
18844 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000018845 $rm conftest*
18846 # SGI C++ compiler will create directory out/ii_files/ for
18847 # template instantiation
18848 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18849 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000018850 cd ..
18851 rmdir conftest
18852 $rm conftest*
18853
18854fi
18855echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18856echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18857
18858
18859hard_links="nottested"
18860if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18861 # do not overwrite the value of need_locks provided by the user
18862 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18863echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18864 hard_links=yes
18865 $rm conftest*
18866 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18867 touch conftest.a
18868 ln conftest.a conftest.b 2>&5 || hard_links=no
18869 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18870 echo "$as_me:$LINENO: result: $hard_links" >&5
18871echo "${ECHO_T}$hard_links" >&6
18872 if test "$hard_links" = no; then
18873 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18874echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18875 need_locks=warn
18876 fi
18877else
18878 need_locks=no
18879fi
18880
18881echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18882echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18883
18884 runpath_var=
18885 allow_undefined_flag_F77=
18886 enable_shared_with_static_runtimes_F77=no
18887 archive_cmds_F77=
18888 archive_expsym_cmds_F77=
18889 old_archive_From_new_cmds_F77=
18890 old_archive_from_expsyms_cmds_F77=
18891 export_dynamic_flag_spec_F77=
18892 whole_archive_flag_spec_F77=
18893 thread_safe_flag_spec_F77=
18894 hardcode_libdir_flag_spec_F77=
18895 hardcode_libdir_flag_spec_ld_F77=
18896 hardcode_libdir_separator_F77=
18897 hardcode_direct_F77=no
18898 hardcode_minus_L_F77=no
18899 hardcode_shlibpath_var_F77=unsupported
18900 link_all_deplibs_F77=unknown
18901 hardcode_automatic_F77=no
18902 module_cmds_F77=
18903 module_expsym_cmds_F77=
18904 always_export_symbols_F77=no
18905 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18906 # include_expsyms should be a list of space-separated symbols to be *always*
18907 # included in the symbol list
18908 include_expsyms_F77=
18909 # exclude_expsyms can be an extended regexp of symbols to exclude
18910 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18911 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18912 # as well as any symbol that contains `d'.
18913 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
18914 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18915 # platforms (ab)use it in PIC code, but their linkers get confused if
18916 # the symbol is explicitly referenced. Since portable code cannot
18917 # rely on this symbol name, it's probably fine to never include it in
18918 # preloaded symbol tables.
18919 extract_expsyms_cmds=
18920
18921 case $host_os in
18922 cygwin* | mingw* | pw32*)
18923 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18924 # When not using gcc, we currently assume that we are using
18925 # Microsoft Visual C++.
18926 if test "$GCC" != yes; then
18927 with_gnu_ld=no
18928 fi
18929 ;;
18930 openbsd*)
18931 with_gnu_ld=no
18932 ;;
18933 esac
18934
18935 ld_shlibs_F77=yes
18936 if test "$with_gnu_ld" = yes; then
18937 # If archive_cmds runs LD, not CC, wlarc should be empty
18938 wlarc='${wl}'
18939
18940 # See if GNU ld supports shared libraries.
18941 case $host_os in
18942 aix3* | aix4* | aix5*)
18943 # On AIX/PPC, the GNU linker is very broken
18944 if test "$host_cpu" != ia64; then
18945 ld_shlibs_F77=no
18946 cat <<EOF 1>&2
18947
18948*** Warning: the GNU linker, at least up to release 2.9.1, is reported
18949*** to be unable to reliably create shared libraries on AIX.
18950*** Therefore, libtool is disabling shared libraries support. If you
18951*** really care for shared libraries, you may want to modify your PATH
18952*** so that a non-GNU linker is found, and then restart.
18953
18954EOF
18955 fi
18956 ;;
18957
18958 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000018959 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 +000018960 hardcode_libdir_flag_spec_F77='-L$libdir'
18961 hardcode_minus_L_F77=yes
18962
18963 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
18964 # that the semantics of dynamic libraries on AmigaOS, at least up
18965 # to version 4, is to share data among multiple programs linked
18966 # with the same dynamic library. Since this doesn't match the
18967 # behavior of shared libraries on other platforms, we can't use
18968 # them.
18969 ld_shlibs_F77=no
18970 ;;
18971
18972 beos*)
18973 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18974 allow_undefined_flag_F77=unsupported
18975 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18976 # support --undefined. This deserves some investigation. FIXME
18977 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18978 else
18979 ld_shlibs_F77=no
18980 fi
18981 ;;
18982
18983 cygwin* | mingw* | pw32*)
18984 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18985 # as there is no search path for DLLs.
18986 hardcode_libdir_flag_spec_F77='-L$libdir'
18987 allow_undefined_flag_F77=unsupported
18988 always_export_symbols_F77=no
18989 enable_shared_with_static_runtimes_F77=yes
18990 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
18991
18992 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
18993 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
18994 # If the export-symbols file already is a .def file (1st line
18995 # is EXPORTS), use it as is; otherwise, prepend...
18996 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18997 cp $export_symbols $output_objdir/$soname.def;
18998 else
18999 echo EXPORTS > $output_objdir/$soname.def;
19000 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000019001 fi~
19002 $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 +000019003 else
19004 ld_shlibs=no
19005 fi
19006 ;;
19007
19008 netbsd*)
19009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19010 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19011 wlarc=
19012 else
19013 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19014 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19015 fi
19016 ;;
19017
19018 solaris* | sysv5*)
19019 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19020 ld_shlibs_F77=no
19021 cat <<EOF 1>&2
19022
19023*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19024*** create shared libraries on Solaris systems. Therefore, libtool
19025*** is disabling shared libraries support. We urge you to upgrade GNU
19026*** binutils to release 2.9.1 or newer. Another option is to modify
19027*** your PATH or compiler configuration so that the native linker is
19028*** used, and then restart.
19029
19030EOF
19031 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19032 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19033 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19034 else
19035 ld_shlibs_F77=no
19036 fi
19037 ;;
19038
19039 sunos4*)
19040 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19041 wlarc=
19042 hardcode_direct_F77=yes
19043 hardcode_shlibpath_var_F77=no
19044 ;;
19045
Reid Spencer2706f8c2004-09-19 23:53:36 +000019046 linux*)
19047 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19048 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19049 archive_cmds_F77="$tmp_archive_cmds"
19050 supports_anon_versioning=no
19051 case `$LD -v 2>/dev/null` in
19052 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19053 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19054 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19055 *\ 2.11.*) ;; # other 2.11 versions
19056 *) supports_anon_versioning=yes ;;
19057 esac
19058 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019059 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19060cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19061$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000019062 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19063 else
19064 archive_expsym_cmds_F77="$tmp_archive_cmds"
19065 fi
19066 else
19067 ld_shlibs_F77=no
19068 fi
19069 ;;
19070
John Criswell47fdd832003-07-14 16:52:07 +000019071 *)
19072 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19073 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19074 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19075 else
19076 ld_shlibs_F77=no
19077 fi
19078 ;;
19079 esac
19080
19081 if test "$ld_shlibs_F77" = yes; then
19082 runpath_var=LD_RUN_PATH
19083 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19084 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19085 # ancient GNU ld didn't support --whole-archive et. al.
19086 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19087 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19088 else
19089 whole_archive_flag_spec_F77=
19090 fi
19091 fi
19092 else
19093 # PORTME fill in a description of your system's linker (not GNU ld)
19094 case $host_os in
19095 aix3*)
19096 allow_undefined_flag_F77=unsupported
19097 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000019098 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 +000019099 # Note: this linker hardcodes the directories in LIBPATH if there
19100 # are no directories specified by -L.
19101 hardcode_minus_L_F77=yes
19102 if test "$GCC" = yes && test -z "$link_static_flag"; then
19103 # Neither direct hardcoding nor static linking is supported with a
19104 # broken collect2.
19105 hardcode_direct_F77=unsupported
19106 fi
19107 ;;
19108
19109 aix4* | aix5*)
19110 if test "$host_cpu" = ia64; then
19111 # On IA64, the linker does run time linking by default, so we don't
19112 # have to do anything special.
19113 aix_use_runtimelinking=no
19114 exp_sym_flag='-Bexport'
19115 no_entry_flag=""
19116 else
19117 # If we're using GNU nm, then we don't want the "-C" option.
19118 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19119 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19120 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'
19121 else
19122 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'
19123 fi
19124 aix_use_runtimelinking=no
19125
19126 # Test if we are trying to use run time linking or normal
19127 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19128 # need to do runtime linking.
19129 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19130 for ld_flag in $LDFLAGS; do
19131 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19132 aix_use_runtimelinking=yes
19133 break
19134 fi
19135 done
19136 esac
19137
19138 exp_sym_flag='-bexport'
19139 no_entry_flag='-bnoentry'
19140 fi
19141
19142 # When large executables or shared objects are built, AIX ld can
19143 # have problems creating the table of contents. If linking a library
19144 # or program results in "error TOC overflow" add -mminimal-toc to
19145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19147
19148 archive_cmds_F77=''
19149 hardcode_direct_F77=yes
19150 hardcode_libdir_separator_F77=':'
19151 link_all_deplibs_F77=yes
19152
19153 if test "$GCC" = yes; then
19154 case $host_os in aix4.012|aix4.012.*)
19155 # We only want to do this on AIX 4.2 and lower, the check
19156 # below for broken collect2 doesn't work under 4.3+
19157 collect2name=`${CC} -print-prog-name=collect2`
19158 if test -f "$collect2name" && \
19159 strings "$collect2name" | grep resolve_lib_name >/dev/null
19160 then
19161 # We have reworked collect2
19162 hardcode_direct_F77=yes
19163 else
19164 # We have old collect2
19165 hardcode_direct_F77=unsupported
19166 # It fails to find uninstalled libraries when the uninstalled
19167 # path is not listed in the libpath. Setting hardcode_minus_L
19168 # to unsupported forces relinking
19169 hardcode_minus_L_F77=yes
19170 hardcode_libdir_flag_spec_F77='-L$libdir'
19171 hardcode_libdir_separator_F77=
19172 fi
19173 esac
19174 shared_flag='-shared'
19175 else
19176 # not using gcc
19177 if test "$host_cpu" = ia64; then
19178 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19179 # chokes on -Wl,-G. The following line is correct:
19180 shared_flag='-G'
19181 else
19182 if test "$aix_use_runtimelinking" = yes; then
19183 shared_flag='${wl}-G'
19184 else
19185 shared_flag='${wl}-bM:SRE'
19186 fi
19187 fi
19188 fi
19189
19190 # It seems that -bexpall does not export symbols beginning with
19191 # underscore (_), so it is better to generate a list of symbols to export.
19192 always_export_symbols_F77=yes
19193 if test "$aix_use_runtimelinking" = yes; then
19194 # Warning - without using the other runtime loading flags (-brtl),
19195 # -berok will link without error, but may produce a broken library.
19196 allow_undefined_flag_F77='-berok'
19197 # Determine the default libpath from the value encoded in an empty executable.
19198 cat >conftest.$ac_ext <<_ACEOF
19199 program main
19200
19201 end
19202_ACEOF
19203rm -f conftest.$ac_objext conftest$ac_exeext
19204if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019205 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019206 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019207 grep -v '^ *+' conftest.er1 >conftest.err
19208 rm -f conftest.er1
19209 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019212 { ac_try='test -z "$ac_f77_werror_flag"
19213 || test ! -s conftest.err'
19214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19215 (eval $ac_try) 2>&5
19216 ac_status=$?
19217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218 (exit $ac_status); }; } &&
19219 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19221 (eval $ac_try) 2>&5
19222 ac_status=$?
19223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19224 (exit $ac_status); }; }; then
19225
19226aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19227}'`
19228# Check for a 64-bit object if we didn't find anything.
19229if 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; }
19230}'`; fi
19231else
19232 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019233sed 's/^/| /' conftest.$ac_ext >&5
19234
John Criswell47fdd832003-07-14 16:52:07 +000019235fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019236rm -f conftest.err conftest.$ac_objext \
19237 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019238if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19239
19240 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19241 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"
19242 else
19243 if test "$host_cpu" = ia64; then
19244 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19245 allow_undefined_flag_F77="-z nodefs"
19246 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"
19247 else
19248 # Determine the default libpath from the value encoded in an empty executable.
19249 cat >conftest.$ac_ext <<_ACEOF
19250 program main
19251
19252 end
19253_ACEOF
19254rm -f conftest.$ac_objext conftest$ac_exeext
19255if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019256 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000019257 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019258 grep -v '^ *+' conftest.er1 >conftest.err
19259 rm -f conftest.er1
19260 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000019261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019263 { ac_try='test -z "$ac_f77_werror_flag"
19264 || test ! -s conftest.err'
19265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19266 (eval $ac_try) 2>&5
19267 ac_status=$?
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; } &&
19270 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000019271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19272 (eval $ac_try) 2>&5
19273 ac_status=$?
19274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19275 (exit $ac_status); }; }; then
19276
19277aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19278}'`
19279# Check for a 64-bit object if we didn't find anything.
19280if 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; }
19281}'`; fi
19282else
19283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019284sed 's/^/| /' conftest.$ac_ext >&5
19285
John Criswell47fdd832003-07-14 16:52:07 +000019286fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019287rm -f conftest.err conftest.$ac_objext \
19288 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000019289if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19290
19291 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19292 # Warning - without using the other run time loading flags,
19293 # -berok will link without error, but may produce a broken library.
19294 no_undefined_flag_F77=' ${wl}-bernotok'
19295 allow_undefined_flag_F77=' ${wl}-berok'
19296 # -bexpall does not export symbols beginning with underscore (_)
19297 always_export_symbols_F77=yes
19298 # Exported symbols can be pulled into shared objects from archives
19299 whole_archive_flag_spec_F77=' '
19300 archive_cmds_need_lc_F77=yes
19301 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000019302 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 +000019303 fi
19304 fi
19305 ;;
19306
19307 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000019308 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 +000019309 hardcode_libdir_flag_spec_F77='-L$libdir'
19310 hardcode_minus_L_F77=yes
19311 # see comment about different semantics on the GNU ld section
19312 ld_shlibs_F77=no
19313 ;;
19314
Reid Spencer2706f8c2004-09-19 23:53:36 +000019315 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019316 export_dynamic_flag_spec_F77=-rdynamic
19317 ;;
19318
19319 cygwin* | mingw* | pw32*)
19320 # When not using gcc, we currently assume that we are using
19321 # Microsoft Visual C++.
19322 # hardcode_libdir_flag_spec is actually meaningless, as there is
19323 # no search path for DLLs.
19324 hardcode_libdir_flag_spec_F77=' '
19325 allow_undefined_flag_F77=unsupported
19326 # Tell ltmain to make .lib files, not .a files.
19327 libext=lib
19328 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019329 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019330 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000019331 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 +000019332 # The linker will automatically build a .lib file if we build a DLL.
19333 old_archive_From_new_cmds_F77='true'
19334 # FIXME: Should let the user specify the lib program.
19335 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19336 fix_srcfile_path='`cygpath -w "$srcfile"`'
19337 enable_shared_with_static_runtimes_F77=yes
19338 ;;
19339
19340 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000019341 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019342 rhapsody* | darwin1.[012])
19343 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
19344 ;;
19345 *) # Darwin 1.3 on
19346 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19347 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19348 else
19349 case ${MACOSX_DEPLOYMENT_TARGET} in
19350 10.[012])
19351 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19352 ;;
19353 10.*)
19354 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
19355 ;;
19356 esac
19357 fi
19358 ;;
John Criswell47fdd832003-07-14 16:52:07 +000019359 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000019360 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000019361 hardcode_direct_F77=no
19362 hardcode_automatic_F77=yes
19363 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000019364 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000019365 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000019366 if test "$GCC" = yes ; then
19367 output_verbose_link_cmd='echo'
19368 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19369 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19370 # 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 +000019371 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}'
19372 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 +000019373 else
19374 case "$cc_basename" in
19375 xlc*)
19376 output_verbose_link_cmd='echo'
19377 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
19378 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19379 # 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 +000019380 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}'
19381 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 +000019382 ;;
19383 *)
19384 ld_shlibs_F77=no
19385 ;;
19386 esac
John Criswell47fdd832003-07-14 16:52:07 +000019387 fi
19388 ;;
19389
19390 dgux*)
19391 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19392 hardcode_libdir_flag_spec_F77='-L$libdir'
19393 hardcode_shlibpath_var_F77=no
19394 ;;
19395
19396 freebsd1*)
19397 ld_shlibs_F77=no
19398 ;;
19399
19400 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19401 # support. Future versions do this automatically, but an explicit c++rt0.o
19402 # does not break anything, and helps significantly (at the cost of a little
19403 # extra space).
19404 freebsd2.2*)
19405 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19406 hardcode_libdir_flag_spec_F77='-R$libdir'
19407 hardcode_direct_F77=yes
19408 hardcode_shlibpath_var_F77=no
19409 ;;
19410
19411 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19412 freebsd2*)
19413 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19414 hardcode_direct_F77=yes
19415 hardcode_minus_L_F77=yes
19416 hardcode_shlibpath_var_F77=no
19417 ;;
19418
19419 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019420 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000019421 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19422 hardcode_libdir_flag_spec_F77='-R$libdir'
19423 hardcode_direct_F77=yes
19424 hardcode_shlibpath_var_F77=no
19425 ;;
19426
19427 hpux9*)
19428 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000019429 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 +000019430 else
Reid Spencer177dbe22004-10-13 01:01:03 +000019431 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 +000019432 fi
19433 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19434 hardcode_libdir_separator_F77=:
19435 hardcode_direct_F77=yes
19436
19437 # hardcode_minus_L: Not really in the search PATH,
19438 # but as the default location of the library.
19439 hardcode_minus_L_F77=yes
19440 export_dynamic_flag_spec_F77='${wl}-E'
19441 ;;
19442
19443 hpux10* | hpux11*)
19444 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19445 case "$host_cpu" in
19446 hppa*64*|ia64*)
19447 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19448 ;;
19449 *)
19450 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19451 ;;
19452 esac
19453 else
19454 case "$host_cpu" in
19455 hppa*64*|ia64*)
19456 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19457 ;;
19458 *)
19459 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19460 ;;
19461 esac
19462 fi
19463 if test "$with_gnu_ld" = no; then
19464 case "$host_cpu" in
19465 hppa*64*)
19466 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19467 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19468 hardcode_libdir_separator_F77=:
19469 hardcode_direct_F77=no
19470 hardcode_shlibpath_var_F77=no
19471 ;;
19472 ia64*)
19473 hardcode_libdir_flag_spec_F77='-L$libdir'
19474 hardcode_direct_F77=no
19475 hardcode_shlibpath_var_F77=no
19476
19477 # hardcode_minus_L: Not really in the search PATH,
19478 # but as the default location of the library.
19479 hardcode_minus_L_F77=yes
19480 ;;
19481 *)
19482 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19483 hardcode_libdir_separator_F77=:
19484 hardcode_direct_F77=yes
19485 export_dynamic_flag_spec_F77='${wl}-E'
19486
19487 # hardcode_minus_L: Not really in the search PATH,
19488 # but as the default location of the library.
19489 hardcode_minus_L_F77=yes
19490 ;;
19491 esac
19492 fi
19493 ;;
19494
19495 irix5* | irix6* | nonstopux*)
19496 if test "$GCC" = yes; then
19497 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'
19498 else
19499 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'
19500 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19501 fi
19502 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19503 hardcode_libdir_separator_F77=:
19504 link_all_deplibs_F77=yes
19505 ;;
19506
19507 netbsd*)
19508 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19509 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19510 else
19511 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19512 fi
19513 hardcode_libdir_flag_spec_F77='-R$libdir'
19514 hardcode_direct_F77=yes
19515 hardcode_shlibpath_var_F77=no
19516 ;;
19517
19518 newsos6)
19519 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19520 hardcode_direct_F77=yes
19521 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19522 hardcode_libdir_separator_F77=:
19523 hardcode_shlibpath_var_F77=no
19524 ;;
19525
19526 openbsd*)
19527 hardcode_direct_F77=yes
19528 hardcode_shlibpath_var_F77=no
19529 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19530 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000019531 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 +000019532 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19533 export_dynamic_flag_spec_F77='${wl}-E'
19534 else
19535 case $host_os in
19536 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19537 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19538 hardcode_libdir_flag_spec_F77='-R$libdir'
19539 ;;
19540 *)
19541 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19542 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19543 ;;
19544 esac
19545 fi
19546 ;;
19547
19548 os2*)
19549 hardcode_libdir_flag_spec_F77='-L$libdir'
19550 hardcode_minus_L_F77=yes
19551 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000019552 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 +000019553 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19554 ;;
19555
19556 osf3*)
19557 if test "$GCC" = yes; then
19558 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19559 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'
19560 else
19561 allow_undefined_flag_F77=' -expect_unresolved \*'
19562 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'
19563 fi
19564 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19565 hardcode_libdir_separator_F77=:
19566 ;;
19567
19568 osf4* | osf5*) # as osf3* with the addition of -msym flag
19569 if test "$GCC" = yes; then
19570 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19571 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'
19572 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19573 else
19574 allow_undefined_flag_F77=' -expect_unresolved \*'
19575 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 +000019576 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~
19577 $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'
19578
John Criswell47fdd832003-07-14 16:52:07 +000019579 # Both c and cxx compiler support -rpath directly
19580 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19581 fi
19582 hardcode_libdir_separator_F77=:
19583 ;;
19584
19585 sco3.2v5*)
19586 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19587 hardcode_shlibpath_var_F77=no
19588 export_dynamic_flag_spec_F77='${wl}-Bexport'
19589 runpath_var=LD_RUN_PATH
19590 hardcode_runpath_var=yes
19591 ;;
19592
19593 solaris*)
19594 no_undefined_flag_F77=' -z text'
19595 if test "$GCC" = yes; then
19596 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019597 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19598 $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 +000019599 else
19600 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019601 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19602 $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 +000019603 fi
19604 hardcode_libdir_flag_spec_F77='-R$libdir'
19605 hardcode_shlibpath_var_F77=no
19606 case $host_os in
19607 solaris2.[0-5] | solaris2.[0-5].*) ;;
19608 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19609 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19610 esac
19611 link_all_deplibs_F77=yes
19612 ;;
19613
19614 sunos4*)
19615 if test "x$host_vendor" = xsequent; then
19616 # Use $CC to link under sequent, because it throws in some extra .o
19617 # files that make .init and .fini sections work.
19618 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19619 else
19620 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19621 fi
19622 hardcode_libdir_flag_spec_F77='-L$libdir'
19623 hardcode_direct_F77=yes
19624 hardcode_minus_L_F77=yes
19625 hardcode_shlibpath_var_F77=no
19626 ;;
19627
19628 sysv4)
19629 case $host_vendor in
19630 sni)
19631 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19632 hardcode_direct_F77=yes # is this really true???
19633 ;;
19634 siemens)
19635 ## LD is ld it makes a PLAMLIB
19636 ## CC just makes a GrossModule.
19637 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19638 reload_cmds_F77='$CC -r -o $output$reload_objs'
19639 hardcode_direct_F77=no
19640 ;;
19641 motorola)
19642 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19643 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19644 ;;
19645 esac
19646 runpath_var='LD_RUN_PATH'
19647 hardcode_shlibpath_var_F77=no
19648 ;;
19649
19650 sysv4.3*)
19651 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19652 hardcode_shlibpath_var_F77=no
19653 export_dynamic_flag_spec_F77='-Bexport'
19654 ;;
19655
19656 sysv4*MP*)
19657 if test -d /usr/nec; then
19658 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19659 hardcode_shlibpath_var_F77=no
19660 runpath_var=LD_RUN_PATH
19661 hardcode_runpath_var=yes
19662 ld_shlibs_F77=yes
19663 fi
19664 ;;
19665
19666 sysv4.2uw2*)
19667 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19668 hardcode_direct_F77=yes
19669 hardcode_minus_L_F77=no
19670 hardcode_shlibpath_var_F77=no
19671 hardcode_runpath_var=yes
19672 runpath_var=LD_RUN_PATH
19673 ;;
19674
19675 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19676 no_undefined_flag_F77='${wl}-z ${wl}text'
19677 if test "$GCC" = yes; then
19678 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19679 else
19680 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19681 fi
19682 runpath_var='LD_RUN_PATH'
19683 hardcode_shlibpath_var_F77=no
19684 ;;
19685
19686 sysv5*)
19687 no_undefined_flag_F77=' -z text'
19688 # $CC -shared without GNU ld will not create a library from C++
19689 # object files and a static libstdc++, better avoid it by now
19690 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000019691 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19692 $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 +000019693 hardcode_libdir_flag_spec_F77=
19694 hardcode_shlibpath_var_F77=no
19695 runpath_var='LD_RUN_PATH'
19696 ;;
19697
19698 uts4*)
19699 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19700 hardcode_libdir_flag_spec_F77='-L$libdir'
19701 hardcode_shlibpath_var_F77=no
19702 ;;
19703
19704 *)
19705 ld_shlibs_F77=no
19706 ;;
19707 esac
19708 fi
19709
19710echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19711echo "${ECHO_T}$ld_shlibs_F77" >&6
19712test "$ld_shlibs_F77" = no && can_build_shared=no
19713
19714variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19715if test "$GCC" = yes; then
19716 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19717fi
19718
19719#
19720# Do we need to explicitly link libc?
19721#
19722case "x$archive_cmds_need_lc_F77" in
19723x|xyes)
19724 # Assume -lc should be added
19725 archive_cmds_need_lc_F77=yes
19726
19727 if test "$enable_shared" = yes && test "$GCC" = yes; then
19728 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000019729 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000019730 # FIXME: we may have to deal with multi-command sequences.
19731 ;;
19732 '$CC '*)
19733 # Test whether the compiler implicitly links with -lc since on some
19734 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19735 # to ld, don't add -lc before -lgcc.
19736 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19737echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19738 $rm conftest*
19739 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19740
19741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19742 (eval $ac_compile) 2>&5
19743 ac_status=$?
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } 2>conftest.err; then
19746 soname=conftest
19747 lib=conftest
19748 libobjs=conftest.$ac_objext
19749 deplibs=
19750 wl=$lt_prog_compiler_wl_F77
19751 compiler_flags=-v
19752 linker_flags=-v
19753 verstring=
19754 output_objdir=.
19755 libname=conftest
19756 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19757 allow_undefined_flag_F77=
19758 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19759 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19760 ac_status=$?
19761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19762 (exit $ac_status); }
19763 then
19764 archive_cmds_need_lc_F77=no
19765 else
19766 archive_cmds_need_lc_F77=yes
19767 fi
19768 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19769 else
19770 cat conftest.err 1>&5
19771 fi
19772 $rm conftest*
19773 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19774echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19775 ;;
19776 esac
19777 fi
19778 ;;
19779esac
19780
John Criswell47fdd832003-07-14 16:52:07 +000019781echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19782echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19783library_names_spec=
19784libname_spec='lib$name'
19785soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000019786shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000019787postinstall_cmds=
19788postuninstall_cmds=
19789finish_cmds=
19790finish_eval=
19791shlibpath_var=
19792shlibpath_overrides_runpath=unknown
19793version_type=none
19794dynamic_linker="$host_os ld.so"
19795sys_lib_dlsearch_path_spec="/lib /usr/lib"
19796if test "$GCC" = yes; then
19797 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19798 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19799 # if the path contains ";" then we assume it to be the separator
19800 # otherwise default to the standard path separator (i.e. ":") - it is
19801 # assumed that no part of a normal pathname contains ";" but that should
19802 # okay in the real world where ";" in dirpaths is itself problematic.
19803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19804 else
19805 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19806 fi
19807else
19808 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19809fi
19810need_lib_prefix=unknown
19811hardcode_into_libs=no
19812
19813# when you set need_version to no, make sure it does not cause -set_version
19814# flags to be left without arguments
19815need_version=unknown
19816
19817case $host_os in
19818aix3*)
19819 version_type=linux
19820 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19821 shlibpath_var=LIBPATH
19822
19823 # AIX 3 has no versioning support, so we append a major version to the name.
19824 soname_spec='${libname}${release}${shared_ext}$major'
19825 ;;
19826
19827aix4* | aix5*)
19828 version_type=linux
19829 need_lib_prefix=no
19830 need_version=no
19831 hardcode_into_libs=yes
19832 if test "$host_cpu" = ia64; then
19833 # AIX 5 supports IA64
19834 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19835 shlibpath_var=LD_LIBRARY_PATH
19836 else
19837 # With GCC up to 2.95.x, collect2 would create an import file
19838 # for dependence libraries. The import file would start with
19839 # the line `#! .'. This would cause the generated library to
19840 # depend on `.', always an invalid library. This was fixed in
19841 # development snapshots of GCC prior to 3.0.
19842 case $host_os in
19843 aix4 | aix4.[01] | aix4.[01].*)
19844 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19845 echo ' yes '
19846 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19847 :
19848 else
19849 can_build_shared=no
19850 fi
19851 ;;
19852 esac
19853 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19854 # soname into executable. Probably we can add versioning support to
19855 # collect2, so additional links can be useful in future.
19856 if test "$aix_use_runtimelinking" = yes; then
19857 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19858 # instead of lib<name>.a to let people know that these are not
19859 # typical AIX shared libraries.
19860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19861 else
19862 # We preserve .a as extension for shared libraries through AIX4.2
19863 # and later when we are not doing run time linking.
19864 library_names_spec='${libname}${release}.a $libname.a'
19865 soname_spec='${libname}${release}${shared_ext}$major'
19866 fi
19867 shlibpath_var=LIBPATH
19868 fi
19869 ;;
19870
19871amigaos*)
19872 library_names_spec='$libname.ixlibrary $libname.a'
19873 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019874 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 +000019875 ;;
19876
19877beos*)
19878 library_names_spec='${libname}${shared_ext}'
19879 dynamic_linker="$host_os ld.so"
19880 shlibpath_var=LIBRARY_PATH
19881 ;;
19882
Reid Spencer2706f8c2004-09-19 23:53:36 +000019883bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000019884 version_type=linux
19885 need_version=no
19886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19887 soname_spec='${libname}${release}${shared_ext}$major'
19888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19889 shlibpath_var=LD_LIBRARY_PATH
19890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19892 # the default ld.so.conf also contains /usr/contrib/lib and
19893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19894 # libtool to hard-code these into programs
19895 ;;
19896
19897cygwin* | mingw* | pw32*)
19898 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000019899 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000019900 need_version=no
19901 need_lib_prefix=no
19902
19903 case $GCC,$host_os in
19904 yes,cygwin* | yes,mingw* | yes,pw32*)
19905 library_names_spec='$libname.dll.a'
19906 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000019907 postinstall_cmds='base_file=`basename \${file}`~
19908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19909 dldir=$destdir/`dirname \$dlpath`~
19910 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000019911 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000019912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19913 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000019914 $rm \$dlpath'
19915 shlibpath_overrides_runpath=yes
19916
19917 case $host_os in
19918 cygwin*)
19919 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19920 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 +000019921 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000019922 ;;
19923 mingw*)
19924 # MinGW DLLs use traditional 'lib' prefix
19925 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19926 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19927 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19928 # It is most probably a Windows format PATH printed by
19929 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19930 # path with ; separators, and with drive letters. We can handle the
19931 # drive letters (cygwin fileutils understands them), so leave them,
19932 # especially as we might pass files found there to a mingw objdump,
19933 # which wouldn't understand a cygwinified path. Ahh.
19934 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19935 else
19936 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19937 fi
19938 ;;
19939 pw32*)
19940 # pw32 DLLs use 'pw' prefix rather than 'lib'
19941 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
19942 ;;
19943 esac
19944 ;;
19945
19946 *)
19947 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19948 ;;
19949 esac
19950 dynamic_linker='Win32 ld.exe'
19951 # FIXME: first we should search . and the directory the executable is in
19952 shlibpath_var=PATH
19953 ;;
19954
19955darwin* | rhapsody*)
19956 dynamic_linker="$host_os dyld"
19957 version_type=darwin
19958 need_lib_prefix=no
19959 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000019960 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000019961 soname_spec='${libname}${release}${major}$shared_ext'
19962 shlibpath_overrides_runpath=yes
19963 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000019964 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000019965 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000019966 if test "$GCC" = yes; then
19967 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"`
19968 else
19969 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000019970 fi
19971 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19972 ;;
19973
19974dgux*)
19975 version_type=linux
19976 need_lib_prefix=no
19977 need_version=no
19978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19979 soname_spec='${libname}${release}${shared_ext}$major'
19980 shlibpath_var=LD_LIBRARY_PATH
19981 ;;
19982
19983freebsd1*)
19984 dynamic_linker=no
19985 ;;
19986
Reid Spencer2706f8c2004-09-19 23:53:36 +000019987kfreebsd*-gnu)
19988 version_type=linux
19989 need_lib_prefix=no
19990 need_version=no
19991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19992 soname_spec='${libname}${release}${shared_ext}$major'
19993 shlibpath_var=LD_LIBRARY_PATH
19994 shlibpath_overrides_runpath=no
19995 hardcode_into_libs=yes
19996 dynamic_linker='GNU ld.so'
19997 ;;
19998
John Criswell47fdd832003-07-14 16:52:07 +000019999freebsd*)
20000 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20001 version_type=freebsd-$objformat
20002 case $version_type in
20003 freebsd-elf*)
20004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20005 need_version=no
20006 need_lib_prefix=no
20007 ;;
20008 freebsd-*)
20009 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20010 need_version=yes
20011 ;;
20012 esac
20013 shlibpath_var=LD_LIBRARY_PATH
20014 case $host_os in
20015 freebsd2*)
20016 shlibpath_overrides_runpath=yes
20017 ;;
20018 freebsd3.01* | freebsdelf3.01*)
20019 shlibpath_overrides_runpath=yes
20020 hardcode_into_libs=yes
20021 ;;
20022 *) # from 3.2 on
20023 shlibpath_overrides_runpath=no
20024 hardcode_into_libs=yes
20025 ;;
20026 esac
20027 ;;
20028
20029gnu*)
20030 version_type=linux
20031 need_lib_prefix=no
20032 need_version=no
20033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20034 soname_spec='${libname}${release}${shared_ext}$major'
20035 shlibpath_var=LD_LIBRARY_PATH
20036 hardcode_into_libs=yes
20037 ;;
20038
20039hpux9* | hpux10* | hpux11*)
20040 # Give a soname corresponding to the major version so that dld.sl refuses to
20041 # link against other versions.
20042 version_type=sunos
20043 need_lib_prefix=no
20044 need_version=no
20045 case "$host_cpu" in
20046 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020047 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000020048 hardcode_into_libs=yes
20049 dynamic_linker="$host_os dld.so"
20050 shlibpath_var=LD_LIBRARY_PATH
20051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20053 soname_spec='${libname}${release}${shared_ext}$major'
20054 if test "X$HPUX_IA64_MODE" = X32; then
20055 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20056 else
20057 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20058 fi
20059 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20060 ;;
20061 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020062 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020063 hardcode_into_libs=yes
20064 dynamic_linker="$host_os dld.sl"
20065 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20066 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20068 soname_spec='${libname}${release}${shared_ext}$major'
20069 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20070 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20071 ;;
20072 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000020073 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000020074 dynamic_linker="$host_os dld.sl"
20075 shlibpath_var=SHLIB_PATH
20076 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20078 soname_spec='${libname}${release}${shared_ext}$major'
20079 ;;
20080 esac
20081 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20082 postinstall_cmds='chmod 555 $lib'
20083 ;;
20084
20085irix5* | irix6* | nonstopux*)
20086 case $host_os in
20087 nonstopux*) version_type=nonstopux ;;
20088 *)
20089 if test "$lt_cv_prog_gnu_ld" = yes; then
20090 version_type=linux
20091 else
20092 version_type=irix
20093 fi ;;
20094 esac
20095 need_lib_prefix=no
20096 need_version=no
20097 soname_spec='${libname}${release}${shared_ext}$major'
20098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20099 case $host_os in
20100 irix5* | nonstopux*)
20101 libsuff= shlibsuff=
20102 ;;
20103 *)
20104 case $LD in # libtool.m4 will add one of these switches to LD
20105 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20106 libsuff= shlibsuff= libmagic=32-bit;;
20107 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20108 libsuff=32 shlibsuff=N32 libmagic=N32;;
20109 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20110 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20111 *) libsuff= shlibsuff= libmagic=never-match;;
20112 esac
20113 ;;
20114 esac
20115 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20116 shlibpath_overrides_runpath=no
20117 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20118 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20119 hardcode_into_libs=yes
20120 ;;
20121
20122# No shared lib support for Linux oldld, aout, or coff.
20123linux*oldld* | linux*aout* | linux*coff*)
20124 dynamic_linker=no
20125 ;;
20126
20127# This must be Linux ELF.
20128linux*)
20129 version_type=linux
20130 need_lib_prefix=no
20131 need_version=no
20132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20133 soname_spec='${libname}${release}${shared_ext}$major'
20134 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20135 shlibpath_var=LD_LIBRARY_PATH
20136 shlibpath_overrides_runpath=no
20137 # This implies no fast_install, which is unacceptable.
20138 # Some rework will be needed to allow for fast_install
20139 # before this can be enabled.
20140 hardcode_into_libs=yes
20141
Reid Spencer2706f8c2004-09-19 23:53:36 +000020142 # Append ld.so.conf contents to the search path
20143 if test -f /etc/ld.so.conf; then
20144 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20145 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20146 fi
20147
John Criswell47fdd832003-07-14 16:52:07 +000020148 # We used to test for /lib/ld.so.1 and disable shared libraries on
20149 # powerpc, because MkLinux only supported shared libraries with the
20150 # GNU dynamic linker. Since this was broken with cross compilers,
20151 # most powerpc-linux boxes support dynamic linking these days and
20152 # people can always --disable-shared, the test was removed, and we
20153 # assume the GNU/Linux dynamic linker is in use.
20154 dynamic_linker='GNU/Linux ld.so'
20155 ;;
20156
Reid Spencer2706f8c2004-09-19 23:53:36 +000020157knetbsd*-gnu)
20158 version_type=linux
20159 need_lib_prefix=no
20160 need_version=no
20161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20162 soname_spec='${libname}${release}${shared_ext}$major'
20163 shlibpath_var=LD_LIBRARY_PATH
20164 shlibpath_overrides_runpath=no
20165 hardcode_into_libs=yes
20166 dynamic_linker='GNU ld.so'
20167 ;;
20168
John Criswell47fdd832003-07-14 16:52:07 +000020169netbsd*)
20170 version_type=sunos
20171 need_lib_prefix=no
20172 need_version=no
20173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20176 dynamic_linker='NetBSD (a.out) ld.so'
20177 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000020179 soname_spec='${libname}${release}${shared_ext}$major'
20180 dynamic_linker='NetBSD ld.elf_so'
20181 fi
20182 shlibpath_var=LD_LIBRARY_PATH
20183 shlibpath_overrides_runpath=yes
20184 hardcode_into_libs=yes
20185 ;;
20186
20187newsos6)
20188 version_type=linux
20189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20190 shlibpath_var=LD_LIBRARY_PATH
20191 shlibpath_overrides_runpath=yes
20192 ;;
20193
Reid Spencer2706f8c2004-09-19 23:53:36 +000020194nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000020195 version_type=linux
20196 need_lib_prefix=no
20197 need_version=no
20198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20199 soname_spec='${libname}${release}${shared_ext}$major'
20200 shlibpath_var=LD_LIBRARY_PATH
20201 shlibpath_overrides_runpath=yes
20202 ;;
20203
20204openbsd*)
20205 version_type=sunos
20206 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000020207 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000020208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20210 shlibpath_var=LD_LIBRARY_PATH
20211 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20212 case $host_os in
20213 openbsd2.[89] | openbsd2.[89].*)
20214 shlibpath_overrides_runpath=no
20215 ;;
20216 *)
20217 shlibpath_overrides_runpath=yes
20218 ;;
20219 esac
20220 else
20221 shlibpath_overrides_runpath=yes
20222 fi
20223 ;;
20224
20225os2*)
20226 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000020227 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000020228 need_lib_prefix=no
20229 library_names_spec='$libname${shared_ext} $libname.a'
20230 dynamic_linker='OS/2 ld.exe'
20231 shlibpath_var=LIBPATH
20232 ;;
20233
20234osf3* | osf4* | osf5*)
20235 version_type=osf
20236 need_lib_prefix=no
20237 need_version=no
20238 soname_spec='${libname}${release}${shared_ext}$major'
20239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20240 shlibpath_var=LD_LIBRARY_PATH
20241 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20242 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20243 ;;
20244
20245sco3.2v5*)
20246 version_type=osf
20247 soname_spec='${libname}${release}${shared_ext}$major'
20248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20249 shlibpath_var=LD_LIBRARY_PATH
20250 ;;
20251
20252solaris*)
20253 version_type=linux
20254 need_lib_prefix=no
20255 need_version=no
20256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20257 soname_spec='${libname}${release}${shared_ext}$major'
20258 shlibpath_var=LD_LIBRARY_PATH
20259 shlibpath_overrides_runpath=yes
20260 hardcode_into_libs=yes
20261 # ldd complains unless libraries are executable
20262 postinstall_cmds='chmod +x $lib'
20263 ;;
20264
20265sunos4*)
20266 version_type=sunos
20267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20268 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20269 shlibpath_var=LD_LIBRARY_PATH
20270 shlibpath_overrides_runpath=yes
20271 if test "$with_gnu_ld" = yes; then
20272 need_lib_prefix=no
20273 fi
20274 need_version=yes
20275 ;;
20276
20277sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20278 version_type=linux
20279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20280 soname_spec='${libname}${release}${shared_ext}$major'
20281 shlibpath_var=LD_LIBRARY_PATH
20282 case $host_vendor in
20283 sni)
20284 shlibpath_overrides_runpath=no
20285 need_lib_prefix=no
20286 export_dynamic_flag_spec='${wl}-Blargedynsym'
20287 runpath_var=LD_RUN_PATH
20288 ;;
20289 siemens)
20290 need_lib_prefix=no
20291 ;;
20292 motorola)
20293 need_lib_prefix=no
20294 need_version=no
20295 shlibpath_overrides_runpath=no
20296 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20297 ;;
20298 esac
20299 ;;
20300
20301sysv4*MP*)
20302 if test -d /usr/nec ;then
20303 version_type=linux
20304 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20305 soname_spec='$libname${shared_ext}.$major'
20306 shlibpath_var=LD_LIBRARY_PATH
20307 fi
20308 ;;
20309
20310uts4*)
20311 version_type=linux
20312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20313 soname_spec='${libname}${release}${shared_ext}$major'
20314 shlibpath_var=LD_LIBRARY_PATH
20315 ;;
20316
20317*)
20318 dynamic_linker=no
20319 ;;
20320esac
20321echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20322echo "${ECHO_T}$dynamic_linker" >&6
20323test "$dynamic_linker" = no && can_build_shared=no
20324
Reid Spencer2706f8c2004-09-19 23:53:36 +000020325echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20326echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20327hardcode_action_F77=
20328if test -n "$hardcode_libdir_flag_spec_F77" || \
20329 test -n "$runpath_var_F77" || \
20330 test "X$hardcode_automatic_F77" = "Xyes" ; then
20331
20332 # We can hardcode non-existant directories.
20333 if test "$hardcode_direct_F77" != no &&
20334 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20335 # have to relink, otherwise we might link with an installed library
20336 # when we should be linking with a yet-to-be-installed one
20337 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20338 test "$hardcode_minus_L_F77" != no; then
20339 # Linking always hardcodes the temporary library directory.
20340 hardcode_action_F77=relink
20341 else
20342 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20343 hardcode_action_F77=immediate
20344 fi
20345else
20346 # We cannot hardcode anything, or else we can only hardcode existing
20347 # directories.
20348 hardcode_action_F77=unsupported
20349fi
20350echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20351echo "${ECHO_T}$hardcode_action_F77" >&6
20352
20353if test "$hardcode_action_F77" = relink; then
20354 # Fast installation is not supported
20355 enable_fast_install=no
20356elif test "$shlibpath_overrides_runpath" = yes ||
20357 test "$enable_shared" = no; then
20358 # Fast installation is not necessary
20359 enable_fast_install=needless
20360fi
20361
20362striplib=
20363old_striplib=
20364echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20365echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20366if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20367 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20368 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20369 echo "$as_me:$LINENO: result: yes" >&5
20370echo "${ECHO_T}yes" >&6
20371else
20372# FIXME - insert some real tests, host_os isn't really good enough
20373 case $host_os in
20374 darwin*)
20375 if test -n "$STRIP" ; then
20376 striplib="$STRIP -x"
20377 echo "$as_me:$LINENO: result: yes" >&5
20378echo "${ECHO_T}yes" >&6
20379 else
20380 echo "$as_me:$LINENO: result: no" >&5
20381echo "${ECHO_T}no" >&6
20382fi
20383 ;;
20384 *)
20385 echo "$as_me:$LINENO: result: no" >&5
20386echo "${ECHO_T}no" >&6
20387 ;;
20388 esac
20389fi
20390
20391
John Criswell47fdd832003-07-14 16:52:07 +000020392
20393# The else clause should only fire when bootstrapping the
20394# libtool distribution, otherwise you forgot to ship ltmain.sh
20395# with your package, and you will get complaints that there are
20396# no rules to generate ltmain.sh.
20397if test -f "$ltmain"; then
20398 # See if we are running on zsh, and set the options which allow our commands through
20399 # without removal of \ escapes.
20400 if test -n "${ZSH_VERSION+set}" ; then
20401 setopt NO_GLOB_SUBST
20402 fi
20403 # Now quote all the things that may contain metacharacters while being
20404 # careful not to overquote the AC_SUBSTed values. We take copies of the
20405 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020406 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20407 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000020408 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20409 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20410 deplibs_check_method reload_flag reload_cmds need_locks \
20411 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20412 lt_cv_sys_global_symbol_to_c_name_address \
20413 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20414 old_postinstall_cmds old_postuninstall_cmds \
20415 compiler_F77 \
20416 CC_F77 \
20417 LD_F77 \
20418 lt_prog_compiler_wl_F77 \
20419 lt_prog_compiler_pic_F77 \
20420 lt_prog_compiler_static_F77 \
20421 lt_prog_compiler_no_builtin_flag_F77 \
20422 export_dynamic_flag_spec_F77 \
20423 thread_safe_flag_spec_F77 \
20424 whole_archive_flag_spec_F77 \
20425 enable_shared_with_static_runtimes_F77 \
20426 old_archive_cmds_F77 \
20427 old_archive_from_new_cmds_F77 \
20428 predep_objects_F77 \
20429 postdep_objects_F77 \
20430 predeps_F77 \
20431 postdeps_F77 \
20432 compiler_lib_search_path_F77 \
20433 archive_cmds_F77 \
20434 archive_expsym_cmds_F77 \
20435 postinstall_cmds_F77 \
20436 postuninstall_cmds_F77 \
20437 old_archive_from_expsyms_cmds_F77 \
20438 allow_undefined_flag_F77 \
20439 no_undefined_flag_F77 \
20440 export_symbols_cmds_F77 \
20441 hardcode_libdir_flag_spec_F77 \
20442 hardcode_libdir_flag_spec_ld_F77 \
20443 hardcode_libdir_separator_F77 \
20444 hardcode_automatic_F77 \
20445 module_cmds_F77 \
20446 module_expsym_cmds_F77 \
20447 lt_cv_prog_compiler_c_o_F77 \
20448 exclude_expsyms_F77 \
20449 include_expsyms_F77; do
20450
20451 case $var in
20452 old_archive_cmds_F77 | \
20453 old_archive_from_new_cmds_F77 | \
20454 archive_cmds_F77 | \
20455 archive_expsym_cmds_F77 | \
20456 module_cmds_F77 | \
20457 module_expsym_cmds_F77 | \
20458 old_archive_from_expsyms_cmds_F77 | \
20459 export_symbols_cmds_F77 | \
20460 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20461 postinstall_cmds | postuninstall_cmds | \
20462 old_postinstall_cmds | old_postuninstall_cmds | \
20463 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20464 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020465 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 +000020466 ;;
20467 *)
20468 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20469 ;;
20470 esac
20471 done
20472
20473 case $lt_echo in
20474 *'\$0 --fallback-echo"')
20475 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20476 ;;
20477 esac
20478
20479cfgfile="$ofile"
20480
20481 cat <<__EOF__ >> "$cfgfile"
20482# ### BEGIN LIBTOOL TAG CONFIG: $tagname
20483
20484# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20485
20486# Shell to use when invoking shell scripts.
20487SHELL=$lt_SHELL
20488
20489# Whether or not to build shared libraries.
20490build_libtool_libs=$enable_shared
20491
20492# Whether or not to build static libraries.
20493build_old_libs=$enable_static
20494
20495# Whether or not to add -lc for building shared libraries.
20496build_libtool_need_lc=$archive_cmds_need_lc_F77
20497
20498# Whether or not to disallow shared libs when runtime libs are static
20499allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20500
20501# Whether or not to optimize for fast installation.
20502fast_install=$enable_fast_install
20503
20504# The host system.
20505host_alias=$host_alias
20506host=$host
20507
20508# An echo program that does not interpret backslashes.
20509echo=$lt_echo
20510
20511# The archiver.
20512AR=$lt_AR
20513AR_FLAGS=$lt_AR_FLAGS
20514
20515# A C compiler.
20516LTCC=$lt_LTCC
20517
20518# A language-specific compiler.
20519CC=$lt_compiler_F77
20520
20521# Is the compiler the GNU C compiler?
20522with_gcc=$GCC_F77
20523
20524# An ERE matcher.
20525EGREP=$lt_EGREP
20526
20527# The linker used to build libraries.
20528LD=$lt_LD_F77
20529
20530# Whether we need hard or soft links.
20531LN_S=$lt_LN_S
20532
20533# A BSD-compatible nm program.
20534NM=$lt_NM
20535
20536# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000020537STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000020538
20539# Used to examine libraries when file_magic_cmd begins "file"
20540MAGIC_CMD=$MAGIC_CMD
20541
20542# Used on cygwin: DLL creation program.
20543DLLTOOL="$DLLTOOL"
20544
20545# Used on cygwin: object dumper.
20546OBJDUMP="$OBJDUMP"
20547
20548# Used on cygwin: assembler.
20549AS="$AS"
20550
20551# The name of the directory that contains temporary libtool files.
20552objdir=$objdir
20553
20554# How to create reloadable object files.
20555reload_flag=$lt_reload_flag
20556reload_cmds=$lt_reload_cmds
20557
20558# How to pass a linker flag through the compiler.
20559wl=$lt_lt_prog_compiler_wl_F77
20560
20561# Object file suffix (normally "o").
20562objext="$ac_objext"
20563
20564# Old archive suffix (normally "a").
20565libext="$libext"
20566
20567# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000020568shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000020569
20570# Executable file suffix (normally "").
20571exeext="$exeext"
20572
20573# Additional compiler flags for building library objects.
20574pic_flag=$lt_lt_prog_compiler_pic_F77
20575pic_mode=$pic_mode
20576
20577# What is the maximum length of a command?
20578max_cmd_len=$lt_cv_sys_max_cmd_len
20579
20580# Does compiler simultaneously support -c and -o options?
20581compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20582
20583# Must we lock files when doing compilation ?
20584need_locks=$lt_need_locks
20585
20586# Do we need the lib prefix for modules?
20587need_lib_prefix=$need_lib_prefix
20588
20589# Do we need a version for libraries?
20590need_version=$need_version
20591
20592# Whether dlopen is supported.
20593dlopen_support=$enable_dlopen
20594
20595# Whether dlopen of programs is supported.
20596dlopen_self=$enable_dlopen_self
20597
20598# Whether dlopen of statically linked programs is supported.
20599dlopen_self_static=$enable_dlopen_self_static
20600
20601# Compiler flag to prevent dynamic linking.
20602link_static_flag=$lt_lt_prog_compiler_static_F77
20603
20604# Compiler flag to turn off builtin functions.
20605no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20606
20607# Compiler flag to allow reflexive dlopens.
20608export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20609
20610# Compiler flag to generate shared objects directly from archives.
20611whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20612
20613# Compiler flag to generate thread-safe objects.
20614thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20615
20616# Library versioning type.
20617version_type=$version_type
20618
20619# Format of library name prefix.
20620libname_spec=$lt_libname_spec
20621
20622# List of archive names. First name is the real one, the rest are links.
20623# The last name is the one that the linker finds with -lNAME.
20624library_names_spec=$lt_library_names_spec
20625
20626# The coded name of the library, if different from the real name.
20627soname_spec=$lt_soname_spec
20628
20629# Commands used to build and install an old-style archive.
20630RANLIB=$lt_RANLIB
20631old_archive_cmds=$lt_old_archive_cmds_F77
20632old_postinstall_cmds=$lt_old_postinstall_cmds
20633old_postuninstall_cmds=$lt_old_postuninstall_cmds
20634
20635# Create an old-style archive from a shared archive.
20636old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20637
20638# Create a temporary old-style archive to link instead of a shared archive.
20639old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20640
20641# Commands used to build and install a shared archive.
20642archive_cmds=$lt_archive_cmds_F77
20643archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20644postinstall_cmds=$lt_postinstall_cmds
20645postuninstall_cmds=$lt_postuninstall_cmds
20646
20647# Commands used to build a loadable module (assumed same as above if empty)
20648module_cmds=$lt_module_cmds_F77
20649module_expsym_cmds=$lt_module_expsym_cmds_F77
20650
20651# Commands to strip libraries.
20652old_striplib=$lt_old_striplib
20653striplib=$lt_striplib
20654
20655# Dependencies to place before the objects being linked to create a
20656# shared library.
20657predep_objects=$lt_predep_objects_F77
20658
20659# Dependencies to place after the objects being linked to create a
20660# shared library.
20661postdep_objects=$lt_postdep_objects_F77
20662
20663# Dependencies to place before the objects being linked to create a
20664# shared library.
20665predeps=$lt_predeps_F77
20666
20667# Dependencies to place after the objects being linked to create a
20668# shared library.
20669postdeps=$lt_postdeps_F77
20670
20671# The library search path used internally by the compiler when linking
20672# a shared library.
20673compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20674
20675# Method to check whether dependent libraries are shared objects.
20676deplibs_check_method=$lt_deplibs_check_method
20677
20678# Command to use when deplibs_check_method == file_magic.
20679file_magic_cmd=$lt_file_magic_cmd
20680
20681# Flag that allows shared libraries with undefined symbols to be built.
20682allow_undefined_flag=$lt_allow_undefined_flag_F77
20683
20684# Flag that forces no undefined symbols.
20685no_undefined_flag=$lt_no_undefined_flag_F77
20686
20687# Commands used to finish a libtool library installation in a directory.
20688finish_cmds=$lt_finish_cmds
20689
20690# Same as above, but a single script fragment to be evaled but not shown.
20691finish_eval=$lt_finish_eval
20692
20693# Take the output of nm and produce a listing of raw symbols and C names.
20694global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20695
20696# Transform the output of nm in a proper C declaration
20697global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20698
20699# Transform the output of nm in a C name address pair
20700global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20701
20702# This is the shared library runtime path variable.
20703runpath_var=$runpath_var
20704
20705# This is the shared library path variable.
20706shlibpath_var=$shlibpath_var
20707
20708# Is shlibpath searched before the hard-coded library search path?
20709shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20710
20711# How to hardcode a shared library path into an executable.
20712hardcode_action=$hardcode_action_F77
20713
20714# Whether we should hardcode library paths into libraries.
20715hardcode_into_libs=$hardcode_into_libs
20716
20717# Flag to hardcode \$libdir into a binary during linking.
20718# This must work even if \$libdir does not exist.
20719hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20720
20721# If ld is used when linking, flag to hardcode \$libdir into
20722# a binary during linking. This must work even if \$libdir does
20723# not exist.
20724hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20725
20726# Whether we need a single -rpath flag with a separated argument.
20727hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20728
20729# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20730# resulting binary.
20731hardcode_direct=$hardcode_direct_F77
20732
20733# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20734# resulting binary.
20735hardcode_minus_L=$hardcode_minus_L_F77
20736
20737# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20738# the resulting binary.
20739hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20740
20741# Set to yes if building a shared library automatically hardcodes DIR into the library
20742# and all subsequent libraries and executables linked against it.
20743hardcode_automatic=$hardcode_automatic_F77
20744
20745# Variables whose values should be saved in libtool wrapper scripts and
20746# restored at relink time.
20747variables_saved_for_relink="$variables_saved_for_relink"
20748
20749# Whether libtool must link a program against all its dependency libraries.
20750link_all_deplibs=$link_all_deplibs_F77
20751
20752# Compile-time system search path for libraries
20753sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20754
20755# Run-time system search path for libraries
20756sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20757
20758# Fix the shell variable \$srcfile for the compiler.
20759fix_srcfile_path="$fix_srcfile_path_F77"
20760
20761# Set to yes if exported symbols are required.
20762always_export_symbols=$always_export_symbols_F77
20763
20764# The commands to list exported symbols.
20765export_symbols_cmds=$lt_export_symbols_cmds_F77
20766
20767# The commands to extract the exported symbol list from a shared archive.
20768extract_expsyms_cmds=$lt_extract_expsyms_cmds
20769
20770# Symbols that should not be listed in the preloaded symbols.
20771exclude_expsyms=$lt_exclude_expsyms_F77
20772
20773# Symbols that must always be exported.
20774include_expsyms=$lt_include_expsyms_F77
20775
20776# ### END LIBTOOL TAG CONFIG: $tagname
20777
20778__EOF__
20779
20780
20781else
20782 # If there is no Makefile yet, we rely on a make rule to execute
20783 # `config.status --recheck' to rerun these tests and create the
20784 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000020785 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20786 if test -f "$ltmain_in"; then
20787 test -f Makefile && make "$ltmain"
20788 fi
John Criswell47fdd832003-07-14 16:52:07 +000020789fi
20790
20791
20792ac_ext=c
20793ac_cpp='$CPP $CPPFLAGS'
20794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20796ac_compiler_gnu=$ac_cv_c_compiler_gnu
20797
20798CC="$lt_save_CC"
20799
20800 else
20801 tagname=""
20802 fi
20803 ;;
20804
20805 GCJ)
20806 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000020807 ac_ext=c
20808ac_cpp='$CPP $CPPFLAGS'
20809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20811ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000020812
20813
20814# Source file extension for Java test sources.
20815ac_ext=java
20816
20817# Object file extension for compiled Java test sources.
20818objext=o
20819objext_GCJ=$objext
20820
20821# Code to be used in simple compile tests
20822lt_simple_compile_test_code="class foo {}\n"
20823
20824# Code to be used in simple link tests
20825lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20826
20827# ltmain only uses $CC for tagged configurations so make sure $CC is set.
20828
20829# If no C compiler was specified, use CC.
20830LTCC=${LTCC-"$CC"}
20831
20832# Allow CC to be a program name with arguments.
20833compiler=$CC
20834
20835
20836# Allow CC to be a program name with arguments.
20837lt_save_CC="$CC"
20838CC=${GCJ-"gcj"}
20839compiler=$CC
20840compiler_GCJ=$CC
20841
20842# GCJ did not exist at the time GCC didn't implicitly link libc in.
20843archive_cmds_need_lc_GCJ=no
20844
John Criswell47fdd832003-07-14 16:52:07 +000020845
20846lt_prog_compiler_no_builtin_flag_GCJ=
20847
20848if test "$GCC" = yes; then
20849 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20850
Reid Spencer2706f8c2004-09-19 23:53:36 +000020851
20852echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020853echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20854if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20855 echo $ECHO_N "(cached) $ECHO_C" >&6
20856else
20857 lt_cv_prog_compiler_rtti_exceptions=no
20858 ac_outfile=conftest.$ac_objext
20859 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20860 lt_compiler_flag="-fno-rtti -fno-exceptions"
20861 # Insert the option either (1) after the last *FLAGS variable, or
20862 # (2) before a word containing "conftest.", or (3) at the end.
20863 # Note that $ac_compile itself does not contain backslashes and begins
20864 # with a dollar sign (not a hyphen), so the echo should work correctly.
20865 # The option is referenced via a variable to avoid confusing sed.
20866 lt_compile=`echo "$ac_compile" | $SED \
20867 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20869 -e 's:$: $lt_compiler_flag:'`
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020870 (eval echo "\"\$as_me:20870: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000020871 (eval "$lt_compile" 2>conftest.err)
20872 ac_status=$?
20873 cat conftest.err >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000020874 echo "$as_me:20874: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000020875 if (exit $ac_status) && test -s "$ac_outfile"; then
20876 # The compiler can only warn and ignore the option if not recognized
20877 # So say no if there are warnings
20878 if test ! -s conftest.err; then
20879 lt_cv_prog_compiler_rtti_exceptions=yes
20880 fi
20881 fi
20882 $rm conftest*
20883
20884fi
20885echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20886echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20887
20888if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20889 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20890else
20891 :
20892fi
20893
20894fi
20895
20896lt_prog_compiler_wl_GCJ=
20897lt_prog_compiler_pic_GCJ=
20898lt_prog_compiler_static_GCJ=
20899
20900echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20901echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20902
20903 if test "$GCC" = yes; then
20904 lt_prog_compiler_wl_GCJ='-Wl,'
20905 lt_prog_compiler_static_GCJ='-static'
20906
20907 case $host_os in
20908 aix*)
20909 # All AIX code is PIC.
20910 if test "$host_cpu" = ia64; then
20911 # AIX 5 now supports IA64 processor
20912 lt_prog_compiler_static_GCJ='-Bstatic'
20913 fi
20914 ;;
20915
20916 amigaos*)
20917 # FIXME: we need at least 68020 code to build shared libraries, but
20918 # adding the `-m68020' flag to GCC prevents building anything better,
20919 # like `-m68040'.
20920 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20921 ;;
20922
20923 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20924 # PIC is the default for these OSes.
20925 ;;
20926
20927 mingw* | pw32* | os2*)
20928 # This hack is so that the source file can tell whether it is being
20929 # built for inclusion in a dll (and should export symbols for example).
20930 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20931 ;;
20932
20933 darwin* | rhapsody*)
20934 # PIC is the default on this platform
20935 # Common symbols not allowed in MH_DYLIB files
20936 lt_prog_compiler_pic_GCJ='-fno-common'
20937 ;;
20938
20939 msdosdjgpp*)
20940 # Just because we use GCC doesn't mean we suddenly get shared libraries
20941 # on systems that don't support them.
20942 lt_prog_compiler_can_build_shared_GCJ=no
20943 enable_shared=no
20944 ;;
20945
20946 sysv4*MP*)
20947 if test -d /usr/nec; then
20948 lt_prog_compiler_pic_GCJ=-Kconform_pic
20949 fi
20950 ;;
20951
20952 hpux*)
20953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
20954 # not for PA HP-UX.
20955 case "$host_cpu" in
20956 hppa*64*|ia64*)
20957 # +Z the default
20958 ;;
20959 *)
20960 lt_prog_compiler_pic_GCJ='-fPIC'
20961 ;;
20962 esac
20963 ;;
20964
20965 *)
20966 lt_prog_compiler_pic_GCJ='-fPIC'
20967 ;;
20968 esac
20969 else
20970 # PORTME Check for flag to pass linker flags through the system compiler.
20971 case $host_os in
20972 aix*)
20973 lt_prog_compiler_wl_GCJ='-Wl,'
20974 if test "$host_cpu" = ia64; then
20975 # AIX 5 now supports IA64 processor
20976 lt_prog_compiler_static_GCJ='-Bstatic'
20977 else
20978 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
20979 fi
20980 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020981 darwin*)
20982 # PIC is the default on this platform
20983 # Common symbols not allowed in MH_DYLIB files
20984 case "$cc_basename" in
20985 xlc*)
20986 lt_prog_compiler_pic_GCJ='-qnocommon'
20987 lt_prog_compiler_wl_GCJ='-Wl,'
20988 ;;
20989 esac
20990 ;;
John Criswell47fdd832003-07-14 16:52:07 +000020991
20992 mingw* | pw32* | os2*)
20993 # This hack is so that the source file can tell whether it is being
20994 # built for inclusion in a dll (and should export symbols for example).
20995 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20996 ;;
20997
20998 hpux9* | hpux10* | hpux11*)
20999 lt_prog_compiler_wl_GCJ='-Wl,'
21000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21001 # not for PA HP-UX.
21002 case "$host_cpu" in
21003 hppa*64*|ia64*)
21004 # +Z the default
21005 ;;
21006 *)
21007 lt_prog_compiler_pic_GCJ='+Z'
21008 ;;
21009 esac
21010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21011 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21012 ;;
21013
21014 irix5* | irix6* | nonstopux*)
21015 lt_prog_compiler_wl_GCJ='-Wl,'
21016 # PIC (with -KPIC) is the default.
21017 lt_prog_compiler_static_GCJ='-non_shared'
21018 ;;
21019
21020 newsos6)
21021 lt_prog_compiler_pic_GCJ='-KPIC'
21022 lt_prog_compiler_static_GCJ='-Bstatic'
21023 ;;
21024
21025 linux*)
21026 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021027 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000021028 lt_prog_compiler_wl_GCJ='-Wl,'
21029 lt_prog_compiler_pic_GCJ='-KPIC'
21030 lt_prog_compiler_static_GCJ='-static'
21031 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000021032 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000021033 lt_prog_compiler_wl_GCJ='-Wl,'
21034 # All Alpha code is PIC.
21035 lt_prog_compiler_static_GCJ='-non_shared'
21036 ;;
21037 esac
21038 ;;
21039
21040 osf3* | osf4* | osf5*)
21041 lt_prog_compiler_wl_GCJ='-Wl,'
21042 # All OSF/1 code is PIC.
21043 lt_prog_compiler_static_GCJ='-non_shared'
21044 ;;
21045
21046 sco3.2v5*)
21047 lt_prog_compiler_pic_GCJ='-Kpic'
21048 lt_prog_compiler_static_GCJ='-dn'
21049 ;;
21050
21051 solaris*)
21052 lt_prog_compiler_wl_GCJ='-Wl,'
21053 lt_prog_compiler_pic_GCJ='-KPIC'
21054 lt_prog_compiler_static_GCJ='-Bstatic'
21055 ;;
21056
21057 sunos4*)
21058 lt_prog_compiler_wl_GCJ='-Qoption ld '
21059 lt_prog_compiler_pic_GCJ='-PIC'
21060 lt_prog_compiler_static_GCJ='-Bstatic'
21061 ;;
21062
21063 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21064 lt_prog_compiler_wl_GCJ='-Wl,'
21065 lt_prog_compiler_pic_GCJ='-KPIC'
21066 lt_prog_compiler_static_GCJ='-Bstatic'
21067 ;;
21068
21069 sysv4*MP*)
21070 if test -d /usr/nec ;then
21071 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21072 lt_prog_compiler_static_GCJ='-Bstatic'
21073 fi
21074 ;;
21075
21076 uts4*)
21077 lt_prog_compiler_pic_GCJ='-pic'
21078 lt_prog_compiler_static_GCJ='-Bstatic'
21079 ;;
21080
21081 *)
21082 lt_prog_compiler_can_build_shared_GCJ=no
21083 ;;
21084 esac
21085 fi
21086
21087echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21088echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21089
21090#
21091# Check to make sure the PIC flag actually works.
21092#
21093if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000021094
21095echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021096echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21097if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21099else
21100 lt_prog_compiler_pic_works_GCJ=no
21101 ac_outfile=conftest.$ac_objext
21102 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21103 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21104 # Insert the option either (1) after the last *FLAGS variable, or
21105 # (2) before a word containing "conftest.", or (3) at the end.
21106 # Note that $ac_compile itself does not contain backslashes and begins
21107 # with a dollar sign (not a hyphen), so the echo should work correctly.
21108 # The option is referenced via a variable to avoid confusing sed.
21109 lt_compile=`echo "$ac_compile" | $SED \
21110 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21112 -e 's:$: $lt_compiler_flag:'`
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021113 (eval echo "\"\$as_me:21113: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021114 (eval "$lt_compile" 2>conftest.err)
21115 ac_status=$?
21116 cat conftest.err >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021117 echo "$as_me:21117: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021118 if (exit $ac_status) && test -s "$ac_outfile"; then
21119 # The compiler can only warn and ignore the option if not recognized
21120 # So say no if there are warnings
21121 if test ! -s conftest.err; then
21122 lt_prog_compiler_pic_works_GCJ=yes
21123 fi
21124 fi
21125 $rm conftest*
21126
21127fi
21128echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21129echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21130
21131if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21132 case $lt_prog_compiler_pic_GCJ in
21133 "" | " "*) ;;
21134 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21135 esac
21136else
21137 lt_prog_compiler_pic_GCJ=
21138 lt_prog_compiler_can_build_shared_GCJ=no
21139fi
21140
21141fi
21142case "$host_os" in
21143 # For platforms which do not support PIC, -DPIC is meaningless:
21144 *djgpp*)
21145 lt_prog_compiler_pic_GCJ=
21146 ;;
21147 *)
21148 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21149 ;;
21150esac
21151
21152echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21153echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21154if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21155 echo $ECHO_N "(cached) $ECHO_C" >&6
21156else
21157 lt_cv_prog_compiler_c_o_GCJ=no
21158 $rm -r conftest 2>/dev/null
21159 mkdir conftest
21160 cd conftest
21161 mkdir out
21162 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21163
John Criswell47fdd832003-07-14 16:52:07 +000021164 lt_compiler_flag="-o out/conftest2.$ac_objext"
21165 # Insert the option either (1) after the last *FLAGS variable, or
21166 # (2) before a word containing "conftest.", or (3) at the end.
21167 # Note that $ac_compile itself does not contain backslashes and begins
21168 # with a dollar sign (not a hyphen), so the echo should work correctly.
21169 lt_compile=`echo "$ac_compile" | $SED \
21170 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21171 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21172 -e 's:$: $lt_compiler_flag:'`
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021173 (eval echo "\"\$as_me:21173: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000021174 (eval "$lt_compile" 2>out/conftest.err)
21175 ac_status=$?
21176 cat out/conftest.err >&5
Reid Spencer2bc7bd52004-11-29 12:29:58 +000021177 echo "$as_me:21177: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000021178 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21179 then
21180 # The compiler can only warn and ignore the option if not recognized
21181 # So say no if there are warnings
21182 if test ! -s out/conftest.err; then
21183 lt_cv_prog_compiler_c_o_GCJ=yes
21184 fi
21185 fi
21186 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000021187 $rm conftest*
21188 # SGI C++ compiler will create directory out/ii_files/ for
21189 # template instantiation
21190 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21191 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000021192 cd ..
21193 rmdir conftest
21194 $rm conftest*
21195
21196fi
21197echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21198echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21199
21200
21201hard_links="nottested"
21202if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21203 # do not overwrite the value of need_locks provided by the user
21204 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21205echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21206 hard_links=yes
21207 $rm conftest*
21208 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21209 touch conftest.a
21210 ln conftest.a conftest.b 2>&5 || hard_links=no
21211 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21212 echo "$as_me:$LINENO: result: $hard_links" >&5
21213echo "${ECHO_T}$hard_links" >&6
21214 if test "$hard_links" = no; then
21215 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21216echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21217 need_locks=warn
21218 fi
21219else
21220 need_locks=no
21221fi
21222
21223echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21224echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21225
21226 runpath_var=
21227 allow_undefined_flag_GCJ=
21228 enable_shared_with_static_runtimes_GCJ=no
21229 archive_cmds_GCJ=
21230 archive_expsym_cmds_GCJ=
21231 old_archive_From_new_cmds_GCJ=
21232 old_archive_from_expsyms_cmds_GCJ=
21233 export_dynamic_flag_spec_GCJ=
21234 whole_archive_flag_spec_GCJ=
21235 thread_safe_flag_spec_GCJ=
21236 hardcode_libdir_flag_spec_GCJ=
21237 hardcode_libdir_flag_spec_ld_GCJ=
21238 hardcode_libdir_separator_GCJ=
21239 hardcode_direct_GCJ=no
21240 hardcode_minus_L_GCJ=no
21241 hardcode_shlibpath_var_GCJ=unsupported
21242 link_all_deplibs_GCJ=unknown
21243 hardcode_automatic_GCJ=no
21244 module_cmds_GCJ=
21245 module_expsym_cmds_GCJ=
21246 always_export_symbols_GCJ=no
21247 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21248 # include_expsyms should be a list of space-separated symbols to be *always*
21249 # included in the symbol list
21250 include_expsyms_GCJ=
21251 # exclude_expsyms can be an extended regexp of symbols to exclude
21252 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21253 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21254 # as well as any symbol that contains `d'.
21255 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21256 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21257 # platforms (ab)use it in PIC code, but their linkers get confused if
21258 # the symbol is explicitly referenced. Since portable code cannot
21259 # rely on this symbol name, it's probably fine to never include it in
21260 # preloaded symbol tables.
21261 extract_expsyms_cmds=
21262
21263 case $host_os in
21264 cygwin* | mingw* | pw32*)
21265 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21266 # When not using gcc, we currently assume that we are using
21267 # Microsoft Visual C++.
21268 if test "$GCC" != yes; then
21269 with_gnu_ld=no
21270 fi
21271 ;;
21272 openbsd*)
21273 with_gnu_ld=no
21274 ;;
21275 esac
21276
21277 ld_shlibs_GCJ=yes
21278 if test "$with_gnu_ld" = yes; then
21279 # If archive_cmds runs LD, not CC, wlarc should be empty
21280 wlarc='${wl}'
21281
21282 # See if GNU ld supports shared libraries.
21283 case $host_os in
21284 aix3* | aix4* | aix5*)
21285 # On AIX/PPC, the GNU linker is very broken
21286 if test "$host_cpu" != ia64; then
21287 ld_shlibs_GCJ=no
21288 cat <<EOF 1>&2
21289
21290*** Warning: the GNU linker, at least up to release 2.9.1, is reported
21291*** to be unable to reliably create shared libraries on AIX.
21292*** Therefore, libtool is disabling shared libraries support. If you
21293*** really care for shared libraries, you may want to modify your PATH
21294*** so that a non-GNU linker is found, and then restart.
21295
21296EOF
21297 fi
21298 ;;
21299
21300 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021301 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 +000021302 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21303 hardcode_minus_L_GCJ=yes
21304
21305 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21306 # that the semantics of dynamic libraries on AmigaOS, at least up
21307 # to version 4, is to share data among multiple programs linked
21308 # with the same dynamic library. Since this doesn't match the
21309 # behavior of shared libraries on other platforms, we can't use
21310 # them.
21311 ld_shlibs_GCJ=no
21312 ;;
21313
21314 beos*)
21315 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21316 allow_undefined_flag_GCJ=unsupported
21317 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21318 # support --undefined. This deserves some investigation. FIXME
21319 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21320 else
21321 ld_shlibs_GCJ=no
21322 fi
21323 ;;
21324
21325 cygwin* | mingw* | pw32*)
21326 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21327 # as there is no search path for DLLs.
21328 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21329 allow_undefined_flag_GCJ=unsupported
21330 always_export_symbols_GCJ=no
21331 enable_shared_with_static_runtimes_GCJ=yes
21332 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21333
21334 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21335 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21336 # If the export-symbols file already is a .def file (1st line
21337 # is EXPORTS), use it as is; otherwise, prepend...
21338 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21339 cp $export_symbols $output_objdir/$soname.def;
21340 else
21341 echo EXPORTS > $output_objdir/$soname.def;
21342 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000021343 fi~
21344 $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 +000021345 else
21346 ld_shlibs=no
21347 fi
21348 ;;
21349
21350 netbsd*)
21351 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21352 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21353 wlarc=
21354 else
21355 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21356 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21357 fi
21358 ;;
21359
21360 solaris* | sysv5*)
21361 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21362 ld_shlibs_GCJ=no
21363 cat <<EOF 1>&2
21364
21365*** Warning: The releases 2.8.* of the GNU linker cannot reliably
21366*** create shared libraries on Solaris systems. Therefore, libtool
21367*** is disabling shared libraries support. We urge you to upgrade GNU
21368*** binutils to release 2.9.1 or newer. Another option is to modify
21369*** your PATH or compiler configuration so that the native linker is
21370*** used, and then restart.
21371
21372EOF
21373 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21374 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21375 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21376 else
21377 ld_shlibs_GCJ=no
21378 fi
21379 ;;
21380
21381 sunos4*)
21382 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21383 wlarc=
21384 hardcode_direct_GCJ=yes
21385 hardcode_shlibpath_var_GCJ=no
21386 ;;
21387
Reid Spencer2706f8c2004-09-19 23:53:36 +000021388 linux*)
21389 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21390 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21391 archive_cmds_GCJ="$tmp_archive_cmds"
21392 supports_anon_versioning=no
21393 case `$LD -v 2>/dev/null` in
21394 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21395 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21396 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21397 *\ 2.11.*) ;; # other 2.11 versions
21398 *) supports_anon_versioning=yes ;;
21399 esac
21400 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021401 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21402cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21403$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000021404 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21405 else
21406 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21407 fi
21408 else
21409 ld_shlibs_GCJ=no
21410 fi
21411 ;;
21412
John Criswell47fdd832003-07-14 16:52:07 +000021413 *)
21414 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21415 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21416 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21417 else
21418 ld_shlibs_GCJ=no
21419 fi
21420 ;;
21421 esac
21422
21423 if test "$ld_shlibs_GCJ" = yes; then
21424 runpath_var=LD_RUN_PATH
21425 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21426 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21427 # ancient GNU ld didn't support --whole-archive et. al.
21428 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21429 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21430 else
21431 whole_archive_flag_spec_GCJ=
21432 fi
21433 fi
21434 else
21435 # PORTME fill in a description of your system's linker (not GNU ld)
21436 case $host_os in
21437 aix3*)
21438 allow_undefined_flag_GCJ=unsupported
21439 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000021440 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 +000021441 # Note: this linker hardcodes the directories in LIBPATH if there
21442 # are no directories specified by -L.
21443 hardcode_minus_L_GCJ=yes
21444 if test "$GCC" = yes && test -z "$link_static_flag"; then
21445 # Neither direct hardcoding nor static linking is supported with a
21446 # broken collect2.
21447 hardcode_direct_GCJ=unsupported
21448 fi
21449 ;;
21450
21451 aix4* | aix5*)
21452 if test "$host_cpu" = ia64; then
21453 # On IA64, the linker does run time linking by default, so we don't
21454 # have to do anything special.
21455 aix_use_runtimelinking=no
21456 exp_sym_flag='-Bexport'
21457 no_entry_flag=""
21458 else
21459 # If we're using GNU nm, then we don't want the "-C" option.
21460 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21461 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21462 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'
21463 else
21464 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'
21465 fi
21466 aix_use_runtimelinking=no
21467
21468 # Test if we are trying to use run time linking or normal
21469 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21470 # need to do runtime linking.
21471 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21472 for ld_flag in $LDFLAGS; do
21473 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21474 aix_use_runtimelinking=yes
21475 break
21476 fi
21477 done
21478 esac
21479
21480 exp_sym_flag='-bexport'
21481 no_entry_flag='-bnoentry'
21482 fi
21483
21484 # When large executables or shared objects are built, AIX ld can
21485 # have problems creating the table of contents. If linking a library
21486 # or program results in "error TOC overflow" add -mminimal-toc to
21487 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21488 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21489
21490 archive_cmds_GCJ=''
21491 hardcode_direct_GCJ=yes
21492 hardcode_libdir_separator_GCJ=':'
21493 link_all_deplibs_GCJ=yes
21494
21495 if test "$GCC" = yes; then
21496 case $host_os in aix4.012|aix4.012.*)
21497 # We only want to do this on AIX 4.2 and lower, the check
21498 # below for broken collect2 doesn't work under 4.3+
21499 collect2name=`${CC} -print-prog-name=collect2`
21500 if test -f "$collect2name" && \
21501 strings "$collect2name" | grep resolve_lib_name >/dev/null
21502 then
21503 # We have reworked collect2
21504 hardcode_direct_GCJ=yes
21505 else
21506 # We have old collect2
21507 hardcode_direct_GCJ=unsupported
21508 # It fails to find uninstalled libraries when the uninstalled
21509 # path is not listed in the libpath. Setting hardcode_minus_L
21510 # to unsupported forces relinking
21511 hardcode_minus_L_GCJ=yes
21512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21513 hardcode_libdir_separator_GCJ=
21514 fi
21515 esac
21516 shared_flag='-shared'
21517 else
21518 # not using gcc
21519 if test "$host_cpu" = ia64; then
21520 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21521 # chokes on -Wl,-G. The following line is correct:
21522 shared_flag='-G'
21523 else
21524 if test "$aix_use_runtimelinking" = yes; then
21525 shared_flag='${wl}-G'
21526 else
21527 shared_flag='${wl}-bM:SRE'
21528 fi
21529 fi
21530 fi
21531
21532 # It seems that -bexpall does not export symbols beginning with
21533 # underscore (_), so it is better to generate a list of symbols to export.
21534 always_export_symbols_GCJ=yes
21535 if test "$aix_use_runtimelinking" = yes; then
21536 # Warning - without using the other runtime loading flags (-brtl),
21537 # -berok will link without error, but may produce a broken library.
21538 allow_undefined_flag_GCJ='-berok'
21539 # Determine the default libpath from the value encoded in an empty executable.
21540 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021541/* confdefs.h. */
21542_ACEOF
21543cat confdefs.h >>conftest.$ac_ext
21544cat >>conftest.$ac_ext <<_ACEOF
21545/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021546
John Criswell47fdd832003-07-14 16:52:07 +000021547int
21548main ()
21549{
21550
21551 ;
21552 return 0;
21553}
21554_ACEOF
21555rm -f conftest.$ac_objext conftest$ac_exeext
21556if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021557 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021558 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021559 grep -v '^ *+' conftest.er1 >conftest.err
21560 rm -f conftest.er1
21561 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021564 { ac_try='test -z "$ac_c_werror_flag"
21565 || test ! -s conftest.err'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; } &&
21571 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573 (eval $ac_try) 2>&5
21574 ac_status=$?
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); }; }; then
21577
21578aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21579}'`
21580# Check for a 64-bit object if we didn't find anything.
21581if 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; }
21582}'`; fi
21583else
21584 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021585sed 's/^/| /' conftest.$ac_ext >&5
21586
John Criswell47fdd832003-07-14 16:52:07 +000021587fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021588rm -f conftest.err conftest.$ac_objext \
21589 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021590if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21591
21592 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21593 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"
21594 else
21595 if test "$host_cpu" = ia64; then
21596 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21597 allow_undefined_flag_GCJ="-z nodefs"
21598 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"
21599 else
21600 # Determine the default libpath from the value encoded in an empty executable.
21601 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021602/* confdefs.h. */
21603_ACEOF
21604cat confdefs.h >>conftest.$ac_ext
21605cat >>conftest.$ac_ext <<_ACEOF
21606/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000021607
John Criswell47fdd832003-07-14 16:52:07 +000021608int
21609main ()
21610{
21611
21612 ;
21613 return 0;
21614}
21615_ACEOF
21616rm -f conftest.$ac_objext conftest$ac_exeext
21617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021618 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000021619 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021620 grep -v '^ *+' conftest.er1 >conftest.err
21621 rm -f conftest.er1
21622 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000021623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021625 { ac_try='test -z "$ac_c_werror_flag"
21626 || test ! -s conftest.err'
21627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 (eval $ac_try) 2>&5
21629 ac_status=$?
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); }; } &&
21632 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000021633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634 (eval $ac_try) 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; }; then
21638
21639aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21640}'`
21641# Check for a 64-bit object if we didn't find anything.
21642if 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; }
21643}'`; fi
21644else
21645 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021646sed 's/^/| /' conftest.$ac_ext >&5
21647
John Criswell47fdd832003-07-14 16:52:07 +000021648fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021649rm -f conftest.err conftest.$ac_objext \
21650 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000021651if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21652
21653 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21654 # Warning - without using the other run time loading flags,
21655 # -berok will link without error, but may produce a broken library.
21656 no_undefined_flag_GCJ=' ${wl}-bernotok'
21657 allow_undefined_flag_GCJ=' ${wl}-berok'
21658 # -bexpall does not export symbols beginning with underscore (_)
21659 always_export_symbols_GCJ=yes
21660 # Exported symbols can be pulled into shared objects from archives
21661 whole_archive_flag_spec_GCJ=' '
21662 archive_cmds_need_lc_GCJ=yes
21663 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000021664 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 +000021665 fi
21666 fi
21667 ;;
21668
21669 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000021670 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 +000021671 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21672 hardcode_minus_L_GCJ=yes
21673 # see comment about different semantics on the GNU ld section
21674 ld_shlibs_GCJ=no
21675 ;;
21676
Reid Spencer2706f8c2004-09-19 23:53:36 +000021677 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000021678 export_dynamic_flag_spec_GCJ=-rdynamic
21679 ;;
21680
21681 cygwin* | mingw* | pw32*)
21682 # When not using gcc, we currently assume that we are using
21683 # Microsoft Visual C++.
21684 # hardcode_libdir_flag_spec is actually meaningless, as there is
21685 # no search path for DLLs.
21686 hardcode_libdir_flag_spec_GCJ=' '
21687 allow_undefined_flag_GCJ=unsupported
21688 # Tell ltmain to make .lib files, not .a files.
21689 libext=lib
21690 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021691 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000021692 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000021693 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 +000021694 # The linker will automatically build a .lib file if we build a DLL.
21695 old_archive_From_new_cmds_GCJ='true'
21696 # FIXME: Should let the user specify the lib program.
21697 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21698 fix_srcfile_path='`cygpath -w "$srcfile"`'
21699 enable_shared_with_static_runtimes_GCJ=yes
21700 ;;
21701
21702 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000021703 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000021704 rhapsody* | darwin1.[012])
21705 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
21706 ;;
21707 *) # Darwin 1.3 on
21708 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21709 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21710 else
21711 case ${MACOSX_DEPLOYMENT_TARGET} in
21712 10.[012])
21713 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
21714 ;;
21715 10.*)
21716 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
21717 ;;
21718 esac
21719 fi
21720 ;;
John Criswell47fdd832003-07-14 16:52:07 +000021721 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000021722 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000021723 hardcode_direct_GCJ=no
21724 hardcode_automatic_GCJ=yes
21725 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000021726 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000021727 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000021728 if test "$GCC" = yes ; then
21729 output_verbose_link_cmd='echo'
21730 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21731 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21732 # 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 +000021733 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}'
21734 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 +000021735 else
21736 case "$cc_basename" in
21737 xlc*)
21738 output_verbose_link_cmd='echo'
21739 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
21740 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21741 # 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 +000021742 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}'
21743 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 +000021744 ;;
21745 *)
21746 ld_shlibs_GCJ=no
21747 ;;
21748 esac
John Criswell47fdd832003-07-14 16:52:07 +000021749 fi
21750 ;;
21751
21752 dgux*)
21753 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21754 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21755 hardcode_shlibpath_var_GCJ=no
21756 ;;
21757
21758 freebsd1*)
21759 ld_shlibs_GCJ=no
21760 ;;
21761
21762 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21763 # support. Future versions do this automatically, but an explicit c++rt0.o
21764 # does not break anything, and helps significantly (at the cost of a little
21765 # extra space).
21766 freebsd2.2*)
21767 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21768 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21769 hardcode_direct_GCJ=yes
21770 hardcode_shlibpath_var_GCJ=no
21771 ;;
21772
21773 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21774 freebsd2*)
21775 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21776 hardcode_direct_GCJ=yes
21777 hardcode_minus_L_GCJ=yes
21778 hardcode_shlibpath_var_GCJ=no
21779 ;;
21780
21781 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000021782 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000021783 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21784 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21785 hardcode_direct_GCJ=yes
21786 hardcode_shlibpath_var_GCJ=no
21787 ;;
21788
21789 hpux9*)
21790 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000021791 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 +000021792 else
Reid Spencer177dbe22004-10-13 01:01:03 +000021793 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 +000021794 fi
21795 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21796 hardcode_libdir_separator_GCJ=:
21797 hardcode_direct_GCJ=yes
21798
21799 # hardcode_minus_L: Not really in the search PATH,
21800 # but as the default location of the library.
21801 hardcode_minus_L_GCJ=yes
21802 export_dynamic_flag_spec_GCJ='${wl}-E'
21803 ;;
21804
21805 hpux10* | hpux11*)
21806 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21807 case "$host_cpu" in
21808 hppa*64*|ia64*)
21809 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21810 ;;
21811 *)
21812 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21813 ;;
21814 esac
21815 else
21816 case "$host_cpu" in
21817 hppa*64*|ia64*)
21818 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21819 ;;
21820 *)
21821 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21822 ;;
21823 esac
21824 fi
21825 if test "$with_gnu_ld" = no; then
21826 case "$host_cpu" in
21827 hppa*64*)
21828 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21829 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21830 hardcode_libdir_separator_GCJ=:
21831 hardcode_direct_GCJ=no
21832 hardcode_shlibpath_var_GCJ=no
21833 ;;
21834 ia64*)
21835 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21836 hardcode_direct_GCJ=no
21837 hardcode_shlibpath_var_GCJ=no
21838
21839 # hardcode_minus_L: Not really in the search PATH,
21840 # but as the default location of the library.
21841 hardcode_minus_L_GCJ=yes
21842 ;;
21843 *)
21844 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21845 hardcode_libdir_separator_GCJ=:
21846 hardcode_direct_GCJ=yes
21847 export_dynamic_flag_spec_GCJ='${wl}-E'
21848
21849 # hardcode_minus_L: Not really in the search PATH,
21850 # but as the default location of the library.
21851 hardcode_minus_L_GCJ=yes
21852 ;;
21853 esac
21854 fi
21855 ;;
21856
21857 irix5* | irix6* | nonstopux*)
21858 if test "$GCC" = yes; then
21859 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'
21860 else
21861 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'
21862 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21863 fi
21864 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21865 hardcode_libdir_separator_GCJ=:
21866 link_all_deplibs_GCJ=yes
21867 ;;
21868
21869 netbsd*)
21870 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21871 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21872 else
21873 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21874 fi
21875 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21876 hardcode_direct_GCJ=yes
21877 hardcode_shlibpath_var_GCJ=no
21878 ;;
21879
21880 newsos6)
21881 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21882 hardcode_direct_GCJ=yes
21883 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21884 hardcode_libdir_separator_GCJ=:
21885 hardcode_shlibpath_var_GCJ=no
21886 ;;
21887
21888 openbsd*)
21889 hardcode_direct_GCJ=yes
21890 hardcode_shlibpath_var_GCJ=no
21891 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21892 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000021893 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 +000021894 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21895 export_dynamic_flag_spec_GCJ='${wl}-E'
21896 else
21897 case $host_os in
21898 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21899 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21900 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21901 ;;
21902 *)
21903 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21904 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21905 ;;
21906 esac
21907 fi
21908 ;;
21909
21910 os2*)
21911 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21912 hardcode_minus_L_GCJ=yes
21913 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000021914 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 +000021915 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21916 ;;
21917
21918 osf3*)
21919 if test "$GCC" = yes; then
21920 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21921 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'
21922 else
21923 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21924 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'
21925 fi
21926 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21927 hardcode_libdir_separator_GCJ=:
21928 ;;
21929
21930 osf4* | osf5*) # as osf3* with the addition of -msym flag
21931 if test "$GCC" = yes; then
21932 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21933 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'
21934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21935 else
21936 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21937 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 +000021938 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~
21939 $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'
21940
John Criswell47fdd832003-07-14 16:52:07 +000021941 # Both c and cxx compiler support -rpath directly
21942 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21943 fi
21944 hardcode_libdir_separator_GCJ=:
21945 ;;
21946
21947 sco3.2v5*)
21948 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21949 hardcode_shlibpath_var_GCJ=no
21950 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21951 runpath_var=LD_RUN_PATH
21952 hardcode_runpath_var=yes
21953 ;;
21954
21955 solaris*)
21956 no_undefined_flag_GCJ=' -z text'
21957 if test "$GCC" = yes; then
21958 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021959 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21960 $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 +000021961 else
21962 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000021963 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
21964 $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 +000021965 fi
21966 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21967 hardcode_shlibpath_var_GCJ=no
21968 case $host_os in
21969 solaris2.[0-5] | solaris2.[0-5].*) ;;
21970 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
21971 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
21972 esac
21973 link_all_deplibs_GCJ=yes
21974 ;;
21975
21976 sunos4*)
21977 if test "x$host_vendor" = xsequent; then
21978 # Use $CC to link under sequent, because it throws in some extra .o
21979 # files that make .init and .fini sections work.
21980 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
21981 else
21982 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
21983 fi
21984 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21985 hardcode_direct_GCJ=yes
21986 hardcode_minus_L_GCJ=yes
21987 hardcode_shlibpath_var_GCJ=no
21988 ;;
21989
21990 sysv4)
21991 case $host_vendor in
21992 sni)
21993 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21994 hardcode_direct_GCJ=yes # is this really true???
21995 ;;
21996 siemens)
21997 ## LD is ld it makes a PLAMLIB
21998 ## CC just makes a GrossModule.
21999 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22000 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22001 hardcode_direct_GCJ=no
22002 ;;
22003 motorola)
22004 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22005 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22006 ;;
22007 esac
22008 runpath_var='LD_RUN_PATH'
22009 hardcode_shlibpath_var_GCJ=no
22010 ;;
22011
22012 sysv4.3*)
22013 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22014 hardcode_shlibpath_var_GCJ=no
22015 export_dynamic_flag_spec_GCJ='-Bexport'
22016 ;;
22017
22018 sysv4*MP*)
22019 if test -d /usr/nec; then
22020 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22021 hardcode_shlibpath_var_GCJ=no
22022 runpath_var=LD_RUN_PATH
22023 hardcode_runpath_var=yes
22024 ld_shlibs_GCJ=yes
22025 fi
22026 ;;
22027
22028 sysv4.2uw2*)
22029 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22030 hardcode_direct_GCJ=yes
22031 hardcode_minus_L_GCJ=no
22032 hardcode_shlibpath_var_GCJ=no
22033 hardcode_runpath_var=yes
22034 runpath_var=LD_RUN_PATH
22035 ;;
22036
22037 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22038 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22039 if test "$GCC" = yes; then
22040 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22041 else
22042 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22043 fi
22044 runpath_var='LD_RUN_PATH'
22045 hardcode_shlibpath_var_GCJ=no
22046 ;;
22047
22048 sysv5*)
22049 no_undefined_flag_GCJ=' -z text'
22050 # $CC -shared without GNU ld will not create a library from C++
22051 # object files and a static libstdc++, better avoid it by now
22052 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000022053 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22054 $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 +000022055 hardcode_libdir_flag_spec_GCJ=
22056 hardcode_shlibpath_var_GCJ=no
22057 runpath_var='LD_RUN_PATH'
22058 ;;
22059
22060 uts4*)
22061 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22062 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22063 hardcode_shlibpath_var_GCJ=no
22064 ;;
22065
22066 *)
22067 ld_shlibs_GCJ=no
22068 ;;
22069 esac
22070 fi
22071
22072echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22073echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22074test "$ld_shlibs_GCJ" = no && can_build_shared=no
22075
22076variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22077if test "$GCC" = yes; then
22078 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22079fi
22080
22081#
22082# Do we need to explicitly link libc?
22083#
22084case "x$archive_cmds_need_lc_GCJ" in
22085x|xyes)
22086 # Assume -lc should be added
22087 archive_cmds_need_lc_GCJ=yes
22088
22089 if test "$enable_shared" = yes && test "$GCC" = yes; then
22090 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000022091 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000022092 # FIXME: we may have to deal with multi-command sequences.
22093 ;;
22094 '$CC '*)
22095 # Test whether the compiler implicitly links with -lc since on some
22096 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22097 # to ld, don't add -lc before -lgcc.
22098 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22099echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22100 $rm conftest*
22101 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22102
22103 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22104 (eval $ac_compile) 2>&5
22105 ac_status=$?
22106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107 (exit $ac_status); } 2>conftest.err; then
22108 soname=conftest
22109 lib=conftest
22110 libobjs=conftest.$ac_objext
22111 deplibs=
22112 wl=$lt_prog_compiler_wl_GCJ
22113 compiler_flags=-v
22114 linker_flags=-v
22115 verstring=
22116 output_objdir=.
22117 libname=conftest
22118 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22119 allow_undefined_flag_GCJ=
22120 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22121 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22122 ac_status=$?
22123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22124 (exit $ac_status); }
22125 then
22126 archive_cmds_need_lc_GCJ=no
22127 else
22128 archive_cmds_need_lc_GCJ=yes
22129 fi
22130 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22131 else
22132 cat conftest.err 1>&5
22133 fi
22134 $rm conftest*
22135 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22136echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22137 ;;
22138 esac
22139 fi
22140 ;;
22141esac
22142
John Criswell47fdd832003-07-14 16:52:07 +000022143echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22144echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22145library_names_spec=
22146libname_spec='lib$name'
22147soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000022148shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000022149postinstall_cmds=
22150postuninstall_cmds=
22151finish_cmds=
22152finish_eval=
22153shlibpath_var=
22154shlibpath_overrides_runpath=unknown
22155version_type=none
22156dynamic_linker="$host_os ld.so"
22157sys_lib_dlsearch_path_spec="/lib /usr/lib"
22158if test "$GCC" = yes; then
22159 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22160 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22161 # if the path contains ";" then we assume it to be the separator
22162 # otherwise default to the standard path separator (i.e. ":") - it is
22163 # assumed that no part of a normal pathname contains ";" but that should
22164 # okay in the real world where ";" in dirpaths is itself problematic.
22165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22166 else
22167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22168 fi
22169else
22170 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22171fi
22172need_lib_prefix=unknown
22173hardcode_into_libs=no
22174
22175# when you set need_version to no, make sure it does not cause -set_version
22176# flags to be left without arguments
22177need_version=unknown
22178
22179case $host_os in
22180aix3*)
22181 version_type=linux
22182 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22183 shlibpath_var=LIBPATH
22184
22185 # AIX 3 has no versioning support, so we append a major version to the name.
22186 soname_spec='${libname}${release}${shared_ext}$major'
22187 ;;
22188
22189aix4* | aix5*)
22190 version_type=linux
22191 need_lib_prefix=no
22192 need_version=no
22193 hardcode_into_libs=yes
22194 if test "$host_cpu" = ia64; then
22195 # AIX 5 supports IA64
22196 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22197 shlibpath_var=LD_LIBRARY_PATH
22198 else
22199 # With GCC up to 2.95.x, collect2 would create an import file
22200 # for dependence libraries. The import file would start with
22201 # the line `#! .'. This would cause the generated library to
22202 # depend on `.', always an invalid library. This was fixed in
22203 # development snapshots of GCC prior to 3.0.
22204 case $host_os in
22205 aix4 | aix4.[01] | aix4.[01].*)
22206 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22207 echo ' yes '
22208 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22209 :
22210 else
22211 can_build_shared=no
22212 fi
22213 ;;
22214 esac
22215 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22216 # soname into executable. Probably we can add versioning support to
22217 # collect2, so additional links can be useful in future.
22218 if test "$aix_use_runtimelinking" = yes; then
22219 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22220 # instead of lib<name>.a to let people know that these are not
22221 # typical AIX shared libraries.
22222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22223 else
22224 # We preserve .a as extension for shared libraries through AIX4.2
22225 # and later when we are not doing run time linking.
22226 library_names_spec='${libname}${release}.a $libname.a'
22227 soname_spec='${libname}${release}${shared_ext}$major'
22228 fi
22229 shlibpath_var=LIBPATH
22230 fi
22231 ;;
22232
22233amigaos*)
22234 library_names_spec='$libname.ixlibrary $libname.a'
22235 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022236 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 +000022237 ;;
22238
22239beos*)
22240 library_names_spec='${libname}${shared_ext}'
22241 dynamic_linker="$host_os ld.so"
22242 shlibpath_var=LIBRARY_PATH
22243 ;;
22244
Reid Spencer2706f8c2004-09-19 23:53:36 +000022245bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000022246 version_type=linux
22247 need_version=no
22248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22249 soname_spec='${libname}${release}${shared_ext}$major'
22250 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22251 shlibpath_var=LD_LIBRARY_PATH
22252 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22253 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22254 # the default ld.so.conf also contains /usr/contrib/lib and
22255 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22256 # libtool to hard-code these into programs
22257 ;;
22258
22259cygwin* | mingw* | pw32*)
22260 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000022261 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022262 need_version=no
22263 need_lib_prefix=no
22264
22265 case $GCC,$host_os in
22266 yes,cygwin* | yes,mingw* | yes,pw32*)
22267 library_names_spec='$libname.dll.a'
22268 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000022269 postinstall_cmds='base_file=`basename \${file}`~
22270 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22271 dldir=$destdir/`dirname \$dlpath`~
22272 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000022273 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000022274 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22275 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000022276 $rm \$dlpath'
22277 shlibpath_overrides_runpath=yes
22278
22279 case $host_os in
22280 cygwin*)
22281 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22282 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 +000022283 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000022284 ;;
22285 mingw*)
22286 # MinGW DLLs use traditional 'lib' prefix
22287 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22288 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22289 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22290 # It is most probably a Windows format PATH printed by
22291 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22292 # path with ; separators, and with drive letters. We can handle the
22293 # drive letters (cygwin fileutils understands them), so leave them,
22294 # especially as we might pass files found there to a mingw objdump,
22295 # which wouldn't understand a cygwinified path. Ahh.
22296 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22297 else
22298 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22299 fi
22300 ;;
22301 pw32*)
22302 # pw32 DLLs use 'pw' prefix rather than 'lib'
22303 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22304 ;;
22305 esac
22306 ;;
22307
22308 *)
22309 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22310 ;;
22311 esac
22312 dynamic_linker='Win32 ld.exe'
22313 # FIXME: first we should search . and the directory the executable is in
22314 shlibpath_var=PATH
22315 ;;
22316
22317darwin* | rhapsody*)
22318 dynamic_linker="$host_os dyld"
22319 version_type=darwin
22320 need_lib_prefix=no
22321 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000022322 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000022323 soname_spec='${libname}${release}${major}$shared_ext'
22324 shlibpath_overrides_runpath=yes
22325 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000022326 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000022327 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000022328 if test "$GCC" = yes; then
22329 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"`
22330 else
22331 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000022332 fi
22333 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22334 ;;
22335
22336dgux*)
22337 version_type=linux
22338 need_lib_prefix=no
22339 need_version=no
22340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22341 soname_spec='${libname}${release}${shared_ext}$major'
22342 shlibpath_var=LD_LIBRARY_PATH
22343 ;;
22344
22345freebsd1*)
22346 dynamic_linker=no
22347 ;;
22348
Reid Spencer2706f8c2004-09-19 23:53:36 +000022349kfreebsd*-gnu)
22350 version_type=linux
22351 need_lib_prefix=no
22352 need_version=no
22353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22354 soname_spec='${libname}${release}${shared_ext}$major'
22355 shlibpath_var=LD_LIBRARY_PATH
22356 shlibpath_overrides_runpath=no
22357 hardcode_into_libs=yes
22358 dynamic_linker='GNU ld.so'
22359 ;;
22360
John Criswell47fdd832003-07-14 16:52:07 +000022361freebsd*)
22362 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22363 version_type=freebsd-$objformat
22364 case $version_type in
22365 freebsd-elf*)
22366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22367 need_version=no
22368 need_lib_prefix=no
22369 ;;
22370 freebsd-*)
22371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22372 need_version=yes
22373 ;;
22374 esac
22375 shlibpath_var=LD_LIBRARY_PATH
22376 case $host_os in
22377 freebsd2*)
22378 shlibpath_overrides_runpath=yes
22379 ;;
22380 freebsd3.01* | freebsdelf3.01*)
22381 shlibpath_overrides_runpath=yes
22382 hardcode_into_libs=yes
22383 ;;
22384 *) # from 3.2 on
22385 shlibpath_overrides_runpath=no
22386 hardcode_into_libs=yes
22387 ;;
22388 esac
22389 ;;
22390
22391gnu*)
22392 version_type=linux
22393 need_lib_prefix=no
22394 need_version=no
22395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22396 soname_spec='${libname}${release}${shared_ext}$major'
22397 shlibpath_var=LD_LIBRARY_PATH
22398 hardcode_into_libs=yes
22399 ;;
22400
22401hpux9* | hpux10* | hpux11*)
22402 # Give a soname corresponding to the major version so that dld.sl refuses to
22403 # link against other versions.
22404 version_type=sunos
22405 need_lib_prefix=no
22406 need_version=no
22407 case "$host_cpu" in
22408 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022409 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000022410 hardcode_into_libs=yes
22411 dynamic_linker="$host_os dld.so"
22412 shlibpath_var=LD_LIBRARY_PATH
22413 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22415 soname_spec='${libname}${release}${shared_ext}$major'
22416 if test "X$HPUX_IA64_MODE" = X32; then
22417 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22418 else
22419 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22420 fi
22421 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22422 ;;
22423 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022424 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022425 hardcode_into_libs=yes
22426 dynamic_linker="$host_os dld.sl"
22427 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22428 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22430 soname_spec='${libname}${release}${shared_ext}$major'
22431 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22432 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22433 ;;
22434 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000022435 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000022436 dynamic_linker="$host_os dld.sl"
22437 shlibpath_var=SHLIB_PATH
22438 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22440 soname_spec='${libname}${release}${shared_ext}$major'
22441 ;;
22442 esac
22443 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22444 postinstall_cmds='chmod 555 $lib'
22445 ;;
22446
22447irix5* | irix6* | nonstopux*)
22448 case $host_os in
22449 nonstopux*) version_type=nonstopux ;;
22450 *)
22451 if test "$lt_cv_prog_gnu_ld" = yes; then
22452 version_type=linux
22453 else
22454 version_type=irix
22455 fi ;;
22456 esac
22457 need_lib_prefix=no
22458 need_version=no
22459 soname_spec='${libname}${release}${shared_ext}$major'
22460 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22461 case $host_os in
22462 irix5* | nonstopux*)
22463 libsuff= shlibsuff=
22464 ;;
22465 *)
22466 case $LD in # libtool.m4 will add one of these switches to LD
22467 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22468 libsuff= shlibsuff= libmagic=32-bit;;
22469 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22470 libsuff=32 shlibsuff=N32 libmagic=N32;;
22471 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22472 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22473 *) libsuff= shlibsuff= libmagic=never-match;;
22474 esac
22475 ;;
22476 esac
22477 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22478 shlibpath_overrides_runpath=no
22479 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22480 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22481 hardcode_into_libs=yes
22482 ;;
22483
22484# No shared lib support for Linux oldld, aout, or coff.
22485linux*oldld* | linux*aout* | linux*coff*)
22486 dynamic_linker=no
22487 ;;
22488
22489# This must be Linux ELF.
22490linux*)
22491 version_type=linux
22492 need_lib_prefix=no
22493 need_version=no
22494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22495 soname_spec='${libname}${release}${shared_ext}$major'
22496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22497 shlibpath_var=LD_LIBRARY_PATH
22498 shlibpath_overrides_runpath=no
22499 # This implies no fast_install, which is unacceptable.
22500 # Some rework will be needed to allow for fast_install
22501 # before this can be enabled.
22502 hardcode_into_libs=yes
22503
Reid Spencer2706f8c2004-09-19 23:53:36 +000022504 # Append ld.so.conf contents to the search path
22505 if test -f /etc/ld.so.conf; then
22506 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22507 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22508 fi
22509
John Criswell47fdd832003-07-14 16:52:07 +000022510 # We used to test for /lib/ld.so.1 and disable shared libraries on
22511 # powerpc, because MkLinux only supported shared libraries with the
22512 # GNU dynamic linker. Since this was broken with cross compilers,
22513 # most powerpc-linux boxes support dynamic linking these days and
22514 # people can always --disable-shared, the test was removed, and we
22515 # assume the GNU/Linux dynamic linker is in use.
22516 dynamic_linker='GNU/Linux ld.so'
22517 ;;
22518
Reid Spencer2706f8c2004-09-19 23:53:36 +000022519knetbsd*-gnu)
22520 version_type=linux
22521 need_lib_prefix=no
22522 need_version=no
22523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22524 soname_spec='${libname}${release}${shared_ext}$major'
22525 shlibpath_var=LD_LIBRARY_PATH
22526 shlibpath_overrides_runpath=no
22527 hardcode_into_libs=yes
22528 dynamic_linker='GNU ld.so'
22529 ;;
22530
John Criswell47fdd832003-07-14 16:52:07 +000022531netbsd*)
22532 version_type=sunos
22533 need_lib_prefix=no
22534 need_version=no
22535 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22538 dynamic_linker='NetBSD (a.out) ld.so'
22539 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000022541 soname_spec='${libname}${release}${shared_ext}$major'
22542 dynamic_linker='NetBSD ld.elf_so'
22543 fi
22544 shlibpath_var=LD_LIBRARY_PATH
22545 shlibpath_overrides_runpath=yes
22546 hardcode_into_libs=yes
22547 ;;
22548
22549newsos6)
22550 version_type=linux
22551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22552 shlibpath_var=LD_LIBRARY_PATH
22553 shlibpath_overrides_runpath=yes
22554 ;;
22555
Reid Spencer2706f8c2004-09-19 23:53:36 +000022556nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000022557 version_type=linux
22558 need_lib_prefix=no
22559 need_version=no
22560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22561 soname_spec='${libname}${release}${shared_ext}$major'
22562 shlibpath_var=LD_LIBRARY_PATH
22563 shlibpath_overrides_runpath=yes
22564 ;;
22565
22566openbsd*)
22567 version_type=sunos
22568 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000022569 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000022570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22571 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22572 shlibpath_var=LD_LIBRARY_PATH
22573 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22574 case $host_os in
22575 openbsd2.[89] | openbsd2.[89].*)
22576 shlibpath_overrides_runpath=no
22577 ;;
22578 *)
22579 shlibpath_overrides_runpath=yes
22580 ;;
22581 esac
22582 else
22583 shlibpath_overrides_runpath=yes
22584 fi
22585 ;;
22586
22587os2*)
22588 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000022589 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000022590 need_lib_prefix=no
22591 library_names_spec='$libname${shared_ext} $libname.a'
22592 dynamic_linker='OS/2 ld.exe'
22593 shlibpath_var=LIBPATH
22594 ;;
22595
22596osf3* | osf4* | osf5*)
22597 version_type=osf
22598 need_lib_prefix=no
22599 need_version=no
22600 soname_spec='${libname}${release}${shared_ext}$major'
22601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22602 shlibpath_var=LD_LIBRARY_PATH
22603 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22604 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22605 ;;
22606
22607sco3.2v5*)
22608 version_type=osf
22609 soname_spec='${libname}${release}${shared_ext}$major'
22610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22611 shlibpath_var=LD_LIBRARY_PATH
22612 ;;
22613
22614solaris*)
22615 version_type=linux
22616 need_lib_prefix=no
22617 need_version=no
22618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22619 soname_spec='${libname}${release}${shared_ext}$major'
22620 shlibpath_var=LD_LIBRARY_PATH
22621 shlibpath_overrides_runpath=yes
22622 hardcode_into_libs=yes
22623 # ldd complains unless libraries are executable
22624 postinstall_cmds='chmod +x $lib'
22625 ;;
22626
22627sunos4*)
22628 version_type=sunos
22629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22630 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22631 shlibpath_var=LD_LIBRARY_PATH
22632 shlibpath_overrides_runpath=yes
22633 if test "$with_gnu_ld" = yes; then
22634 need_lib_prefix=no
22635 fi
22636 need_version=yes
22637 ;;
22638
22639sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22640 version_type=linux
22641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22642 soname_spec='${libname}${release}${shared_ext}$major'
22643 shlibpath_var=LD_LIBRARY_PATH
22644 case $host_vendor in
22645 sni)
22646 shlibpath_overrides_runpath=no
22647 need_lib_prefix=no
22648 export_dynamic_flag_spec='${wl}-Blargedynsym'
22649 runpath_var=LD_RUN_PATH
22650 ;;
22651 siemens)
22652 need_lib_prefix=no
22653 ;;
22654 motorola)
22655 need_lib_prefix=no
22656 need_version=no
22657 shlibpath_overrides_runpath=no
22658 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22659 ;;
22660 esac
22661 ;;
22662
22663sysv4*MP*)
22664 if test -d /usr/nec ;then
22665 version_type=linux
22666 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22667 soname_spec='$libname${shared_ext}.$major'
22668 shlibpath_var=LD_LIBRARY_PATH
22669 fi
22670 ;;
22671
22672uts4*)
22673 version_type=linux
22674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22675 soname_spec='${libname}${release}${shared_ext}$major'
22676 shlibpath_var=LD_LIBRARY_PATH
22677 ;;
22678
22679*)
22680 dynamic_linker=no
22681 ;;
22682esac
22683echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22684echo "${ECHO_T}$dynamic_linker" >&6
22685test "$dynamic_linker" = no && can_build_shared=no
22686
Reid Spencer2706f8c2004-09-19 23:53:36 +000022687echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22688echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22689hardcode_action_GCJ=
22690if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22691 test -n "$runpath_var_GCJ" || \
22692 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
22693
22694 # We can hardcode non-existant directories.
22695 if test "$hardcode_direct_GCJ" != no &&
22696 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22697 # have to relink, otherwise we might link with an installed library
22698 # when we should be linking with a yet-to-be-installed one
22699 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22700 test "$hardcode_minus_L_GCJ" != no; then
22701 # Linking always hardcodes the temporary library directory.
22702 hardcode_action_GCJ=relink
22703 else
22704 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22705 hardcode_action_GCJ=immediate
22706 fi
22707else
22708 # We cannot hardcode anything, or else we can only hardcode existing
22709 # directories.
22710 hardcode_action_GCJ=unsupported
22711fi
22712echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22713echo "${ECHO_T}$hardcode_action_GCJ" >&6
22714
22715if test "$hardcode_action_GCJ" = relink; then
22716 # Fast installation is not supported
22717 enable_fast_install=no
22718elif test "$shlibpath_overrides_runpath" = yes ||
22719 test "$enable_shared" = no; then
22720 # Fast installation is not necessary
22721 enable_fast_install=needless
22722fi
22723
22724striplib=
22725old_striplib=
22726echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22727echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22728if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22729 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22730 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22731 echo "$as_me:$LINENO: result: yes" >&5
22732echo "${ECHO_T}yes" >&6
22733else
22734# FIXME - insert some real tests, host_os isn't really good enough
22735 case $host_os in
22736 darwin*)
22737 if test -n "$STRIP" ; then
22738 striplib="$STRIP -x"
22739 echo "$as_me:$LINENO: result: yes" >&5
22740echo "${ECHO_T}yes" >&6
22741 else
22742 echo "$as_me:$LINENO: result: no" >&5
22743echo "${ECHO_T}no" >&6
22744fi
22745 ;;
22746 *)
22747 echo "$as_me:$LINENO: result: no" >&5
22748echo "${ECHO_T}no" >&6
22749 ;;
22750 esac
22751fi
22752
John Criswell47fdd832003-07-14 16:52:07 +000022753if test "x$enable_dlopen" != xyes; then
22754 enable_dlopen=unknown
22755 enable_dlopen_self=unknown
22756 enable_dlopen_self_static=unknown
22757else
22758 lt_cv_dlopen=no
22759 lt_cv_dlopen_libs=
22760
22761 case $host_os in
22762 beos*)
22763 lt_cv_dlopen="load_add_on"
22764 lt_cv_dlopen_libs=
22765 lt_cv_dlopen_self=yes
22766 ;;
22767
22768 mingw* | pw32*)
22769 lt_cv_dlopen="LoadLibrary"
22770 lt_cv_dlopen_libs=
22771 ;;
22772
22773 cygwin*)
22774 lt_cv_dlopen="dlopen"
22775 lt_cv_dlopen_libs=
22776 ;;
22777
22778 darwin*)
22779 # if libdl is installed we need to link against it
22780 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22781echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22782if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22783 echo $ECHO_N "(cached) $ECHO_C" >&6
22784else
22785 ac_check_lib_save_LIBS=$LIBS
22786LIBS="-ldl $LIBS"
22787cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022788/* confdefs.h. */
22789_ACEOF
22790cat confdefs.h >>conftest.$ac_ext
22791cat >>conftest.$ac_ext <<_ACEOF
22792/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022793
22794/* Override any gcc2 internal prototype to avoid an error. */
22795#ifdef __cplusplus
22796extern "C"
22797#endif
22798/* We use char because int might match the return type of a gcc2
22799 builtin and then its argument prototype would still apply. */
22800char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000022801int
22802main ()
22803{
22804dlopen ();
22805 ;
22806 return 0;
22807}
22808_ACEOF
22809rm -f conftest.$ac_objext conftest$ac_exeext
22810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022811 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022812 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022813 grep -v '^ *+' conftest.er1 >conftest.err
22814 rm -f conftest.er1
22815 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22817 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022818 { ac_try='test -z "$ac_c_werror_flag"
22819 || test ! -s conftest.err'
22820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22821 (eval $ac_try) 2>&5
22822 ac_status=$?
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); }; } &&
22825 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22827 (eval $ac_try) 2>&5
22828 ac_status=$?
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); }; }; then
22831 ac_cv_lib_dl_dlopen=yes
22832else
22833 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022834sed 's/^/| /' conftest.$ac_ext >&5
22835
John Criswell47fdd832003-07-14 16:52:07 +000022836ac_cv_lib_dl_dlopen=no
22837fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022838rm -f conftest.err conftest.$ac_objext \
22839 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022840LIBS=$ac_check_lib_save_LIBS
22841fi
22842echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22843echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22844if test $ac_cv_lib_dl_dlopen = yes; then
22845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22846else
22847
22848 lt_cv_dlopen="dyld"
22849 lt_cv_dlopen_libs=
22850 lt_cv_dlopen_self=yes
22851
22852fi
22853
22854 ;;
22855
22856 *)
22857 echo "$as_me:$LINENO: checking for shl_load" >&5
22858echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22859if test "${ac_cv_func_shl_load+set}" = set; then
22860 echo $ECHO_N "(cached) $ECHO_C" >&6
22861else
22862 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022863/* confdefs.h. */
22864_ACEOF
22865cat confdefs.h >>conftest.$ac_ext
22866cat >>conftest.$ac_ext <<_ACEOF
22867/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022868/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22870#define shl_load innocuous_shl_load
22871
John Criswell47fdd832003-07-14 16:52:07 +000022872/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022873 which can conflict with char shl_load (); below.
22874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22875 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022876
John Criswell0c38eaf2003-09-10 15:17:25 +000022877#ifdef __STDC__
22878# include <limits.h>
22879#else
22880# include <assert.h>
22881#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022882
22883#undef shl_load
22884
John Criswell47fdd832003-07-14 16:52:07 +000022885/* Override any gcc2 internal prototype to avoid an error. */
22886#ifdef __cplusplus
22887extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022888{
John Criswell47fdd832003-07-14 16:52:07 +000022889#endif
22890/* We use char because int might match the return type of a gcc2
22891 builtin and then its argument prototype would still apply. */
22892char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000022893/* The GNU C library defines this for functions which it implements
22894 to always fail with ENOSYS. Some functions are actually named
22895 something starting with __ and the normal name is an alias. */
22896#if defined (__stub_shl_load) || defined (__stub___shl_load)
22897choke me
22898#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022899char (*f) () = shl_load;
22900#endif
22901#ifdef __cplusplus
22902}
John Criswell47fdd832003-07-14 16:52:07 +000022903#endif
22904
John Criswell0c38eaf2003-09-10 15:17:25 +000022905int
22906main ()
22907{
22908return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000022909 ;
22910 return 0;
22911}
22912_ACEOF
22913rm -f conftest.$ac_objext conftest$ac_exeext
22914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022915 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022916 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022917 grep -v '^ *+' conftest.er1 >conftest.err
22918 rm -f conftest.er1
22919 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022922 { ac_try='test -z "$ac_c_werror_flag"
22923 || test ! -s conftest.err'
22924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22925 (eval $ac_try) 2>&5
22926 ac_status=$?
22927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22928 (exit $ac_status); }; } &&
22929 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22931 (eval $ac_try) 2>&5
22932 ac_status=$?
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); }; }; then
22935 ac_cv_func_shl_load=yes
22936else
22937 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022938sed 's/^/| /' conftest.$ac_ext >&5
22939
John Criswell47fdd832003-07-14 16:52:07 +000022940ac_cv_func_shl_load=no
22941fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022942rm -f conftest.err conftest.$ac_objext \
22943 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000022944fi
22945echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22946echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22947if test $ac_cv_func_shl_load = yes; then
22948 lt_cv_dlopen="shl_load"
22949else
22950 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22951echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22952if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22953 echo $ECHO_N "(cached) $ECHO_C" >&6
22954else
22955 ac_check_lib_save_LIBS=$LIBS
22956LIBS="-ldld $LIBS"
22957cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022958/* confdefs.h. */
22959_ACEOF
22960cat confdefs.h >>conftest.$ac_ext
22961cat >>conftest.$ac_ext <<_ACEOF
22962/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000022963
22964/* Override any gcc2 internal prototype to avoid an error. */
22965#ifdef __cplusplus
22966extern "C"
22967#endif
22968/* We use char because int might match the return type of a gcc2
22969 builtin and then its argument prototype would still apply. */
22970char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000022971int
22972main ()
22973{
22974shl_load ();
22975 ;
22976 return 0;
22977}
22978_ACEOF
22979rm -f conftest.$ac_objext conftest$ac_exeext
22980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022981 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000022982 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022983 grep -v '^ *+' conftest.er1 >conftest.err
22984 rm -f conftest.er1
22985 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000022986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022988 { ac_try='test -z "$ac_c_werror_flag"
22989 || test ! -s conftest.err'
22990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22991 (eval $ac_try) 2>&5
22992 ac_status=$?
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); }; } &&
22995 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000022996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22997 (eval $ac_try) 2>&5
22998 ac_status=$?
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); }; }; then
23001 ac_cv_lib_dld_shl_load=yes
23002else
23003 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023004sed 's/^/| /' conftest.$ac_ext >&5
23005
John Criswell47fdd832003-07-14 16:52:07 +000023006ac_cv_lib_dld_shl_load=no
23007fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023008rm -f conftest.err conftest.$ac_objext \
23009 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023010LIBS=$ac_check_lib_save_LIBS
23011fi
23012echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23013echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23014if test $ac_cv_lib_dld_shl_load = yes; then
23015 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23016else
23017 echo "$as_me:$LINENO: checking for dlopen" >&5
23018echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23019if test "${ac_cv_func_dlopen+set}" = set; then
23020 echo $ECHO_N "(cached) $ECHO_C" >&6
23021else
23022 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023023/* confdefs.h. */
23024_ACEOF
23025cat confdefs.h >>conftest.$ac_ext
23026cat >>conftest.$ac_ext <<_ACEOF
23027/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023028/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23030#define dlopen innocuous_dlopen
23031
John Criswell47fdd832003-07-14 16:52:07 +000023032/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023033 which can conflict with char dlopen (); below.
23034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23035 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023036
John Criswell0c38eaf2003-09-10 15:17:25 +000023037#ifdef __STDC__
23038# include <limits.h>
23039#else
23040# include <assert.h>
23041#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023042
23043#undef dlopen
23044
John Criswell47fdd832003-07-14 16:52:07 +000023045/* Override any gcc2 internal prototype to avoid an error. */
23046#ifdef __cplusplus
23047extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023048{
John Criswell47fdd832003-07-14 16:52:07 +000023049#endif
23050/* We use char because int might match the return type of a gcc2
23051 builtin and then its argument prototype would still apply. */
23052char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023053/* The GNU C library defines this for functions which it implements
23054 to always fail with ENOSYS. Some functions are actually named
23055 something starting with __ and the normal name is an alias. */
23056#if defined (__stub_dlopen) || defined (__stub___dlopen)
23057choke me
23058#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023059char (*f) () = dlopen;
23060#endif
23061#ifdef __cplusplus
23062}
John Criswell47fdd832003-07-14 16:52:07 +000023063#endif
23064
John Criswell0c38eaf2003-09-10 15:17:25 +000023065int
23066main ()
23067{
23068return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000023069 ;
23070 return 0;
23071}
23072_ACEOF
23073rm -f conftest.$ac_objext conftest$ac_exeext
23074if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023075 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023076 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023077 grep -v '^ *+' conftest.er1 >conftest.err
23078 rm -f conftest.er1
23079 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23081 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023082 { ac_try='test -z "$ac_c_werror_flag"
23083 || test ! -s conftest.err'
23084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23085 (eval $ac_try) 2>&5
23086 ac_status=$?
23087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23088 (exit $ac_status); }; } &&
23089 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091 (eval $ac_try) 2>&5
23092 ac_status=$?
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; }; then
23095 ac_cv_func_dlopen=yes
23096else
23097 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023098sed 's/^/| /' conftest.$ac_ext >&5
23099
John Criswell47fdd832003-07-14 16:52:07 +000023100ac_cv_func_dlopen=no
23101fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023102rm -f conftest.err conftest.$ac_objext \
23103 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023104fi
23105echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23106echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23107if test $ac_cv_func_dlopen = yes; then
23108 lt_cv_dlopen="dlopen"
23109else
23110 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23111echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23112if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23113 echo $ECHO_N "(cached) $ECHO_C" >&6
23114else
23115 ac_check_lib_save_LIBS=$LIBS
23116LIBS="-ldl $LIBS"
23117cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023118/* confdefs.h. */
23119_ACEOF
23120cat confdefs.h >>conftest.$ac_ext
23121cat >>conftest.$ac_ext <<_ACEOF
23122/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023123
23124/* Override any gcc2 internal prototype to avoid an error. */
23125#ifdef __cplusplus
23126extern "C"
23127#endif
23128/* We use char because int might match the return type of a gcc2
23129 builtin and then its argument prototype would still apply. */
23130char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023131int
23132main ()
23133{
23134dlopen ();
23135 ;
23136 return 0;
23137}
23138_ACEOF
23139rm -f conftest.$ac_objext conftest$ac_exeext
23140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023141 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023142 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023143 grep -v '^ *+' conftest.er1 >conftest.err
23144 rm -f conftest.er1
23145 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023148 { ac_try='test -z "$ac_c_werror_flag"
23149 || test ! -s conftest.err'
23150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151 (eval $ac_try) 2>&5
23152 ac_status=$?
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); }; } &&
23155 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23157 (eval $ac_try) 2>&5
23158 ac_status=$?
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); }; }; then
23161 ac_cv_lib_dl_dlopen=yes
23162else
23163 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023164sed 's/^/| /' conftest.$ac_ext >&5
23165
John Criswell47fdd832003-07-14 16:52:07 +000023166ac_cv_lib_dl_dlopen=no
23167fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023168rm -f conftest.err conftest.$ac_objext \
23169 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023170LIBS=$ac_check_lib_save_LIBS
23171fi
23172echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23173echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23174if test $ac_cv_lib_dl_dlopen = yes; then
23175 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23176else
23177 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23178echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23179if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23181else
23182 ac_check_lib_save_LIBS=$LIBS
23183LIBS="-lsvld $LIBS"
23184cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023185/* confdefs.h. */
23186_ACEOF
23187cat confdefs.h >>conftest.$ac_ext
23188cat >>conftest.$ac_ext <<_ACEOF
23189/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023190
23191/* Override any gcc2 internal prototype to avoid an error. */
23192#ifdef __cplusplus
23193extern "C"
23194#endif
23195/* We use char because int might match the return type of a gcc2
23196 builtin and then its argument prototype would still apply. */
23197char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000023198int
23199main ()
23200{
23201dlopen ();
23202 ;
23203 return 0;
23204}
23205_ACEOF
23206rm -f conftest.$ac_objext conftest$ac_exeext
23207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023208 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023209 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023210 grep -v '^ *+' conftest.er1 >conftest.err
23211 rm -f conftest.er1
23212 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023215 { ac_try='test -z "$ac_c_werror_flag"
23216 || test ! -s conftest.err'
23217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23218 (eval $ac_try) 2>&5
23219 ac_status=$?
23220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23221 (exit $ac_status); }; } &&
23222 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23224 (eval $ac_try) 2>&5
23225 ac_status=$?
23226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23227 (exit $ac_status); }; }; then
23228 ac_cv_lib_svld_dlopen=yes
23229else
23230 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023231sed 's/^/| /' conftest.$ac_ext >&5
23232
John Criswell47fdd832003-07-14 16:52:07 +000023233ac_cv_lib_svld_dlopen=no
23234fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023235rm -f conftest.err conftest.$ac_objext \
23236 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023237LIBS=$ac_check_lib_save_LIBS
23238fi
23239echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23240echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23241if test $ac_cv_lib_svld_dlopen = yes; then
23242 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23243else
23244 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23245echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23246if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23247 echo $ECHO_N "(cached) $ECHO_C" >&6
23248else
23249 ac_check_lib_save_LIBS=$LIBS
23250LIBS="-ldld $LIBS"
23251cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023252/* confdefs.h. */
23253_ACEOF
23254cat confdefs.h >>conftest.$ac_ext
23255cat >>conftest.$ac_ext <<_ACEOF
23256/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000023257
23258/* Override any gcc2 internal prototype to avoid an error. */
23259#ifdef __cplusplus
23260extern "C"
23261#endif
23262/* We use char because int might match the return type of a gcc2
23263 builtin and then its argument prototype would still apply. */
23264char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000023265int
23266main ()
23267{
23268dld_link ();
23269 ;
23270 return 0;
23271}
23272_ACEOF
23273rm -f conftest.$ac_objext conftest$ac_exeext
23274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023275 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000023276 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023277 grep -v '^ *+' conftest.er1 >conftest.err
23278 rm -f conftest.er1
23279 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000023280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023282 { ac_try='test -z "$ac_c_werror_flag"
23283 || test ! -s conftest.err'
23284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23285 (eval $ac_try) 2>&5
23286 ac_status=$?
23287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23288 (exit $ac_status); }; } &&
23289 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000023290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23291 (eval $ac_try) 2>&5
23292 ac_status=$?
23293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23294 (exit $ac_status); }; }; then
23295 ac_cv_lib_dld_dld_link=yes
23296else
23297 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023298sed 's/^/| /' conftest.$ac_ext >&5
23299
John Criswell47fdd832003-07-14 16:52:07 +000023300ac_cv_lib_dld_dld_link=no
23301fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023302rm -f conftest.err conftest.$ac_objext \
23303 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000023304LIBS=$ac_check_lib_save_LIBS
23305fi
23306echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23307echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23308if test $ac_cv_lib_dld_dld_link = yes; then
23309 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23310fi
23311
23312
23313fi
23314
23315
23316fi
23317
23318
23319fi
23320
23321
23322fi
23323
23324
23325fi
23326
23327 ;;
23328 esac
23329
23330 if test "x$lt_cv_dlopen" != xno; then
23331 enable_dlopen=yes
23332 else
23333 enable_dlopen=no
23334 fi
23335
23336 case $lt_cv_dlopen in
23337 dlopen)
23338 save_CPPFLAGS="$CPPFLAGS"
23339 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23340
23341 save_LDFLAGS="$LDFLAGS"
23342 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23343
23344 save_LIBS="$LIBS"
23345 LIBS="$lt_cv_dlopen_libs $LIBS"
23346
23347 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23348echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23349if test "${lt_cv_dlopen_self+set}" = set; then
23350 echo $ECHO_N "(cached) $ECHO_C" >&6
23351else
23352 if test "$cross_compiling" = yes; then :
23353 lt_cv_dlopen_self=cross
23354else
23355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23356 lt_status=$lt_dlunknown
23357 cat > conftest.$ac_ext <<EOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000023358#line 23358 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023359#include "confdefs.h"
23360
23361#if HAVE_DLFCN_H
23362#include <dlfcn.h>
23363#endif
23364
23365#include <stdio.h>
23366
23367#ifdef RTLD_GLOBAL
23368# define LT_DLGLOBAL RTLD_GLOBAL
23369#else
23370# ifdef DL_GLOBAL
23371# define LT_DLGLOBAL DL_GLOBAL
23372# else
23373# define LT_DLGLOBAL 0
23374# endif
23375#endif
23376
23377/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23378 find out it does not work in some platform. */
23379#ifndef LT_DLLAZY_OR_NOW
23380# ifdef RTLD_LAZY
23381# define LT_DLLAZY_OR_NOW RTLD_LAZY
23382# else
23383# ifdef DL_LAZY
23384# define LT_DLLAZY_OR_NOW DL_LAZY
23385# else
23386# ifdef RTLD_NOW
23387# define LT_DLLAZY_OR_NOW RTLD_NOW
23388# else
23389# ifdef DL_NOW
23390# define LT_DLLAZY_OR_NOW DL_NOW
23391# else
23392# define LT_DLLAZY_OR_NOW 0
23393# endif
23394# endif
23395# endif
23396# endif
23397#endif
23398
23399#ifdef __cplusplus
23400extern "C" void exit (int);
23401#endif
23402
23403void fnord() { int i=42;}
23404int main ()
23405{
23406 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23407 int status = $lt_dlunknown;
23408
23409 if (self)
23410 {
23411 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23412 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23413 /* dlclose (self); */
23414 }
23415
23416 exit (status);
23417}
23418EOF
23419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23420 (eval $ac_link) 2>&5
23421 ac_status=$?
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23424 (./conftest; exit; ) 2>/dev/null
23425 lt_status=$?
23426 case x$lt_status in
23427 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23428 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23429 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23430 esac
23431 else :
23432 # compilation failed
23433 lt_cv_dlopen_self=no
23434 fi
23435fi
23436rm -fr conftest*
23437
23438
23439fi
23440echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23441echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23442
23443 if test "x$lt_cv_dlopen_self" = xyes; then
23444 LDFLAGS="$LDFLAGS $link_static_flag"
23445 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23446echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23447if test "${lt_cv_dlopen_self_static+set}" = set; then
23448 echo $ECHO_N "(cached) $ECHO_C" >&6
23449else
23450 if test "$cross_compiling" = yes; then :
23451 lt_cv_dlopen_self_static=cross
23452else
23453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23454 lt_status=$lt_dlunknown
23455 cat > conftest.$ac_ext <<EOF
Reid Spencer2bc7bd52004-11-29 12:29:58 +000023456#line 23456 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000023457#include "confdefs.h"
23458
23459#if HAVE_DLFCN_H
23460#include <dlfcn.h>
23461#endif
23462
23463#include <stdio.h>
23464
23465#ifdef RTLD_GLOBAL
23466# define LT_DLGLOBAL RTLD_GLOBAL
23467#else
23468# ifdef DL_GLOBAL
23469# define LT_DLGLOBAL DL_GLOBAL
23470# else
23471# define LT_DLGLOBAL 0
23472# endif
23473#endif
23474
23475/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23476 find out it does not work in some platform. */
23477#ifndef LT_DLLAZY_OR_NOW
23478# ifdef RTLD_LAZY
23479# define LT_DLLAZY_OR_NOW RTLD_LAZY
23480# else
23481# ifdef DL_LAZY
23482# define LT_DLLAZY_OR_NOW DL_LAZY
23483# else
23484# ifdef RTLD_NOW
23485# define LT_DLLAZY_OR_NOW RTLD_NOW
23486# else
23487# ifdef DL_NOW
23488# define LT_DLLAZY_OR_NOW DL_NOW
23489# else
23490# define LT_DLLAZY_OR_NOW 0
23491# endif
23492# endif
23493# endif
23494# endif
23495#endif
23496
23497#ifdef __cplusplus
23498extern "C" void exit (int);
23499#endif
23500
23501void fnord() { int i=42;}
23502int main ()
23503{
23504 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23505 int status = $lt_dlunknown;
23506
23507 if (self)
23508 {
23509 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23510 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23511 /* dlclose (self); */
23512 }
23513
23514 exit (status);
23515}
23516EOF
23517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23518 (eval $ac_link) 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23522 (./conftest; exit; ) 2>/dev/null
23523 lt_status=$?
23524 case x$lt_status in
23525 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23526 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23527 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23528 esac
23529 else :
23530 # compilation failed
23531 lt_cv_dlopen_self_static=no
23532 fi
23533fi
23534rm -fr conftest*
23535
23536
23537fi
23538echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23539echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23540 fi
23541
23542 CPPFLAGS="$save_CPPFLAGS"
23543 LDFLAGS="$save_LDFLAGS"
23544 LIBS="$save_LIBS"
23545 ;;
23546 esac
23547
23548 case $lt_cv_dlopen_self in
23549 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23550 *) enable_dlopen_self=unknown ;;
23551 esac
23552
23553 case $lt_cv_dlopen_self_static in
23554 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23555 *) enable_dlopen_self_static=unknown ;;
23556 esac
23557fi
23558
23559
23560# The else clause should only fire when bootstrapping the
23561# libtool distribution, otherwise you forgot to ship ltmain.sh
23562# with your package, and you will get complaints that there are
23563# no rules to generate ltmain.sh.
23564if test -f "$ltmain"; then
23565 # See if we are running on zsh, and set the options which allow our commands through
23566 # without removal of \ escapes.
23567 if test -n "${ZSH_VERSION+set}" ; then
23568 setopt NO_GLOB_SUBST
23569 fi
23570 # Now quote all the things that may contain metacharacters while being
23571 # careful not to overquote the AC_SUBSTed values. We take copies of the
23572 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023573 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23574 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000023575 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23576 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23577 deplibs_check_method reload_flag reload_cmds need_locks \
23578 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23579 lt_cv_sys_global_symbol_to_c_name_address \
23580 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23581 old_postinstall_cmds old_postuninstall_cmds \
23582 compiler_GCJ \
23583 CC_GCJ \
23584 LD_GCJ \
23585 lt_prog_compiler_wl_GCJ \
23586 lt_prog_compiler_pic_GCJ \
23587 lt_prog_compiler_static_GCJ \
23588 lt_prog_compiler_no_builtin_flag_GCJ \
23589 export_dynamic_flag_spec_GCJ \
23590 thread_safe_flag_spec_GCJ \
23591 whole_archive_flag_spec_GCJ \
23592 enable_shared_with_static_runtimes_GCJ \
23593 old_archive_cmds_GCJ \
23594 old_archive_from_new_cmds_GCJ \
23595 predep_objects_GCJ \
23596 postdep_objects_GCJ \
23597 predeps_GCJ \
23598 postdeps_GCJ \
23599 compiler_lib_search_path_GCJ \
23600 archive_cmds_GCJ \
23601 archive_expsym_cmds_GCJ \
23602 postinstall_cmds_GCJ \
23603 postuninstall_cmds_GCJ \
23604 old_archive_from_expsyms_cmds_GCJ \
23605 allow_undefined_flag_GCJ \
23606 no_undefined_flag_GCJ \
23607 export_symbols_cmds_GCJ \
23608 hardcode_libdir_flag_spec_GCJ \
23609 hardcode_libdir_flag_spec_ld_GCJ \
23610 hardcode_libdir_separator_GCJ \
23611 hardcode_automatic_GCJ \
23612 module_cmds_GCJ \
23613 module_expsym_cmds_GCJ \
23614 lt_cv_prog_compiler_c_o_GCJ \
23615 exclude_expsyms_GCJ \
23616 include_expsyms_GCJ; do
23617
23618 case $var in
23619 old_archive_cmds_GCJ | \
23620 old_archive_from_new_cmds_GCJ | \
23621 archive_cmds_GCJ | \
23622 archive_expsym_cmds_GCJ | \
23623 module_cmds_GCJ | \
23624 module_expsym_cmds_GCJ | \
23625 old_archive_from_expsyms_cmds_GCJ | \
23626 export_symbols_cmds_GCJ | \
23627 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23628 postinstall_cmds | postuninstall_cmds | \
23629 old_postinstall_cmds | old_postuninstall_cmds | \
23630 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23631 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023632 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 +000023633 ;;
23634 *)
23635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23636 ;;
23637 esac
23638 done
23639
23640 case $lt_echo in
23641 *'\$0 --fallback-echo"')
23642 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23643 ;;
23644 esac
23645
23646cfgfile="$ofile"
23647
23648 cat <<__EOF__ >> "$cfgfile"
23649# ### BEGIN LIBTOOL TAG CONFIG: $tagname
23650
23651# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23652
23653# Shell to use when invoking shell scripts.
23654SHELL=$lt_SHELL
23655
23656# Whether or not to build shared libraries.
23657build_libtool_libs=$enable_shared
23658
23659# Whether or not to build static libraries.
23660build_old_libs=$enable_static
23661
23662# Whether or not to add -lc for building shared libraries.
23663build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23664
23665# Whether or not to disallow shared libs when runtime libs are static
23666allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23667
23668# Whether or not to optimize for fast installation.
23669fast_install=$enable_fast_install
23670
23671# The host system.
23672host_alias=$host_alias
23673host=$host
23674
23675# An echo program that does not interpret backslashes.
23676echo=$lt_echo
23677
23678# The archiver.
23679AR=$lt_AR
23680AR_FLAGS=$lt_AR_FLAGS
23681
23682# A C compiler.
23683LTCC=$lt_LTCC
23684
23685# A language-specific compiler.
23686CC=$lt_compiler_GCJ
23687
23688# Is the compiler the GNU C compiler?
23689with_gcc=$GCC_GCJ
23690
23691# An ERE matcher.
23692EGREP=$lt_EGREP
23693
23694# The linker used to build libraries.
23695LD=$lt_LD_GCJ
23696
23697# Whether we need hard or soft links.
23698LN_S=$lt_LN_S
23699
23700# A BSD-compatible nm program.
23701NM=$lt_NM
23702
23703# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000023704STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000023705
23706# Used to examine libraries when file_magic_cmd begins "file"
23707MAGIC_CMD=$MAGIC_CMD
23708
23709# Used on cygwin: DLL creation program.
23710DLLTOOL="$DLLTOOL"
23711
23712# Used on cygwin: object dumper.
23713OBJDUMP="$OBJDUMP"
23714
23715# Used on cygwin: assembler.
23716AS="$AS"
23717
23718# The name of the directory that contains temporary libtool files.
23719objdir=$objdir
23720
23721# How to create reloadable object files.
23722reload_flag=$lt_reload_flag
23723reload_cmds=$lt_reload_cmds
23724
23725# How to pass a linker flag through the compiler.
23726wl=$lt_lt_prog_compiler_wl_GCJ
23727
23728# Object file suffix (normally "o").
23729objext="$ac_objext"
23730
23731# Old archive suffix (normally "a").
23732libext="$libext"
23733
23734# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000023735shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000023736
23737# Executable file suffix (normally "").
23738exeext="$exeext"
23739
23740# Additional compiler flags for building library objects.
23741pic_flag=$lt_lt_prog_compiler_pic_GCJ
23742pic_mode=$pic_mode
23743
23744# What is the maximum length of a command?
23745max_cmd_len=$lt_cv_sys_max_cmd_len
23746
23747# Does compiler simultaneously support -c and -o options?
23748compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23749
23750# Must we lock files when doing compilation ?
23751need_locks=$lt_need_locks
23752
23753# Do we need the lib prefix for modules?
23754need_lib_prefix=$need_lib_prefix
23755
23756# Do we need a version for libraries?
23757need_version=$need_version
23758
23759# Whether dlopen is supported.
23760dlopen_support=$enable_dlopen
23761
23762# Whether dlopen of programs is supported.
23763dlopen_self=$enable_dlopen_self
23764
23765# Whether dlopen of statically linked programs is supported.
23766dlopen_self_static=$enable_dlopen_self_static
23767
23768# Compiler flag to prevent dynamic linking.
23769link_static_flag=$lt_lt_prog_compiler_static_GCJ
23770
23771# Compiler flag to turn off builtin functions.
23772no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23773
23774# Compiler flag to allow reflexive dlopens.
23775export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23776
23777# Compiler flag to generate shared objects directly from archives.
23778whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23779
23780# Compiler flag to generate thread-safe objects.
23781thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23782
23783# Library versioning type.
23784version_type=$version_type
23785
23786# Format of library name prefix.
23787libname_spec=$lt_libname_spec
23788
23789# List of archive names. First name is the real one, the rest are links.
23790# The last name is the one that the linker finds with -lNAME.
23791library_names_spec=$lt_library_names_spec
23792
23793# The coded name of the library, if different from the real name.
23794soname_spec=$lt_soname_spec
23795
23796# Commands used to build and install an old-style archive.
23797RANLIB=$lt_RANLIB
23798old_archive_cmds=$lt_old_archive_cmds_GCJ
23799old_postinstall_cmds=$lt_old_postinstall_cmds
23800old_postuninstall_cmds=$lt_old_postuninstall_cmds
23801
23802# Create an old-style archive from a shared archive.
23803old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23804
23805# Create a temporary old-style archive to link instead of a shared archive.
23806old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23807
23808# Commands used to build and install a shared archive.
23809archive_cmds=$lt_archive_cmds_GCJ
23810archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23811postinstall_cmds=$lt_postinstall_cmds
23812postuninstall_cmds=$lt_postuninstall_cmds
23813
23814# Commands used to build a loadable module (assumed same as above if empty)
23815module_cmds=$lt_module_cmds_GCJ
23816module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23817
23818# Commands to strip libraries.
23819old_striplib=$lt_old_striplib
23820striplib=$lt_striplib
23821
23822# Dependencies to place before the objects being linked to create a
23823# shared library.
23824predep_objects=$lt_predep_objects_GCJ
23825
23826# Dependencies to place after the objects being linked to create a
23827# shared library.
23828postdep_objects=$lt_postdep_objects_GCJ
23829
23830# Dependencies to place before the objects being linked to create a
23831# shared library.
23832predeps=$lt_predeps_GCJ
23833
23834# Dependencies to place after the objects being linked to create a
23835# shared library.
23836postdeps=$lt_postdeps_GCJ
23837
23838# The library search path used internally by the compiler when linking
23839# a shared library.
23840compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23841
23842# Method to check whether dependent libraries are shared objects.
23843deplibs_check_method=$lt_deplibs_check_method
23844
23845# Command to use when deplibs_check_method == file_magic.
23846file_magic_cmd=$lt_file_magic_cmd
23847
23848# Flag that allows shared libraries with undefined symbols to be built.
23849allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23850
23851# Flag that forces no undefined symbols.
23852no_undefined_flag=$lt_no_undefined_flag_GCJ
23853
23854# Commands used to finish a libtool library installation in a directory.
23855finish_cmds=$lt_finish_cmds
23856
23857# Same as above, but a single script fragment to be evaled but not shown.
23858finish_eval=$lt_finish_eval
23859
23860# Take the output of nm and produce a listing of raw symbols and C names.
23861global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23862
23863# Transform the output of nm in a proper C declaration
23864global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23865
23866# Transform the output of nm in a C name address pair
23867global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23868
23869# This is the shared library runtime path variable.
23870runpath_var=$runpath_var
23871
23872# This is the shared library path variable.
23873shlibpath_var=$shlibpath_var
23874
23875# Is shlibpath searched before the hard-coded library search path?
23876shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23877
23878# How to hardcode a shared library path into an executable.
23879hardcode_action=$hardcode_action_GCJ
23880
23881# Whether we should hardcode library paths into libraries.
23882hardcode_into_libs=$hardcode_into_libs
23883
23884# Flag to hardcode \$libdir into a binary during linking.
23885# This must work even if \$libdir does not exist.
23886hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23887
23888# If ld is used when linking, flag to hardcode \$libdir into
23889# a binary during linking. This must work even if \$libdir does
23890# not exist.
23891hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23892
23893# Whether we need a single -rpath flag with a separated argument.
23894hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23895
23896# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23897# resulting binary.
23898hardcode_direct=$hardcode_direct_GCJ
23899
23900# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23901# resulting binary.
23902hardcode_minus_L=$hardcode_minus_L_GCJ
23903
23904# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23905# the resulting binary.
23906hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23907
23908# Set to yes if building a shared library automatically hardcodes DIR into the library
23909# and all subsequent libraries and executables linked against it.
23910hardcode_automatic=$hardcode_automatic_GCJ
23911
23912# Variables whose values should be saved in libtool wrapper scripts and
23913# restored at relink time.
23914variables_saved_for_relink="$variables_saved_for_relink"
23915
23916# Whether libtool must link a program against all its dependency libraries.
23917link_all_deplibs=$link_all_deplibs_GCJ
23918
23919# Compile-time system search path for libraries
23920sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23921
23922# Run-time system search path for libraries
23923sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23924
23925# Fix the shell variable \$srcfile for the compiler.
23926fix_srcfile_path="$fix_srcfile_path_GCJ"
23927
23928# Set to yes if exported symbols are required.
23929always_export_symbols=$always_export_symbols_GCJ
23930
23931# The commands to list exported symbols.
23932export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23933
23934# The commands to extract the exported symbol list from a shared archive.
23935extract_expsyms_cmds=$lt_extract_expsyms_cmds
23936
23937# Symbols that should not be listed in the preloaded symbols.
23938exclude_expsyms=$lt_exclude_expsyms_GCJ
23939
23940# Symbols that must always be exported.
23941include_expsyms=$lt_include_expsyms_GCJ
23942
23943# ### END LIBTOOL TAG CONFIG: $tagname
23944
23945__EOF__
23946
23947
23948else
23949 # If there is no Makefile yet, we rely on a make rule to execute
23950 # `config.status --recheck' to rerun these tests and create the
23951 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000023952 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23953 if test -f "$ltmain_in"; then
23954 test -f Makefile && make "$ltmain"
23955 fi
John Criswell47fdd832003-07-14 16:52:07 +000023956fi
23957
23958
23959ac_ext=c
23960ac_cpp='$CPP $CPPFLAGS'
23961ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23962ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23963ac_compiler_gnu=$ac_cv_c_compiler_gnu
23964
23965CC="$lt_save_CC"
23966
23967 else
23968 tagname=""
23969 fi
23970 ;;
23971
23972 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000023973 ac_ext=c
23974ac_cpp='$CPP $CPPFLAGS'
23975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23977ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000023978
23979
23980# Source file extension for RC test sources.
23981ac_ext=rc
23982
23983# Object file extension for compiled RC test sources.
23984objext=o
23985objext_RC=$objext
23986
23987# Code to be used in simple compile tests
23988lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
23989
23990# Code to be used in simple link tests
23991lt_simple_link_test_code="$lt_simple_compile_test_code"
23992
23993# ltmain only uses $CC for tagged configurations so make sure $CC is set.
23994
23995# If no C compiler was specified, use CC.
23996LTCC=${LTCC-"$CC"}
23997
23998# Allow CC to be a program name with arguments.
23999compiler=$CC
24000
24001
24002# Allow CC to be a program name with arguments.
24003lt_save_CC="$CC"
24004CC=${RC-"windres"}
24005compiler=$CC
24006compiler_RC=$CC
24007lt_cv_prog_compiler_c_o_RC=yes
24008
24009# The else clause should only fire when bootstrapping the
24010# libtool distribution, otherwise you forgot to ship ltmain.sh
24011# with your package, and you will get complaints that there are
24012# no rules to generate ltmain.sh.
24013if test -f "$ltmain"; then
24014 # See if we are running on zsh, and set the options which allow our commands through
24015 # without removal of \ escapes.
24016 if test -n "${ZSH_VERSION+set}" ; then
24017 setopt NO_GLOB_SUBST
24018 fi
24019 # Now quote all the things that may contain metacharacters while being
24020 # careful not to overquote the AC_SUBSTed values. We take copies of the
24021 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024022 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24023 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000024024 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24025 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24026 deplibs_check_method reload_flag reload_cmds need_locks \
24027 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24028 lt_cv_sys_global_symbol_to_c_name_address \
24029 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24030 old_postinstall_cmds old_postuninstall_cmds \
24031 compiler_RC \
24032 CC_RC \
24033 LD_RC \
24034 lt_prog_compiler_wl_RC \
24035 lt_prog_compiler_pic_RC \
24036 lt_prog_compiler_static_RC \
24037 lt_prog_compiler_no_builtin_flag_RC \
24038 export_dynamic_flag_spec_RC \
24039 thread_safe_flag_spec_RC \
24040 whole_archive_flag_spec_RC \
24041 enable_shared_with_static_runtimes_RC \
24042 old_archive_cmds_RC \
24043 old_archive_from_new_cmds_RC \
24044 predep_objects_RC \
24045 postdep_objects_RC \
24046 predeps_RC \
24047 postdeps_RC \
24048 compiler_lib_search_path_RC \
24049 archive_cmds_RC \
24050 archive_expsym_cmds_RC \
24051 postinstall_cmds_RC \
24052 postuninstall_cmds_RC \
24053 old_archive_from_expsyms_cmds_RC \
24054 allow_undefined_flag_RC \
24055 no_undefined_flag_RC \
24056 export_symbols_cmds_RC \
24057 hardcode_libdir_flag_spec_RC \
24058 hardcode_libdir_flag_spec_ld_RC \
24059 hardcode_libdir_separator_RC \
24060 hardcode_automatic_RC \
24061 module_cmds_RC \
24062 module_expsym_cmds_RC \
24063 lt_cv_prog_compiler_c_o_RC \
24064 exclude_expsyms_RC \
24065 include_expsyms_RC; do
24066
24067 case $var in
24068 old_archive_cmds_RC | \
24069 old_archive_from_new_cmds_RC | \
24070 archive_cmds_RC | \
24071 archive_expsym_cmds_RC | \
24072 module_cmds_RC | \
24073 module_expsym_cmds_RC | \
24074 old_archive_from_expsyms_cmds_RC | \
24075 export_symbols_cmds_RC | \
24076 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24077 postinstall_cmds | postuninstall_cmds | \
24078 old_postinstall_cmds | old_postuninstall_cmds | \
24079 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24080 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024081 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 +000024082 ;;
24083 *)
24084 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24085 ;;
24086 esac
24087 done
24088
24089 case $lt_echo in
24090 *'\$0 --fallback-echo"')
24091 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24092 ;;
24093 esac
24094
24095cfgfile="$ofile"
24096
24097 cat <<__EOF__ >> "$cfgfile"
24098# ### BEGIN LIBTOOL TAG CONFIG: $tagname
24099
24100# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24101
24102# Shell to use when invoking shell scripts.
24103SHELL=$lt_SHELL
24104
24105# Whether or not to build shared libraries.
24106build_libtool_libs=$enable_shared
24107
24108# Whether or not to build static libraries.
24109build_old_libs=$enable_static
24110
24111# Whether or not to add -lc for building shared libraries.
24112build_libtool_need_lc=$archive_cmds_need_lc_RC
24113
24114# Whether or not to disallow shared libs when runtime libs are static
24115allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24116
24117# Whether or not to optimize for fast installation.
24118fast_install=$enable_fast_install
24119
24120# The host system.
24121host_alias=$host_alias
24122host=$host
24123
24124# An echo program that does not interpret backslashes.
24125echo=$lt_echo
24126
24127# The archiver.
24128AR=$lt_AR
24129AR_FLAGS=$lt_AR_FLAGS
24130
24131# A C compiler.
24132LTCC=$lt_LTCC
24133
24134# A language-specific compiler.
24135CC=$lt_compiler_RC
24136
24137# Is the compiler the GNU C compiler?
24138with_gcc=$GCC_RC
24139
24140# An ERE matcher.
24141EGREP=$lt_EGREP
24142
24143# The linker used to build libraries.
24144LD=$lt_LD_RC
24145
24146# Whether we need hard or soft links.
24147LN_S=$lt_LN_S
24148
24149# A BSD-compatible nm program.
24150NM=$lt_NM
24151
24152# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000024153STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000024154
24155# Used to examine libraries when file_magic_cmd begins "file"
24156MAGIC_CMD=$MAGIC_CMD
24157
24158# Used on cygwin: DLL creation program.
24159DLLTOOL="$DLLTOOL"
24160
24161# Used on cygwin: object dumper.
24162OBJDUMP="$OBJDUMP"
24163
24164# Used on cygwin: assembler.
24165AS="$AS"
24166
24167# The name of the directory that contains temporary libtool files.
24168objdir=$objdir
24169
24170# How to create reloadable object files.
24171reload_flag=$lt_reload_flag
24172reload_cmds=$lt_reload_cmds
24173
24174# How to pass a linker flag through the compiler.
24175wl=$lt_lt_prog_compiler_wl_RC
24176
24177# Object file suffix (normally "o").
24178objext="$ac_objext"
24179
24180# Old archive suffix (normally "a").
24181libext="$libext"
24182
24183# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000024184shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000024185
24186# Executable file suffix (normally "").
24187exeext="$exeext"
24188
24189# Additional compiler flags for building library objects.
24190pic_flag=$lt_lt_prog_compiler_pic_RC
24191pic_mode=$pic_mode
24192
24193# What is the maximum length of a command?
24194max_cmd_len=$lt_cv_sys_max_cmd_len
24195
24196# Does compiler simultaneously support -c and -o options?
24197compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24198
24199# Must we lock files when doing compilation ?
24200need_locks=$lt_need_locks
24201
24202# Do we need the lib prefix for modules?
24203need_lib_prefix=$need_lib_prefix
24204
24205# Do we need a version for libraries?
24206need_version=$need_version
24207
24208# Whether dlopen is supported.
24209dlopen_support=$enable_dlopen
24210
24211# Whether dlopen of programs is supported.
24212dlopen_self=$enable_dlopen_self
24213
24214# Whether dlopen of statically linked programs is supported.
24215dlopen_self_static=$enable_dlopen_self_static
24216
24217# Compiler flag to prevent dynamic linking.
24218link_static_flag=$lt_lt_prog_compiler_static_RC
24219
24220# Compiler flag to turn off builtin functions.
24221no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24222
24223# Compiler flag to allow reflexive dlopens.
24224export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24225
24226# Compiler flag to generate shared objects directly from archives.
24227whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24228
24229# Compiler flag to generate thread-safe objects.
24230thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24231
24232# Library versioning type.
24233version_type=$version_type
24234
24235# Format of library name prefix.
24236libname_spec=$lt_libname_spec
24237
24238# List of archive names. First name is the real one, the rest are links.
24239# The last name is the one that the linker finds with -lNAME.
24240library_names_spec=$lt_library_names_spec
24241
24242# The coded name of the library, if different from the real name.
24243soname_spec=$lt_soname_spec
24244
24245# Commands used to build and install an old-style archive.
24246RANLIB=$lt_RANLIB
24247old_archive_cmds=$lt_old_archive_cmds_RC
24248old_postinstall_cmds=$lt_old_postinstall_cmds
24249old_postuninstall_cmds=$lt_old_postuninstall_cmds
24250
24251# Create an old-style archive from a shared archive.
24252old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24253
24254# Create a temporary old-style archive to link instead of a shared archive.
24255old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24256
24257# Commands used to build and install a shared archive.
24258archive_cmds=$lt_archive_cmds_RC
24259archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24260postinstall_cmds=$lt_postinstall_cmds
24261postuninstall_cmds=$lt_postuninstall_cmds
24262
24263# Commands used to build a loadable module (assumed same as above if empty)
24264module_cmds=$lt_module_cmds_RC
24265module_expsym_cmds=$lt_module_expsym_cmds_RC
24266
24267# Commands to strip libraries.
24268old_striplib=$lt_old_striplib
24269striplib=$lt_striplib
24270
24271# Dependencies to place before the objects being linked to create a
24272# shared library.
24273predep_objects=$lt_predep_objects_RC
24274
24275# Dependencies to place after the objects being linked to create a
24276# shared library.
24277postdep_objects=$lt_postdep_objects_RC
24278
24279# Dependencies to place before the objects being linked to create a
24280# shared library.
24281predeps=$lt_predeps_RC
24282
24283# Dependencies to place after the objects being linked to create a
24284# shared library.
24285postdeps=$lt_postdeps_RC
24286
24287# The library search path used internally by the compiler when linking
24288# a shared library.
24289compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24290
24291# Method to check whether dependent libraries are shared objects.
24292deplibs_check_method=$lt_deplibs_check_method
24293
24294# Command to use when deplibs_check_method == file_magic.
24295file_magic_cmd=$lt_file_magic_cmd
24296
24297# Flag that allows shared libraries with undefined symbols to be built.
24298allow_undefined_flag=$lt_allow_undefined_flag_RC
24299
24300# Flag that forces no undefined symbols.
24301no_undefined_flag=$lt_no_undefined_flag_RC
24302
24303# Commands used to finish a libtool library installation in a directory.
24304finish_cmds=$lt_finish_cmds
24305
24306# Same as above, but a single script fragment to be evaled but not shown.
24307finish_eval=$lt_finish_eval
24308
24309# Take the output of nm and produce a listing of raw symbols and C names.
24310global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24311
24312# Transform the output of nm in a proper C declaration
24313global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24314
24315# Transform the output of nm in a C name address pair
24316global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24317
24318# This is the shared library runtime path variable.
24319runpath_var=$runpath_var
24320
24321# This is the shared library path variable.
24322shlibpath_var=$shlibpath_var
24323
24324# Is shlibpath searched before the hard-coded library search path?
24325shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24326
24327# How to hardcode a shared library path into an executable.
24328hardcode_action=$hardcode_action_RC
24329
24330# Whether we should hardcode library paths into libraries.
24331hardcode_into_libs=$hardcode_into_libs
24332
24333# Flag to hardcode \$libdir into a binary during linking.
24334# This must work even if \$libdir does not exist.
24335hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24336
24337# If ld is used when linking, flag to hardcode \$libdir into
24338# a binary during linking. This must work even if \$libdir does
24339# not exist.
24340hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24341
24342# Whether we need a single -rpath flag with a separated argument.
24343hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24344
24345# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24346# resulting binary.
24347hardcode_direct=$hardcode_direct_RC
24348
24349# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24350# resulting binary.
24351hardcode_minus_L=$hardcode_minus_L_RC
24352
24353# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24354# the resulting binary.
24355hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24356
24357# Set to yes if building a shared library automatically hardcodes DIR into the library
24358# and all subsequent libraries and executables linked against it.
24359hardcode_automatic=$hardcode_automatic_RC
24360
24361# Variables whose values should be saved in libtool wrapper scripts and
24362# restored at relink time.
24363variables_saved_for_relink="$variables_saved_for_relink"
24364
24365# Whether libtool must link a program against all its dependency libraries.
24366link_all_deplibs=$link_all_deplibs_RC
24367
24368# Compile-time system search path for libraries
24369sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24370
24371# Run-time system search path for libraries
24372sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24373
24374# Fix the shell variable \$srcfile for the compiler.
24375fix_srcfile_path="$fix_srcfile_path_RC"
24376
24377# Set to yes if exported symbols are required.
24378always_export_symbols=$always_export_symbols_RC
24379
24380# The commands to list exported symbols.
24381export_symbols_cmds=$lt_export_symbols_cmds_RC
24382
24383# The commands to extract the exported symbol list from a shared archive.
24384extract_expsyms_cmds=$lt_extract_expsyms_cmds
24385
24386# Symbols that should not be listed in the preloaded symbols.
24387exclude_expsyms=$lt_exclude_expsyms_RC
24388
24389# Symbols that must always be exported.
24390include_expsyms=$lt_include_expsyms_RC
24391
24392# ### END LIBTOOL TAG CONFIG: $tagname
24393
24394__EOF__
24395
24396
24397else
24398 # If there is no Makefile yet, we rely on a make rule to execute
24399 # `config.status --recheck' to rerun these tests and create the
24400 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024401 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24402 if test -f "$ltmain_in"; then
24403 test -f Makefile && make "$ltmain"
24404 fi
John Criswell47fdd832003-07-14 16:52:07 +000024405fi
24406
24407
24408ac_ext=c
24409ac_cpp='$CPP $CPPFLAGS'
24410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24412ac_compiler_gnu=$ac_cv_c_compiler_gnu
24413
24414CC="$lt_save_CC"
24415
24416 ;;
24417
24418 *)
24419 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24420echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24421 { (exit 1); exit 1; }; }
24422 ;;
24423 esac
24424
24425 # Append the new tag name to the list of available tags.
24426 if test -n "$tagname" ; then
24427 available_tags="$available_tags $tagname"
24428 fi
24429 fi
24430 done
24431 IFS="$lt_save_ifs"
24432
24433 # Now substitute the updated list of available tags.
24434 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24435 mv "${ofile}T" "$ofile"
24436 chmod +x "$ofile"
24437 else
24438 rm -f "${ofile}T"
24439 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24440echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24441 { (exit 1); exit 1; }; }
24442 fi
24443fi
John Criswell7a73b802003-06-30 21:59:07 +000024444
24445
24446
24447# This can be used to rebuild libtool when needed
24448LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24449
24450# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024451LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000024452
24453# Prevent multiple expansion
24454
24455
24456
John Criswell47fdd832003-07-14 16:52:07 +000024457
24458
24459
24460
24461
24462
24463
24464
24465
24466
24467
24468
24469
24470
24471
24472
24473
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024474
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024475etags_version=`$ETAGS --version 2>&1`
24476case "$etags_version" in
24477 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
24478 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
24479 *) ETAGSFLAGS="" ;;
24480esac
24481ETAGSFLAGS=$ETAGSFLAGS
24482
24483
24484echo "$as_me:$LINENO: checking tool compatibility" >&5
24485echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6
24486
24487if test "$GCC" != "yes"
24488then
24489 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
24490echo "$as_me: error: gcc required but not found" >&2;}
24491 { (exit 1); exit 1; }; }
24492fi
24493if test "$GXX" != "yes"
24494then
24495 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
24496echo "$as_me: error: g++ required but not found" >&2;}
24497 { (exit 1); exit 1; }; }
24498fi
24499
24500gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
24501if test "$gccmajor" -lt "3"
24502then
24503 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
24504echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
24505 { (exit 1); exit 1; }; }
24506fi
24507
24508if test -z "$llvm_cv_gnu_make_command"
24509then
24510 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
24511echo "$as_me: error: GNU Make required but not found" >&2;}
24512 { (exit 1); exit 1; }; }
24513fi
24514
24515echo "$as_me:$LINENO: result: ok" >&5
24516echo "${ECHO_T}ok" >&6
24517
24518if test "$PYTHON" = "false" ; then
24519 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
24520echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
24521fi
24522if test "$QMTEST" = "false" ; then
24523 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
24524echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
24525fi
Reid Spencer4b8f82f2004-11-07 23:29:39 +000024526if test "$RUNTEST" = "false" ; then
24527 { echo "$as_me:$LINENO: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&5
24528echo "$as_me: WARNING: runtest (Deja-Gnu) is required for the test sute, but it was not found" >&2;}
24529fi
John Criswellde00db22003-08-25 16:49:54 +000024530pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
24531pymajor=`echo $pyversion | cut -d. -f1`
24532pyminor=`echo $pyversion | cut -d. -f2`
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024533if test "$pymajor" -ge "2" ; then
24534 if test "$pymajor" -eq "2" ; then
24535 if test "$pyminor" -lt "2" ; then
24536 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000024537echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024538 fi
24539 fi
John Criswellde00db22003-08-25 16:49:54 +000024540else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024541 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
Brian Gaeke26be9c52004-01-13 06:43:16 +000024542echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000024543fi
John Criswell7a73b802003-06-30 21:59:07 +000024544
Reid Spencer5e1d9a52004-11-25 04:51:04 +000024545echo "$as_me:$LINENO: result: " >&5
24546echo "${ECHO_T}" >&6
24547
24548
John Criswell7a73b802003-06-30 21:59:07 +000024549
John Criswell7a73b802003-06-30 21:59:07 +000024550echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
24551echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
24552if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
24553 echo $ECHO_N "(cached) $ECHO_C" >&6
24554else
24555 ac_check_lib_save_LIBS=$LIBS
24556LIBS="-lelf $LIBS"
24557cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024558/* confdefs.h. */
24559_ACEOF
24560cat confdefs.h >>conftest.$ac_ext
24561cat >>conftest.$ac_ext <<_ACEOF
24562/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024563
24564/* Override any gcc2 internal prototype to avoid an error. */
24565#ifdef __cplusplus
24566extern "C"
24567#endif
24568/* We use char because int might match the return type of a gcc2
24569 builtin and then its argument prototype would still apply. */
24570char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000024571int
24572main ()
24573{
24574elf_begin ();
24575 ;
24576 return 0;
24577}
24578_ACEOF
24579rm -f conftest.$ac_objext conftest$ac_exeext
24580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024581 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024582 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024583 grep -v '^ *+' conftest.er1 >conftest.err
24584 rm -f conftest.er1
24585 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24587 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024588 { ac_try='test -z "$ac_c_werror_flag"
24589 || test ! -s conftest.err'
24590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24592 ac_status=$?
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; } &&
24595 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24597 (eval $ac_try) 2>&5
24598 ac_status=$?
24599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24600 (exit $ac_status); }; }; then
24601 ac_cv_lib_elf_elf_begin=yes
24602else
24603 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024604sed 's/^/| /' conftest.$ac_ext >&5
24605
John Criswell7a73b802003-06-30 21:59:07 +000024606ac_cv_lib_elf_elf_begin=no
24607fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024608rm -f conftest.err conftest.$ac_objext \
24609 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024610LIBS=$ac_check_lib_save_LIBS
24611fi
24612echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
24613echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
24614if test $ac_cv_lib_elf_elf_begin = yes; then
24615 cat >>confdefs.h <<_ACEOF
24616#define HAVE_LIBELF 1
24617_ACEOF
24618
24619 LIBS="-lelf $LIBS"
24620
24621fi
24622
24623
Reid Spencer17795972004-11-18 09:47:37 +000024624echo "$as_me:$LINENO: checking for library containing lt_dlopen" >&5
24625echo $ECHO_N "checking for library containing lt_dlopen... $ECHO_C" >&6
24626if test "${ac_cv_search_lt_dlopen+set}" = set; then
24627 echo $ECHO_N "(cached) $ECHO_C" >&6
24628else
24629 ac_func_search_save_LIBS=$LIBS
24630ac_cv_search_lt_dlopen=no
24631cat >conftest.$ac_ext <<_ACEOF
24632/* confdefs.h. */
24633_ACEOF
24634cat confdefs.h >>conftest.$ac_ext
24635cat >>conftest.$ac_ext <<_ACEOF
24636/* end confdefs.h. */
24637
24638/* Override any gcc2 internal prototype to avoid an error. */
24639#ifdef __cplusplus
24640extern "C"
24641#endif
24642/* We use char because int might match the return type of a gcc2
24643 builtin and then its argument prototype would still apply. */
24644char lt_dlopen ();
24645int
24646main ()
24647{
24648lt_dlopen ();
24649 ;
24650 return 0;
24651}
24652_ACEOF
24653rm -f conftest.$ac_objext conftest$ac_exeext
24654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24655 (eval $ac_link) 2>conftest.er1
24656 ac_status=$?
24657 grep -v '^ *+' conftest.er1 >conftest.err
24658 rm -f conftest.er1
24659 cat conftest.err >&5
24660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24661 (exit $ac_status); } &&
24662 { ac_try='test -z "$ac_c_werror_flag"
24663 || test ! -s conftest.err'
24664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24665 (eval $ac_try) 2>&5
24666 ac_status=$?
24667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24668 (exit $ac_status); }; } &&
24669 { ac_try='test -s conftest$ac_exeext'
24670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24671 (eval $ac_try) 2>&5
24672 ac_status=$?
24673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24674 (exit $ac_status); }; }; then
24675 ac_cv_search_lt_dlopen="none required"
24676else
24677 echo "$as_me: failed program was:" >&5
24678sed 's/^/| /' conftest.$ac_ext >&5
24679
24680fi
24681rm -f conftest.err conftest.$ac_objext \
24682 conftest$ac_exeext conftest.$ac_ext
24683if test "$ac_cv_search_lt_dlopen" = no; then
24684 for ac_lib in ltdl; do
24685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24686 cat >conftest.$ac_ext <<_ACEOF
24687/* confdefs.h. */
24688_ACEOF
24689cat confdefs.h >>conftest.$ac_ext
24690cat >>conftest.$ac_ext <<_ACEOF
24691/* end confdefs.h. */
24692
24693/* Override any gcc2 internal prototype to avoid an error. */
24694#ifdef __cplusplus
24695extern "C"
24696#endif
24697/* We use char because int might match the return type of a gcc2
24698 builtin and then its argument prototype would still apply. */
24699char lt_dlopen ();
24700int
24701main ()
24702{
24703lt_dlopen ();
24704 ;
24705 return 0;
24706}
24707_ACEOF
24708rm -f conftest.$ac_objext conftest$ac_exeext
24709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24710 (eval $ac_link) 2>conftest.er1
24711 ac_status=$?
24712 grep -v '^ *+' conftest.er1 >conftest.err
24713 rm -f conftest.er1
24714 cat conftest.err >&5
24715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24716 (exit $ac_status); } &&
24717 { ac_try='test -z "$ac_c_werror_flag"
24718 || test ! -s conftest.err'
24719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24720 (eval $ac_try) 2>&5
24721 ac_status=$?
24722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723 (exit $ac_status); }; } &&
24724 { ac_try='test -s conftest$ac_exeext'
24725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24726 (eval $ac_try) 2>&5
24727 ac_status=$?
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); }; }; then
24730 ac_cv_search_lt_dlopen="-l$ac_lib"
24731break
24732else
24733 echo "$as_me: failed program was:" >&5
24734sed 's/^/| /' conftest.$ac_ext >&5
24735
24736fi
24737rm -f conftest.err conftest.$ac_objext \
24738 conftest$ac_exeext conftest.$ac_ext
24739 done
24740fi
24741LIBS=$ac_func_search_save_LIBS
24742fi
24743echo "$as_me:$LINENO: result: $ac_cv_search_lt_dlopen" >&5
24744echo "${ECHO_T}$ac_cv_search_lt_dlopen" >&6
24745if test "$ac_cv_search_lt_dlopen" != no; then
24746 test "$ac_cv_search_lt_dlopen" = "none required" || LIBS="$ac_cv_search_lt_dlopen $LIBS"
24747
24748cat >>confdefs.h <<\_ACEOF
24749#define HAVE_LT_DLOPEN 1
24750_ACEOF
24751
24752else
24753 { echo "$as_me:$LINENO: WARNING: lt_dlopen() not found - plugin support might
24754 not be available" >&5
24755echo "$as_me: WARNING: lt_dlopen() not found - plugin support might
24756 not be available" >&2;}
24757fi
24758
24759
John Criswell7a73b802003-06-30 21:59:07 +000024760echo "$as_me:$LINENO: checking for library containing dlopen" >&5
24761echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
24762if test "${ac_cv_search_dlopen+set}" = set; then
24763 echo $ECHO_N "(cached) $ECHO_C" >&6
24764else
24765 ac_func_search_save_LIBS=$LIBS
24766ac_cv_search_dlopen=no
24767cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024768/* confdefs.h. */
24769_ACEOF
24770cat confdefs.h >>conftest.$ac_ext
24771cat >>conftest.$ac_ext <<_ACEOF
24772/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024773
24774/* Override any gcc2 internal prototype to avoid an error. */
24775#ifdef __cplusplus
24776extern "C"
24777#endif
24778/* We use char because int might match the return type of a gcc2
24779 builtin and then its argument prototype would still apply. */
24780char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024781int
24782main ()
24783{
24784dlopen ();
24785 ;
24786 return 0;
24787}
24788_ACEOF
24789rm -f conftest.$ac_objext conftest$ac_exeext
24790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024791 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024792 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024793 grep -v '^ *+' conftest.er1 >conftest.err
24794 rm -f conftest.er1
24795 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024798 { ac_try='test -z "$ac_c_werror_flag"
24799 || test ! -s conftest.err'
24800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24801 (eval $ac_try) 2>&5
24802 ac_status=$?
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); }; } &&
24805 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24807 (eval $ac_try) 2>&5
24808 ac_status=$?
24809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810 (exit $ac_status); }; }; then
24811 ac_cv_search_dlopen="none required"
24812else
24813 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024814sed 's/^/| /' conftest.$ac_ext >&5
24815
John Criswell7a73b802003-06-30 21:59:07 +000024816fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024817rm -f conftest.err conftest.$ac_objext \
24818 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024819if test "$ac_cv_search_dlopen" = no; then
24820 for ac_lib in dl; do
24821 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24822 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024823/* confdefs.h. */
24824_ACEOF
24825cat confdefs.h >>conftest.$ac_ext
24826cat >>conftest.$ac_ext <<_ACEOF
24827/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024828
24829/* Override any gcc2 internal prototype to avoid an error. */
24830#ifdef __cplusplus
24831extern "C"
24832#endif
24833/* We use char because int might match the return type of a gcc2
24834 builtin and then its argument prototype would still apply. */
24835char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000024836int
24837main ()
24838{
24839dlopen ();
24840 ;
24841 return 0;
24842}
24843_ACEOF
24844rm -f conftest.$ac_objext conftest$ac_exeext
24845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024846 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024847 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024848 grep -v '^ *+' conftest.er1 >conftest.err
24849 rm -f conftest.er1
24850 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024853 { ac_try='test -z "$ac_c_werror_flag"
24854 || test ! -s conftest.err'
24855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24857 ac_status=$?
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; } &&
24860 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24862 (eval $ac_try) 2>&5
24863 ac_status=$?
24864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24865 (exit $ac_status); }; }; then
24866 ac_cv_search_dlopen="-l$ac_lib"
24867break
24868else
24869 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024870sed 's/^/| /' conftest.$ac_ext >&5
24871
John Criswell7a73b802003-06-30 21:59:07 +000024872fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024873rm -f conftest.err conftest.$ac_objext \
24874 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024875 done
24876fi
24877LIBS=$ac_func_search_save_LIBS
24878fi
24879echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
24880echo "${ECHO_T}$ac_cv_search_dlopen" >&6
24881if test "$ac_cv_search_dlopen" != no; then
24882 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000024883
24884cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000024885#define HAVE_DLOPEN 1
24886_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024887
24888else
Brian Gaekec45be042003-10-07 06:01:34 +000024889 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
24890echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000024891fi
24892
24893
24894echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
24895echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
24896if test "${ac_cv_search_mallinfo+set}" = set; then
24897 echo $ECHO_N "(cached) $ECHO_C" >&6
24898else
24899 ac_func_search_save_LIBS=$LIBS
24900ac_cv_search_mallinfo=no
24901cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024902/* confdefs.h. */
24903_ACEOF
24904cat confdefs.h >>conftest.$ac_ext
24905cat >>conftest.$ac_ext <<_ACEOF
24906/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024907
24908/* Override any gcc2 internal prototype to avoid an error. */
24909#ifdef __cplusplus
24910extern "C"
24911#endif
24912/* We use char because int might match the return type of a gcc2
24913 builtin and then its argument prototype would still apply. */
24914char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000024915int
24916main ()
24917{
24918mallinfo ();
24919 ;
24920 return 0;
24921}
24922_ACEOF
24923rm -f conftest.$ac_objext conftest$ac_exeext
24924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024925 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024926 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024927 grep -v '^ *+' conftest.er1 >conftest.err
24928 rm -f conftest.er1
24929 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024932 { ac_try='test -z "$ac_c_werror_flag"
24933 || test ! -s conftest.err'
24934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24935 (eval $ac_try) 2>&5
24936 ac_status=$?
24937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24938 (exit $ac_status); }; } &&
24939 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24941 (eval $ac_try) 2>&5
24942 ac_status=$?
24943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24944 (exit $ac_status); }; }; then
24945 ac_cv_search_mallinfo="none required"
24946else
24947 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024948sed 's/^/| /' conftest.$ac_ext >&5
24949
John Criswell7a73b802003-06-30 21:59:07 +000024950fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024951rm -f conftest.err conftest.$ac_objext \
24952 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024953if test "$ac_cv_search_mallinfo" = no; then
24954 for ac_lib in malloc; do
24955 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24956 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024957/* confdefs.h. */
24958_ACEOF
24959cat confdefs.h >>conftest.$ac_ext
24960cat >>conftest.$ac_ext <<_ACEOF
24961/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024962
24963/* Override any gcc2 internal prototype to avoid an error. */
24964#ifdef __cplusplus
24965extern "C"
24966#endif
24967/* We use char because int might match the return type of a gcc2
24968 builtin and then its argument prototype would still apply. */
24969char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000024970int
24971main ()
24972{
24973mallinfo ();
24974 ;
24975 return 0;
24976}
24977_ACEOF
24978rm -f conftest.$ac_objext conftest$ac_exeext
24979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024980 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024981 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024982 grep -v '^ *+' conftest.er1 >conftest.err
24983 rm -f conftest.er1
24984 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24986 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024987 { ac_try='test -z "$ac_c_werror_flag"
24988 || test ! -s conftest.err'
24989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990 (eval $ac_try) 2>&5
24991 ac_status=$?
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); }; } &&
24994 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24996 (eval $ac_try) 2>&5
24997 ac_status=$?
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); }; }; then
25000 ac_cv_search_mallinfo="-l$ac_lib"
25001break
25002else
25003 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025004sed 's/^/| /' conftest.$ac_ext >&5
25005
John Criswell7a73b802003-06-30 21:59:07 +000025006fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025007rm -f conftest.err conftest.$ac_objext \
25008 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025009 done
25010fi
25011LIBS=$ac_func_search_save_LIBS
25012fi
25013echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
25014echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
25015if test "$ac_cv_search_mallinfo" != no; then
25016 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000025017
25018cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025019#define HAVE_MALLINFO 1
25020_ACEOF
25021
25022fi
25023
25024
Brian Gaeke5f268f72003-12-05 19:29:01 +000025025echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
25026echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
25027if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
25028 echo $ECHO_N "(cached) $ECHO_C" >&6
25029else
25030 ac_func_search_save_LIBS=$LIBS
25031ac_cv_search_pthread_mutex_lock=no
25032cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025033/* confdefs.h. */
25034_ACEOF
25035cat confdefs.h >>conftest.$ac_ext
25036cat >>conftest.$ac_ext <<_ACEOF
25037/* end confdefs.h. */
25038
25039/* Override any gcc2 internal prototype to avoid an error. */
25040#ifdef __cplusplus
25041extern "C"
25042#endif
25043/* We use char because int might match the return type of a gcc2
25044 builtin and then its argument prototype would still apply. */
25045char pthread_mutex_lock ();
25046int
25047main ()
25048{
25049pthread_mutex_lock ();
25050 ;
25051 return 0;
25052}
25053_ACEOF
25054rm -f conftest.$ac_objext conftest$ac_exeext
25055if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025056 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025057 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025058 grep -v '^ *+' conftest.er1 >conftest.err
25059 rm -f conftest.er1
25060 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025063 { ac_try='test -z "$ac_c_werror_flag"
25064 || test ! -s conftest.err'
25065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25066 (eval $ac_try) 2>&5
25067 ac_status=$?
25068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25069 (exit $ac_status); }; } &&
25070 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25072 (eval $ac_try) 2>&5
25073 ac_status=$?
25074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); }; }; then
25076 ac_cv_search_pthread_mutex_lock="none required"
25077else
25078 echo "$as_me: failed program was:" >&5
25079sed 's/^/| /' conftest.$ac_ext >&5
25080
25081fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025082rm -f conftest.err conftest.$ac_objext \
25083 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025084if test "$ac_cv_search_pthread_mutex_lock" = no; then
25085 for ac_lib in pthread; do
25086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25087 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000025088/* confdefs.h. */
25089_ACEOF
25090cat confdefs.h >>conftest.$ac_ext
25091cat >>conftest.$ac_ext <<_ACEOF
25092/* end confdefs.h. */
25093
25094/* Override any gcc2 internal prototype to avoid an error. */
25095#ifdef __cplusplus
25096extern "C"
25097#endif
25098/* We use char because int might match the return type of a gcc2
25099 builtin and then its argument prototype would still apply. */
25100char pthread_mutex_lock ();
25101int
25102main ()
25103{
25104pthread_mutex_lock ();
25105 ;
25106 return 0;
25107}
25108_ACEOF
25109rm -f conftest.$ac_objext conftest$ac_exeext
25110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025111 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000025112 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025113 grep -v '^ *+' conftest.er1 >conftest.err
25114 rm -f conftest.er1
25115 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000025116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25117 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025118 { ac_try='test -z "$ac_c_werror_flag"
25119 || test ! -s conftest.err'
25120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25121 (eval $ac_try) 2>&5
25122 ac_status=$?
25123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124 (exit $ac_status); }; } &&
25125 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000025126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25127 (eval $ac_try) 2>&5
25128 ac_status=$?
25129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25130 (exit $ac_status); }; }; then
25131 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
25132break
25133else
25134 echo "$as_me: failed program was:" >&5
25135sed 's/^/| /' conftest.$ac_ext >&5
25136
25137fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025138rm -f conftest.err conftest.$ac_objext \
25139 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000025140 done
25141fi
25142LIBS=$ac_func_search_save_LIBS
25143fi
25144echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
25145echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
25146if test "$ac_cv_search_pthread_mutex_lock" != no; then
25147 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000025148
John Criswell40468462004-09-24 21:19:06 +000025149cat >>confdefs.h <<\_ACEOF
25150#define HAVE_PTHREAD_MUTEX_LOCK 1
25151_ACEOF
25152
25153fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000025154
Brian Gaekec9a410c2004-02-23 21:30:37 +000025155
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025156
John Criswell7a73b802003-06-30 21:59:07 +000025157echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25158echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25159if test "${ac_cv_header_stdc+set}" = set; then
25160 echo $ECHO_N "(cached) $ECHO_C" >&6
25161else
25162 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025163/* confdefs.h. */
25164_ACEOF
25165cat confdefs.h >>conftest.$ac_ext
25166cat >>conftest.$ac_ext <<_ACEOF
25167/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025168#include <stdlib.h>
25169#include <stdarg.h>
25170#include <string.h>
25171#include <float.h>
25172
John Criswell0c38eaf2003-09-10 15:17:25 +000025173int
25174main ()
25175{
25176
25177 ;
25178 return 0;
25179}
John Criswell7a73b802003-06-30 21:59:07 +000025180_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025181rm -f conftest.$ac_objext
25182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025183 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025184 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025185 grep -v '^ *+' conftest.er1 >conftest.err
25186 rm -f conftest.er1
25187 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025189 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025190 { ac_try='test -z "$ac_c_werror_flag"
25191 || test ! -s conftest.err'
25192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25193 (eval $ac_try) 2>&5
25194 ac_status=$?
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); }; } &&
25197 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000025198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25199 (eval $ac_try) 2>&5
25200 ac_status=$?
25201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25202 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000025203 ac_cv_header_stdc=yes
25204else
25205 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025206sed 's/^/| /' conftest.$ac_ext >&5
25207
25208ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000025209fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025211
25212if test $ac_cv_header_stdc = yes; then
25213 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25214 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025215/* confdefs.h. */
25216_ACEOF
25217cat confdefs.h >>conftest.$ac_ext
25218cat >>conftest.$ac_ext <<_ACEOF
25219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025220#include <string.h>
25221
25222_ACEOF
25223if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025224 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025225 :
25226else
25227 ac_cv_header_stdc=no
25228fi
25229rm -f conftest*
25230
25231fi
25232
25233if test $ac_cv_header_stdc = yes; then
25234 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25235 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025236/* confdefs.h. */
25237_ACEOF
25238cat confdefs.h >>conftest.$ac_ext
25239cat >>conftest.$ac_ext <<_ACEOF
25240/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025241#include <stdlib.h>
25242
25243_ACEOF
25244if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000025245 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025246 :
25247else
25248 ac_cv_header_stdc=no
25249fi
25250rm -f conftest*
25251
25252fi
25253
25254if test $ac_cv_header_stdc = yes; then
25255 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25256 if test "$cross_compiling" = yes; then
25257 :
25258else
25259 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025260/* confdefs.h. */
25261_ACEOF
25262cat confdefs.h >>conftest.$ac_ext
25263cat >>conftest.$ac_ext <<_ACEOF
25264/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025265#include <ctype.h>
25266#if ((' ' & 0x0FF) == 0x020)
25267# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25268# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25269#else
John Criswell0c38eaf2003-09-10 15:17:25 +000025270# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025271 (('a' <= (c) && (c) <= 'i') \
25272 || ('j' <= (c) && (c) <= 'r') \
25273 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000025274# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25275#endif
25276
25277#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25278int
25279main ()
25280{
25281 int i;
25282 for (i = 0; i < 256; i++)
25283 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000025284 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000025285 exit(2);
25286 exit (0);
25287}
25288_ACEOF
25289rm -f conftest$ac_exeext
25290if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25291 (eval $ac_link) 2>&5
25292 ac_status=$?
25293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25294 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25296 (eval $ac_try) 2>&5
25297 ac_status=$?
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); }; }; then
25300 :
25301else
25302 echo "$as_me: program exited with status $ac_status" >&5
25303echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025304sed 's/^/| /' conftest.$ac_ext >&5
25305
John Criswell7a73b802003-06-30 21:59:07 +000025306( exit $ac_status )
25307ac_cv_header_stdc=no
25308fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025309rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025310fi
25311fi
25312fi
25313echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25314echo "${ECHO_T}$ac_cv_header_stdc" >&6
25315if test $ac_cv_header_stdc = yes; then
25316
25317cat >>confdefs.h <<\_ACEOF
25318#define STDC_HEADERS 1
25319_ACEOF
25320
25321fi
25322
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025323
John Criswell7a73b802003-06-30 21:59:07 +000025324echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
25325echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
25326if test "${ac_cv_header_sys_wait_h+set}" = set; then
25327 echo $ECHO_N "(cached) $ECHO_C" >&6
25328else
25329 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025330/* confdefs.h. */
25331_ACEOF
25332cat confdefs.h >>conftest.$ac_ext
25333cat >>conftest.$ac_ext <<_ACEOF
25334/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025335#include <sys/types.h>
25336#include <sys/wait.h>
25337#ifndef WEXITSTATUS
25338# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
25339#endif
25340#ifndef WIFEXITED
25341# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25342#endif
25343
John Criswell7a73b802003-06-30 21:59:07 +000025344int
25345main ()
25346{
25347 int s;
25348 wait (&s);
25349 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25350 ;
25351 return 0;
25352}
25353_ACEOF
25354rm -f conftest.$ac_objext
25355if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025356 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025357 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025358 grep -v '^ *+' conftest.er1 >conftest.err
25359 rm -f conftest.er1
25360 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25362 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025363 { ac_try='test -z "$ac_c_werror_flag"
25364 || test ! -s conftest.err'
25365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25366 (eval $ac_try) 2>&5
25367 ac_status=$?
25368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25369 (exit $ac_status); }; } &&
25370 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25372 (eval $ac_try) 2>&5
25373 ac_status=$?
25374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25375 (exit $ac_status); }; }; then
25376 ac_cv_header_sys_wait_h=yes
25377else
25378 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025379sed 's/^/| /' conftest.$ac_ext >&5
25380
John Criswell7a73b802003-06-30 21:59:07 +000025381ac_cv_header_sys_wait_h=no
25382fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025383rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025384fi
25385echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
25386echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
25387if test $ac_cv_header_sys_wait_h = yes; then
25388
25389cat >>confdefs.h <<\_ACEOF
25390#define HAVE_SYS_WAIT_H 1
25391_ACEOF
25392
25393fi
25394
25395
25396
25397
25398
25399
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025400for ac_header in sys/time.h sys/mman.h sys/resource.h sys/time.h sys/types.h
John Criswell7a73b802003-06-30 21:59:07 +000025401do
25402as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25403if eval "test \"\${$as_ac_Header+set}\" = set"; then
25404 echo "$as_me:$LINENO: checking for $ac_header" >&5
25405echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25406if eval "test \"\${$as_ac_Header+set}\" = set"; then
25407 echo $ECHO_N "(cached) $ECHO_C" >&6
25408fi
25409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25410echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25411else
25412 # Is the header compilable?
25413echo "$as_me:$LINENO: checking $ac_header usability" >&5
25414echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25415cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025416/* confdefs.h. */
25417_ACEOF
25418cat confdefs.h >>conftest.$ac_ext
25419cat >>conftest.$ac_ext <<_ACEOF
25420/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025421$ac_includes_default
25422#include <$ac_header>
25423_ACEOF
25424rm -f conftest.$ac_objext
25425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025426 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000025427 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025428 grep -v '^ *+' conftest.er1 >conftest.err
25429 rm -f conftest.er1
25430 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000025431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25432 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025433 { ac_try='test -z "$ac_c_werror_flag"
25434 || test ! -s conftest.err'
25435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25436 (eval $ac_try) 2>&5
25437 ac_status=$?
25438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25439 (exit $ac_status); }; } &&
25440 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000025441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25442 (eval $ac_try) 2>&5
25443 ac_status=$?
25444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25445 (exit $ac_status); }; }; then
25446 ac_header_compiler=yes
25447else
25448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025449sed 's/^/| /' conftest.$ac_ext >&5
25450
John Criswell7a73b802003-06-30 21:59:07 +000025451ac_header_compiler=no
25452fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000025454echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25455echo "${ECHO_T}$ac_header_compiler" >&6
25456
25457# Is the header present?
25458echo "$as_me:$LINENO: checking $ac_header presence" >&5
25459echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25460cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025461/* confdefs.h. */
25462_ACEOF
25463cat confdefs.h >>conftest.$ac_ext
25464cat >>conftest.$ac_ext <<_ACEOF
25465/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000025466#include <$ac_header>
25467_ACEOF
25468if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25469 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25470 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000025471 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000025472 rm -f conftest.er1
25473 cat conftest.err >&5
25474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); } >/dev/null; then
25476 if test -s conftest.err; then
25477 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000025478 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000025479 else
25480 ac_cpp_err=
25481 fi
25482else
25483 ac_cpp_err=yes
25484fi
25485if test -z "$ac_cpp_err"; then
25486 ac_header_preproc=yes
25487else
25488 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000025489sed 's/^/| /' conftest.$ac_ext >&5
25490
John Criswell7a73b802003-06-30 21:59:07 +000025491 ac_header_preproc=no
25492fi
25493rm -f conftest.err conftest.$ac_ext
25494echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25495echo "${ECHO_T}$ac_header_preproc" >&6
25496
25497# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025498case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25499 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000025500 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25501echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25503echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25504 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000025505 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000025506 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000025507 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25508echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025509 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25510echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25511 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25512echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25513 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25514echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25516echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000025517 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25518echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000025519 (
25520 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000025521## ----------------------------------- ##
25522## Report this to llvmbugs@cs.uiuc.edu ##
25523## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000025524_ASBOX
25525 ) |
25526 sed "s/^/$as_me: WARNING: /" >&2
25527 ;;
John Criswell7a73b802003-06-30 21:59:07 +000025528esac
25529echo "$as_me:$LINENO: checking for $ac_header" >&5
25530echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25531if eval "test \"\${$as_ac_Header+set}\" = set"; then
25532 echo $ECHO_N "(cached) $ECHO_C" >&6
25533else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025534 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000025535fi
25536echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25537echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25538
25539fi
25540if test `eval echo '${'$as_ac_Header'}'` = yes; then
25541 cat >>confdefs.h <<_ACEOF
25542#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25543_ACEOF
25544
25545fi
25546
25547done
25548
25549
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025550
25551
25552
25553
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025554for ac_header in dlfcn.h execinfo.h fcntl.h limits.h link.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025555do
25556as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25557if eval "test \"\${$as_ac_Header+set}\" = set"; then
25558 echo "$as_me:$LINENO: checking for $ac_header" >&5
25559echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25560if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025561 echo $ECHO_N "(cached) $ECHO_C" >&6
25562fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025563echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25564echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025565else
25566 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025567echo "$as_me:$LINENO: checking $ac_header usability" >&5
25568echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025569cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025570/* confdefs.h. */
25571_ACEOF
25572cat confdefs.h >>conftest.$ac_ext
25573cat >>conftest.$ac_ext <<_ACEOF
25574/* end confdefs.h. */
25575$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025576#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025577_ACEOF
25578rm -f conftest.$ac_objext
25579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000025580 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025581 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000025582 grep -v '^ *+' conftest.er1 >conftest.err
25583 rm -f conftest.er1
25584 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25586 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000025587 { ac_try='test -z "$ac_c_werror_flag"
25588 || test ! -s conftest.err'
25589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25590 (eval $ac_try) 2>&5
25591 ac_status=$?
25592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25593 (exit $ac_status); }; } &&
25594 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25596 (eval $ac_try) 2>&5
25597 ac_status=$?
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); }; }; then
25600 ac_header_compiler=yes
25601else
25602 echo "$as_me: failed program was:" >&5
25603sed 's/^/| /' conftest.$ac_ext >&5
25604
25605ac_header_compiler=no
25606fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000025607rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025608echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25609echo "${ECHO_T}$ac_header_compiler" >&6
25610
25611# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025612echo "$as_me:$LINENO: checking $ac_header presence" >&5
25613echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025614cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025615/* confdefs.h. */
25616_ACEOF
25617cat confdefs.h >>conftest.$ac_ext
25618cat >>conftest.$ac_ext <<_ACEOF
25619/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025620#include <$ac_header>
25621_ACEOF
25622if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25624 ac_status=$?
25625 grep -v '^ *+' conftest.er1 >conftest.err
25626 rm -f conftest.er1
25627 cat conftest.err >&5
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); } >/dev/null; then
25630 if test -s conftest.err; then
25631 ac_cpp_err=$ac_c_preproc_warn_flag
25632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25633 else
25634 ac_cpp_err=
25635 fi
25636else
25637 ac_cpp_err=yes
25638fi
25639if test -z "$ac_cpp_err"; then
25640 ac_header_preproc=yes
25641else
25642 echo "$as_me: failed program was:" >&5
25643sed 's/^/| /' conftest.$ac_ext >&5
25644
25645 ac_header_preproc=no
25646fi
25647rm -f conftest.err conftest.$ac_ext
25648echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25649echo "${ECHO_T}$ac_header_preproc" >&6
25650
25651# So? What about this header?
25652case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25653 yes:no: )
25654 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25655echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25656 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25657echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25658 ac_header_preproc=yes
25659 ;;
25660 no:yes:* )
25661 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25662echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25663 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25664echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25665 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25666echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25667 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25668echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25671 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25672echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25673 (
25674 cat <<\_ASBOX
25675## ----------------------------------- ##
25676## Report this to llvmbugs@cs.uiuc.edu ##
25677## ----------------------------------- ##
25678_ASBOX
25679 ) |
25680 sed "s/^/$as_me: WARNING: /" >&2
25681 ;;
25682esac
25683echo "$as_me:$LINENO: checking for $ac_header" >&5
25684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25685if eval "test \"\${$as_ac_Header+set}\" = set"; then
25686 echo $ECHO_N "(cached) $ECHO_C" >&6
25687else
25688 eval "$as_ac_Header=\$ac_header_preproc"
25689fi
25690echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25691echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25692
25693fi
25694if test `eval echo '${'$as_ac_Header'}'` = yes; then
25695 cat >>confdefs.h <<_ACEOF
25696#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25697_ACEOF
25698
25699fi
25700
25701done
25702
25703
25704
25705
Reid Spencer2bc7bd52004-11-29 12:29:58 +000025706for ac_header in malloc.h unistd.h windows.h
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025707do
25708as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25709if eval "test \"\${$as_ac_Header+set}\" = set"; then
25710 echo "$as_me:$LINENO: checking for $ac_header" >&5
25711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25712if eval "test \"\${$as_ac_Header+set}\" = set"; then
25713 echo $ECHO_N "(cached) $ECHO_C" >&6
25714fi
25715echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25716echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25717else
25718 # Is the header compilable?
25719echo "$as_me:$LINENO: checking $ac_header usability" >&5
25720echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25721cat >conftest.$ac_ext <<_ACEOF
25722/* confdefs.h. */
25723_ACEOF
25724cat confdefs.h >>conftest.$ac_ext
25725cat >>conftest.$ac_ext <<_ACEOF
25726/* end confdefs.h. */
25727$ac_includes_default
25728#include <$ac_header>
25729_ACEOF
25730rm -f conftest.$ac_objext
25731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25732 (eval $ac_compile) 2>conftest.er1
25733 ac_status=$?
25734 grep -v '^ *+' conftest.er1 >conftest.err
25735 rm -f conftest.er1
25736 cat conftest.err >&5
25737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25738 (exit $ac_status); } &&
25739 { ac_try='test -z "$ac_c_werror_flag"
25740 || test ! -s conftest.err'
25741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25742 (eval $ac_try) 2>&5
25743 ac_status=$?
25744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25745 (exit $ac_status); }; } &&
25746 { ac_try='test -s conftest.$ac_objext'
25747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25748 (eval $ac_try) 2>&5
25749 ac_status=$?
25750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25751 (exit $ac_status); }; }; then
25752 ac_header_compiler=yes
25753else
25754 echo "$as_me: failed program was:" >&5
25755sed 's/^/| /' conftest.$ac_ext >&5
25756
25757ac_header_compiler=no
25758fi
25759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25760echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25761echo "${ECHO_T}$ac_header_compiler" >&6
25762
25763# Is the header present?
25764echo "$as_me:$LINENO: checking $ac_header presence" >&5
25765echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25766cat >conftest.$ac_ext <<_ACEOF
25767/* confdefs.h. */
25768_ACEOF
25769cat confdefs.h >>conftest.$ac_ext
25770cat >>conftest.$ac_ext <<_ACEOF
25771/* end confdefs.h. */
25772#include <$ac_header>
25773_ACEOF
25774if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25775 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25776 ac_status=$?
25777 grep -v '^ *+' conftest.er1 >conftest.err
25778 rm -f conftest.er1
25779 cat conftest.err >&5
25780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25781 (exit $ac_status); } >/dev/null; then
25782 if test -s conftest.err; then
25783 ac_cpp_err=$ac_c_preproc_warn_flag
25784 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25785 else
25786 ac_cpp_err=
25787 fi
25788else
25789 ac_cpp_err=yes
25790fi
25791if test -z "$ac_cpp_err"; then
25792 ac_header_preproc=yes
25793else
25794 echo "$as_me: failed program was:" >&5
25795sed 's/^/| /' conftest.$ac_ext >&5
25796
25797 ac_header_preproc=no
25798fi
25799rm -f conftest.err conftest.$ac_ext
25800echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25801echo "${ECHO_T}$ac_header_preproc" >&6
25802
25803# So? What about this header?
25804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25805 yes:no: )
25806 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25807echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25809echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25810 ac_header_preproc=yes
25811 ;;
25812 no:yes:* )
25813 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25814echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25815 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25816echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25817 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25818echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25819 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25820echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25822echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25823 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25824echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25825 (
25826 cat <<\_ASBOX
25827## ----------------------------------- ##
25828## Report this to llvmbugs@cs.uiuc.edu ##
25829## ----------------------------------- ##
25830_ASBOX
25831 ) |
25832 sed "s/^/$as_me: WARNING: /" >&2
25833 ;;
25834esac
25835echo "$as_me:$LINENO: checking for $ac_header" >&5
25836echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25837if eval "test \"\${$as_ac_Header+set}\" = set"; then
25838 echo $ECHO_N "(cached) $ECHO_C" >&6
25839else
25840 eval "$as_ac_Header=\$ac_header_preproc"
25841fi
25842echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25843echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25844
25845fi
25846if test `eval echo '${'$as_ac_Header'}'` = yes; then
25847 cat >>confdefs.h <<_ACEOF
25848#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25849_ACEOF
25850
25851fi
25852
25853done
25854
25855echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
25856echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
25857if test "${ac_cv_header_time+set}" = set; then
25858 echo $ECHO_N "(cached) $ECHO_C" >&6
25859else
25860 cat >conftest.$ac_ext <<_ACEOF
25861/* confdefs.h. */
25862_ACEOF
25863cat confdefs.h >>conftest.$ac_ext
25864cat >>conftest.$ac_ext <<_ACEOF
25865/* end confdefs.h. */
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025866#include <sys/types.h>
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025867#include <sys/time.h>
25868#include <time.h>
25869
25870int
25871main ()
25872{
25873if ((struct tm *) 0)
25874return 0;
25875 ;
25876 return 0;
25877}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025878_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025879rm -f conftest.$ac_objext
25880if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25881 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025882 ac_status=$?
25883 grep -v '^ *+' conftest.er1 >conftest.err
25884 rm -f conftest.er1
25885 cat conftest.err >&5
25886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025887 (exit $ac_status); } &&
25888 { ac_try='test -z "$ac_c_werror_flag"
25889 || test ! -s conftest.err'
25890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25891 (eval $ac_try) 2>&5
25892 ac_status=$?
25893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894 (exit $ac_status); }; } &&
25895 { ac_try='test -s conftest.$ac_objext'
25896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25897 (eval $ac_try) 2>&5
25898 ac_status=$?
25899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25900 (exit $ac_status); }; }; then
25901 ac_cv_header_time=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025902else
25903 echo "$as_me: failed program was:" >&5
25904sed 's/^/| /' conftest.$ac_ext >&5
25905
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025906ac_cv_header_time=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025907fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025908rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25909fi
25910echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
25911echo "${ECHO_T}$ac_cv_header_time" >&6
25912if test $ac_cv_header_time = yes; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025913
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025914cat >>confdefs.h <<\_ACEOF
25915#define TIME_WITH_SYS_TIME 1
25916_ACEOF
25917
25918fi
25919
25920echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
25921echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
25922if test "${ac_cv_header_mmap_anon+set}" = set; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025923 echo $ECHO_N "(cached) $ECHO_C" >&6
25924else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025925 ac_ext=c
25926ac_cpp='$CPP $CPPFLAGS'
25927ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25928ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25929ac_compiler_gnu=$ac_cv_c_compiler_gnu
25930
25931 cat >conftest.$ac_ext <<_ACEOF
25932/* confdefs.h. */
25933_ACEOF
25934cat confdefs.h >>conftest.$ac_ext
25935cat >>conftest.$ac_ext <<_ACEOF
25936/* end confdefs.h. */
25937#include <sys/mman.h>
25938#include <unistd.h>
25939#include <fcntl.h>
25940int
25941main ()
25942{
25943mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
25944 ;
25945 return 0;
25946}
25947_ACEOF
25948rm -f conftest.$ac_objext
25949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25950 (eval $ac_compile) 2>conftest.er1
25951 ac_status=$?
25952 grep -v '^ *+' conftest.er1 >conftest.err
25953 rm -f conftest.er1
25954 cat conftest.err >&5
25955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956 (exit $ac_status); } &&
25957 { ac_try='test -z "$ac_c_werror_flag"
25958 || test ! -s conftest.err'
25959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25960 (eval $ac_try) 2>&5
25961 ac_status=$?
25962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25963 (exit $ac_status); }; } &&
25964 { ac_try='test -s conftest.$ac_objext'
25965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25966 (eval $ac_try) 2>&5
25967 ac_status=$?
25968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25969 (exit $ac_status); }; }; then
25970 ac_cv_header_mmap_anon=yes
25971else
25972 echo "$as_me: failed program was:" >&5
25973sed 's/^/| /' conftest.$ac_ext >&5
25974
25975ac_cv_header_mmap_anon=no
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025976fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25978 ac_ext=c
25979ac_cpp='$CPP $CPPFLAGS'
25980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25982ac_compiler_gnu=$ac_cv_c_compiler_gnu
25983
25984
25985fi
25986echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
25987echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
25988if test "$ac_cv_header_mmap_anon" = yes; then
25989
25990cat >>confdefs.h <<\_ACEOF
25991#define HAVE_MMAP_ANONYMOUS
25992_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025993
25994fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000025995
25996
Reid Spencer5e1d9a52004-11-25 04:51:04 +000025997
25998
25999for ac_header in inttypes.h stdint.h
26000do
26001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26002if eval "test \"\${$as_ac_Header+set}\" = set"; then
26003 echo "$as_me:$LINENO: checking for $ac_header" >&5
26004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26005if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026006 echo $ECHO_N "(cached) $ECHO_C" >&6
26007fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026010else
26011 # Is the header compilable?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026012echo "$as_me:$LINENO: checking $ac_header usability" >&5
26013echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026014cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026015/* confdefs.h. */
26016_ACEOF
26017cat confdefs.h >>conftest.$ac_ext
26018cat >>conftest.$ac_ext <<_ACEOF
26019/* end confdefs.h. */
26020$ac_includes_default
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026021#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026022_ACEOF
26023rm -f conftest.$ac_objext
26024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026025 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026026 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026027 grep -v '^ *+' conftest.er1 >conftest.err
26028 rm -f conftest.er1
26029 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026032 { ac_try='test -z "$ac_c_werror_flag"
26033 || test ! -s conftest.err'
26034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035 (eval $ac_try) 2>&5
26036 ac_status=$?
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); }; } &&
26039 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041 (eval $ac_try) 2>&5
26042 ac_status=$?
26043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); }; }; then
26045 ac_header_compiler=yes
26046else
26047 echo "$as_me: failed program was:" >&5
26048sed 's/^/| /' conftest.$ac_ext >&5
26049
26050ac_header_compiler=no
26051fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026053echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26054echo "${ECHO_T}$ac_header_compiler" >&6
26055
26056# Is the header present?
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026057echo "$as_me:$LINENO: checking $ac_header presence" >&5
26058echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026059cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026060/* confdefs.h. */
26061_ACEOF
26062cat confdefs.h >>conftest.$ac_ext
26063cat >>conftest.$ac_ext <<_ACEOF
26064/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026065#include <$ac_header>
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026066_ACEOF
26067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26068 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26069 ac_status=$?
26070 grep -v '^ *+' conftest.er1 >conftest.err
26071 rm -f conftest.er1
26072 cat conftest.err >&5
26073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074 (exit $ac_status); } >/dev/null; then
26075 if test -s conftest.err; then
26076 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000026077 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026078 else
26079 ac_cpp_err=
26080 fi
26081else
26082 ac_cpp_err=yes
26083fi
26084if test -z "$ac_cpp_err"; then
26085 ac_header_preproc=yes
26086else
26087 echo "$as_me: failed program was:" >&5
26088sed 's/^/| /' conftest.$ac_ext >&5
26089
26090 ac_header_preproc=no
26091fi
26092rm -f conftest.err conftest.$ac_ext
26093echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26094echo "${ECHO_T}$ac_header_preproc" >&6
26095
26096# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26098 yes:no: )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026099 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26101 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26102echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000026103 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000026104 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000026105 no:yes:* )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026106 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26108 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26109echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26110 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26112 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26113echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26114 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26116 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26117echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000026118 (
26119 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000026120## ----------------------------------- ##
26121## Report this to llvmbugs@cs.uiuc.edu ##
26122## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026123_ASBOX
26124 ) |
26125 sed "s/^/$as_me: WARNING: /" >&2
26126 ;;
26127esac
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026128echo "$as_me:$LINENO: checking for $ac_header" >&5
26129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26130if eval "test \"\${$as_ac_Header+set}\" = set"; then
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026131 echo $ECHO_N "(cached) $ECHO_C" >&6
26132else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026133 eval "$as_ac_Header=\$ac_header_preproc"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026134fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026137
26138fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026139if test `eval echo '${'$as_ac_Header'}'` = yes; then
26140 cat >>confdefs.h <<_ACEOF
26141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
John Criswell7ed43ad2004-07-19 16:12:29 +000026142_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000026143
26144fi
John Criswell7ed43ad2004-07-19 16:12:29 +000026145
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026146done
26147
John Criswell7ed43ad2004-07-19 16:12:29 +000026148
Brian Gaeke6c3fd812004-02-23 22:07:00 +000026149
John Criswell7a73b802003-06-30 21:59:07 +000026150echo "$as_me:$LINENO: checking for pid_t" >&5
26151echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
26152if test "${ac_cv_type_pid_t+set}" = set; then
26153 echo $ECHO_N "(cached) $ECHO_C" >&6
26154else
26155 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026156/* confdefs.h. */
26157_ACEOF
26158cat confdefs.h >>conftest.$ac_ext
26159cat >>conftest.$ac_ext <<_ACEOF
26160/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026161$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026162int
26163main ()
26164{
26165if ((pid_t *) 0)
26166 return 0;
26167if (sizeof (pid_t))
26168 return 0;
26169 ;
26170 return 0;
26171}
26172_ACEOF
26173rm -f conftest.$ac_objext
26174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026175 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026176 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026177 grep -v '^ *+' conftest.er1 >conftest.err
26178 rm -f conftest.er1
26179 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026182 { ac_try='test -z "$ac_c_werror_flag"
26183 || test ! -s conftest.err'
26184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26185 (eval $ac_try) 2>&5
26186 ac_status=$?
26187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26188 (exit $ac_status); }; } &&
26189 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26191 (eval $ac_try) 2>&5
26192 ac_status=$?
26193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194 (exit $ac_status); }; }; then
26195 ac_cv_type_pid_t=yes
26196else
26197 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026198sed 's/^/| /' conftest.$ac_ext >&5
26199
John Criswell7a73b802003-06-30 21:59:07 +000026200ac_cv_type_pid_t=no
26201fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026203fi
26204echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
26205echo "${ECHO_T}$ac_cv_type_pid_t" >&6
26206if test $ac_cv_type_pid_t = yes; then
26207 :
26208else
26209
26210cat >>confdefs.h <<_ACEOF
26211#define pid_t int
26212_ACEOF
26213
26214fi
26215
26216echo "$as_me:$LINENO: checking for size_t" >&5
26217echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26218if test "${ac_cv_type_size_t+set}" = set; then
26219 echo $ECHO_N "(cached) $ECHO_C" >&6
26220else
26221 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026222/* confdefs.h. */
26223_ACEOF
26224cat confdefs.h >>conftest.$ac_ext
26225cat >>conftest.$ac_ext <<_ACEOF
26226/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026227$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026228int
26229main ()
26230{
26231if ((size_t *) 0)
26232 return 0;
26233if (sizeof (size_t))
26234 return 0;
26235 ;
26236 return 0;
26237}
26238_ACEOF
26239rm -f conftest.$ac_objext
26240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026241 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026242 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026243 grep -v '^ *+' conftest.er1 >conftest.err
26244 rm -f conftest.er1
26245 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26247 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026248 { ac_try='test -z "$ac_c_werror_flag"
26249 || test ! -s conftest.err'
26250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26251 (eval $ac_try) 2>&5
26252 ac_status=$?
26253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26254 (exit $ac_status); }; } &&
26255 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26257 (eval $ac_try) 2>&5
26258 ac_status=$?
26259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26260 (exit $ac_status); }; }; then
26261 ac_cv_type_size_t=yes
26262else
26263 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026264sed 's/^/| /' conftest.$ac_ext >&5
26265
John Criswell7a73b802003-06-30 21:59:07 +000026266ac_cv_type_size_t=no
26267fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026268rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026269fi
26270echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
26271echo "${ECHO_T}$ac_cv_type_size_t" >&6
26272if test $ac_cv_type_size_t = yes; then
26273 :
26274else
26275
26276cat >>confdefs.h <<_ACEOF
26277#define size_t unsigned
26278_ACEOF
26279
26280fi
26281
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026282echo "$as_me:$LINENO: checking return type of signal handlers" >&5
26283echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
26284if test "${ac_cv_type_signal+set}" = set; then
26285 echo $ECHO_N "(cached) $ECHO_C" >&6
26286else
26287 cat >conftest.$ac_ext <<_ACEOF
26288/* confdefs.h. */
26289_ACEOF
26290cat confdefs.h >>conftest.$ac_ext
26291cat >>conftest.$ac_ext <<_ACEOF
26292/* end confdefs.h. */
26293#include <sys/types.h>
26294#include <signal.h>
26295#ifdef signal
26296# undef signal
26297#endif
26298#ifdef __cplusplus
26299extern "C" void (*signal (int, void (*)(int)))(int);
26300#else
26301void (*signal ()) ();
26302#endif
26303
26304int
26305main ()
26306{
26307int i;
26308 ;
26309 return 0;
26310}
26311_ACEOF
26312rm -f conftest.$ac_objext
26313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26314 (eval $ac_compile) 2>conftest.er1
26315 ac_status=$?
26316 grep -v '^ *+' conftest.er1 >conftest.err
26317 rm -f conftest.er1
26318 cat conftest.err >&5
26319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26320 (exit $ac_status); } &&
26321 { ac_try='test -z "$ac_c_werror_flag"
26322 || test ! -s conftest.err'
26323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26324 (eval $ac_try) 2>&5
26325 ac_status=$?
26326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26327 (exit $ac_status); }; } &&
26328 { ac_try='test -s conftest.$ac_objext'
26329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26330 (eval $ac_try) 2>&5
26331 ac_status=$?
26332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26333 (exit $ac_status); }; }; then
26334 ac_cv_type_signal=void
26335else
26336 echo "$as_me: failed program was:" >&5
26337sed 's/^/| /' conftest.$ac_ext >&5
26338
26339ac_cv_type_signal=int
26340fi
26341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26342fi
26343echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
26344echo "${ECHO_T}$ac_cv_type_signal" >&6
26345
26346cat >>confdefs.h <<_ACEOF
26347#define RETSIGTYPE $ac_cv_type_signal
26348_ACEOF
26349
26350
26351echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
26352echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
26353if test "${ac_cv_struct_tm+set}" = set; then
26354 echo $ECHO_N "(cached) $ECHO_C" >&6
26355else
26356 cat >conftest.$ac_ext <<_ACEOF
26357/* confdefs.h. */
26358_ACEOF
26359cat confdefs.h >>conftest.$ac_ext
26360cat >>conftest.$ac_ext <<_ACEOF
26361/* end confdefs.h. */
26362#include <sys/types.h>
26363#include <time.h>
26364
26365int
26366main ()
26367{
26368struct tm *tp; tp->tm_sec;
26369 ;
26370 return 0;
26371}
26372_ACEOF
26373rm -f conftest.$ac_objext
26374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26375 (eval $ac_compile) 2>conftest.er1
26376 ac_status=$?
26377 grep -v '^ *+' conftest.er1 >conftest.err
26378 rm -f conftest.er1
26379 cat conftest.err >&5
26380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 (exit $ac_status); } &&
26382 { ac_try='test -z "$ac_c_werror_flag"
26383 || test ! -s conftest.err'
26384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26385 (eval $ac_try) 2>&5
26386 ac_status=$?
26387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26388 (exit $ac_status); }; } &&
26389 { ac_try='test -s conftest.$ac_objext'
26390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26391 (eval $ac_try) 2>&5
26392 ac_status=$?
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); }; }; then
26395 ac_cv_struct_tm=time.h
26396else
26397 echo "$as_me: failed program was:" >&5
26398sed 's/^/| /' conftest.$ac_ext >&5
26399
26400ac_cv_struct_tm=sys/time.h
26401fi
26402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26403fi
26404echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
26405echo "${ECHO_T}$ac_cv_struct_tm" >&6
26406if test $ac_cv_struct_tm = sys/time.h; then
26407
26408cat >>confdefs.h <<\_ACEOF
26409#define TM_IN_SYS_TIME 1
26410_ACEOF
26411
26412fi
26413
John Criswell7a73b802003-06-30 21:59:07 +000026414echo "$as_me:$LINENO: checking for int64_t" >&5
26415echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
26416if test "${ac_cv_type_int64_t+set}" = set; then
26417 echo $ECHO_N "(cached) $ECHO_C" >&6
26418else
26419 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026420/* confdefs.h. */
26421_ACEOF
26422cat confdefs.h >>conftest.$ac_ext
26423cat >>conftest.$ac_ext <<_ACEOF
26424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026425$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026426int
26427main ()
26428{
26429if ((int64_t *) 0)
26430 return 0;
26431if (sizeof (int64_t))
26432 return 0;
26433 ;
26434 return 0;
26435}
26436_ACEOF
26437rm -f conftest.$ac_objext
26438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026439 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026440 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026441 grep -v '^ *+' conftest.er1 >conftest.err
26442 rm -f conftest.er1
26443 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26445 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026446 { ac_try='test -z "$ac_c_werror_flag"
26447 || test ! -s conftest.err'
26448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26449 (eval $ac_try) 2>&5
26450 ac_status=$?
26451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26452 (exit $ac_status); }; } &&
26453 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26455 (eval $ac_try) 2>&5
26456 ac_status=$?
26457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458 (exit $ac_status); }; }; then
26459 ac_cv_type_int64_t=yes
26460else
26461 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026462sed 's/^/| /' conftest.$ac_ext >&5
26463
John Criswell7a73b802003-06-30 21:59:07 +000026464ac_cv_type_int64_t=no
26465fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026467fi
26468echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
26469echo "${ECHO_T}$ac_cv_type_int64_t" >&6
26470if test $ac_cv_type_int64_t = yes; then
26471
26472cat >>confdefs.h <<_ACEOF
26473#define HAVE_INT64_T 1
26474_ACEOF
26475
26476
26477else
26478 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
26479echo "$as_me: error: Type int64_t required but not found" >&2;}
26480 { (exit 1); exit 1; }; }
26481fi
26482
26483echo "$as_me:$LINENO: checking for uint64_t" >&5
26484echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
26485if test "${ac_cv_type_uint64_t+set}" = set; then
26486 echo $ECHO_N "(cached) $ECHO_C" >&6
26487else
26488 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026489/* confdefs.h. */
26490_ACEOF
26491cat confdefs.h >>conftest.$ac_ext
26492cat >>conftest.$ac_ext <<_ACEOF
26493/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000026494$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000026495int
26496main ()
26497{
26498if ((uint64_t *) 0)
26499 return 0;
26500if (sizeof (uint64_t))
26501 return 0;
26502 ;
26503 return 0;
26504}
26505_ACEOF
26506rm -f conftest.$ac_objext
26507if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026508 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026509 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026510 grep -v '^ *+' conftest.er1 >conftest.err
26511 rm -f conftest.er1
26512 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26514 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026515 { ac_try='test -z "$ac_c_werror_flag"
26516 || test ! -s conftest.err'
26517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26518 (eval $ac_try) 2>&5
26519 ac_status=$?
26520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26521 (exit $ac_status); }; } &&
26522 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000026523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26524 (eval $ac_try) 2>&5
26525 ac_status=$?
26526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26527 (exit $ac_status); }; }; then
26528 ac_cv_type_uint64_t=yes
26529else
26530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026531sed 's/^/| /' conftest.$ac_ext >&5
26532
John Criswell7a73b802003-06-30 21:59:07 +000026533ac_cv_type_uint64_t=no
26534fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026535rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026536fi
26537echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
26538echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
26539if test $ac_cv_type_uint64_t = yes; then
26540
26541cat >>confdefs.h <<_ACEOF
26542#define HAVE_UINT64_T 1
26543_ACEOF
26544
26545
26546else
Misha Brukmanceca9042004-09-02 23:02:30 +000026547 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000026548echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
26549if test "${ac_cv_type_u_int64_t+set}" = set; then
26550 echo $ECHO_N "(cached) $ECHO_C" >&6
26551else
26552 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000026553/* confdefs.h. */
26554_ACEOF
26555cat confdefs.h >>conftest.$ac_ext
26556cat >>conftest.$ac_ext <<_ACEOF
26557/* end confdefs.h. */
26558$ac_includes_default
26559int
26560main ()
26561{
26562if ((u_int64_t *) 0)
26563 return 0;
26564if (sizeof (u_int64_t))
26565 return 0;
26566 ;
26567 return 0;
26568}
26569_ACEOF
26570rm -f conftest.$ac_objext
26571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000026572 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000026573 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026574 grep -v '^ *+' conftest.er1 >conftest.err
26575 rm -f conftest.er1
26576 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000026577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026579 { ac_try='test -z "$ac_c_werror_flag"
26580 || test ! -s conftest.err'
26581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26582 (eval $ac_try) 2>&5
26583 ac_status=$?
26584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26585 (exit $ac_status); }; } &&
26586 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000026587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26588 (eval $ac_try) 2>&5
26589 ac_status=$?
26590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26591 (exit $ac_status); }; }; then
26592 ac_cv_type_u_int64_t=yes
26593else
26594 echo "$as_me: failed program was:" >&5
26595sed 's/^/| /' conftest.$ac_ext >&5
26596
26597ac_cv_type_u_int64_t=no
26598fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026599rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000026600fi
26601echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
26602echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
26603if test $ac_cv_type_u_int64_t = yes; then
26604
26605cat >>confdefs.h <<_ACEOF
26606#define HAVE_U_INT64_T 1
26607_ACEOF
26608
26609
Misha Brukmanceca9042004-09-02 23:02:30 +000026610else
26611 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
26612echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
26613 { (exit 1); exit 1; }; }
26614fi
26615
John Criswell679ff312004-09-02 18:44:44 +000026616fi
26617
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026618
26619
26620
26621
26622
26623
26624
26625
26626for ac_func in backtrace getcwd gettimeofday isatty getrusage mkstemp
26627do
26628as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26629echo "$as_me:$LINENO: checking for $ac_func" >&5
26630echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26631if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026632 echo $ECHO_N "(cached) $ECHO_C" >&6
26633else
26634 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026635/* confdefs.h. */
26636_ACEOF
26637cat confdefs.h >>conftest.$ac_ext
26638cat >>conftest.$ac_ext <<_ACEOF
26639/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026640/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26642#define $ac_func innocuous_$ac_func
26643
26644/* System header to define __stub macros and hopefully few prototypes,
26645 which can conflict with char $ac_func (); below.
26646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26647 <limits.h> exists even on freestanding compilers. */
26648
26649#ifdef __STDC__
26650# include <limits.h>
26651#else
26652# include <assert.h>
26653#endif
26654
26655#undef $ac_func
26656
26657/* Override any gcc2 internal prototype to avoid an error. */
26658#ifdef __cplusplus
26659extern "C"
26660{
26661#endif
26662/* We use char because int might match the return type of a gcc2
26663 builtin and then its argument prototype would still apply. */
26664char $ac_func ();
26665/* The GNU C library defines this for functions which it implements
26666 to always fail with ENOSYS. Some functions are actually named
26667 something starting with __ and the normal name is an alias. */
26668#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26669choke me
26670#else
26671char (*f) () = $ac_func;
26672#endif
26673#ifdef __cplusplus
26674}
26675#endif
John Criswell7a73b802003-06-30 21:59:07 +000026676
John Criswell7a73b802003-06-30 21:59:07 +000026677int
26678main ()
26679{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026680return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026681 ;
26682 return 0;
26683}
26684_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026685rm -f conftest.$ac_objext conftest$ac_exeext
26686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26687 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026688 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026689 grep -v '^ *+' conftest.er1 >conftest.err
26690 rm -f conftest.er1
26691 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26693 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026694 { ac_try='test -z "$ac_c_werror_flag"
26695 || test ! -s conftest.err'
26696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26697 (eval $ac_try) 2>&5
26698 ac_status=$?
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026701 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26703 (eval $ac_try) 2>&5
26704 ac_status=$?
26705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26706 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026707 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026708else
26709 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026710sed 's/^/| /' conftest.$ac_ext >&5
26711
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026712eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026713fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026714rm -f conftest.err conftest.$ac_objext \
26715 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026716fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26718echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26719if test `eval echo '${'$as_ac_var'}'` = yes; then
26720 cat >>confdefs.h <<_ACEOF
26721#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026722_ACEOF
26723
26724fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026725done
John Criswell7a73b802003-06-30 21:59:07 +000026726
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026727
26728
26729
26730for ac_func in strdup strtoq strtoll
26731do
26732as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26733echo "$as_me:$LINENO: checking for $ac_func" >&5
26734echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26735if eval "test \"\${$as_ac_var+set}\" = set"; then
John Criswell7a73b802003-06-30 21:59:07 +000026736 echo $ECHO_N "(cached) $ECHO_C" >&6
26737else
26738 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000026739/* confdefs.h. */
26740_ACEOF
26741cat confdefs.h >>conftest.$ac_ext
26742cat >>conftest.$ac_ext <<_ACEOF
26743/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026744/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26746#define $ac_func innocuous_$ac_func
26747
26748/* System header to define __stub macros and hopefully few prototypes,
26749 which can conflict with char $ac_func (); below.
26750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26751 <limits.h> exists even on freestanding compilers. */
26752
26753#ifdef __STDC__
26754# include <limits.h>
26755#else
26756# include <assert.h>
26757#endif
26758
26759#undef $ac_func
26760
26761/* Override any gcc2 internal prototype to avoid an error. */
26762#ifdef __cplusplus
26763extern "C"
26764{
26765#endif
26766/* We use char because int might match the return type of a gcc2
26767 builtin and then its argument prototype would still apply. */
26768char $ac_func ();
26769/* The GNU C library defines this for functions which it implements
26770 to always fail with ENOSYS. Some functions are actually named
26771 something starting with __ and the normal name is an alias. */
26772#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26773choke me
26774#else
26775char (*f) () = $ac_func;
26776#endif
26777#ifdef __cplusplus
26778}
26779#endif
John Criswell7a73b802003-06-30 21:59:07 +000026780
John Criswell7a73b802003-06-30 21:59:07 +000026781int
26782main ()
26783{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026784return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000026785 ;
26786 return 0;
26787}
26788_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026789rm -f conftest.$ac_objext conftest$ac_exeext
26790if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26791 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000026792 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026793 grep -v '^ *+' conftest.er1 >conftest.err
26794 rm -f conftest.er1
26795 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000026796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026798 { ac_try='test -z "$ac_c_werror_flag"
26799 || test ! -s conftest.err'
26800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801 (eval $ac_try) 2>&5
26802 ac_status=$?
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026805 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000026806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807 (eval $ac_try) 2>&5
26808 ac_status=$?
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026811 eval "$as_ac_var=yes"
John Criswell7a73b802003-06-30 21:59:07 +000026812else
26813 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000026814sed 's/^/| /' conftest.$ac_ext >&5
26815
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026816eval "$as_ac_var=no"
John Criswell7a73b802003-06-30 21:59:07 +000026817fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026818rm -f conftest.err conftest.$ac_objext \
26819 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000026820fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026821echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26822echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26823if test `eval echo '${'$as_ac_var'}'` = yes; then
26824 cat >>confdefs.h <<_ACEOF
26825#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
John Criswell7a73b802003-06-30 21:59:07 +000026826_ACEOF
26827
26828fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026829done
John Criswell7a73b802003-06-30 21:59:07 +000026830
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026831echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
26832echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6
Reid Spencer3be58f92004-11-27 22:01:43 +000026833if test "${llvm_cv_c_printf_a+set}" = set; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026834 echo $ECHO_N "(cached) $ECHO_C" >&6
26835else
Reid Spencer2706f8c2004-09-19 23:53:36 +000026836 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000026837ac_cpp='$CPP $CPPFLAGS'
26838ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26839ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26840ac_compiler_gnu=$ac_cv_c_compiler_gnu
26841
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026842 if test "$cross_compiling" = yes; then
Reid Spencer3be58f92004-11-27 22:01:43 +000026843 llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000026844else
26845 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000026846
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026847 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000026848_ACEOF
26849cat confdefs.h >>conftest.$ac_ext
26850cat >>conftest.$ac_ext <<_ACEOF
26851/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000026852
John Criswella0137d32003-10-13 16:22:01 +000026853#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000026854#include <stdlib.h>
26855
John Criswella0137d32003-10-13 16:22:01 +000026856int
26857main ()
26858{
26859
Reid Spencer2706f8c2004-09-19 23:53:36 +000026860volatile double A, B;
26861char Buffer[100];
26862A = 1;
26863A /= 10.0;
26864sprintf(Buffer, "%a", A);
26865B = atof(Buffer);
26866if (A != B)
26867 return (1);
26868if (A != 0x1.999999999999ap-4)
26869 return (1);
26870return (0);
John Criswella0137d32003-10-13 16:22:01 +000026871 ;
26872 return 0;
26873}
26874_ACEOF
26875rm -f conftest$ac_exeext
26876if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26877 (eval $ac_link) 2>&5
26878 ac_status=$?
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26882 (eval $ac_try) 2>&5
26883 ac_status=$?
26884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26885 (exit $ac_status); }; }; then
Reid Spencer3be58f92004-11-27 22:01:43 +000026886 llvm_cv_c_printf_a=yes
John Criswella0137d32003-10-13 16:22:01 +000026887else
26888 echo "$as_me: program exited with status $ac_status" >&5
26889echo "$as_me: failed program was:" >&5
26890sed 's/^/| /' conftest.$ac_ext >&5
26891
26892( exit $ac_status )
Reid Spencer3be58f92004-11-27 22:01:43 +000026893llvmac_cv_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000026894fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026895rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000026896fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000026897 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000026898ac_cpp='$CPP $CPPFLAGS'
26899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26901ac_compiler_gnu=$ac_cv_c_compiler_gnu
26902
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026903fi
Reid Spencer3be58f92004-11-27 22:01:43 +000026904echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
26905echo "${ECHO_T}$llvm_cv_c_printf_a" >&6
26906 if test "$llvm_cv_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000026907
26908cat >>confdefs.h <<\_ACEOF
26909#define HAVE_PRINTF_A 1
26910_ACEOF
26911
Reid Spencer2706f8c2004-09-19 23:53:36 +000026912 fi
John Criswella0137d32003-10-13 16:22:01 +000026913
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026914# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26915# for constant arguments. Useless!
26916echo "$as_me:$LINENO: checking for working alloca.h" >&5
26917echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
26918if test "${ac_cv_working_alloca_h+set}" = set; then
John Criswell0021c312004-02-13 21:57:29 +000026919 echo $ECHO_N "(cached) $ECHO_C" >&6
26920else
John Criswell0021c312004-02-13 21:57:29 +000026921 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000026922/* confdefs.h. */
26923_ACEOF
26924cat confdefs.h >>conftest.$ac_ext
26925cat >>conftest.$ac_ext <<_ACEOF
26926/* end confdefs.h. */
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026927#include <alloca.h>
John Criswell0021c312004-02-13 21:57:29 +000026928int
26929main ()
26930{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026931char *p = (char *) alloca (2 * sizeof (int));
John Criswell0021c312004-02-13 21:57:29 +000026932 ;
26933 return 0;
26934}
26935_ACEOF
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026936rm -f conftest.$ac_objext conftest$ac_exeext
26937if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26938 (eval $ac_link) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000026939 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000026940 grep -v '^ *+' conftest.er1 >conftest.err
26941 rm -f conftest.er1
26942 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000026943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000026945 { ac_try='test -z "$ac_c_werror_flag"
26946 || test ! -s conftest.err'
26947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26948 (eval $ac_try) 2>&5
26949 ac_status=$?
26950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26951 (exit $ac_status); }; } &&
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026952 { ac_try='test -s conftest$ac_exeext'
John Criswell0021c312004-02-13 21:57:29 +000026953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26954 (eval $ac_try) 2>&5
26955 ac_status=$?
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026958 ac_cv_working_alloca_h=yes
26959else
26960 echo "$as_me: failed program was:" >&5
26961sed 's/^/| /' conftest.$ac_ext >&5
26962
26963ac_cv_working_alloca_h=no
John Criswell0021c312004-02-13 21:57:29 +000026964fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000026965rm -f conftest.err conftest.$ac_objext \
26966 conftest$ac_exeext conftest.$ac_ext
26967fi
26968echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
26969echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
26970if test $ac_cv_working_alloca_h = yes; then
26971
26972cat >>confdefs.h <<\_ACEOF
26973#define HAVE_ALLOCA_H 1
26974_ACEOF
26975
26976fi
26977
26978echo "$as_me:$LINENO: checking for alloca" >&5
26979echo $ECHO_N "checking for alloca... $ECHO_C" >&6
26980if test "${ac_cv_func_alloca_works+set}" = set; then
26981 echo $ECHO_N "(cached) $ECHO_C" >&6
26982else
26983 cat >conftest.$ac_ext <<_ACEOF
26984/* confdefs.h. */
26985_ACEOF
26986cat confdefs.h >>conftest.$ac_ext
26987cat >>conftest.$ac_ext <<_ACEOF
26988/* end confdefs.h. */
26989#ifdef __GNUC__
26990# define alloca __builtin_alloca
26991#else
26992# ifdef _MSC_VER
26993# include <malloc.h>
26994# define alloca _alloca
26995# else
26996# if HAVE_ALLOCA_H
26997# include <alloca.h>
26998# else
26999# ifdef _AIX
27000 #pragma alloca
27001# else
27002# ifndef alloca /* predefined by HP cc +Olibcalls */
27003char *alloca ();
27004# endif
27005# endif
27006# endif
27007# endif
27008#endif
27009
27010int
27011main ()
27012{
27013char *p = (char *) alloca (1);
27014 ;
27015 return 0;
27016}
27017_ACEOF
27018rm -f conftest.$ac_objext conftest$ac_exeext
27019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27020 (eval $ac_link) 2>conftest.er1
27021 ac_status=$?
27022 grep -v '^ *+' conftest.er1 >conftest.err
27023 rm -f conftest.er1
27024 cat conftest.err >&5
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); } &&
27027 { ac_try='test -z "$ac_c_werror_flag"
27028 || test ! -s conftest.err'
27029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27030 (eval $ac_try) 2>&5
27031 ac_status=$?
27032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27033 (exit $ac_status); }; } &&
27034 { ac_try='test -s conftest$ac_exeext'
27035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27036 (eval $ac_try) 2>&5
27037 ac_status=$?
27038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27039 (exit $ac_status); }; }; then
27040 ac_cv_func_alloca_works=yes
27041else
27042 echo "$as_me: failed program was:" >&5
27043sed 's/^/| /' conftest.$ac_ext >&5
27044
27045ac_cv_func_alloca_works=no
27046fi
27047rm -f conftest.err conftest.$ac_objext \
27048 conftest$ac_exeext conftest.$ac_ext
27049fi
27050echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
27051echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
27052
27053if test $ac_cv_func_alloca_works = yes; then
27054
27055cat >>confdefs.h <<\_ACEOF
27056#define HAVE_ALLOCA 1
27057_ACEOF
27058
27059else
27060 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27061# that cause trouble. Some versions do not even contain alloca or
27062# contain a buggy version. If you still want to use their alloca,
27063# use ar to extract alloca.o from them instead of compiling alloca.c.
27064
27065ALLOCA=alloca.$ac_objext
27066
27067cat >>confdefs.h <<\_ACEOF
27068#define C_ALLOCA 1
27069_ACEOF
27070
27071
27072echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
27073echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
27074if test "${ac_cv_os_cray+set}" = set; then
27075 echo $ECHO_N "(cached) $ECHO_C" >&6
27076else
27077 cat >conftest.$ac_ext <<_ACEOF
27078/* confdefs.h. */
27079_ACEOF
27080cat confdefs.h >>conftest.$ac_ext
27081cat >>conftest.$ac_ext <<_ACEOF
27082/* end confdefs.h. */
27083#if defined(CRAY) && ! defined(CRAY2)
27084webecray
27085#else
27086wenotbecray
27087#endif
27088
27089_ACEOF
27090if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27091 $EGREP "webecray" >/dev/null 2>&1; then
27092 ac_cv_os_cray=yes
27093else
27094 ac_cv_os_cray=no
27095fi
27096rm -f conftest*
27097
27098fi
27099echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
27100echo "${ECHO_T}$ac_cv_os_cray" >&6
27101if test $ac_cv_os_cray = yes; then
27102 for ac_func in _getb67 GETB67 getb67; do
27103 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27104echo "$as_me:$LINENO: checking for $ac_func" >&5
27105echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27106if eval "test \"\${$as_ac_var+set}\" = set"; then
27107 echo $ECHO_N "(cached) $ECHO_C" >&6
27108else
27109 cat >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/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27117#define $ac_func innocuous_$ac_func
27118
27119/* System header to define __stub macros and hopefully few prototypes,
27120 which can conflict with char $ac_func (); below.
27121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27122 <limits.h> exists even on freestanding compilers. */
27123
27124#ifdef __STDC__
27125# include <limits.h>
27126#else
27127# include <assert.h>
27128#endif
27129
27130#undef $ac_func
27131
27132/* Override any gcc2 internal prototype to avoid an error. */
27133#ifdef __cplusplus
27134extern "C"
27135{
27136#endif
27137/* We use char because int might match the return type of a gcc2
27138 builtin and then its argument prototype would still apply. */
27139char $ac_func ();
27140/* The GNU C library defines this for functions which it implements
27141 to always fail with ENOSYS. Some functions are actually named
27142 something starting with __ and the normal name is an alias. */
27143#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27144choke me
27145#else
27146char (*f) () = $ac_func;
27147#endif
27148#ifdef __cplusplus
27149}
27150#endif
27151
27152int
27153main ()
27154{
27155return f != $ac_func;
27156 ;
27157 return 0;
27158}
27159_ACEOF
27160rm -f conftest.$ac_objext conftest$ac_exeext
27161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27162 (eval $ac_link) 2>conftest.er1
27163 ac_status=$?
27164 grep -v '^ *+' conftest.er1 >conftest.err
27165 rm -f conftest.er1
27166 cat conftest.err >&5
27167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27168 (exit $ac_status); } &&
27169 { ac_try='test -z "$ac_c_werror_flag"
27170 || test ! -s conftest.err'
27171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27172 (eval $ac_try) 2>&5
27173 ac_status=$?
27174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27175 (exit $ac_status); }; } &&
27176 { ac_try='test -s conftest$ac_exeext'
27177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27178 (eval $ac_try) 2>&5
27179 ac_status=$?
27180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27181 (exit $ac_status); }; }; then
27182 eval "$as_ac_var=yes"
27183else
27184 echo "$as_me: failed program was:" >&5
27185sed 's/^/| /' conftest.$ac_ext >&5
27186
27187eval "$as_ac_var=no"
27188fi
27189rm -f conftest.err conftest.$ac_objext \
27190 conftest$ac_exeext conftest.$ac_ext
27191fi
27192echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27193echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27194if test `eval echo '${'$as_ac_var'}'` = yes; then
27195
27196cat >>confdefs.h <<_ACEOF
27197#define CRAY_STACKSEG_END $ac_func
27198_ACEOF
27199
27200 break
27201fi
27202
27203 done
27204fi
27205
27206echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
27207echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
27208if test "${ac_cv_c_stack_direction+set}" = set; then
27209 echo $ECHO_N "(cached) $ECHO_C" >&6
27210else
27211 if test "$cross_compiling" = yes; then
27212 ac_cv_c_stack_direction=0
27213else
27214 cat >conftest.$ac_ext <<_ACEOF
27215/* confdefs.h. */
27216_ACEOF
27217cat confdefs.h >>conftest.$ac_ext
27218cat >>conftest.$ac_ext <<_ACEOF
27219/* end confdefs.h. */
27220int
27221find_stack_direction ()
27222{
27223 static char *addr = 0;
27224 auto char dummy;
27225 if (addr == 0)
27226 {
27227 addr = &dummy;
27228 return find_stack_direction ();
27229 }
John Criswell0021c312004-02-13 21:57:29 +000027230 else
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027231 return (&dummy > addr) ? 1 : -1;
27232}
John Criswell0021c312004-02-13 21:57:29 +000027233
John Criswell0021c312004-02-13 21:57:29 +000027234int
27235main ()
27236{
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027237 exit (find_stack_direction () < 0);
John Criswell0021c312004-02-13 21:57:29 +000027238}
27239_ACEOF
27240rm -f conftest$ac_exeext
27241if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27242 (eval $ac_link) 2>&5
27243 ac_status=$?
27244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27247 (eval $ac_try) 2>&5
27248 ac_status=$?
27249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27250 (exit $ac_status); }; }; then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027251 ac_cv_c_stack_direction=1
John Criswell0021c312004-02-13 21:57:29 +000027252else
27253 echo "$as_me: program exited with status $ac_status" >&5
27254echo "$as_me: failed program was:" >&5
27255sed 's/^/| /' conftest.$ac_ext >&5
27256
27257( exit $ac_status )
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027258ac_cv_c_stack_direction=-1
John Criswell0021c312004-02-13 21:57:29 +000027259fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027260rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000027261fi
27262fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027263echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
27264echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
27265
27266cat >>confdefs.h <<_ACEOF
27267#define STACK_DIRECTION $ac_cv_c_stack_direction
27268_ACEOF
27269
27270
John Criswell0021c312004-02-13 21:57:29 +000027271fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000027272
27273
27274echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
27275echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
27276if test "${ac_cv_func_rand48+set}" = set; then
27277 echo $ECHO_N "(cached) $ECHO_C" >&6
27278else
27279 ac_ext=cc
27280ac_cpp='$CXXCPP $CPPFLAGS'
27281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27284
27285 cat >conftest.$ac_ext <<_ACEOF
27286/* confdefs.h. */
27287_ACEOF
27288cat confdefs.h >>conftest.$ac_ext
27289cat >>conftest.$ac_ext <<_ACEOF
27290/* end confdefs.h. */
27291#include <stdlib.h>
27292int
27293main ()
27294{
27295srand48(0);lrand48();drand48();
27296 ;
27297 return 0;
27298}
27299_ACEOF
27300rm -f conftest.$ac_objext
27301if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27302 (eval $ac_compile) 2>conftest.er1
27303 ac_status=$?
27304 grep -v '^ *+' conftest.er1 >conftest.err
27305 rm -f conftest.er1
27306 cat conftest.err >&5
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); } &&
27309 { ac_try='test -z "$ac_cxx_werror_flag"
27310 || test ! -s conftest.err'
27311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27312 (eval $ac_try) 2>&5
27313 ac_status=$?
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); }; } &&
27316 { ac_try='test -s conftest.$ac_objext'
27317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27318 (eval $ac_try) 2>&5
27319 ac_status=$?
27320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27321 (exit $ac_status); }; }; then
27322 ac_cv_func_rand48=yes
27323else
27324 echo "$as_me: failed program was:" >&5
27325sed 's/^/| /' conftest.$ac_ext >&5
27326
27327ac_cv_func_rand48=no
27328fi
27329rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27330 ac_ext=c
27331ac_cpp='$CPP $CPPFLAGS'
27332ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27333ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27334ac_compiler_gnu=$ac_cv_c_compiler_gnu
27335
27336fi
27337echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
27338echo "${ECHO_T}$ac_cv_func_rand48" >&6
27339
27340if test "$ac_cv_func_rand48" = "yes" ; then
27341
27342cat >>confdefs.h <<\_ACEOF
27343#define HAVE_RAND48 1
27344_ACEOF
27345
27346fi
John Criswell0021c312004-02-13 21:57:29 +000027347
27348
John Criswell7a73b802003-06-30 21:59:07 +000027349echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
27350echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
27351if test "${ac_cv_cxx_namespaces+set}" = set; then
27352 echo $ECHO_N "(cached) $ECHO_C" >&6
27353else
Reid Spencer2706f8c2004-09-19 23:53:36 +000027354 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000027355ac_cpp='$CXXCPP $CPPFLAGS'
27356ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27357ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27358ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27359
27360 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027361/* confdefs.h. */
27362_ACEOF
27363cat confdefs.h >>conftest.$ac_ext
27364cat >>conftest.$ac_ext <<_ACEOF
27365/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027366namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000027367int
27368main ()
27369{
27370using namespace Outer::Inner; return i;
27371 ;
27372 return 0;
27373}
27374_ACEOF
27375rm -f conftest.$ac_objext
27376if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027377 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027378 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027379 grep -v '^ *+' conftest.er1 >conftest.err
27380 rm -f conftest.er1
27381 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027384 { ac_try='test -z "$ac_cxx_werror_flag"
27385 || test ! -s conftest.err'
27386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27387 (eval $ac_try) 2>&5
27388 ac_status=$?
27389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27390 (exit $ac_status); }; } &&
27391 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27393 (eval $ac_try) 2>&5
27394 ac_status=$?
27395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396 (exit $ac_status); }; }; then
27397 ac_cv_cxx_namespaces=yes
27398else
27399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027400sed 's/^/| /' conftest.$ac_ext >&5
27401
John Criswell7a73b802003-06-30 21:59:07 +000027402ac_cv_cxx_namespaces=no
27403fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027405 ac_ext=c
27406ac_cpp='$CPP $CPPFLAGS'
27407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27409ac_compiler_gnu=$ac_cv_c_compiler_gnu
27410
27411
27412fi
27413echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
27414echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
27415if test "$ac_cv_cxx_namespaces" = yes; then
27416
27417cat >>confdefs.h <<\_ACEOF
27418#define HAVE_NAMESPACES
27419_ACEOF
27420
27421fi
27422
Brian Gaeke90583492003-11-10 03:06:28 +000027423echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
27424echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
27425if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027426 echo $ECHO_N "(cached) $ECHO_C" >&6
27427else
27428
John Criswell7a73b802003-06-30 21:59:07 +000027429 ac_ext=cc
27430ac_cpp='$CXXCPP $CPPFLAGS'
27431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27434
27435 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027436/* confdefs.h. */
27437_ACEOF
27438cat confdefs.h >>conftest.$ac_ext
27439cat >>conftest.$ac_ext <<_ACEOF
27440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027441#include <ext/hash_map>
27442#ifdef HAVE_NAMESPACES
27443using namespace std;
27444#endif
John Criswell7a73b802003-06-30 21:59:07 +000027445int
27446main ()
27447{
Brian Gaeke90583492003-11-10 03:06:28 +000027448hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027449 ;
27450 return 0;
27451}
27452_ACEOF
27453rm -f conftest.$ac_objext
27454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027455 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027456 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027457 grep -v '^ *+' conftest.er1 >conftest.err
27458 rm -f conftest.er1
27459 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27461 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027462 { ac_try='test -z "$ac_cxx_werror_flag"
27463 || test ! -s conftest.err'
27464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27465 (eval $ac_try) 2>&5
27466 ac_status=$?
27467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27468 (exit $ac_status); }; } &&
27469 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27471 (eval $ac_try) 2>&5
27472 ac_status=$?
27473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27474 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027475 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000027476else
27477 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027478sed 's/^/| /' conftest.$ac_ext >&5
27479
Brian Gaeke90583492003-11-10 03:06:28 +000027480ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027481fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027483 ac_ext=c
27484ac_cpp='$CPP $CPPFLAGS'
27485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27487ac_compiler_gnu=$ac_cv_c_compiler_gnu
27488
John Criswell7a73b802003-06-30 21:59:07 +000027489fi
Brian Gaeke90583492003-11-10 03:06:28 +000027490echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
27491echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027492 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
27493 then
John Criswell9f011862004-09-24 18:28:00 +000027494
27495cat >>confdefs.h <<\_ACEOF
27496#define HAVE_STD_EXT_HASH_MAP 1
27497_ACEOF
27498
27499 else
27500
27501cat >>confdefs.h <<\_ACEOF
27502#define HAVE_STD_EXT_HASH_MAP 0
27503_ACEOF
27504
Brian Gaeke90583492003-11-10 03:06:28 +000027505 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027506
Brian Gaeke90583492003-11-10 03:06:28 +000027507 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
27508echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
27509if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
27510 echo $ECHO_N "(cached) $ECHO_C" >&6
27511else
27512
Brian Gaeke90583492003-11-10 03:06:28 +000027513 ac_ext=cc
27514ac_cpp='$CXXCPP $CPPFLAGS'
27515ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27516ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27517ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27518
27519 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027520/* confdefs.h. */
27521_ACEOF
27522cat confdefs.h >>conftest.$ac_ext
27523cat >>conftest.$ac_ext <<_ACEOF
27524/* end confdefs.h. */
27525#include <ext/hash_map>
27526#ifdef HAVE_NAMESPACES
27527using namespace __gnu_cxx;
27528#endif
27529int
27530main ()
27531{
27532hash_map<int,int> t;
27533 ;
27534 return 0;
27535}
27536_ACEOF
27537rm -f conftest.$ac_objext
27538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027539 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027541 grep -v '^ *+' conftest.er1 >conftest.err
27542 rm -f conftest.er1
27543 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027546 { ac_try='test -z "$ac_cxx_werror_flag"
27547 || test ! -s conftest.err'
27548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27549 (eval $ac_try) 2>&5
27550 ac_status=$?
27551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27552 (exit $ac_status); }; } &&
27553 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27555 (eval $ac_try) 2>&5
27556 ac_status=$?
27557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27558 (exit $ac_status); }; }; then
27559 ac_cv_cxx_have_gnu_ext_hash_map=yes
27560else
27561 echo "$as_me: failed program was:" >&5
27562sed 's/^/| /' conftest.$ac_ext >&5
27563
27564ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000027565fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027567 ac_ext=c
27568ac_cpp='$CPP $CPPFLAGS'
27569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27571ac_compiler_gnu=$ac_cv_c_compiler_gnu
27572
27573fi
27574echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
27575echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027576 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
27577 then
John Criswell9f011862004-09-24 18:28:00 +000027578
27579cat >>confdefs.h <<\_ACEOF
27580#define HAVE_GNU_EXT_HASH_MAP 1
27581_ACEOF
27582
27583 else
27584
27585cat >>confdefs.h <<\_ACEOF
27586#define HAVE_GNU_EXT_HASH_MAP 0
27587_ACEOF
27588
Brian Gaeke90583492003-11-10 03:06:28 +000027589 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027590
Brian Gaeke90583492003-11-10 03:06:28 +000027591 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
27592echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
27593if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
27594 echo $ECHO_N "(cached) $ECHO_C" >&6
27595else
John Criswell7a73b802003-06-30 21:59:07 +000027596
Brian Gaeke90583492003-11-10 03:06:28 +000027597 ac_ext=cc
27598ac_cpp='$CXXCPP $CPPFLAGS'
27599ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27600ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27601ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27602
27603 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027604/* confdefs.h. */
27605_ACEOF
27606cat confdefs.h >>conftest.$ac_ext
27607cat >>conftest.$ac_ext <<_ACEOF
27608/* end confdefs.h. */
27609#include <hash_map>
27610int
27611main ()
27612{
27613hash_map<int,int> t;
27614 ;
27615 return 0;
27616}
27617_ACEOF
27618rm -f conftest.$ac_objext
27619if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027620 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027621 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027622 grep -v '^ *+' conftest.er1 >conftest.err
27623 rm -f conftest.er1
27624 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27626 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027627 { ac_try='test -z "$ac_cxx_werror_flag"
27628 || test ! -s conftest.err'
27629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27630 (eval $ac_try) 2>&5
27631 ac_status=$?
27632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27633 (exit $ac_status); }; } &&
27634 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27636 (eval $ac_try) 2>&5
27637 ac_status=$?
27638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639 (exit $ac_status); }; }; then
27640 ac_cv_cxx_have_global_hash_map=yes
27641else
27642 echo "$as_me: failed program was:" >&5
27643sed 's/^/| /' conftest.$ac_ext >&5
27644
27645ac_cv_cxx_have_global_hash_map=no
27646fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027648 ac_ext=c
27649ac_cpp='$CPP $CPPFLAGS'
27650ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27651ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27652ac_compiler_gnu=$ac_cv_c_compiler_gnu
27653
27654fi
27655echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
27656echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027657 if test "$ac_cv_cxx_have_global_hash_map" = yes
27658 then
John Criswell9f011862004-09-24 18:28:00 +000027659
27660cat >>confdefs.h <<\_ACEOF
27661#define HAVE_GLOBAL_HASH_MAP 1
27662_ACEOF
27663
27664 else
27665
27666cat >>confdefs.h <<\_ACEOF
27667#define HAVE_GLOBAL_HASH_MAP 0
27668_ACEOF
27669
Brian Gaeke90583492003-11-10 03:06:28 +000027670 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027671
Brian Gaeke90583492003-11-10 03:06:28 +000027672echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
27673echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
27674if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000027675 echo $ECHO_N "(cached) $ECHO_C" >&6
27676else
27677
John Criswell7a73b802003-06-30 21:59:07 +000027678 ac_ext=cc
27679ac_cpp='$CXXCPP $CPPFLAGS'
27680ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27681ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27682ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27683
27684 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027685/* confdefs.h. */
27686_ACEOF
27687cat confdefs.h >>conftest.$ac_ext
27688cat >>conftest.$ac_ext <<_ACEOF
27689/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027690#include <ext/hash_set>
27691#ifdef HAVE_NAMESPACES
27692using namespace std;
27693#endif
John Criswell7a73b802003-06-30 21:59:07 +000027694int
27695main ()
27696{
Brian Gaeke90583492003-11-10 03:06:28 +000027697hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000027698 ;
27699 return 0;
27700}
27701_ACEOF
27702rm -f conftest.$ac_objext
27703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027704 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027705 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027706 grep -v '^ *+' conftest.er1 >conftest.err
27707 rm -f conftest.er1
27708 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027711 { ac_try='test -z "$ac_cxx_werror_flag"
27712 || test ! -s conftest.err'
27713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27714 (eval $ac_try) 2>&5
27715 ac_status=$?
27716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); }; } &&
27718 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27720 (eval $ac_try) 2>&5
27721 ac_status=$?
27722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027724 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027725else
27726 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027727sed 's/^/| /' conftest.$ac_ext >&5
27728
Brian Gaeke90583492003-11-10 03:06:28 +000027729ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000027730fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027731rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027732 ac_ext=c
27733ac_cpp='$CPP $CPPFLAGS'
27734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27736ac_compiler_gnu=$ac_cv_c_compiler_gnu
27737
27738fi
27739echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
27740echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027741 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
27742 then
John Criswell9f011862004-09-24 18:28:00 +000027743
27744cat >>confdefs.h <<\_ACEOF
27745#define HAVE_STD_EXT_HASH_SET 1
27746_ACEOF
27747
27748 else
27749
27750cat >>confdefs.h <<\_ACEOF
27751#define HAVE_STD_EXT_HASH_SET 0
27752_ACEOF
27753
Brian Gaeke90583492003-11-10 03:06:28 +000027754 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027755
Brian Gaeke90583492003-11-10 03:06:28 +000027756 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
27757echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
27758if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
27759 echo $ECHO_N "(cached) $ECHO_C" >&6
27760else
27761
Brian Gaeke90583492003-11-10 03:06:28 +000027762 ac_ext=cc
27763ac_cpp='$CXXCPP $CPPFLAGS'
27764ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27765ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27766ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27767
John Criswell7a73b802003-06-30 21:59:07 +000027768 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027769/* confdefs.h. */
27770_ACEOF
27771cat confdefs.h >>conftest.$ac_ext
27772cat >>conftest.$ac_ext <<_ACEOF
27773/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027774#include <ext/hash_set>
27775#ifdef HAVE_NAMESPACES
27776using namespace __gnu_cxx;
27777#endif
John Criswell7a73b802003-06-30 21:59:07 +000027778int
27779main ()
27780{
Brian Gaeke90583492003-11-10 03:06:28 +000027781hash_set<int> t;
27782 ;
27783 return 0;
27784}
27785_ACEOF
27786rm -f conftest.$ac_objext
27787if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027788 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000027789 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027790 grep -v '^ *+' conftest.er1 >conftest.err
27791 rm -f conftest.er1
27792 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000027793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27794 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027795 { ac_try='test -z "$ac_cxx_werror_flag"
27796 || test ! -s conftest.err'
27797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27798 (eval $ac_try) 2>&5
27799 ac_status=$?
27800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801 (exit $ac_status); }; } &&
27802 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000027803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27804 (eval $ac_try) 2>&5
27805 ac_status=$?
27806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807 (exit $ac_status); }; }; then
27808 ac_cv_cxx_have_gnu_ext_hash_set=yes
27809else
27810 echo "$as_me: failed program was:" >&5
27811sed 's/^/| /' conftest.$ac_ext >&5
27812
27813ac_cv_cxx_have_gnu_ext_hash_set=no
27814fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027815rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000027816 ac_ext=c
27817ac_cpp='$CPP $CPPFLAGS'
27818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27820ac_compiler_gnu=$ac_cv_c_compiler_gnu
27821
27822fi
27823echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
27824echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027825 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
27826 then
John Criswell9f011862004-09-24 18:28:00 +000027827
27828cat >>confdefs.h <<\_ACEOF
27829#define HAVE_GNU_EXT_HASH_SET 1
27830_ACEOF
27831
27832 else
27833
27834cat >>confdefs.h <<\_ACEOF
27835#define HAVE_GNU_EXT_HASH_SET 0
27836_ACEOF
27837
Brian Gaeke90583492003-11-10 03:06:28 +000027838 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027839
Brian Gaeke90583492003-11-10 03:06:28 +000027840 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
27841echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
27842if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
27843 echo $ECHO_N "(cached) $ECHO_C" >&6
27844else
27845
Brian Gaeke90583492003-11-10 03:06:28 +000027846 ac_ext=cc
27847ac_cpp='$CXXCPP $CPPFLAGS'
27848ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27849ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27850ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27851
27852 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000027853/* confdefs.h. */
27854_ACEOF
27855cat confdefs.h >>conftest.$ac_ext
27856cat >>conftest.$ac_ext <<_ACEOF
27857/* end confdefs.h. */
27858#include <hash_set>
27859int
27860main ()
27861{
John Criswell7a73b802003-06-30 21:59:07 +000027862hash_set<int> t; return 0;
27863 ;
27864 return 0;
27865}
27866_ACEOF
27867rm -f conftest.$ac_objext
27868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027869 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027870 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027871 grep -v '^ *+' conftest.er1 >conftest.err
27872 rm -f conftest.er1
27873 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27875 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027876 { ac_try='test -z "$ac_cxx_werror_flag"
27877 || test ! -s conftest.err'
27878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27879 (eval $ac_try) 2>&5
27880 ac_status=$?
27881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27882 (exit $ac_status); }; } &&
27883 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27885 (eval $ac_try) 2>&5
27886 ac_status=$?
27887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27888 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000027889 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000027890else
27891 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027892sed 's/^/| /' conftest.$ac_ext >&5
27893
Brian Gaeke90583492003-11-10 03:06:28 +000027894ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000027895fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027896rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027897 ac_ext=c
27898ac_cpp='$CPP $CPPFLAGS'
27899ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27900ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27901ac_compiler_gnu=$ac_cv_c_compiler_gnu
27902
John Criswell7a73b802003-06-30 21:59:07 +000027903fi
Brian Gaeke90583492003-11-10 03:06:28 +000027904echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
27905echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000027906 if test "$ac_cv_cxx_have_global_hash_set" = yes
27907 then
John Criswell9f011862004-09-24 18:28:00 +000027908
27909cat >>confdefs.h <<\_ACEOF
27910#define HAVE_GLOBAL_HASH_SET 1
27911_ACEOF
27912
27913 else
27914
27915cat >>confdefs.h <<\_ACEOF
27916#define HAVE_GLOBAL_HASH_SET 0
27917_ACEOF
27918
Brian Gaeke90583492003-11-10 03:06:28 +000027919 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000027920
John Criswell7a73b802003-06-30 21:59:07 +000027921echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
27922echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
27923if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
27924 echo $ECHO_N "(cached) $ECHO_C" >&6
27925else
27926
John Criswell7a73b802003-06-30 21:59:07 +000027927 ac_ext=cc
27928ac_cpp='$CXXCPP $CPPFLAGS'
27929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27932
27933 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000027934/* confdefs.h. */
27935_ACEOF
27936cat confdefs.h >>conftest.$ac_ext
27937cat >>conftest.$ac_ext <<_ACEOF
27938/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000027939#include <iterator>
27940#ifdef HAVE_NAMESPACES
27941using namespace std;
27942#endif
John Criswell7a73b802003-06-30 21:59:07 +000027943int
27944main ()
27945{
27946iterator<int,int,int> t; return 0;
27947 ;
27948 return 0;
27949}
27950_ACEOF
27951rm -f conftest.$ac_objext
27952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000027953 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000027954 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000027955 grep -v '^ *+' conftest.er1 >conftest.err
27956 rm -f conftest.er1
27957 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000027958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27959 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000027960 { ac_try='test -z "$ac_cxx_werror_flag"
27961 || test ! -s conftest.err'
27962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27963 (eval $ac_try) 2>&5
27964 ac_status=$?
27965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27966 (exit $ac_status); }; } &&
27967 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000027968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27969 (eval $ac_try) 2>&5
27970 ac_status=$?
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); }; }; then
27973 ac_cv_cxx_have_std_iterator=yes
27974else
27975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000027976sed 's/^/| /' conftest.$ac_ext >&5
27977
John Criswell7a73b802003-06-30 21:59:07 +000027978ac_cv_cxx_have_std_iterator=no
27979fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000027980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000027981 ac_ext=c
27982ac_cpp='$CPP $CPPFLAGS'
27983ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27984ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27985ac_compiler_gnu=$ac_cv_c_compiler_gnu
27986
27987
27988fi
27989echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
27990echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000027991if test "$ac_cv_cxx_have_std_iterator" = yes
27992then
John Criswell40468462004-09-24 21:19:06 +000027993
27994cat >>confdefs.h <<\_ACEOF
27995#define HAVE_STD_ITERATOR 1
27996_ACEOF
27997
27998else
27999
28000cat >>confdefs.h <<\_ACEOF
28001#define HAVE_STD_ITERATOR 0
28002_ACEOF
28003
John Criswell7a73b802003-06-30 21:59:07 +000028004fi
28005
28006echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
28007echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
28008if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
28009 echo $ECHO_N "(cached) $ECHO_C" >&6
28010else
28011
John Criswell7a73b802003-06-30 21:59:07 +000028012 ac_ext=cc
28013ac_cpp='$CXXCPP $CPPFLAGS'
28014ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28015ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28016ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28017
28018 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028019/* confdefs.h. */
28020_ACEOF
28021cat confdefs.h >>conftest.$ac_ext
28022cat >>conftest.$ac_ext <<_ACEOF
28023/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028024#include <iterator>
28025#ifdef HAVE_NAMESPACES
28026using namespace std;
28027#endif
John Criswell7a73b802003-06-30 21:59:07 +000028028int
28029main ()
28030{
John Criswellc78022e2003-07-29 19:11:58 +000028031bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028032 ;
28033 return 0;
28034}
28035_ACEOF
28036rm -f conftest.$ac_objext
28037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028038 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028039 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028040 grep -v '^ *+' conftest.er1 >conftest.err
28041 rm -f conftest.er1
28042 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28044 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028045 { ac_try='test -z "$ac_cxx_werror_flag"
28046 || test ! -s conftest.err'
28047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048 (eval $ac_try) 2>&5
28049 ac_status=$?
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; } &&
28052 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28054 (eval $ac_try) 2>&5
28055 ac_status=$?
28056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28057 (exit $ac_status); }; }; then
28058 ac_cv_cxx_have_bi_iterator=yes
28059else
28060 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028061sed 's/^/| /' conftest.$ac_ext >&5
28062
John Criswell7a73b802003-06-30 21:59:07 +000028063ac_cv_cxx_have_bi_iterator=no
28064fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028066 ac_ext=c
28067ac_cpp='$CPP $CPPFLAGS'
28068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28070ac_compiler_gnu=$ac_cv_c_compiler_gnu
28071
28072
28073fi
28074echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
28075echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028076if test "$ac_cv_cxx_have_bi_iterator" = yes
28077then
John Criswell40468462004-09-24 21:19:06 +000028078
28079cat >>confdefs.h <<\_ACEOF
28080#define HAVE_BI_ITERATOR 1
28081_ACEOF
28082
28083else
28084
28085cat >>confdefs.h <<\_ACEOF
28086#define HAVE_BI_ITERATOR 0
28087_ACEOF
28088
John Criswell7a73b802003-06-30 21:59:07 +000028089fi
28090
28091echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
28092echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
28093if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
28094 echo $ECHO_N "(cached) $ECHO_C" >&6
28095else
28096
John Criswell7a73b802003-06-30 21:59:07 +000028097 ac_ext=cc
28098ac_cpp='$CXXCPP $CPPFLAGS'
28099ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28100ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28101ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28102
28103 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028104/* confdefs.h. */
28105_ACEOF
28106cat confdefs.h >>conftest.$ac_ext
28107cat >>conftest.$ac_ext <<_ACEOF
28108/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028109#include <iterator>
28110#ifdef HAVE_NAMESPACES
28111using namespace std;
28112#endif
John Criswell7a73b802003-06-30 21:59:07 +000028113int
28114main ()
28115{
John Criswellc78022e2003-07-29 19:11:58 +000028116forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000028117 ;
28118 return 0;
28119}
28120_ACEOF
28121rm -f conftest.$ac_objext
28122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028123 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028124 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028125 grep -v '^ *+' conftest.er1 >conftest.err
28126 rm -f conftest.er1
28127 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028130 { ac_try='test -z "$ac_cxx_werror_flag"
28131 || test ! -s conftest.err'
28132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28133 (eval $ac_try) 2>&5
28134 ac_status=$?
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); }; } &&
28137 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28139 (eval $ac_try) 2>&5
28140 ac_status=$?
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); }; }; then
28143 ac_cv_cxx_have_fwd_iterator=yes
28144else
28145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028146sed 's/^/| /' conftest.$ac_ext >&5
28147
John Criswell7a73b802003-06-30 21:59:07 +000028148ac_cv_cxx_have_fwd_iterator=no
28149fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028151 ac_ext=c
28152ac_cpp='$CPP $CPPFLAGS'
28153ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28154ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28155ac_compiler_gnu=$ac_cv_c_compiler_gnu
28156
28157
28158fi
28159echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
28160echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000028161if test "$ac_cv_cxx_have_fwd_iterator" = yes
28162then
John Criswell40468462004-09-24 21:19:06 +000028163
28164cat >>confdefs.h <<\_ACEOF
28165#define HAVE_FWD_ITERATOR 1
28166_ACEOF
28167
28168else
28169
28170cat >>confdefs.h <<\_ACEOF
28171#define HAVE_FWD_ITERATOR 0
28172_ACEOF
28173
John Criswell7a73b802003-06-30 21:59:07 +000028174fi
28175
28176
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028177echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
28178echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
28179if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
28180 echo $ECHO_N "(cached) $ECHO_C" >&6
28181else
28182 ac_ext=cc
28183ac_cpp='$CXXCPP $CPPFLAGS'
28184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28187
Reid Spencerabec8f92004-10-27 23:03:44 +000028188 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028189/* confdefs.h. */
28190_ACEOF
28191cat confdefs.h >>conftest.$ac_ext
28192cat >>conftest.$ac_ext <<_ACEOF
28193/* end confdefs.h. */
28194#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028195int
28196main ()
28197{
28198float f; isnan(f);
28199 ;
28200 return 0;
28201}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028202_ACEOF
28203rm -f conftest.$ac_objext
28204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028205 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028206 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028207 grep -v '^ *+' conftest.er1 >conftest.err
28208 rm -f conftest.er1
28209 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28211 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028212 { ac_try='test -z "$ac_cxx_werror_flag"
28213 || test ! -s conftest.err'
28214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28215 (eval $ac_try) 2>&5
28216 ac_status=$?
28217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218 (exit $ac_status); }; } &&
28219 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28221 (eval $ac_try) 2>&5
28222 ac_status=$?
28223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224 (exit $ac_status); }; }; then
28225 ac_cv_func_isnan_in_math_h=yes
28226else
28227 echo "$as_me: failed program was:" >&5
28228sed 's/^/| /' conftest.$ac_ext >&5
28229
28230ac_cv_func_isnan_in_math_h=no
28231fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028233 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028234ac_cpp='$CPP $CPPFLAGS'
28235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28237ac_compiler_gnu=$ac_cv_c_compiler_gnu
28238
28239fi
28240echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
28241echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028242
28243
28244if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028245
28246cat >>confdefs.h <<\_ACEOF
28247#define HAVE_ISNAN_IN_MATH_H 1
28248_ACEOF
28249
Reid Spencerabec8f92004-10-27 23:03:44 +000028250fi
28251
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028252echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
28253echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
28254if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
28255 echo $ECHO_N "(cached) $ECHO_C" >&6
28256else
28257 ac_ext=cc
28258ac_cpp='$CXXCPP $CPPFLAGS'
28259ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28260ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28261ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28262
Reid Spencerabec8f92004-10-27 23:03:44 +000028263 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028264/* confdefs.h. */
28265_ACEOF
28266cat confdefs.h >>conftest.$ac_ext
28267cat >>conftest.$ac_ext <<_ACEOF
28268/* end confdefs.h. */
28269#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028270int
28271main ()
28272{
28273float f; isnan(f);
28274 ;
28275 return 0;
28276}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028277_ACEOF
28278rm -f conftest.$ac_objext
28279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028280 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028281 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028282 grep -v '^ *+' conftest.er1 >conftest.err
28283 rm -f conftest.er1
28284 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28286 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028287 { ac_try='test -z "$ac_cxx_werror_flag"
28288 || test ! -s conftest.err'
28289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28290 (eval $ac_try) 2>&5
28291 ac_status=$?
28292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28293 (exit $ac_status); }; } &&
28294 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28296 (eval $ac_try) 2>&5
28297 ac_status=$?
28298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 (exit $ac_status); }; }; then
28300 ac_cv_func_isnan_in_cmath=yes
28301else
28302 echo "$as_me: failed program was:" >&5
28303sed 's/^/| /' conftest.$ac_ext >&5
28304
28305ac_cv_func_isnan_in_cmath=no
28306fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028308 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028309ac_cpp='$CPP $CPPFLAGS'
28310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28312ac_compiler_gnu=$ac_cv_c_compiler_gnu
28313
28314fi
28315echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
28316echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028317
28318if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028319
28320cat >>confdefs.h <<\_ACEOF
28321#define HAVE_ISNAN_IN_CMATH 1
28322_ACEOF
28323
Reid Spencerabec8f92004-10-27 23:03:44 +000028324fi
28325
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028326echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
28327echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
28328if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
28329 echo $ECHO_N "(cached) $ECHO_C" >&6
28330else
28331 ac_ext=cc
28332ac_cpp='$CXXCPP $CPPFLAGS'
28333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28336
Reid Spencerabec8f92004-10-27 23:03:44 +000028337 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028338/* confdefs.h. */
28339_ACEOF
28340cat confdefs.h >>conftest.$ac_ext
28341cat >>conftest.$ac_ext <<_ACEOF
28342/* end confdefs.h. */
28343#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028344int
28345main ()
28346{
28347float f; std::isnan(f);
28348 ;
28349 return 0;
28350}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028351_ACEOF
28352rm -f conftest.$ac_objext
28353if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028354 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028355 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028356 grep -v '^ *+' conftest.er1 >conftest.err
28357 rm -f conftest.er1
28358 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28360 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028361 { ac_try='test -z "$ac_cxx_werror_flag"
28362 || test ! -s conftest.err'
28363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28364 (eval $ac_try) 2>&5
28365 ac_status=$?
28366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28367 (exit $ac_status); }; } &&
28368 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28370 (eval $ac_try) 2>&5
28371 ac_status=$?
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); }; }; then
28374 ac_cv_func_std_isnan_in_cmath=yes
28375else
28376 echo "$as_me: failed program was:" >&5
28377sed 's/^/| /' conftest.$ac_ext >&5
28378
28379ac_cv_func_std_isnan_in_cmath=no
28380fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028381rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028382 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028383ac_cpp='$CPP $CPPFLAGS'
28384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28386ac_compiler_gnu=$ac_cv_c_compiler_gnu
28387
28388fi
28389echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
28390echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028391
28392if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028393
28394cat >>confdefs.h <<\_ACEOF
28395#define HAVE_STD_ISNAN_IN_CMATH 1
28396_ACEOF
28397
Reid Spencerabec8f92004-10-27 23:03:44 +000028398fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000028399
28400
Brian Gaeke52a551d2004-07-21 03:14:12 +000028401echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
28402echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
28403if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
28404 echo $ECHO_N "(cached) $ECHO_C" >&6
28405else
28406 ac_ext=cc
28407ac_cpp='$CXXCPP $CPPFLAGS'
28408ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28409ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28410ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28411
Reid Spencerabec8f92004-10-27 23:03:44 +000028412 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028413/* confdefs.h. */
28414_ACEOF
28415cat confdefs.h >>conftest.$ac_ext
28416cat >>conftest.$ac_ext <<_ACEOF
28417/* end confdefs.h. */
28418#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028419int
28420main ()
28421{
28422float f; isinf(f);
28423 ;
28424 return 0;
28425}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028426_ACEOF
28427rm -f conftest.$ac_objext
28428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028429 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028430 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028431 grep -v '^ *+' conftest.er1 >conftest.err
28432 rm -f conftest.er1
28433 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028436 { ac_try='test -z "$ac_cxx_werror_flag"
28437 || test ! -s conftest.err'
28438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28439 (eval $ac_try) 2>&5
28440 ac_status=$?
28441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442 (exit $ac_status); }; } &&
28443 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28445 (eval $ac_try) 2>&5
28446 ac_status=$?
28447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448 (exit $ac_status); }; }; then
28449 ac_cv_func_isinf_in_math_h=yes
28450else
28451 echo "$as_me: failed program was:" >&5
28452sed 's/^/| /' conftest.$ac_ext >&5
28453
28454ac_cv_func_isinf_in_math_h=no
28455fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028456rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028457 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028458ac_cpp='$CPP $CPPFLAGS'
28459ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28460ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28461ac_compiler_gnu=$ac_cv_c_compiler_gnu
28462
28463fi
28464echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
28465echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028466
28467if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028468
28469cat >>confdefs.h <<\_ACEOF
28470#define HAVE_ISINF_IN_MATH_H 1
28471_ACEOF
28472
Reid Spencerabec8f92004-10-27 23:03:44 +000028473fi
28474
Brian Gaeke52a551d2004-07-21 03:14:12 +000028475echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
28476echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
28477if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
28478 echo $ECHO_N "(cached) $ECHO_C" >&6
28479else
28480 ac_ext=cc
28481ac_cpp='$CXXCPP $CPPFLAGS'
28482ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28483ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28484ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28485
Reid Spencerabec8f92004-10-27 23:03:44 +000028486 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028487/* confdefs.h. */
28488_ACEOF
28489cat confdefs.h >>conftest.$ac_ext
28490cat >>conftest.$ac_ext <<_ACEOF
28491/* end confdefs.h. */
28492#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028493int
28494main ()
28495{
28496float f; isinf(f);
28497 ;
28498 return 0;
28499}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028500_ACEOF
28501rm -f conftest.$ac_objext
28502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028503 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028504 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028505 grep -v '^ *+' conftest.er1 >conftest.err
28506 rm -f conftest.er1
28507 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028510 { ac_try='test -z "$ac_cxx_werror_flag"
28511 || test ! -s conftest.err'
28512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28513 (eval $ac_try) 2>&5
28514 ac_status=$?
28515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28516 (exit $ac_status); }; } &&
28517 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28519 (eval $ac_try) 2>&5
28520 ac_status=$?
28521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28522 (exit $ac_status); }; }; then
28523 ac_cv_func_isinf_in_cmath=yes
28524else
28525 echo "$as_me: failed program was:" >&5
28526sed 's/^/| /' conftest.$ac_ext >&5
28527
28528ac_cv_func_isinf_in_cmath=no
28529fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028531 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028532ac_cpp='$CPP $CPPFLAGS'
28533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28535ac_compiler_gnu=$ac_cv_c_compiler_gnu
28536
28537fi
28538echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
28539echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028540
28541if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028542
28543cat >>confdefs.h <<\_ACEOF
28544#define HAVE_ISINF_IN_CMATH 1
28545_ACEOF
28546
Reid Spencerabec8f92004-10-27 23:03:44 +000028547fi
28548
Brian Gaeke52a551d2004-07-21 03:14:12 +000028549echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
28550echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
28551if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
28552 echo $ECHO_N "(cached) $ECHO_C" >&6
28553else
28554 ac_ext=cc
28555ac_cpp='$CXXCPP $CPPFLAGS'
28556ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28557ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28558ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28559
Reid Spencerabec8f92004-10-27 23:03:44 +000028560 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000028561/* confdefs.h. */
28562_ACEOF
28563cat confdefs.h >>conftest.$ac_ext
28564cat >>conftest.$ac_ext <<_ACEOF
28565/* end confdefs.h. */
28566#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000028567int
28568main ()
28569{
28570float f; std::isinf(f)}
28571 ;
28572 return 0;
28573}
Brian Gaeke52a551d2004-07-21 03:14:12 +000028574_ACEOF
28575rm -f conftest.$ac_objext
28576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028577 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000028578 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028579 grep -v '^ *+' conftest.er1 >conftest.err
28580 rm -f conftest.er1
28581 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000028582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28583 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028584 { ac_try='test -z "$ac_cxx_werror_flag"
28585 || test ! -s conftest.err'
28586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587 (eval $ac_try) 2>&5
28588 ac_status=$?
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); }; } &&
28591 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000028592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28593 (eval $ac_try) 2>&5
28594 ac_status=$?
28595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596 (exit $ac_status); }; }; then
28597 ac_cv_func_std_isinf_in_cmath=yes
28598else
28599 echo "$as_me: failed program was:" >&5
28600sed 's/^/| /' conftest.$ac_ext >&5
28601
28602ac_cv_func_std_isinf_in_cmath=no
28603fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028605 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000028606ac_cpp='$CPP $CPPFLAGS'
28607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28609ac_compiler_gnu=$ac_cv_c_compiler_gnu
28610
28611fi
28612echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
28613echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028614
28615if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000028616
28617cat >>confdefs.h <<\_ACEOF
28618#define HAVE_STD_ISINF_IN_CMATH 1
28619_ACEOF
28620
Reid Spencerabec8f92004-10-27 23:03:44 +000028621fi
28622
Brian Gaeked59a6472004-07-21 03:33:58 +000028623echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
28624echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
28625if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
28626 echo $ECHO_N "(cached) $ECHO_C" >&6
28627else
28628 ac_ext=cc
28629ac_cpp='$CXXCPP $CPPFLAGS'
28630ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28631ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28632ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28633
Reid Spencerabec8f92004-10-27 23:03:44 +000028634 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000028635/* confdefs.h. */
28636_ACEOF
28637cat confdefs.h >>conftest.$ac_ext
28638cat >>conftest.$ac_ext <<_ACEOF
28639/* end confdefs.h. */
28640#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000028641int
28642main ()
28643{
28644float f; finite(f);
28645 ;
28646 return 0;
28647}
Brian Gaeked59a6472004-07-21 03:33:58 +000028648_ACEOF
28649rm -f conftest.$ac_objext
28650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028651 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000028652 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028653 grep -v '^ *+' conftest.er1 >conftest.err
28654 rm -f conftest.er1
28655 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000028656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28657 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028658 { ac_try='test -z "$ac_cxx_werror_flag"
28659 || test ! -s conftest.err'
28660 { (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); }; } &&
28665 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000028666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28667 (eval $ac_try) 2>&5
28668 ac_status=$?
28669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28670 (exit $ac_status); }; }; then
28671 ac_cv_func_finite_in_ieeefp_h=yes
28672else
28673 echo "$as_me: failed program was:" >&5
28674sed 's/^/| /' conftest.$ac_ext >&5
28675
28676ac_cv_func_finite_in_ieeefp_h=no
28677fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000028679 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000028680ac_cpp='$CPP $CPPFLAGS'
28681ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28682ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28683ac_compiler_gnu=$ac_cv_c_compiler_gnu
28684
28685fi
28686echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
28687echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000028688
Brian Gaeke6802b552004-10-28 05:06:45 +000028689if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000028690
28691cat >>confdefs.h <<\_ACEOF
Brian Gaeke6802b552004-10-28 05:06:45 +000028692#define HAVE_FINITE_IN_IEEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000028693_ACEOF
28694
Reid Spencerabec8f92004-10-27 23:03:44 +000028695fi
28696
28697
28698
John Criswell7a73b802003-06-30 21:59:07 +000028699
28700
28701for ac_header in stdlib.h unistd.h
28702do
28703as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28704if eval "test \"\${$as_ac_Header+set}\" = set"; then
28705 echo "$as_me:$LINENO: checking for $ac_header" >&5
28706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28707if eval "test \"\${$as_ac_Header+set}\" = set"; then
28708 echo $ECHO_N "(cached) $ECHO_C" >&6
28709fi
28710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28712else
28713 # Is the header compilable?
28714echo "$as_me:$LINENO: checking $ac_header usability" >&5
28715echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28716cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028717/* confdefs.h. */
28718_ACEOF
28719cat confdefs.h >>conftest.$ac_ext
28720cat >>conftest.$ac_ext <<_ACEOF
28721/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028722$ac_includes_default
28723#include <$ac_header>
28724_ACEOF
28725rm -f conftest.$ac_objext
28726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028727 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028728 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028729 grep -v '^ *+' conftest.er1 >conftest.err
28730 rm -f conftest.er1
28731 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28733 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028734 { ac_try='test -z "$ac_c_werror_flag"
28735 || test ! -s conftest.err'
28736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28737 (eval $ac_try) 2>&5
28738 ac_status=$?
28739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28740 (exit $ac_status); }; } &&
28741 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000028742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28743 (eval $ac_try) 2>&5
28744 ac_status=$?
28745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746 (exit $ac_status); }; }; then
28747 ac_header_compiler=yes
28748else
28749 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028750sed 's/^/| /' conftest.$ac_ext >&5
28751
John Criswell7a73b802003-06-30 21:59:07 +000028752ac_header_compiler=no
28753fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028754rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028755echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28756echo "${ECHO_T}$ac_header_compiler" >&6
28757
28758# Is the header present?
28759echo "$as_me:$LINENO: checking $ac_header presence" >&5
28760echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28761cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028762/* confdefs.h. */
28763_ACEOF
28764cat confdefs.h >>conftest.$ac_ext
28765cat >>conftest.$ac_ext <<_ACEOF
28766/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028767#include <$ac_header>
28768_ACEOF
28769if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28770 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28771 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000028772 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000028773 rm -f conftest.er1
28774 cat conftest.err >&5
28775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28776 (exit $ac_status); } >/dev/null; then
28777 if test -s conftest.err; then
28778 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000028779 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000028780 else
28781 ac_cpp_err=
28782 fi
28783else
28784 ac_cpp_err=yes
28785fi
28786if test -z "$ac_cpp_err"; then
28787 ac_header_preproc=yes
28788else
28789 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028790sed 's/^/| /' conftest.$ac_ext >&5
28791
John Criswell7a73b802003-06-30 21:59:07 +000028792 ac_header_preproc=no
28793fi
28794rm -f conftest.err conftest.$ac_ext
28795echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28796echo "${ECHO_T}$ac_header_preproc" >&6
28797
28798# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028799case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28800 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000028801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28802echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28804echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28805 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000028806 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000028807 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000028808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28809echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28811echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28813echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28815echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000028816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28817echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000028818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28819echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000028820 (
28821 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000028822## ----------------------------------- ##
28823## Report this to llvmbugs@cs.uiuc.edu ##
28824## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000028825_ASBOX
28826 ) |
28827 sed "s/^/$as_me: WARNING: /" >&2
28828 ;;
John Criswell7a73b802003-06-30 21:59:07 +000028829esac
28830echo "$as_me:$LINENO: checking for $ac_header" >&5
28831echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28832if eval "test \"\${$as_ac_Header+set}\" = set"; then
28833 echo $ECHO_N "(cached) $ECHO_C" >&6
28834else
Reid Spencer2706f8c2004-09-19 23:53:36 +000028835 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000028836fi
28837echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28838echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28839
28840fi
28841if test `eval echo '${'$as_ac_Header'}'` = yes; then
28842 cat >>confdefs.h <<_ACEOF
28843#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28844_ACEOF
28845
28846fi
28847
28848done
28849
28850
28851for ac_func in getpagesize
28852do
28853as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28854echo "$as_me:$LINENO: checking for $ac_func" >&5
28855echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
28856if eval "test \"\${$as_ac_var+set}\" = set"; then
28857 echo $ECHO_N "(cached) $ECHO_C" >&6
28858else
28859 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028860/* confdefs.h. */
28861_ACEOF
28862cat confdefs.h >>conftest.$ac_ext
28863cat >>conftest.$ac_ext <<_ACEOF
28864/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28867#define $ac_func innocuous_$ac_func
28868
John Criswell7a73b802003-06-30 21:59:07 +000028869/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000028870 which can conflict with char $ac_func (); below.
28871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28872 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000028873
John Criswell0c38eaf2003-09-10 15:17:25 +000028874#ifdef __STDC__
28875# include <limits.h>
28876#else
28877# include <assert.h>
28878#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000028879
28880#undef $ac_func
28881
John Criswell7a73b802003-06-30 21:59:07 +000028882/* Override any gcc2 internal prototype to avoid an error. */
28883#ifdef __cplusplus
28884extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000028885{
John Criswell7a73b802003-06-30 21:59:07 +000028886#endif
28887/* We use char because int might match the return type of a gcc2
28888 builtin and then its argument prototype would still apply. */
28889char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000028890/* The GNU C library defines this for functions which it implements
28891 to always fail with ENOSYS. Some functions are actually named
28892 something starting with __ and the normal name is an alias. */
28893#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
28894choke me
28895#else
John Criswell0c38eaf2003-09-10 15:17:25 +000028896char (*f) () = $ac_func;
28897#endif
28898#ifdef __cplusplus
28899}
John Criswell7a73b802003-06-30 21:59:07 +000028900#endif
28901
John Criswell0c38eaf2003-09-10 15:17:25 +000028902int
28903main ()
28904{
28905return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000028906 ;
28907 return 0;
28908}
28909_ACEOF
28910rm -f conftest.$ac_objext conftest$ac_exeext
28911if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000028912 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000028913 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000028914 grep -v '^ *+' conftest.er1 >conftest.err
28915 rm -f conftest.er1
28916 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000028917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28918 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000028919 { ac_try='test -z "$ac_c_werror_flag"
28920 || test ! -s conftest.err'
28921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28922 (eval $ac_try) 2>&5
28923 ac_status=$?
28924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28925 (exit $ac_status); }; } &&
28926 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000028927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28928 (eval $ac_try) 2>&5
28929 ac_status=$?
28930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28931 (exit $ac_status); }; }; then
28932 eval "$as_ac_var=yes"
28933else
28934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000028935sed 's/^/| /' conftest.$ac_ext >&5
28936
John Criswell7a73b802003-06-30 21:59:07 +000028937eval "$as_ac_var=no"
28938fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000028939rm -f conftest.err conftest.$ac_objext \
28940 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000028941fi
28942echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
28943echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
28944if test `eval echo '${'$as_ac_var'}'` = yes; then
28945 cat >>confdefs.h <<_ACEOF
28946#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28947_ACEOF
28948
28949fi
28950done
28951
28952echo "$as_me:$LINENO: checking for working mmap" >&5
28953echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
28954if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
28955 echo $ECHO_N "(cached) $ECHO_C" >&6
28956else
28957 if test "$cross_compiling" = yes; then
28958 ac_cv_func_mmap_fixed_mapped=no
28959else
28960 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000028961/* confdefs.h. */
28962_ACEOF
28963cat confdefs.h >>conftest.$ac_ext
28964cat >>conftest.$ac_ext <<_ACEOF
28965/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000028966$ac_includes_default
28967/* malloc might have been renamed as rpl_malloc. */
28968#undef malloc
28969
28970/* Thanks to Mike Haertel and Jim Avera for this test.
28971 Here is a matrix of mmap possibilities:
28972 mmap private not fixed
28973 mmap private fixed at somewhere currently unmapped
28974 mmap private fixed at somewhere already mapped
28975 mmap shared not fixed
28976 mmap shared fixed at somewhere currently unmapped
28977 mmap shared fixed at somewhere already mapped
28978 For private mappings, we should verify that changes cannot be read()
28979 back from the file, nor mmap's back from the file at a different
28980 address. (There have been systems where private was not correctly
28981 implemented like the infamous i386 svr4.0, and systems where the
28982 VM page cache was not coherent with the file system buffer cache
28983 like early versions of FreeBSD and possibly contemporary NetBSD.)
28984 For shared mappings, we should conversely verify that changes get
28985 propagated back to all the places they're supposed to be.
28986
28987 Grep wants private fixed already mapped.
28988 The main things grep needs to know about mmap are:
28989 * does it exist and is it safe to write into the mmap'd area
28990 * how to use it (BSD variants) */
28991
28992#include <fcntl.h>
28993#include <sys/mman.h>
28994
28995#if !STDC_HEADERS && !HAVE_STDLIB_H
28996char *malloc ();
28997#endif
28998
28999/* This mess was copied from the GNU getpagesize.h. */
29000#if !HAVE_GETPAGESIZE
29001/* Assume that all systems that can run configure have sys/param.h. */
29002# if !HAVE_SYS_PARAM_H
29003# define HAVE_SYS_PARAM_H 1
29004# endif
29005
29006# ifdef _SC_PAGESIZE
29007# define getpagesize() sysconf(_SC_PAGESIZE)
29008# else /* no _SC_PAGESIZE */
29009# if HAVE_SYS_PARAM_H
29010# include <sys/param.h>
29011# ifdef EXEC_PAGESIZE
29012# define getpagesize() EXEC_PAGESIZE
29013# else /* no EXEC_PAGESIZE */
29014# ifdef NBPG
29015# define getpagesize() NBPG * CLSIZE
29016# ifndef CLSIZE
29017# define CLSIZE 1
29018# endif /* no CLSIZE */
29019# else /* no NBPG */
29020# ifdef NBPC
29021# define getpagesize() NBPC
29022# else /* no NBPC */
29023# ifdef PAGESIZE
29024# define getpagesize() PAGESIZE
29025# endif /* PAGESIZE */
29026# endif /* no NBPC */
29027# endif /* no NBPG */
29028# endif /* no EXEC_PAGESIZE */
29029# else /* no HAVE_SYS_PARAM_H */
29030# define getpagesize() 8192 /* punt totally */
29031# endif /* no HAVE_SYS_PARAM_H */
29032# endif /* no _SC_PAGESIZE */
29033
29034#endif /* no HAVE_GETPAGESIZE */
29035
29036int
29037main ()
29038{
29039 char *data, *data2, *data3;
29040 int i, pagesize;
29041 int fd;
29042
29043 pagesize = getpagesize ();
29044
29045 /* First, make a file with some known garbage in it. */
29046 data = (char *) malloc (pagesize);
29047 if (!data)
29048 exit (1);
29049 for (i = 0; i < pagesize; ++i)
29050 *(data + i) = rand ();
29051 umask (0);
29052 fd = creat ("conftest.mmap", 0600);
29053 if (fd < 0)
29054 exit (1);
29055 if (write (fd, data, pagesize) != pagesize)
29056 exit (1);
29057 close (fd);
29058
29059 /* Next, try to mmap the file at a fixed address which already has
29060 something else allocated at it. If we can, also make sure that
29061 we see the same garbage. */
29062 fd = open ("conftest.mmap", O_RDWR);
29063 if (fd < 0)
29064 exit (1);
29065 data2 = (char *) malloc (2 * pagesize);
29066 if (!data2)
29067 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000029068 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000029069 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000029070 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000029071 exit (1);
29072 for (i = 0; i < pagesize; ++i)
29073 if (*(data + i) != *(data2 + i))
29074 exit (1);
29075
29076 /* Finally, make sure that changes to the mapped area do not
29077 percolate back to the file as seen by read(). (This is a bug on
29078 some variants of i386 svr4.0.) */
29079 for (i = 0; i < pagesize; ++i)
29080 *(data2 + i) = *(data2 + i) + 1;
29081 data3 = (char *) malloc (pagesize);
29082 if (!data3)
29083 exit (1);
29084 if (read (fd, data3, pagesize) != pagesize)
29085 exit (1);
29086 for (i = 0; i < pagesize; ++i)
29087 if (*(data + i) != *(data3 + i))
29088 exit (1);
29089 close (fd);
29090 exit (0);
29091}
29092_ACEOF
29093rm -f conftest$ac_exeext
29094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29095 (eval $ac_link) 2>&5
29096 ac_status=$?
29097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29100 (eval $ac_try) 2>&5
29101 ac_status=$?
29102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29103 (exit $ac_status); }; }; then
29104 ac_cv_func_mmap_fixed_mapped=yes
29105else
29106 echo "$as_me: program exited with status $ac_status" >&5
29107echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029108sed 's/^/| /' conftest.$ac_ext >&5
29109
John Criswell7a73b802003-06-30 21:59:07 +000029110( exit $ac_status )
29111ac_cv_func_mmap_fixed_mapped=no
29112fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029113rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029114fi
29115fi
29116echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29117echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
29118if test $ac_cv_func_mmap_fixed_mapped = yes; then
29119
29120cat >>confdefs.h <<\_ACEOF
29121#define HAVE_MMAP 1
29122_ACEOF
29123
29124fi
29125rm -f conftest.mmap
29126
29127echo "$as_me:$LINENO: checking for mmap of files" >&5
29128echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
29129if test "${ac_cv_func_mmap_file+set}" = set; then
29130 echo $ECHO_N "(cached) $ECHO_C" >&6
29131else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029132 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000029133ac_cpp='$CPP $CPPFLAGS'
29134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29136ac_compiler_gnu=$ac_cv_c_compiler_gnu
29137
29138 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029139 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000029140else
29141 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029142
Reid Spencer777ce172004-09-20 04:09:56 +000029143 /* confdefs.h. */
29144_ACEOF
29145cat confdefs.h >>conftest.$ac_ext
29146cat >>conftest.$ac_ext <<_ACEOF
29147/* end confdefs.h. */
29148
John Criswell7a73b802003-06-30 21:59:07 +000029149#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000029150#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000029151#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000029152
29153int
29154main ()
29155{
John Criswell7a73b802003-06-30 21:59:07 +000029156
29157 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000029158 fd = creat ("foo",0777);
29159 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
29160 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000029161 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000029162 ;
29163 return 0;
29164}
John Criswell7a73b802003-06-30 21:59:07 +000029165_ACEOF
29166rm -f conftest$ac_exeext
29167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29168 (eval $ac_link) 2>&5
29169 ac_status=$?
29170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29173 (eval $ac_try) 2>&5
29174 ac_status=$?
29175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176 (exit $ac_status); }; }; then
29177 ac_cv_func_mmap_file=yes
29178else
29179 echo "$as_me: program exited with status $ac_status" >&5
29180echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029181sed 's/^/| /' conftest.$ac_ext >&5
29182
John Criswell7a73b802003-06-30 21:59:07 +000029183( exit $ac_status )
29184ac_cv_func_mmap_file=no
29185fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029186rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029187fi
29188 ac_ext=c
29189ac_cpp='$CPP $CPPFLAGS'
29190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29192ac_compiler_gnu=$ac_cv_c_compiler_gnu
29193
29194
29195fi
29196echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
29197echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
29198if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000029199
29200cat >>confdefs.h <<\_ACEOF
29201#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000029202_ACEOF
29203
29204 MMAP_FILE=yes
29205
29206fi
29207
John Criswell7a73b802003-06-30 21:59:07 +000029208echo "$as_me:$LINENO: checking for mprotect" >&5
29209echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
29210if test "${ac_cv_func_mprotect+set}" = set; then
29211 echo $ECHO_N "(cached) $ECHO_C" >&6
29212else
29213 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029214/* confdefs.h. */
29215_ACEOF
29216cat confdefs.h >>conftest.$ac_ext
29217cat >>conftest.$ac_ext <<_ACEOF
29218/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029219/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
29220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29221#define mprotect innocuous_mprotect
29222
John Criswell7a73b802003-06-30 21:59:07 +000029223/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000029224 which can conflict with char mprotect (); below.
29225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29226 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000029227
John Criswell0c38eaf2003-09-10 15:17:25 +000029228#ifdef __STDC__
29229# include <limits.h>
29230#else
29231# include <assert.h>
29232#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000029233
29234#undef mprotect
29235
John Criswell7a73b802003-06-30 21:59:07 +000029236/* Override any gcc2 internal prototype to avoid an error. */
29237#ifdef __cplusplus
29238extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000029239{
John Criswell7a73b802003-06-30 21:59:07 +000029240#endif
29241/* We use char because int might match the return type of a gcc2
29242 builtin and then its argument prototype would still apply. */
29243char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000029244/* The GNU C library defines this for functions which it implements
29245 to always fail with ENOSYS. Some functions are actually named
29246 something starting with __ and the normal name is an alias. */
29247#if defined (__stub_mprotect) || defined (__stub___mprotect)
29248choke me
29249#else
John Criswell0c38eaf2003-09-10 15:17:25 +000029250char (*f) () = mprotect;
29251#endif
29252#ifdef __cplusplus
29253}
John Criswell7a73b802003-06-30 21:59:07 +000029254#endif
29255
John Criswell0c38eaf2003-09-10 15:17:25 +000029256int
29257main ()
29258{
29259return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000029260 ;
29261 return 0;
29262}
29263_ACEOF
29264rm -f conftest.$ac_objext conftest$ac_exeext
29265if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000029266 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000029267 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000029268 grep -v '^ *+' conftest.er1 >conftest.err
29269 rm -f conftest.er1
29270 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000029271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000029273 { ac_try='test -z "$ac_c_werror_flag"
29274 || test ! -s conftest.err'
29275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29276 (eval $ac_try) 2>&5
29277 ac_status=$?
29278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29279 (exit $ac_status); }; } &&
29280 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000029281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29282 (eval $ac_try) 2>&5
29283 ac_status=$?
29284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29285 (exit $ac_status); }; }; then
29286 ac_cv_func_mprotect=yes
29287else
29288 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000029289sed 's/^/| /' conftest.$ac_ext >&5
29290
John Criswell7a73b802003-06-30 21:59:07 +000029291ac_cv_func_mprotect=no
29292fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029293rm -f conftest.err conftest.$ac_objext \
29294 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000029295fi
29296echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
29297echo "${ECHO_T}$ac_cv_func_mprotect" >&6
29298if test $ac_cv_func_mprotect = yes; then
29299 :
29300else
29301 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
29302echo "$as_me: error: Function mprotect() required but not found" >&2;}
29303 { (exit 1); exit 1; }; }
29304fi
29305
29306
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029307if test "$ac_cv_func_mmap_fixed_mapped" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029308then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029309 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
29310echo "$as_me: WARNING: mmap() required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029311fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029312if test "$ac_cv_func_mmap_file" = "no"
John Criswellb13092b2003-07-22 21:00:24 +000029313then
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029314 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
29315echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswellb13092b2003-07-22 21:00:24 +000029316fi
John Criswell7a73b802003-06-30 21:59:07 +000029317
29318
Brian Gaekef3b24102003-11-16 18:38:14 +000029319echo "$as_me:$LINENO: checking for llvm-gcc" >&5
29320echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029321if test "${llvm_cv_llvmgcc+set}" = set; then
29322 echo $ECHO_N "(cached) $ECHO_C" >&6
29323else
29324 llvm_cv_llvmgcc='llvmgcc_not_found'
29325if test -d "$LLVMGCCDIR" ; then
29326 if test -x "$LLVMGCCDIR/bin/gcc" ; then
29327 llvm_cv_llvmgcc="$LLVMGCCDIR/bin/gcc"
29328 fi
Brian Gaekef3b24102003-11-16 18:38:14 +000029329fi
Brian Gaekef3b24102003-11-16 18:38:14 +000029330fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029331echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc" >&5
29332echo "${ECHO_T}$llvm_cv_llvmgcc" >&6
29333
Brian Gaekef3b24102003-11-16 18:38:14 +000029334echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
29335echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029336if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
29337 echo $ECHO_N "(cached) $ECHO_C" >&6
29338else
29339 llvm_cv_llvmgcc_sanity="no"
29340if test -x "$llvm_cv_llvmgcc" ; then
29341 cp /dev/null conftest.c
29342 "$llvm_cv_llvmgcc" -S -o - conftest.c | grep implementation > /dev/null 2>&1
29343 if test $? -eq 0 ; then
29344 llvm_cv_llvmgcc_sanity="yes"
29345 fi
29346 rm conftest.c
Brian Gaekef3b24102003-11-16 18:38:14 +000029347fi
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029348fi
29349echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
29350echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6
29351
29352if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
29353 LLVMGCC="$llvm_cv_llvmgcc"
29354
29355 llvmcc1path=`"$llvm_cv_llvmgcc" --print-prog-name=cc1`
29356 LLVMCC1=$llvmcc1path
29357
29358 llvmcc1pluspath=`"$llvm_cv_llvmgcc" --print-prog-name=cc1plus`
29359 LLVMCC1PLUS=$llvmcc1pluspath
29360
Brian Gaekef3b24102003-11-16 18:38:14 +000029361fi
29362
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029363SHLIBEXT=$libltdl_cv_shlibext
Brian Gaeke554831c2004-01-21 19:39:29 +000029364
29365
Reid Spencere9de0912004-08-20 09:03:57 +000029366# Translate the various configuration directories and other basic
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029367# information into substitutions that will end up in Makefile.config.in
29368# that these configured values can be used by the makefiles
Reid Spencere9de0912004-08-20 09:03:57 +000029369eval LLVM_PREFIX="${prefix}";
29370eval LLVM_BINDIR="${prefix}/bin";
29371eval LLVM_LIBDIR="${prefix}/lib";
Reid Spencer1f319422004-11-29 04:56:35 +000029372eval LLVM_DATADIR="${prefix}/share/llvm";
29373eval LLVM_DOCSDIR="${prefix}/docs/llvm";
29374eval LLVM_ETCDIR="${prefix}/etc/llvm";
Reid Spencere9de0912004-08-20 09:03:57 +000029375eval LLVM_INCLUDEDIR="${prefix}/include";
29376eval LLVM_INFODIR="${prefix}/info";
29377eval LLVM_MANDIR="${prefix}/man";
29378LLVM_CONFIGTIME=`date`
29379
29380
29381
29382
29383
29384
29385
29386
29387
29388
29389
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029390# Place the various directores into the config.h file as #defines so that we
29391# can know about the installation paths within LLVM.
29392
Reid Spencere9de0912004-08-20 09:03:57 +000029393cat >>confdefs.h <<_ACEOF
29394#define LLVM_PREFIX "$LLVM_PREFIX"
29395_ACEOF
29396
29397
29398cat >>confdefs.h <<_ACEOF
29399#define LLVM_BINDIR "$LLVM_BINDIR"
29400_ACEOF
29401
29402
29403cat >>confdefs.h <<_ACEOF
29404#define LLVM_LIBDIR "$LLVM_LIBDIR"
29405_ACEOF
29406
29407
29408cat >>confdefs.h <<_ACEOF
29409#define LLVM_DATADIR "$LLVM_DATADIR"
29410_ACEOF
29411
29412
29413cat >>confdefs.h <<_ACEOF
29414#define LLVM_DATADIR "$LLVM_DOCSDIR"
29415_ACEOF
29416
29417
29418cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000029419#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000029420_ACEOF
29421
29422
29423cat >>confdefs.h <<_ACEOF
29424#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
29425_ACEOF
29426
29427
29428cat >>confdefs.h <<_ACEOF
29429#define LLVM_INFODIR "$LLVM_INFODIR"
29430_ACEOF
29431
29432
29433cat >>confdefs.h <<_ACEOF
29434#define LLVM_MANDIR "$LLVM_MANDIR"
29435_ACEOF
29436
29437
29438cat >>confdefs.h <<_ACEOF
29439#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
29440_ACEOF
29441
29442
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029443
29444 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
29445
29446
29447 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
29448
29449 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
29450
29451 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
29452
29453 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
29454
29455 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
29456
29457
29458 ac_config_files="$ac_config_files Makefile.config"
29459
29460
29461 ac_config_files="$ac_config_files tools/llvmc/st tools/llvmc/cpp tools/llvmc/ll tools/llvmc/c"
29462
29463
Reid Spencer1f319422004-11-29 04:56:35 +000029464 ac_config_files="$ac_config_files docs/doxygen.cfg"
29465
29466
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029467 ac_config_commands="$ac_config_commands Makefile"
29468
29469
29470 ac_config_commands="$ac_config_commands Makefile.common"
29471
29472
29473 ac_config_commands="$ac_config_commands examples/Makefile"
29474
29475
29476 ac_config_commands="$ac_config_commands lib/Makefile"
29477
29478
29479 ac_config_commands="$ac_config_commands runtime/Makefile"
29480
29481
29482 ac_config_commands="$ac_config_commands test/Makefile"
29483
29484
29485 ac_config_commands="$ac_config_commands test/Makefile.tests"
29486
29487
29488 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
29489
29490
29491 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
29492
29493
29494 ac_config_commands="$ac_config_commands tools/Makefile"
29495
29496
Reid Spencer5e1d9a52004-11-25 04:51:04 +000029497 ac_config_commands="$ac_config_commands utils/Makefile"
29498
29499
29500 ac_config_commands="$ac_config_commands projects/Makefile"
29501
29502
29503
John Criswell7a73b802003-06-30 21:59:07 +000029504cat >confcache <<\_ACEOF
29505# This file is a shell script that caches the results of configure
29506# tests run on this system so they can be shared between configure
29507# scripts and configure runs, see configure's option --config-cache.
29508# It is not useful on other systems. If it contains results you don't
29509# want to keep, you may remove or edit it.
29510#
29511# config.status only pays attention to the cache file if you give it
29512# the --recheck option to rerun configure.
29513#
John Criswell0c38eaf2003-09-10 15:17:25 +000029514# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000029515# loading this file, other *unset* `ac_cv_foo' will be assigned the
29516# following values.
29517
29518_ACEOF
29519
29520# The following way of writing the cache mishandles newlines in values,
29521# but we know of no workaround that is simple, portable, and efficient.
29522# So, don't put newlines in cache variables' values.
29523# Ultrix sh set writes to stderr and can't be redirected directly,
29524# and sets the high bit in the cache file unless we assign to the vars.
29525{
29526 (set) 2>&1 |
29527 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29528 *ac_space=\ *)
29529 # `set' does not quote correctly, so add quotes (double-quote
29530 # substitution turns \\\\ into \\, and sed turns \\ into \).
29531 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029532 "s/'/'\\\\''/g;
29533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000029534 ;;
29535 *)
29536 # `set' quotes correctly as required by POSIX, so do not add quotes.
29537 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000029538 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000029539 ;;
29540 esac;
29541} |
29542 sed '
29543 t clear
29544 : clear
29545 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29546 t end
29547 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29548 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000029549if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000029550 if test -w $cache_file; then
29551 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29552 cat confcache >$cache_file
29553 else
29554 echo "not updating unwritable cache $cache_file"
29555 fi
29556fi
29557rm -f confcache
29558
29559test "x$prefix" = xNONE && prefix=$ac_default_prefix
29560# Let make expand exec_prefix.
29561test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29562
29563# VPATH may cause trouble with some makes, so we remove $(srcdir),
29564# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29565# trailing colons and then remove the whole line if VPATH becomes empty
29566# (actually we leave an empty line to preserve line numbers).
29567if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000029568 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000029569s/:*\$(srcdir):*/:/;
29570s/:*\${srcdir}:*/:/;
29571s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029572s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000029573s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000029574s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000029575}'
29576fi
29577
29578DEFS=-DHAVE_CONFIG_H
29579
John Criswell0c38eaf2003-09-10 15:17:25 +000029580ac_libobjs=
29581ac_ltlibobjs=
29582for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29583 # 1. Remove the extension, and $U if already installed.
29584 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000029585 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000029586 # 2. Add them.
29587 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
29588 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
29589done
29590LIBOBJS=$ac_libobjs
29591
29592LTLIBOBJS=$ac_ltlibobjs
29593
29594
Reid Spencer2bc7bd52004-11-29 12:29:58 +000029595if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
29596 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
29597Usually this means the macro was only invoked conditionally." >&5
29598echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
29599Usually this means the macro was only invoked conditionally." >&2;}
29600 { (exit 1); exit 1; }; }
29601fi
29602if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
29603 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29604Usually this means the macro was only invoked conditionally." >&5
29605echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
29606Usually this means the macro was only invoked conditionally." >&2;}
29607 { (exit 1); exit 1; }; }
29608fi
John Criswell7a73b802003-06-30 21:59:07 +000029609
29610: ${CONFIG_STATUS=./config.status}
29611ac_clean_files_save=$ac_clean_files
29612ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29613{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
29614echo "$as_me: creating $CONFIG_STATUS" >&6;}
29615cat >$CONFIG_STATUS <<_ACEOF
29616#! $SHELL
29617# Generated by $as_me.
29618# Run this file to recreate the current configuration.
29619# Compiler output produced by configure, useful for debugging
29620# configure, is in config.log if it exists.
29621
29622debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000029623ac_cs_recheck=false
29624ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000029625SHELL=\${CONFIG_SHELL-$SHELL}
29626_ACEOF
29627
29628cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000029629## --------------------- ##
29630## M4sh Initialization. ##
29631## --------------------- ##
29632
29633# Be Bourne compatible
29634if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
29635 emulate sh
29636 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000029637 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
29638 # is contrary to our usage. Disable this feature.
29639 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000029640elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29641 set -o posix
29642fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000029643DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000029644
John Criswell7a73b802003-06-30 21:59:07 +000029645# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029646if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029647 as_unset=unset
29648else
29649 as_unset=false
29650fi
29651
John Criswell0c38eaf2003-09-10 15:17:25 +000029652
29653# Work around bugs in pre-3.0 UWIN ksh.
29654$as_unset ENV MAIL MAILPATH
29655PS1='$ '
29656PS2='> '
29657PS4='+ '
29658
29659# NLS nuisances.
29660for as_var in \
29661 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
29662 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
29663 LC_TELEPHONE LC_TIME
29664do
Reid Spencer2706f8c2004-09-19 23:53:36 +000029665 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000029666 eval $as_var=C; export $as_var
29667 else
29668 $as_unset $as_var
29669 fi
29670done
29671
29672# Required to use basename.
29673if expr a : '\(a\)' >/dev/null 2>&1; then
29674 as_expr=expr
29675else
29676 as_expr=false
29677fi
29678
29679if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
29680 as_basename=basename
29681else
29682 as_basename=false
29683fi
John Criswell7a73b802003-06-30 21:59:07 +000029684
29685
29686# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000029687as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000029688$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
29689 X"$0" : 'X\(//\)$' \| \
29690 X"$0" : 'X\(/\)$' \| \
29691 . : '\(.\)' 2>/dev/null ||
29692echo X/"$0" |
29693 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
29694 /^X\/\(\/\/\)$/{ s//\1/; q; }
29695 /^X\/\(\/\).*/{ s//\1/; q; }
29696 s/.*/./; q'`
29697
John Criswell0c38eaf2003-09-10 15:17:25 +000029698
John Criswell7a73b802003-06-30 21:59:07 +000029699# PATH needs CR, and LINENO needs CR and PATH.
29700# Avoid depending upon Character Ranges.
29701as_cr_letters='abcdefghijklmnopqrstuvwxyz'
29702as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
29703as_cr_Letters=$as_cr_letters$as_cr_LETTERS
29704as_cr_digits='0123456789'
29705as_cr_alnum=$as_cr_Letters$as_cr_digits
29706
29707# The user is always right.
29708if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029709 echo "#! /bin/sh" >conf$$.sh
29710 echo "exit 0" >>conf$$.sh
29711 chmod +x conf$$.sh
29712 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000029713 PATH_SEPARATOR=';'
29714 else
29715 PATH_SEPARATOR=:
29716 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000029717 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000029718fi
29719
29720
29721 as_lineno_1=$LINENO
29722 as_lineno_2=$LINENO
29723 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29724 test "x$as_lineno_1" != "x$as_lineno_2" &&
29725 test "x$as_lineno_3" = "x$as_lineno_2" || {
29726 # Find who we are. Look in the path if we contain no path at all
29727 # relative or not.
29728 case $0 in
29729 *[\\/]* ) as_myself=$0 ;;
29730 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29731for as_dir in $PATH
29732do
29733 IFS=$as_save_IFS
29734 test -z "$as_dir" && as_dir=.
29735 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29736done
29737
29738 ;;
29739 esac
29740 # We did not find ourselves, most probably we were run as `sh COMMAND'
29741 # in which case we are not to be found in the path.
29742 if test "x$as_myself" = x; then
29743 as_myself=$0
29744 fi
29745 if test ! -f "$as_myself"; then
29746 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
29747echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
29748 { (exit 1); exit 1; }; }
29749 fi
29750 case $CONFIG_SHELL in
29751 '')
29752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29753for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
29754do
29755 IFS=$as_save_IFS
29756 test -z "$as_dir" && as_dir=.
29757 for as_base in sh bash ksh sh5; do
29758 case $as_dir in
29759 /*)
29760 if ("$as_dir/$as_base" -c '
29761 as_lineno_1=$LINENO
29762 as_lineno_2=$LINENO
29763 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
29764 test "x$as_lineno_1" != "x$as_lineno_2" &&
29765 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000029766 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
29767 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000029768 CONFIG_SHELL=$as_dir/$as_base
29769 export CONFIG_SHELL
29770 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
29771 fi;;
29772 esac
29773 done
29774done
29775;;
29776 esac
29777
29778 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
29779 # uniformly replaced by the line number. The first 'sed' inserts a
29780 # line-number line before each line; the second 'sed' does the real
29781 # work. The second script uses 'N' to pair each line-number line
29782 # with the numbered line, and appends trailing '-' during
29783 # substitution so that $LINENO is not a special case at line end.
29784 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
29785 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
29786 sed '=' <$as_myself |
29787 sed '
29788 N
29789 s,$,-,
29790 : loop
29791 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
29792 t loop
29793 s,-$,,
29794 s,^['$as_cr_digits']*\n,,
29795 ' >$as_me.lineno &&
29796 chmod +x $as_me.lineno ||
29797 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
29798echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
29799 { (exit 1); exit 1; }; }
29800
29801 # Don't try to exec as it changes $[0], causing all sort of problems
29802 # (the dirname of $[0] is not the place where we might find the
29803 # original and so on. Autoconf is especially sensible to this).
29804 . ./$as_me.lineno
29805 # Exit status is that of the last command.
29806 exit
29807}
29808
29809
29810case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
29811 *c*,-n*) ECHO_N= ECHO_C='
29812' ECHO_T=' ' ;;
29813 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
29814 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
29815esac
29816
29817if expr a : '\(a\)' >/dev/null 2>&1; then
29818 as_expr=expr
29819else
29820 as_expr=false
29821fi
29822
29823rm -f conf$$ conf$$.exe conf$$.file
29824echo >conf$$.file
29825if ln -s conf$$.file conf$$ 2>/dev/null; then
29826 # We could just check for DJGPP; but this test a) works b) is more generic
29827 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
29828 if test -f conf$$.exe; then
29829 # Don't use ln at all; we don't have any links
29830 as_ln_s='cp -p'
29831 else
29832 as_ln_s='ln -s'
29833 fi
29834elif ln conf$$.file conf$$ 2>/dev/null; then
29835 as_ln_s=ln
29836else
29837 as_ln_s='cp -p'
29838fi
29839rm -f conf$$ conf$$.exe conf$$.file
29840
John Criswell0c38eaf2003-09-10 15:17:25 +000029841if mkdir -p . 2>/dev/null; then
29842 as_mkdir_p=:
29843else
Reid Spencer2706f8c2004-09-19 23:53:36 +000029844 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000029845 as_mkdir_p=false
29846fi
29847
John Criswell7a73b802003-06-30 21:59:07 +000029848as_executable_p="test -f"
29849
29850# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029851as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000029852
29853# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000029854as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000029855
29856
29857# IFS
29858# We need space, tab and new line, in precisely that order.
29859as_nl='
29860'
29861IFS=" $as_nl"
29862
29863# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000029864$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000029865
29866exec 6>&1
29867
29868# Open the log real soon, to keep \$[0] and so on meaningful, and to
29869# report actual input values of CONFIG_FILES etc. instead of their
29870# values after options handling. Logging --version etc. is OK.
29871exec 5>>config.log
29872{
29873 echo
29874 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29875## Running $as_me. ##
29876_ASBOX
29877} >&5
29878cat >&5 <<_CSEOF
29879
Reid Spencerabec8f92004-10-27 23:03:44 +000029880This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000029881generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000029882
29883 CONFIG_FILES = $CONFIG_FILES
29884 CONFIG_HEADERS = $CONFIG_HEADERS
29885 CONFIG_LINKS = $CONFIG_LINKS
29886 CONFIG_COMMANDS = $CONFIG_COMMANDS
29887 $ $0 $@
29888
29889_CSEOF
29890echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
29891echo >&5
29892_ACEOF
29893
29894# Files that config.status was made for.
29895if test -n "$ac_config_files"; then
29896 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
29897fi
29898
29899if test -n "$ac_config_headers"; then
29900 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
29901fi
29902
29903if test -n "$ac_config_links"; then
29904 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
29905fi
29906
29907if test -n "$ac_config_commands"; then
29908 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
29909fi
29910
29911cat >>$CONFIG_STATUS <<\_ACEOF
29912
29913ac_cs_usage="\
29914\`$as_me' instantiates files from templates according to the
29915current configuration.
29916
29917Usage: $0 [OPTIONS] [FILE]...
29918
29919 -h, --help print this help, then exit
29920 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000029921 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000029922 -d, --debug don't remove temporary files
29923 --recheck update $as_me by reconfiguring in the same conditions
29924 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000029925 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000029926 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000029927 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000029928
29929Configuration files:
29930$config_files
29931
29932Configuration headers:
29933$config_headers
29934
Reid Spencerde8c47f2004-08-29 19:35:28 +000029935Configuration links:
29936$config_links
29937
John Criswellc764fbc2003-09-06 15:17:13 +000029938Configuration commands:
29939$config_commands
29940
John Criswell7a73b802003-06-30 21:59:07 +000029941Report bugs to <bug-autoconf@gnu.org>."
29942_ACEOF
29943
29944cat >>$CONFIG_STATUS <<_ACEOF
29945ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000029946llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000029947configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000029948 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
29949
Reid Spencer2706f8c2004-09-19 23:53:36 +000029950Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000029951This config.status script is free software; the Free Software Foundation
29952gives unlimited permission to copy, distribute and modify it."
29953srcdir=$srcdir
29954INSTALL="$INSTALL"
29955_ACEOF
29956
29957cat >>$CONFIG_STATUS <<\_ACEOF
29958# If no file are specified by the user, then we need to provide default
29959# value. By we need to know if files were specified by the user.
29960ac_need_defaults=:
29961while test $# != 0
29962do
29963 case $1 in
29964 --*=*)
29965 ac_option=`expr "x$1" : 'x\([^=]*\)='`
29966 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000029967 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000029968 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000029969 -*)
29970 ac_option=$1
29971 ac_optarg=$2
29972 ac_shift=shift
29973 ;;
John Criswell7a73b802003-06-30 21:59:07 +000029974 *) # This is not an option, so the user has probably given explicit
29975 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000029976 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000029977 ac_need_defaults=false;;
29978 esac
29979
John Criswell0c38eaf2003-09-10 15:17:25 +000029980 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000029981 # Handling of the options.
29982_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000029983cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000029984 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29985 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000029986 --version | --vers* | -V )
29987 echo "$ac_cs_version"; exit 0 ;;
29988 --he | --h)
29989 # Conflict between --help and --header
29990 { { echo "$as_me:$LINENO: error: ambiguous option: $1
29991Try \`$0 --help' for more information." >&5
29992echo "$as_me: error: ambiguous option: $1
29993Try \`$0 --help' for more information." >&2;}
29994 { (exit 1); exit 1; }; };;
29995 --help | --hel | -h )
29996 echo "$ac_cs_usage"; exit 0 ;;
29997 --debug | --d* | -d )
29998 debug=: ;;
29999 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000030000 $ac_shift
30001 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030002 ac_need_defaults=false;;
30003 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000030004 $ac_shift
30005 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000030006 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000030007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30008 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30009 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000030010
30011 # This is an error.
30012 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30013Try \`$0 --help' for more information." >&5
30014echo "$as_me: error: unrecognized option: $1
30015Try \`$0 --help' for more information." >&2;}
30016 { (exit 1); exit 1; }; } ;;
30017
30018 *) ac_config_targets="$ac_config_targets $1" ;;
30019
30020 esac
30021 shift
30022done
30023
John Criswell0c38eaf2003-09-10 15:17:25 +000030024ac_configure_extra_args=
30025
30026if $ac_cs_silent; then
30027 exec 6>/dev/null
30028 ac_configure_extra_args="$ac_configure_extra_args --silent"
30029fi
30030
30031_ACEOF
30032cat >>$CONFIG_STATUS <<_ACEOF
30033if \$ac_cs_recheck; then
30034 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30035 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30036fi
30037
John Criswell7a73b802003-06-30 21:59:07 +000030038_ACEOF
30039
John Criswellc764fbc2003-09-06 15:17:13 +000030040cat >>$CONFIG_STATUS <<_ACEOF
30041#
30042# INIT-COMMANDS section.
30043#
John Criswell7a73b802003-06-30 21:59:07 +000030044
John Criswellc764fbc2003-09-06 15:17:13 +000030045${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
30046${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000030047${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030048${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030049${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030050${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
30051${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000030052${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
30053${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000030054${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000030055${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030056${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000030057
30058_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000030059
30060
30061
30062cat >>$CONFIG_STATUS <<\_ACEOF
30063for ac_config_target in $ac_config_targets
30064do
30065 case "$ac_config_target" in
30066 # Handling of arguments.
30067 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer0acd65f2004-11-23 23:48:45 +000030068 "tools/llvmc/st" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/st" ;;
30069 "tools/llvmc/cpp" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/cpp" ;;
30070 "tools/llvmc/ll" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/ll" ;;
30071 "tools/llvmc/c" ) CONFIG_FILES="$CONFIG_FILES tools/llvmc/c" ;;
Reid Spencer1f319422004-11-29 04:56:35 +000030072 "docs/doxygen.cfg" ) CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
Reid Spenceredd01b92004-11-25 06:03:14 +000030073 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$llvm_cv_platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030074 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
30075 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030076 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030077 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030078 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030079 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
30080 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000030081 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
30082 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030083 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000030084 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030085 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000030086 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000030087 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000030088 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
30089 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000030090 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
30091 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000030092 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30093echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30094 { (exit 1); exit 1; }; };;
30095 esac
30096done
30097
30098# If the user did not use the arguments to specify the items to instantiate,
30099# then the envvar interface is used. Set only those that are not.
30100# We use the long form for the default assignment because of an extremely
30101# bizarre bug on SunOS 4.1.3.
30102if $ac_need_defaults; then
30103 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30104 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000030105 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000030106 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000030107fi
30108
John Criswell0c38eaf2003-09-10 15:17:25 +000030109# Have a temporary directory for convenience. Make it in the build tree
30110# simply because there is no reason to put it here, and in addition,
30111# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000030112# Create a temporary directory, and hook for its removal unless debugging.
30113$debug ||
30114{
30115 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30116 trap '{ (exit 1); exit 1; }' 1 2 13 15
30117}
30118
30119# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000030120
John Criswell7a73b802003-06-30 21:59:07 +000030121{
John Criswell0c38eaf2003-09-10 15:17:25 +000030122 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000030123 test -n "$tmp" && test -d "$tmp"
30124} ||
30125{
John Criswell0c38eaf2003-09-10 15:17:25 +000030126 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000030127 (umask 077 && mkdir $tmp)
30128} ||
30129{
John Criswell0c38eaf2003-09-10 15:17:25 +000030130 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000030131 { (exit 1); exit 1; }
30132}
30133
30134_ACEOF
30135
30136cat >>$CONFIG_STATUS <<_ACEOF
30137
30138#
30139# CONFIG_FILES section.
30140#
30141
30142# No need to generate the scripts if there are no CONFIG_FILES.
30143# This happens for instance when ./config.status config.h
30144if test -n "\$CONFIG_FILES"; then
30145 # Protect against being on the right side of a sed subst in config.status.
30146 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30147 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30148s,@SHELL@,$SHELL,;t t
30149s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30150s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30151s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30152s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30153s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30154s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30155s,@exec_prefix@,$exec_prefix,;t t
30156s,@prefix@,$prefix,;t t
30157s,@program_transform_name@,$program_transform_name,;t t
30158s,@bindir@,$bindir,;t t
30159s,@sbindir@,$sbindir,;t t
30160s,@libexecdir@,$libexecdir,;t t
30161s,@datadir@,$datadir,;t t
30162s,@sysconfdir@,$sysconfdir,;t t
30163s,@sharedstatedir@,$sharedstatedir,;t t
30164s,@localstatedir@,$localstatedir,;t t
30165s,@libdir@,$libdir,;t t
30166s,@includedir@,$includedir,;t t
30167s,@oldincludedir@,$oldincludedir,;t t
30168s,@infodir@,$infodir,;t t
30169s,@mandir@,$mandir,;t t
30170s,@build_alias@,$build_alias,;t t
30171s,@host_alias@,$host_alias,;t t
30172s,@target_alias@,$target_alias,;t t
30173s,@DEFS@,$DEFS,;t t
30174s,@ECHO_C@,$ECHO_C,;t t
30175s,@ECHO_N@,$ECHO_N,;t t
30176s,@ECHO_T@,$ECHO_T,;t t
30177s,@LIBS@,$LIBS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030178s,@LLVM_COPYRIGHT@,$LLVM_COPYRIGHT,;t t
John Criswell12399a12003-09-30 15:55:44 +000030179s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030180s,@build@,$build,;t t
30181s,@build_cpu@,$build_cpu,;t t
30182s,@build_vendor@,$build_vendor,;t t
30183s,@build_os@,$build_os,;t t
30184s,@host@,$host,;t t
30185s,@host_cpu@,$host_cpu,;t t
30186s,@host_vendor@,$host_vendor,;t t
30187s,@host_os@,$host_os,;t t
30188s,@target@,$target,;t t
30189s,@target_cpu@,$target_cpu,;t t
30190s,@target_vendor@,$target_vendor,;t t
30191s,@target_os@,$target_os,;t t
30192s,@OS@,$OS,;t t
John Criswell76595452003-07-01 22:07:39 +000030193s,@ARCH@,$ARCH,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030194s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030195s,@CC@,$CC,;t t
30196s,@CFLAGS@,$CFLAGS,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030197s,@LDFLAGS@,$LDFLAGS,;t t
30198s,@CPPFLAGS@,$CPPFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030199s,@ac_ct_CC@,$ac_ct_CC,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030200s,@EXEEXT@,$EXEEXT,;t t
30201s,@OBJEXT@,$OBJEXT,;t t
30202s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
30203s,@JIT@,$JIT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030204s,@ENABLE_DOXYGEN@,$ENABLE_DOXYGEN,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030205s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030206s,@CPP@,$CPP,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030207s,@CXX@,$CXX,;t t
30208s,@CXXFLAGS@,$CXXFLAGS,;t t
30209s,@ac_ct_CXX@,$ac_ct_CXX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030210s,@LEX@,$LEX,;t t
30211s,@LEXLIB@,$LEXLIB,;t t
30212s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000030213s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030214s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000030215s,@BISON@,$BISON,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030216s,@ifGNUmake@,$ifGNUmake,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030217s,@LN_S@,$LN_S,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030218s,@DATE@,$DATE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030219s,@FIND@,$FIND,;t t
30220s,@GREP@,$GREP,;t t
30221s,@MKDIR@,$MKDIR,;t t
30222s,@MV@,$MV,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030223s,@PAX@,$PAX,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030224s,@RANLIB@,$RANLIB,;t t
30225s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030226s,@RM@,$RM,;t t
30227s,@SED@,$SED,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000030228s,@TAR@,$TAR,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030229s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
30230s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
30231s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030232s,@BZIP2@,$BZIP2,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030233s,@DOT@,$DOT,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030234s,@DOXYGEN@,$DOXYGEN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030235s,@ETAGS@,$ETAGS,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030236s,@GROFF@,$GROFF,;t t
30237s,@GZIP@,$GZIP,;t t
30238s,@POD2HTML@,$POD2HTML,;t t
30239s,@POD2MAN@,$POD2MAN,;t t
John Criswellde00db22003-08-25 16:49:54 +000030240s,@PYTHON@,$PYTHON,;t t
30241s,@QMTEST@,$QMTEST,;t t
Reid Spencer4b8f82f2004-11-07 23:29:39 +000030242s,@RUNTEST@,$RUNTEST,;t t
Reid Spencer1f319422004-11-29 04:56:35 +000030243s,@ZIP@,$ZIP,;t t
Reid Spencer2bc7bd52004-11-29 12:29:58 +000030244s,@EGREP@,$EGREP,;t t
30245s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t
30246s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t
30247s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t
30248s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t
30249s,@LIBADD_DL@,$LIBADD_DL,;t t
30250s,@ECHO@,$ECHO,;t t
30251s,@AR@,$AR,;t t
30252s,@ac_ct_AR@,$ac_ct_AR,;t t
30253s,@STRIP@,$STRIP,;t t
30254s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
30255s,@CXXCPP@,$CXXCPP,;t t
30256s,@F77@,$F77,;t t
30257s,@FFLAGS@,$FFLAGS,;t t
30258s,@ac_ct_F77@,$ac_ct_F77,;t t
30259s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030260s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030261s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030262s,@MMAP_FILE@,$MMAP_FILE,;t t
Reid Spencer5e1d9a52004-11-25 04:51:04 +000030263s,@LLVMGCC@,$LLVMGCC,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000030264s,@LLVMCC1@,$LLVMCC1,;t t
30265s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000030266s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000030267s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
30268s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
30269s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
30270s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
30271s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
30272s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
30273s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
30274s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
30275s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
30276s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000030277s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000030278s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000030279CEOF
30280
30281_ACEOF
30282
30283 cat >>$CONFIG_STATUS <<\_ACEOF
30284 # Split the substitutions into bite-sized pieces for seds with
30285 # small command number limits, like on Digital OSF/1 and HP-UX.
30286 ac_max_sed_lines=48
30287 ac_sed_frag=1 # Number of current file.
30288 ac_beg=1 # First line for current file.
30289 ac_end=$ac_max_sed_lines # Line after last line for current file.
30290 ac_more_lines=:
30291 ac_sed_cmds=
30292 while $ac_more_lines; do
30293 if test $ac_beg -gt 1; then
30294 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30295 else
30296 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30297 fi
30298 if test ! -s $tmp/subs.frag; then
30299 ac_more_lines=false
30300 else
30301 # The purpose of the label and of the branching condition is to
30302 # speed up the sed processing (if there are no `@' at all, there
30303 # is no need to browse any of the substitutions).
30304 # These are the two extra sed commands mentioned above.
30305 (echo ':t
30306 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30307 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000030308 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030309 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000030310 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000030311 fi
30312 ac_sed_frag=`expr $ac_sed_frag + 1`
30313 ac_beg=$ac_end
30314 ac_end=`expr $ac_end + $ac_max_sed_lines`
30315 fi
30316 done
30317 if test -z "$ac_sed_cmds"; then
30318 ac_sed_cmds=cat
30319 fi
30320fi # test -n "$CONFIG_FILES"
30321
30322_ACEOF
30323cat >>$CONFIG_STATUS <<\_ACEOF
30324for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30325 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30326 case $ac_file in
30327 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030328 cat >$tmp/stdin
30329 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30330 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030331 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030332 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030333 * ) ac_file_in=$ac_file.in ;;
30334 esac
30335
30336 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30337 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30338$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030339 X"$ac_file" : 'X\(//\)[^/]' \| \
30340 X"$ac_file" : 'X\(//\)$' \| \
30341 X"$ac_file" : 'X\(/\)' \| \
30342 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030343echo X"$ac_file" |
30344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30345 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30346 /^X\(\/\/\)$/{ s//\1/; q; }
30347 /^X\(\/\).*/{ s//\1/; q; }
30348 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030349 { if $as_mkdir_p; then
30350 mkdir -p "$ac_dir"
30351 else
30352 as_dir="$ac_dir"
30353 as_dirs=
30354 while test ! -d "$as_dir"; do
30355 as_dirs="$as_dir $as_dirs"
30356 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30357$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030358 X"$as_dir" : 'X\(//\)[^/]' \| \
30359 X"$as_dir" : 'X\(//\)$' \| \
30360 X"$as_dir" : 'X\(/\)' \| \
30361 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030362echo X"$as_dir" |
30363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30364 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30365 /^X\(\/\/\)$/{ s//\1/; q; }
30366 /^X\(\/\).*/{ s//\1/; q; }
30367 s/.*/./; q'`
30368 done
30369 test ! -n "$as_dirs" || mkdir $as_dirs
30370 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30371echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30372 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030373
30374 ac_builddir=.
30375
30376if test "$ac_dir" != .; then
30377 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30378 # A "../" for each directory in $ac_dir_suffix.
30379 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30380else
30381 ac_dir_suffix= ac_top_builddir=
30382fi
30383
30384case $srcdir in
30385 .) # No --srcdir option. We are building in place.
30386 ac_srcdir=.
30387 if test -z "$ac_top_builddir"; then
30388 ac_top_srcdir=.
30389 else
30390 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30391 fi ;;
30392 [\\/]* | ?:[\\/]* ) # Absolute path.
30393 ac_srcdir=$srcdir$ac_dir_suffix;
30394 ac_top_srcdir=$srcdir ;;
30395 *) # Relative path.
30396 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30397 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30398esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030399
30400# Do not use `cd foo && pwd` to compute absolute paths, because
30401# the directories may not exist.
30402case `pwd` in
30403.) ac_abs_builddir="$ac_dir";;
30404*)
30405 case "$ac_dir" in
30406 .) ac_abs_builddir=`pwd`;;
30407 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30408 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30409 esac;;
30410esac
30411case $ac_abs_builddir in
30412.) ac_abs_top_builddir=${ac_top_builddir}.;;
30413*)
30414 case ${ac_top_builddir}. in
30415 .) ac_abs_top_builddir=$ac_abs_builddir;;
30416 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30417 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30418 esac;;
30419esac
30420case $ac_abs_builddir in
30421.) ac_abs_srcdir=$ac_srcdir;;
30422*)
30423 case $ac_srcdir in
30424 .) ac_abs_srcdir=$ac_abs_builddir;;
30425 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30426 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30427 esac;;
30428esac
30429case $ac_abs_builddir in
30430.) ac_abs_top_srcdir=$ac_top_srcdir;;
30431*)
30432 case $ac_top_srcdir in
30433 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30434 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30435 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30436 esac;;
30437esac
John Criswell7a73b802003-06-30 21:59:07 +000030438
30439
30440 case $INSTALL in
30441 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30442 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
30443 esac
30444
30445 if test x"$ac_file" != x-; then
30446 { echo "$as_me:$LINENO: creating $ac_file" >&5
30447echo "$as_me: creating $ac_file" >&6;}
30448 rm -f "$ac_file"
30449 fi
30450 # Let's still pretend it is `configure' which instantiates (i.e., don't
30451 # use $as_me), people would be surprised to read:
30452 # /* config.h. Generated by config.status. */
30453 if test x"$ac_file" = x-; then
30454 configure_input=
30455 else
30456 configure_input="$ac_file. "
30457 fi
30458 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000030459 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000030460
30461 # First look for the input files in the build tree, otherwise in the
30462 # src tree.
30463 ac_file_inputs=`IFS=:
30464 for f in $ac_file_in; do
30465 case $f in
30466 -) echo $tmp/stdin ;;
30467 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030468 # Absolute (can't be DOS-style, as IFS=:)
30469 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030470echo "$as_me: error: cannot find input file: $f" >&2;}
30471 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030472 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030473 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030474 if test -f "$f"; then
30475 # Build tree
30476 echo "$f"
30477 elif test -f "$srcdir/$f"; then
30478 # Source tree
30479 echo "$srcdir/$f"
30480 else
30481 # /dev/null tree
30482 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030483echo "$as_me: error: cannot find input file: $f" >&2;}
30484 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030485 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030486 esac
30487 done` || { (exit 1); exit 1; }
30488_ACEOF
30489cat >>$CONFIG_STATUS <<_ACEOF
30490 sed "$ac_vpsub
30491$extrasub
30492_ACEOF
30493cat >>$CONFIG_STATUS <<\_ACEOF
30494:t
30495/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30496s,@configure_input@,$configure_input,;t t
30497s,@srcdir@,$ac_srcdir,;t t
30498s,@abs_srcdir@,$ac_abs_srcdir,;t t
30499s,@top_srcdir@,$ac_top_srcdir,;t t
30500s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
30501s,@builddir@,$ac_builddir,;t t
30502s,@abs_builddir@,$ac_abs_builddir,;t t
30503s,@top_builddir@,$ac_top_builddir,;t t
30504s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
30505s,@INSTALL@,$ac_INSTALL,;t t
30506" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
30507 rm -f $tmp/stdin
30508 if test x"$ac_file" != x-; then
30509 mv $tmp/out $ac_file
30510 else
30511 cat $tmp/out
30512 rm -f $tmp/out
30513 fi
30514
30515done
30516_ACEOF
30517cat >>$CONFIG_STATUS <<\_ACEOF
30518
30519#
30520# CONFIG_HEADER section.
30521#
30522
30523# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
30524# NAME is the cpp macro being defined and VALUE is the value it is being given.
30525#
30526# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030527ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
30528ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000030529ac_dC=' '
30530ac_dD=',;t'
30531# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000030532ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000030533ac_uB='$,\1#\2define\3'
30534ac_uC=' '
30535ac_uD=',;t'
30536
30537for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
30538 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30539 case $ac_file in
30540 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000030541 cat >$tmp/stdin
30542 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30543 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030544 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030545 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000030546 * ) ac_file_in=$ac_file.in ;;
30547 esac
30548
30549 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
30550echo "$as_me: creating $ac_file" >&6;}
30551
30552 # First look for the input files in the build tree, otherwise in the
30553 # src tree.
30554 ac_file_inputs=`IFS=:
30555 for f in $ac_file_in; do
30556 case $f in
30557 -) echo $tmp/stdin ;;
30558 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000030559 # Absolute (can't be DOS-style, as IFS=:)
30560 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030561echo "$as_me: error: cannot find input file: $f" >&2;}
30562 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030563 # Do quote $f, to prevent DOS paths from being IFS'd.
30564 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000030565 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000030566 if test -f "$f"; then
30567 # Build tree
30568 echo "$f"
30569 elif test -f "$srcdir/$f"; then
30570 # Source tree
30571 echo "$srcdir/$f"
30572 else
30573 # /dev/null tree
30574 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000030575echo "$as_me: error: cannot find input file: $f" >&2;}
30576 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000030577 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000030578 esac
30579 done` || { (exit 1); exit 1; }
30580 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030581 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000030582
30583_ACEOF
30584
30585# Transform confdefs.h into two sed scripts, `conftest.defines' and
30586# `conftest.undefs', that substitutes the proper values into
30587# config.h.in to produce config.h. The first handles `#define'
30588# templates, and the second `#undef' templates.
30589# And first: Protect against being on the right side of a sed subst in
30590# config.status. Protect against being in an unquoted here document
30591# in config.status.
30592rm -f conftest.defines conftest.undefs
30593# Using a here document instead of a string reduces the quoting nightmare.
30594# Putting comments in sed scripts is not portable.
30595#
30596# `end' is used to avoid that the second main sed command (meant for
30597# 0-ary CPP macros) applies to n-ary macro definitions.
30598# See the Autoconf documentation for `clear'.
30599cat >confdef2sed.sed <<\_ACEOF
30600s/[\\&,]/\\&/g
30601s,[\\$`],\\&,g
30602t clear
30603: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000030604s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030605t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000030606s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000030607: end
30608_ACEOF
30609# If some macros were called several times there might be several times
30610# the same #defines, which is useless. Nevertheless, we may not want to
30611# sort them, since we want the *last* AC-DEFINE to be honored.
30612uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
30613sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
30614rm -f confdef2sed.sed
30615
30616# This sed command replaces #undef with comments. This is necessary, for
30617# example, in the case of _POSIX_SOURCE, which is predefined and required
30618# on some systems where configure will not decide to define it.
30619cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000030620s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000030621_ACEOF
30622
30623# Break up conftest.defines because some shells have a limit on the size
30624# of here documents, and old seds have small limits too (100 cmds).
30625echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000030626echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030627echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
30628echo ' :' >>$CONFIG_STATUS
30629rm -f conftest.tail
30630while grep . conftest.defines >/dev/null
30631do
30632 # Write a limited-size here document to $tmp/defines.sed.
30633 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
30634 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000030635 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030636 # Work around the forget-to-reset-the-flag bug.
30637 echo 't clr' >>$CONFIG_STATUS
30638 echo ': clr' >>$CONFIG_STATUS
30639 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
30640 echo 'CEOF
30641 sed -f $tmp/defines.sed $tmp/in >$tmp/out
30642 rm -f $tmp/in
30643 mv $tmp/out $tmp/in
30644' >>$CONFIG_STATUS
30645 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
30646 rm -f conftest.defines
30647 mv conftest.tail conftest.defines
30648done
30649rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000030650echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030651echo >>$CONFIG_STATUS
30652
30653# Break up conftest.undefs because some shells have a limit on the size
30654# of here documents, and old seds have small limits too (100 cmds).
30655echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
30656rm -f conftest.tail
30657while grep . conftest.undefs >/dev/null
30658do
30659 # Write a limited-size here document to $tmp/undefs.sed.
30660 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
30661 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000030662 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000030663 # Work around the forget-to-reset-the-flag bug.
30664 echo 't clr' >>$CONFIG_STATUS
30665 echo ': clr' >>$CONFIG_STATUS
30666 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
30667 echo 'CEOF
30668 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
30669 rm -f $tmp/in
30670 mv $tmp/out $tmp/in
30671' >>$CONFIG_STATUS
30672 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
30673 rm -f conftest.undefs
30674 mv conftest.tail conftest.undefs
30675done
30676rm -f conftest.undefs
30677
30678cat >>$CONFIG_STATUS <<\_ACEOF
30679 # Let's still pretend it is `configure' which instantiates (i.e., don't
30680 # use $as_me), people would be surprised to read:
30681 # /* config.h. Generated by config.status. */
30682 if test x"$ac_file" = x-; then
30683 echo "/* Generated by configure. */" >$tmp/config.h
30684 else
30685 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
30686 fi
30687 cat $tmp/in >>$tmp/config.h
30688 rm -f $tmp/in
30689 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000030690 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000030691 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
30692echo "$as_me: $ac_file is unchanged" >&6;}
30693 else
30694 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30695$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030696 X"$ac_file" : 'X\(//\)[^/]' \| \
30697 X"$ac_file" : 'X\(//\)$' \| \
30698 X"$ac_file" : 'X\(/\)' \| \
30699 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000030700echo X"$ac_file" |
30701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30702 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30703 /^X\(\/\/\)$/{ s//\1/; q; }
30704 /^X\(\/\).*/{ s//\1/; q; }
30705 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000030706 { if $as_mkdir_p; then
30707 mkdir -p "$ac_dir"
30708 else
30709 as_dir="$ac_dir"
30710 as_dirs=
30711 while test ! -d "$as_dir"; do
30712 as_dirs="$as_dir $as_dirs"
30713 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30714$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030715 X"$as_dir" : 'X\(//\)[^/]' \| \
30716 X"$as_dir" : 'X\(//\)$' \| \
30717 X"$as_dir" : 'X\(/\)' \| \
30718 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000030719echo X"$as_dir" |
30720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30721 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30722 /^X\(\/\/\)$/{ s//\1/; q; }
30723 /^X\(\/\).*/{ s//\1/; q; }
30724 s/.*/./; q'`
30725 done
30726 test ! -n "$as_dirs" || mkdir $as_dirs
30727 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30728echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30729 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000030730
30731 rm -f $ac_file
30732 mv $tmp/config.h $ac_file
30733 fi
30734 else
30735 cat $tmp/config.h
30736 rm -f $tmp/config.h
30737 fi
30738done
30739_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000030740cat >>$CONFIG_STATUS <<\_ACEOF
30741
30742#
Reid Spencerde8c47f2004-08-29 19:35:28 +000030743# CONFIG_LINKS section.
30744#
30745
30746for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
30747 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30748 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30749
30750 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
30751echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
30752
30753 if test ! -r $srcdir/$ac_source; then
30754 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
30755echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
30756 { (exit 1); exit 1; }; }
30757 fi
30758 rm -f $ac_dest
30759
30760 # Make relative symlinks.
30761 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
30762$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030763 X"$ac_dest" : 'X\(//\)[^/]' \| \
30764 X"$ac_dest" : 'X\(//\)$' \| \
30765 X"$ac_dest" : 'X\(/\)' \| \
30766 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030767echo X"$ac_dest" |
30768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30770 /^X\(\/\/\)$/{ s//\1/; q; }
30771 /^X\(\/\).*/{ s//\1/; q; }
30772 s/.*/./; q'`
30773 { if $as_mkdir_p; then
30774 mkdir -p "$ac_dest_dir"
30775 else
30776 as_dir="$ac_dest_dir"
30777 as_dirs=
30778 while test ! -d "$as_dir"; do
30779 as_dirs="$as_dir $as_dirs"
30780 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30781$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030782 X"$as_dir" : 'X\(//\)[^/]' \| \
30783 X"$as_dir" : 'X\(//\)$' \| \
30784 X"$as_dir" : 'X\(/\)' \| \
30785 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000030786echo X"$as_dir" |
30787 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30788 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30789 /^X\(\/\/\)$/{ s//\1/; q; }
30790 /^X\(\/\).*/{ s//\1/; q; }
30791 s/.*/./; q'`
30792 done
30793 test ! -n "$as_dirs" || mkdir $as_dirs
30794 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
30795echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
30796 { (exit 1); exit 1; }; }; }
30797
30798 ac_builddir=.
30799
30800if test "$ac_dest_dir" != .; then
30801 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
30802 # A "../" for each directory in $ac_dir_suffix.
30803 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30804else
30805 ac_dir_suffix= ac_top_builddir=
30806fi
30807
30808case $srcdir in
30809 .) # No --srcdir option. We are building in place.
30810 ac_srcdir=.
30811 if test -z "$ac_top_builddir"; then
30812 ac_top_srcdir=.
30813 else
30814 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30815 fi ;;
30816 [\\/]* | ?:[\\/]* ) # Absolute path.
30817 ac_srcdir=$srcdir$ac_dir_suffix;
30818 ac_top_srcdir=$srcdir ;;
30819 *) # Relative path.
30820 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30821 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30822esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030823
30824# Do not use `cd foo && pwd` to compute absolute paths, because
30825# the directories may not exist.
30826case `pwd` in
30827.) ac_abs_builddir="$ac_dest_dir";;
30828*)
30829 case "$ac_dest_dir" in
30830 .) ac_abs_builddir=`pwd`;;
30831 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
30832 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
30833 esac;;
30834esac
30835case $ac_abs_builddir in
30836.) ac_abs_top_builddir=${ac_top_builddir}.;;
30837*)
30838 case ${ac_top_builddir}. in
30839 .) ac_abs_top_builddir=$ac_abs_builddir;;
30840 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30841 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30842 esac;;
30843esac
30844case $ac_abs_builddir in
30845.) ac_abs_srcdir=$ac_srcdir;;
30846*)
30847 case $ac_srcdir in
30848 .) ac_abs_srcdir=$ac_abs_builddir;;
30849 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30850 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30851 esac;;
30852esac
30853case $ac_abs_builddir in
30854.) ac_abs_top_srcdir=$ac_top_srcdir;;
30855*)
30856 case $ac_top_srcdir in
30857 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30858 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30859 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30860 esac;;
30861esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000030862
30863
30864 case $srcdir in
30865 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
30866 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
30867 esac
30868
30869 # Try a symlink, then a hard link, then a copy.
30870 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
30871 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
30872 cp -p $srcdir/$ac_source $ac_dest ||
30873 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
30874echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
30875 { (exit 1); exit 1; }; }
30876done
30877_ACEOF
30878cat >>$CONFIG_STATUS <<\_ACEOF
30879
30880#
John Criswellc764fbc2003-09-06 15:17:13 +000030881# CONFIG_COMMANDS section.
30882#
30883for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
30884 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
30885 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
30886 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
30887$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000030888 X"$ac_dest" : 'X\(//\)[^/]' \| \
30889 X"$ac_dest" : 'X\(//\)$' \| \
30890 X"$ac_dest" : 'X\(/\)' \| \
30891 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000030892echo X"$ac_dest" |
30893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30894 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30895 /^X\(\/\/\)$/{ s//\1/; q; }
30896 /^X\(\/\).*/{ s//\1/; q; }
30897 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000030898 { if $as_mkdir_p; then
30899 mkdir -p "$ac_dir"
30900 else
30901 as_dir="$ac_dir"
30902 as_dirs=
30903 while test ! -d "$as_dir"; do
30904 as_dirs="$as_dir $as_dirs"
30905 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30906$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30907 X"$as_dir" : 'X\(//\)[^/]' \| \
30908 X"$as_dir" : 'X\(//\)$' \| \
30909 X"$as_dir" : 'X\(/\)' \| \
30910 . : '\(.\)' 2>/dev/null ||
30911echo X"$as_dir" |
30912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30913 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30914 /^X\(\/\/\)$/{ s//\1/; q; }
30915 /^X\(\/\).*/{ s//\1/; q; }
30916 s/.*/./; q'`
30917 done
30918 test ! -n "$as_dirs" || mkdir $as_dirs
30919 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30920echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30921 { (exit 1); exit 1; }; }; }
30922
John Criswellc764fbc2003-09-06 15:17:13 +000030923 ac_builddir=.
30924
30925if test "$ac_dir" != .; then
30926 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30927 # A "../" for each directory in $ac_dir_suffix.
30928 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30929else
30930 ac_dir_suffix= ac_top_builddir=
30931fi
30932
30933case $srcdir in
30934 .) # No --srcdir option. We are building in place.
30935 ac_srcdir=.
30936 if test -z "$ac_top_builddir"; then
30937 ac_top_srcdir=.
30938 else
30939 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
30940 fi ;;
30941 [\\/]* | ?:[\\/]* ) # Absolute path.
30942 ac_srcdir=$srcdir$ac_dir_suffix;
30943 ac_top_srcdir=$srcdir ;;
30944 *) # Relative path.
30945 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
30946 ac_top_srcdir=$ac_top_builddir$srcdir ;;
30947esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000030948
30949# Do not use `cd foo && pwd` to compute absolute paths, because
30950# the directories may not exist.
30951case `pwd` in
30952.) ac_abs_builddir="$ac_dir";;
30953*)
30954 case "$ac_dir" in
30955 .) ac_abs_builddir=`pwd`;;
30956 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
30957 *) ac_abs_builddir=`pwd`/"$ac_dir";;
30958 esac;;
30959esac
30960case $ac_abs_builddir in
30961.) ac_abs_top_builddir=${ac_top_builddir}.;;
30962*)
30963 case ${ac_top_builddir}. in
30964 .) ac_abs_top_builddir=$ac_abs_builddir;;
30965 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
30966 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
30967 esac;;
30968esac
30969case $ac_abs_builddir in
30970.) ac_abs_srcdir=$ac_srcdir;;
30971*)
30972 case $ac_srcdir in
30973 .) ac_abs_srcdir=$ac_abs_builddir;;
30974 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
30975 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
30976 esac;;
30977esac
30978case $ac_abs_builddir in
30979.) ac_abs_top_srcdir=$ac_top_srcdir;;
30980*)
30981 case $ac_top_srcdir in
30982 .) ac_abs_top_srcdir=$ac_abs_builddir;;
30983 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
30984 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
30985 esac;;
30986esac
John Criswellc764fbc2003-09-06 15:17:13 +000030987
30988
30989 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
30990echo "$as_me: executing $ac_dest commands" >&6;}
30991 case $ac_dest in
30992 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
30993 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000030994 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030995 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030996 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000030997 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
30998 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000030999 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
31000 test/QMTest/llvmdb.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvmdb.py test/QMTest/llvmdb.py ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031001 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000031002 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031003 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000031004 esac
31005done
31006_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000031007
31008cat >>$CONFIG_STATUS <<\_ACEOF
31009
31010{ (exit 0); exit 0; }
31011_ACEOF
31012chmod +x $CONFIG_STATUS
31013ac_clean_files=$ac_clean_files_save
31014
31015
31016# configure is writing to config.log, and then calls config.status.
31017# config.status does its own redirection, appending to config.log.
31018# Unfortunately, on DOS this fails, as config.log is still kept open
31019# by configure, so config.status won't be able to write to it; its
31020# output is simply discarded. So we exec the FD to /dev/null,
31021# effectively closing config.log, so it can be properly (re)opened and
31022# appended to by config.status. When coming back to configure, we
31023# need to make the FD available again.
31024if test "$no_create" != yes; then
31025 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000031026 ac_config_status_args=
31027 test "$silent" = yes &&
31028 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000031029 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000031030 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000031031 exec 5>>config.log
31032 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31033 # would make configure fail if this is the last instruction.
31034 $ac_cs_success || { (exit 1); exit 1; }
31035fi
31036
John Criswell12399a12003-09-30 15:55:44 +000031037#
31038# CONFIG_SUBDIRS section.
31039#
31040if test "$no_recursion" != yes; then
31041
31042 # Remove --cache-file and --srcdir arguments so they do not pile up.
31043 ac_sub_configure_args=
31044 ac_prev=
31045 for ac_arg in $ac_configure_args; do
31046 if test -n "$ac_prev"; then
31047 ac_prev=
31048 continue
31049 fi
31050 case $ac_arg in
31051 -cache-file | --cache-file | --cache-fil | --cache-fi \
31052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
31053 ac_prev=cache_file ;;
31054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
31055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
31056 | --c=*)
31057 ;;
31058 --config-cache | -C)
31059 ;;
31060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
31061 ac_prev=srcdir ;;
31062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
31063 ;;
31064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
31065 ac_prev=prefix ;;
31066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
31067 ;;
31068 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
31069 esac
31070 done
31071
31072 # Always prepend --prefix to ensure using the same prefix
31073 # in subdir configurations.
31074 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
31075
31076 ac_popdir=`pwd`
31077 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
31078
31079 # Do not complain, so a configure script can configure whichever
31080 # parts of a large source tree are present.
31081 test -d $srcdir/$ac_dir || continue
31082
31083 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
31084echo "$as_me: configuring in $ac_dir" >&6;}
31085 { if $as_mkdir_p; then
31086 mkdir -p "$ac_dir"
31087 else
31088 as_dir="$ac_dir"
31089 as_dirs=
31090 while test ! -d "$as_dir"; do
31091 as_dirs="$as_dir $as_dirs"
31092 as_dir=`(dirname "$as_dir") 2>/dev/null ||
31093$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031094 X"$as_dir" : 'X\(//\)[^/]' \| \
31095 X"$as_dir" : 'X\(//\)$' \| \
31096 X"$as_dir" : 'X\(/\)' \| \
31097 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000031098echo X"$as_dir" |
31099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
31100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
31101 /^X\(\/\/\)$/{ s//\1/; q; }
31102 /^X\(\/\).*/{ s//\1/; q; }
31103 s/.*/./; q'`
31104 done
31105 test ! -n "$as_dirs" || mkdir $as_dirs
31106 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
31107echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
31108 { (exit 1); exit 1; }; }; }
31109
31110 ac_builddir=.
31111
31112if test "$ac_dir" != .; then
31113 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
31114 # A "../" for each directory in $ac_dir_suffix.
31115 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
31116else
31117 ac_dir_suffix= ac_top_builddir=
31118fi
31119
31120case $srcdir in
31121 .) # No --srcdir option. We are building in place.
31122 ac_srcdir=.
31123 if test -z "$ac_top_builddir"; then
31124 ac_top_srcdir=.
31125 else
31126 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31127 fi ;;
31128 [\\/]* | ?:[\\/]* ) # Absolute path.
31129 ac_srcdir=$srcdir$ac_dir_suffix;
31130 ac_top_srcdir=$srcdir ;;
31131 *) # Relative path.
31132 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31133 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31134esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000031135
31136# Do not use `cd foo && pwd` to compute absolute paths, because
31137# the directories may not exist.
31138case `pwd` in
31139.) ac_abs_builddir="$ac_dir";;
31140*)
31141 case "$ac_dir" in
31142 .) ac_abs_builddir=`pwd`;;
31143 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31144 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31145 esac;;
31146esac
31147case $ac_abs_builddir in
31148.) ac_abs_top_builddir=${ac_top_builddir}.;;
31149*)
31150 case ${ac_top_builddir}. in
31151 .) ac_abs_top_builddir=$ac_abs_builddir;;
31152 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31153 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31154 esac;;
31155esac
31156case $ac_abs_builddir in
31157.) ac_abs_srcdir=$ac_srcdir;;
31158*)
31159 case $ac_srcdir in
31160 .) ac_abs_srcdir=$ac_abs_builddir;;
31161 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31162 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31163 esac;;
31164esac
31165case $ac_abs_builddir in
31166.) ac_abs_top_srcdir=$ac_top_srcdir;;
31167*)
31168 case $ac_top_srcdir in
31169 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31170 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31171 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31172 esac;;
31173esac
John Criswell12399a12003-09-30 15:55:44 +000031174
31175
31176 cd $ac_dir
31177
31178 # Check for guested configure; otherwise get Cygnus style configure.
31179 if test -f $ac_srcdir/configure.gnu; then
31180 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
31181 elif test -f $ac_srcdir/configure; then
31182 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
31183 elif test -f $ac_srcdir/configure.in; then
31184 ac_sub_configure=$ac_configure
31185 else
31186 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
31187echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
31188 ac_sub_configure=
31189 fi
31190
31191 # The recursion is here.
31192 if test -n "$ac_sub_configure"; then
31193 # Make the cache file name correct relative to the subdirectory.
31194 case $cache_file in
31195 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
31196 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000031197 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000031198 esac
31199
31200 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
31201echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
31202 # The eval makes quoting arguments work.
31203 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000031204 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
31205 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000031206echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
31207 { (exit 1); exit 1; }; }
31208 fi
31209
31210 cd $ac_popdir
31211 done
31212fi
31213
Brian Gaekef3b24102003-11-16 18:38:14 +000031214
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031215if test "$llvm_cv_llvmgcc_sanity" = "no" ; then
31216 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031217echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031218 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031219echo "$as_me: WARNING: ***** appear to be working." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031220 { echo "$as_me:$LINENO: WARNING: ***** " >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031221echo "$as_me: WARNING: ***** " >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031222 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031223echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031224 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031225echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
Reid Spencer5e1d9a52004-11-25 04:51:04 +000031226 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
Brian Gaekef3b24102003-11-16 18:38:14 +000031227echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
31228fi