blob: 675d7dabf6f14689a7bce15375d3a83abb8ddab5 [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.
John Criswell0c38eaf2003-09-10 15:17:25 +000010## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000025
26# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000028 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
Reid Spencer2706f8c2004-09-19 23:53:36 +000046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000047 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
Reid Spencer2706f8c2004-09-19 23:53:36 +0000223 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000231
232# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
John Criswell7a73b802003-06-30 21:59:07 +0000245
John Criswell7a73b802003-06-30 21:59:07 +0000246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
John Criswell47fdd832003-07-14 16:52:07 +0000264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000276$*
John Criswell7a73b802003-06-30 21:59:07 +0000277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +0000283(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +0000284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
John Criswell47fdd832003-07-14 16:52:07 +0000310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000311 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000312 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
John Criswell47fdd832003-07-14 16:52:07 +0000321 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
John Criswell47fdd832003-07-14 16:52:07 +0000395
Reid Spencer2706f8c2004-09-19 23:53:36 +0000396tagnames=${tagnames+${tagnames},}CXX
John Criswell47fdd832003-07-14 16:52:07 +0000397
Reid Spencer2706f8c2004-09-19 23:53:36 +0000398tagnames=${tagnames+${tagnames},}F77
John Criswell47fdd832003-07-14 16:52:07 +0000399
John Criswell7a73b802003-06-30 21:59:07 +0000400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000411ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
Reid Spencerabec8f92004-10-27 23:03:44 +0000424PACKAGE_NAME='llvm'
Reid Spencer2b51a082004-08-04 00:34:49 +0000425PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000426PACKAGE_VERSION='1.4'
Reid Spencerabec8f92004-10-27 23:03:44 +0000427PACKAGE_STRING='llvm 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000428PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
Reid Spencer2706f8c2004-09-19 23:53:36 +0000430ac_unique_file=""Makefile.config.in""
Reid Spencer4d68ba22004-09-07 16:35:45 +0000431ac_subdirs_all="$ac_subdirs_all projects/sample"
432ac_subdirs_all="$ac_subdirs_all projects/Stacker"
433ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
434ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
Reid Spencer641f7ef2004-09-20 22:14:56 +0000436ac_subdirs_all="$ac_subdirs_all projects/Java"
Reid Spencer4d68ba22004-09-07 16:35:45 +0000437ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
438ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
John Criswell7a73b802003-06-30 21:59:07 +0000439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453# include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458# include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469# include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
Reid Spencerad354c92004-10-25 08:18:47 +0000476ac_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 subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL TAR DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_ZLIB HAVE_BZIP2 ENDIAN ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT 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 +0000477ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000478
479# Initialize some variables set by options.
480ac_init_help=
481ac_init_version=false
482# The variables have the same names as the options, with
483# dashes changed to underlines.
484cache_file=/dev/null
485exec_prefix=NONE
486no_create=
487no_recursion=
488prefix=NONE
489program_prefix=NONE
490program_suffix=NONE
491program_transform_name=s,x,x,
492silent=
493site=
494srcdir=
495verbose=
496x_includes=NONE
497x_libraries=NONE
498
499# Installation directory options.
500# These are left unexpanded so users can "make install exec_prefix=/foo"
501# and all the variables that are supposed to be based on exec_prefix
502# by default will actually change.
503# Use braces instead of parens because sh, perl, etc. also accept them.
504bindir='${exec_prefix}/bin'
505sbindir='${exec_prefix}/sbin'
506libexecdir='${exec_prefix}/libexec'
507datadir='${prefix}/share'
508sysconfdir='${prefix}/etc'
509sharedstatedir='${prefix}/com'
510localstatedir='${prefix}/var'
511libdir='${exec_prefix}/lib'
512includedir='${prefix}/include'
513oldincludedir='/usr/include'
514infodir='${prefix}/info'
515mandir='${prefix}/man'
516
517ac_prev=
518for ac_option
519do
520 # If the previous option needs an argument, assign it.
521 if test -n "$ac_prev"; then
522 eval "$ac_prev=\$ac_option"
523 ac_prev=
524 continue
525 fi
526
527 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
528
529 # Accept the important Cygnus configure options, so we can diagnose typos.
530
531 case $ac_option in
532
533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
534 ac_prev=bindir ;;
535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536 bindir=$ac_optarg ;;
537
538 -build | --build | --buil | --bui | --bu)
539 ac_prev=build_alias ;;
540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541 build_alias=$ac_optarg ;;
542
543 -cache-file | --cache-file | --cache-fil | --cache-fi \
544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545 ac_prev=cache_file ;;
546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548 cache_file=$ac_optarg ;;
549
550 --config-cache | -C)
551 cache_file=config.cache ;;
552
553 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
554 ac_prev=datadir ;;
555 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
556 | --da=*)
557 datadir=$ac_optarg ;;
558
559 -disable-* | --disable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 eval "enable_$ac_feature=no" ;;
567
568 -enable-* | --enable-*)
569 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570 # Reject names that are not valid shell variable names.
571 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573 { (exit 1); exit 1; }; }
574 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575 case $ac_option in
576 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577 *) ac_optarg=yes ;;
578 esac
579 eval "enable_$ac_feature='$ac_optarg'" ;;
580
581 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583 | --exec | --exe | --ex)
584 ac_prev=exec_prefix ;;
585 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587 | --exec=* | --exe=* | --ex=*)
588 exec_prefix=$ac_optarg ;;
589
590 -gas | --gas | --ga | --g)
591 # Obsolete; use --with-gas.
592 with_gas=yes ;;
593
594 -help | --help | --hel | --he | -h)
595 ac_init_help=long ;;
596 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597 ac_init_help=recursive ;;
598 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599 ac_init_help=short ;;
600
601 -host | --host | --hos | --ho)
602 ac_prev=host_alias ;;
603 -host=* | --host=* | --hos=* | --ho=*)
604 host_alias=$ac_optarg ;;
605
606 -includedir | --includedir | --includedi | --included | --include \
607 | --includ | --inclu | --incl | --inc)
608 ac_prev=includedir ;;
609 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610 | --includ=* | --inclu=* | --incl=* | --inc=*)
611 includedir=$ac_optarg ;;
612
613 -infodir | --infodir | --infodi | --infod | --info | --inf)
614 ac_prev=infodir ;;
615 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616 infodir=$ac_optarg ;;
617
618 -libdir | --libdir | --libdi | --libd)
619 ac_prev=libdir ;;
620 -libdir=* | --libdir=* | --libdi=* | --libd=*)
621 libdir=$ac_optarg ;;
622
623 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624 | --libexe | --libex | --libe)
625 ac_prev=libexecdir ;;
626 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627 | --libexe=* | --libex=* | --libe=*)
628 libexecdir=$ac_optarg ;;
629
630 -localstatedir | --localstatedir | --localstatedi | --localstated \
631 | --localstate | --localstat | --localsta | --localst \
632 | --locals | --local | --loca | --loc | --lo)
633 ac_prev=localstatedir ;;
634 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637 localstatedir=$ac_optarg ;;
638
639 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
640 ac_prev=mandir ;;
641 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642 mandir=$ac_optarg ;;
643
644 -nfp | --nfp | --nf)
645 # Obsolete; use --without-fp.
646 with_fp=no ;;
647
648 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649 | --no-cr | --no-c | -n)
650 no_create=yes ;;
651
652 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
654 no_recursion=yes ;;
655
656 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658 | --oldin | --oldi | --old | --ol | --o)
659 ac_prev=oldincludedir ;;
660 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663 oldincludedir=$ac_optarg ;;
664
665 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
666 ac_prev=prefix ;;
667 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
668 prefix=$ac_optarg ;;
669
670 -program-prefix | --program-prefix | --program-prefi | --program-pref \
671 | --program-pre | --program-pr | --program-p)
672 ac_prev=program_prefix ;;
673 -program-prefix=* | --program-prefix=* | --program-prefi=* \
674 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675 program_prefix=$ac_optarg ;;
676
677 -program-suffix | --program-suffix | --program-suffi | --program-suff \
678 | --program-suf | --program-su | --program-s)
679 ac_prev=program_suffix ;;
680 -program-suffix=* | --program-suffix=* | --program-suffi=* \
681 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682 program_suffix=$ac_optarg ;;
683
684 -program-transform-name | --program-transform-name \
685 | --program-transform-nam | --program-transform-na \
686 | --program-transform-n | --program-transform- \
687 | --program-transform | --program-transfor \
688 | --program-transfo | --program-transf \
689 | --program-trans | --program-tran \
690 | --progr-tra | --program-tr | --program-t)
691 ac_prev=program_transform_name ;;
692 -program-transform-name=* | --program-transform-name=* \
693 | --program-transform-nam=* | --program-transform-na=* \
694 | --program-transform-n=* | --program-transform-=* \
695 | --program-transform=* | --program-transfor=* \
696 | --program-transfo=* | --program-transf=* \
697 | --program-trans=* | --program-tran=* \
698 | --progr-tra=* | --program-tr=* | --program-t=*)
699 program_transform_name=$ac_optarg ;;
700
701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702 | -silent | --silent | --silen | --sile | --sil)
703 silent=yes ;;
704
705 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
706 ac_prev=sbindir ;;
707 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
708 | --sbi=* | --sb=*)
709 sbindir=$ac_optarg ;;
710
711 -sharedstatedir | --sharedstatedir | --sharedstatedi \
712 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713 | --sharedst | --shareds | --shared | --share | --shar \
714 | --sha | --sh)
715 ac_prev=sharedstatedir ;;
716 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
719 | --sha=* | --sh=*)
720 sharedstatedir=$ac_optarg ;;
721
722 -site | --site | --sit)
723 ac_prev=site ;;
724 -site=* | --site=* | --sit=*)
725 site=$ac_optarg ;;
726
727 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
728 ac_prev=srcdir ;;
729 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
730 srcdir=$ac_optarg ;;
731
732 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733 | --syscon | --sysco | --sysc | --sys | --sy)
734 ac_prev=sysconfdir ;;
735 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737 sysconfdir=$ac_optarg ;;
738
739 -target | --target | --targe | --targ | --tar | --ta | --t)
740 ac_prev=target_alias ;;
741 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742 target_alias=$ac_optarg ;;
743
744 -v | -verbose | --verbose | --verbos | --verbo | --verb)
745 verbose=yes ;;
746
747 -version | --version | --versio | --versi | --vers | -V)
748 ac_init_version=: ;;
749
750 -with-* | --with-*)
751 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package| sed 's/-/_/g'`
757 case $ac_option in
758 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
759 *) ac_optarg=yes ;;
760 esac
761 eval "with_$ac_package='$ac_optarg'" ;;
762
763 -without-* | --without-*)
764 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765 # Reject names that are not valid shell variable names.
766 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767 { echo "$as_me: error: invalid package name: $ac_package" >&2
768 { (exit 1); exit 1; }; }
769 ac_package=`echo $ac_package | sed 's/-/_/g'`
770 eval "with_$ac_package=no" ;;
771
772 --x)
773 # Obsolete; use --with-x.
774 with_x=yes ;;
775
776 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777 | --x-incl | --x-inc | --x-in | --x-i)
778 ac_prev=x_includes ;;
779 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781 x_includes=$ac_optarg ;;
782
783 -x-libraries | --x-libraries | --x-librarie | --x-librari \
784 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785 ac_prev=x_libraries ;;
786 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788 x_libraries=$ac_optarg ;;
789
790 -*) { echo "$as_me: error: unrecognized option: $ac_option
791Try \`$0 --help' for more information." >&2
792 { (exit 1); exit 1; }; }
793 ;;
794
795 *=*)
796 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800 { (exit 1); exit 1; }; }
801 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802 eval "$ac_envvar='$ac_optarg'"
803 export $ac_envvar ;;
804
805 *)
806 # FIXME: should be removed in autoconf 3.0.
807 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811 ;;
812
813 esac
814done
815
816if test -n "$ac_prev"; then
817 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818 { echo "$as_me: error: missing argument to $ac_option" >&2
819 { (exit 1); exit 1; }; }
820fi
821
822# Be sure to have absolute paths.
823for ac_var in exec_prefix prefix
824do
825 eval ac_val=$`echo $ac_var`
826 case $ac_val in
827 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
830 esac
831done
832
833# Be sure to have absolute paths.
834for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000835 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000836do
837 eval ac_val=$`echo $ac_var`
838 case $ac_val in
839 [\\/$]* | ?:[\\/]* ) ;;
840 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841 { (exit 1); exit 1; }; };;
842 esac
843done
844
845# There might be people who depend on the old broken behavior: `$host'
846# used to hold the argument of --host etc.
847# FIXME: To remove some day.
848build=$build_alias
849host=$host_alias
850target=$target_alias
851
852# FIXME: To remove some day.
853if test "x$host_alias" != x; then
854 if test "x$build_alias" = x; then
855 cross_compiling=maybe
856 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857 If a cross compiler is detected then cross compile mode will be used." >&2
858 elif test "x$build_alias" != "x$host_alias"; then
859 cross_compiling=yes
860 fi
861fi
862
863ac_tool_prefix=
864test -n "$host_alias" && ac_tool_prefix=$host_alias-
865
866test "$silent" = yes && exec 6>/dev/null
867
868
869# Find the source files, if location was not specified.
870if test -z "$srcdir"; then
871 ac_srcdir_defaulted=yes
872 # Try the directory containing this script, then its parent.
873 ac_confdir=`(dirname "$0") 2>/dev/null ||
874$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +0000875 X"$0" : 'X\(//\)[^/]' \| \
876 X"$0" : 'X\(//\)$' \| \
877 X"$0" : 'X\(/\)' \| \
878 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000879echo X"$0" |
880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882 /^X\(\/\/\)$/{ s//\1/; q; }
883 /^X\(\/\).*/{ s//\1/; q; }
884 s/.*/./; q'`
885 srcdir=$ac_confdir
886 if test ! -r $srcdir/$ac_unique_file; then
887 srcdir=..
888 fi
889else
890 ac_srcdir_defaulted=no
891fi
892if test ! -r $srcdir/$ac_unique_file; then
893 if test "$ac_srcdir_defaulted" = yes; then
894 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895 { (exit 1); exit 1; }; }
896 else
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898 { (exit 1); exit 1; }; }
899 fi
900fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000901(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000904srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905ac_env_build_alias_set=${build_alias+set}
906ac_env_build_alias_value=$build_alias
907ac_cv_env_build_alias_set=${build_alias+set}
908ac_cv_env_build_alias_value=$build_alias
909ac_env_host_alias_set=${host_alias+set}
910ac_env_host_alias_value=$host_alias
911ac_cv_env_host_alias_set=${host_alias+set}
912ac_cv_env_host_alias_value=$host_alias
913ac_env_target_alias_set=${target_alias+set}
914ac_env_target_alias_value=$target_alias
915ac_cv_env_target_alias_set=${target_alias+set}
916ac_cv_env_target_alias_value=$target_alias
917ac_env_CXX_set=${CXX+set}
918ac_env_CXX_value=$CXX
919ac_cv_env_CXX_set=${CXX+set}
920ac_cv_env_CXX_value=$CXX
921ac_env_CXXFLAGS_set=${CXXFLAGS+set}
922ac_env_CXXFLAGS_value=$CXXFLAGS
923ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
924ac_cv_env_CXXFLAGS_value=$CXXFLAGS
925ac_env_LDFLAGS_set=${LDFLAGS+set}
926ac_env_LDFLAGS_value=$LDFLAGS
927ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928ac_cv_env_LDFLAGS_value=$LDFLAGS
929ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930ac_env_CPPFLAGS_value=$CPPFLAGS
931ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933ac_env_CC_set=${CC+set}
934ac_env_CC_value=$CC
935ac_cv_env_CC_set=${CC+set}
936ac_cv_env_CC_value=$CC
937ac_env_CFLAGS_set=${CFLAGS+set}
938ac_env_CFLAGS_value=$CFLAGS
939ac_cv_env_CFLAGS_set=${CFLAGS+set}
940ac_cv_env_CFLAGS_value=$CFLAGS
941ac_env_CPP_set=${CPP+set}
942ac_env_CPP_value=$CPP
943ac_cv_env_CPP_set=${CPP+set}
944ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000945ac_env_CXXCPP_set=${CXXCPP+set}
946ac_env_CXXCPP_value=$CXXCPP
947ac_cv_env_CXXCPP_set=${CXXCPP+set}
948ac_cv_env_CXXCPP_value=$CXXCPP
949ac_env_F77_set=${F77+set}
950ac_env_F77_value=$F77
951ac_cv_env_F77_set=${F77+set}
952ac_cv_env_F77_value=$F77
953ac_env_FFLAGS_set=${FFLAGS+set}
954ac_env_FFLAGS_value=$FFLAGS
955ac_cv_env_FFLAGS_set=${FFLAGS+set}
956ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000957
958#
959# Report the --help message.
960#
961if test "$ac_init_help" = "long"; then
962 # Omit some internal or obsolete options to make the list less imposing.
963 # This message is too long to be a string in the A/UX 3.1 sh.
964 cat <<_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +0000965\`configure' configures llvm 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000966
967Usage: $0 [OPTION]... [VAR=VALUE]...
968
969To assign environment variables (e.g., CC, CFLAGS...), specify them as
970VAR=VALUE. See below for descriptions of some of the useful variables.
971
972Defaults for the options are specified in brackets.
973
974Configuration:
975 -h, --help display this help and exit
976 --help=short display options specific to this package
977 --help=recursive display the short help of all the included packages
978 -V, --version display version information and exit
979 -q, --quiet, --silent do not print \`checking...' messages
980 --cache-file=FILE cache test results in FILE [disabled]
981 -C, --config-cache alias for \`--cache-file=config.cache'
982 -n, --no-create do not create output files
983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
984
985_ACEOF
986
987 cat <<_ACEOF
988Installation directories:
989 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000990 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000991 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2706f8c2004-09-19 23:53:36 +0000992 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000993
994By default, \`make install' will install all the files in
995\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
996an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997for instance \`--prefix=\$HOME'.
998
999For better control, use the options below.
1000
1001Fine tuning of the installation directories:
1002 --bindir=DIR user executables [EPREFIX/bin]
1003 --sbindir=DIR system admin executables [EPREFIX/sbin]
1004 --libexecdir=DIR program executables [EPREFIX/libexec]
1005 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1006 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1007 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1008 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1009 --libdir=DIR object code libraries [EPREFIX/lib]
1010 --includedir=DIR C header files [PREFIX/include]
1011 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1012 --infodir=DIR info documentation [PREFIX/info]
1013 --mandir=DIR man documentation [PREFIX/man]
1014_ACEOF
1015
1016 cat <<\_ACEOF
1017
1018System types:
1019 --build=BUILD configure for building on BUILD [guessed]
1020 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 --target=TARGET configure for building compilers for TARGET [HOST]
1022_ACEOF
1023fi
1024
1025if test -n "$ac_init_help"; then
1026 case $ac_init_help in
Reid Spencerabec8f92004-10-27 23:03:44 +00001027 short | recursive ) echo "Configuration of llvm 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001028 esac
1029 cat <<\_ACEOF
1030
1031Optional Features:
1032 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1033 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001040 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001041 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswellc78022e2003-07-29 19:11:58 +00001042 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001043
1044Optional Packages:
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1049 both]
1050 --with-tags[=TAGS]
1051 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001052 --with-llvmgccdir Location of LLVM GCC front-end
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00001105
1106# Do not use `cd foo && pwd` to compute absolute paths, because
1107# the directories may not exist.
1108case `pwd` in
1109.) ac_abs_builddir="$ac_dir";;
1110*)
1111 case "$ac_dir" in
1112 .) ac_abs_builddir=`pwd`;;
1113 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1114 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1115 esac;;
1116esac
1117case $ac_abs_builddir in
1118.) ac_abs_top_builddir=${ac_top_builddir}.;;
1119*)
1120 case ${ac_top_builddir}. in
1121 .) ac_abs_top_builddir=$ac_abs_builddir;;
1122 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1124 esac;;
1125esac
1126case $ac_abs_builddir in
1127.) ac_abs_srcdir=$ac_srcdir;;
1128*)
1129 case $ac_srcdir in
1130 .) ac_abs_srcdir=$ac_abs_builddir;;
1131 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1132 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1133 esac;;
1134esac
1135case $ac_abs_builddir in
1136.) ac_abs_top_srcdir=$ac_top_srcdir;;
1137*)
1138 case $ac_top_srcdir in
1139 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1140 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1142 esac;;
1143esac
John Criswell7a73b802003-06-30 21:59:07 +00001144
1145 cd $ac_dir
1146 # Check for guested configure; otherwise get Cygnus style configure.
1147 if test -f $ac_srcdir/configure.gnu; then
1148 echo
1149 $SHELL $ac_srcdir/configure.gnu --help=recursive
1150 elif test -f $ac_srcdir/configure; then
1151 echo
1152 $SHELL $ac_srcdir/configure --help=recursive
1153 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2706f8c2004-09-19 23:53:36 +00001154 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001155 echo
1156 $ac_configure --help
1157 else
1158 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1159 fi
1160 cd $ac_popdir
1161 done
1162fi
1163
1164test -n "$ac_init_help" && exit 0
1165if $ac_init_version; then
1166 cat <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +00001167llvm configure 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +00001168generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001169
Reid Spencer2706f8c2004-09-19 23:53:36 +00001170Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001171This configure script is free software; the Free Software Foundation
1172gives unlimited permission to copy, distribute and modify it.
1173_ACEOF
1174 exit 0
1175fi
1176exec 5>config.log
1177cat >&5 <<_ACEOF
1178This file contains any messages produced by compilers while
1179running configure, to aid debugging if configure makes a mistake.
1180
Reid Spencerabec8f92004-10-27 23:03:44 +00001181It was created by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +00001182generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001183
1184 $ $0 $@
1185
1186_ACEOF
1187{
1188cat <<_ASUNAME
1189## --------- ##
1190## Platform. ##
1191## --------- ##
1192
1193hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1194uname -m = `(uname -m) 2>/dev/null || echo unknown`
1195uname -r = `(uname -r) 2>/dev/null || echo unknown`
1196uname -s = `(uname -s) 2>/dev/null || echo unknown`
1197uname -v = `(uname -v) 2>/dev/null || echo unknown`
1198
1199/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1200/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1201
1202/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1203/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1204/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1205hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1206/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1207/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1208/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1209
1210_ASUNAME
1211
1212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1213for as_dir in $PATH
1214do
1215 IFS=$as_save_IFS
1216 test -z "$as_dir" && as_dir=.
1217 echo "PATH: $as_dir"
1218done
1219
1220} >&5
1221
1222cat >&5 <<_ACEOF
1223
1224
1225## ----------- ##
1226## Core tests. ##
1227## ----------- ##
1228
1229_ACEOF
1230
1231
1232# Keep a trace of the command line.
1233# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001234# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001235# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001236# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001237ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001238ac_configure_args0=
1239ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001240ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001241ac_must_keep_next=false
1242for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001243do
John Criswell0c38eaf2003-09-10 15:17:25 +00001244 for ac_arg
1245 do
1246 case $ac_arg in
1247 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1248 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1249 | -silent | --silent | --silen | --sile | --sil)
1250 continue ;;
1251 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1252 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1253 esac
1254 case $ac_pass in
1255 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1256 2)
1257 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1258 if test $ac_must_keep_next = true; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001259 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001260 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00001261 case $ac_arg in
1262 *=* | --config-cache | -C | -disable-* | --disable-* \
1263 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1264 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1265 | -with-* | --with-* | -without-* | --without-* | --x)
1266 case "$ac_configure_args0 " in
1267 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1268 esac
1269 ;;
1270 -* ) ac_must_keep_next=true ;;
1271 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001272 fi
1273 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1274 # Get rid of the leading space.
1275 ac_sep=" "
1276 ;;
1277 esac
1278 done
John Criswell7a73b802003-06-30 21:59:07 +00001279done
John Criswell0c38eaf2003-09-10 15:17:25 +00001280$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1281$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 +00001282
1283# When interrupted or exit'd, cleanup temporary files, and complete
1284# config.log. We remove comments because anyway the quotes in there
1285# would cause problems or look ugly.
1286# WARNING: Be sure not to use single quotes in there, as some shells,
1287# such as our DU 5.0 friend, will then `close' the trap.
1288trap 'exit_status=$?
1289 # Save into config.log some information that might help in debugging.
1290 {
1291 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001292
John Criswell7a73b802003-06-30 21:59:07 +00001293 cat <<\_ASBOX
1294## ---------------- ##
1295## Cache variables. ##
1296## ---------------- ##
1297_ASBOX
1298 echo
1299 # The following way of writing the cache mishandles newlines in values,
1300{
1301 (set) 2>&1 |
1302 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1303 *ac_space=\ *)
1304 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001305 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001307 ;;
1308 *)
1309 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001310 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001311 ;;
1312 esac;
1313}
1314 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001315
1316 cat <<\_ASBOX
1317## ----------------- ##
1318## Output variables. ##
1319## ----------------- ##
1320_ASBOX
1321 echo
1322 for ac_var in $ac_subst_vars
1323 do
1324 eval ac_val=$`echo $ac_var`
1325 echo "$ac_var='"'"'$ac_val'"'"'"
1326 done | sort
1327 echo
1328
1329 if test -n "$ac_subst_files"; then
1330 cat <<\_ASBOX
1331## ------------- ##
1332## Output files. ##
1333## ------------- ##
1334_ASBOX
1335 echo
1336 for ac_var in $ac_subst_files
1337 do
1338 eval ac_val=$`echo $ac_var`
Reid Spencer2706f8c2004-09-19 23:53:36 +00001339 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001340 done | sort
1341 echo
1342 fi
1343
John Criswell7a73b802003-06-30 21:59:07 +00001344 if test -s confdefs.h; then
1345 cat <<\_ASBOX
1346## ----------- ##
1347## confdefs.h. ##
1348## ----------- ##
1349_ASBOX
1350 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001351 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001352 echo
1353 fi
1354 test "$ac_signal" != 0 &&
1355 echo "$as_me: caught signal $ac_signal"
1356 echo "$as_me: exit $exit_status"
1357 } >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00001358 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001359 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1360 exit $exit_status
1361 ' 0
1362for ac_signal in 1 2 13 15; do
1363 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1364done
1365ac_signal=0
1366
1367# confdefs.h avoids OS command line length limits that DEFS can exceed.
1368rm -rf conftest* confdefs.h
1369# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1370echo >confdefs.h
1371
1372# Predefined preprocessor variables.
1373
1374cat >>confdefs.h <<_ACEOF
1375#define PACKAGE_NAME "$PACKAGE_NAME"
1376_ACEOF
1377
1378
1379cat >>confdefs.h <<_ACEOF
1380#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1381_ACEOF
1382
1383
1384cat >>confdefs.h <<_ACEOF
1385#define PACKAGE_VERSION "$PACKAGE_VERSION"
1386_ACEOF
1387
1388
1389cat >>confdefs.h <<_ACEOF
1390#define PACKAGE_STRING "$PACKAGE_STRING"
1391_ACEOF
1392
1393
1394cat >>confdefs.h <<_ACEOF
1395#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1396_ACEOF
1397
1398
1399# Let the site file select an alternate cache file if it wants to.
1400# Prefer explicitly selected file to automatically selected ones.
1401if test -z "$CONFIG_SITE"; then
1402 if test "x$prefix" != xNONE; then
1403 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1404 else
1405 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1406 fi
1407fi
1408for ac_site_file in $CONFIG_SITE; do
1409 if test -r "$ac_site_file"; then
1410 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1411echo "$as_me: loading site script $ac_site_file" >&6;}
1412 sed 's/^/| /' "$ac_site_file" >&5
1413 . "$ac_site_file"
1414 fi
1415done
1416
1417if test -r "$cache_file"; then
1418 # Some versions of bash will fail to source /dev/null (special
1419 # files actually), so we avoid doing that.
1420 if test -f "$cache_file"; then
1421 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1422echo "$as_me: loading cache $cache_file" >&6;}
1423 case $cache_file in
1424 [\\/]* | ?:[\\/]* ) . $cache_file;;
1425 *) . ./$cache_file;;
1426 esac
1427 fi
1428else
1429 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1430echo "$as_me: creating cache $cache_file" >&6;}
1431 >$cache_file
1432fi
1433
1434# Check that the precious variables saved in the cache have kept the same
1435# value.
1436ac_cache_corrupted=false
1437for ac_var in `(set) 2>&1 |
Reid Spencer2706f8c2004-09-19 23:53:36 +00001438 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001439 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1440 eval ac_new_set=\$ac_env_${ac_var}_set
1441 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1442 eval ac_new_val="\$ac_env_${ac_var}_value"
1443 case $ac_old_set,$ac_new_set in
1444 set,)
1445 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1446echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1447 ac_cache_corrupted=: ;;
1448 ,set)
1449 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1450echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1451 ac_cache_corrupted=: ;;
1452 ,);;
1453 *)
1454 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00001455 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001456echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001457 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001458echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001459 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001460echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00001461 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001462 fi;;
1463 esac
1464 # Pass precious variables to config.status.
1465 if test "$ac_new_set" = set; then
1466 case $ac_new_val in
1467 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1468 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1469 *) ac_arg=$ac_var=$ac_new_val ;;
1470 esac
1471 case " $ac_configure_args " in
1472 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1473 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1474 esac
1475 fi
1476done
1477if $ac_cache_corrupted; then
1478 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1479echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1480 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1481echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1482 { (exit 1); exit 1; }; }
1483fi
1484
1485ac_ext=c
1486ac_cpp='$CPP $CPPFLAGS'
1487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489ac_compiler_gnu=$ac_cv_c_compiler_gnu
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
John Criswell0c38eaf2003-09-10 15:17:25 +00001517
John Criswell7a73b802003-06-30 21:59:07 +00001518ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001519for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001520 if test -f $ac_dir/install-sh; then
1521 ac_aux_dir=$ac_dir
1522 ac_install_sh="$ac_aux_dir/install-sh -c"
1523 break
1524 elif test -f $ac_dir/install.sh; then
1525 ac_aux_dir=$ac_dir
1526 ac_install_sh="$ac_aux_dir/install.sh -c"
1527 break
1528 elif test -f $ac_dir/shtool; then
1529 ac_aux_dir=$ac_dir
1530 ac_install_sh="$ac_aux_dir/shtool install -c"
1531 break
1532 fi
1533done
1534if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001535 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1536echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001537 { (exit 1); exit 1; }; }
1538fi
1539ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1540ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1541ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1542
John Criswell392aaa32003-07-22 19:18:09 +00001543
Reid Spencer2706f8c2004-09-19 23:53:36 +00001544
1545if test ${srcdir} != "." ; then
1546 if test -f ${srcdir}/include/llvm/Config/config.h ; then
John Criswell1b824322003-09-15 17:19:42 +00001547 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001548echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1549 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001550 fi
John Criswell93e1c722003-09-15 17:04:06 +00001551fi
1552
John Criswell33a911a2003-11-25 20:36:46 +00001553for i in `ls ${srcdir}/projects`
1554do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001555 if test -d ${srcdir}/projects/${i} ; then
1556 case ${i} in
1557 "CVS") ;;
1558 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001559
Reid Spencer4d68ba22004-09-07 16:35:45 +00001560subdirs="$subdirs projects/sample"
1561 ;;
1562 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001563
Reid Spencer4d68ba22004-09-07 16:35:45 +00001564subdirs="$subdirs projects/Stacker"
1565 ;;
1566 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001567
Reid Spencer4d68ba22004-09-07 16:35:45 +00001568subdirs="$subdirs projects/llvm-test"
1569 ;;
1570 "llvm-reopt")
1571
1572subdirs="$subdirs projects/llvm-reopt"
1573;;
1574 "llvm-gcc")
1575
1576subdirs="$subdirs projects/llvm-gcc"
1577 ;;
Reid Spencer641f7ef2004-09-20 22:14:56 +00001578 "Java")
Reid Spencer4d68ba22004-09-07 16:35:45 +00001579
Reid Spencer641f7ef2004-09-20 22:14:56 +00001580subdirs="$subdirs projects/Java"
1581 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001582 "llvm-tv")
1583
1584subdirs="$subdirs projects/llvm-tv"
1585 ;;
1586 "llvm-fefw")
1587
1588subdirs="$subdirs projects/llvm-fefw"
1589 ;;
1590 *)
Alkis Evlogimenosa281b6fa2004-09-27 07:35:19 +00001591 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1592echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001593 ;;
Reid Spencer4d68ba22004-09-07 16:35:45 +00001594 esac
John Criswell33a911a2003-11-25 20:36:46 +00001595 fi
1596done
John Criswell559a6c12003-09-30 16:31:48 +00001597
Reid Spencer551ccae2004-09-01 22:55:40 +00001598 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001599
John Criswelldc76e322004-07-23 15:40:57 +00001600
John Criswell40468462004-09-24 21:19:06 +00001601 ac_config_files="$ac_config_files Makefile.config"
John Criswell5fbb1f82004-09-24 13:28:51 +00001602
1603 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
John Criswelldc76e322004-07-23 15:40:57 +00001604
John Criswell9f011862004-09-24 18:28:00 +00001605 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
1606
1607 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
1608
John Criswell40468462004-09-24 21:19:06 +00001609 ac_config_headers="$ac_config_headers include/llvm/Support/ThreadSupport.h"
1610
1611 ac_config_headers="$ac_config_headers include/llvm/ADT/iterator"
1612
John Criswelldc76e322004-07-23 15:40:57 +00001613
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
Reid Spencer5f285392004-08-24 16:32:21 +00001620 ac_config_commands="$ac_config_commands examples/Makefile"
1621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001624
1625
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001627
1628
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001630
1631
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswellf424d742003-10-07 21:13:47 +00001635 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1636
1637
1638 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001642
1643
Misha Brukman591edc62004-10-14 18:59:42 +00001644 ac_config_commands="$ac_config_commands tools/Makefile.JIT"
1645
1646
Brian Gaekec45be042003-10-07 06:01:34 +00001647 ac_config_commands="$ac_config_commands utils/Makefile"
1648
1649
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001651
1652
John Criswell392aaa32003-07-22 19:18:09 +00001653
John Criswell7a73b802003-06-30 21:59:07 +00001654# Find a good install program. We prefer a C program (faster),
1655# so one script is as good as another. But avoid the broken or
1656# incompatible versions:
1657# SysV /etc/install, /usr/sbin/install
1658# SunOS /usr/etc/install
1659# IRIX /sbin/install
1660# AIX /bin/install
1661# AmigaOS /C/install, which installs bootblocks on floppy discs
1662# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1663# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1664# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Reid Spencer2706f8c2004-09-19 23:53:36 +00001665# OS/2's system install, which has a completely different semantic
John Criswell7a73b802003-06-30 21:59:07 +00001666# ./install, which can be erroneously created by make from ./install.sh.
1667echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1668echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1669if test -z "$INSTALL"; then
1670if test "${ac_cv_path_install+set}" = set; then
1671 echo $ECHO_N "(cached) $ECHO_C" >&6
1672else
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674for as_dir in $PATH
1675do
1676 IFS=$as_save_IFS
1677 test -z "$as_dir" && as_dir=.
1678 # Account for people who put trailing slashes in PATH elements.
1679case $as_dir/ in
1680 ./ | .// | /cC/* | \
1681 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001682 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
John Criswell7a73b802003-06-30 21:59:07 +00001683 /usr/ucb/* ) ;;
1684 *)
1685 # OSF1 and SCO ODT 3.0 have their own names for install.
1686 # Don't use installbsd from OSF since it installs stuff as root
1687 # by default.
1688 for ac_prog in ginstall scoinst install; do
1689 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencer2706f8c2004-09-19 23:53:36 +00001690 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1691 if test $ac_prog = install &&
1692 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1693 # AIX install. It has an incompatible calling convention.
1694 :
1695 elif test $ac_prog = install &&
1696 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1697 # program-specific install script used by HP pwplus--don't use.
1698 :
1699 else
1700 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1701 break 3
1702 fi
1703 fi
John Criswell7a73b802003-06-30 21:59:07 +00001704 done
1705 done
1706 ;;
1707esac
1708done
1709
1710
1711fi
1712 if test "${ac_cv_path_install+set}" = set; then
1713 INSTALL=$ac_cv_path_install
1714 else
1715 # As a last resort, use the slow shell script. We don't cache a
1716 # path for INSTALL within a source directory, because that will
1717 # break other packages using the cache if that directory is
1718 # removed, or if the path is relative.
1719 INSTALL=$ac_install_sh
1720 fi
1721fi
1722echo "$as_me:$LINENO: result: $INSTALL" >&5
1723echo "${ECHO_T}$INSTALL" >&6
1724
1725# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1726# It thinks the first close brace ends the variable substitution.
1727test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1728
1729test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1730
1731test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1732
1733
1734# Make sure we can run config.sub.
1735$ac_config_sub sun4 >/dev/null 2>&1 ||
1736 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1737echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1738 { (exit 1); exit 1; }; }
1739
1740echo "$as_me:$LINENO: checking build system type" >&5
1741echo $ECHO_N "checking build system type... $ECHO_C" >&6
1742if test "${ac_cv_build+set}" = set; then
1743 echo $ECHO_N "(cached) $ECHO_C" >&6
1744else
1745 ac_cv_build_alias=$build_alias
1746test -z "$ac_cv_build_alias" &&
1747 ac_cv_build_alias=`$ac_config_guess`
1748test -z "$ac_cv_build_alias" &&
1749 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1750echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1751 { (exit 1); exit 1; }; }
1752ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1753 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1754echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1755 { (exit 1); exit 1; }; }
1756
1757fi
1758echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1759echo "${ECHO_T}$ac_cv_build" >&6
1760build=$ac_cv_build
1761build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1762build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1763build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1764
1765
1766echo "$as_me:$LINENO: checking host system type" >&5
1767echo $ECHO_N "checking host system type... $ECHO_C" >&6
1768if test "${ac_cv_host+set}" = set; then
1769 echo $ECHO_N "(cached) $ECHO_C" >&6
1770else
1771 ac_cv_host_alias=$host_alias
1772test -z "$ac_cv_host_alias" &&
1773 ac_cv_host_alias=$ac_cv_build_alias
1774ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1775 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1776echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1777 { (exit 1); exit 1; }; }
1778
1779fi
1780echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1781echo "${ECHO_T}$ac_cv_host" >&6
1782host=$ac_cv_host
1783host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1784host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1785host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1786
1787
1788echo "$as_me:$LINENO: checking target system type" >&5
1789echo $ECHO_N "checking target system type... $ECHO_C" >&6
1790if test "${ac_cv_target+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1792else
1793 ac_cv_target_alias=$target_alias
1794test "x$ac_cv_target_alias" = "x" &&
1795 ac_cv_target_alias=$ac_cv_host_alias
1796ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1797 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1798echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1799 { (exit 1); exit 1; }; }
1800
1801fi
1802echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1803echo "${ECHO_T}$ac_cv_target" >&6
1804target=$ac_cv_target
1805target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1806target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1807target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1808
1809
1810# The aliases save the names the user supplied, while $host etc.
1811# will get canonicalized.
1812test -n "$target_alias" &&
1813 test "$program_prefix$program_suffix$program_transform_name" = \
1814 NONENONEs,x,x, &&
1815 program_prefix=${target_alias}-
1816
Reid Spencer73fb5482004-08-31 14:20:36 +00001817
1818echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1819echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001820case $build in
Reid Spencer73fb5482004-08-31 14:20:36 +00001821 *-*-aix*)
1822 OS=AIX
1823
1824 platform_type="AIX"
1825 ;;
1826 *-*-cygwin*)
1827 OS=Cygwin
1828
1829 platform_type="Cygwin"
1830 ;;
1831 *-*-darwin*)
1832 OS=Darwin
1833
1834 platform_type="Darwin"
1835 ;;
1836 *-*-freebsd*)
1837 OS=Linux
1838
Reid Spencera11e4db2004-08-31 18:03:23 +00001839 platform_type="FreeBSD"
Reid Spencer73fb5482004-08-31 14:20:36 +00001840 ;;
1841 *-*-interix*)
1842 OS=SunOS
1843
Reid Spencera11e4db2004-08-31 18:03:23 +00001844 platform_type="Interix"
Reid Spencer73fb5482004-08-31 14:20:36 +00001845 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001846 *-*-linux*)
1847 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001848
Reid Spencerde8c47f2004-08-29 19:35:28 +00001849 platform_type="Linux"
1850 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1851 then
1852 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001853
Reid Spencerde8c47f2004-08-29 19:35:28 +00001854 fi
1855 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001856 *-*-solaris*)
1857 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001858
Reid Spencerde8c47f2004-08-29 19:35:28 +00001859 platform_type="SunOS"
1860 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1861 then
1862 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001863
Reid Spencerde8c47f2004-08-29 19:35:28 +00001864 fi
1865 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001866 *-*-win32*)
1867 OS=Win32
John Criswell7a73b802003-06-30 21:59:07 +00001868
Reid Spencerde8c47f2004-08-29 19:35:28 +00001869 platform_type="Win32"
1870 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +00001871 *-*-mingw*)
1872 OS=Win32
1873
1874 platform_type="Win32"
1875 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001876 *)
1877 OS=Unknown
1878
1879 platform_type="Unknown"
1880 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001881esac
1882
Reid Spencer73fb5482004-08-31 14:20:36 +00001883if test "$platform_type" = "Unknown" ; then
Reid Spencer886e9512004-08-31 01:34:10 +00001884 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1885echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1886 { (exit 1); exit 1; }; }
1887fi
1888
Reid Spencerde8c47f2004-08-29 19:35:28 +00001889 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1890
1891
Reid Spencer73fb5482004-08-31 14:20:36 +00001892
1893echo "$as_me:$LINENO: checking target architecture" >&5
1894echo $ECHO_N "checking target architecture... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001895case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001896 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001897
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001898 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001899esac
1900
John Criswell76595452003-07-01 22:07:39 +00001901case $target in
Reid Spencer73fb5482004-08-31 14:20:36 +00001902 i*86-*)
1903 ARCH="x86"
1904 ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001905
Reid Spencer73fb5482004-08-31 14:20:36 +00001906 ;;
1907 sparc*-*)
1908 ARCH="Sparc"
1909 ARCH=Sparc
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001910
Reid Spencer73fb5482004-08-31 14:20:36 +00001911 ;;
1912 powerpc*-*)
1913 ARCH="PowerPC"
1914 ARCH=PowerPC
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001915
Reid Spencer73fb5482004-08-31 14:20:36 +00001916 ;;
1917 *)
1918 ARCH="Unknown"
1919 ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001920
Reid Spencer73fb5482004-08-31 14:20:36 +00001921 ;;
John Criswell76595452003-07-01 22:07:39 +00001922esac
1923
Reid Spencer73fb5482004-08-31 14:20:36 +00001924echo "$as_me:$LINENO: result: $ARCH" >&5
1925echo "${ECHO_T}$ARCH" >&6
1926
John Criswell7a73b802003-06-30 21:59:07 +00001927ac_ext=cc
1928ac_cpp='$CXXCPP $CPPFLAGS'
1929ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1930ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1931ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1932if test -n "$ac_tool_prefix"; then
1933 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1934 do
1935 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1936set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1937echo "$as_me:$LINENO: checking for $ac_word" >&5
1938echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939if test "${ac_cv_prog_CXX+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941else
1942 if test -n "$CXX"; then
1943 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1944else
1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946for as_dir in $PATH
1947do
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 break 2
1955 fi
1956done
1957done
1958
1959fi
1960fi
1961CXX=$ac_cv_prog_CXX
1962if test -n "$CXX"; then
1963 echo "$as_me:$LINENO: result: $CXX" >&5
1964echo "${ECHO_T}$CXX" >&6
1965else
1966 echo "$as_me:$LINENO: result: no" >&5
1967echo "${ECHO_T}no" >&6
1968fi
1969
1970 test -n "$CXX" && break
1971 done
1972fi
1973if test -z "$CXX"; then
1974 ac_ct_CXX=$CXX
1975 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1976do
1977 # Extract the first word of "$ac_prog", so it can be a program name with args.
1978set dummy $ac_prog; ac_word=$2
1979echo "$as_me:$LINENO: checking for $ac_word" >&5
1980echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1981if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1982 echo $ECHO_N "(cached) $ECHO_C" >&6
1983else
1984 if test -n "$ac_ct_CXX"; then
1985 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1986else
1987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988for as_dir in $PATH
1989do
1990 IFS=$as_save_IFS
1991 test -z "$as_dir" && as_dir=.
1992 for ac_exec_ext in '' $ac_executable_extensions; do
1993 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1994 ac_cv_prog_ac_ct_CXX="$ac_prog"
1995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1996 break 2
1997 fi
1998done
1999done
2000
2001fi
2002fi
2003ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2004if test -n "$ac_ct_CXX"; then
2005 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2006echo "${ECHO_T}$ac_ct_CXX" >&6
2007else
2008 echo "$as_me:$LINENO: result: no" >&5
2009echo "${ECHO_T}no" >&6
2010fi
2011
2012 test -n "$ac_ct_CXX" && break
2013done
2014test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2015
2016 CXX=$ac_ct_CXX
2017fi
2018
2019
2020# Provide some information about the compiler.
2021echo "$as_me:$LINENO:" \
2022 "checking for C++ compiler version" >&5
2023ac_compiler=`set X $ac_compile; echo $2`
2024{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2025 (eval $ac_compiler --version </dev/null >&5) 2>&5
2026 ac_status=$?
2027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2028 (exit $ac_status); }
2029{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2030 (eval $ac_compiler -v </dev/null >&5) 2>&5
2031 ac_status=$?
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }
2034{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2035 (eval $ac_compiler -V </dev/null >&5) 2>&5
2036 ac_status=$?
2037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038 (exit $ac_status); }
2039
2040cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002041/* confdefs.h. */
2042_ACEOF
2043cat confdefs.h >>conftest.$ac_ext
2044cat >>conftest.$ac_ext <<_ACEOF
2045/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002046
John Criswell7a73b802003-06-30 21:59:07 +00002047int
2048main ()
2049{
2050
2051 ;
2052 return 0;
2053}
2054_ACEOF
2055ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002056ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002057# Try to create an executable without -o first, disregard a.out.
2058# It will help us diagnose broken compilers, and finding out an intuition
2059# of exeext.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002060echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2061echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002062ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2063if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2064 (eval $ac_link_default) 2>&5
2065 ac_status=$?
2066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2067 (exit $ac_status); }; then
2068 # Find the output, starting from the most likely. This scheme is
2069# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2070# resort.
2071
2072# Be careful to initialize this variable, since it used to be cached.
2073# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2074ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002075# b.out is created by i960 compilers.
2076for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2077do
2078 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002079 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002081 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002082 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002083 # This is the source file.
2084 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002085 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002086 # We found the default executable, but exeext='' is most
2087 # certainly right.
2088 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002089 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002090 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2091 # FIXME: I believe we export ac_cv_exeext for Libtool,
2092 # but it would be cool to find out if it's true. Does anybody
2093 # maintain Libtool? --akim.
2094 export ac_cv_exeext
2095 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002096 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002097 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002098 esac
2099done
2100else
2101 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002102sed 's/^/| /' conftest.$ac_ext >&5
2103
2104{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2105See \`config.log' for more details." >&5
2106echo "$as_me: error: C++ compiler cannot create executables
2107See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002108 { (exit 77); exit 77; }; }
2109fi
2110
2111ac_exeext=$ac_cv_exeext
2112echo "$as_me:$LINENO: result: $ac_file" >&5
2113echo "${ECHO_T}$ac_file" >&6
2114
2115# Check the compiler produces executables we can run. If not, either
2116# the compiler is broken, or we cross compile.
2117echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2118echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2119# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2120# If not cross compiling, check that we can run a simple program.
2121if test "$cross_compiling" != yes; then
2122 if { ac_try='./$ac_file'
2123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2124 (eval $ac_try) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; }; then
2128 cross_compiling=no
2129 else
2130 if test "$cross_compiling" = maybe; then
2131 cross_compiling=yes
2132 else
2133 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002134If you meant to cross compile, use \`--host'.
2135See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002136echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002137If you meant to cross compile, use \`--host'.
2138See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002139 { (exit 1); exit 1; }; }
2140 fi
2141 fi
2142fi
2143echo "$as_me:$LINENO: result: yes" >&5
2144echo "${ECHO_T}yes" >&6
2145
John Criswell0c38eaf2003-09-10 15:17:25 +00002146rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002147ac_clean_files=$ac_clean_files_save
2148# Check the compiler produces executables we can run. If not, either
2149# the compiler is broken, or we cross compile.
2150echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2151echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2152echo "$as_me:$LINENO: result: $cross_compiling" >&5
2153echo "${ECHO_T}$cross_compiling" >&6
2154
2155echo "$as_me:$LINENO: checking for suffix of executables" >&5
2156echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2158 (eval $ac_link) 2>&5
2159 ac_status=$?
2160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2161 (exit $ac_status); }; then
2162 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2163# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2164# work properly (i.e., refer to `conftest.exe'), while it won't with
2165# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002166for ac_file in conftest.exe conftest conftest.*; do
2167 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002168 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002169 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002170 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002171 export ac_cv_exeext
2172 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002173 * ) break;;
2174 esac
2175done
2176else
John Criswell0c38eaf2003-09-10 15:17:25 +00002177 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2178See \`config.log' for more details." >&5
2179echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2180See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002181 { (exit 1); exit 1; }; }
2182fi
2183
2184rm -f conftest$ac_cv_exeext
2185echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2186echo "${ECHO_T}$ac_cv_exeext" >&6
2187
2188rm -f conftest.$ac_ext
2189EXEEXT=$ac_cv_exeext
2190ac_exeext=$EXEEXT
2191echo "$as_me:$LINENO: checking for suffix of object files" >&5
2192echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2193if test "${ac_cv_objext+set}" = set; then
2194 echo $ECHO_N "(cached) $ECHO_C" >&6
2195else
2196 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002197/* confdefs.h. */
2198_ACEOF
2199cat confdefs.h >>conftest.$ac_ext
2200cat >>conftest.$ac_ext <<_ACEOF
2201/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002202
John Criswell7a73b802003-06-30 21:59:07 +00002203int
2204main ()
2205{
2206
2207 ;
2208 return 0;
2209}
2210_ACEOF
2211rm -f conftest.o conftest.obj
2212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213 (eval $ac_compile) 2>&5
2214 ac_status=$?
2215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2216 (exit $ac_status); }; then
2217 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2218 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002219 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002220 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2221 break;;
2222 esac
2223done
2224else
2225 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002226sed 's/^/| /' conftest.$ac_ext >&5
2227
2228{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2229See \`config.log' for more details." >&5
2230echo "$as_me: error: cannot compute suffix of object files: cannot compile
2231See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002232 { (exit 1); exit 1; }; }
2233fi
2234
2235rm -f conftest.$ac_cv_objext conftest.$ac_ext
2236fi
2237echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2238echo "${ECHO_T}$ac_cv_objext" >&6
2239OBJEXT=$ac_cv_objext
2240ac_objext=$OBJEXT
2241echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2242echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2243if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2244 echo $ECHO_N "(cached) $ECHO_C" >&6
2245else
2246 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002247/* confdefs.h. */
2248_ACEOF
2249cat confdefs.h >>conftest.$ac_ext
2250cat >>conftest.$ac_ext <<_ACEOF
2251/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002252
John Criswell7a73b802003-06-30 21:59:07 +00002253int
2254main ()
2255{
2256#ifndef __GNUC__
2257 choke me
2258#endif
2259
2260 ;
2261 return 0;
2262}
2263_ACEOF
2264rm -f conftest.$ac_objext
2265if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002266 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002267 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002268 grep -v '^ *+' conftest.er1 >conftest.err
2269 rm -f conftest.er1
2270 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002273 { ac_try='test -z "$ac_cxx_werror_flag"
2274 || test ! -s conftest.err'
2275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2276 (eval $ac_try) 2>&5
2277 ac_status=$?
2278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2279 (exit $ac_status); }; } &&
2280 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2282 (eval $ac_try) 2>&5
2283 ac_status=$?
2284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2285 (exit $ac_status); }; }; then
2286 ac_compiler_gnu=yes
2287else
2288 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002289sed 's/^/| /' conftest.$ac_ext >&5
2290
John Criswell7a73b802003-06-30 21:59:07 +00002291ac_compiler_gnu=no
2292fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002293rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002294ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2295
2296fi
2297echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2298echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2299GXX=`test $ac_compiler_gnu = yes && echo yes`
2300ac_test_CXXFLAGS=${CXXFLAGS+set}
2301ac_save_CXXFLAGS=$CXXFLAGS
2302CXXFLAGS="-g"
2303echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2304echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2305if test "${ac_cv_prog_cxx_g+set}" = set; then
2306 echo $ECHO_N "(cached) $ECHO_C" >&6
2307else
2308 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002309/* confdefs.h. */
2310_ACEOF
2311cat confdefs.h >>conftest.$ac_ext
2312cat >>conftest.$ac_ext <<_ACEOF
2313/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002314
John Criswell7a73b802003-06-30 21:59:07 +00002315int
2316main ()
2317{
2318
2319 ;
2320 return 0;
2321}
2322_ACEOF
2323rm -f conftest.$ac_objext
2324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002325 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002326 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002327 grep -v '^ *+' conftest.er1 >conftest.err
2328 rm -f conftest.er1
2329 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002332 { ac_try='test -z "$ac_cxx_werror_flag"
2333 || test ! -s conftest.err'
2334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335 (eval $ac_try) 2>&5
2336 ac_status=$?
2337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338 (exit $ac_status); }; } &&
2339 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2341 (eval $ac_try) 2>&5
2342 ac_status=$?
2343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2344 (exit $ac_status); }; }; then
2345 ac_cv_prog_cxx_g=yes
2346else
2347 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002348sed 's/^/| /' conftest.$ac_ext >&5
2349
John Criswell7a73b802003-06-30 21:59:07 +00002350ac_cv_prog_cxx_g=no
2351fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002352rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002353fi
2354echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2355echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2356if test "$ac_test_CXXFLAGS" = set; then
2357 CXXFLAGS=$ac_save_CXXFLAGS
2358elif test $ac_cv_prog_cxx_g = yes; then
2359 if test "$GXX" = yes; then
2360 CXXFLAGS="-g -O2"
2361 else
2362 CXXFLAGS="-g"
2363 fi
2364else
2365 if test "$GXX" = yes; then
2366 CXXFLAGS="-O2"
2367 else
2368 CXXFLAGS=
2369 fi
2370fi
2371for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002372 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002373 'extern "C" void std::exit (int) throw (); using std::exit;' \
2374 'extern "C" void std::exit (int); using std::exit;' \
2375 'extern "C" void exit (int) throw ();' \
2376 'extern "C" void exit (int);' \
2377 'void exit (int);'
2378do
2379 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002380/* confdefs.h. */
2381_ACEOF
2382cat confdefs.h >>conftest.$ac_ext
2383cat >>conftest.$ac_ext <<_ACEOF
2384/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002385$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002386#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002387int
2388main ()
2389{
2390exit (42);
2391 ;
2392 return 0;
2393}
2394_ACEOF
2395rm -f conftest.$ac_objext
2396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002397 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002398 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002399 grep -v '^ *+' conftest.er1 >conftest.err
2400 rm -f conftest.er1
2401 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002404 { ac_try='test -z "$ac_cxx_werror_flag"
2405 || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 :
2418else
2419 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002420sed 's/^/| /' conftest.$ac_ext >&5
2421
John Criswell7a73b802003-06-30 21:59:07 +00002422continue
2423fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002425 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002426/* confdefs.h. */
2427_ACEOF
2428cat confdefs.h >>conftest.$ac_ext
2429cat >>conftest.$ac_ext <<_ACEOF
2430/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002431$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002432int
2433main ()
2434{
2435exit (42);
2436 ;
2437 return 0;
2438}
2439_ACEOF
2440rm -f conftest.$ac_objext
2441if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002442 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002443 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002444 grep -v '^ *+' conftest.er1 >conftest.err
2445 rm -f conftest.er1
2446 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002449 { ac_try='test -z "$ac_cxx_werror_flag"
2450 || test ! -s conftest.err'
2451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2452 (eval $ac_try) 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; } &&
2456 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2458 (eval $ac_try) 2>&5
2459 ac_status=$?
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); }; }; then
2462 break
2463else
2464 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002465sed 's/^/| /' conftest.$ac_ext >&5
2466
John Criswell7a73b802003-06-30 21:59:07 +00002467fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002469done
2470rm -f conftest*
2471if test -n "$ac_declaration"; then
2472 echo '#ifdef __cplusplus' >>confdefs.h
2473 echo $ac_declaration >>confdefs.h
2474 echo '#endif' >>confdefs.h
2475fi
2476
2477ac_ext=c
2478ac_cpp='$CPP $CPPFLAGS'
2479ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481ac_compiler_gnu=$ac_cv_c_compiler_gnu
2482
2483ac_ext=c
2484ac_cpp='$CPP $CPPFLAGS'
2485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488if test -n "$ac_tool_prefix"; then
2489 for ac_prog in gcc
2490 do
2491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2492set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2493echo "$as_me:$LINENO: checking for $ac_word" >&5
2494echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2495if test "${ac_cv_prog_CC+set}" = set; then
2496 echo $ECHO_N "(cached) $ECHO_C" >&6
2497else
2498 if test -n "$CC"; then
2499 ac_cv_prog_CC="$CC" # Let the user override the test.
2500else
2501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502for as_dir in $PATH
2503do
2504 IFS=$as_save_IFS
2505 test -z "$as_dir" && as_dir=.
2506 for ac_exec_ext in '' $ac_executable_extensions; do
2507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2508 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2510 break 2
2511 fi
2512done
2513done
2514
2515fi
2516fi
2517CC=$ac_cv_prog_CC
2518if test -n "$CC"; then
2519 echo "$as_me:$LINENO: result: $CC" >&5
2520echo "${ECHO_T}$CC" >&6
2521else
2522 echo "$as_me:$LINENO: result: no" >&5
2523echo "${ECHO_T}no" >&6
2524fi
2525
2526 test -n "$CC" && break
2527 done
2528fi
2529if test -z "$CC"; then
2530 ac_ct_CC=$CC
2531 for ac_prog in gcc
2532do
2533 # Extract the first word of "$ac_prog", so it can be a program name with args.
2534set dummy $ac_prog; ac_word=$2
2535echo "$as_me:$LINENO: checking for $ac_word" >&5
2536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2537if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2539else
2540 if test -n "$ac_ct_CC"; then
2541 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2542else
2543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544for as_dir in $PATH
2545do
2546 IFS=$as_save_IFS
2547 test -z "$as_dir" && as_dir=.
2548 for ac_exec_ext in '' $ac_executable_extensions; do
2549 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2550 ac_cv_prog_ac_ct_CC="$ac_prog"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2552 break 2
2553 fi
2554done
2555done
2556
2557fi
2558fi
2559ac_ct_CC=$ac_cv_prog_ac_ct_CC
2560if test -n "$ac_ct_CC"; then
2561 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2562echo "${ECHO_T}$ac_ct_CC" >&6
2563else
2564 echo "$as_me:$LINENO: result: no" >&5
2565echo "${ECHO_T}no" >&6
2566fi
2567
2568 test -n "$ac_ct_CC" && break
2569done
2570
2571 CC=$ac_ct_CC
2572fi
2573
2574
John Criswell0c38eaf2003-09-10 15:17:25 +00002575test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2576See \`config.log' for more details." >&5
2577echo "$as_me: error: no acceptable C compiler found in \$PATH
2578See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002579 { (exit 1); exit 1; }; }
2580
2581# Provide some information about the compiler.
2582echo "$as_me:$LINENO:" \
2583 "checking for C compiler version" >&5
2584ac_compiler=`set X $ac_compile; echo $2`
2585{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2586 (eval $ac_compiler --version </dev/null >&5) 2>&5
2587 ac_status=$?
2588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589 (exit $ac_status); }
2590{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2591 (eval $ac_compiler -v </dev/null >&5) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }
2595{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2596 (eval $ac_compiler -V </dev/null >&5) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }
2600
2601echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2602echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2603if test "${ac_cv_c_compiler_gnu+set}" = set; then
2604 echo $ECHO_N "(cached) $ECHO_C" >&6
2605else
2606 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002607/* confdefs.h. */
2608_ACEOF
2609cat confdefs.h >>conftest.$ac_ext
2610cat >>conftest.$ac_ext <<_ACEOF
2611/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002612
John Criswell7a73b802003-06-30 21:59:07 +00002613int
2614main ()
2615{
2616#ifndef __GNUC__
2617 choke me
2618#endif
2619
2620 ;
2621 return 0;
2622}
2623_ACEOF
2624rm -f conftest.$ac_objext
2625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002626 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002627 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002628 grep -v '^ *+' conftest.er1 >conftest.err
2629 rm -f conftest.er1
2630 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002633 { ac_try='test -z "$ac_c_werror_flag"
2634 || test ! -s conftest.err'
2635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2636 (eval $ac_try) 2>&5
2637 ac_status=$?
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); }; } &&
2640 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642 (eval $ac_try) 2>&5
2643 ac_status=$?
2644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645 (exit $ac_status); }; }; then
2646 ac_compiler_gnu=yes
2647else
2648 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002649sed 's/^/| /' conftest.$ac_ext >&5
2650
John Criswell7a73b802003-06-30 21:59:07 +00002651ac_compiler_gnu=no
2652fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002653rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002654ac_cv_c_compiler_gnu=$ac_compiler_gnu
2655
2656fi
2657echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2658echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2659GCC=`test $ac_compiler_gnu = yes && echo yes`
2660ac_test_CFLAGS=${CFLAGS+set}
2661ac_save_CFLAGS=$CFLAGS
2662CFLAGS="-g"
2663echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2664echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2665if test "${ac_cv_prog_cc_g+set}" = set; then
2666 echo $ECHO_N "(cached) $ECHO_C" >&6
2667else
2668 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002669/* confdefs.h. */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002674
John Criswell7a73b802003-06-30 21:59:07 +00002675int
2676main ()
2677{
2678
2679 ;
2680 return 0;
2681}
2682_ACEOF
2683rm -f conftest.$ac_objext
2684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002685 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002686 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002687 grep -v '^ *+' conftest.er1 >conftest.err
2688 rm -f conftest.er1
2689 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002692 { ac_try='test -z "$ac_c_werror_flag"
2693 || test ! -s conftest.err'
2694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695 (eval $ac_try) 2>&5
2696 ac_status=$?
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }; } &&
2699 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701 (eval $ac_try) 2>&5
2702 ac_status=$?
2703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704 (exit $ac_status); }; }; then
2705 ac_cv_prog_cc_g=yes
2706else
2707 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002708sed 's/^/| /' conftest.$ac_ext >&5
2709
John Criswell7a73b802003-06-30 21:59:07 +00002710ac_cv_prog_cc_g=no
2711fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002713fi
2714echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2715echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2716if test "$ac_test_CFLAGS" = set; then
2717 CFLAGS=$ac_save_CFLAGS
2718elif test $ac_cv_prog_cc_g = yes; then
2719 if test "$GCC" = yes; then
2720 CFLAGS="-g -O2"
2721 else
2722 CFLAGS="-g"
2723 fi
2724else
2725 if test "$GCC" = yes; then
2726 CFLAGS="-O2"
2727 else
2728 CFLAGS=
2729 fi
2730fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002731echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2732echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2733if test "${ac_cv_prog_cc_stdc+set}" = set; then
2734 echo $ECHO_N "(cached) $ECHO_C" >&6
2735else
2736 ac_cv_prog_cc_stdc=no
2737ac_save_CC=$CC
2738cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002739/* confdefs.h. */
2740_ACEOF
2741cat confdefs.h >>conftest.$ac_ext
2742cat >>conftest.$ac_ext <<_ACEOF
2743/* end confdefs.h. */
2744#include <stdarg.h>
2745#include <stdio.h>
2746#include <sys/types.h>
2747#include <sys/stat.h>
2748/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2749struct buf { int x; };
2750FILE * (*rcsopen) (struct buf *, struct stat *, int);
2751static char *e (p, i)
2752 char **p;
2753 int i;
2754{
2755 return p[i];
2756}
2757static char *f (char * (*g) (char **, int), char **p, ...)
2758{
2759 char *s;
2760 va_list v;
2761 va_start (v,p);
2762 s = g (p, va_arg (v,int));
2763 va_end (v);
2764 return s;
2765}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002766
2767/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2768 function prototypes and stuff, but not '\xHH' hex character constants.
2769 These don't provoke an error unfortunately, instead are silently treated
2770 as 'x'. The following induces an error, until -std1 is added to get
2771 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2772 array size at least. It's necessary to write '\x00'==0 to get something
2773 that's true only with -std1. */
2774int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2775
John Criswell0c38eaf2003-09-10 15:17:25 +00002776int test (int i, double x);
2777struct s1 {int (*f) (int a);};
2778struct s2 {int (*f) (double a);};
2779int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2780int argc;
2781char **argv;
2782int
2783main ()
2784{
2785return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2786 ;
2787 return 0;
2788}
2789_ACEOF
2790# Don't try gcc -ansi; that turns off useful extensions and
2791# breaks some systems' header files.
2792# AIX -qlanglvl=ansi
2793# Ultrix and OSF/1 -std1
2794# HP-UX 10.20 and later -Ae
2795# HP-UX older versions -Aa -D_HPUX_SOURCE
2796# SVR4 -Xc -D__EXTENSIONS__
2797for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2798do
2799 CC="$ac_save_CC $ac_arg"
2800 rm -f conftest.$ac_objext
2801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002802 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00002803 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002804 grep -v '^ *+' conftest.er1 >conftest.err
2805 rm -f conftest.er1
2806 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002809 { ac_try='test -z "$ac_c_werror_flag"
2810 || test ! -s conftest.err'
2811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2812 (eval $ac_try) 2>&5
2813 ac_status=$?
2814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2815 (exit $ac_status); }; } &&
2816 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00002817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2818 (eval $ac_try) 2>&5
2819 ac_status=$?
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); }; }; then
2822 ac_cv_prog_cc_stdc=$ac_arg
2823break
2824else
2825 echo "$as_me: failed program was:" >&5
2826sed 's/^/| /' conftest.$ac_ext >&5
2827
2828fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002829rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00002830done
2831rm -f conftest.$ac_ext conftest.$ac_objext
2832CC=$ac_save_CC
2833
2834fi
2835
2836case "x$ac_cv_prog_cc_stdc" in
2837 x|xno)
2838 echo "$as_me:$LINENO: result: none needed" >&5
2839echo "${ECHO_T}none needed" >&6 ;;
2840 *)
2841 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2842echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2843 CC="$CC $ac_cv_prog_cc_stdc" ;;
2844esac
2845
John Criswell7a73b802003-06-30 21:59:07 +00002846# Some people use a C++ compiler to compile C. Since we use `exit',
2847# in C++ we need to declare it. In case someone uses the same compiler
2848# for both compiling C and C++ we need to have the C++ compiler decide
2849# the declaration of exit, since it's the most demanding environment.
2850cat >conftest.$ac_ext <<_ACEOF
2851#ifndef __cplusplus
2852 choke me
2853#endif
2854_ACEOF
2855rm -f conftest.$ac_objext
2856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002857 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002858 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002859 grep -v '^ *+' conftest.er1 >conftest.err
2860 rm -f conftest.er1
2861 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002864 { ac_try='test -z "$ac_c_werror_flag"
2865 || test ! -s conftest.err'
2866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 (eval $ac_try) 2>&5
2868 ac_status=$?
2869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2870 (exit $ac_status); }; } &&
2871 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2873 (eval $ac_try) 2>&5
2874 ac_status=$?
2875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2876 (exit $ac_status); }; }; then
2877 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002878 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002879 'extern "C" void std::exit (int) throw (); using std::exit;' \
2880 'extern "C" void std::exit (int); using std::exit;' \
2881 'extern "C" void exit (int) throw ();' \
2882 'extern "C" void exit (int);' \
2883 'void exit (int);'
2884do
2885 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002886/* confdefs.h. */
2887_ACEOF
2888cat confdefs.h >>conftest.$ac_ext
2889cat >>conftest.$ac_ext <<_ACEOF
2890/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002891$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002892#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002893int
2894main ()
2895{
2896exit (42);
2897 ;
2898 return 0;
2899}
2900_ACEOF
2901rm -f conftest.$ac_objext
2902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002903 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002904 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002905 grep -v '^ *+' conftest.er1 >conftest.err
2906 rm -f conftest.er1
2907 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002910 { ac_try='test -z "$ac_c_werror_flag"
2911 || test ! -s conftest.err'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913 (eval $ac_try) 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; } &&
2917 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 (eval $ac_try) 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2923 :
2924else
2925 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002926sed 's/^/| /' conftest.$ac_ext >&5
2927
John Criswell7a73b802003-06-30 21:59:07 +00002928continue
2929fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002931 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002932/* confdefs.h. */
2933_ACEOF
2934cat confdefs.h >>conftest.$ac_ext
2935cat >>conftest.$ac_ext <<_ACEOF
2936/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002937$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002938int
2939main ()
2940{
2941exit (42);
2942 ;
2943 return 0;
2944}
2945_ACEOF
2946rm -f conftest.$ac_objext
2947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002948 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002949 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002950 grep -v '^ *+' conftest.er1 >conftest.err
2951 rm -f conftest.er1
2952 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002955 { ac_try='test -z "$ac_c_werror_flag"
2956 || test ! -s conftest.err'
2957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 (eval $ac_try) 2>&5
2959 ac_status=$?
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); }; } &&
2962 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2964 (eval $ac_try) 2>&5
2965 ac_status=$?
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; }; then
2968 break
2969else
2970 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002971sed 's/^/| /' conftest.$ac_ext >&5
2972
John Criswell7a73b802003-06-30 21:59:07 +00002973fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002975done
2976rm -f conftest*
2977if test -n "$ac_declaration"; then
2978 echo '#ifdef __cplusplus' >>confdefs.h
2979 echo $ac_declaration >>confdefs.h
2980 echo '#endif' >>confdefs.h
2981fi
2982
2983else
2984 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002985sed 's/^/| /' conftest.$ac_ext >&5
2986
John Criswell7a73b802003-06-30 21:59:07 +00002987fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002988rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002989ac_ext=c
2990ac_cpp='$CPP $CPPFLAGS'
2991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2993ac_compiler_gnu=$ac_cv_c_compiler_gnu
2994
Reid Spencer2706f8c2004-09-19 23:53:36 +00002995if test "$GCC" != "yes"
2996then
2997 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2998echo "$as_me: error: gcc required but not found" >&2;}
2999 { (exit 1); exit 1; }; }
3000fi
John Criswell7a73b802003-06-30 21:59:07 +00003001ac_ext=c
3002ac_cpp='$CPP $CPPFLAGS'
3003ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005ac_compiler_gnu=$ac_cv_c_compiler_gnu
3006echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3007echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3008# On Suns, sometimes $CPP names a directory.
3009if test -n "$CPP" && test -d "$CPP"; then
3010 CPP=
3011fi
3012if test -z "$CPP"; then
3013 if test "${ac_cv_prog_CPP+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3015else
3016 # Double quotes because CPP needs to be expanded
3017 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3018 do
3019 ac_preproc_ok=false
3020for ac_c_preproc_warn_flag in '' yes
3021do
3022 # Use a header file that comes with gcc, so configuring glibc
3023 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003024 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3025 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003026 # On the NeXT, cc -E runs the code through the compiler's parser,
3027 # not just through cpp. "Syntax error" is here to catch this case.
3028 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003029/* confdefs.h. */
3030_ACEOF
3031cat confdefs.h >>conftest.$ac_ext
3032cat >>conftest.$ac_ext <<_ACEOF
3033/* end confdefs.h. */
3034#ifdef __STDC__
3035# include <limits.h>
3036#else
3037# include <assert.h>
3038#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00003039 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003040_ACEOF
3041if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3042 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3043 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003044 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003045 rm -f conftest.er1
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } >/dev/null; then
3049 if test -s conftest.err; then
3050 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003051 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003052 else
3053 ac_cpp_err=
3054 fi
3055else
3056 ac_cpp_err=yes
3057fi
3058if test -z "$ac_cpp_err"; then
3059 :
3060else
3061 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003062sed 's/^/| /' conftest.$ac_ext >&5
3063
John Criswell7a73b802003-06-30 21:59:07 +00003064 # Broken: fails on valid input.
3065continue
3066fi
3067rm -f conftest.err conftest.$ac_ext
3068
3069 # OK, works on sane cases. Now check whether non-existent headers
3070 # can be detected and how.
3071 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003072/* confdefs.h. */
3073_ACEOF
3074cat confdefs.h >>conftest.$ac_ext
3075cat >>conftest.$ac_ext <<_ACEOF
3076/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003077#include <ac_nonexistent.h>
3078_ACEOF
3079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3081 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003082 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003083 rm -f conftest.er1
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } >/dev/null; then
3087 if test -s conftest.err; then
3088 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003089 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003090 else
3091 ac_cpp_err=
3092 fi
3093else
3094 ac_cpp_err=yes
3095fi
3096if test -z "$ac_cpp_err"; then
3097 # Broken: success on invalid input.
3098continue
3099else
3100 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003101sed 's/^/| /' conftest.$ac_ext >&5
3102
John Criswell7a73b802003-06-30 21:59:07 +00003103 # Passes both tests.
3104ac_preproc_ok=:
3105break
3106fi
3107rm -f conftest.err conftest.$ac_ext
3108
3109done
3110# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3111rm -f conftest.err conftest.$ac_ext
3112if $ac_preproc_ok; then
3113 break
3114fi
3115
3116 done
3117 ac_cv_prog_CPP=$CPP
3118
3119fi
3120 CPP=$ac_cv_prog_CPP
3121else
3122 ac_cv_prog_CPP=$CPP
3123fi
3124echo "$as_me:$LINENO: result: $CPP" >&5
3125echo "${ECHO_T}$CPP" >&6
3126ac_preproc_ok=false
3127for ac_c_preproc_warn_flag in '' yes
3128do
3129 # Use a header file that comes with gcc, so configuring glibc
3130 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003131 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3132 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003133 # On the NeXT, cc -E runs the code through the compiler's parser,
3134 # not just through cpp. "Syntax error" is here to catch this case.
3135 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003136/* confdefs.h. */
3137_ACEOF
3138cat confdefs.h >>conftest.$ac_ext
3139cat >>conftest.$ac_ext <<_ACEOF
3140/* end confdefs.h. */
3141#ifdef __STDC__
3142# include <limits.h>
3143#else
3144# include <assert.h>
3145#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00003146 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003147_ACEOF
3148if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3149 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3150 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003151 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003152 rm -f conftest.er1
3153 cat conftest.err >&5
3154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3155 (exit $ac_status); } >/dev/null; then
3156 if test -s conftest.err; then
3157 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003158 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003159 else
3160 ac_cpp_err=
3161 fi
3162else
3163 ac_cpp_err=yes
3164fi
3165if test -z "$ac_cpp_err"; then
3166 :
3167else
3168 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003169sed 's/^/| /' conftest.$ac_ext >&5
3170
John Criswell7a73b802003-06-30 21:59:07 +00003171 # Broken: fails on valid input.
3172continue
3173fi
3174rm -f conftest.err conftest.$ac_ext
3175
3176 # OK, works on sane cases. Now check whether non-existent headers
3177 # can be detected and how.
3178 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003179/* confdefs.h. */
3180_ACEOF
3181cat confdefs.h >>conftest.$ac_ext
3182cat >>conftest.$ac_ext <<_ACEOF
3183/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003184#include <ac_nonexistent.h>
3185_ACEOF
3186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3187 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3188 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003189 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003190 rm -f conftest.er1
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } >/dev/null; then
3194 if test -s conftest.err; then
3195 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003197 else
3198 ac_cpp_err=
3199 fi
3200else
3201 ac_cpp_err=yes
3202fi
3203if test -z "$ac_cpp_err"; then
3204 # Broken: success on invalid input.
3205continue
3206else
3207 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003208sed 's/^/| /' conftest.$ac_ext >&5
3209
John Criswell7a73b802003-06-30 21:59:07 +00003210 # Passes both tests.
3211ac_preproc_ok=:
3212break
3213fi
3214rm -f conftest.err conftest.$ac_ext
3215
3216done
3217# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3218rm -f conftest.err conftest.$ac_ext
3219if $ac_preproc_ok; then
3220 :
3221else
John Criswell0c38eaf2003-09-10 15:17:25 +00003222 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3223See \`config.log' for more details." >&5
3224echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3225See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003226 { (exit 1); exit 1; }; }
3227fi
3228
3229ac_ext=c
3230ac_cpp='$CPP $CPPFLAGS'
3231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3233ac_compiler_gnu=$ac_cv_c_compiler_gnu
3234
John Criswell7a73b802003-06-30 21:59:07 +00003235if test "$GXX" != "yes"
3236then
3237 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3238echo "$as_me: error: g++ required but not found" >&2;}
3239 { (exit 1); exit 1; }; }
3240fi
3241
John Criswellde00db22003-08-25 16:49:54 +00003242gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3243if test "$gccmajor" -lt "3"
3244then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003245 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3246echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003247 { (exit 1); exit 1; }; }
3248fi
3249
John Criswell7a73b802003-06-30 21:59:07 +00003250 echo "$as_me:$LINENO: checking for GNU make" >&5
3251echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3252if test "${_cv_gnu_make_command+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3254else
3255 _cv_gnu_make_command='' ;
3256 for a in "$MAKE" make gmake gnumake ; do
3257 if test -z "$a" ; then continue ; fi ;
3258 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3259 _cv_gnu_make_command=$a ;
3260 break;
3261 fi
3262 done ;
3263
3264fi
3265echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3266echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3267 if test "x$_cv_gnu_make_command" != "x" ; then
3268 ifGNUmake='' ;
3269 else
3270 ifGNUmake='#' ;
3271 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3272echo "${ECHO_T}\"Not found\"" >&6;
3273 fi
3274
3275
3276if test -z "$_cv_gnu_make_command"
3277then
3278 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3279echo "$as_me: error: GNU Make required but not found" >&2;}
3280 { (exit 1); exit 1; }; }
3281fi
3282
3283
3284echo "$as_me:$LINENO: checking " >&5
3285echo $ECHO_N "checking ... $ECHO_C" >&6
3286if test "${ac_cv_has_flex+set}" = set; then
3287 echo $ECHO_N "(cached) $ECHO_C" >&6
3288else
3289 for ac_prog in flex lex
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_LEX+set}" = set; then
3296 echo $ECHO_N "(cached) $ECHO_C" >&6
3297else
3298 if test -n "$LEX"; then
3299 ac_cv_prog_LEX="$LEX" # 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_LEX="$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
3317LEX=$ac_cv_prog_LEX
3318if test -n "$LEX"; then
3319 echo "$as_me:$LINENO: result: $LEX" >&5
3320echo "${ECHO_T}$LEX" >&6
3321else
3322 echo "$as_me:$LINENO: result: no" >&5
3323echo "${ECHO_T}no" >&6
3324fi
3325
3326 test -n "$LEX" && break
3327done
3328test -n "$LEX" || LEX=":"
3329
3330if test -z "$LEXLIB"
3331then
3332 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3333echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3334if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336else
3337 ac_check_lib_save_LIBS=$LIBS
3338LIBS="-lfl $LIBS"
3339cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003340/* confdefs.h. */
3341_ACEOF
3342cat confdefs.h >>conftest.$ac_ext
3343cat >>conftest.$ac_ext <<_ACEOF
3344/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003345
3346/* Override any gcc2 internal prototype to avoid an error. */
3347#ifdef __cplusplus
3348extern "C"
3349#endif
3350/* We use char because int might match the return type of a gcc2
3351 builtin and then its argument prototype would still apply. */
3352char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003353int
3354main ()
3355{
3356yywrap ();
3357 ;
3358 return 0;
3359}
3360_ACEOF
3361rm -f conftest.$ac_objext conftest$ac_exeext
3362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003363 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003364 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003365 grep -v '^ *+' conftest.er1 >conftest.err
3366 rm -f conftest.er1
3367 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003370 { ac_try='test -z "$ac_c_werror_flag"
3371 || test ! -s conftest.err'
3372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3373 (eval $ac_try) 2>&5
3374 ac_status=$?
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); }; } &&
3377 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3379 (eval $ac_try) 2>&5
3380 ac_status=$?
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; }; then
3383 ac_cv_lib_fl_yywrap=yes
3384else
3385 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003386sed 's/^/| /' conftest.$ac_ext >&5
3387
John Criswell7a73b802003-06-30 21:59:07 +00003388ac_cv_lib_fl_yywrap=no
3389fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003390rm -f conftest.err conftest.$ac_objext \
3391 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003392LIBS=$ac_check_lib_save_LIBS
3393fi
3394echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3395echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3396if test $ac_cv_lib_fl_yywrap = yes; then
3397 LEXLIB="-lfl"
3398else
3399 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3400echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3401if test "${ac_cv_lib_l_yywrap+set}" = set; then
3402 echo $ECHO_N "(cached) $ECHO_C" >&6
3403else
3404 ac_check_lib_save_LIBS=$LIBS
3405LIBS="-ll $LIBS"
3406cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003407/* confdefs.h. */
3408_ACEOF
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003412
3413/* Override any gcc2 internal prototype to avoid an error. */
3414#ifdef __cplusplus
3415extern "C"
3416#endif
3417/* We use char because int might match the return type of a gcc2
3418 builtin and then its argument prototype would still apply. */
3419char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003420int
3421main ()
3422{
3423yywrap ();
3424 ;
3425 return 0;
3426}
3427_ACEOF
3428rm -f conftest.$ac_objext conftest$ac_exeext
3429if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003430 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003431 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003432 grep -v '^ *+' conftest.er1 >conftest.err
3433 rm -f conftest.er1
3434 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003437 { ac_try='test -z "$ac_c_werror_flag"
3438 || test ! -s conftest.err'
3439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3440 (eval $ac_try) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }; } &&
3444 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; }; then
3450 ac_cv_lib_l_yywrap=yes
3451else
3452 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003453sed 's/^/| /' conftest.$ac_ext >&5
3454
John Criswell7a73b802003-06-30 21:59:07 +00003455ac_cv_lib_l_yywrap=no
3456fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003457rm -f conftest.err conftest.$ac_objext \
3458 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003459LIBS=$ac_check_lib_save_LIBS
3460fi
3461echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3462echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3463if test $ac_cv_lib_l_yywrap = yes; then
3464 LEXLIB="-ll"
3465fi
3466
3467fi
3468
3469fi
3470
3471if test "x$LEX" != "x:"; then
3472 echo "$as_me:$LINENO: checking lex output file root" >&5
3473echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3474if test "${ac_cv_prog_lex_root+set}" = set; then
3475 echo $ECHO_N "(cached) $ECHO_C" >&6
3476else
3477 # The minimal lex program is just a single line: %%. But some broken lexes
3478# (Solaris, I think it was) want two %% lines, so accommodate them.
3479cat >conftest.l <<_ACEOF
3480%%
3481%%
3482_ACEOF
3483{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3484 (eval $LEX conftest.l) 2>&5
3485 ac_status=$?
3486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3487 (exit $ac_status); }
3488if test -f lex.yy.c; then
3489 ac_cv_prog_lex_root=lex.yy
3490elif test -f lexyy.c; then
3491 ac_cv_prog_lex_root=lexyy
3492else
3493 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3494echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3495 { (exit 1); exit 1; }; }
3496fi
3497fi
3498echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3499echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3500rm -f conftest.l
3501LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3502
3503echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3504echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3505if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507else
3508 # POSIX says lex can declare yytext either as a pointer or an array; the
3509# default is implementation-dependent. Figure out which it is, since
3510# not all implementations provide the %pointer and %array declarations.
3511ac_cv_prog_lex_yytext_pointer=no
3512echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3513ac_save_LIBS=$LIBS
3514LIBS="$LIBS $LEXLIB"
3515cat >conftest.$ac_ext <<_ACEOF
3516`cat $LEX_OUTPUT_ROOT.c`
3517_ACEOF
3518rm -f conftest.$ac_objext conftest$ac_exeext
3519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003520 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003521 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003522 grep -v '^ *+' conftest.er1 >conftest.err
3523 rm -f conftest.er1
3524 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003527 { ac_try='test -z "$ac_c_werror_flag"
3528 || test ! -s conftest.err'
3529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3530 (eval $ac_try) 2>&5
3531 ac_status=$?
3532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533 (exit $ac_status); }; } &&
3534 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3536 (eval $ac_try) 2>&5
3537 ac_status=$?
3538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3539 (exit $ac_status); }; }; then
3540 ac_cv_prog_lex_yytext_pointer=yes
3541else
3542 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003543sed 's/^/| /' conftest.$ac_ext >&5
3544
John Criswell7a73b802003-06-30 21:59:07 +00003545fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003546rm -f conftest.err conftest.$ac_objext \
3547 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003548LIBS=$ac_save_LIBS
3549rm -f "${LEX_OUTPUT_ROOT}.c"
3550
3551fi
3552echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3553echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3554if test $ac_cv_prog_lex_yytext_pointer = yes; then
3555
3556cat >>confdefs.h <<\_ACEOF
3557#define YYTEXT_POINTER 1
3558_ACEOF
3559
3560fi
3561
3562fi
3563
3564fi
3565echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3566echo "${ECHO_T}$ac_cv_has_flex" >&6
3567if test "$LEX" != "flex"; then
3568 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3569echo "$as_me: error: flex not found but required" >&2;}
3570 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00003571else
3572 FLEX=flex
3573
John Criswell7a73b802003-06-30 21:59:07 +00003574fi
3575
3576echo "$as_me:$LINENO: checking " >&5
3577echo $ECHO_N "checking ... $ECHO_C" >&6
3578if test "${ac_cv_has_bison+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580else
3581 for ac_prog in 'bison -y' byacc
3582do
3583 # Extract the first word of "$ac_prog", so it can be a program name with args.
3584set dummy $ac_prog; ac_word=$2
3585echo "$as_me:$LINENO: checking for $ac_word" >&5
3586echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587if test "${ac_cv_prog_YACC+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3589else
3590 if test -n "$YACC"; then
3591 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3592else
3593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3594for as_dir in $PATH
3595do
3596 IFS=$as_save_IFS
3597 test -z "$as_dir" && as_dir=.
3598 for ac_exec_ext in '' $ac_executable_extensions; do
3599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3600 ac_cv_prog_YACC="$ac_prog"
3601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3602 break 2
3603 fi
3604done
3605done
3606
3607fi
3608fi
3609YACC=$ac_cv_prog_YACC
3610if test -n "$YACC"; then
3611 echo "$as_me:$LINENO: result: $YACC" >&5
3612echo "${ECHO_T}$YACC" >&6
3613else
3614 echo "$as_me:$LINENO: result: no" >&5
3615echo "${ECHO_T}no" >&6
3616fi
3617
3618 test -n "$YACC" && break
3619done
3620test -n "$YACC" || YACC="yacc"
3621
3622
3623fi
3624echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3625echo "${ECHO_T}$ac_cv_has_bison" >&6
3626if test "$YACC" != "bison -y"; then
3627 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3628echo "$as_me: error: bison not found but required" >&2;}
3629 { (exit 1); exit 1; }; }
3630else
Brian Gaeke12810632004-01-13 06:52:10 +00003631 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003632
3633fi
3634
John Criswell7a73b802003-06-30 21:59:07 +00003635# Check whether --enable-shared or --disable-shared was given.
3636if test "${enable_shared+set}" = set; then
3637 enableval="$enable_shared"
3638 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003639 case $enableval in
3640 yes) enable_shared=yes ;;
3641 no) enable_shared=no ;;
3642 *)
3643 enable_shared=no
3644 # Look at the argument we got. We use all the common list separators.
3645 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3646 for pkg in $enableval; do
3647 IFS="$lt_save_ifs"
3648 if test "X$pkg" = "X$p"; then
3649 enable_shared=yes
3650 fi
3651 done
3652 IFS="$lt_save_ifs"
3653 ;;
3654 esac
John Criswell7a73b802003-06-30 21:59:07 +00003655else
3656 enable_shared=yes
3657fi;
John Criswell47fdd832003-07-14 16:52:07 +00003658
John Criswell7a73b802003-06-30 21:59:07 +00003659# Check whether --enable-static or --disable-static was given.
3660if test "${enable_static+set}" = set; then
3661 enableval="$enable_static"
3662 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003663 case $enableval in
3664 yes) enable_static=yes ;;
3665 no) enable_static=no ;;
3666 *)
3667 enable_static=no
3668 # Look at the argument we got. We use all the common list separators.
3669 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3670 for pkg in $enableval; do
3671 IFS="$lt_save_ifs"
3672 if test "X$pkg" = "X$p"; then
3673 enable_static=yes
3674 fi
3675 done
3676 IFS="$lt_save_ifs"
3677 ;;
3678 esac
John Criswell7a73b802003-06-30 21:59:07 +00003679else
3680 enable_static=yes
3681fi;
John Criswell47fdd832003-07-14 16:52:07 +00003682
John Criswell7a73b802003-06-30 21:59:07 +00003683# Check whether --enable-fast-install or --disable-fast-install was given.
3684if test "${enable_fast_install+set}" = set; then
3685 enableval="$enable_fast_install"
3686 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003687 case $enableval in
3688 yes) enable_fast_install=yes ;;
3689 no) enable_fast_install=no ;;
3690 *)
3691 enable_fast_install=no
3692 # Look at the argument we got. We use all the common list separators.
3693 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3694 for pkg in $enableval; do
3695 IFS="$lt_save_ifs"
3696 if test "X$pkg" = "X$p"; then
3697 enable_fast_install=yes
3698 fi
3699 done
3700 IFS="$lt_save_ifs"
3701 ;;
3702 esac
John Criswell7a73b802003-06-30 21:59:07 +00003703else
3704 enable_fast_install=yes
3705fi;
John Criswell47fdd832003-07-14 16:52:07 +00003706
3707echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3708echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3709if test "${lt_cv_path_SED+set}" = set; then
3710 echo $ECHO_N "(cached) $ECHO_C" >&6
3711else
3712 # Loop through the user's path and test for sed and gsed.
3713# Then use that list of sed's as ones to test for truncation.
3714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3715for as_dir in $PATH
3716do
3717 IFS=$as_save_IFS
3718 test -z "$as_dir" && as_dir=.
3719 for lt_ac_prog in sed gsed; do
3720 for ac_exec_ext in '' $ac_executable_extensions; do
3721 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3722 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3723 fi
3724 done
3725 done
3726done
3727lt_ac_max=0
3728lt_ac_count=0
3729# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3730# along with /bin/sed that truncates output.
3731for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3732 test ! -f $lt_ac_sed && break
3733 cat /dev/null > conftest.in
3734 lt_ac_count=0
3735 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3736 # Check for GNU sed and select it if it is found.
3737 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3738 lt_cv_path_SED=$lt_ac_sed
3739 break
3740 fi
3741 while true; do
3742 cat conftest.in conftest.in >conftest.tmp
3743 mv conftest.tmp conftest.in
3744 cp conftest.in conftest.nl
3745 echo >>conftest.nl
3746 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3747 cmp -s conftest.out conftest.nl || break
3748 # 10000 chars as input seems more than enough
3749 test $lt_ac_count -gt 10 && break
3750 lt_ac_count=`expr $lt_ac_count + 1`
3751 if test $lt_ac_count -gt $lt_ac_max; then
3752 lt_ac_max=$lt_ac_count
3753 lt_cv_path_SED=$lt_ac_sed
3754 fi
3755 done
3756done
John Criswell47fdd832003-07-14 16:52:07 +00003757
John Criswell7a73b802003-06-30 21:59:07 +00003758fi
3759
Reid Spencer2706f8c2004-09-19 23:53:36 +00003760SED=$lt_cv_path_SED
John Criswell47fdd832003-07-14 16:52:07 +00003761echo "$as_me:$LINENO: result: $SED" >&5
3762echo "${ECHO_T}$SED" >&6
3763
3764echo "$as_me:$LINENO: checking for egrep" >&5
3765echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3766if test "${ac_cv_prog_egrep+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768else
3769 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3770 then ac_cv_prog_egrep='grep -E'
3771 else ac_cv_prog_egrep='egrep'
3772 fi
3773fi
3774echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3775echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3776 EGREP=$ac_cv_prog_egrep
3777
3778
John Criswell7a73b802003-06-30 21:59:07 +00003779
3780# Check whether --with-gnu-ld or --without-gnu-ld was given.
3781if test "${with_gnu_ld+set}" = set; then
3782 withval="$with_gnu_ld"
3783 test "$withval" = no || with_gnu_ld=yes
3784else
3785 with_gnu_ld=no
3786fi;
3787ac_prog=ld
3788if test "$GCC" = yes; then
3789 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003790 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3791echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003792 case $host in
3793 *-*-mingw*)
3794 # gcc leaves a trailing carriage return which upsets mingw
3795 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3796 *)
3797 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3798 esac
3799 case $ac_prog in
3800 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003801 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003802 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +00003803 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00003804 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003805 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003806 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003807 done
3808 test -z "$LD" && LD="$ac_prog"
3809 ;;
3810 "")
3811 # If it fails, then pretend we aren't using GCC.
3812 ac_prog=ld
3813 ;;
3814 *)
3815 # If it is relative, then search for the first ld in PATH.
3816 with_gnu_ld=unknown
3817 ;;
3818 esac
3819elif test "$with_gnu_ld" = yes; then
3820 echo "$as_me:$LINENO: checking for GNU ld" >&5
3821echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3822else
3823 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3824echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3825fi
3826if test "${lt_cv_path_LD+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3828else
3829 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003830 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003831 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003832 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003833 test -z "$ac_dir" && ac_dir=.
3834 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3835 lt_cv_path_LD="$ac_dir/$ac_prog"
3836 # Check to see if the program is GNU ld. I'd rather use --version,
3837 # but apparently some GNU ld's only accept -v.
3838 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003839 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3840 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003841 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003842 ;;
3843 *)
John Criswell7a73b802003-06-30 21:59:07 +00003844 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003845 ;;
3846 esac
John Criswell7a73b802003-06-30 21:59:07 +00003847 fi
3848 done
John Criswell47fdd832003-07-14 16:52:07 +00003849 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003850else
3851 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3852fi
3853fi
3854
3855LD="$lt_cv_path_LD"
3856if test -n "$LD"; then
3857 echo "$as_me:$LINENO: result: $LD" >&5
3858echo "${ECHO_T}$LD" >&6
3859else
3860 echo "$as_me:$LINENO: result: no" >&5
3861echo "${ECHO_T}no" >&6
3862fi
3863test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3864echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3865 { (exit 1); exit 1; }; }
3866echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3867echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3868if test "${lt_cv_prog_gnu_ld+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3870else
3871 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +00003872case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00003873*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003874 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003875 ;;
3876*)
John Criswell7a73b802003-06-30 21:59:07 +00003877 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003878 ;;
3879esac
John Criswell7a73b802003-06-30 21:59:07 +00003880fi
3881echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3882echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3883with_gnu_ld=$lt_cv_prog_gnu_ld
3884
3885
3886echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3887echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3888if test "${lt_cv_ld_reload_flag+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891 lt_cv_ld_reload_flag='-r'
3892fi
3893echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3894echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3895reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003896case $reload_flag in
3897"" | " "*) ;;
3898*) reload_flag=" $reload_flag" ;;
3899esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00003900reload_cmds='$LD$reload_flag -o $output$reload_objs'
3901case $host_os in
3902 darwin*)
3903 if test "$GCC" = yes; then
3904 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3905 else
3906 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3907 fi
3908 ;;
3909esac
John Criswell7a73b802003-06-30 21:59:07 +00003910
3911echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3912echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3913if test "${lt_cv_path_NM+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915else
3916 if test -n "$NM"; then
3917 # Let the user override the test.
3918 lt_cv_path_NM="$NM"
3919else
John Criswell47fdd832003-07-14 16:52:07 +00003920 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003921 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003922 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003923 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003924 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3925 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003926 # Check to see if the nm accepts a BSD-compat flag.
3927 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3928 # nm: unknown option "B" ignored
3929 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003930 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3931 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003932 lt_cv_path_NM="$tmp_nm -B"
3933 break
John Criswell47fdd832003-07-14 16:52:07 +00003934 ;;
3935 *)
3936 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3937 */dev/null*)
3938 lt_cv_path_NM="$tmp_nm -p"
3939 break
3940 ;;
3941 *)
3942 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3943 continue # so that we can try to find one that supports BSD flags
3944 ;;
3945 esac
3946 esac
John Criswell7a73b802003-06-30 21:59:07 +00003947 fi
3948 done
John Criswell47fdd832003-07-14 16:52:07 +00003949 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003950 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3951fi
3952fi
John Criswell47fdd832003-07-14 16:52:07 +00003953echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3954echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003955NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003956
3957echo "$as_me:$LINENO: checking whether ln -s works" >&5
3958echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3959LN_S=$as_ln_s
3960if test "$LN_S" = "ln -s"; then
3961 echo "$as_me:$LINENO: result: yes" >&5
3962echo "${ECHO_T}yes" >&6
3963else
3964 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3965echo "${ECHO_T}no, using $LN_S" >&6
3966fi
3967
John Criswell47fdd832003-07-14 16:52:07 +00003968echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3969echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003970if test "${lt_cv_deplibs_check_method+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3972else
3973 lt_cv_file_magic_cmd='$MAGIC_CMD'
3974lt_cv_file_magic_test_file=
3975lt_cv_deplibs_check_method='unknown'
3976# Need to set the preceding variable on all platforms that support
3977# interlibrary dependencies.
3978# 'none' -- dependencies not supported.
3979# `unknown' -- same as none, but documents that we really don't know.
3980# 'pass_all' -- all dependencies passed with no checks.
3981# 'test_compile' -- check by making test program.
3982# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003983# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003984# If you have `file' or equivalent on your system and you're not sure
3985# whether `pass_all' will *always* work, you probably want this one.
3986
3987case $host_os in
3988aix4* | aix5*)
3989 lt_cv_deplibs_check_method=pass_all
3990 ;;
3991
3992beos*)
3993 lt_cv_deplibs_check_method=pass_all
3994 ;;
3995
Reid Spencer2706f8c2004-09-19 23:53:36 +00003996bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00003997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3998 lt_cv_file_magic_cmd='/usr/bin/file -L'
3999 lt_cv_file_magic_test_file=/shlib/libc.so
4000 ;;
4001
Reid Spencer2706f8c2004-09-19 23:53:36 +00004002cygwin*)
4003 # func_win32_libid is a shell function defined in ltmain.sh
John Criswell47fdd832003-07-14 16:52:07 +00004004 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Reid Spencer2706f8c2004-09-19 23:53:36 +00004005 lt_cv_file_magic_cmd='func_win32_libid'
4006 ;;
4007
4008mingw* | pw32*)
4009 # Base MSYS/MinGW do not provide the 'file' command needed by
4010 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4011 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4012 lt_cv_file_magic_cmd='$OBJDUMP -f'
John Criswell7a73b802003-06-30 21:59:07 +00004013 ;;
4014
4015darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004016 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004017 ;;
4018
Reid Spencer2706f8c2004-09-19 23:53:36 +00004019freebsd* | kfreebsd*-gnu)
John Criswell7a73b802003-06-30 21:59:07 +00004020 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4021 case $host_cpu in
4022 i*86 )
4023 # Not sure whether the presence of OpenBSD here was a mistake.
4024 # Let's accept both of them until this is cleared up.
4025 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4026 lt_cv_file_magic_cmd=/usr/bin/file
4027 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4028 ;;
4029 esac
4030 else
4031 lt_cv_deplibs_check_method=pass_all
4032 fi
4033 ;;
4034
4035gnu*)
4036 lt_cv_deplibs_check_method=pass_all
4037 ;;
4038
John Criswell47fdd832003-07-14 16:52:07 +00004039hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004040 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004041 case "$host_cpu" in
4042 ia64*)
4043 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4044 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4045 ;;
4046 hppa*64*)
4047 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]'
4048 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4049 ;;
4050 *)
4051 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4052 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4053 ;;
4054 esac
John Criswell7a73b802003-06-30 21:59:07 +00004055 ;;
4056
John Criswell47fdd832003-07-14 16:52:07 +00004057irix5* | irix6* | nonstopux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004058 case $LD in
4059 *-32|*"-32 ") libmagic=32-bit;;
4060 *-n32|*"-n32 ") libmagic=N32;;
4061 *-64|*"-64 ") libmagic=64-bit;;
4062 *) libmagic=never-match;;
John Criswell7a73b802003-06-30 21:59:07 +00004063 esac
John Criswell7a73b802003-06-30 21:59:07 +00004064 lt_cv_deplibs_check_method=pass_all
4065 ;;
4066
4067# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004068linux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004069 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004070 ;;
4071
4072netbsd*)
4073 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004075 else
John Criswell47fdd832003-07-14 16:52:07 +00004076 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004077 fi
4078 ;;
4079
4080newos6*)
4081 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4082 lt_cv_file_magic_cmd=/usr/bin/file
4083 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4084 ;;
4085
Reid Spencer2706f8c2004-09-19 23:53:36 +00004086nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00004087 lt_cv_deplibs_check_method=unknown
4088 ;;
4089
John Criswell7a73b802003-06-30 21:59:07 +00004090openbsd*)
John Criswell7a73b802003-06-30 21:59:07 +00004091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00004092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004093 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00004094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004095 fi
4096 ;;
4097
4098osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00004099 lt_cv_deplibs_check_method=pass_all
4100 ;;
4101
4102sco3.2v5*)
4103 lt_cv_deplibs_check_method=pass_all
4104 ;;
4105
4106solaris*)
4107 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004108 ;;
4109
John Criswell7a73b802003-06-30 21:59:07 +00004110sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4111 case $host_vendor in
4112 motorola)
4113 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]'
4114 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4115 ;;
4116 ncr)
4117 lt_cv_deplibs_check_method=pass_all
4118 ;;
4119 sequent)
4120 lt_cv_file_magic_cmd='/bin/file'
4121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4122 ;;
4123 sni)
4124 lt_cv_file_magic_cmd='/bin/file'
4125 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4126 lt_cv_file_magic_test_file=/lib/libc.so
4127 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004128 siemens)
4129 lt_cv_deplibs_check_method=pass_all
4130 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004131 esac
4132 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004133
4134sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4135 lt_cv_deplibs_check_method=pass_all
4136 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004137esac
4138
4139fi
4140echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4141echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4142file_magic_cmd=$lt_cv_file_magic_cmd
4143deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004144test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004145
4146
4147
4148
John Criswell47fdd832003-07-14 16:52:07 +00004149# If no C compiler was specified, use CC.
4150LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004151
John Criswell47fdd832003-07-14 16:52:07 +00004152# Allow CC to be a program name with arguments.
4153compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004154
John Criswell47fdd832003-07-14 16:52:07 +00004155# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4156if test "${enable_libtool_lock+set}" = set; then
4157 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004158
John Criswell47fdd832003-07-14 16:52:07 +00004159fi;
4160test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004161
John Criswell47fdd832003-07-14 16:52:07 +00004162# Some flags need to be propagated to the compiler or linker for good
4163# libtool support.
4164case $host in
4165ia64-*-hpux*)
4166 # Find out which ABI we are using.
4167 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169 (eval $ac_compile) 2>&5
4170 ac_status=$?
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004173 case `/usr/bin/file conftest.$ac_objext` in
4174 *ELF-32*)
4175 HPUX_IA64_MODE="32"
4176 ;;
4177 *ELF-64*)
4178 HPUX_IA64_MODE="64"
4179 ;;
4180 esac
4181 fi
4182 rm -rf conftest*
4183 ;;
4184*-*-irix6*)
4185 # Find out which ABI we are using.
Misha Brukman591edc62004-10-14 18:59:42 +00004186 echo '#line 4186 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4188 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004189 ac_status=$?
4190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004191 (exit $ac_status); }; then
4192 if test "$lt_cv_prog_gnu_ld" = yes; then
4193 case `/usr/bin/file conftest.$ac_objext` in
4194 *32-bit*)
4195 LD="${LD-ld} -melf32bsmip"
4196 ;;
4197 *N32*)
4198 LD="${LD-ld} -melf32bmipn32"
4199 ;;
4200 *64-bit*)
4201 LD="${LD-ld} -melf64bmip"
4202 ;;
4203 esac
4204 else
4205 case `/usr/bin/file conftest.$ac_objext` in
4206 *32-bit*)
4207 LD="${LD-ld} -32"
4208 ;;
4209 *N32*)
4210 LD="${LD-ld} -n32"
4211 ;;
4212 *64-bit*)
4213 LD="${LD-ld} -64"
4214 ;;
4215 esac
4216 fi
4217 fi
4218 rm -rf conftest*
4219 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004220
John Criswell47fdd832003-07-14 16:52:07 +00004221x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4222 # Find out which ABI we are using.
4223 echo 'int i;' > conftest.$ac_ext
4224 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4225 (eval $ac_compile) 2>&5
4226 ac_status=$?
4227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4228 (exit $ac_status); }; then
4229 case "`/usr/bin/file conftest.o`" in
4230 *32-bit*)
4231 case $host in
4232 x86_64-*linux*)
4233 LD="${LD-ld} -m elf_i386"
4234 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00004235 ppc64-*linux*|powerpc64-*linux*)
John Criswell47fdd832003-07-14 16:52:07 +00004236 LD="${LD-ld} -m elf32ppclinux"
4237 ;;
4238 s390x-*linux*)
4239 LD="${LD-ld} -m elf_s390"
4240 ;;
4241 sparc64-*linux*)
4242 LD="${LD-ld} -m elf32_sparc"
4243 ;;
4244 esac
4245 ;;
4246 *64-bit*)
4247 case $host in
4248 x86_64-*linux*)
4249 LD="${LD-ld} -m elf_x86_64"
4250 ;;
4251 ppc*-*linux*|powerpc*-*linux*)
4252 LD="${LD-ld} -m elf64ppc"
4253 ;;
4254 s390*-*linux*)
4255 LD="${LD-ld} -m elf64_s390"
4256 ;;
4257 sparc*-*linux*)
4258 LD="${LD-ld} -m elf64_sparc"
4259 ;;
4260 esac
4261 ;;
4262 esac
4263 fi
4264 rm -rf conftest*
4265 ;;
4266
4267*-*-sco3.2v5*)
4268 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4269 SAVE_CFLAGS="$CFLAGS"
4270 CFLAGS="$CFLAGS -belf"
4271 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4272echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4273if test "${lt_cv_cc_needs_belf+set}" = set; then
4274 echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276 ac_ext=c
4277ac_cpp='$CPP $CPPFLAGS'
4278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281
4282 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004283/* confdefs.h. */
4284_ACEOF
4285cat confdefs.h >>conftest.$ac_ext
4286cat >>conftest.$ac_ext <<_ACEOF
4287/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004288
John Criswell47fdd832003-07-14 16:52:07 +00004289_ACEOF
4290rm -f conftest.$ac_objext conftest$ac_exeext
4291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004292 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004293 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004298 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004299 { ac_try='test -z "$ac_c_werror_flag"
4300 || test ! -s conftest.err'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00004307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 (eval $ac_try) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004313else
John Criswell47fdd832003-07-14 16:52:07 +00004314 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004315sed 's/^/| /' conftest.$ac_ext >&5
4316
John Criswell47fdd832003-07-14 16:52:07 +00004317lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004318fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004319rm -f conftest.err conftest.$ac_objext \
4320 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004321 ac_ext=c
4322ac_cpp='$CPP $CPPFLAGS'
4323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326
John Criswell7a73b802003-06-30 21:59:07 +00004327fi
John Criswell47fdd832003-07-14 16:52:07 +00004328echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4329echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4330 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4331 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4332 CFLAGS="$SAVE_CFLAGS"
4333 fi
4334 ;;
4335
4336esac
4337
4338need_locks="$enable_libtool_lock"
4339
John Criswell7a73b802003-06-30 21:59:07 +00004340
4341
4342echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4343echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4344if test "${ac_cv_header_stdc+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346else
4347 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004348/* confdefs.h. */
4349_ACEOF
4350cat confdefs.h >>conftest.$ac_ext
4351cat >>conftest.$ac_ext <<_ACEOF
4352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004353#include <stdlib.h>
4354#include <stdarg.h>
4355#include <string.h>
4356#include <float.h>
4357
John Criswell0c38eaf2003-09-10 15:17:25 +00004358int
4359main ()
4360{
4361
4362 ;
4363 return 0;
4364}
John Criswell7a73b802003-06-30 21:59:07 +00004365_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004366rm -f conftest.$ac_objext
4367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004368 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004369 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004370 grep -v '^ *+' conftest.er1 >conftest.err
4371 rm -f conftest.er1
4372 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004374 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004375 { ac_try='test -z "$ac_c_werror_flag"
4376 || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00004383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004388 ac_cv_header_stdc=yes
4389else
4390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004391sed 's/^/| /' conftest.$ac_ext >&5
4392
4393ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004394fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004396
4397if test $ac_cv_header_stdc = yes; then
4398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4399 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004400/* confdefs.h. */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004405#include <string.h>
4406
4407_ACEOF
4408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004409 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004410 :
4411else
4412 ac_cv_header_stdc=no
4413fi
4414rm -f conftest*
4415
4416fi
4417
4418if test $ac_cv_header_stdc = yes; then
4419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4420 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004421/* confdefs.h. */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004426#include <stdlib.h>
4427
4428_ACEOF
4429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004430 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004431 :
4432else
4433 ac_cv_header_stdc=no
4434fi
4435rm -f conftest*
4436
4437fi
4438
4439if test $ac_cv_header_stdc = yes; then
4440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441 if test "$cross_compiling" = yes; then
4442 :
4443else
4444 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004450#include <ctype.h>
4451#if ((' ' & 0x0FF) == 0x020)
4452# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4453# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4454#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004455# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004456 (('a' <= (c) && (c) <= 'i') \
4457 || ('j' <= (c) && (c) <= 'r') \
4458 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004459# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4460#endif
4461
4462#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4463int
4464main ()
4465{
4466 int i;
4467 for (i = 0; i < 256; i++)
4468 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004469 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00004470 exit(2);
4471 exit (0);
4472}
4473_ACEOF
4474rm -f conftest$ac_exeext
4475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4476 (eval $ac_link) 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 :
4486else
4487 echo "$as_me: program exited with status $ac_status" >&5
4488echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004489sed 's/^/| /' conftest.$ac_ext >&5
4490
John Criswell7a73b802003-06-30 21:59:07 +00004491( exit $ac_status )
4492ac_cv_header_stdc=no
4493fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004494rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004495fi
4496fi
4497fi
4498echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4499echo "${ECHO_T}$ac_cv_header_stdc" >&6
4500if test $ac_cv_header_stdc = yes; then
4501
4502cat >>confdefs.h <<\_ACEOF
4503#define STDC_HEADERS 1
4504_ACEOF
4505
4506fi
4507
4508# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004519 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00004520do
4521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4522echo "$as_me:$LINENO: checking for $ac_header" >&5
4523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4524if eval "test \"\${$as_ac_Header+set}\" = set"; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526else
4527 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004528/* confdefs.h. */
4529_ACEOF
4530cat confdefs.h >>conftest.$ac_ext
4531cat >>conftest.$ac_ext <<_ACEOF
4532/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004533$ac_includes_default
4534
4535#include <$ac_header>
4536_ACEOF
4537rm -f conftest.$ac_objext
4538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004539 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004546 { ac_try='test -z "$ac_c_werror_flag"
4547 || test ! -s conftest.err'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4559 eval "$as_ac_Header=yes"
4560else
4561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004562sed 's/^/| /' conftest.$ac_ext >&5
4563
John Criswell7a73b802003-06-30 21:59:07 +00004564eval "$as_ac_Header=no"
4565fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004567fi
4568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4570if test `eval echo '${'$as_ac_Header'}'` = yes; then
4571 cat >>confdefs.h <<_ACEOF
4572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4573_ACEOF
4574
4575fi
4576
4577done
4578
4579
4580
4581for ac_header in dlfcn.h
4582do
4583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00004584if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00004586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4587if eval "test \"\${$as_ac_Header+set}\" = set"; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00004589fi
4590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004592else
Brian Gaeke0a621332004-09-08 20:38:05 +00004593 # Is the header compilable?
4594echo "$as_me:$LINENO: checking $ac_header usability" >&5
4595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4596cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004597/* confdefs.h. */
4598_ACEOF
4599cat confdefs.h >>conftest.$ac_ext
4600cat >>conftest.$ac_ext <<_ACEOF
4601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004602$ac_includes_default
4603#include <$ac_header>
4604_ACEOF
4605rm -f conftest.$ac_objext
4606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004607 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004608 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004609 grep -v '^ *+' conftest.er1 >conftest.err
4610 rm -f conftest.er1
4611 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004614 { ac_try='test -z "$ac_c_werror_flag"
4615 || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 (eval $ac_try) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00004627 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00004628else
4629 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004630sed 's/^/| /' conftest.$ac_ext >&5
4631
Brian Gaeke0a621332004-09-08 20:38:05 +00004632ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00004633fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00004635echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4636echo "${ECHO_T}$ac_header_compiler" >&6
4637
4638# Is the header present?
4639echo "$as_me:$LINENO: checking $ac_header presence" >&5
4640echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4641cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004642/* confdefs.h. */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h. */
4647#include <$ac_header>
4648_ACEOF
4649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4651 ac_status=$?
4652 grep -v '^ *+' conftest.er1 >conftest.err
4653 rm -f conftest.er1
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } >/dev/null; then
4657 if test -s conftest.err; then
4658 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00004660 else
4661 ac_cpp_err=
4662 fi
4663else
4664 ac_cpp_err=yes
4665fi
4666if test -z "$ac_cpp_err"; then
4667 ac_header_preproc=yes
4668else
4669 echo "$as_me: failed program was:" >&5
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 ac_header_preproc=no
4673fi
4674rm -f conftest.err conftest.$ac_ext
4675echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4676echo "${ECHO_T}$ac_header_preproc" >&6
4677
4678# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4680 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00004681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4685 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00004686 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00004687 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00004688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4691echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4695echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00004696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00004700 (
4701 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00004702## ----------------------------------- ##
4703## Report this to llvmbugs@cs.uiuc.edu ##
4704## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00004705_ASBOX
4706 ) |
4707 sed "s/^/$as_me: WARNING: /" >&2
4708 ;;
4709esac
4710echo "$as_me:$LINENO: checking for $ac_header" >&5
4711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4712if eval "test \"\${$as_ac_Header+set}\" = set"; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
Reid Spencer2706f8c2004-09-19 23:53:36 +00004715 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00004716fi
4717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00004719
4720fi
John Criswell7a73b802003-06-30 21:59:07 +00004721if test `eval echo '${'$as_ac_Header'}'` = yes; then
4722 cat >>confdefs.h <<_ACEOF
4723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4724_ACEOF
4725
4726fi
4727
4728done
4729
Reid Spencer2706f8c2004-09-19 23:53:36 +00004730
4731
4732if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4733 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4734 (test "X$CXX" != "Xg++"))) ; then
4735 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +00004736ac_cpp='$CXXCPP $CPPFLAGS'
4737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4740echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4741echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4742if test -z "$CXXCPP"; then
4743 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
John Criswell47fdd832003-07-14 16:52:07 +00004746 # Double quotes because CXXCPP needs to be expanded
4747 for CXXCPP in "$CXX -E" "/lib/cpp"
4748 do
4749 ac_preproc_ok=false
4750for ac_cxx_preproc_warn_flag in '' yes
4751do
4752 # Use a header file that comes with gcc, so configuring glibc
4753 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004756 # On the NeXT, cc -E runs the code through the compiler's parser,
4757 # not just through cpp. "Syntax error" is here to catch this case.
4758 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
4764#ifdef __STDC__
4765# include <limits.h>
4766#else
4767# include <assert.h>
4768#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00004769 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004770_ACEOF
4771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4773 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004774 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004775 rm -f conftest.er1
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } >/dev/null; then
4779 if test -s conftest.err; then
4780 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004781 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004782 else
John Criswell47fdd832003-07-14 16:52:07 +00004783 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004784 fi
John Criswell47fdd832003-07-14 16:52:07 +00004785else
4786 ac_cpp_err=yes
4787fi
4788if test -z "$ac_cpp_err"; then
4789 :
4790else
4791 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004792sed 's/^/| /' conftest.$ac_ext >&5
4793
John Criswell47fdd832003-07-14 16:52:07 +00004794 # Broken: fails on valid input.
4795continue
4796fi
4797rm -f conftest.err conftest.$ac_ext
4798
4799 # OK, works on sane cases. Now check whether non-existent headers
4800 # can be detected and how.
4801 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004802/* confdefs.h. */
4803_ACEOF
4804cat confdefs.h >>conftest.$ac_ext
4805cat >>conftest.$ac_ext <<_ACEOF
4806/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004807#include <ac_nonexistent.h>
4808_ACEOF
4809if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4811 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004812 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004813 rm -f conftest.er1
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } >/dev/null; then
4817 if test -s conftest.err; then
4818 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004819 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004820 else
4821 ac_cpp_err=
4822 fi
4823else
4824 ac_cpp_err=yes
4825fi
4826if test -z "$ac_cpp_err"; then
4827 # Broken: success on invalid input.
4828continue
4829else
4830 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004831sed 's/^/| /' conftest.$ac_ext >&5
4832
John Criswell47fdd832003-07-14 16:52:07 +00004833 # Passes both tests.
4834ac_preproc_ok=:
4835break
4836fi
4837rm -f conftest.err conftest.$ac_ext
4838
4839done
4840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4841rm -f conftest.err conftest.$ac_ext
4842if $ac_preproc_ok; then
4843 break
John Criswell7a73b802003-06-30 21:59:07 +00004844fi
4845
John Criswell47fdd832003-07-14 16:52:07 +00004846 done
4847 ac_cv_prog_CXXCPP=$CXXCPP
4848
4849fi
4850 CXXCPP=$ac_cv_prog_CXXCPP
4851else
4852 ac_cv_prog_CXXCPP=$CXXCPP
4853fi
4854echo "$as_me:$LINENO: result: $CXXCPP" >&5
4855echo "${ECHO_T}$CXXCPP" >&6
4856ac_preproc_ok=false
4857for ac_cxx_preproc_warn_flag in '' yes
4858do
4859 # Use a header file that comes with gcc, so configuring glibc
4860 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004863 # On the NeXT, cc -E runs the code through the compiler's parser,
4864 # not just through cpp. "Syntax error" is here to catch this case.
4865 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
4871#ifdef __STDC__
4872# include <limits.h>
4873#else
4874# include <assert.h>
4875#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00004876 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004877_ACEOF
4878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4880 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004881 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004882 rm -f conftest.er1
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } >/dev/null; then
4886 if test -s conftest.err; then
4887 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004888 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004889 else
4890 ac_cpp_err=
4891 fi
4892else
4893 ac_cpp_err=yes
4894fi
4895if test -z "$ac_cpp_err"; then
4896 :
4897else
4898 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004899sed 's/^/| /' conftest.$ac_ext >&5
4900
John Criswell47fdd832003-07-14 16:52:07 +00004901 # Broken: fails on valid input.
4902continue
4903fi
4904rm -f conftest.err conftest.$ac_ext
4905
4906 # OK, works on sane cases. Now check whether non-existent headers
4907 # can be detected and how.
4908 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004909/* confdefs.h. */
4910_ACEOF
4911cat confdefs.h >>conftest.$ac_ext
4912cat >>conftest.$ac_ext <<_ACEOF
4913/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004914#include <ac_nonexistent.h>
4915_ACEOF
4916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4918 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004919 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004920 rm -f conftest.er1
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null; then
4924 if test -s conftest.err; then
4925 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004926 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004927 else
4928 ac_cpp_err=
4929 fi
4930else
4931 ac_cpp_err=yes
4932fi
4933if test -z "$ac_cpp_err"; then
4934 # Broken: success on invalid input.
4935continue
4936else
4937 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004938sed 's/^/| /' conftest.$ac_ext >&5
4939
John Criswell47fdd832003-07-14 16:52:07 +00004940 # Passes both tests.
4941ac_preproc_ok=:
4942break
4943fi
4944rm -f conftest.err conftest.$ac_ext
4945
4946done
4947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948rm -f conftest.err conftest.$ac_ext
4949if $ac_preproc_ok; then
4950 :
4951else
John Criswell0c38eaf2003-09-10 15:17:25 +00004952 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4953See \`config.log' for more details." >&5
4954echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4955See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004956 { (exit 1); exit 1; }; }
4957fi
4958
4959ac_ext=cc
4960ac_cpp='$CXXCPP $CPPFLAGS'
4961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4964
Reid Spencer2706f8c2004-09-19 23:53:36 +00004965fi
4966
John Criswell47fdd832003-07-14 16:52:07 +00004967
4968ac_ext=f
4969ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4970ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4972if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00004973 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 +00004974 do
4975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4976set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4977echo "$as_me:$LINENO: checking for $ac_word" >&5
4978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979if test "${ac_cv_prog_F77+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982 if test -n "$F77"; then
4983 ac_cv_prog_F77="$F77" # Let the user override the test.
4984else
4985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986for as_dir in $PATH
4987do
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4995 fi
4996done
4997done
4998
4999fi
5000fi
5001F77=$ac_cv_prog_F77
5002if test -n "$F77"; then
5003 echo "$as_me:$LINENO: result: $F77" >&5
5004echo "${ECHO_T}$F77" >&6
5005else
5006 echo "$as_me:$LINENO: result: no" >&5
5007echo "${ECHO_T}no" >&6
5008fi
5009
5010 test -n "$F77" && break
5011 done
5012fi
5013if test -z "$F77"; then
5014 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +00005015 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 +00005016do
5017 # Extract the first word of "$ac_prog", so it can be a program name with args.
5018set dummy $ac_prog; ac_word=$2
5019echo "$as_me:$LINENO: checking for $ac_word" >&5
5020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024 if test -n "$ac_ct_F77"; then
5025 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5026else
5027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028for as_dir in $PATH
5029do
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034 ac_cv_prog_ac_ct_F77="$ac_prog"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5037 fi
5038done
5039done
5040
5041fi
5042fi
5043ac_ct_F77=$ac_cv_prog_ac_ct_F77
5044if test -n "$ac_ct_F77"; then
5045 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5046echo "${ECHO_T}$ac_ct_F77" >&6
5047else
5048 echo "$as_me:$LINENO: result: no" >&5
5049echo "${ECHO_T}no" >&6
5050fi
5051
5052 test -n "$ac_ct_F77" && break
5053done
5054
5055 F77=$ac_ct_F77
5056fi
5057
5058
5059# Provide some information about the compiler.
Misha Brukman591edc62004-10-14 18:59:42 +00005060echo "$as_me:5060:" \
John Criswell47fdd832003-07-14 16:52:07 +00005061 "checking for Fortran 77 compiler version" >&5
5062ac_compiler=`set X $ac_compile; echo $2`
5063{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5064 (eval $ac_compiler --version </dev/null >&5) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }
5068{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5069 (eval $ac_compiler -v </dev/null >&5) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }
5073{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5074 (eval $ac_compiler -V </dev/null >&5) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +00005078rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00005079
5080# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +00005081# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00005082ac_save_ext=$ac_ext
5083ac_ext=F
5084echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5085echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5086if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089 cat >conftest.$ac_ext <<_ACEOF
5090 program main
5091#ifndef __GNUC__
5092 choke me
5093#endif
5094
5095 end
5096_ACEOF
5097rm -f conftest.$ac_objext
5098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005099 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005100 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005106 { ac_try='test -z "$ac_f77_werror_flag"
5107 || test ! -s conftest.err'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 (eval $ac_try) 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 ac_compiler_gnu=yes
5120else
5121 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005122sed 's/^/| /' conftest.$ac_ext >&5
5123
John Criswell47fdd832003-07-14 16:52:07 +00005124ac_compiler_gnu=no
5125fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005127ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5128
5129fi
5130echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5131echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5132ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005133ac_test_FFLAGS=${FFLAGS+set}
5134ac_save_FFLAGS=$FFLAGS
5135FFLAGS=
5136echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5137echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5138if test "${ac_cv_prog_f77_g+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140else
5141 FFLAGS=-g
5142cat >conftest.$ac_ext <<_ACEOF
5143 program main
5144
5145 end
5146_ACEOF
5147rm -f conftest.$ac_objext
5148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005149 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005150 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005156 { ac_try='test -z "$ac_f77_werror_flag"
5157 || test ! -s conftest.err'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 (eval $ac_try) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; } &&
5163 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 ac_cv_prog_f77_g=yes
5170else
5171 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005172sed 's/^/| /' conftest.$ac_ext >&5
5173
John Criswell47fdd832003-07-14 16:52:07 +00005174ac_cv_prog_f77_g=no
5175fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005177
5178fi
5179echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5180echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5181if test "$ac_test_FFLAGS" = set; then
5182 FFLAGS=$ac_save_FFLAGS
5183elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00005184 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005185 FFLAGS="-g -O2"
5186 else
5187 FFLAGS="-g"
5188 fi
5189else
Reid Spencer2706f8c2004-09-19 23:53:36 +00005190 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005191 FFLAGS="-O2"
5192 else
5193 FFLAGS=
5194 fi
5195fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005196
5197G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00005198ac_ext=c
5199ac_cpp='$CPP $CPPFLAGS'
5200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203
5204
5205
5206# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5207
5208# find the maximum length of command line arguments
5209echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5210echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5211if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +00005215 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +00005216
5217 case $build_os in
5218 msdosdjgpp*)
5219 # On DJGPP, this test can blow up pretty badly due to problems in libc
5220 # (any single argument exceeding 2000 bytes causes a buffer overrun
5221 # during glob expansion). Even if it were fixed, the result of this
5222 # check would be larger than it should be.
5223 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5224 ;;
5225
5226 gnu*)
5227 # Under GNU Hurd, this test is not required because there is
5228 # no limit to the length of command line arguments.
5229 # Libtool will interpret -1 as no limit whatsoever
5230 lt_cv_sys_max_cmd_len=-1;
5231 ;;
5232
5233 cygwin* | mingw*)
5234 # On Win9x/ME, this test blows up -- it succeeds, but takes
5235 # about 5 minutes as the teststring grows exponentially.
5236 # Worse, since 9x/ME are not pre-emptively multitasking,
5237 # you end up with a "frozen" computer, even though with patience
5238 # the test eventually succeeds (with a max line length of 256k).
5239 # Instead, let's just punt: use the minimum linelength reported by
5240 # all of the supported platforms: 8192 (on NT/2K/XP).
5241 lt_cv_sys_max_cmd_len=8192;
5242 ;;
5243
Reid Spencer2706f8c2004-09-19 23:53:36 +00005244 amigaos*)
5245 # On AmigaOS with pdksh, this test takes hours, literally.
5246 # So we just punt and use a minimum line length of 8192.
5247 lt_cv_sys_max_cmd_len=8192;
5248 ;;
5249
5250 netbsd* | freebsd* | openbsd* | darwin* )
5251 # This has been around since 386BSD, at least. Likely further.
5252 if test -x /sbin/sysctl; then
5253 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5254 elif test -x /usr/sbin/sysctl; then
5255 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5256 else
5257 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5258 fi
5259 # And add a safety zone
5260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5261 ;;
5262
John Criswell47fdd832003-07-14 16:52:07 +00005263 *)
5264 # If test is not a shell built-in, we'll probably end up computing a
5265 # maximum length that is only half of the actual maximum length, but
5266 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +00005267 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5268 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5269 = "XX$teststring") >/dev/null 2>&1 &&
5270 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +00005271 lt_cv_sys_max_cmd_len=$new_result &&
5272 test $i != 17 # 1/2 MB should be enough
5273 do
5274 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +00005275 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +00005276 done
Reid Spencer2706f8c2004-09-19 23:53:36 +00005277 teststring=
John Criswell47fdd832003-07-14 16:52:07 +00005278 # Add a significant safety factor because C++ compilers can tack on massive
5279 # amounts of additional arguments before passing them to the linker.
5280 # It appears as though 1/2 is a usable value.
5281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5282 ;;
5283 esac
5284
5285fi
5286
5287if test -n $lt_cv_sys_max_cmd_len ; then
5288 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5289echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5290else
5291 echo "$as_me:$LINENO: result: none" >&5
5292echo "${ECHO_T}none" >&6
5293fi
5294
5295
5296
5297
5298# Check for command to grab the raw symbol name followed by C symbol from nm.
5299echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5300echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5301if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303else
5304
5305# These are sane defaults that work on at least a few old systems.
5306# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5307
5308# Character class describing NM global symbol codes.
5309symcode='[BCDEGRST]'
5310
5311# Regexp to match symbols that can be accessed directly from C.
5312sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5313
5314# Transform the above into a raw symbol and a C symbol.
5315symxfrm='\1 \2\3 \3'
5316
5317# Transform an extracted symbol line into a proper C declaration
5318lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5319
5320# Transform an extracted symbol line into symbol name and symbol address
5321lt_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'"
5322
5323# Define system-specific variables.
5324case $host_os in
5325aix*)
5326 symcode='[BCDT]'
5327 ;;
5328cygwin* | mingw* | pw32*)
5329 symcode='[ABCDGISTW]'
5330 ;;
5331hpux*) # Its linker distinguishes data from code symbols
5332 if test "$host_cpu" = ia64; then
5333 symcode='[ABCDEGRST]'
5334 fi
5335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5336 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'"
5337 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00005338linux*)
5339 if test "$host_cpu" = ia64; then
5340 symcode='[ABCDGIRSTW]'
5341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5342 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'"
5343 fi
5344 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005345irix* | nonstopux*)
5346 symcode='[BCDEGRST]'
5347 ;;
5348osf*)
5349 symcode='[BCDEGQRST]'
5350 ;;
5351solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005352 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +00005353 ;;
5354sysv4)
5355 symcode='[DFNSTU]'
5356 ;;
5357esac
5358
5359# Handle CRLF in mingw tool chain
5360opt_cr=
5361case $build_os in
5362mingw*)
5363 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5364 ;;
5365esac
5366
5367# If we're using GNU nm, then use its standard symbol codes.
5368case `$NM -V 2>&1` in
5369*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005370 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +00005371esac
5372
5373# Try without a prefix undercore, then with it.
5374for ac_symprfx in "" "_"; do
5375
5376 # Write the raw and C identifiers.
5377 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5378
5379 # Check to see that the pipe works correctly.
5380 pipe_works=no
5381
5382 rm -f conftest*
5383 cat > conftest.$ac_ext <<EOF
5384#ifdef __cplusplus
5385extern "C" {
5386#endif
5387char nm_test_var;
5388void nm_test_func(){}
5389#ifdef __cplusplus
5390}
5391#endif
5392int main(){nm_test_var='a';nm_test_func();return(0);}
5393EOF
5394
5395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5396 (eval $ac_compile) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; then
5400 # Now try to grab the symbols.
5401 nlist=conftest.nm
5402 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5403 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } && test -s "$nlist"; then
5407 # Try sorting and uniquifying the output.
5408 if sort "$nlist" | uniq > "$nlist"T; then
5409 mv -f "$nlist"T "$nlist"
5410 else
5411 rm -f "$nlist"T
5412 fi
5413
5414 # Make sure that we snagged all the symbols we need.
5415 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5416 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5417 cat <<EOF > conftest.$ac_ext
5418#ifdef __cplusplus
5419extern "C" {
5420#endif
5421
5422EOF
5423 # Now generate the symbol file.
5424 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5425
5426 cat <<EOF >> conftest.$ac_ext
5427#if defined (__STDC__) && __STDC__
5428# define lt_ptr_t void *
5429#else
5430# define lt_ptr_t char *
5431# define const
5432#endif
5433
5434/* The mapping between symbol names and symbols. */
5435const struct {
5436 const char *name;
5437 lt_ptr_t address;
5438}
5439lt_preloaded_symbols[] =
5440{
5441EOF
5442 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5443 cat <<\EOF >> conftest.$ac_ext
5444 {0, (lt_ptr_t) 0}
5445};
5446
5447#ifdef __cplusplus
5448}
5449#endif
5450EOF
5451 # Now try linking the two files.
5452 mv conftest.$ac_objext conftstm.$ac_objext
5453 lt_save_LIBS="$LIBS"
5454 lt_save_CFLAGS="$CFLAGS"
5455 LIBS="conftstm.$ac_objext"
5456 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458 (eval $ac_link) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5462 pipe_works=yes
5463 fi
5464 LIBS="$lt_save_LIBS"
5465 CFLAGS="$lt_save_CFLAGS"
5466 else
5467 echo "cannot find nm_test_func in $nlist" >&5
5468 fi
5469 else
5470 echo "cannot find nm_test_var in $nlist" >&5
5471 fi
5472 else
5473 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5474 fi
5475 else
5476 echo "$progname: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5478 fi
5479 rm -f conftest* conftst*
5480
5481 # Do not use the global_symbol_pipe unless it works.
5482 if test "$pipe_works" = yes; then
5483 break
5484 else
5485 lt_cv_sys_global_symbol_pipe=
5486 fi
5487done
5488
5489fi
5490
5491if test -z "$lt_cv_sys_global_symbol_pipe"; then
5492 lt_cv_sys_global_symbol_to_cdecl=
5493fi
5494if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5495 echo "$as_me:$LINENO: result: failed" >&5
5496echo "${ECHO_T}failed" >&6
5497else
5498 echo "$as_me:$LINENO: result: ok" >&5
5499echo "${ECHO_T}ok" >&6
5500fi
5501
5502echo "$as_me:$LINENO: checking for objdir" >&5
5503echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5504if test "${lt_cv_objdir+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507 rm -f .libs 2>/dev/null
5508mkdir .libs 2>/dev/null
5509if test -d .libs; then
5510 lt_cv_objdir=.libs
5511else
5512 # MS-DOS does not allow filenames that begin with a dot.
5513 lt_cv_objdir=_libs
5514fi
5515rmdir .libs 2>/dev/null
5516fi
5517echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5518echo "${ECHO_T}$lt_cv_objdir" >&6
5519objdir=$lt_cv_objdir
5520
5521
5522
5523
5524
5525case $host_os in
5526aix3*)
5527 # AIX sometimes has problems with the GCC collect2 program. For some
5528 # reason, if we set the COLLECT_NAMES environment variable, the problems
5529 # vanish in a puff of smoke.
5530 if test "X${COLLECT_NAMES+set}" != Xset; then
5531 COLLECT_NAMES=
5532 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005533 fi
5534 ;;
5535esac
5536
John Criswell47fdd832003-07-14 16:52:07 +00005537# Sed substitution that helps us do robust quoting. It backslashifies
5538# metacharacters that are still active within double-quoted strings.
5539Xsed='sed -e s/^X//'
5540sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5541
5542# Same as above, but do not quote variable references.
5543double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5544
5545# Sed substitution to delay expansion of an escaped shell variable in a
5546# double_quote_subst'ed string.
5547delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5548
5549# Sed substitution to avoid accidental globbing in evaled expressions
5550no_glob_subst='s/\*/\\\*/g'
5551
5552# Constants:
5553rm="rm -f"
5554
5555# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +00005556default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005557can_build_shared=yes
5558
5559# All known linkers require a `.a' archive for static linking (except M$VC,
5560# which needs '.lib').
5561libext=a
5562ltmain="$ac_aux_dir/ltmain.sh"
5563ofile="$default_ofile"
5564with_gnu_ld="$lt_cv_prog_gnu_ld"
5565
5566if test -n "$ac_tool_prefix"; then
5567 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5568set dummy ${ac_tool_prefix}ar; ac_word=$2
5569echo "$as_me:$LINENO: checking for $ac_word" >&5
5570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5571if test "${ac_cv_prog_AR+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573else
5574 if test -n "$AR"; then
5575 ac_cv_prog_AR="$AR" # Let the user override the test.
5576else
5577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578for as_dir in $PATH
5579do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_AR="${ac_tool_prefix}ar"
5585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588done
5589done
5590
5591fi
5592fi
5593AR=$ac_cv_prog_AR
5594if test -n "$AR"; then
5595 echo "$as_me:$LINENO: result: $AR" >&5
5596echo "${ECHO_T}$AR" >&6
5597else
5598 echo "$as_me:$LINENO: result: no" >&5
5599echo "${ECHO_T}no" >&6
5600fi
5601
5602fi
5603if test -z "$ac_cv_prog_AR"; then
5604 ac_ct_AR=$AR
5605 # Extract the first word of "ar", so it can be a program name with args.
5606set dummy ar; ac_word=$2
5607echo "$as_me:$LINENO: checking for $ac_word" >&5
5608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612 if test -n "$ac_ct_AR"; then
5613 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_ac_ct_AR="ar"
5623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626done
5627done
5628
5629 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5630fi
5631fi
5632ac_ct_AR=$ac_cv_prog_ac_ct_AR
5633if test -n "$ac_ct_AR"; then
5634 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5635echo "${ECHO_T}$ac_ct_AR" >&6
5636else
5637 echo "$as_me:$LINENO: result: no" >&5
5638echo "${ECHO_T}no" >&6
5639fi
5640
5641 AR=$ac_ct_AR
5642else
5643 AR="$ac_cv_prog_AR"
5644fi
5645
John Criswell7a73b802003-06-30 21:59:07 +00005646if test -n "$ac_tool_prefix"; then
5647 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5648set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5649echo "$as_me:$LINENO: checking for $ac_word" >&5
5650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651if test "${ac_cv_prog_RANLIB+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653else
5654 if test -n "$RANLIB"; then
5655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5656else
5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5667 fi
5668done
5669done
5670
5671fi
5672fi
5673RANLIB=$ac_cv_prog_RANLIB
5674if test -n "$RANLIB"; then
5675 echo "$as_me:$LINENO: result: $RANLIB" >&5
5676echo "${ECHO_T}$RANLIB" >&6
5677else
5678 echo "$as_me:$LINENO: result: no" >&5
5679echo "${ECHO_T}no" >&6
5680fi
5681
5682fi
5683if test -z "$ac_cv_prog_RANLIB"; then
5684 ac_ct_RANLIB=$RANLIB
5685 # Extract the first word of "ranlib", so it can be a program name with args.
5686set dummy ranlib; ac_word=$2
5687echo "$as_me:$LINENO: checking for $ac_word" >&5
5688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692 if test -n "$ac_ct_RANLIB"; then
5693 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_ac_ct_RANLIB="ranlib"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706done
5707done
5708
5709 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5710fi
5711fi
5712ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5713if test -n "$ac_ct_RANLIB"; then
5714 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5715echo "${ECHO_T}$ac_ct_RANLIB" >&6
5716else
5717 echo "$as_me:$LINENO: result: no" >&5
5718echo "${ECHO_T}no" >&6
5719fi
5720
5721 RANLIB=$ac_ct_RANLIB
5722else
5723 RANLIB="$ac_cv_prog_RANLIB"
5724fi
5725
5726if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5728set dummy ${ac_tool_prefix}strip; ac_word=$2
5729echo "$as_me:$LINENO: checking for $ac_word" >&5
5730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731if test "${ac_cv_prog_STRIP+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733else
5734 if test -n "$STRIP"; then
5735 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5736else
5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH
5739do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748done
5749done
5750
5751fi
5752fi
5753STRIP=$ac_cv_prog_STRIP
5754if test -n "$STRIP"; then
5755 echo "$as_me:$LINENO: result: $STRIP" >&5
5756echo "${ECHO_T}$STRIP" >&6
5757else
5758 echo "$as_me:$LINENO: result: no" >&5
5759echo "${ECHO_T}no" >&6
5760fi
5761
5762fi
5763if test -z "$ac_cv_prog_STRIP"; then
5764 ac_ct_STRIP=$STRIP
5765 # Extract the first word of "strip", so it can be a program name with args.
5766set dummy strip; ac_word=$2
5767echo "$as_me:$LINENO: checking for $ac_word" >&5
5768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772 if test -n "$ac_ct_STRIP"; then
5773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_ac_ct_STRIP="strip"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786done
5787done
5788
5789 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5790fi
5791fi
5792ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5793if test -n "$ac_ct_STRIP"; then
5794 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5795echo "${ECHO_T}$ac_ct_STRIP" >&6
5796else
5797 echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6
5799fi
5800
5801 STRIP=$ac_ct_STRIP
5802else
5803 STRIP="$ac_cv_prog_STRIP"
5804fi
5805
5806
John Criswell7a73b802003-06-30 21:59:07 +00005807old_CC="$CC"
5808old_CFLAGS="$CFLAGS"
5809
5810# Set sane defaults for various variables
5811test -z "$AR" && AR=ar
5812test -z "$AR_FLAGS" && AR_FLAGS=cru
5813test -z "$AS" && AS=as
5814test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005815test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005816test -z "$DLLTOOL" && DLLTOOL=dlltool
5817test -z "$LD" && LD=ld
5818test -z "$LN_S" && LN_S="ln -s"
5819test -z "$MAGIC_CMD" && MAGIC_CMD=file
5820test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005821test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005822test -z "$OBJDUMP" && OBJDUMP=objdump
5823test -z "$RANLIB" && RANLIB=:
5824test -z "$STRIP" && STRIP=:
5825test -z "$ac_objext" && ac_objext=o
5826
John Criswell7a73b802003-06-30 21:59:07 +00005827# Determine commands to create old-style static archives.
5828old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5829old_postinstall_cmds='chmod 644 $oldlib'
5830old_postuninstall_cmds=
5831
5832if test -n "$RANLIB"; then
5833 case $host_os in
5834 openbsd*)
Reid Spencer177dbe22004-10-13 01:01:03 +00005835 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00005836 ;;
5837 *)
Reid Spencer177dbe22004-10-13 01:01:03 +00005838 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00005839 ;;
5840 esac
Reid Spencer177dbe22004-10-13 01:01:03 +00005841 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +00005842fi
5843
Reid Spencer2706f8c2004-09-19 23:53:36 +00005844cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5845
John Criswell47fdd832003-07-14 16:52:07 +00005846# Only perform the check for file, if the check method requires it
5847case $deplibs_check_method in
5848file_magic*)
5849 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5850 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5851echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5852if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005854else
John Criswell47fdd832003-07-14 16:52:07 +00005855 case $MAGIC_CMD in
5856[\\/*] | ?:[\\/]*)
5857 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5858 ;;
5859*)
5860 lt_save_MAGIC_CMD="$MAGIC_CMD"
5861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5862 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5863 for ac_dir in $ac_dummy; do
5864 IFS="$lt_save_ifs"
5865 test -z "$ac_dir" && ac_dir=.
5866 if test -f $ac_dir/${ac_tool_prefix}file; then
5867 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5868 if test -n "$file_magic_test_file"; then
5869 case $deplibs_check_method in
5870 "file_magic "*)
5871 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5873 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5874 $EGREP "$file_magic_regex" > /dev/null; then
5875 :
5876 else
5877 cat <<EOF 1>&2
5878
5879*** Warning: the command libtool uses to detect shared libraries,
5880*** $file_magic_cmd, produces output that libtool cannot recognize.
5881*** The result is that libtool may fail to recognize shared libraries
5882*** as such. This will affect the creation of libtool libraries that
5883*** depend on shared libraries, but programs linked with such libtool
5884*** libraries will work regardless of this problem. Nevertheless, you
5885*** may want to report the problem to your system manager and/or to
5886*** bug-libtool@gnu.org
5887
5888EOF
5889 fi ;;
5890 esac
5891 fi
5892 break
5893 fi
5894 done
5895 IFS="$lt_save_ifs"
5896 MAGIC_CMD="$lt_save_MAGIC_CMD"
5897 ;;
5898esac
John Criswell7a73b802003-06-30 21:59:07 +00005899fi
John Criswell7a73b802003-06-30 21:59:07 +00005900
John Criswell47fdd832003-07-14 16:52:07 +00005901MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5902if test -n "$MAGIC_CMD"; then
5903 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5904echo "${ECHO_T}$MAGIC_CMD" >&6
5905else
5906 echo "$as_me:$LINENO: result: no" >&5
5907echo "${ECHO_T}no" >&6
5908fi
John Criswell7a73b802003-06-30 21:59:07 +00005909
John Criswell47fdd832003-07-14 16:52:07 +00005910if test -z "$lt_cv_path_MAGIC_CMD"; then
5911 if test -n "$ac_tool_prefix"; then
5912 echo "$as_me:$LINENO: checking for file" >&5
5913echo $ECHO_N "checking for file... $ECHO_C" >&6
5914if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917 case $MAGIC_CMD in
5918[\\/*] | ?:[\\/]*)
5919 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5920 ;;
5921*)
5922 lt_save_MAGIC_CMD="$MAGIC_CMD"
5923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5924 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5925 for ac_dir in $ac_dummy; do
5926 IFS="$lt_save_ifs"
5927 test -z "$ac_dir" && ac_dir=.
5928 if test -f $ac_dir/file; then
5929 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5930 if test -n "$file_magic_test_file"; then
5931 case $deplibs_check_method in
5932 "file_magic "*)
5933 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5935 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5936 $EGREP "$file_magic_regex" > /dev/null; then
5937 :
5938 else
5939 cat <<EOF 1>&2
5940
5941*** Warning: the command libtool uses to detect shared libraries,
5942*** $file_magic_cmd, produces output that libtool cannot recognize.
5943*** The result is that libtool may fail to recognize shared libraries
5944*** as such. This will affect the creation of libtool libraries that
5945*** depend on shared libraries, but programs linked with such libtool
5946*** libraries will work regardless of this problem. Nevertheless, you
5947*** may want to report the problem to your system manager and/or to
5948*** bug-libtool@gnu.org
5949
5950EOF
5951 fi ;;
5952 esac
5953 fi
5954 break
5955 fi
5956 done
5957 IFS="$lt_save_ifs"
5958 MAGIC_CMD="$lt_save_MAGIC_CMD"
5959 ;;
5960esac
5961fi
5962
5963MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5964if test -n "$MAGIC_CMD"; then
5965 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5966echo "${ECHO_T}$MAGIC_CMD" >&6
5967else
5968 echo "$as_me:$LINENO: result: no" >&5
5969echo "${ECHO_T}no" >&6
5970fi
5971
5972 else
5973 MAGIC_CMD=:
5974 fi
5975fi
5976
5977 fi
5978 ;;
5979esac
5980
5981enable_dlopen=no
5982enable_win32_dll=no
5983
5984# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5985if test "${enable_libtool_lock+set}" = set; then
5986 enableval="$enable_libtool_lock"
5987
5988fi;
5989test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5990
John Criswell7a73b802003-06-30 21:59:07 +00005991
5992# Check whether --with-pic or --without-pic was given.
5993if test "${with_pic+set}" = set; then
5994 withval="$with_pic"
5995 pic_mode="$withval"
5996else
5997 pic_mode=default
5998fi;
5999test -z "$pic_mode" && pic_mode=default
6000
John Criswell47fdd832003-07-14 16:52:07 +00006001# Use C for the default configuration in the libtool script
6002tagname=
6003lt_save_CC="$CC"
6004ac_ext=c
6005ac_cpp='$CPP $CPPFLAGS'
6006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009
6010
6011# Source file extension for C test sources.
6012ac_ext=c
6013
6014# Object file extension for compiled C test sources.
6015objext=o
6016objext=$objext
6017
6018# Code to be used in simple compile tests
6019lt_simple_compile_test_code="int some_variable = 0;\n"
6020
6021# Code to be used in simple link tests
6022lt_simple_link_test_code='int main(){return(0);}\n'
6023
6024
6025# If no C compiler was specified, use CC.
6026LTCC=${LTCC-"$CC"}
6027
6028# Allow CC to be a program name with arguments.
6029compiler=$CC
6030
6031
6032#
6033# Check for any special shared library compilation flags.
6034#
6035lt_prog_cc_shlib=
6036if test "$GCC" = no; then
6037 case $host_os in
6038 sco3.2v5*)
6039 lt_prog_cc_shlib='-belf'
6040 ;;
6041 esac
6042fi
6043if test -n "$lt_prog_cc_shlib"; then
6044 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6045echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6046 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6047 else
6048 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6049echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6050 lt_cv_prog_cc_can_build_shared=no
6051 fi
6052fi
6053
6054
6055#
6056# Check to make sure the static flag actually works.
6057#
6058echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6059echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6060if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
John Criswell47fdd832003-07-14 16:52:07 +00006063 lt_prog_compiler_static_works=no
6064 save_LDFLAGS="$LDFLAGS"
6065 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6066 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6068 # The compiler can only warn and ignore the option if not recognized
6069 # So say no if there are warnings
6070 if test -s conftest.err; then
6071 # Append any errors to the config.log.
6072 cat conftest.err 1>&5
6073 else
6074 lt_prog_compiler_static_works=yes
6075 fi
6076 fi
6077 $rm conftest*
6078 LDFLAGS="$save_LDFLAGS"
6079
6080fi
6081echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6082echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6083
6084if test x"$lt_prog_compiler_static_works" = xyes; then
6085 :
6086else
6087 lt_prog_compiler_static=
6088fi
6089
6090
6091
John Criswell47fdd832003-07-14 16:52:07 +00006092
6093lt_prog_compiler_no_builtin_flag=
6094
6095if test "$GCC" = yes; then
6096 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6097
Reid Spencer2706f8c2004-09-19 23:53:36 +00006098
6099echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006100echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6101if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103else
6104 lt_cv_prog_compiler_rtti_exceptions=no
6105 ac_outfile=conftest.$ac_objext
6106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6107 lt_compiler_flag="-fno-rtti -fno-exceptions"
6108 # Insert the option either (1) after the last *FLAGS variable, or
6109 # (2) before a word containing "conftest.", or (3) at the end.
6110 # Note that $ac_compile itself does not contain backslashes and begins
6111 # with a dollar sign (not a hyphen), so the echo should work correctly.
6112 # The option is referenced via a variable to avoid confusing sed.
6113 lt_compile=`echo "$ac_compile" | $SED \
6114 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6116 -e 's:$: $lt_compiler_flag:'`
Misha Brukman591edc62004-10-14 18:59:42 +00006117 (eval echo "\"\$as_me:6117: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006118 (eval "$lt_compile" 2>conftest.err)
6119 ac_status=$?
6120 cat conftest.err >&5
Misha Brukman591edc62004-10-14 18:59:42 +00006121 echo "$as_me:6121: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006122 if (exit $ac_status) && test -s "$ac_outfile"; then
6123 # The compiler can only warn and ignore the option if not recognized
6124 # So say no if there are warnings
6125 if test ! -s conftest.err; then
6126 lt_cv_prog_compiler_rtti_exceptions=yes
6127 fi
6128 fi
6129 $rm conftest*
6130
6131fi
6132echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6133echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6134
6135if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6136 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6137else
6138 :
6139fi
6140
6141fi
6142
6143lt_prog_compiler_wl=
6144lt_prog_compiler_pic=
6145lt_prog_compiler_static=
6146
6147echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6148echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006149
6150 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006151 lt_prog_compiler_wl='-Wl,'
6152 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006153
6154 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006155 aix*)
6156 # All AIX code is PIC.
6157 if test "$host_cpu" = ia64; then
6158 # AIX 5 now supports IA64 processor
6159 lt_prog_compiler_static='-Bstatic'
6160 fi
John Criswell7a73b802003-06-30 21:59:07 +00006161 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006162
John Criswell7a73b802003-06-30 21:59:07 +00006163 amigaos*)
6164 # FIXME: we need at least 68020 code to build shared libraries, but
6165 # adding the `-m68020' flag to GCC prevents building anything better,
6166 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006167 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006168 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006169
6170 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006171 # PIC is the default for these OSes.
6172 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006173
6174 mingw* | pw32* | os2*)
6175 # This hack is so that the source file can tell whether it is being
6176 # built for inclusion in a dll (and should export symbols for example).
6177 lt_prog_compiler_pic='-DDLL_EXPORT'
6178 ;;
6179
John Criswell7a73b802003-06-30 21:59:07 +00006180 darwin* | rhapsody*)
6181 # PIC is the default on this platform
6182 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006183 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006184 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006185
6186 msdosdjgpp*)
6187 # Just because we use GCC doesn't mean we suddenly get shared libraries
6188 # on systems that don't support them.
6189 lt_prog_compiler_can_build_shared=no
6190 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006191 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006192
John Criswell7a73b802003-06-30 21:59:07 +00006193 sysv4*MP*)
6194 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006195 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006196 fi
6197 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006198
6199 hpux*)
6200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6201 # not for PA HP-UX.
6202 case "$host_cpu" in
6203 hppa*64*|ia64*)
6204 # +Z the default
6205 ;;
6206 *)
6207 lt_prog_compiler_pic='-fPIC'
6208 ;;
6209 esac
6210 ;;
6211
John Criswell7a73b802003-06-30 21:59:07 +00006212 *)
John Criswell47fdd832003-07-14 16:52:07 +00006213 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006214 ;;
6215 esac
6216 else
John Criswell47fdd832003-07-14 16:52:07 +00006217 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006218 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006219 aix*)
6220 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006221 if test "$host_cpu" = ia64; then
6222 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006223 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006224 else
John Criswell47fdd832003-07-14 16:52:07 +00006225 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006226 fi
6227 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006228 darwin*)
6229 # PIC is the default on this platform
6230 # Common symbols not allowed in MH_DYLIB files
6231 case "$cc_basename" in
6232 xlc*)
6233 lt_prog_compiler_pic='-qnocommon'
6234 lt_prog_compiler_wl='-Wl,'
6235 ;;
6236 esac
6237 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006238
John Criswell47fdd832003-07-14 16:52:07 +00006239 mingw* | pw32* | os2*)
6240 # This hack is so that the source file can tell whether it is being
6241 # built for inclusion in a dll (and should export symbols for example).
6242 lt_prog_compiler_pic='-DDLL_EXPORT'
6243 ;;
6244
John Criswell7a73b802003-06-30 21:59:07 +00006245 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006246 lt_prog_compiler_wl='-Wl,'
6247 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6248 # not for PA HP-UX.
6249 case "$host_cpu" in
6250 hppa*64*|ia64*)
6251 # +Z the default
6252 ;;
6253 *)
6254 lt_prog_compiler_pic='+Z'
6255 ;;
6256 esac
6257 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6258 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006259 ;;
6260
John Criswell47fdd832003-07-14 16:52:07 +00006261 irix5* | irix6* | nonstopux*)
6262 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006263 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006264 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006265 ;;
6266
6267 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006268 lt_prog_compiler_pic='-KPIC'
6269 lt_prog_compiler_static='-Bstatic'
6270 ;;
6271
6272 linux*)
6273 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +00006274 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +00006275 lt_prog_compiler_wl='-Wl,'
6276 lt_prog_compiler_pic='-KPIC'
6277 lt_prog_compiler_static='-static'
6278 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006279 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +00006280 lt_prog_compiler_wl='-Wl,'
6281 # All Alpha code is PIC.
6282 lt_prog_compiler_static='-non_shared'
6283 ;;
6284 esac
John Criswell7a73b802003-06-30 21:59:07 +00006285 ;;
6286
6287 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006288 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006289 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006290 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006291 ;;
6292
6293 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006294 lt_prog_compiler_pic='-Kpic'
6295 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006296 ;;
6297
6298 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006299 lt_prog_compiler_wl='-Wl,'
6300 lt_prog_compiler_pic='-KPIC'
6301 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006302 ;;
6303
6304 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006305 lt_prog_compiler_wl='-Qoption ld '
6306 lt_prog_compiler_pic='-PIC'
6307 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006308 ;;
6309
6310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006311 lt_prog_compiler_wl='-Wl,'
6312 lt_prog_compiler_pic='-KPIC'
6313 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006314 ;;
6315
6316 sysv4*MP*)
6317 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006318 lt_prog_compiler_pic='-Kconform_pic'
6319 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006320 fi
6321 ;;
6322
John Criswell47fdd832003-07-14 16:52:07 +00006323 uts4*)
6324 lt_prog_compiler_pic='-pic'
6325 lt_prog_compiler_static='-Bstatic'
6326 ;;
6327
John Criswell7a73b802003-06-30 21:59:07 +00006328 *)
John Criswell47fdd832003-07-14 16:52:07 +00006329 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006330 ;;
6331 esac
6332 fi
6333
John Criswell47fdd832003-07-14 16:52:07 +00006334echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6335echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006336
John Criswell47fdd832003-07-14 16:52:07 +00006337#
6338# Check to make sure the PIC flag actually works.
6339#
6340if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00006341
6342echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006343echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6344if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006345 echo $ECHO_N "(cached) $ECHO_C" >&6
6346else
John Criswell47fdd832003-07-14 16:52:07 +00006347 lt_prog_compiler_pic_works=no
6348 ac_outfile=conftest.$ac_objext
6349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6350 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6351 # Insert the option either (1) after the last *FLAGS variable, or
6352 # (2) before a word containing "conftest.", or (3) at the end.
6353 # Note that $ac_compile itself does not contain backslashes and begins
6354 # with a dollar sign (not a hyphen), so the echo should work correctly.
6355 # The option is referenced via a variable to avoid confusing sed.
6356 lt_compile=`echo "$ac_compile" | $SED \
6357 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6359 -e 's:$: $lt_compiler_flag:'`
Misha Brukman591edc62004-10-14 18:59:42 +00006360 (eval echo "\"\$as_me:6360: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006361 (eval "$lt_compile" 2>conftest.err)
6362 ac_status=$?
6363 cat conftest.err >&5
Misha Brukman591edc62004-10-14 18:59:42 +00006364 echo "$as_me:6364: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006365 if (exit $ac_status) && test -s "$ac_outfile"; then
6366 # The compiler can only warn and ignore the option if not recognized
6367 # So say no if there are warnings
6368 if test ! -s conftest.err; then
6369 lt_prog_compiler_pic_works=yes
6370 fi
6371 fi
6372 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006373
John Criswell47fdd832003-07-14 16:52:07 +00006374fi
6375echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6376echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006377
John Criswell47fdd832003-07-14 16:52:07 +00006378if test x"$lt_prog_compiler_pic_works" = xyes; then
6379 case $lt_prog_compiler_pic in
6380 "" | " "*) ;;
6381 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6382 esac
John Criswell7a73b802003-06-30 21:59:07 +00006383else
John Criswell47fdd832003-07-14 16:52:07 +00006384 lt_prog_compiler_pic=
6385 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006386fi
6387
John Criswell7a73b802003-06-30 21:59:07 +00006388fi
John Criswell47fdd832003-07-14 16:52:07 +00006389case "$host_os" in
6390 # For platforms which do not support PIC, -DPIC is meaningless:
6391 *djgpp*)
6392 lt_prog_compiler_pic=
6393 ;;
6394 *)
6395 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6396 ;;
6397esac
John Criswell7a73b802003-06-30 21:59:07 +00006398
John Criswell7a73b802003-06-30 21:59:07 +00006399echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6400echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006401if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
John Criswell47fdd832003-07-14 16:52:07 +00006404 lt_cv_prog_compiler_c_o=no
6405 $rm -r conftest 2>/dev/null
6406 mkdir conftest
6407 cd conftest
6408 mkdir out
6409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006410
John Criswell47fdd832003-07-14 16:52:07 +00006411 lt_compiler_flag="-o out/conftest2.$ac_objext"
6412 # Insert the option either (1) after the last *FLAGS variable, or
6413 # (2) before a word containing "conftest.", or (3) at the end.
6414 # Note that $ac_compile itself does not contain backslashes and begins
6415 # with a dollar sign (not a hyphen), so the echo should work correctly.
6416 lt_compile=`echo "$ac_compile" | $SED \
6417 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6419 -e 's:$: $lt_compiler_flag:'`
Misha Brukman591edc62004-10-14 18:59:42 +00006420 (eval echo "\"\$as_me:6420: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006421 (eval "$lt_compile" 2>out/conftest.err)
6422 ac_status=$?
6423 cat out/conftest.err >&5
Misha Brukman591edc62004-10-14 18:59:42 +00006424 echo "$as_me:6424: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6426 then
6427 # The compiler can only warn and ignore the option if not recognized
6428 # So say no if there are warnings
6429 if test ! -s out/conftest.err; then
6430 lt_cv_prog_compiler_c_o=yes
6431 fi
6432 fi
6433 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +00006434 $rm conftest*
6435 # SGI C++ compiler will create directory out/ii_files/ for
6436 # template instantiation
6437 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6438 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +00006439 cd ..
6440 rmdir conftest
6441 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006442
6443fi
John Criswell47fdd832003-07-14 16:52:07 +00006444echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6445echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006446
John Criswell7a73b802003-06-30 21:59:07 +00006447
John Criswell7a73b802003-06-30 21:59:07 +00006448hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006449if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006450 # do not overwrite the value of need_locks provided by the user
6451 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6452echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6453 hard_links=yes
6454 $rm conftest*
6455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6456 touch conftest.a
6457 ln conftest.a conftest.b 2>&5 || hard_links=no
6458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6459 echo "$as_me:$LINENO: result: $hard_links" >&5
6460echo "${ECHO_T}$hard_links" >&6
6461 if test "$hard_links" = no; then
6462 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6463echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6464 need_locks=warn
6465 fi
6466else
6467 need_locks=no
6468fi
John Criswell7a73b802003-06-30 21:59:07 +00006469
John Criswell47fdd832003-07-14 16:52:07 +00006470echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6471echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6472
6473 runpath_var=
6474 allow_undefined_flag=
6475 enable_shared_with_static_runtimes=no
6476 archive_cmds=
6477 archive_expsym_cmds=
6478 old_archive_From_new_cmds=
6479 old_archive_from_expsyms_cmds=
6480 export_dynamic_flag_spec=
6481 whole_archive_flag_spec=
6482 thread_safe_flag_spec=
6483 hardcode_libdir_flag_spec=
6484 hardcode_libdir_flag_spec_ld=
6485 hardcode_libdir_separator=
6486 hardcode_direct=no
6487 hardcode_minus_L=no
6488 hardcode_shlibpath_var=unsupported
6489 link_all_deplibs=unknown
6490 hardcode_automatic=no
6491 module_cmds=
6492 module_expsym_cmds=
6493 always_export_symbols=no
6494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6495 # include_expsyms should be a list of space-separated symbols to be *always*
6496 # included in the symbol list
6497 include_expsyms=
6498 # exclude_expsyms can be an extended regexp of symbols to exclude
6499 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6500 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6501 # as well as any symbol that contains `d'.
6502 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6503 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6504 # platforms (ab)use it in PIC code, but their linkers get confused if
6505 # the symbol is explicitly referenced. Since portable code cannot
6506 # rely on this symbol name, it's probably fine to never include it in
6507 # preloaded symbol tables.
6508 extract_expsyms_cmds=
6509
6510 case $host_os in
6511 cygwin* | mingw* | pw32*)
6512 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6513 # When not using gcc, we currently assume that we are using
6514 # Microsoft Visual C++.
6515 if test "$GCC" != yes; then
6516 with_gnu_ld=no
6517 fi
6518 ;;
6519 openbsd*)
6520 with_gnu_ld=no
6521 ;;
6522 esac
6523
6524 ld_shlibs=yes
6525 if test "$with_gnu_ld" = yes; then
6526 # If archive_cmds runs LD, not CC, wlarc should be empty
6527 wlarc='${wl}'
6528
6529 # See if GNU ld supports shared libraries.
6530 case $host_os in
6531 aix3* | aix4* | aix5*)
6532 # On AIX/PPC, the GNU linker is very broken
6533 if test "$host_cpu" != ia64; then
6534 ld_shlibs=no
6535 cat <<EOF 1>&2
6536
6537*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6538*** to be unable to reliably create shared libraries on AIX.
6539*** Therefore, libtool is disabling shared libraries support. If you
6540*** really care for shared libraries, you may want to modify your PATH
6541*** so that a non-GNU linker is found, and then restart.
6542
6543EOF
6544 fi
6545 ;;
6546
6547 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +00006548 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 +00006549 hardcode_libdir_flag_spec='-L$libdir'
6550 hardcode_minus_L=yes
6551
6552 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6553 # that the semantics of dynamic libraries on AmigaOS, at least up
6554 # to version 4, is to share data among multiple programs linked
6555 # with the same dynamic library. Since this doesn't match the
6556 # behavior of shared libraries on other platforms, we can't use
6557 # them.
6558 ld_shlibs=no
6559 ;;
6560
6561 beos*)
6562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6563 allow_undefined_flag=unsupported
6564 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6565 # support --undefined. This deserves some investigation. FIXME
6566 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6567 else
6568 ld_shlibs=no
6569 fi
6570 ;;
6571
6572 cygwin* | mingw* | pw32*)
6573 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6574 # as there is no search path for DLLs.
6575 hardcode_libdir_flag_spec='-L$libdir'
6576 allow_undefined_flag=unsupported
6577 always_export_symbols=no
6578 enable_shared_with_static_runtimes=yes
6579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6580
6581 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6583 # If the export-symbols file already is a .def file (1st line
6584 # is EXPORTS), use it as is; otherwise, prepend...
6585 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6586 cp $export_symbols $output_objdir/$soname.def;
6587 else
6588 echo EXPORTS > $output_objdir/$soname.def;
6589 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +00006590 fi~
6591 $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 +00006592 else
6593 ld_shlibs=no
6594 fi
6595 ;;
6596
6597 netbsd*)
6598 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6599 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6600 wlarc=
6601 else
6602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6604 fi
6605 ;;
6606
6607 solaris* | sysv5*)
6608 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6609 ld_shlibs=no
6610 cat <<EOF 1>&2
6611
6612*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6613*** create shared libraries on Solaris systems. Therefore, libtool
6614*** is disabling shared libraries support. We urge you to upgrade GNU
6615*** binutils to release 2.9.1 or newer. Another option is to modify
6616*** your PATH or compiler configuration so that the native linker is
6617*** used, and then restart.
6618
6619EOF
6620 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6622 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6623 else
6624 ld_shlibs=no
6625 fi
6626 ;;
6627
6628 sunos4*)
6629 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6630 wlarc=
6631 hardcode_direct=yes
6632 hardcode_shlibpath_var=no
6633 ;;
6634
Reid Spencer2706f8c2004-09-19 23:53:36 +00006635 linux*)
6636 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6637 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6638 archive_cmds="$tmp_archive_cmds"
6639 supports_anon_versioning=no
6640 case `$LD -v 2>/dev/null` in
6641 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6642 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6643 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6644 *\ 2.11.*) ;; # other 2.11 versions
6645 *) supports_anon_versioning=yes ;;
6646 esac
6647 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +00006648 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6649cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6650$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +00006651 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6652 else
6653 archive_expsym_cmds="$tmp_archive_cmds"
6654 fi
6655 else
6656 ld_shlibs=no
6657 fi
6658 ;;
6659
John Criswell47fdd832003-07-14 16:52:07 +00006660 *)
6661 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6664 else
6665 ld_shlibs=no
6666 fi
6667 ;;
6668 esac
6669
6670 if test "$ld_shlibs" = yes; then
6671 runpath_var=LD_RUN_PATH
6672 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6673 export_dynamic_flag_spec='${wl}--export-dynamic'
6674 # ancient GNU ld didn't support --whole-archive et. al.
6675 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6676 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6677 else
6678 whole_archive_flag_spec=
6679 fi
6680 fi
6681 else
6682 # PORTME fill in a description of your system's linker (not GNU ld)
6683 case $host_os in
6684 aix3*)
6685 allow_undefined_flag=unsupported
6686 always_export_symbols=yes
Reid Spencer177dbe22004-10-13 01:01:03 +00006687 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 +00006688 # Note: this linker hardcodes the directories in LIBPATH if there
6689 # are no directories specified by -L.
6690 hardcode_minus_L=yes
6691 if test "$GCC" = yes && test -z "$link_static_flag"; then
6692 # Neither direct hardcoding nor static linking is supported with a
6693 # broken collect2.
6694 hardcode_direct=unsupported
6695 fi
6696 ;;
6697
6698 aix4* | aix5*)
6699 if test "$host_cpu" = ia64; then
6700 # On IA64, the linker does run time linking by default, so we don't
6701 # have to do anything special.
6702 aix_use_runtimelinking=no
6703 exp_sym_flag='-Bexport'
6704 no_entry_flag=""
6705 else
6706 # If we're using GNU nm, then we don't want the "-C" option.
6707 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6708 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6709 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'
6710 else
6711 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'
6712 fi
6713 aix_use_runtimelinking=no
6714
6715 # Test if we are trying to use run time linking or normal
6716 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6717 # need to do runtime linking.
6718 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6719 for ld_flag in $LDFLAGS; do
6720 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6721 aix_use_runtimelinking=yes
6722 break
6723 fi
6724 done
6725 esac
6726
6727 exp_sym_flag='-bexport'
6728 no_entry_flag='-bnoentry'
6729 fi
6730
6731 # When large executables or shared objects are built, AIX ld can
6732 # have problems creating the table of contents. If linking a library
6733 # or program results in "error TOC overflow" add -mminimal-toc to
6734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6736
6737 archive_cmds=''
6738 hardcode_direct=yes
6739 hardcode_libdir_separator=':'
6740 link_all_deplibs=yes
6741
6742 if test "$GCC" = yes; then
6743 case $host_os in aix4.012|aix4.012.*)
6744 # We only want to do this on AIX 4.2 and lower, the check
6745 # below for broken collect2 doesn't work under 4.3+
6746 collect2name=`${CC} -print-prog-name=collect2`
6747 if test -f "$collect2name" && \
6748 strings "$collect2name" | grep resolve_lib_name >/dev/null
6749 then
6750 # We have reworked collect2
6751 hardcode_direct=yes
6752 else
6753 # We have old collect2
6754 hardcode_direct=unsupported
6755 # It fails to find uninstalled libraries when the uninstalled
6756 # path is not listed in the libpath. Setting hardcode_minus_L
6757 # to unsupported forces relinking
6758 hardcode_minus_L=yes
6759 hardcode_libdir_flag_spec='-L$libdir'
6760 hardcode_libdir_separator=
6761 fi
6762 esac
6763 shared_flag='-shared'
6764 else
6765 # not using gcc
6766 if test "$host_cpu" = ia64; then
6767 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6768 # chokes on -Wl,-G. The following line is correct:
6769 shared_flag='-G'
6770 else
6771 if test "$aix_use_runtimelinking" = yes; then
6772 shared_flag='${wl}-G'
6773 else
6774 shared_flag='${wl}-bM:SRE'
6775 fi
6776 fi
6777 fi
6778
6779 # It seems that -bexpall does not export symbols beginning with
6780 # underscore (_), so it is better to generate a list of symbols to export.
6781 always_export_symbols=yes
6782 if test "$aix_use_runtimelinking" = yes; then
6783 # Warning - without using the other runtime loading flags (-brtl),
6784 # -berok will link without error, but may produce a broken library.
6785 allow_undefined_flag='-berok'
6786 # Determine the default libpath from the value encoded in an empty executable.
6787 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006788/* confdefs.h. */
6789_ACEOF
6790cat confdefs.h >>conftest.$ac_ext
6791cat >>conftest.$ac_ext <<_ACEOF
6792/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006793
John Criswell7a73b802003-06-30 21:59:07 +00006794int
6795main ()
6796{
John Criswell47fdd832003-07-14 16:52:07 +00006797
John Criswell7a73b802003-06-30 21:59:07 +00006798 ;
6799 return 0;
6800}
6801_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006802rm -f conftest.$ac_objext conftest$ac_exeext
6803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006804 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006805 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006806 grep -v '^ *+' conftest.er1 >conftest.err
6807 rm -f conftest.er1
6808 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006811 { ac_try='test -z "$ac_c_werror_flag"
6812 || test ! -s conftest.err'
6813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6814 (eval $ac_try) 2>&5
6815 ac_status=$?
6816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); }; } &&
6818 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6820 (eval $ac_try) 2>&5
6821 ac_status=$?
6822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6823 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006824
John Criswell47fdd832003-07-14 16:52:07 +00006825aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6826}'`
6827# Check for a 64-bit object if we didn't find anything.
6828if 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; }
6829}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006830else
6831 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006832sed 's/^/| /' conftest.$ac_ext >&5
6833
John Criswell7a73b802003-06-30 21:59:07 +00006834fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006835rm -f conftest.err conftest.$ac_objext \
6836 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006837if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006838
John Criswell47fdd832003-07-14 16:52:07 +00006839 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6840 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"
6841 else
6842 if test "$host_cpu" = ia64; then
6843 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6844 allow_undefined_flag="-z nodefs"
6845 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"
6846 else
6847 # Determine the default libpath from the value encoded in an empty executable.
6848 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006849/* confdefs.h. */
6850_ACEOF
6851cat confdefs.h >>conftest.$ac_ext
6852cat >>conftest.$ac_ext <<_ACEOF
6853/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006854
John Criswell47fdd832003-07-14 16:52:07 +00006855int
6856main ()
6857{
John Criswell7a73b802003-06-30 21:59:07 +00006858
John Criswell47fdd832003-07-14 16:52:07 +00006859 ;
6860 return 0;
6861}
6862_ACEOF
6863rm -f conftest.$ac_objext conftest$ac_exeext
6864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006865 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00006866 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006867 grep -v '^ *+' conftest.er1 >conftest.err
6868 rm -f conftest.er1
6869 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00006870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006872 { ac_try='test -z "$ac_c_werror_flag"
6873 || test ! -s conftest.err'
6874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6875 (eval $ac_try) 2>&5
6876 ac_status=$?
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); }; } &&
6879 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6881 (eval $ac_try) 2>&5
6882 ac_status=$?
6883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006885
John Criswell47fdd832003-07-14 16:52:07 +00006886aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6887}'`
6888# Check for a 64-bit object if we didn't find anything.
6889if 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; }
6890}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006891else
John Criswell47fdd832003-07-14 16:52:07 +00006892 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006893sed 's/^/| /' conftest.$ac_ext >&5
6894
John Criswell47fdd832003-07-14 16:52:07 +00006895fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006896rm -f conftest.err conftest.$ac_objext \
6897 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006898if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006899
John Criswell47fdd832003-07-14 16:52:07 +00006900 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6901 # Warning - without using the other run time loading flags,
6902 # -berok will link without error, but may produce a broken library.
6903 no_undefined_flag=' ${wl}-bernotok'
6904 allow_undefined_flag=' ${wl}-berok'
6905 # -bexpall does not export symbols beginning with underscore (_)
6906 always_export_symbols=yes
6907 # Exported symbols can be pulled into shared objects from archives
6908 whole_archive_flag_spec=' '
6909 archive_cmds_need_lc=yes
6910 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +00006911 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 +00006912 fi
6913 fi
John Criswell7a73b802003-06-30 21:59:07 +00006914 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006915
6916 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +00006917 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 +00006918 hardcode_libdir_flag_spec='-L$libdir'
6919 hardcode_minus_L=yes
6920 # see comment about different semantics on the GNU ld section
6921 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006922 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006923
Reid Spencer2706f8c2004-09-19 23:53:36 +00006924 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +00006925 export_dynamic_flag_spec=-rdynamic
6926 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006927
John Criswell47fdd832003-07-14 16:52:07 +00006928 cygwin* | mingw* | pw32*)
6929 # When not using gcc, we currently assume that we are using
6930 # Microsoft Visual C++.
6931 # hardcode_libdir_flag_spec is actually meaningless, as there is
6932 # no search path for DLLs.
6933 hardcode_libdir_flag_spec=' '
6934 allow_undefined_flag=unsupported
6935 # Tell ltmain to make .lib files, not .a files.
6936 libext=lib
6937 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +00006938 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +00006939 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +00006940 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
John Criswell47fdd832003-07-14 16:52:07 +00006941 # The linker will automatically build a .lib file if we build a DLL.
6942 old_archive_From_new_cmds='true'
6943 # FIXME: Should let the user specify the lib program.
6944 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6945 fix_srcfile_path='`cygpath -w "$srcfile"`'
6946 enable_shared_with_static_runtimes=yes
6947 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006948
John Criswell47fdd832003-07-14 16:52:07 +00006949 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +00006950 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +00006951 rhapsody* | darwin1.[012])
6952 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6953 ;;
6954 *) # Darwin 1.3 on
6955 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6956 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6957 else
6958 case ${MACOSX_DEPLOYMENT_TARGET} in
6959 10.[012])
6960 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6961 ;;
6962 10.*)
6963 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6964 ;;
6965 esac
6966 fi
6967 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006968 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00006969 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +00006970 hardcode_direct=no
6971 hardcode_automatic=yes
6972 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +00006973 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +00006974 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +00006975 if test "$GCC" = yes ; then
6976 output_verbose_link_cmd='echo'
6977 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6978 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6979 # 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 +00006980 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}'
6981 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 +00006982 else
6983 case "$cc_basename" in
6984 xlc*)
6985 output_verbose_link_cmd='echo'
6986 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6987 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6988 # 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 +00006989 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}'
6990 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 +00006991 ;;
6992 *)
6993 ld_shlibs=no
6994 ;;
6995 esac
John Criswell7a73b802003-06-30 21:59:07 +00006996 fi
John Criswell47fdd832003-07-14 16:52:07 +00006997 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006998
John Criswell47fdd832003-07-14 16:52:07 +00006999 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00007000 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00007001 hardcode_libdir_flag_spec='-L$libdir'
7002 hardcode_shlibpath_var=no
7003 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007004
John Criswell47fdd832003-07-14 16:52:07 +00007005 freebsd1*)
7006 ld_shlibs=no
7007 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007008
John Criswell47fdd832003-07-14 16:52:07 +00007009 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7010 # support. Future versions do this automatically, but an explicit c++rt0.o
7011 # does not break anything, and helps significantly (at the cost of a little
7012 # extra space).
7013 freebsd2.2*)
7014 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7015 hardcode_libdir_flag_spec='-R$libdir'
7016 hardcode_direct=yes
7017 hardcode_shlibpath_var=no
7018 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007019
John Criswell47fdd832003-07-14 16:52:07 +00007020 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7021 freebsd2*)
7022 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7023 hardcode_direct=yes
7024 hardcode_minus_L=yes
7025 hardcode_shlibpath_var=no
7026 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007027
John Criswell47fdd832003-07-14 16:52:07 +00007028 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007029 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00007030 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7031 hardcode_libdir_flag_spec='-R$libdir'
7032 hardcode_direct=yes
7033 hardcode_shlibpath_var=no
7034 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007035
John Criswell47fdd832003-07-14 16:52:07 +00007036 hpux9*)
7037 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +00007038 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 +00007039 else
Reid Spencer177dbe22004-10-13 01:01:03 +00007040 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 +00007041 fi
7042 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7043 hardcode_libdir_separator=:
7044 hardcode_direct=yes
7045
7046 # hardcode_minus_L: Not really in the search PATH,
7047 # but as the default location of the library.
7048 hardcode_minus_L=yes
7049 export_dynamic_flag_spec='${wl}-E'
7050 ;;
7051
7052 hpux10* | hpux11*)
7053 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7054 case "$host_cpu" in
7055 hppa*64*|ia64*)
7056 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7057 ;;
7058 *)
7059 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7060 ;;
7061 esac
7062 else
7063 case "$host_cpu" in
7064 hppa*64*|ia64*)
7065 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7066 ;;
7067 *)
7068 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7069 ;;
7070 esac
7071 fi
7072 if test "$with_gnu_ld" = no; then
7073 case "$host_cpu" in
7074 hppa*64*)
7075 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7076 hardcode_libdir_flag_spec_ld='+b $libdir'
7077 hardcode_libdir_separator=:
7078 hardcode_direct=no
7079 hardcode_shlibpath_var=no
7080 ;;
7081 ia64*)
7082 hardcode_libdir_flag_spec='-L$libdir'
7083 hardcode_direct=no
7084 hardcode_shlibpath_var=no
7085
7086 # hardcode_minus_L: Not really in the search PATH,
7087 # but as the default location of the library.
7088 hardcode_minus_L=yes
7089 ;;
7090 *)
7091 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7092 hardcode_libdir_separator=:
7093 hardcode_direct=yes
7094 export_dynamic_flag_spec='${wl}-E'
7095
7096 # hardcode_minus_L: Not really in the search PATH,
7097 # but as the default location of the library.
7098 hardcode_minus_L=yes
7099 ;;
7100 esac
7101 fi
7102 ;;
7103
7104 irix5* | irix6* | nonstopux*)
7105 if test "$GCC" = yes; then
7106 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'
7107 else
7108 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'
7109 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7110 fi
7111 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7112 hardcode_libdir_separator=:
7113 link_all_deplibs=yes
7114 ;;
7115
7116 netbsd*)
7117 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7119 else
7120 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7121 fi
7122 hardcode_libdir_flag_spec='-R$libdir'
7123 hardcode_direct=yes
7124 hardcode_shlibpath_var=no
7125 ;;
7126
7127 newsos6)
7128 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7129 hardcode_direct=yes
7130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7131 hardcode_libdir_separator=:
7132 hardcode_shlibpath_var=no
7133 ;;
7134
7135 openbsd*)
7136 hardcode_direct=yes
7137 hardcode_shlibpath_var=no
7138 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007140 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 +00007141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7142 export_dynamic_flag_spec='${wl}-E'
7143 else
7144 case $host_os in
7145 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7147 hardcode_libdir_flag_spec='-R$libdir'
7148 ;;
7149 *)
7150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7152 ;;
7153 esac
7154 fi
7155 ;;
7156
7157 os2*)
7158 hardcode_libdir_flag_spec='-L$libdir'
7159 hardcode_minus_L=yes
7160 allow_undefined_flag=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +00007161 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 +00007162 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7163 ;;
7164
7165 osf3*)
7166 if test "$GCC" = yes; then
7167 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7168 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'
7169 else
7170 allow_undefined_flag=' -expect_unresolved \*'
7171 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'
7172 fi
7173 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7174 hardcode_libdir_separator=:
7175 ;;
7176
7177 osf4* | osf5*) # as osf3* with the addition of -msym flag
7178 if test "$GCC" = yes; then
7179 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7180 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'
7181 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7182 else
7183 allow_undefined_flag=' -expect_unresolved \*'
7184 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 +00007185 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7186 $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'
7187
John Criswell47fdd832003-07-14 16:52:07 +00007188 # Both c and cxx compiler support -rpath directly
7189 hardcode_libdir_flag_spec='-rpath $libdir'
7190 fi
7191 hardcode_libdir_separator=:
7192 ;;
7193
7194 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007195 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7196 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007197 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007198 runpath_var=LD_RUN_PATH
7199 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007200 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007201
John Criswell47fdd832003-07-14 16:52:07 +00007202 solaris*)
7203 no_undefined_flag=' -z text'
7204 if test "$GCC" = yes; then
7205 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00007206 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7207 $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 +00007208 else
7209 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00007210 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7211 $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 +00007212 fi
7213 hardcode_libdir_flag_spec='-R$libdir'
7214 hardcode_shlibpath_var=no
7215 case $host_os in
7216 solaris2.[0-5] | solaris2.[0-5].*) ;;
7217 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7218 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7219 esac
7220 link_all_deplibs=yes
7221 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007222
John Criswell47fdd832003-07-14 16:52:07 +00007223 sunos4*)
7224 if test "x$host_vendor" = xsequent; then
7225 # Use $CC to link under sequent, because it throws in some extra .o
7226 # files that make .init and .fini sections work.
7227 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7228 else
7229 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7230 fi
7231 hardcode_libdir_flag_spec='-L$libdir'
7232 hardcode_direct=yes
7233 hardcode_minus_L=yes
7234 hardcode_shlibpath_var=no
7235 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007236
John Criswell47fdd832003-07-14 16:52:07 +00007237 sysv4)
7238 case $host_vendor in
7239 sni)
7240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7241 hardcode_direct=yes # is this really true???
7242 ;;
7243 siemens)
7244 ## LD is ld it makes a PLAMLIB
7245 ## CC just makes a GrossModule.
7246 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7247 reload_cmds='$CC -r -o $output$reload_objs'
7248 hardcode_direct=no
7249 ;;
7250 motorola)
7251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7252 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7253 ;;
7254 esac
7255 runpath_var='LD_RUN_PATH'
7256 hardcode_shlibpath_var=no
7257 ;;
7258
7259 sysv4.3*)
7260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7261 hardcode_shlibpath_var=no
7262 export_dynamic_flag_spec='-Bexport'
7263 ;;
7264
7265 sysv4*MP*)
7266 if test -d /usr/nec; then
7267 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7268 hardcode_shlibpath_var=no
7269 runpath_var=LD_RUN_PATH
7270 hardcode_runpath_var=yes
7271 ld_shlibs=yes
7272 fi
7273 ;;
7274
7275 sysv4.2uw2*)
7276 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7277 hardcode_direct=yes
7278 hardcode_minus_L=no
7279 hardcode_shlibpath_var=no
7280 hardcode_runpath_var=yes
7281 runpath_var=LD_RUN_PATH
7282 ;;
7283
7284 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7285 no_undefined_flag='${wl}-z ${wl}text'
7286 if test "$GCC" = yes; then
7287 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7288 else
7289 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7290 fi
7291 runpath_var='LD_RUN_PATH'
7292 hardcode_shlibpath_var=no
7293 ;;
7294
7295 sysv5*)
7296 no_undefined_flag=' -z text'
7297 # $CC -shared without GNU ld will not create a library from C++
7298 # object files and a static libstdc++, better avoid it by now
7299 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +00007300 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7301 $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 +00007302 hardcode_libdir_flag_spec=
7303 hardcode_shlibpath_var=no
7304 runpath_var='LD_RUN_PATH'
7305 ;;
7306
7307 uts4*)
7308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7309 hardcode_libdir_flag_spec='-L$libdir'
7310 hardcode_shlibpath_var=no
7311 ;;
7312
7313 *)
7314 ld_shlibs=no
7315 ;;
7316 esac
7317 fi
7318
John Criswell7a73b802003-06-30 21:59:07 +00007319echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7320echo "${ECHO_T}$ld_shlibs" >&6
7321test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007322
John Criswell47fdd832003-07-14 16:52:07 +00007323variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7324if test "$GCC" = yes; then
7325 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7326fi
7327
7328#
7329# Do we need to explicitly link libc?
7330#
7331case "x$archive_cmds_need_lc" in
7332x|xyes)
7333 # Assume -lc should be added
7334 archive_cmds_need_lc=yes
7335
7336 if test "$enable_shared" = yes && test "$GCC" = yes; then
7337 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +00007338 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +00007339 # FIXME: we may have to deal with multi-command sequences.
7340 ;;
7341 '$CC '*)
7342 # Test whether the compiler implicitly links with -lc since on some
7343 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7344 # to ld, don't add -lc before -lgcc.
7345 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7346echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7347 $rm conftest*
7348 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7349
7350 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7351 (eval $ac_compile) 2>&5
7352 ac_status=$?
7353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); } 2>conftest.err; then
7355 soname=conftest
7356 lib=conftest
7357 libobjs=conftest.$ac_objext
7358 deplibs=
7359 wl=$lt_prog_compiler_wl
7360 compiler_flags=-v
7361 linker_flags=-v
7362 verstring=
7363 output_objdir=.
7364 libname=conftest
7365 lt_save_allow_undefined_flag=$allow_undefined_flag
7366 allow_undefined_flag=
7367 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7368 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7369 ac_status=$?
7370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371 (exit $ac_status); }
7372 then
7373 archive_cmds_need_lc=no
7374 else
7375 archive_cmds_need_lc=yes
7376 fi
7377 allow_undefined_flag=$lt_save_allow_undefined_flag
7378 else
7379 cat conftest.err 1>&5
7380 fi
7381 $rm conftest*
7382 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7383echo "${ECHO_T}$archive_cmds_need_lc" >&6
7384 ;;
7385 esac
7386 fi
7387 ;;
7388esac
7389
John Criswell7a73b802003-06-30 21:59:07 +00007390echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7391echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7392library_names_spec=
7393libname_spec='lib$name'
7394soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +00007395shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007396postinstall_cmds=
7397postuninstall_cmds=
7398finish_cmds=
7399finish_eval=
7400shlibpath_var=
7401shlibpath_overrides_runpath=unknown
7402version_type=none
7403dynamic_linker="$host_os ld.so"
7404sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007405if test "$GCC" = yes; then
7406 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7407 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7408 # if the path contains ";" then we assume it to be the separator
7409 # otherwise default to the standard path separator (i.e. ":") - it is
7410 # assumed that no part of a normal pathname contains ";" but that should
7411 # okay in the real world where ";" in dirpaths is itself problematic.
7412 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7413 else
7414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7415 fi
7416else
7417 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7418fi
7419need_lib_prefix=unknown
7420hardcode_into_libs=no
7421
7422# when you set need_version to no, make sure it does not cause -set_version
7423# flags to be left without arguments
7424need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007425
7426case $host_os in
7427aix3*)
7428 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007429 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007430 shlibpath_var=LIBPATH
7431
John Criswell47fdd832003-07-14 16:52:07 +00007432 # AIX 3 has no versioning support, so we append a major version to the name.
7433 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007434 ;;
7435
7436aix4* | aix5*)
7437 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007438 need_lib_prefix=no
7439 need_version=no
7440 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007441 if test "$host_cpu" = ia64; then
7442 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007443 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007444 shlibpath_var=LD_LIBRARY_PATH
7445 else
7446 # With GCC up to 2.95.x, collect2 would create an import file
7447 # for dependence libraries. The import file would start with
7448 # the line `#! .'. This would cause the generated library to
7449 # depend on `.', always an invalid library. This was fixed in
7450 # development snapshots of GCC prior to 3.0.
7451 case $host_os in
7452 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007453 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7454 echo ' yes '
7455 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7456 :
7457 else
7458 can_build_shared=no
7459 fi
7460 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007461 esac
John Criswell47fdd832003-07-14 16:52:07 +00007462 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7463 # soname into executable. Probably we can add versioning support to
7464 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007465 if test "$aix_use_runtimelinking" = yes; then
7466 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7467 # instead of lib<name>.a to let people know that these are not
7468 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007470 else
7471 # We preserve .a as extension for shared libraries through AIX4.2
7472 # and later when we are not doing run time linking.
7473 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007474 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007475 fi
7476 shlibpath_var=LIBPATH
7477 fi
7478 ;;
7479
7480amigaos*)
7481 library_names_spec='$libname.ixlibrary $libname.a'
7482 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007483 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 +00007484 ;;
7485
7486beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007487 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007488 dynamic_linker="$host_os ld.so"
7489 shlibpath_var=LIBRARY_PATH
7490 ;;
7491
Reid Spencer2706f8c2004-09-19 23:53:36 +00007492bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00007493 version_type=linux
7494 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7496 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007497 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7498 shlibpath_var=LD_LIBRARY_PATH
7499 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7500 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007501 # the default ld.so.conf also contains /usr/contrib/lib and
7502 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7503 # libtool to hard-code these into programs
7504 ;;
7505
7506cygwin* | mingw* | pw32*)
7507 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +00007508 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007509 need_version=no
7510 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007511
John Criswell7a73b802003-06-30 21:59:07 +00007512 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007513 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007514 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007515 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +00007516 postinstall_cmds='base_file=`basename \${file}`~
7517 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7518 dldir=$destdir/`dirname \$dlpath`~
7519 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007520 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +00007521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7522 dlpath=$dir/\$dldll~
John Criswell7a73b802003-06-30 21:59:07 +00007523 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007524 shlibpath_overrides_runpath=yes
7525
7526 case $host_os in
7527 cygwin*)
7528 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7529 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 +00007530 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007531 ;;
7532 mingw*)
7533 # MinGW DLLs use traditional 'lib' prefix
7534 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7535 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7536 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7537 # It is most probably a Windows format PATH printed by
7538 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7539 # path with ; separators, and with drive letters. We can handle the
7540 # drive letters (cygwin fileutils understands them), so leave them,
7541 # especially as we might pass files found there to a mingw objdump,
7542 # which wouldn't understand a cygwinified path. Ahh.
7543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7544 else
7545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7546 fi
7547 ;;
7548 pw32*)
7549 # pw32 DLLs use 'pw' prefix rather than 'lib'
7550 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7551 ;;
7552 esac
John Criswell7a73b802003-06-30 21:59:07 +00007553 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007554
John Criswell7a73b802003-06-30 21:59:07 +00007555 *)
John Criswell47fdd832003-07-14 16:52:07 +00007556 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007557 ;;
7558 esac
7559 dynamic_linker='Win32 ld.exe'
7560 # FIXME: first we should search . and the directory the executable is in
7561 shlibpath_var=PATH
7562 ;;
7563
7564darwin* | rhapsody*)
7565 dynamic_linker="$host_os dyld"
7566 version_type=darwin
7567 need_lib_prefix=no
7568 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +00007569 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +00007570 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007571 shlibpath_overrides_runpath=yes
7572 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +00007573 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +00007574 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007575 if test "$GCC" = yes; then
7576 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"`
7577 else
7578 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +00007579 fi
7580 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7581 ;;
7582
7583dgux*)
7584 version_type=linux
7585 need_lib_prefix=no
7586 need_version=no
7587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7588 soname_spec='${libname}${release}${shared_ext}$major'
7589 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007590 ;;
7591
7592freebsd1*)
7593 dynamic_linker=no
7594 ;;
7595
Reid Spencer2706f8c2004-09-19 23:53:36 +00007596kfreebsd*-gnu)
7597 version_type=linux
7598 need_lib_prefix=no
7599 need_version=no
7600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7601 soname_spec='${libname}${release}${shared_ext}$major'
7602 shlibpath_var=LD_LIBRARY_PATH
7603 shlibpath_overrides_runpath=no
7604 hardcode_into_libs=yes
7605 dynamic_linker='GNU ld.so'
7606 ;;
7607
John Criswell7a73b802003-06-30 21:59:07 +00007608freebsd*)
7609 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7610 version_type=freebsd-$objformat
7611 case $version_type in
7612 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007614 need_version=no
7615 need_lib_prefix=no
7616 ;;
7617 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007618 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007619 need_version=yes
7620 ;;
7621 esac
7622 shlibpath_var=LD_LIBRARY_PATH
7623 case $host_os in
7624 freebsd2*)
7625 shlibpath_overrides_runpath=yes
7626 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007627 freebsd3.01* | freebsdelf3.01*)
7628 shlibpath_overrides_runpath=yes
7629 hardcode_into_libs=yes
7630 ;;
7631 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007632 shlibpath_overrides_runpath=no
7633 hardcode_into_libs=yes
7634 ;;
7635 esac
7636 ;;
7637
7638gnu*)
7639 version_type=linux
7640 need_lib_prefix=no
7641 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7643 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007644 shlibpath_var=LD_LIBRARY_PATH
7645 hardcode_into_libs=yes
7646 ;;
7647
7648hpux9* | hpux10* | hpux11*)
7649 # Give a soname corresponding to the major version so that dld.sl refuses to
7650 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007651 version_type=sunos
7652 need_lib_prefix=no
7653 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007654 case "$host_cpu" in
7655 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007656 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +00007657 hardcode_into_libs=yes
7658 dynamic_linker="$host_os dld.so"
7659 shlibpath_var=LD_LIBRARY_PATH
7660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7662 soname_spec='${libname}${release}${shared_ext}$major'
7663 if test "X$HPUX_IA64_MODE" = X32; then
7664 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7665 else
7666 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7667 fi
7668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7669 ;;
7670 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007671 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00007672 hardcode_into_libs=yes
7673 dynamic_linker="$host_os dld.sl"
7674 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7677 soname_spec='${libname}${release}${shared_ext}$major'
7678 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7680 ;;
7681 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007682 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00007683 dynamic_linker="$host_os dld.sl"
7684 shlibpath_var=SHLIB_PATH
7685 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7687 soname_spec='${libname}${release}${shared_ext}$major'
7688 ;;
7689 esac
John Criswell7a73b802003-06-30 21:59:07 +00007690 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7691 postinstall_cmds='chmod 555 $lib'
7692 ;;
7693
John Criswell47fdd832003-07-14 16:52:07 +00007694irix5* | irix6* | nonstopux*)
7695 case $host_os in
7696 nonstopux*) version_type=nonstopux ;;
7697 *)
7698 if test "$lt_cv_prog_gnu_ld" = yes; then
7699 version_type=linux
7700 else
7701 version_type=irix
7702 fi ;;
7703 esac
John Criswell7a73b802003-06-30 21:59:07 +00007704 need_lib_prefix=no
7705 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007706 soname_spec='${libname}${release}${shared_ext}$major'
7707 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 +00007708 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007709 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007710 libsuff= shlibsuff=
7711 ;;
7712 *)
7713 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007714 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7715 libsuff= shlibsuff= libmagic=32-bit;;
7716 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7717 libsuff=32 shlibsuff=N32 libmagic=N32;;
7718 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7719 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007720 *) libsuff= shlibsuff= libmagic=never-match;;
7721 esac
7722 ;;
7723 esac
7724 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7725 shlibpath_overrides_runpath=no
7726 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7727 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007728 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007729 ;;
7730
7731# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007732linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007733 dynamic_linker=no
7734 ;;
7735
7736# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007737linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007738 version_type=linux
7739 need_lib_prefix=no
7740 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7742 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7744 shlibpath_var=LD_LIBRARY_PATH
7745 shlibpath_overrides_runpath=no
7746 # This implies no fast_install, which is unacceptable.
7747 # Some rework will be needed to allow for fast_install
7748 # before this can be enabled.
7749 hardcode_into_libs=yes
7750
Reid Spencer2706f8c2004-09-19 23:53:36 +00007751 # Append ld.so.conf contents to the search path
7752 if test -f /etc/ld.so.conf; then
7753 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7754 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7755 fi
7756
John Criswell7a73b802003-06-30 21:59:07 +00007757 # We used to test for /lib/ld.so.1 and disable shared libraries on
7758 # powerpc, because MkLinux only supported shared libraries with the
7759 # GNU dynamic linker. Since this was broken with cross compilers,
7760 # most powerpc-linux boxes support dynamic linking these days and
7761 # people can always --disable-shared, the test was removed, and we
7762 # assume the GNU/Linux dynamic linker is in use.
7763 dynamic_linker='GNU/Linux ld.so'
7764 ;;
7765
Reid Spencer2706f8c2004-09-19 23:53:36 +00007766knetbsd*-gnu)
7767 version_type=linux
7768 need_lib_prefix=no
7769 need_version=no
7770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7771 soname_spec='${libname}${release}${shared_ext}$major'
7772 shlibpath_var=LD_LIBRARY_PATH
7773 shlibpath_overrides_runpath=no
7774 hardcode_into_libs=yes
7775 dynamic_linker='GNU ld.so'
7776 ;;
7777
John Criswell7a73b802003-06-30 21:59:07 +00007778netbsd*)
7779 version_type=sunos
7780 need_lib_prefix=no
7781 need_version=no
7782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7785 dynamic_linker='NetBSD (a.out) ld.so'
7786 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00007787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +00007788 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007789 dynamic_linker='NetBSD ld.elf_so'
7790 fi
7791 shlibpath_var=LD_LIBRARY_PATH
7792 shlibpath_overrides_runpath=yes
7793 hardcode_into_libs=yes
7794 ;;
7795
7796newsos6)
7797 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7799 shlibpath_var=LD_LIBRARY_PATH
7800 shlibpath_overrides_runpath=yes
7801 ;;
7802
Reid Spencer2706f8c2004-09-19 23:53:36 +00007803nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00007804 version_type=linux
7805 need_lib_prefix=no
7806 need_version=no
7807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7808 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007809 shlibpath_var=LD_LIBRARY_PATH
7810 shlibpath_overrides_runpath=yes
7811 ;;
7812
7813openbsd*)
7814 version_type=sunos
7815 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +00007816 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7818 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7819 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007820 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 +00007821 case $host_os in
7822 openbsd2.[89] | openbsd2.[89].*)
7823 shlibpath_overrides_runpath=no
7824 ;;
7825 *)
7826 shlibpath_overrides_runpath=yes
7827 ;;
7828 esac
John Criswell7a73b802003-06-30 21:59:07 +00007829 else
7830 shlibpath_overrides_runpath=yes
7831 fi
John Criswell7a73b802003-06-30 21:59:07 +00007832 ;;
7833
7834os2*)
7835 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007836 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007837 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007838 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007839 dynamic_linker='OS/2 ld.exe'
7840 shlibpath_var=LIBPATH
7841 ;;
7842
7843osf3* | osf4* | osf5*)
7844 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007845 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007846 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007847 soname_spec='${libname}${release}${shared_ext}$major'
7848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007849 shlibpath_var=LD_LIBRARY_PATH
7850 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7851 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7852 ;;
7853
7854sco3.2v5*)
7855 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007856 soname_spec='${libname}${release}${shared_ext}$major'
7857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007858 shlibpath_var=LD_LIBRARY_PATH
7859 ;;
7860
7861solaris*)
7862 version_type=linux
7863 need_lib_prefix=no
7864 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007867 shlibpath_var=LD_LIBRARY_PATH
7868 shlibpath_overrides_runpath=yes
7869 hardcode_into_libs=yes
7870 # ldd complains unless libraries are executable
7871 postinstall_cmds='chmod +x $lib'
7872 ;;
7873
7874sunos4*)
7875 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007877 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7878 shlibpath_var=LD_LIBRARY_PATH
7879 shlibpath_overrides_runpath=yes
7880 if test "$with_gnu_ld" = yes; then
7881 need_lib_prefix=no
7882 fi
7883 need_version=yes
7884 ;;
7885
7886sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7887 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7889 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007890 shlibpath_var=LD_LIBRARY_PATH
7891 case $host_vendor in
7892 sni)
7893 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007894 need_lib_prefix=no
7895 export_dynamic_flag_spec='${wl}-Blargedynsym'
7896 runpath_var=LD_RUN_PATH
7897 ;;
7898 siemens)
7899 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007900 ;;
7901 motorola)
7902 need_lib_prefix=no
7903 need_version=no
7904 shlibpath_overrides_runpath=no
7905 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7906 ;;
7907 esac
7908 ;;
7909
John Criswell7a73b802003-06-30 21:59:07 +00007910sysv4*MP*)
7911 if test -d /usr/nec ;then
7912 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007913 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7914 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007915 shlibpath_var=LD_LIBRARY_PATH
7916 fi
7917 ;;
7918
John Criswell47fdd832003-07-14 16:52:07 +00007919uts4*)
7920 version_type=linux
7921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7922 soname_spec='${libname}${release}${shared_ext}$major'
7923 shlibpath_var=LD_LIBRARY_PATH
7924 ;;
7925
John Criswell7a73b802003-06-30 21:59:07 +00007926*)
7927 dynamic_linker=no
7928 ;;
7929esac
7930echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7931echo "${ECHO_T}$dynamic_linker" >&6
7932test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007933
Reid Spencer2706f8c2004-09-19 23:53:36 +00007934echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7935echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7936hardcode_action=
7937if test -n "$hardcode_libdir_flag_spec" || \
7938 test -n "$runpath_var" || \
7939 test "X$hardcode_automatic" = "Xyes" ; then
7940
7941 # We can hardcode non-existant directories.
7942 if test "$hardcode_direct" != no &&
7943 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7944 # have to relink, otherwise we might link with an installed library
7945 # when we should be linking with a yet-to-be-installed one
7946 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7947 test "$hardcode_minus_L" != no; then
7948 # Linking always hardcodes the temporary library directory.
7949 hardcode_action=relink
7950 else
7951 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7952 hardcode_action=immediate
7953 fi
7954else
7955 # We cannot hardcode anything, or else we can only hardcode existing
7956 # directories.
7957 hardcode_action=unsupported
7958fi
7959echo "$as_me:$LINENO: result: $hardcode_action" >&5
7960echo "${ECHO_T}$hardcode_action" >&6
7961
7962if test "$hardcode_action" = relink; then
7963 # Fast installation is not supported
7964 enable_fast_install=no
7965elif test "$shlibpath_overrides_runpath" = yes ||
7966 test "$enable_shared" = no; then
7967 # Fast installation is not necessary
7968 enable_fast_install=needless
7969fi
7970
7971striplib=
7972old_striplib=
7973echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7974echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7975if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7976 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7977 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7978 echo "$as_me:$LINENO: result: yes" >&5
7979echo "${ECHO_T}yes" >&6
7980else
7981# FIXME - insert some real tests, host_os isn't really good enough
7982 case $host_os in
7983 darwin*)
7984 if test -n "$STRIP" ; then
7985 striplib="$STRIP -x"
7986 echo "$as_me:$LINENO: result: yes" >&5
7987echo "${ECHO_T}yes" >&6
7988 else
7989 echo "$as_me:$LINENO: result: no" >&5
7990echo "${ECHO_T}no" >&6
7991fi
7992 ;;
7993 *)
7994 echo "$as_me:$LINENO: result: no" >&5
7995echo "${ECHO_T}no" >&6
7996 ;;
7997 esac
7998fi
7999
John Criswell7a73b802003-06-30 21:59:07 +00008000if test "x$enable_dlopen" != xyes; then
8001 enable_dlopen=unknown
8002 enable_dlopen_self=unknown
8003 enable_dlopen_self_static=unknown
8004else
8005 lt_cv_dlopen=no
8006 lt_cv_dlopen_libs=
8007
8008 case $host_os in
8009 beos*)
8010 lt_cv_dlopen="load_add_on"
8011 lt_cv_dlopen_libs=
8012 lt_cv_dlopen_self=yes
8013 ;;
8014
John Criswell47fdd832003-07-14 16:52:07 +00008015 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008016 lt_cv_dlopen="LoadLibrary"
8017 lt_cv_dlopen_libs=
8018 ;;
8019
John Criswell47fdd832003-07-14 16:52:07 +00008020 cygwin*)
8021 lt_cv_dlopen="dlopen"
8022 lt_cv_dlopen_libs=
8023 ;;
8024
8025 darwin*)
8026 # if libdl is installed we need to link against it
8027 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8028echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8029if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8031else
8032 ac_check_lib_save_LIBS=$LIBS
8033LIBS="-ldl $LIBS"
8034cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008035/* confdefs.h. */
8036_ACEOF
8037cat confdefs.h >>conftest.$ac_ext
8038cat >>conftest.$ac_ext <<_ACEOF
8039/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008040
8041/* Override any gcc2 internal prototype to avoid an error. */
8042#ifdef __cplusplus
8043extern "C"
8044#endif
8045/* We use char because int might match the return type of a gcc2
8046 builtin and then its argument prototype would still apply. */
8047char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008048int
8049main ()
8050{
8051dlopen ();
8052 ;
8053 return 0;
8054}
8055_ACEOF
8056rm -f conftest.$ac_objext conftest$ac_exeext
8057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008058 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00008059 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008060 grep -v '^ *+' conftest.er1 >conftest.err
8061 rm -f conftest.er1
8062 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00008063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8064 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008065 { ac_try='test -z "$ac_c_werror_flag"
8066 || test ! -s conftest.err'
8067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8068 (eval $ac_try) 2>&5
8069 ac_status=$?
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }; } &&
8072 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00008073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8074 (eval $ac_try) 2>&5
8075 ac_status=$?
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); }; }; then
8078 ac_cv_lib_dl_dlopen=yes
8079else
8080 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008081sed 's/^/| /' conftest.$ac_ext >&5
8082
John Criswell47fdd832003-07-14 16:52:07 +00008083ac_cv_lib_dl_dlopen=no
8084fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008085rm -f conftest.err conftest.$ac_objext \
8086 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00008087LIBS=$ac_check_lib_save_LIBS
8088fi
8089echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8090echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8091if test $ac_cv_lib_dl_dlopen = yes; then
8092 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8093else
8094
8095 lt_cv_dlopen="dyld"
8096 lt_cv_dlopen_libs=
8097 lt_cv_dlopen_self=yes
8098
8099fi
8100
8101 ;;
8102
John Criswell7a73b802003-06-30 21:59:07 +00008103 *)
8104 echo "$as_me:$LINENO: checking for shl_load" >&5
8105echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8106if test "${ac_cv_func_shl_load+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108else
8109 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008110/* confdefs.h. */
8111_ACEOF
8112cat confdefs.h >>conftest.$ac_ext
8113cat >>conftest.$ac_ext <<_ACEOF
8114/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008115/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8116 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8117#define shl_load innocuous_shl_load
8118
John Criswell7a73b802003-06-30 21:59:07 +00008119/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008120 which can conflict with char shl_load (); below.
8121 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8122 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008123
John Criswell0c38eaf2003-09-10 15:17:25 +00008124#ifdef __STDC__
8125# include <limits.h>
8126#else
8127# include <assert.h>
8128#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00008129
8130#undef shl_load
8131
John Criswell7a73b802003-06-30 21:59:07 +00008132/* Override any gcc2 internal prototype to avoid an error. */
8133#ifdef __cplusplus
8134extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008135{
John Criswell7a73b802003-06-30 21:59:07 +00008136#endif
8137/* We use char because int might match the return type of a gcc2
8138 builtin and then its argument prototype would still apply. */
8139char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008140/* The GNU C library defines this for functions which it implements
8141 to always fail with ENOSYS. Some functions are actually named
8142 something starting with __ and the normal name is an alias. */
8143#if defined (__stub_shl_load) || defined (__stub___shl_load)
8144choke me
8145#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008146char (*f) () = shl_load;
8147#endif
8148#ifdef __cplusplus
8149}
John Criswell7a73b802003-06-30 21:59:07 +00008150#endif
8151
John Criswell0c38eaf2003-09-10 15:17:25 +00008152int
8153main ()
8154{
8155return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008156 ;
8157 return 0;
8158}
8159_ACEOF
8160rm -f conftest.$ac_objext conftest$ac_exeext
8161if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008162 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008163 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008164 grep -v '^ *+' conftest.er1 >conftest.err
8165 rm -f conftest.er1
8166 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008169 { ac_try='test -z "$ac_c_werror_flag"
8170 || test ! -s conftest.err'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8172 (eval $ac_try) 2>&5
8173 ac_status=$?
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8178 (eval $ac_try) 2>&5
8179 ac_status=$?
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 ac_cv_func_shl_load=yes
8183else
8184 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008185sed 's/^/| /' conftest.$ac_ext >&5
8186
John Criswell7a73b802003-06-30 21:59:07 +00008187ac_cv_func_shl_load=no
8188fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008189rm -f conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008191fi
8192echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8193echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8194if test $ac_cv_func_shl_load = yes; then
8195 lt_cv_dlopen="shl_load"
8196else
8197 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8198echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8199if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201else
8202 ac_check_lib_save_LIBS=$LIBS
8203LIBS="-ldld $LIBS"
8204cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008205/* confdefs.h. */
8206_ACEOF
8207cat confdefs.h >>conftest.$ac_ext
8208cat >>conftest.$ac_ext <<_ACEOF
8209/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008210
8211/* Override any gcc2 internal prototype to avoid an error. */
8212#ifdef __cplusplus
8213extern "C"
8214#endif
8215/* We use char because int might match the return type of a gcc2
8216 builtin and then its argument prototype would still apply. */
8217char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008218int
8219main ()
8220{
8221shl_load ();
8222 ;
8223 return 0;
8224}
8225_ACEOF
8226rm -f conftest.$ac_objext conftest$ac_exeext
8227if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008228 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008229 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008230 grep -v '^ *+' conftest.er1 >conftest.err
8231 rm -f conftest.er1
8232 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8234 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008235 { ac_try='test -z "$ac_c_werror_flag"
8236 || test ! -s conftest.err'
8237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8238 (eval $ac_try) 2>&5
8239 ac_status=$?
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); }; } &&
8242 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8244 (eval $ac_try) 2>&5
8245 ac_status=$?
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; }; then
8248 ac_cv_lib_dld_shl_load=yes
8249else
8250 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008251sed 's/^/| /' conftest.$ac_ext >&5
8252
John Criswell7a73b802003-06-30 21:59:07 +00008253ac_cv_lib_dld_shl_load=no
8254fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008255rm -f conftest.err conftest.$ac_objext \
8256 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008257LIBS=$ac_check_lib_save_LIBS
8258fi
8259echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8260echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8261if test $ac_cv_lib_dld_shl_load = yes; then
8262 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8263else
8264 echo "$as_me:$LINENO: checking for dlopen" >&5
8265echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8266if test "${ac_cv_func_dlopen+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268else
8269 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008270/* confdefs.h. */
8271_ACEOF
8272cat confdefs.h >>conftest.$ac_ext
8273cat >>conftest.$ac_ext <<_ACEOF
8274/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008275/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8277#define dlopen innocuous_dlopen
8278
John Criswell7a73b802003-06-30 21:59:07 +00008279/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008280 which can conflict with char dlopen (); below.
8281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8282 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008283
John Criswell0c38eaf2003-09-10 15:17:25 +00008284#ifdef __STDC__
8285# include <limits.h>
8286#else
8287# include <assert.h>
8288#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00008289
8290#undef dlopen
8291
John Criswell7a73b802003-06-30 21:59:07 +00008292/* Override any gcc2 internal prototype to avoid an error. */
8293#ifdef __cplusplus
8294extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008295{
John Criswell7a73b802003-06-30 21:59:07 +00008296#endif
8297/* We use char because int might match the return type of a gcc2
8298 builtin and then its argument prototype would still apply. */
8299char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008300/* The GNU C library defines this for functions which it implements
8301 to always fail with ENOSYS. Some functions are actually named
8302 something starting with __ and the normal name is an alias. */
8303#if defined (__stub_dlopen) || defined (__stub___dlopen)
8304choke me
8305#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008306char (*f) () = dlopen;
8307#endif
8308#ifdef __cplusplus
8309}
John Criswell7a73b802003-06-30 21:59:07 +00008310#endif
8311
John Criswell0c38eaf2003-09-10 15:17:25 +00008312int
8313main ()
8314{
8315return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008316 ;
8317 return 0;
8318}
8319_ACEOF
8320rm -f conftest.$ac_objext conftest$ac_exeext
8321if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008322 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008323 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008329 { ac_try='test -z "$ac_c_werror_flag"
8330 || test ! -s conftest.err'
8331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8332 (eval $ac_try) 2>&5
8333 ac_status=$?
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); }; } &&
8336 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8338 (eval $ac_try) 2>&5
8339 ac_status=$?
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 (exit $ac_status); }; }; then
8342 ac_cv_func_dlopen=yes
8343else
8344 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008345sed 's/^/| /' conftest.$ac_ext >&5
8346
John Criswell7a73b802003-06-30 21:59:07 +00008347ac_cv_func_dlopen=no
8348fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008349rm -f conftest.err conftest.$ac_objext \
8350 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008351fi
8352echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8353echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8354if test $ac_cv_func_dlopen = yes; then
8355 lt_cv_dlopen="dlopen"
8356else
8357 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8358echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8359if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8360 echo $ECHO_N "(cached) $ECHO_C" >&6
8361else
8362 ac_check_lib_save_LIBS=$LIBS
8363LIBS="-ldl $LIBS"
8364cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008365/* confdefs.h. */
8366_ACEOF
8367cat confdefs.h >>conftest.$ac_ext
8368cat >>conftest.$ac_ext <<_ACEOF
8369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008370
8371/* Override any gcc2 internal prototype to avoid an error. */
8372#ifdef __cplusplus
8373extern "C"
8374#endif
8375/* We use char because int might match the return type of a gcc2
8376 builtin and then its argument prototype would still apply. */
8377char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008378int
8379main ()
8380{
8381dlopen ();
8382 ;
8383 return 0;
8384}
8385_ACEOF
8386rm -f conftest.$ac_objext conftest$ac_exeext
8387if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008388 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008389 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008390 grep -v '^ *+' conftest.er1 >conftest.err
8391 rm -f conftest.er1
8392 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8394 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008395 { ac_try='test -z "$ac_c_werror_flag"
8396 || test ! -s conftest.err'
8397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8398 (eval $ac_try) 2>&5
8399 ac_status=$?
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); }; } &&
8402 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8404 (eval $ac_try) 2>&5
8405 ac_status=$?
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); }; }; then
8408 ac_cv_lib_dl_dlopen=yes
8409else
8410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008411sed 's/^/| /' conftest.$ac_ext >&5
8412
John Criswell7a73b802003-06-30 21:59:07 +00008413ac_cv_lib_dl_dlopen=no
8414fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008415rm -f conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008417LIBS=$ac_check_lib_save_LIBS
8418fi
8419echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8420echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8421if test $ac_cv_lib_dl_dlopen = yes; then
8422 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8423else
8424 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8425echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8426if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8428else
8429 ac_check_lib_save_LIBS=$LIBS
8430LIBS="-lsvld $LIBS"
8431cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008432/* confdefs.h. */
8433_ACEOF
8434cat confdefs.h >>conftest.$ac_ext
8435cat >>conftest.$ac_ext <<_ACEOF
8436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008437
8438/* Override any gcc2 internal prototype to avoid an error. */
8439#ifdef __cplusplus
8440extern "C"
8441#endif
8442/* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8444char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008445int
8446main ()
8447{
8448dlopen ();
8449 ;
8450 return 0;
8451}
8452_ACEOF
8453rm -f conftest.$ac_objext conftest$ac_exeext
8454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008455 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008456 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008457 grep -v '^ *+' conftest.er1 >conftest.err
8458 rm -f conftest.er1
8459 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008462 { ac_try='test -z "$ac_c_werror_flag"
8463 || test ! -s conftest.err'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465 (eval $ac_try) 2>&5
8466 ac_status=$?
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; } &&
8469 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471 (eval $ac_try) 2>&5
8472 ac_status=$?
8473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474 (exit $ac_status); }; }; then
8475 ac_cv_lib_svld_dlopen=yes
8476else
8477 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008478sed 's/^/| /' conftest.$ac_ext >&5
8479
John Criswell7a73b802003-06-30 21:59:07 +00008480ac_cv_lib_svld_dlopen=no
8481fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008482rm -f conftest.err conftest.$ac_objext \
8483 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008484LIBS=$ac_check_lib_save_LIBS
8485fi
8486echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8487echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8488if test $ac_cv_lib_svld_dlopen = yes; then
8489 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8490else
8491 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8492echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8493if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8494 echo $ECHO_N "(cached) $ECHO_C" >&6
8495else
8496 ac_check_lib_save_LIBS=$LIBS
8497LIBS="-ldld $LIBS"
8498cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008499/* confdefs.h. */
8500_ACEOF
8501cat confdefs.h >>conftest.$ac_ext
8502cat >>conftest.$ac_ext <<_ACEOF
8503/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008504
8505/* Override any gcc2 internal prototype to avoid an error. */
8506#ifdef __cplusplus
8507extern "C"
8508#endif
8509/* We use char because int might match the return type of a gcc2
8510 builtin and then its argument prototype would still apply. */
8511char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008512int
8513main ()
8514{
8515dld_link ();
8516 ;
8517 return 0;
8518}
8519_ACEOF
8520rm -f conftest.$ac_objext conftest$ac_exeext
8521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008522 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008523 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008524 grep -v '^ *+' conftest.er1 >conftest.err
8525 rm -f conftest.er1
8526 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008529 { ac_try='test -z "$ac_c_werror_flag"
8530 || test ! -s conftest.err'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 ac_cv_lib_dld_dld_link=yes
8543else
8544 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008545sed 's/^/| /' conftest.$ac_ext >&5
8546
John Criswell7a73b802003-06-30 21:59:07 +00008547ac_cv_lib_dld_dld_link=no
8548fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008549rm -f conftest.err conftest.$ac_objext \
8550 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008551LIBS=$ac_check_lib_save_LIBS
8552fi
8553echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8554echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8555if test $ac_cv_lib_dld_dld_link = yes; then
8556 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8557fi
8558
8559
8560fi
8561
8562
8563fi
8564
8565
8566fi
8567
8568
8569fi
8570
8571
8572fi
8573
8574 ;;
8575 esac
8576
8577 if test "x$lt_cv_dlopen" != xno; then
8578 enable_dlopen=yes
8579 else
8580 enable_dlopen=no
8581 fi
8582
8583 case $lt_cv_dlopen in
8584 dlopen)
8585 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008586 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008587
8588 save_LDFLAGS="$LDFLAGS"
8589 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8590
8591 save_LIBS="$LIBS"
8592 LIBS="$lt_cv_dlopen_libs $LIBS"
8593
8594 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8595echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8596if test "${lt_cv_dlopen_self+set}" = set; then
8597 echo $ECHO_N "(cached) $ECHO_C" >&6
8598else
8599 if test "$cross_compiling" = yes; then :
8600 lt_cv_dlopen_self=cross
8601else
John Criswell47fdd832003-07-14 16:52:07 +00008602 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008603 lt_status=$lt_dlunknown
8604 cat > conftest.$ac_ext <<EOF
Misha Brukman591edc62004-10-14 18:59:42 +00008605#line 8605 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008606#include "confdefs.h"
8607
8608#if HAVE_DLFCN_H
8609#include <dlfcn.h>
8610#endif
8611
8612#include <stdio.h>
8613
8614#ifdef RTLD_GLOBAL
8615# define LT_DLGLOBAL RTLD_GLOBAL
8616#else
8617# ifdef DL_GLOBAL
8618# define LT_DLGLOBAL DL_GLOBAL
8619# else
8620# define LT_DLGLOBAL 0
8621# endif
8622#endif
8623
8624/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8625 find out it does not work in some platform. */
8626#ifndef LT_DLLAZY_OR_NOW
8627# ifdef RTLD_LAZY
8628# define LT_DLLAZY_OR_NOW RTLD_LAZY
8629# else
8630# ifdef DL_LAZY
8631# define LT_DLLAZY_OR_NOW DL_LAZY
8632# else
8633# ifdef RTLD_NOW
8634# define LT_DLLAZY_OR_NOW RTLD_NOW
8635# else
8636# ifdef DL_NOW
8637# define LT_DLLAZY_OR_NOW DL_NOW
8638# else
8639# define LT_DLLAZY_OR_NOW 0
8640# endif
8641# endif
8642# endif
8643# endif
8644#endif
8645
8646#ifdef __cplusplus
8647extern "C" void exit (int);
8648#endif
8649
8650void fnord() { int i=42;}
8651int main ()
8652{
8653 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8654 int status = $lt_dlunknown;
8655
8656 if (self)
8657 {
8658 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8659 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8660 /* dlclose (self); */
8661 }
8662
8663 exit (status);
8664}
8665EOF
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667 (eval $ac_link) 2>&5
8668 ac_status=$?
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8671 (./conftest; exit; ) 2>/dev/null
8672 lt_status=$?
8673 case x$lt_status in
8674 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8675 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8676 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8677 esac
8678 else :
8679 # compilation failed
8680 lt_cv_dlopen_self=no
8681 fi
8682fi
8683rm -fr conftest*
8684
8685
8686fi
8687echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8688echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8689
8690 if test "x$lt_cv_dlopen_self" = xyes; then
8691 LDFLAGS="$LDFLAGS $link_static_flag"
8692 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8693echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8694if test "${lt_cv_dlopen_self_static+set}" = set; then
8695 echo $ECHO_N "(cached) $ECHO_C" >&6
8696else
8697 if test "$cross_compiling" = yes; then :
8698 lt_cv_dlopen_self_static=cross
8699else
John Criswell47fdd832003-07-14 16:52:07 +00008700 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008701 lt_status=$lt_dlunknown
8702 cat > conftest.$ac_ext <<EOF
Misha Brukman591edc62004-10-14 18:59:42 +00008703#line 8703 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008704#include "confdefs.h"
8705
8706#if HAVE_DLFCN_H
8707#include <dlfcn.h>
8708#endif
8709
8710#include <stdio.h>
8711
8712#ifdef RTLD_GLOBAL
8713# define LT_DLGLOBAL RTLD_GLOBAL
8714#else
8715# ifdef DL_GLOBAL
8716# define LT_DLGLOBAL DL_GLOBAL
8717# else
8718# define LT_DLGLOBAL 0
8719# endif
8720#endif
8721
8722/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8723 find out it does not work in some platform. */
8724#ifndef LT_DLLAZY_OR_NOW
8725# ifdef RTLD_LAZY
8726# define LT_DLLAZY_OR_NOW RTLD_LAZY
8727# else
8728# ifdef DL_LAZY
8729# define LT_DLLAZY_OR_NOW DL_LAZY
8730# else
8731# ifdef RTLD_NOW
8732# define LT_DLLAZY_OR_NOW RTLD_NOW
8733# else
8734# ifdef DL_NOW
8735# define LT_DLLAZY_OR_NOW DL_NOW
8736# else
8737# define LT_DLLAZY_OR_NOW 0
8738# endif
8739# endif
8740# endif
8741# endif
8742#endif
8743
8744#ifdef __cplusplus
8745extern "C" void exit (int);
8746#endif
8747
8748void fnord() { int i=42;}
8749int main ()
8750{
8751 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8752 int status = $lt_dlunknown;
8753
8754 if (self)
8755 {
8756 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8757 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8758 /* dlclose (self); */
8759 }
8760
8761 exit (status);
8762}
8763EOF
8764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8765 (eval $ac_link) 2>&5
8766 ac_status=$?
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8769 (./conftest; exit; ) 2>/dev/null
8770 lt_status=$?
8771 case x$lt_status in
8772 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8773 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8774 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8775 esac
8776 else :
8777 # compilation failed
8778 lt_cv_dlopen_self_static=no
8779 fi
8780fi
8781rm -fr conftest*
8782
8783
8784fi
8785echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8786echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8787 fi
8788
8789 CPPFLAGS="$save_CPPFLAGS"
8790 LDFLAGS="$save_LDFLAGS"
8791 LIBS="$save_LIBS"
8792 ;;
8793 esac
8794
8795 case $lt_cv_dlopen_self in
8796 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8797 *) enable_dlopen_self=unknown ;;
8798 esac
8799
8800 case $lt_cv_dlopen_self_static in
8801 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8802 *) enable_dlopen_self_static=unknown ;;
8803 esac
8804fi
8805
8806
John Criswell47fdd832003-07-14 16:52:07 +00008807# Report which librarie types wil actually be built
8808echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8809echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8810echo "$as_me:$LINENO: result: $can_build_shared" >&5
8811echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008812
John Criswell47fdd832003-07-14 16:52:07 +00008813echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8814echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8815test "$can_build_shared" = "no" && enable_shared=no
8816
8817# On AIX, shared libraries and static libraries use the same namespace, and
8818# are all built from PIC.
8819case "$host_os" in
8820aix3*)
8821 test "$enable_shared" = yes && enable_static=no
8822 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +00008823 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +00008824 postinstall_cmds='$RANLIB $lib'
8825 fi
8826 ;;
8827
Reid Spencer2706f8c2004-09-19 23:53:36 +00008828aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +00008829 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8830 test "$enable_shared" = yes && enable_static=no
8831 fi
John Criswell7a73b802003-06-30 21:59:07 +00008832 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008833esac
8834echo "$as_me:$LINENO: result: $enable_shared" >&5
8835echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008836
John Criswell47fdd832003-07-14 16:52:07 +00008837echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8838echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8839# Make sure either enable_shared or enable_static is yes.
8840test "$enable_shared" = yes || enable_static=yes
8841echo "$as_me:$LINENO: result: $enable_static" >&5
8842echo "${ECHO_T}$enable_static" >&6
8843
8844# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008845# libtool distribution, otherwise you forgot to ship ltmain.sh
8846# with your package, and you will get complaints that there are
8847# no rules to generate ltmain.sh.
8848if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008849 # See if we are running on zsh, and set the options which allow our commands through
8850 # without removal of \ escapes.
8851 if test -n "${ZSH_VERSION+set}" ; then
8852 setopt NO_GLOB_SUBST
8853 fi
John Criswell7a73b802003-06-30 21:59:07 +00008854 # Now quote all the things that may contain metacharacters while being
8855 # careful not to overquote the AC_SUBSTed values. We take copies of the
8856 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008857 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8858 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +00008859 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8860 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8861 deplibs_check_method reload_flag reload_cmds need_locks \
8862 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8863 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008864 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008865 old_postinstall_cmds old_postuninstall_cmds \
8866 compiler \
8867 CC \
8868 LD \
8869 lt_prog_compiler_wl \
8870 lt_prog_compiler_pic \
8871 lt_prog_compiler_static \
8872 lt_prog_compiler_no_builtin_flag \
8873 export_dynamic_flag_spec \
8874 thread_safe_flag_spec \
8875 whole_archive_flag_spec \
8876 enable_shared_with_static_runtimes \
8877 old_archive_cmds \
8878 old_archive_from_new_cmds \
8879 predep_objects \
8880 postdep_objects \
8881 predeps \
8882 postdeps \
8883 compiler_lib_search_path \
8884 archive_cmds \
8885 archive_expsym_cmds \
8886 postinstall_cmds \
8887 postuninstall_cmds \
8888 old_archive_from_expsyms_cmds \
8889 allow_undefined_flag \
8890 no_undefined_flag \
8891 export_symbols_cmds \
8892 hardcode_libdir_flag_spec \
8893 hardcode_libdir_flag_spec_ld \
8894 hardcode_libdir_separator \
8895 hardcode_automatic \
8896 module_cmds \
8897 module_expsym_cmds \
8898 lt_cv_prog_compiler_c_o \
8899 exclude_expsyms \
8900 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008901
8902 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008903 old_archive_cmds | \
8904 old_archive_from_new_cmds | \
8905 archive_cmds | \
8906 archive_expsym_cmds | \
8907 module_cmds | \
8908 module_expsym_cmds | \
8909 old_archive_from_expsyms_cmds | \
8910 export_symbols_cmds | \
8911 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008912 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008913 old_postinstall_cmds | old_postuninstall_cmds | \
8914 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008915 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008916 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 +00008917 ;;
8918 *)
8919 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8920 ;;
8921 esac
8922 done
8923
John Criswell47fdd832003-07-14 16:52:07 +00008924 case $lt_echo in
8925 *'\$0 --fallback-echo"')
8926 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8927 ;;
8928 esac
8929
8930cfgfile="${ofile}T"
8931 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8932 $rm -f "$cfgfile"
8933 { echo "$as_me:$LINENO: creating $ofile" >&5
8934echo "$as_me: creating $ofile" >&6;}
8935
8936 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008937#! $SHELL
8938
John Criswell47fdd832003-07-14 16:52:07 +00008939# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008940# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8941# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8942#
John Criswell47fdd832003-07-14 16:52:07 +00008943# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8944# Free Software Foundation, Inc.
8945#
8946# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008947# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8948#
8949# This program is free software; you can redistribute it and/or modify
8950# it under the terms of the GNU General Public License as published by
8951# the Free Software Foundation; either version 2 of the License, or
8952# (at your option) any later version.
8953#
8954# This program is distributed in the hope that it will be useful, but
8955# WITHOUT ANY WARRANTY; without even the implied warranty of
8956# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8957# General Public License for more details.
8958#
8959# You should have received a copy of the GNU General Public License
8960# along with this program; if not, write to the Free Software
8961# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8962#
8963# As a special exception to the GNU General Public License, if you
8964# distribute this file as part of a program that contains a
8965# configuration script generated by Autoconf, you may include it under
8966# the same distribution terms that you use for the rest of that program.
8967
John Criswell47fdd832003-07-14 16:52:07 +00008968# A sed program that does not truncate output.
8969SED=$lt_SED
8970
John Criswell7a73b802003-06-30 21:59:07 +00008971# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008972Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008973
8974# The HP-UX ksh and POSIX shell print the target directory to stdout
8975# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008976(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +00008977
John Criswell47fdd832003-07-14 16:52:07 +00008978# The names of the tagged configurations supported by this script.
8979available_tags=
8980
John Criswell7a73b802003-06-30 21:59:07 +00008981# ### BEGIN LIBTOOL CONFIG
8982
8983# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8984
8985# Shell to use when invoking shell scripts.
8986SHELL=$lt_SHELL
8987
8988# Whether or not to build shared libraries.
8989build_libtool_libs=$enable_shared
8990
8991# Whether or not to build static libraries.
8992build_old_libs=$enable_static
8993
8994# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008995build_libtool_need_lc=$archive_cmds_need_lc
8996
8997# Whether or not to disallow shared libs when runtime libs are static
8998allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008999
9000# Whether or not to optimize for fast installation.
9001fast_install=$enable_fast_install
9002
9003# The host system.
9004host_alias=$host_alias
9005host=$host
9006
9007# An echo program that does not interpret backslashes.
9008echo=$lt_echo
9009
9010# The archiver.
9011AR=$lt_AR
9012AR_FLAGS=$lt_AR_FLAGS
9013
John Criswell47fdd832003-07-14 16:52:07 +00009014# A C compiler.
9015LTCC=$lt_LTCC
9016
9017# A language-specific compiler.
9018CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009019
9020# Is the compiler the GNU C compiler?
9021with_gcc=$GCC
9022
John Criswell47fdd832003-07-14 16:52:07 +00009023# An ERE matcher.
9024EGREP=$lt_EGREP
9025
John Criswell7a73b802003-06-30 21:59:07 +00009026# The linker used to build libraries.
9027LD=$lt_LD
9028
9029# Whether we need hard or soft links.
9030LN_S=$lt_LN_S
9031
9032# A BSD-compatible nm program.
9033NM=$lt_NM
9034
9035# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +00009036STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +00009037
9038# Used to examine libraries when file_magic_cmd begins "file"
9039MAGIC_CMD=$MAGIC_CMD
9040
9041# Used on cygwin: DLL creation program.
9042DLLTOOL="$DLLTOOL"
9043
9044# Used on cygwin: object dumper.
9045OBJDUMP="$OBJDUMP"
9046
9047# Used on cygwin: assembler.
9048AS="$AS"
9049
9050# The name of the directory that contains temporary libtool files.
9051objdir=$objdir
9052
9053# How to create reloadable object files.
9054reload_flag=$lt_reload_flag
9055reload_cmds=$lt_reload_cmds
9056
9057# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009058wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009059
9060# Object file suffix (normally "o").
9061objext="$ac_objext"
9062
9063# Old archive suffix (normally "a").
9064libext="$libext"
9065
John Criswell47fdd832003-07-14 16:52:07 +00009066# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +00009067shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +00009068
John Criswell7a73b802003-06-30 21:59:07 +00009069# Executable file suffix (normally "").
9070exeext="$exeext"
9071
9072# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009073pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009074pic_mode=$pic_mode
9075
John Criswell47fdd832003-07-14 16:52:07 +00009076# What is the maximum length of a command?
9077max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009078
John Criswell47fdd832003-07-14 16:52:07 +00009079# Does compiler simultaneously support -c and -o options?
9080compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009081
9082# Must we lock files when doing compilation ?
9083need_locks=$lt_need_locks
9084
9085# Do we need the lib prefix for modules?
9086need_lib_prefix=$need_lib_prefix
9087
9088# Do we need a version for libraries?
9089need_version=$need_version
9090
9091# Whether dlopen is supported.
9092dlopen_support=$enable_dlopen
9093
9094# Whether dlopen of programs is supported.
9095dlopen_self=$enable_dlopen_self
9096
9097# Whether dlopen of statically linked programs is supported.
9098dlopen_self_static=$enable_dlopen_self_static
9099
9100# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009101link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009102
9103# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009104no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009105
9106# Compiler flag to allow reflexive dlopens.
9107export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9108
9109# Compiler flag to generate shared objects directly from archives.
9110whole_archive_flag_spec=$lt_whole_archive_flag_spec
9111
9112# Compiler flag to generate thread-safe objects.
9113thread_safe_flag_spec=$lt_thread_safe_flag_spec
9114
9115# Library versioning type.
9116version_type=$version_type
9117
9118# Format of library name prefix.
9119libname_spec=$lt_libname_spec
9120
9121# List of archive names. First name is the real one, the rest are links.
9122# The last name is the one that the linker finds with -lNAME.
9123library_names_spec=$lt_library_names_spec
9124
9125# The coded name of the library, if different from the real name.
9126soname_spec=$lt_soname_spec
9127
9128# Commands used to build and install an old-style archive.
9129RANLIB=$lt_RANLIB
9130old_archive_cmds=$lt_old_archive_cmds
9131old_postinstall_cmds=$lt_old_postinstall_cmds
9132old_postuninstall_cmds=$lt_old_postuninstall_cmds
9133
9134# Create an old-style archive from a shared archive.
9135old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9136
9137# Create a temporary old-style archive to link instead of a shared archive.
9138old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9139
9140# Commands used to build and install a shared archive.
9141archive_cmds=$lt_archive_cmds
9142archive_expsym_cmds=$lt_archive_expsym_cmds
9143postinstall_cmds=$lt_postinstall_cmds
9144postuninstall_cmds=$lt_postuninstall_cmds
9145
John Criswell47fdd832003-07-14 16:52:07 +00009146# Commands used to build a loadable module (assumed same as above if empty)
9147module_cmds=$lt_module_cmds
9148module_expsym_cmds=$lt_module_expsym_cmds
9149
John Criswell7a73b802003-06-30 21:59:07 +00009150# Commands to strip libraries.
9151old_striplib=$lt_old_striplib
9152striplib=$lt_striplib
9153
John Criswell47fdd832003-07-14 16:52:07 +00009154# Dependencies to place before the objects being linked to create a
9155# shared library.
9156predep_objects=$lt_predep_objects
9157
9158# Dependencies to place after the objects being linked to create a
9159# shared library.
9160postdep_objects=$lt_postdep_objects
9161
9162# Dependencies to place before the objects being linked to create a
9163# shared library.
9164predeps=$lt_predeps
9165
9166# Dependencies to place after the objects being linked to create a
9167# shared library.
9168postdeps=$lt_postdeps
9169
9170# The library search path used internally by the compiler when linking
9171# a shared library.
9172compiler_lib_search_path=$lt_compiler_lib_search_path
9173
John Criswell7a73b802003-06-30 21:59:07 +00009174# Method to check whether dependent libraries are shared objects.
9175deplibs_check_method=$lt_deplibs_check_method
9176
9177# Command to use when deplibs_check_method == file_magic.
9178file_magic_cmd=$lt_file_magic_cmd
9179
9180# Flag that allows shared libraries with undefined symbols to be built.
9181allow_undefined_flag=$lt_allow_undefined_flag
9182
9183# Flag that forces no undefined symbols.
9184no_undefined_flag=$lt_no_undefined_flag
9185
9186# Commands used to finish a libtool library installation in a directory.
9187finish_cmds=$lt_finish_cmds
9188
9189# Same as above, but a single script fragment to be evaled but not shown.
9190finish_eval=$lt_finish_eval
9191
9192# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009193global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009194
9195# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009196global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009197
9198# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009199global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009200
9201# This is the shared library runtime path variable.
9202runpath_var=$runpath_var
9203
9204# This is the shared library path variable.
9205shlibpath_var=$shlibpath_var
9206
9207# Is shlibpath searched before the hard-coded library search path?
9208shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9209
9210# How to hardcode a shared library path into an executable.
9211hardcode_action=$hardcode_action
9212
9213# Whether we should hardcode library paths into libraries.
9214hardcode_into_libs=$hardcode_into_libs
9215
9216# Flag to hardcode \$libdir into a binary during linking.
9217# This must work even if \$libdir does not exist.
9218hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9219
John Criswell47fdd832003-07-14 16:52:07 +00009220# If ld is used when linking, flag to hardcode \$libdir into
9221# a binary during linking. This must work even if \$libdir does
9222# not exist.
9223hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9224
John Criswell7a73b802003-06-30 21:59:07 +00009225# Whether we need a single -rpath flag with a separated argument.
9226hardcode_libdir_separator=$lt_hardcode_libdir_separator
9227
John Criswell47fdd832003-07-14 16:52:07 +00009228# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009229# resulting binary.
9230hardcode_direct=$hardcode_direct
9231
9232# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9233# resulting binary.
9234hardcode_minus_L=$hardcode_minus_L
9235
9236# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9237# the resulting binary.
9238hardcode_shlibpath_var=$hardcode_shlibpath_var
9239
John Criswell47fdd832003-07-14 16:52:07 +00009240# Set to yes if building a shared library automatically hardcodes DIR into the library
9241# and all subsequent libraries and executables linked against it.
9242hardcode_automatic=$hardcode_automatic
9243
John Criswell7a73b802003-06-30 21:59:07 +00009244# Variables whose values should be saved in libtool wrapper scripts and
9245# restored at relink time.
9246variables_saved_for_relink="$variables_saved_for_relink"
9247
9248# Whether libtool must link a program against all its dependency libraries.
9249link_all_deplibs=$link_all_deplibs
9250
9251# Compile-time system search path for libraries
9252sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9253
9254# Run-time system search path for libraries
9255sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9256
9257# Fix the shell variable \$srcfile for the compiler.
9258fix_srcfile_path="$fix_srcfile_path"
9259
9260# Set to yes if exported symbols are required.
9261always_export_symbols=$always_export_symbols
9262
9263# The commands to list exported symbols.
9264export_symbols_cmds=$lt_export_symbols_cmds
9265
9266# The commands to extract the exported symbol list from a shared archive.
9267extract_expsyms_cmds=$lt_extract_expsyms_cmds
9268
9269# Symbols that should not be listed in the preloaded symbols.
9270exclude_expsyms=$lt_exclude_expsyms
9271
9272# Symbols that must always be exported.
9273include_expsyms=$lt_include_expsyms
9274
9275# ### END LIBTOOL CONFIG
9276
9277__EOF__
9278
John Criswell47fdd832003-07-14 16:52:07 +00009279
John Criswell7a73b802003-06-30 21:59:07 +00009280 case $host_os in
9281 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009282 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009283
9284# AIX sometimes has problems with the GCC collect2 program. For some
9285# reason, if we set the COLLECT_NAMES environment variable, the problems
9286# vanish in a puff of smoke.
9287if test "X${COLLECT_NAMES+set}" != Xset; then
9288 COLLECT_NAMES=
9289 export COLLECT_NAMES
9290fi
9291EOF
9292 ;;
9293 esac
9294
John Criswell7a73b802003-06-30 21:59:07 +00009295 # We use sed instead of cat because bash on DJGPP gets confused if
9296 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9297 # text mode, it properly converts lines to CR/LF. This bash problem
9298 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009299 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009300
John Criswell47fdd832003-07-14 16:52:07 +00009301 mv -f "$cfgfile" "$ofile" || \
9302 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009303 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009304
9305else
9306 # If there is no Makefile yet, we rely on a make rule to execute
9307 # `config.status --recheck' to rerun these tests and create the
9308 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009309 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9310 if test -f "$ltmain_in"; then
9311 test -f Makefile && make "$ltmain"
9312 fi
John Criswell7a73b802003-06-30 21:59:07 +00009313fi
John Criswell7a73b802003-06-30 21:59:07 +00009314
9315
John Criswell47fdd832003-07-14 16:52:07 +00009316ac_ext=c
9317ac_cpp='$CPP $CPPFLAGS'
9318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9320ac_compiler_gnu=$ac_cv_c_compiler_gnu
9321
9322CC="$lt_save_CC"
9323
9324
9325# Check whether --with-tags or --without-tags was given.
9326if test "${with_tags+set}" = set; then
9327 withval="$with_tags"
9328 tagnames="$withval"
9329fi;
9330
9331if test -f "$ltmain" && test -n "$tagnames"; then
9332 if test ! -f "${ofile}"; then
9333 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9334echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9335 fi
9336
9337 if test -z "$LTCC"; then
9338 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9339 if test -z "$LTCC"; then
9340 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9341echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9342 else
9343 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9344echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9345 fi
9346 fi
9347
9348 # Extract list of available tagged configurations in $ofile.
9349 # Note that this assumes the entire list is on one line.
9350 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9351
9352 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9353 for tagname in $tagnames; do
9354 IFS="$lt_save_ifs"
9355 # Check whether tagname contains only valid characters
9356 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9357 "") ;;
9358 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9359echo "$as_me: error: invalid tag name: $tagname" >&2;}
9360 { (exit 1); exit 1; }; }
9361 ;;
9362 esac
9363
9364 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9365 then
9366 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9367echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9368 { (exit 1); exit 1; }; }
9369 fi
9370
9371 # Update the list of available tags.
9372 if test -n "$tagname"; then
Reid Spencer177dbe22004-10-13 01:01:03 +00009373 echo appending configuration tag "$tagname" to $ofile
John Criswell47fdd832003-07-14 16:52:07 +00009374
9375 case $tagname in
9376 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +00009377 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9378 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9379 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +00009380 ac_ext=cc
9381ac_cpp='$CXXCPP $CPPFLAGS'
9382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9385
9386
9387
9388
9389archive_cmds_need_lc_CXX=no
9390allow_undefined_flag_CXX=
9391always_export_symbols_CXX=no
9392archive_expsym_cmds_CXX=
9393export_dynamic_flag_spec_CXX=
9394hardcode_direct_CXX=no
9395hardcode_libdir_flag_spec_CXX=
9396hardcode_libdir_flag_spec_ld_CXX=
9397hardcode_libdir_separator_CXX=
9398hardcode_minus_L_CXX=no
9399hardcode_automatic_CXX=no
9400module_cmds_CXX=
9401module_expsym_cmds_CXX=
9402link_all_deplibs_CXX=unknown
9403old_archive_cmds_CXX=$old_archive_cmds
9404no_undefined_flag_CXX=
9405whole_archive_flag_spec_CXX=
9406enable_shared_with_static_runtimes_CXX=no
9407
9408# Dependencies to place before and after the object being linked:
9409predep_objects_CXX=
9410postdep_objects_CXX=
9411predeps_CXX=
9412postdeps_CXX=
9413compiler_lib_search_path_CXX=
9414
9415# Source file extension for C++ test sources.
9416ac_ext=cc
9417
9418# Object file extension for compiled C++ test sources.
9419objext=o
9420objext_CXX=$objext
9421
9422# Code to be used in simple compile tests
9423lt_simple_compile_test_code="int some_variable = 0;\n"
9424
9425# Code to be used in simple link tests
9426lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9427
9428# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9429
9430# If no C compiler was specified, use CC.
9431LTCC=${LTCC-"$CC"}
9432
9433# Allow CC to be a program name with arguments.
9434compiler=$CC
9435
9436
9437# Allow CC to be a program name with arguments.
9438lt_save_CC=$CC
9439lt_save_LD=$LD
9440lt_save_GCC=$GCC
9441GCC=$GXX
9442lt_save_with_gnu_ld=$with_gnu_ld
9443lt_save_path_LD=$lt_cv_path_LD
9444if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9445 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9446else
9447 unset lt_cv_prog_gnu_ld
9448fi
9449if test -n "${lt_cv_path_LDCXX+set}"; then
9450 lt_cv_path_LD=$lt_cv_path_LDCXX
9451else
9452 unset lt_cv_path_LD
9453fi
9454test -z "${LDCXX+set}" || LD=$LDCXX
9455CC=${CXX-"c++"}
9456compiler=$CC
9457compiler_CXX=$CC
9458cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9459
9460# We don't want -fno-exception wen compiling C++ code, so set the
9461# no_builtin_flag separately
9462if test "$GXX" = yes; then
9463 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9464else
9465 lt_prog_compiler_no_builtin_flag_CXX=
9466fi
9467
9468if test "$GXX" = yes; then
9469 # Set up default GNU C++ configuration
9470
9471
9472# Check whether --with-gnu-ld or --without-gnu-ld was given.
9473if test "${with_gnu_ld+set}" = set; then
9474 withval="$with_gnu_ld"
9475 test "$withval" = no || with_gnu_ld=yes
9476else
9477 with_gnu_ld=no
9478fi;
9479ac_prog=ld
9480if test "$GCC" = yes; then
9481 # Check if gcc -print-prog-name=ld gives a path.
9482 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9483echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9484 case $host in
9485 *-*-mingw*)
9486 # gcc leaves a trailing carriage return which upsets mingw
9487 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9488 *)
9489 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9490 esac
9491 case $ac_prog in
9492 # Accept absolute paths.
9493 [\\/]* | ?:[\\/]*)
9494 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009495 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00009496 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9497 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9498 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9499 done
9500 test -z "$LD" && LD="$ac_prog"
9501 ;;
9502 "")
9503 # If it fails, then pretend we aren't using GCC.
9504 ac_prog=ld
9505 ;;
9506 *)
9507 # If it is relative, then search for the first ld in PATH.
9508 with_gnu_ld=unknown
9509 ;;
9510 esac
9511elif test "$with_gnu_ld" = yes; then
9512 echo "$as_me:$LINENO: checking for GNU ld" >&5
9513echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9514else
9515 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9516echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9517fi
9518if test "${lt_cv_path_LD+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520else
9521 if test -z "$LD"; then
9522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9523 for ac_dir in $PATH; do
9524 IFS="$lt_save_ifs"
9525 test -z "$ac_dir" && ac_dir=.
9526 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9527 lt_cv_path_LD="$ac_dir/$ac_prog"
9528 # Check to see if the program is GNU ld. I'd rather use --version,
9529 # but apparently some GNU ld's only accept -v.
9530 # Break only if it was the GNU/non-GNU ld that we prefer.
9531 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9532 *GNU* | *'with BFD'*)
9533 test "$with_gnu_ld" != no && break
9534 ;;
9535 *)
9536 test "$with_gnu_ld" != yes && break
9537 ;;
9538 esac
9539 fi
9540 done
9541 IFS="$lt_save_ifs"
9542else
9543 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9544fi
9545fi
9546
9547LD="$lt_cv_path_LD"
9548if test -n "$LD"; then
9549 echo "$as_me:$LINENO: result: $LD" >&5
9550echo "${ECHO_T}$LD" >&6
9551else
9552 echo "$as_me:$LINENO: result: no" >&5
9553echo "${ECHO_T}no" >&6
9554fi
9555test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9556echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9557 { (exit 1); exit 1; }; }
9558echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9559echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9560if test "${lt_cv_prog_gnu_ld+set}" = set; then
9561 echo $ECHO_N "(cached) $ECHO_C" >&6
9562else
9563 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009564case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00009565*GNU* | *'with BFD'*)
9566 lt_cv_prog_gnu_ld=yes
9567 ;;
9568*)
9569 lt_cv_prog_gnu_ld=no
9570 ;;
9571esac
9572fi
9573echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9574echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9575with_gnu_ld=$lt_cv_prog_gnu_ld
9576
9577
9578
9579 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9580 # archiving commands below assume that GNU ld is being used.
9581 if test "$with_gnu_ld" = yes; then
9582 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9583 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'
9584
9585 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9586 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9587
9588 # If archive_cmds runs LD, not CC, wlarc should be empty
9589 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9590 # investigate it a little bit more. (MM)
9591 wlarc='${wl}'
9592
9593 # ancient GNU ld didn't support --whole-archive et. al.
9594 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9595 grep 'no-whole-archive' > /dev/null; then
9596 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9597 else
9598 whole_archive_flag_spec_CXX=
9599 fi
9600 else
9601 with_gnu_ld=no
9602 wlarc=
9603
9604 # A generic and very simple default shared library creation
9605 # command for GNU C++ for the case where it uses the native
9606 # linker, instead of GNU ld. If possible, this setting should
9607 # overridden to take advantage of the native linker features on
9608 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009609 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +00009610 fi
9611
9612 # Commands to make compiler produce verbose output that lists
9613 # what "hidden" libraries, object files and flags are used when
9614 # linking a shared library.
9615 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9616
9617else
9618 GXX=no
9619 with_gnu_ld=no
9620 wlarc=
9621fi
9622
9623# PORTME: fill in a description of your system's C++ link characteristics
9624echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9625echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9626ld_shlibs_CXX=yes
9627case $host_os in
9628 aix3*)
9629 # FIXME: insert proper C++ library support
9630 ld_shlibs_CXX=no
9631 ;;
9632 aix4* | aix5*)
9633 if test "$host_cpu" = ia64; then
9634 # On IA64, the linker does run time linking by default, so we don't
9635 # have to do anything special.
9636 aix_use_runtimelinking=no
9637 exp_sym_flag='-Bexport'
9638 no_entry_flag=""
9639 else
9640 aix_use_runtimelinking=no
9641
9642 # Test if we are trying to use run time linking or normal
9643 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9644 # need to do runtime linking.
9645 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9646 for ld_flag in $LDFLAGS; do
9647 case $ld_flag in
9648 *-brtl*)
9649 aix_use_runtimelinking=yes
9650 break
9651 ;;
9652 esac
9653 done
9654 esac
9655
9656 exp_sym_flag='-bexport'
9657 no_entry_flag='-bnoentry'
9658 fi
9659
9660 # When large executables or shared objects are built, AIX ld can
9661 # have problems creating the table of contents. If linking a library
9662 # or program results in "error TOC overflow" add -mminimal-toc to
9663 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9664 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9665
9666 archive_cmds_CXX=''
9667 hardcode_direct_CXX=yes
9668 hardcode_libdir_separator_CXX=':'
9669 link_all_deplibs_CXX=yes
9670
9671 if test "$GXX" = yes; then
9672 case $host_os in aix4.012|aix4.012.*)
9673 # We only want to do this on AIX 4.2 and lower, the check
9674 # below for broken collect2 doesn't work under 4.3+
9675 collect2name=`${CC} -print-prog-name=collect2`
9676 if test -f "$collect2name" && \
9677 strings "$collect2name" | grep resolve_lib_name >/dev/null
9678 then
9679 # We have reworked collect2
9680 hardcode_direct_CXX=yes
9681 else
9682 # We have old collect2
9683 hardcode_direct_CXX=unsupported
9684 # It fails to find uninstalled libraries when the uninstalled
9685 # path is not listed in the libpath. Setting hardcode_minus_L
9686 # to unsupported forces relinking
9687 hardcode_minus_L_CXX=yes
9688 hardcode_libdir_flag_spec_CXX='-L$libdir'
9689 hardcode_libdir_separator_CXX=
9690 fi
9691 esac
9692 shared_flag='-shared'
9693 else
9694 # not using gcc
9695 if test "$host_cpu" = ia64; then
9696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9697 # chokes on -Wl,-G. The following line is correct:
9698 shared_flag='-G'
9699 else
9700 if test "$aix_use_runtimelinking" = yes; then
9701 shared_flag='${wl}-G'
9702 else
9703 shared_flag='${wl}-bM:SRE'
9704 fi
9705 fi
9706 fi
9707
9708 # It seems that -bexpall does not export symbols beginning with
9709 # underscore (_), so it is better to generate a list of symbols to export.
9710 always_export_symbols_CXX=yes
9711 if test "$aix_use_runtimelinking" = yes; then
9712 # Warning - without using the other runtime loading flags (-brtl),
9713 # -berok will link without error, but may produce a broken library.
9714 allow_undefined_flag_CXX='-berok'
9715 # Determine the default libpath from the value encoded in an empty executable.
9716 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009717/* confdefs.h. */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009722
John Criswell47fdd832003-07-14 16:52:07 +00009723int
9724main ()
9725{
9726
9727 ;
9728 return 0;
9729}
9730_ACEOF
9731rm -f conftest.$ac_objext conftest$ac_exeext
9732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009733 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009734 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009735 grep -v '^ *+' conftest.er1 >conftest.err
9736 rm -f conftest.er1
9737 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9739 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009740 { ac_try='test -z "$ac_cxx_werror_flag"
9741 || test ! -s conftest.err'
9742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9743 (eval $ac_try) 2>&5
9744 ac_status=$?
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); }; } &&
9747 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5
9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; }; then
9753
9754aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9755}'`
9756# Check for a 64-bit object if we didn't find anything.
9757if 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; }
9758}'`; fi
9759else
9760 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009761sed 's/^/| /' conftest.$ac_ext >&5
9762
John Criswell47fdd832003-07-14 16:52:07 +00009763fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009764rm -f conftest.err conftest.$ac_objext \
9765 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009766if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9767
9768 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9769
9770 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"
9771 else
9772 if test "$host_cpu" = ia64; then
9773 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9774 allow_undefined_flag_CXX="-z nodefs"
9775 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"
9776 else
9777 # Determine the default libpath from the value encoded in an empty executable.
9778 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009779/* confdefs.h. */
9780_ACEOF
9781cat confdefs.h >>conftest.$ac_ext
9782cat >>conftest.$ac_ext <<_ACEOF
9783/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009784
John Criswell47fdd832003-07-14 16:52:07 +00009785int
9786main ()
9787{
9788
9789 ;
9790 return 0;
9791}
9792_ACEOF
9793rm -f conftest.$ac_objext conftest$ac_exeext
9794if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009795 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009796 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009802 { ac_try='test -z "$ac_cxx_werror_flag"
9803 || test ! -s conftest.err'
9804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9805 (eval $ac_try) 2>&5
9806 ac_status=$?
9807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9808 (exit $ac_status); }; } &&
9809 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9811 (eval $ac_try) 2>&5
9812 ac_status=$?
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); }; }; then
9815
9816aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9817}'`
9818# Check for a 64-bit object if we didn't find anything.
9819if 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; }
9820}'`; fi
9821else
9822 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009823sed 's/^/| /' conftest.$ac_ext >&5
9824
John Criswell47fdd832003-07-14 16:52:07 +00009825fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009826rm -f conftest.err conftest.$ac_objext \
9827 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009828if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9829
9830 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9831 # Warning - without using the other run time loading flags,
9832 # -berok will link without error, but may produce a broken library.
9833 no_undefined_flag_CXX=' ${wl}-bernotok'
9834 allow_undefined_flag_CXX=' ${wl}-berok'
9835 # -bexpall does not export symbols beginning with underscore (_)
9836 always_export_symbols_CXX=yes
9837 # Exported symbols can be pulled into shared objects from archives
9838 whole_archive_flag_spec_CXX=' '
9839 archive_cmds_need_lc_CXX=yes
9840 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +00009841 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 +00009842 fi
9843 fi
9844 ;;
9845 chorus*)
9846 case $cc_basename in
9847 *)
9848 # FIXME: insert proper C++ library support
9849 ld_shlibs_CXX=no
9850 ;;
9851 esac
9852 ;;
9853
Reid Spencer2706f8c2004-09-19 23:53:36 +00009854
John Criswell47fdd832003-07-14 16:52:07 +00009855 cygwin* | mingw* | pw32*)
9856 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9857 # as there is no search path for DLLs.
9858 hardcode_libdir_flag_spec_CXX='-L$libdir'
9859 allow_undefined_flag_CXX=unsupported
9860 always_export_symbols_CXX=no
9861 enable_shared_with_static_runtimes_CXX=yes
9862
9863 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9864 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'
9865 # If the export-symbols file already is a .def file (1st line
9866 # is EXPORTS), use it as is; otherwise, prepend...
9867 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9868 cp $export_symbols $output_objdir/$soname.def;
9869 else
9870 echo EXPORTS > $output_objdir/$soname.def;
9871 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +00009872 fi~
9873 $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 +00009874 else
9875 ld_shlibs_CXX=no
9876 fi
9877 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009878 darwin* | rhapsody*)
9879 case "$host_os" in
9880 rhapsody* | darwin1.[012])
9881 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9882 ;;
9883 *) # Darwin 1.3 on
9884 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9885 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9886 else
9887 case ${MACOSX_DEPLOYMENT_TARGET} in
9888 10.[012])
9889 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9890 ;;
9891 10.*)
9892 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9893 ;;
9894 esac
9895 fi
9896 ;;
9897 esac
9898 archive_cmds_need_lc_CXX=no
9899 hardcode_direct_CXX=no
9900 hardcode_automatic_CXX=yes
9901 hardcode_shlibpath_var_CXX=unsupported
9902 whole_archive_flag_spec_CXX=''
9903 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +00009904
Reid Spencer2706f8c2004-09-19 23:53:36 +00009905 if test "$GXX" = yes ; then
9906 lt_int_apple_cc_single_mod=no
9907 output_verbose_link_cmd='echo'
9908 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9909 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009910 fi
Brian Gaeke0a621332004-09-08 20:38:05 +00009911 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00009912 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 +00009913 else
Reid Spencer177dbe22004-10-13 01:01:03 +00009914 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 +00009915 fi
9916 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9917 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9918 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer177dbe22004-10-13 01:01:03 +00009919 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 +00009920 else
Reid Spencer177dbe22004-10-13 01:01:03 +00009921 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 +00009922 fi
Reid Spencer177dbe22004-10-13 01:01:03 +00009923 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 +00009924 else
9925 case "$cc_basename" in
9926 xlc*)
9927 output_verbose_link_cmd='echo'
9928 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'
9929 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9930 # 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 +00009931 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}'
9932 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 +00009933 ;;
9934 *)
9935 ld_shlibs_CXX=no
9936 ;;
9937 esac
Brian Gaeke0a621332004-09-08 20:38:05 +00009938 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009939 ;;
John Criswell47fdd832003-07-14 16:52:07 +00009940
9941 dgux*)
9942 case $cc_basename in
9943 ec++)
9944 # FIXME: insert proper C++ library support
9945 ld_shlibs_CXX=no
9946 ;;
9947 ghcx)
9948 # Green Hills C++ Compiler
9949 # FIXME: insert proper C++ library support
9950 ld_shlibs_CXX=no
9951 ;;
9952 *)
9953 # FIXME: insert proper C++ library support
9954 ld_shlibs_CXX=no
9955 ;;
9956 esac
9957 ;;
9958 freebsd12*)
9959 # C++ shared libraries reported to be fairly broken before switch to ELF
9960 ld_shlibs_CXX=no
9961 ;;
9962 freebsd-elf*)
9963 archive_cmds_need_lc_CXX=no
9964 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009965 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00009966 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9967 # conventions
9968 ld_shlibs_CXX=yes
9969 ;;
9970 gnu*)
9971 ;;
9972 hpux9*)
9973 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9974 hardcode_libdir_separator_CXX=:
9975 export_dynamic_flag_spec_CXX='${wl}-E'
9976 hardcode_direct_CXX=yes
9977 hardcode_minus_L_CXX=yes # Not in the search PATH,
9978 # but as the default
9979 # location of the library.
9980
9981 case $cc_basename in
9982 CC)
9983 # FIXME: insert proper C++ library support
9984 ld_shlibs_CXX=no
9985 ;;
9986 aCC)
Reid Spencer177dbe22004-10-13 01:01:03 +00009987 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 +00009988 # Commands to make compiler produce verbose output that lists
9989 # what "hidden" libraries, object files and flags are used when
9990 # linking a shared library.
9991 #
9992 # There doesn't appear to be a way to prevent this compiler from
9993 # explicitly linking system object files so we need to strip them
9994 # from the output so that they don't get included in the library
9995 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009996 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 +00009997 ;;
9998 *)
9999 if test "$GXX" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000010000 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 +000010001 else
10002 # FIXME: insert proper C++ library support
10003 ld_shlibs_CXX=no
10004 fi
10005 ;;
10006 esac
10007 ;;
10008 hpux10*|hpux11*)
10009 if test $with_gnu_ld = no; then
10010 case "$host_cpu" in
10011 hppa*64*)
10012 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10013 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10014 hardcode_libdir_separator_CXX=:
10015 ;;
10016 ia64*)
10017 hardcode_libdir_flag_spec_CXX='-L$libdir'
10018 ;;
10019 *)
10020 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10021 hardcode_libdir_separator_CXX=:
10022 export_dynamic_flag_spec_CXX='${wl}-E'
10023 ;;
10024 esac
10025 fi
10026 case "$host_cpu" in
10027 hppa*64*)
10028 hardcode_direct_CXX=no
10029 hardcode_shlibpath_var_CXX=no
10030 ;;
10031 ia64*)
10032 hardcode_direct_CXX=no
10033 hardcode_shlibpath_var_CXX=no
10034 hardcode_minus_L_CXX=yes # Not in the search PATH,
10035 # but as the default
10036 # location of the library.
10037 ;;
10038 *)
10039 hardcode_direct_CXX=yes
10040 hardcode_minus_L_CXX=yes # Not in the search PATH,
10041 # but as the default
10042 # location of the library.
10043 ;;
10044 esac
10045
10046 case $cc_basename in
10047 CC)
10048 # FIXME: insert proper C++ library support
10049 ld_shlibs_CXX=no
10050 ;;
10051 aCC)
10052 case "$host_cpu" in
10053 hppa*64*|ia64*)
10054 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10055 ;;
10056 *)
10057 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10058 ;;
10059 esac
10060 # Commands to make compiler produce verbose output that lists
10061 # what "hidden" libraries, object files and flags are used when
10062 # linking a shared library.
10063 #
10064 # There doesn't appear to be a way to prevent this compiler from
10065 # explicitly linking system object files so we need to strip them
10066 # from the output so that they don't get included in the library
10067 # dependencies.
10068 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'
10069 ;;
10070 *)
10071 if test "$GXX" = yes; then
10072 if test $with_gnu_ld = no; then
10073 case "$host_cpu" in
10074 ia64*|hppa*64*)
10075 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10076 ;;
10077 *)
10078 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'
10079 ;;
10080 esac
10081 fi
10082 else
10083 # FIXME: insert proper C++ library support
10084 ld_shlibs_CXX=no
10085 fi
10086 ;;
10087 esac
10088 ;;
10089 irix5* | irix6*)
10090 case $cc_basename in
10091 CC)
10092 # SGI C++
10093 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'
10094
10095 # Archives containing C++ object files must be created using
10096 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10097 # necessary to make sure instantiated templates are included
10098 # in the archive.
10099 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10100 ;;
10101 *)
10102 if test "$GXX" = yes; then
10103 if test "$with_gnu_ld" = no; then
10104 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'
10105 else
10106 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'
10107 fi
10108 fi
10109 link_all_deplibs_CXX=yes
10110 ;;
10111 esac
10112 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10113 hardcode_libdir_separator_CXX=:
10114 ;;
10115 linux*)
10116 case $cc_basename in
10117 KCC)
10118 # Kuck and Associates, Inc. (KAI) C++ Compiler
10119
10120 # KCC will only create a shared library if the output file
10121 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10122 # to its proper name (with version) after linking.
10123 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'
10124 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'
10125 # Commands to make compiler produce verbose output that lists
10126 # what "hidden" libraries, object files and flags are used when
10127 # linking a shared library.
10128 #
10129 # There doesn't appear to be a way to prevent this compiler from
10130 # explicitly linking system object files so we need to strip them
10131 # from the output so that they don't get included in the library
10132 # dependencies.
10133 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'
10134
10135 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10136 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10137
10138 # Archives containing C++ object files must be created using
10139 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10140 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10141 ;;
10142 icpc)
10143 # Intel C++
10144 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000010145 # version 8.0 and above of icpc choke on multiply defined symbols
10146 # if we add $predep_objects and $postdep_objects, however 7.1 and
10147 # earlier do not add the objects themselves.
10148 case `$CC -V 2>&1` in
10149 *"Version 7."*)
10150 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10151 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'
10152 ;;
10153 *) # Version 8.0 or newer
10154 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10155 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10156 ;;
10157 esac
John Criswell47fdd832003-07-14 16:52:07 +000010158 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000010159 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10160 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10161 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10162 ;;
10163 cxx)
10164 # Compaq C++
10165 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10166 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'
10167
10168 runpath_var=LD_RUN_PATH
10169 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10170 hardcode_libdir_separator_CXX=:
10171
10172 # Commands to make compiler produce verbose output that lists
10173 # what "hidden" libraries, object files and flags are used when
10174 # linking a shared library.
10175 #
10176 # There doesn't appear to be a way to prevent this compiler from
10177 # explicitly linking system object files so we need to strip them
10178 # from the output so that they don't get included in the library
10179 # dependencies.
10180 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'
10181 ;;
10182 esac
10183 ;;
10184 lynxos*)
10185 # FIXME: insert proper C++ library support
10186 ld_shlibs_CXX=no
10187 ;;
10188 m88k*)
10189 # FIXME: insert proper C++ library support
10190 ld_shlibs_CXX=no
10191 ;;
10192 mvs*)
10193 case $cc_basename in
10194 cxx)
10195 # FIXME: insert proper C++ library support
10196 ld_shlibs_CXX=no
10197 ;;
10198 *)
10199 # FIXME: insert proper C++ library support
10200 ld_shlibs_CXX=no
10201 ;;
10202 esac
10203 ;;
10204 netbsd*)
10205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10206 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10207 wlarc=
10208 hardcode_libdir_flag_spec_CXX='-R$libdir'
10209 hardcode_direct_CXX=yes
10210 hardcode_shlibpath_var_CXX=no
10211 fi
10212 # Workaround some broken pre-1.5 toolchains
10213 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10214 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010215 openbsd2*)
10216 # C++ shared libraries are fairly broken
10217 ld_shlibs_CXX=no
10218 ;;
10219 openbsd*)
10220 hardcode_direct_CXX=yes
10221 hardcode_shlibpath_var_CXX=no
10222 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10223 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10224 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10225 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10226 export_dynamic_flag_spec_CXX='${wl}-E'
10227 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10228 fi
10229 output_verbose_link_cmd='echo'
10230 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010231 osf3*)
10232 case $cc_basename in
10233 KCC)
10234 # Kuck and Associates, Inc. (KAI) C++ Compiler
10235
10236 # KCC will only create a shared library if the output file
10237 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10238 # to its proper name (with version) after linking.
10239 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'
10240
10241 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10242 hardcode_libdir_separator_CXX=:
10243
10244 # Archives containing C++ object files must be created using
10245 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10246 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10247
10248 ;;
10249 RCC)
10250 # Rational C++ 2.4.1
10251 # FIXME: insert proper C++ library support
10252 ld_shlibs_CXX=no
10253 ;;
10254 cxx)
10255 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10256 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'
10257
10258 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10259 hardcode_libdir_separator_CXX=:
10260
10261 # Commands to make compiler produce verbose output that lists
10262 # what "hidden" libraries, object files and flags are used when
10263 # linking a shared library.
10264 #
10265 # There doesn't appear to be a way to prevent this compiler from
10266 # explicitly linking system object files so we need to strip them
10267 # from the output so that they don't get included in the library
10268 # dependencies.
10269 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'
10270 ;;
10271 *)
10272 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10273 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10274 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'
10275
10276 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10277 hardcode_libdir_separator_CXX=:
10278
10279 # Commands to make compiler produce verbose output that lists
10280 # what "hidden" libraries, object files and flags are used when
10281 # linking a shared library.
10282 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10283
10284 else
10285 # FIXME: insert proper C++ library support
10286 ld_shlibs_CXX=no
10287 fi
10288 ;;
10289 esac
10290 ;;
10291 osf4* | osf5*)
10292 case $cc_basename in
10293 KCC)
10294 # Kuck and Associates, Inc. (KAI) C++ Compiler
10295
10296 # KCC will only create a shared library if the output file
10297 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10298 # to its proper name (with version) after linking.
10299 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'
10300
10301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10302 hardcode_libdir_separator_CXX=:
10303
10304 # Archives containing C++ object files must be created using
10305 # the KAI C++ compiler.
10306 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10307 ;;
10308 RCC)
10309 # Rational C++ 2.4.1
10310 # FIXME: insert proper C++ library support
10311 ld_shlibs_CXX=no
10312 ;;
10313 cxx)
10314 allow_undefined_flag_CXX=' -expect_unresolved \*'
10315 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 +000010316 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10317 echo "-hidden">> $lib.exp~
10318 $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~
10319 $rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000010320
10321 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10322 hardcode_libdir_separator_CXX=:
10323
10324 # Commands to make compiler produce verbose output that lists
10325 # what "hidden" libraries, object files and flags are used when
10326 # linking a shared library.
10327 #
10328 # There doesn't appear to be a way to prevent this compiler from
10329 # explicitly linking system object files so we need to strip them
10330 # from the output so that they don't get included in the library
10331 # dependencies.
10332 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'
10333 ;;
10334 *)
10335 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10336 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10337 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'
10338
10339 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10340 hardcode_libdir_separator_CXX=:
10341
10342 # Commands to make compiler produce verbose output that lists
10343 # what "hidden" libraries, object files and flags are used when
10344 # linking a shared library.
10345 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10346
10347 else
10348 # FIXME: insert proper C++ library support
10349 ld_shlibs_CXX=no
10350 fi
10351 ;;
10352 esac
10353 ;;
10354 psos*)
10355 # FIXME: insert proper C++ library support
10356 ld_shlibs_CXX=no
10357 ;;
10358 sco*)
10359 archive_cmds_need_lc_CXX=no
10360 case $cc_basename in
10361 CC)
10362 # FIXME: insert proper C++ library support
10363 ld_shlibs_CXX=no
10364 ;;
10365 *)
10366 # FIXME: insert proper C++ library support
10367 ld_shlibs_CXX=no
10368 ;;
10369 esac
10370 ;;
10371 sunos4*)
10372 case $cc_basename in
10373 CC)
10374 # Sun C++ 4.x
10375 # FIXME: insert proper C++ library support
10376 ld_shlibs_CXX=no
10377 ;;
10378 lcc)
10379 # Lucid
10380 # FIXME: insert proper C++ library support
10381 ld_shlibs_CXX=no
10382 ;;
10383 *)
10384 # FIXME: insert proper C++ library support
10385 ld_shlibs_CXX=no
10386 ;;
10387 esac
10388 ;;
10389 solaris*)
10390 case $cc_basename in
10391 CC)
10392 # Sun C++ 4.2, 5.x and Centerline C++
10393 no_undefined_flag_CXX=' -zdefs'
10394 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 +000010395 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10396 $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 +000010397
10398 hardcode_libdir_flag_spec_CXX='-R$libdir'
10399 hardcode_shlibpath_var_CXX=no
10400 case $host_os in
10401 solaris2.0-5 | solaris2.0-5.*) ;;
10402 *)
10403 # The C++ compiler is used as linker so we must use $wl
10404 # flag to pass the commands to the underlying system
10405 # linker.
10406 # Supported since Solaris 2.6 (maybe 2.5.1?)
10407 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10408 ;;
10409 esac
10410 link_all_deplibs_CXX=yes
10411
10412 # Commands to make compiler produce verbose output that lists
10413 # what "hidden" libraries, object files and flags are used when
10414 # linking a shared library.
10415 #
10416 # There doesn't appear to be a way to prevent this compiler from
10417 # explicitly linking system object files so we need to strip them
10418 # from the output so that they don't get included in the library
10419 # dependencies.
10420 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'
10421
10422 # Archives containing C++ object files must be created using
10423 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10424 # necessary to make sure instantiated templates are included
10425 # in the archive.
10426 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10427 ;;
10428 gcx)
10429 # Green Hills C++ Compiler
10430 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10431
10432 # The C++ compiler must be used to create the archive.
10433 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10434 ;;
10435 *)
10436 # GNU C++ compiler with Solaris linker
10437 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10438 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10439 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000010440 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 +000010441 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10442 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10443
John Criswell47fdd832003-07-14 16:52:07 +000010444 # Commands to make compiler produce verbose output that lists
10445 # what "hidden" libraries, object files and flags are used when
10446 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000010447 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000010448 else
10449 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10450 # platform.
10451 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 +000010452 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10453 $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 +000010454
10455 # Commands to make compiler produce verbose output that lists
10456 # what "hidden" libraries, object files and flags are used when
10457 # linking a shared library.
10458 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10459 fi
10460
10461 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10462 fi
10463 ;;
10464 esac
10465 ;;
10466 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10467 archive_cmds_need_lc_CXX=no
10468 ;;
10469 tandem*)
10470 case $cc_basename in
10471 NCC)
10472 # NonStop-UX NCC 3.20
10473 # FIXME: insert proper C++ library support
10474 ld_shlibs_CXX=no
10475 ;;
10476 *)
10477 # FIXME: insert proper C++ library support
10478 ld_shlibs_CXX=no
10479 ;;
10480 esac
10481 ;;
10482 vxworks*)
10483 # FIXME: insert proper C++ library support
10484 ld_shlibs_CXX=no
10485 ;;
10486 *)
10487 # FIXME: insert proper C++ library support
10488 ld_shlibs_CXX=no
10489 ;;
10490esac
10491echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10492echo "${ECHO_T}$ld_shlibs_CXX" >&6
10493test "$ld_shlibs_CXX" = no && can_build_shared=no
10494
10495GCC_CXX="$GXX"
10496LD_CXX="$LD"
10497
John Criswell47fdd832003-07-14 16:52:07 +000010498
10499cat > conftest.$ac_ext <<EOF
10500class Foo
10501{
10502public:
10503 Foo (void) { a = 0; }
10504private:
10505 int a;
10506};
10507EOF
10508
10509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10510 (eval $ac_compile) 2>&5
10511 ac_status=$?
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); }; then
10514 # Parse the compiler output and extract the necessary
10515 # objects, libraries and library flags.
10516
10517 # Sentinel used to keep track of whether or not we are before
10518 # the conftest object file.
10519 pre_test_object_deps_done=no
10520
10521 # The `*' in the case matches for architectures that use `case' in
10522 # $output_verbose_cmd can trigger glob expansion during the loop
10523 # eval without this substitution.
10524 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10525
10526 for p in `eval $output_verbose_link_cmd`; do
10527 case $p in
10528
10529 -L* | -R* | -l*)
10530 # Some compilers place space between "-{L,R}" and the path.
10531 # Remove the space.
10532 if test $p = "-L" \
10533 || test $p = "-R"; then
10534 prev=$p
10535 continue
10536 else
10537 prev=
10538 fi
10539
10540 if test "$pre_test_object_deps_done" = no; then
10541 case $p in
10542 -L* | -R*)
10543 # Internal compiler library paths should come after those
10544 # provided the user. The postdeps already come after the
10545 # user supplied libs so there is no need to process them.
10546 if test -z "$compiler_lib_search_path_CXX"; then
10547 compiler_lib_search_path_CXX="${prev}${p}"
10548 else
10549 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10550 fi
10551 ;;
10552 # The "-l" case would never come before the object being
10553 # linked, so don't bother handling this case.
10554 esac
10555 else
10556 if test -z "$postdeps_CXX"; then
10557 postdeps_CXX="${prev}${p}"
10558 else
10559 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10560 fi
10561 fi
10562 ;;
10563
10564 *.$objext)
10565 # This assumes that the test object file only shows up
10566 # once in the compiler output.
10567 if test "$p" = "conftest.$objext"; then
10568 pre_test_object_deps_done=yes
10569 continue
10570 fi
10571
10572 if test "$pre_test_object_deps_done" = no; then
10573 if test -z "$predep_objects_CXX"; then
10574 predep_objects_CXX="$p"
10575 else
10576 predep_objects_CXX="$predep_objects_CXX $p"
10577 fi
10578 else
10579 if test -z "$postdep_objects_CXX"; then
10580 postdep_objects_CXX="$p"
10581 else
10582 postdep_objects_CXX="$postdep_objects_CXX $p"
10583 fi
10584 fi
10585 ;;
10586
10587 *) ;; # Ignore the rest.
10588
10589 esac
10590 done
10591
10592 # Clean up.
10593 rm -f a.out a.exe
10594else
10595 echo "libtool.m4: error: problem compiling CXX test program"
10596fi
10597
10598$rm -f confest.$objext
10599
10600case " $postdeps_CXX " in
10601*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10602esac
10603
10604lt_prog_compiler_wl_CXX=
10605lt_prog_compiler_pic_CXX=
10606lt_prog_compiler_static_CXX=
10607
10608echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10609echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10610
10611 # C++ specific cases for pic, static, wl, etc.
10612 if test "$GXX" = yes; then
10613 lt_prog_compiler_wl_CXX='-Wl,'
10614 lt_prog_compiler_static_CXX='-static'
10615
10616 case $host_os in
10617 aix*)
10618 # All AIX code is PIC.
10619 if test "$host_cpu" = ia64; then
10620 # AIX 5 now supports IA64 processor
10621 lt_prog_compiler_static_CXX='-Bstatic'
10622 fi
10623 ;;
10624 amigaos*)
10625 # FIXME: we need at least 68020 code to build shared libraries, but
10626 # adding the `-m68020' flag to GCC prevents building anything better,
10627 # like `-m68040'.
10628 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10629 ;;
10630 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10631 # PIC is the default for these OSes.
10632 ;;
10633 mingw* | os2* | pw32*)
10634 # This hack is so that the source file can tell whether it is being
10635 # built for inclusion in a dll (and should export symbols for example).
10636 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10637 ;;
10638 darwin* | rhapsody*)
10639 # PIC is the default on this platform
10640 # Common symbols not allowed in MH_DYLIB files
10641 lt_prog_compiler_pic_CXX='-fno-common'
10642 ;;
10643 *djgpp*)
10644 # DJGPP does not support shared libraries at all
10645 lt_prog_compiler_pic_CXX=
10646 ;;
10647 sysv4*MP*)
10648 if test -d /usr/nec; then
10649 lt_prog_compiler_pic_CXX=-Kconform_pic
10650 fi
10651 ;;
10652 hpux*)
10653 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10654 # not for PA HP-UX.
10655 case "$host_cpu" in
10656 hppa*64*|ia64*)
10657 ;;
10658 *)
10659 lt_prog_compiler_pic_CXX='-fPIC'
10660 ;;
10661 esac
10662 ;;
10663 *)
10664 lt_prog_compiler_pic_CXX='-fPIC'
10665 ;;
10666 esac
10667 else
10668 case $host_os in
10669 aix4* | aix5*)
10670 # All AIX code is PIC.
10671 if test "$host_cpu" = ia64; then
10672 # AIX 5 now supports IA64 processor
10673 lt_prog_compiler_static_CXX='-Bstatic'
10674 else
10675 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10676 fi
10677 ;;
10678 chorus*)
10679 case $cc_basename in
10680 cxch68)
10681 # Green Hills C++ Compiler
10682 # _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"
10683 ;;
10684 esac
10685 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010686 darwin*)
10687 # PIC is the default on this platform
10688 # Common symbols not allowed in MH_DYLIB files
10689 case "$cc_basename" in
10690 xlc*)
10691 lt_prog_compiler_pic_CXX='-qnocommon'
10692 lt_prog_compiler_wl_CXX='-Wl,'
10693 ;;
10694 esac
10695 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010696 dgux*)
10697 case $cc_basename in
10698 ec++)
10699 lt_prog_compiler_pic_CXX='-KPIC'
10700 ;;
10701 ghcx)
10702 # Green Hills C++ Compiler
10703 lt_prog_compiler_pic_CXX='-pic'
10704 ;;
10705 *)
10706 ;;
10707 esac
10708 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010709 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000010710 # FreeBSD uses GNU C++
10711 ;;
10712 hpux9* | hpux10* | hpux11*)
10713 case $cc_basename in
10714 CC)
10715 lt_prog_compiler_wl_CXX='-Wl,'
10716 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10717 if test "$host_cpu" != ia64; then
10718 lt_prog_compiler_pic_CXX='+Z'
10719 fi
10720 ;;
10721 aCC)
10722 lt_prog_compiler_wl_CXX='-Wl,'
10723 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10724 case "$host_cpu" in
10725 hppa*64*|ia64*)
10726 # +Z the default
10727 ;;
10728 *)
10729 lt_prog_compiler_pic_CXX='+Z'
10730 ;;
10731 esac
10732 ;;
10733 *)
10734 ;;
10735 esac
10736 ;;
10737 irix5* | irix6* | nonstopux*)
10738 case $cc_basename in
10739 CC)
10740 lt_prog_compiler_wl_CXX='-Wl,'
10741 lt_prog_compiler_static_CXX='-non_shared'
10742 # CC pic flag -KPIC is the default.
10743 ;;
10744 *)
10745 ;;
10746 esac
10747 ;;
10748 linux*)
10749 case $cc_basename in
10750 KCC)
10751 # KAI C++ Compiler
10752 lt_prog_compiler_wl_CXX='--backend -Wl,'
10753 lt_prog_compiler_pic_CXX='-fPIC'
10754 ;;
10755 icpc)
10756 # Intel C++
10757 lt_prog_compiler_wl_CXX='-Wl,'
10758 lt_prog_compiler_pic_CXX='-KPIC'
10759 lt_prog_compiler_static_CXX='-static'
10760 ;;
10761 cxx)
10762 # Compaq C++
10763 # Make sure the PIC flag is empty. It appears that all Alpha
10764 # Linux and Compaq Tru64 Unix objects are PIC.
10765 lt_prog_compiler_pic_CXX=
10766 lt_prog_compiler_static_CXX='-non_shared'
10767 ;;
10768 *)
10769 ;;
10770 esac
10771 ;;
10772 lynxos*)
10773 ;;
10774 m88k*)
10775 ;;
10776 mvs*)
10777 case $cc_basename in
10778 cxx)
10779 lt_prog_compiler_pic_CXX='-W c,exportall'
10780 ;;
10781 *)
10782 ;;
10783 esac
10784 ;;
10785 netbsd*)
10786 ;;
10787 osf3* | osf4* | osf5*)
10788 case $cc_basename in
10789 KCC)
10790 lt_prog_compiler_wl_CXX='--backend -Wl,'
10791 ;;
10792 RCC)
10793 # Rational C++ 2.4.1
10794 lt_prog_compiler_pic_CXX='-pic'
10795 ;;
10796 cxx)
10797 # Digital/Compaq C++
10798 lt_prog_compiler_wl_CXX='-Wl,'
10799 # Make sure the PIC flag is empty. It appears that all Alpha
10800 # Linux and Compaq Tru64 Unix objects are PIC.
10801 lt_prog_compiler_pic_CXX=
10802 lt_prog_compiler_static_CXX='-non_shared'
10803 ;;
10804 *)
10805 ;;
10806 esac
10807 ;;
10808 psos*)
10809 ;;
10810 sco*)
10811 case $cc_basename in
10812 CC)
10813 lt_prog_compiler_pic_CXX='-fPIC'
10814 ;;
10815 *)
10816 ;;
10817 esac
10818 ;;
10819 solaris*)
10820 case $cc_basename in
10821 CC)
10822 # Sun C++ 4.2, 5.x and Centerline C++
10823 lt_prog_compiler_pic_CXX='-KPIC'
10824 lt_prog_compiler_static_CXX='-Bstatic'
10825 lt_prog_compiler_wl_CXX='-Qoption ld '
10826 ;;
10827 gcx)
10828 # Green Hills C++ Compiler
10829 lt_prog_compiler_pic_CXX='-PIC'
10830 ;;
10831 *)
10832 ;;
10833 esac
10834 ;;
10835 sunos4*)
10836 case $cc_basename in
10837 CC)
10838 # Sun C++ 4.x
10839 lt_prog_compiler_pic_CXX='-pic'
10840 lt_prog_compiler_static_CXX='-Bstatic'
10841 ;;
10842 lcc)
10843 # Lucid
10844 lt_prog_compiler_pic_CXX='-pic'
10845 ;;
10846 *)
10847 ;;
10848 esac
10849 ;;
10850 tandem*)
10851 case $cc_basename in
10852 NCC)
10853 # NonStop-UX NCC 3.20
10854 lt_prog_compiler_pic_CXX='-KPIC'
10855 ;;
10856 *)
10857 ;;
10858 esac
10859 ;;
10860 unixware*)
10861 ;;
10862 vxworks*)
10863 ;;
10864 *)
10865 lt_prog_compiler_can_build_shared_CXX=no
10866 ;;
10867 esac
10868 fi
10869
10870echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10871echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10872
10873#
10874# Check to make sure the PIC flag actually works.
10875#
10876if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010877
10878echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010879echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10880if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10881 echo $ECHO_N "(cached) $ECHO_C" >&6
10882else
10883 lt_prog_compiler_pic_works_CXX=no
10884 ac_outfile=conftest.$ac_objext
10885 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10886 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10887 # Insert the option either (1) after the last *FLAGS variable, or
10888 # (2) before a word containing "conftest.", or (3) at the end.
10889 # Note that $ac_compile itself does not contain backslashes and begins
10890 # with a dollar sign (not a hyphen), so the echo should work correctly.
10891 # The option is referenced via a variable to avoid confusing sed.
10892 lt_compile=`echo "$ac_compile" | $SED \
10893 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10895 -e 's:$: $lt_compiler_flag:'`
Misha Brukman591edc62004-10-14 18:59:42 +000010896 (eval echo "\"\$as_me:10896: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010897 (eval "$lt_compile" 2>conftest.err)
10898 ac_status=$?
10899 cat conftest.err >&5
Misha Brukman591edc62004-10-14 18:59:42 +000010900 echo "$as_me:10900: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010901 if (exit $ac_status) && test -s "$ac_outfile"; then
10902 # The compiler can only warn and ignore the option if not recognized
10903 # So say no if there are warnings
10904 if test ! -s conftest.err; then
10905 lt_prog_compiler_pic_works_CXX=yes
10906 fi
10907 fi
10908 $rm conftest*
10909
10910fi
10911echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10912echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10913
10914if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10915 case $lt_prog_compiler_pic_CXX in
10916 "" | " "*) ;;
10917 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10918 esac
10919else
10920 lt_prog_compiler_pic_CXX=
10921 lt_prog_compiler_can_build_shared_CXX=no
10922fi
10923
10924fi
10925case "$host_os" in
10926 # For platforms which do not support PIC, -DPIC is meaningless:
10927 *djgpp*)
10928 lt_prog_compiler_pic_CXX=
10929 ;;
10930 *)
10931 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10932 ;;
10933esac
10934
10935echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10936echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10937if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10939else
10940 lt_cv_prog_compiler_c_o_CXX=no
10941 $rm -r conftest 2>/dev/null
10942 mkdir conftest
10943 cd conftest
10944 mkdir out
10945 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10946
John Criswell47fdd832003-07-14 16:52:07 +000010947 lt_compiler_flag="-o out/conftest2.$ac_objext"
10948 # Insert the option either (1) after the last *FLAGS variable, or
10949 # (2) before a word containing "conftest.", or (3) at the end.
10950 # Note that $ac_compile itself does not contain backslashes and begins
10951 # with a dollar sign (not a hyphen), so the echo should work correctly.
10952 lt_compile=`echo "$ac_compile" | $SED \
10953 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10954 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10955 -e 's:$: $lt_compiler_flag:'`
Misha Brukman591edc62004-10-14 18:59:42 +000010956 (eval echo "\"\$as_me:10956: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010957 (eval "$lt_compile" 2>out/conftest.err)
10958 ac_status=$?
10959 cat out/conftest.err >&5
Misha Brukman591edc62004-10-14 18:59:42 +000010960 echo "$as_me:10960: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010961 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10962 then
10963 # The compiler can only warn and ignore the option if not recognized
10964 # So say no if there are warnings
10965 if test ! -s out/conftest.err; then
10966 lt_cv_prog_compiler_c_o_CXX=yes
10967 fi
10968 fi
10969 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000010970 $rm conftest*
10971 # SGI C++ compiler will create directory out/ii_files/ for
10972 # template instantiation
10973 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10974 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000010975 cd ..
10976 rmdir conftest
10977 $rm conftest*
10978
10979fi
10980echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10981echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10982
10983
10984hard_links="nottested"
10985if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10986 # do not overwrite the value of need_locks provided by the user
10987 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10988echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10989 hard_links=yes
10990 $rm conftest*
10991 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10992 touch conftest.a
10993 ln conftest.a conftest.b 2>&5 || hard_links=no
10994 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10995 echo "$as_me:$LINENO: result: $hard_links" >&5
10996echo "${ECHO_T}$hard_links" >&6
10997 if test "$hard_links" = no; then
10998 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10999echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11000 need_locks=warn
11001 fi
11002else
11003 need_locks=no
11004fi
11005
11006echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11007echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11008
11009 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11010 case $host_os in
11011 aix4* | aix5*)
11012 # If we're using GNU nm, then we don't want the "-C" option.
11013 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11014 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11015 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'
11016 else
11017 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'
11018 fi
11019 ;;
11020 pw32*)
11021 export_symbols_cmds_CXX="$ltdll_cmds"
11022 ;;
11023 cygwin* | mingw*)
11024 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11025 ;;
11026 *)
11027 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11028 ;;
11029 esac
11030
11031echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11032echo "${ECHO_T}$ld_shlibs_CXX" >&6
11033test "$ld_shlibs_CXX" = no && can_build_shared=no
11034
11035variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11036if test "$GCC" = yes; then
11037 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11038fi
11039
11040#
11041# Do we need to explicitly link libc?
11042#
11043case "x$archive_cmds_need_lc_CXX" in
11044x|xyes)
11045 # Assume -lc should be added
11046 archive_cmds_need_lc_CXX=yes
11047
11048 if test "$enable_shared" = yes && test "$GCC" = yes; then
11049 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011050 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000011051 # FIXME: we may have to deal with multi-command sequences.
11052 ;;
11053 '$CC '*)
11054 # Test whether the compiler implicitly links with -lc since on some
11055 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11056 # to ld, don't add -lc before -lgcc.
11057 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11058echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11059 $rm conftest*
11060 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11061
11062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11063 (eval $ac_compile) 2>&5
11064 ac_status=$?
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } 2>conftest.err; then
11067 soname=conftest
11068 lib=conftest
11069 libobjs=conftest.$ac_objext
11070 deplibs=
11071 wl=$lt_prog_compiler_wl_CXX
11072 compiler_flags=-v
11073 linker_flags=-v
11074 verstring=
11075 output_objdir=.
11076 libname=conftest
11077 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11078 allow_undefined_flag_CXX=
11079 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11080 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11081 ac_status=$?
11082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11083 (exit $ac_status); }
11084 then
11085 archive_cmds_need_lc_CXX=no
11086 else
11087 archive_cmds_need_lc_CXX=yes
11088 fi
11089 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11090 else
11091 cat conftest.err 1>&5
11092 fi
11093 $rm conftest*
11094 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11095echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11096 ;;
11097 esac
11098 fi
11099 ;;
11100esac
11101
John Criswell47fdd832003-07-14 16:52:07 +000011102echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11103echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11104library_names_spec=
11105libname_spec='lib$name'
11106soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000011107shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000011108postinstall_cmds=
11109postuninstall_cmds=
11110finish_cmds=
11111finish_eval=
11112shlibpath_var=
11113shlibpath_overrides_runpath=unknown
11114version_type=none
11115dynamic_linker="$host_os ld.so"
11116sys_lib_dlsearch_path_spec="/lib /usr/lib"
11117if test "$GCC" = yes; then
11118 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11119 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11120 # if the path contains ";" then we assume it to be the separator
11121 # otherwise default to the standard path separator (i.e. ":") - it is
11122 # assumed that no part of a normal pathname contains ";" but that should
11123 # okay in the real world where ";" in dirpaths is itself problematic.
11124 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11125 else
11126 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11127 fi
11128else
11129 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11130fi
11131need_lib_prefix=unknown
11132hardcode_into_libs=no
11133
11134# when you set need_version to no, make sure it does not cause -set_version
11135# flags to be left without arguments
11136need_version=unknown
11137
11138case $host_os in
11139aix3*)
11140 version_type=linux
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11142 shlibpath_var=LIBPATH
11143
11144 # AIX 3 has no versioning support, so we append a major version to the name.
11145 soname_spec='${libname}${release}${shared_ext}$major'
11146 ;;
11147
11148aix4* | aix5*)
11149 version_type=linux
11150 need_lib_prefix=no
11151 need_version=no
11152 hardcode_into_libs=yes
11153 if test "$host_cpu" = ia64; then
11154 # AIX 5 supports IA64
11155 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11156 shlibpath_var=LD_LIBRARY_PATH
11157 else
11158 # With GCC up to 2.95.x, collect2 would create an import file
11159 # for dependence libraries. The import file would start with
11160 # the line `#! .'. This would cause the generated library to
11161 # depend on `.', always an invalid library. This was fixed in
11162 # development snapshots of GCC prior to 3.0.
11163 case $host_os in
11164 aix4 | aix4.[01] | aix4.[01].*)
11165 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11166 echo ' yes '
11167 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11168 :
11169 else
11170 can_build_shared=no
11171 fi
11172 ;;
11173 esac
11174 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11175 # soname into executable. Probably we can add versioning support to
11176 # collect2, so additional links can be useful in future.
11177 if test "$aix_use_runtimelinking" = yes; then
11178 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11179 # instead of lib<name>.a to let people know that these are not
11180 # typical AIX shared libraries.
11181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182 else
11183 # We preserve .a as extension for shared libraries through AIX4.2
11184 # and later when we are not doing run time linking.
11185 library_names_spec='${libname}${release}.a $libname.a'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 fi
11188 shlibpath_var=LIBPATH
11189 fi
11190 ;;
11191
11192amigaos*)
11193 library_names_spec='$libname.ixlibrary $libname.a'
11194 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011195 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 +000011196 ;;
11197
11198beos*)
11199 library_names_spec='${libname}${shared_ext}'
11200 dynamic_linker="$host_os ld.so"
11201 shlibpath_var=LIBRARY_PATH
11202 ;;
11203
Reid Spencer2706f8c2004-09-19 23:53:36 +000011204bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000011205 version_type=linux
11206 need_version=no
11207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11208 soname_spec='${libname}${release}${shared_ext}$major'
11209 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11212 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11213 # the default ld.so.conf also contains /usr/contrib/lib and
11214 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11215 # libtool to hard-code these into programs
11216 ;;
11217
11218cygwin* | mingw* | pw32*)
11219 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000011220 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000011221 need_version=no
11222 need_lib_prefix=no
11223
11224 case $GCC,$host_os in
11225 yes,cygwin* | yes,mingw* | yes,pw32*)
11226 library_names_spec='$libname.dll.a'
11227 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000011228 postinstall_cmds='base_file=`basename \${file}`~
11229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11230 dldir=$destdir/`dirname \$dlpath`~
11231 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000011232 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000011233 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11234 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000011235 $rm \$dlpath'
11236 shlibpath_overrides_runpath=yes
11237
11238 case $host_os in
11239 cygwin*)
11240 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11241 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 +000011242 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000011243 ;;
11244 mingw*)
11245 # MinGW DLLs use traditional 'lib' prefix
11246 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11247 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11248 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11249 # It is most probably a Windows format PATH printed by
11250 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11251 # path with ; separators, and with drive letters. We can handle the
11252 # drive letters (cygwin fileutils understands them), so leave them,
11253 # especially as we might pass files found there to a mingw objdump,
11254 # which wouldn't understand a cygwinified path. Ahh.
11255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11256 else
11257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11258 fi
11259 ;;
11260 pw32*)
11261 # pw32 DLLs use 'pw' prefix rather than 'lib'
11262 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11263 ;;
11264 esac
11265 ;;
11266
11267 *)
11268 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11269 ;;
11270 esac
11271 dynamic_linker='Win32 ld.exe'
11272 # FIXME: first we should search . and the directory the executable is in
11273 shlibpath_var=PATH
11274 ;;
11275
11276darwin* | rhapsody*)
11277 dynamic_linker="$host_os dyld"
11278 version_type=darwin
11279 need_lib_prefix=no
11280 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000011281 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000011282 soname_spec='${libname}${release}${major}$shared_ext'
11283 shlibpath_overrides_runpath=yes
11284 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000011285 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000011286 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011287 if test "$GCC" = yes; then
11288 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"`
11289 else
11290 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000011291 fi
11292 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11293 ;;
11294
11295dgux*)
11296 version_type=linux
11297 need_lib_prefix=no
11298 need_version=no
11299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11300 soname_spec='${libname}${release}${shared_ext}$major'
11301 shlibpath_var=LD_LIBRARY_PATH
11302 ;;
11303
11304freebsd1*)
11305 dynamic_linker=no
11306 ;;
11307
Reid Spencer2706f8c2004-09-19 23:53:36 +000011308kfreebsd*-gnu)
11309 version_type=linux
11310 need_lib_prefix=no
11311 need_version=no
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11313 soname_spec='${libname}${release}${shared_ext}$major'
11314 shlibpath_var=LD_LIBRARY_PATH
11315 shlibpath_overrides_runpath=no
11316 hardcode_into_libs=yes
11317 dynamic_linker='GNU ld.so'
11318 ;;
11319
John Criswell47fdd832003-07-14 16:52:07 +000011320freebsd*)
11321 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11322 version_type=freebsd-$objformat
11323 case $version_type in
11324 freebsd-elf*)
11325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11326 need_version=no
11327 need_lib_prefix=no
11328 ;;
11329 freebsd-*)
11330 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11331 need_version=yes
11332 ;;
11333 esac
11334 shlibpath_var=LD_LIBRARY_PATH
11335 case $host_os in
11336 freebsd2*)
11337 shlibpath_overrides_runpath=yes
11338 ;;
11339 freebsd3.01* | freebsdelf3.01*)
11340 shlibpath_overrides_runpath=yes
11341 hardcode_into_libs=yes
11342 ;;
11343 *) # from 3.2 on
11344 shlibpath_overrides_runpath=no
11345 hardcode_into_libs=yes
11346 ;;
11347 esac
11348 ;;
11349
11350gnu*)
11351 version_type=linux
11352 need_lib_prefix=no
11353 need_version=no
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11355 soname_spec='${libname}${release}${shared_ext}$major'
11356 shlibpath_var=LD_LIBRARY_PATH
11357 hardcode_into_libs=yes
11358 ;;
11359
11360hpux9* | hpux10* | hpux11*)
11361 # Give a soname corresponding to the major version so that dld.sl refuses to
11362 # link against other versions.
11363 version_type=sunos
11364 need_lib_prefix=no
11365 need_version=no
11366 case "$host_cpu" in
11367 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011368 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000011369 hardcode_into_libs=yes
11370 dynamic_linker="$host_os dld.so"
11371 shlibpath_var=LD_LIBRARY_PATH
11372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374 soname_spec='${libname}${release}${shared_ext}$major'
11375 if test "X$HPUX_IA64_MODE" = X32; then
11376 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11377 else
11378 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11379 fi
11380 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11381 ;;
11382 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011383 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000011384 hardcode_into_libs=yes
11385 dynamic_linker="$host_os dld.sl"
11386 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11387 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11391 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11392 ;;
11393 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011394 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000011395 dynamic_linker="$host_os dld.sl"
11396 shlibpath_var=SHLIB_PATH
11397 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 ;;
11401 esac
11402 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11403 postinstall_cmds='chmod 555 $lib'
11404 ;;
11405
11406irix5* | irix6* | nonstopux*)
11407 case $host_os in
11408 nonstopux*) version_type=nonstopux ;;
11409 *)
11410 if test "$lt_cv_prog_gnu_ld" = yes; then
11411 version_type=linux
11412 else
11413 version_type=irix
11414 fi ;;
11415 esac
11416 need_lib_prefix=no
11417 need_version=no
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11420 case $host_os in
11421 irix5* | nonstopux*)
11422 libsuff= shlibsuff=
11423 ;;
11424 *)
11425 case $LD in # libtool.m4 will add one of these switches to LD
11426 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11427 libsuff= shlibsuff= libmagic=32-bit;;
11428 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11429 libsuff=32 shlibsuff=N32 libmagic=N32;;
11430 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11431 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11432 *) libsuff= shlibsuff= libmagic=never-match;;
11433 esac
11434 ;;
11435 esac
11436 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11437 shlibpath_overrides_runpath=no
11438 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11439 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11440 hardcode_into_libs=yes
11441 ;;
11442
11443# No shared lib support for Linux oldld, aout, or coff.
11444linux*oldld* | linux*aout* | linux*coff*)
11445 dynamic_linker=no
11446 ;;
11447
11448# This must be Linux ELF.
11449linux*)
11450 version_type=linux
11451 need_lib_prefix=no
11452 need_version=no
11453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11454 soname_spec='${libname}${release}${shared_ext}$major'
11455 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11456 shlibpath_var=LD_LIBRARY_PATH
11457 shlibpath_overrides_runpath=no
11458 # This implies no fast_install, which is unacceptable.
11459 # Some rework will be needed to allow for fast_install
11460 # before this can be enabled.
11461 hardcode_into_libs=yes
11462
Reid Spencer2706f8c2004-09-19 23:53:36 +000011463 # Append ld.so.conf contents to the search path
11464 if test -f /etc/ld.so.conf; then
11465 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11467 fi
11468
John Criswell47fdd832003-07-14 16:52:07 +000011469 # We used to test for /lib/ld.so.1 and disable shared libraries on
11470 # powerpc, because MkLinux only supported shared libraries with the
11471 # GNU dynamic linker. Since this was broken with cross compilers,
11472 # most powerpc-linux boxes support dynamic linking these days and
11473 # people can always --disable-shared, the test was removed, and we
11474 # assume the GNU/Linux dynamic linker is in use.
11475 dynamic_linker='GNU/Linux ld.so'
11476 ;;
11477
Reid Spencer2706f8c2004-09-19 23:53:36 +000011478knetbsd*-gnu)
11479 version_type=linux
11480 need_lib_prefix=no
11481 need_version=no
11482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11483 soname_spec='${libname}${release}${shared_ext}$major'
11484 shlibpath_var=LD_LIBRARY_PATH
11485 shlibpath_overrides_runpath=no
11486 hardcode_into_libs=yes
11487 dynamic_linker='GNU ld.so'
11488 ;;
11489
John Criswell47fdd832003-07-14 16:52:07 +000011490netbsd*)
11491 version_type=sunos
11492 need_lib_prefix=no
11493 need_version=no
11494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11497 dynamic_linker='NetBSD (a.out) ld.so'
11498 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000011500 soname_spec='${libname}${release}${shared_ext}$major'
11501 dynamic_linker='NetBSD ld.elf_so'
11502 fi
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=yes
11505 hardcode_into_libs=yes
11506 ;;
11507
11508newsos6)
11509 version_type=linux
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 shlibpath_var=LD_LIBRARY_PATH
11512 shlibpath_overrides_runpath=yes
11513 ;;
11514
Reid Spencer2706f8c2004-09-19 23:53:36 +000011515nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000011516 version_type=linux
11517 need_lib_prefix=no
11518 need_version=no
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 shlibpath_overrides_runpath=yes
11523 ;;
11524
11525openbsd*)
11526 version_type=sunos
11527 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000011528 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000011529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11530 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11533 case $host_os in
11534 openbsd2.[89] | openbsd2.[89].*)
11535 shlibpath_overrides_runpath=no
11536 ;;
11537 *)
11538 shlibpath_overrides_runpath=yes
11539 ;;
11540 esac
11541 else
11542 shlibpath_overrides_runpath=yes
11543 fi
11544 ;;
11545
11546os2*)
11547 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000011548 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000011549 need_lib_prefix=no
11550 library_names_spec='$libname${shared_ext} $libname.a'
11551 dynamic_linker='OS/2 ld.exe'
11552 shlibpath_var=LIBPATH
11553 ;;
11554
11555osf3* | osf4* | osf5*)
11556 version_type=osf
11557 need_lib_prefix=no
11558 need_version=no
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11561 shlibpath_var=LD_LIBRARY_PATH
11562 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11563 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11564 ;;
11565
11566sco3.2v5*)
11567 version_type=osf
11568 soname_spec='${libname}${release}${shared_ext}$major'
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 shlibpath_var=LD_LIBRARY_PATH
11571 ;;
11572
11573solaris*)
11574 version_type=linux
11575 need_lib_prefix=no
11576 need_version=no
11577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11578 soname_spec='${libname}${release}${shared_ext}$major'
11579 shlibpath_var=LD_LIBRARY_PATH
11580 shlibpath_overrides_runpath=yes
11581 hardcode_into_libs=yes
11582 # ldd complains unless libraries are executable
11583 postinstall_cmds='chmod +x $lib'
11584 ;;
11585
11586sunos4*)
11587 version_type=sunos
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11589 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11590 shlibpath_var=LD_LIBRARY_PATH
11591 shlibpath_overrides_runpath=yes
11592 if test "$with_gnu_ld" = yes; then
11593 need_lib_prefix=no
11594 fi
11595 need_version=yes
11596 ;;
11597
11598sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11599 version_type=linux
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 shlibpath_var=LD_LIBRARY_PATH
11603 case $host_vendor in
11604 sni)
11605 shlibpath_overrides_runpath=no
11606 need_lib_prefix=no
11607 export_dynamic_flag_spec='${wl}-Blargedynsym'
11608 runpath_var=LD_RUN_PATH
11609 ;;
11610 siemens)
11611 need_lib_prefix=no
11612 ;;
11613 motorola)
11614 need_lib_prefix=no
11615 need_version=no
11616 shlibpath_overrides_runpath=no
11617 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11618 ;;
11619 esac
11620 ;;
11621
11622sysv4*MP*)
11623 if test -d /usr/nec ;then
11624 version_type=linux
11625 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11626 soname_spec='$libname${shared_ext}.$major'
11627 shlibpath_var=LD_LIBRARY_PATH
11628 fi
11629 ;;
11630
11631uts4*)
11632 version_type=linux
11633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11634 soname_spec='${libname}${release}${shared_ext}$major'
11635 shlibpath_var=LD_LIBRARY_PATH
11636 ;;
11637
11638*)
11639 dynamic_linker=no
11640 ;;
11641esac
11642echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11643echo "${ECHO_T}$dynamic_linker" >&6
11644test "$dynamic_linker" = no && can_build_shared=no
11645
Reid Spencer2706f8c2004-09-19 23:53:36 +000011646echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11647echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11648hardcode_action_CXX=
11649if test -n "$hardcode_libdir_flag_spec_CXX" || \
11650 test -n "$runpath_var_CXX" || \
11651 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11652
11653 # We can hardcode non-existant directories.
11654 if test "$hardcode_direct_CXX" != no &&
11655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11656 # have to relink, otherwise we might link with an installed library
11657 # when we should be linking with a yet-to-be-installed one
11658 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11659 test "$hardcode_minus_L_CXX" != no; then
11660 # Linking always hardcodes the temporary library directory.
11661 hardcode_action_CXX=relink
11662 else
11663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11664 hardcode_action_CXX=immediate
11665 fi
11666else
11667 # We cannot hardcode anything, or else we can only hardcode existing
11668 # directories.
11669 hardcode_action_CXX=unsupported
11670fi
11671echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11672echo "${ECHO_T}$hardcode_action_CXX" >&6
11673
11674if test "$hardcode_action_CXX" = relink; then
11675 # Fast installation is not supported
11676 enable_fast_install=no
11677elif test "$shlibpath_overrides_runpath" = yes ||
11678 test "$enable_shared" = no; then
11679 # Fast installation is not necessary
11680 enable_fast_install=needless
11681fi
11682
11683striplib=
11684old_striplib=
11685echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11686echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11687if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11688 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11689 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11690 echo "$as_me:$LINENO: result: yes" >&5
11691echo "${ECHO_T}yes" >&6
11692else
11693# FIXME - insert some real tests, host_os isn't really good enough
11694 case $host_os in
11695 darwin*)
11696 if test -n "$STRIP" ; then
11697 striplib="$STRIP -x"
11698 echo "$as_me:$LINENO: result: yes" >&5
11699echo "${ECHO_T}yes" >&6
11700 else
11701 echo "$as_me:$LINENO: result: no" >&5
11702echo "${ECHO_T}no" >&6
11703fi
11704 ;;
11705 *)
11706 echo "$as_me:$LINENO: result: no" >&5
11707echo "${ECHO_T}no" >&6
11708 ;;
11709 esac
11710fi
11711
John Criswell47fdd832003-07-14 16:52:07 +000011712if test "x$enable_dlopen" != xyes; then
11713 enable_dlopen=unknown
11714 enable_dlopen_self=unknown
11715 enable_dlopen_self_static=unknown
11716else
11717 lt_cv_dlopen=no
11718 lt_cv_dlopen_libs=
11719
11720 case $host_os in
11721 beos*)
11722 lt_cv_dlopen="load_add_on"
11723 lt_cv_dlopen_libs=
11724 lt_cv_dlopen_self=yes
11725 ;;
11726
11727 mingw* | pw32*)
11728 lt_cv_dlopen="LoadLibrary"
11729 lt_cv_dlopen_libs=
11730 ;;
11731
11732 cygwin*)
11733 lt_cv_dlopen="dlopen"
11734 lt_cv_dlopen_libs=
11735 ;;
11736
11737 darwin*)
11738 # if libdl is installed we need to link against it
11739 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11740echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11741if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11743else
11744 ac_check_lib_save_LIBS=$LIBS
11745LIBS="-ldl $LIBS"
11746cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011747/* confdefs.h. */
11748_ACEOF
11749cat confdefs.h >>conftest.$ac_ext
11750cat >>conftest.$ac_ext <<_ACEOF
11751/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011752
11753/* Override any gcc2 internal prototype to avoid an error. */
11754#ifdef __cplusplus
11755extern "C"
11756#endif
11757/* We use char because int might match the return type of a gcc2
11758 builtin and then its argument prototype would still apply. */
11759char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011760int
11761main ()
11762{
11763dlopen ();
11764 ;
11765 return 0;
11766}
11767_ACEOF
11768rm -f conftest.$ac_objext conftest$ac_exeext
11769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011770 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011771 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011772 grep -v '^ *+' conftest.er1 >conftest.err
11773 rm -f conftest.er1
11774 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11776 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011777 { ac_try='test -z "$ac_cxx_werror_flag"
11778 || test ! -s conftest.err'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; } &&
11784 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11786 (eval $ac_try) 2>&5
11787 ac_status=$?
11788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11789 (exit $ac_status); }; }; then
11790 ac_cv_lib_dl_dlopen=yes
11791else
11792 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011793sed 's/^/| /' conftest.$ac_ext >&5
11794
John Criswell47fdd832003-07-14 16:52:07 +000011795ac_cv_lib_dl_dlopen=no
11796fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011797rm -f conftest.err conftest.$ac_objext \
11798 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011799LIBS=$ac_check_lib_save_LIBS
11800fi
11801echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11802echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11803if test $ac_cv_lib_dl_dlopen = yes; then
11804 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11805else
11806
11807 lt_cv_dlopen="dyld"
11808 lt_cv_dlopen_libs=
11809 lt_cv_dlopen_self=yes
11810
11811fi
11812
11813 ;;
11814
11815 *)
11816 echo "$as_me:$LINENO: checking for shl_load" >&5
11817echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11818if test "${ac_cv_func_shl_load+set}" = set; then
11819 echo $ECHO_N "(cached) $ECHO_C" >&6
11820else
11821 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011822/* confdefs.h. */
11823_ACEOF
11824cat confdefs.h >>conftest.$ac_ext
11825cat >>conftest.$ac_ext <<_ACEOF
11826/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011827/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11829#define shl_load innocuous_shl_load
11830
John Criswell47fdd832003-07-14 16:52:07 +000011831/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011832 which can conflict with char shl_load (); below.
11833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11834 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011835
John Criswell0c38eaf2003-09-10 15:17:25 +000011836#ifdef __STDC__
11837# include <limits.h>
11838#else
11839# include <assert.h>
11840#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000011841
11842#undef shl_load
11843
John Criswell47fdd832003-07-14 16:52:07 +000011844/* Override any gcc2 internal prototype to avoid an error. */
11845#ifdef __cplusplus
11846extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011847{
John Criswell47fdd832003-07-14 16:52:07 +000011848#endif
11849/* We use char because int might match the return type of a gcc2
11850 builtin and then its argument prototype would still apply. */
11851char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011852/* The GNU C library defines this for functions which it implements
11853 to always fail with ENOSYS. Some functions are actually named
11854 something starting with __ and the normal name is an alias. */
11855#if defined (__stub_shl_load) || defined (__stub___shl_load)
11856choke me
11857#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011858char (*f) () = shl_load;
11859#endif
11860#ifdef __cplusplus
11861}
John Criswell47fdd832003-07-14 16:52:07 +000011862#endif
11863
John Criswell0c38eaf2003-09-10 15:17:25 +000011864int
11865main ()
11866{
11867return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011868 ;
11869 return 0;
11870}
11871_ACEOF
11872rm -f conftest.$ac_objext conftest$ac_exeext
11873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011874 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011875 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011881 { ac_try='test -z "$ac_cxx_werror_flag"
11882 || test ! -s conftest.err'
11883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11884 (eval $ac_try) 2>&5
11885 ac_status=$?
11886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887 (exit $ac_status); }; } &&
11888 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11890 (eval $ac_try) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11894 ac_cv_func_shl_load=yes
11895else
11896 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011897sed 's/^/| /' conftest.$ac_ext >&5
11898
John Criswell47fdd832003-07-14 16:52:07 +000011899ac_cv_func_shl_load=no
11900fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011901rm -f conftest.err conftest.$ac_objext \
11902 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011903fi
11904echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11905echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11906if test $ac_cv_func_shl_load = yes; then
11907 lt_cv_dlopen="shl_load"
11908else
11909 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11910echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11911if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913else
11914 ac_check_lib_save_LIBS=$LIBS
11915LIBS="-ldld $LIBS"
11916cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011917/* confdefs.h. */
11918_ACEOF
11919cat confdefs.h >>conftest.$ac_ext
11920cat >>conftest.$ac_ext <<_ACEOF
11921/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011922
11923/* Override any gcc2 internal prototype to avoid an error. */
11924#ifdef __cplusplus
11925extern "C"
11926#endif
11927/* We use char because int might match the return type of a gcc2
11928 builtin and then its argument prototype would still apply. */
11929char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011930int
11931main ()
11932{
11933shl_load ();
11934 ;
11935 return 0;
11936}
11937_ACEOF
11938rm -f conftest.$ac_objext conftest$ac_exeext
11939if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011940 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011941 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011942 grep -v '^ *+' conftest.er1 >conftest.err
11943 rm -f conftest.er1
11944 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011947 { ac_try='test -z "$ac_cxx_werror_flag"
11948 || test ! -s conftest.err'
11949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11950 (eval $ac_try) 2>&5
11951 ac_status=$?
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); }; } &&
11954 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11956 (eval $ac_try) 2>&5
11957 ac_status=$?
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); }; }; then
11960 ac_cv_lib_dld_shl_load=yes
11961else
11962 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011963sed 's/^/| /' conftest.$ac_ext >&5
11964
John Criswell47fdd832003-07-14 16:52:07 +000011965ac_cv_lib_dld_shl_load=no
11966fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011967rm -f conftest.err conftest.$ac_objext \
11968 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011969LIBS=$ac_check_lib_save_LIBS
11970fi
11971echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11972echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11973if test $ac_cv_lib_dld_shl_load = yes; then
11974 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11975else
11976 echo "$as_me:$LINENO: checking for dlopen" >&5
11977echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11978if test "${ac_cv_func_dlopen+set}" = set; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11980else
11981 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011982/* confdefs.h. */
11983_ACEOF
11984cat confdefs.h >>conftest.$ac_ext
11985cat >>conftest.$ac_ext <<_ACEOF
11986/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011987/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11989#define dlopen innocuous_dlopen
11990
John Criswell47fdd832003-07-14 16:52:07 +000011991/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011992 which can conflict with char dlopen (); below.
11993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11994 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011995
John Criswell0c38eaf2003-09-10 15:17:25 +000011996#ifdef __STDC__
11997# include <limits.h>
11998#else
11999# include <assert.h>
12000#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000012001
12002#undef dlopen
12003
John Criswell47fdd832003-07-14 16:52:07 +000012004/* Override any gcc2 internal prototype to avoid an error. */
12005#ifdef __cplusplus
12006extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000012007{
John Criswell47fdd832003-07-14 16:52:07 +000012008#endif
12009/* We use char because int might match the return type of a gcc2
12010 builtin and then its argument prototype would still apply. */
12011char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012012/* The GNU C library defines this for functions which it implements
12013 to always fail with ENOSYS. Some functions are actually named
12014 something starting with __ and the normal name is an alias. */
12015#if defined (__stub_dlopen) || defined (__stub___dlopen)
12016choke me
12017#else
John Criswell0c38eaf2003-09-10 15:17:25 +000012018char (*f) () = dlopen;
12019#endif
12020#ifdef __cplusplus
12021}
John Criswell47fdd832003-07-14 16:52:07 +000012022#endif
12023
John Criswell0c38eaf2003-09-10 15:17:25 +000012024int
12025main ()
12026{
12027return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000012028 ;
12029 return 0;
12030}
12031_ACEOF
12032rm -f conftest.$ac_objext conftest$ac_exeext
12033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012034 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012035 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012036 grep -v '^ *+' conftest.er1 >conftest.err
12037 rm -f conftest.er1
12038 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012041 { ac_try='test -z "$ac_cxx_werror_flag"
12042 || test ! -s conftest.err'
12043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044 (eval $ac_try) 2>&5
12045 ac_status=$?
12046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047 (exit $ac_status); }; } &&
12048 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12050 (eval $ac_try) 2>&5
12051 ac_status=$?
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); }; }; then
12054 ac_cv_func_dlopen=yes
12055else
12056 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012057sed 's/^/| /' conftest.$ac_ext >&5
12058
John Criswell47fdd832003-07-14 16:52:07 +000012059ac_cv_func_dlopen=no
12060fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012061rm -f conftest.err conftest.$ac_objext \
12062 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012063fi
12064echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12065echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12066if test $ac_cv_func_dlopen = yes; then
12067 lt_cv_dlopen="dlopen"
12068else
12069 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12070echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12071if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12072 echo $ECHO_N "(cached) $ECHO_C" >&6
12073else
12074 ac_check_lib_save_LIBS=$LIBS
12075LIBS="-ldl $LIBS"
12076cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012077/* confdefs.h. */
12078_ACEOF
12079cat confdefs.h >>conftest.$ac_ext
12080cat >>conftest.$ac_ext <<_ACEOF
12081/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012082
12083/* Override any gcc2 internal prototype to avoid an error. */
12084#ifdef __cplusplus
12085extern "C"
12086#endif
12087/* We use char because int might match the return type of a gcc2
12088 builtin and then its argument prototype would still apply. */
12089char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012090int
12091main ()
12092{
12093dlopen ();
12094 ;
12095 return 0;
12096}
12097_ACEOF
12098rm -f conftest.$ac_objext conftest$ac_exeext
12099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012100 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012101 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012102 grep -v '^ *+' conftest.er1 >conftest.err
12103 rm -f conftest.er1
12104 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12106 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012107 { ac_try='test -z "$ac_cxx_werror_flag"
12108 || test ! -s conftest.err'
12109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12110 (eval $ac_try) 2>&5
12111 ac_status=$?
12112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113 (exit $ac_status); }; } &&
12114 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116 (eval $ac_try) 2>&5
12117 ac_status=$?
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; }; then
12120 ac_cv_lib_dl_dlopen=yes
12121else
12122 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012123sed 's/^/| /' conftest.$ac_ext >&5
12124
John Criswell47fdd832003-07-14 16:52:07 +000012125ac_cv_lib_dl_dlopen=no
12126fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012127rm -f conftest.err conftest.$ac_objext \
12128 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012129LIBS=$ac_check_lib_save_LIBS
12130fi
12131echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12132echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12133if test $ac_cv_lib_dl_dlopen = yes; then
12134 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12135else
12136 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12137echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12138if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12139 echo $ECHO_N "(cached) $ECHO_C" >&6
12140else
12141 ac_check_lib_save_LIBS=$LIBS
12142LIBS="-lsvld $LIBS"
12143cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012144/* confdefs.h. */
12145_ACEOF
12146cat confdefs.h >>conftest.$ac_ext
12147cat >>conftest.$ac_ext <<_ACEOF
12148/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012149
12150/* Override any gcc2 internal prototype to avoid an error. */
12151#ifdef __cplusplus
12152extern "C"
12153#endif
12154/* We use char because int might match the return type of a gcc2
12155 builtin and then its argument prototype would still apply. */
12156char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012157int
12158main ()
12159{
12160dlopen ();
12161 ;
12162 return 0;
12163}
12164_ACEOF
12165rm -f conftest.$ac_objext conftest$ac_exeext
12166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012167 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012168 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012169 grep -v '^ *+' conftest.er1 >conftest.err
12170 rm -f conftest.er1
12171 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012174 { ac_try='test -z "$ac_cxx_werror_flag"
12175 || test ! -s conftest.err'
12176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12177 (eval $ac_try) 2>&5
12178 ac_status=$?
12179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12180 (exit $ac_status); }; } &&
12181 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12183 (eval $ac_try) 2>&5
12184 ac_status=$?
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); }; }; then
12187 ac_cv_lib_svld_dlopen=yes
12188else
12189 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012190sed 's/^/| /' conftest.$ac_ext >&5
12191
John Criswell47fdd832003-07-14 16:52:07 +000012192ac_cv_lib_svld_dlopen=no
12193fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012194rm -f conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012196LIBS=$ac_check_lib_save_LIBS
12197fi
12198echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12199echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12200if test $ac_cv_lib_svld_dlopen = yes; then
12201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12202else
12203 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12204echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12205if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12206 echo $ECHO_N "(cached) $ECHO_C" >&6
12207else
12208 ac_check_lib_save_LIBS=$LIBS
12209LIBS="-ldld $LIBS"
12210cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012211/* confdefs.h. */
12212_ACEOF
12213cat confdefs.h >>conftest.$ac_ext
12214cat >>conftest.$ac_ext <<_ACEOF
12215/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012216
12217/* Override any gcc2 internal prototype to avoid an error. */
12218#ifdef __cplusplus
12219extern "C"
12220#endif
12221/* We use char because int might match the return type of a gcc2
12222 builtin and then its argument prototype would still apply. */
12223char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012224int
12225main ()
12226{
12227dld_link ();
12228 ;
12229 return 0;
12230}
12231_ACEOF
12232rm -f conftest.$ac_objext conftest$ac_exeext
12233if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012234 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012235 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012236 grep -v '^ *+' conftest.er1 >conftest.err
12237 rm -f conftest.er1
12238 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12240 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012241 { ac_try='test -z "$ac_cxx_werror_flag"
12242 || test ! -s conftest.err'
12243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12244 (eval $ac_try) 2>&5
12245 ac_status=$?
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); }; } &&
12248 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12250 (eval $ac_try) 2>&5
12251 ac_status=$?
12252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12253 (exit $ac_status); }; }; then
12254 ac_cv_lib_dld_dld_link=yes
12255else
12256 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012257sed 's/^/| /' conftest.$ac_ext >&5
12258
John Criswell47fdd832003-07-14 16:52:07 +000012259ac_cv_lib_dld_dld_link=no
12260fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012261rm -f conftest.err conftest.$ac_objext \
12262 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012263LIBS=$ac_check_lib_save_LIBS
12264fi
12265echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12266echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12267if test $ac_cv_lib_dld_dld_link = yes; then
12268 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12269fi
12270
12271
12272fi
12273
12274
12275fi
12276
12277
12278fi
12279
12280
12281fi
12282
12283
12284fi
12285
12286 ;;
12287 esac
12288
12289 if test "x$lt_cv_dlopen" != xno; then
12290 enable_dlopen=yes
12291 else
12292 enable_dlopen=no
12293 fi
12294
12295 case $lt_cv_dlopen in
12296 dlopen)
12297 save_CPPFLAGS="$CPPFLAGS"
12298 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12299
12300 save_LDFLAGS="$LDFLAGS"
12301 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12302
12303 save_LIBS="$LIBS"
12304 LIBS="$lt_cv_dlopen_libs $LIBS"
12305
12306 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12307echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12308if test "${lt_cv_dlopen_self+set}" = set; then
12309 echo $ECHO_N "(cached) $ECHO_C" >&6
12310else
12311 if test "$cross_compiling" = yes; then :
12312 lt_cv_dlopen_self=cross
12313else
12314 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12315 lt_status=$lt_dlunknown
12316 cat > conftest.$ac_ext <<EOF
Misha Brukman591edc62004-10-14 18:59:42 +000012317#line 12317 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012318#include "confdefs.h"
12319
12320#if HAVE_DLFCN_H
12321#include <dlfcn.h>
12322#endif
12323
12324#include <stdio.h>
12325
12326#ifdef RTLD_GLOBAL
12327# define LT_DLGLOBAL RTLD_GLOBAL
12328#else
12329# ifdef DL_GLOBAL
12330# define LT_DLGLOBAL DL_GLOBAL
12331# else
12332# define LT_DLGLOBAL 0
12333# endif
12334#endif
12335
12336/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12337 find out it does not work in some platform. */
12338#ifndef LT_DLLAZY_OR_NOW
12339# ifdef RTLD_LAZY
12340# define LT_DLLAZY_OR_NOW RTLD_LAZY
12341# else
12342# ifdef DL_LAZY
12343# define LT_DLLAZY_OR_NOW DL_LAZY
12344# else
12345# ifdef RTLD_NOW
12346# define LT_DLLAZY_OR_NOW RTLD_NOW
12347# else
12348# ifdef DL_NOW
12349# define LT_DLLAZY_OR_NOW DL_NOW
12350# else
12351# define LT_DLLAZY_OR_NOW 0
12352# endif
12353# endif
12354# endif
12355# endif
12356#endif
12357
12358#ifdef __cplusplus
12359extern "C" void exit (int);
12360#endif
12361
12362void fnord() { int i=42;}
12363int main ()
12364{
12365 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12366 int status = $lt_dlunknown;
12367
12368 if (self)
12369 {
12370 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12371 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12372 /* dlclose (self); */
12373 }
12374
12375 exit (status);
12376}
12377EOF
12378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12379 (eval $ac_link) 2>&5
12380 ac_status=$?
12381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12382 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12383 (./conftest; exit; ) 2>/dev/null
12384 lt_status=$?
12385 case x$lt_status in
12386 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12387 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12388 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12389 esac
12390 else :
12391 # compilation failed
12392 lt_cv_dlopen_self=no
12393 fi
12394fi
12395rm -fr conftest*
12396
12397
12398fi
12399echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12400echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12401
12402 if test "x$lt_cv_dlopen_self" = xyes; then
12403 LDFLAGS="$LDFLAGS $link_static_flag"
12404 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12405echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12406if test "${lt_cv_dlopen_self_static+set}" = set; then
12407 echo $ECHO_N "(cached) $ECHO_C" >&6
12408else
12409 if test "$cross_compiling" = yes; then :
12410 lt_cv_dlopen_self_static=cross
12411else
12412 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12413 lt_status=$lt_dlunknown
12414 cat > conftest.$ac_ext <<EOF
Misha Brukman591edc62004-10-14 18:59:42 +000012415#line 12415 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012416#include "confdefs.h"
12417
12418#if HAVE_DLFCN_H
12419#include <dlfcn.h>
12420#endif
12421
12422#include <stdio.h>
12423
12424#ifdef RTLD_GLOBAL
12425# define LT_DLGLOBAL RTLD_GLOBAL
12426#else
12427# ifdef DL_GLOBAL
12428# define LT_DLGLOBAL DL_GLOBAL
12429# else
12430# define LT_DLGLOBAL 0
12431# endif
12432#endif
12433
12434/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12435 find out it does not work in some platform. */
12436#ifndef LT_DLLAZY_OR_NOW
12437# ifdef RTLD_LAZY
12438# define LT_DLLAZY_OR_NOW RTLD_LAZY
12439# else
12440# ifdef DL_LAZY
12441# define LT_DLLAZY_OR_NOW DL_LAZY
12442# else
12443# ifdef RTLD_NOW
12444# define LT_DLLAZY_OR_NOW RTLD_NOW
12445# else
12446# ifdef DL_NOW
12447# define LT_DLLAZY_OR_NOW DL_NOW
12448# else
12449# define LT_DLLAZY_OR_NOW 0
12450# endif
12451# endif
12452# endif
12453# endif
12454#endif
12455
12456#ifdef __cplusplus
12457extern "C" void exit (int);
12458#endif
12459
12460void fnord() { int i=42;}
12461int main ()
12462{
12463 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12464 int status = $lt_dlunknown;
12465
12466 if (self)
12467 {
12468 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12469 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12470 /* dlclose (self); */
12471 }
12472
12473 exit (status);
12474}
12475EOF
12476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12477 (eval $ac_link) 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12481 (./conftest; exit; ) 2>/dev/null
12482 lt_status=$?
12483 case x$lt_status in
12484 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12485 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12486 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12487 esac
12488 else :
12489 # compilation failed
12490 lt_cv_dlopen_self_static=no
12491 fi
12492fi
12493rm -fr conftest*
12494
12495
12496fi
12497echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12498echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12499 fi
12500
12501 CPPFLAGS="$save_CPPFLAGS"
12502 LDFLAGS="$save_LDFLAGS"
12503 LIBS="$save_LIBS"
12504 ;;
12505 esac
12506
12507 case $lt_cv_dlopen_self in
12508 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12509 *) enable_dlopen_self=unknown ;;
12510 esac
12511
12512 case $lt_cv_dlopen_self_static in
12513 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12514 *) enable_dlopen_self_static=unknown ;;
12515 esac
12516fi
12517
12518
12519# The else clause should only fire when bootstrapping the
12520# libtool distribution, otherwise you forgot to ship ltmain.sh
12521# with your package, and you will get complaints that there are
12522# no rules to generate ltmain.sh.
12523if test -f "$ltmain"; then
12524 # See if we are running on zsh, and set the options which allow our commands through
12525 # without removal of \ escapes.
12526 if test -n "${ZSH_VERSION+set}" ; then
12527 setopt NO_GLOB_SUBST
12528 fi
12529 # Now quote all the things that may contain metacharacters while being
12530 # careful not to overquote the AC_SUBSTed values. We take copies of the
12531 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012532 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12533 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000012534 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12535 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12536 deplibs_check_method reload_flag reload_cmds need_locks \
12537 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12538 lt_cv_sys_global_symbol_to_c_name_address \
12539 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12540 old_postinstall_cmds old_postuninstall_cmds \
12541 compiler_CXX \
12542 CC_CXX \
12543 LD_CXX \
12544 lt_prog_compiler_wl_CXX \
12545 lt_prog_compiler_pic_CXX \
12546 lt_prog_compiler_static_CXX \
12547 lt_prog_compiler_no_builtin_flag_CXX \
12548 export_dynamic_flag_spec_CXX \
12549 thread_safe_flag_spec_CXX \
12550 whole_archive_flag_spec_CXX \
12551 enable_shared_with_static_runtimes_CXX \
12552 old_archive_cmds_CXX \
12553 old_archive_from_new_cmds_CXX \
12554 predep_objects_CXX \
12555 postdep_objects_CXX \
12556 predeps_CXX \
12557 postdeps_CXX \
12558 compiler_lib_search_path_CXX \
12559 archive_cmds_CXX \
12560 archive_expsym_cmds_CXX \
12561 postinstall_cmds_CXX \
12562 postuninstall_cmds_CXX \
12563 old_archive_from_expsyms_cmds_CXX \
12564 allow_undefined_flag_CXX \
12565 no_undefined_flag_CXX \
12566 export_symbols_cmds_CXX \
12567 hardcode_libdir_flag_spec_CXX \
12568 hardcode_libdir_flag_spec_ld_CXX \
12569 hardcode_libdir_separator_CXX \
12570 hardcode_automatic_CXX \
12571 module_cmds_CXX \
12572 module_expsym_cmds_CXX \
12573 lt_cv_prog_compiler_c_o_CXX \
12574 exclude_expsyms_CXX \
12575 include_expsyms_CXX; do
12576
12577 case $var in
12578 old_archive_cmds_CXX | \
12579 old_archive_from_new_cmds_CXX | \
12580 archive_cmds_CXX | \
12581 archive_expsym_cmds_CXX | \
12582 module_cmds_CXX | \
12583 module_expsym_cmds_CXX | \
12584 old_archive_from_expsyms_cmds_CXX | \
12585 export_symbols_cmds_CXX | \
12586 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12587 postinstall_cmds | postuninstall_cmds | \
12588 old_postinstall_cmds | old_postuninstall_cmds | \
12589 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12590 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012591 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 +000012592 ;;
12593 *)
12594 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12595 ;;
12596 esac
12597 done
12598
12599 case $lt_echo in
12600 *'\$0 --fallback-echo"')
12601 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12602 ;;
12603 esac
12604
12605cfgfile="$ofile"
12606
12607 cat <<__EOF__ >> "$cfgfile"
12608# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12609
12610# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12611
12612# Shell to use when invoking shell scripts.
12613SHELL=$lt_SHELL
12614
12615# Whether or not to build shared libraries.
12616build_libtool_libs=$enable_shared
12617
12618# Whether or not to build static libraries.
12619build_old_libs=$enable_static
12620
12621# Whether or not to add -lc for building shared libraries.
12622build_libtool_need_lc=$archive_cmds_need_lc_CXX
12623
12624# Whether or not to disallow shared libs when runtime libs are static
12625allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12626
12627# Whether or not to optimize for fast installation.
12628fast_install=$enable_fast_install
12629
12630# The host system.
12631host_alias=$host_alias
12632host=$host
12633
12634# An echo program that does not interpret backslashes.
12635echo=$lt_echo
12636
12637# The archiver.
12638AR=$lt_AR
12639AR_FLAGS=$lt_AR_FLAGS
12640
12641# A C compiler.
12642LTCC=$lt_LTCC
12643
12644# A language-specific compiler.
12645CC=$lt_compiler_CXX
12646
12647# Is the compiler the GNU C compiler?
12648with_gcc=$GCC_CXX
12649
12650# An ERE matcher.
12651EGREP=$lt_EGREP
12652
12653# The linker used to build libraries.
12654LD=$lt_LD_CXX
12655
12656# Whether we need hard or soft links.
12657LN_S=$lt_LN_S
12658
12659# A BSD-compatible nm program.
12660NM=$lt_NM
12661
12662# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000012663STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000012664
12665# Used to examine libraries when file_magic_cmd begins "file"
12666MAGIC_CMD=$MAGIC_CMD
12667
12668# Used on cygwin: DLL creation program.
12669DLLTOOL="$DLLTOOL"
12670
12671# Used on cygwin: object dumper.
12672OBJDUMP="$OBJDUMP"
12673
12674# Used on cygwin: assembler.
12675AS="$AS"
12676
12677# The name of the directory that contains temporary libtool files.
12678objdir=$objdir
12679
12680# How to create reloadable object files.
12681reload_flag=$lt_reload_flag
12682reload_cmds=$lt_reload_cmds
12683
12684# How to pass a linker flag through the compiler.
12685wl=$lt_lt_prog_compiler_wl_CXX
12686
12687# Object file suffix (normally "o").
12688objext="$ac_objext"
12689
12690# Old archive suffix (normally "a").
12691libext="$libext"
12692
12693# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000012694shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000012695
12696# Executable file suffix (normally "").
12697exeext="$exeext"
12698
12699# Additional compiler flags for building library objects.
12700pic_flag=$lt_lt_prog_compiler_pic_CXX
12701pic_mode=$pic_mode
12702
12703# What is the maximum length of a command?
12704max_cmd_len=$lt_cv_sys_max_cmd_len
12705
12706# Does compiler simultaneously support -c and -o options?
12707compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12708
12709# Must we lock files when doing compilation ?
12710need_locks=$lt_need_locks
12711
12712# Do we need the lib prefix for modules?
12713need_lib_prefix=$need_lib_prefix
12714
12715# Do we need a version for libraries?
12716need_version=$need_version
12717
12718# Whether dlopen is supported.
12719dlopen_support=$enable_dlopen
12720
12721# Whether dlopen of programs is supported.
12722dlopen_self=$enable_dlopen_self
12723
12724# Whether dlopen of statically linked programs is supported.
12725dlopen_self_static=$enable_dlopen_self_static
12726
12727# Compiler flag to prevent dynamic linking.
12728link_static_flag=$lt_lt_prog_compiler_static_CXX
12729
12730# Compiler flag to turn off builtin functions.
12731no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12732
12733# Compiler flag to allow reflexive dlopens.
12734export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12735
12736# Compiler flag to generate shared objects directly from archives.
12737whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12738
12739# Compiler flag to generate thread-safe objects.
12740thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12741
12742# Library versioning type.
12743version_type=$version_type
12744
12745# Format of library name prefix.
12746libname_spec=$lt_libname_spec
12747
12748# List of archive names. First name is the real one, the rest are links.
12749# The last name is the one that the linker finds with -lNAME.
12750library_names_spec=$lt_library_names_spec
12751
12752# The coded name of the library, if different from the real name.
12753soname_spec=$lt_soname_spec
12754
12755# Commands used to build and install an old-style archive.
12756RANLIB=$lt_RANLIB
12757old_archive_cmds=$lt_old_archive_cmds_CXX
12758old_postinstall_cmds=$lt_old_postinstall_cmds
12759old_postuninstall_cmds=$lt_old_postuninstall_cmds
12760
12761# Create an old-style archive from a shared archive.
12762old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12763
12764# Create a temporary old-style archive to link instead of a shared archive.
12765old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12766
12767# Commands used to build and install a shared archive.
12768archive_cmds=$lt_archive_cmds_CXX
12769archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12770postinstall_cmds=$lt_postinstall_cmds
12771postuninstall_cmds=$lt_postuninstall_cmds
12772
12773# Commands used to build a loadable module (assumed same as above if empty)
12774module_cmds=$lt_module_cmds_CXX
12775module_expsym_cmds=$lt_module_expsym_cmds_CXX
12776
12777# Commands to strip libraries.
12778old_striplib=$lt_old_striplib
12779striplib=$lt_striplib
12780
12781# Dependencies to place before the objects being linked to create a
12782# shared library.
12783predep_objects=$lt_predep_objects_CXX
12784
12785# Dependencies to place after the objects being linked to create a
12786# shared library.
12787postdep_objects=$lt_postdep_objects_CXX
12788
12789# Dependencies to place before the objects being linked to create a
12790# shared library.
12791predeps=$lt_predeps_CXX
12792
12793# Dependencies to place after the objects being linked to create a
12794# shared library.
12795postdeps=$lt_postdeps_CXX
12796
12797# The library search path used internally by the compiler when linking
12798# a shared library.
12799compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12800
12801# Method to check whether dependent libraries are shared objects.
12802deplibs_check_method=$lt_deplibs_check_method
12803
12804# Command to use when deplibs_check_method == file_magic.
12805file_magic_cmd=$lt_file_magic_cmd
12806
12807# Flag that allows shared libraries with undefined symbols to be built.
12808allow_undefined_flag=$lt_allow_undefined_flag_CXX
12809
12810# Flag that forces no undefined symbols.
12811no_undefined_flag=$lt_no_undefined_flag_CXX
12812
12813# Commands used to finish a libtool library installation in a directory.
12814finish_cmds=$lt_finish_cmds
12815
12816# Same as above, but a single script fragment to be evaled but not shown.
12817finish_eval=$lt_finish_eval
12818
12819# Take the output of nm and produce a listing of raw symbols and C names.
12820global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12821
12822# Transform the output of nm in a proper C declaration
12823global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12824
12825# Transform the output of nm in a C name address pair
12826global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12827
12828# This is the shared library runtime path variable.
12829runpath_var=$runpath_var
12830
12831# This is the shared library path variable.
12832shlibpath_var=$shlibpath_var
12833
12834# Is shlibpath searched before the hard-coded library search path?
12835shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12836
12837# How to hardcode a shared library path into an executable.
12838hardcode_action=$hardcode_action_CXX
12839
12840# Whether we should hardcode library paths into libraries.
12841hardcode_into_libs=$hardcode_into_libs
12842
12843# Flag to hardcode \$libdir into a binary during linking.
12844# This must work even if \$libdir does not exist.
12845hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12846
12847# If ld is used when linking, flag to hardcode \$libdir into
12848# a binary during linking. This must work even if \$libdir does
12849# not exist.
12850hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12851
12852# Whether we need a single -rpath flag with a separated argument.
12853hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12854
12855# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12856# resulting binary.
12857hardcode_direct=$hardcode_direct_CXX
12858
12859# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12860# resulting binary.
12861hardcode_minus_L=$hardcode_minus_L_CXX
12862
12863# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12864# the resulting binary.
12865hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12866
12867# Set to yes if building a shared library automatically hardcodes DIR into the library
12868# and all subsequent libraries and executables linked against it.
12869hardcode_automatic=$hardcode_automatic_CXX
12870
12871# Variables whose values should be saved in libtool wrapper scripts and
12872# restored at relink time.
12873variables_saved_for_relink="$variables_saved_for_relink"
12874
12875# Whether libtool must link a program against all its dependency libraries.
12876link_all_deplibs=$link_all_deplibs_CXX
12877
12878# Compile-time system search path for libraries
12879sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12880
12881# Run-time system search path for libraries
12882sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12883
12884# Fix the shell variable \$srcfile for the compiler.
12885fix_srcfile_path="$fix_srcfile_path_CXX"
12886
12887# Set to yes if exported symbols are required.
12888always_export_symbols=$always_export_symbols_CXX
12889
12890# The commands to list exported symbols.
12891export_symbols_cmds=$lt_export_symbols_cmds_CXX
12892
12893# The commands to extract the exported symbol list from a shared archive.
12894extract_expsyms_cmds=$lt_extract_expsyms_cmds
12895
12896# Symbols that should not be listed in the preloaded symbols.
12897exclude_expsyms=$lt_exclude_expsyms_CXX
12898
12899# Symbols that must always be exported.
12900include_expsyms=$lt_include_expsyms_CXX
12901
12902# ### END LIBTOOL TAG CONFIG: $tagname
12903
12904__EOF__
12905
12906
12907else
12908 # If there is no Makefile yet, we rely on a make rule to execute
12909 # `config.status --recheck' to rerun these tests and create the
12910 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012911 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12912 if test -f "$ltmain_in"; then
12913 test -f Makefile && make "$ltmain"
12914 fi
John Criswell47fdd832003-07-14 16:52:07 +000012915fi
12916
12917
12918ac_ext=c
12919ac_cpp='$CPP $CPPFLAGS'
12920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12922ac_compiler_gnu=$ac_cv_c_compiler_gnu
12923
12924CC=$lt_save_CC
12925LDCXX=$LD
12926LD=$lt_save_LD
12927GCC=$lt_save_GCC
12928with_gnu_ldcxx=$with_gnu_ld
12929with_gnu_ld=$lt_save_with_gnu_ld
12930lt_cv_path_LDCXX=$lt_cv_path_LD
12931lt_cv_path_LD=$lt_save_path_LD
12932lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12933lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12934
12935 else
12936 tagname=""
12937 fi
12938 ;;
12939
12940 F77)
12941 if test -n "$F77" && test "X$F77" != "Xno"; then
12942
12943ac_ext=f
12944ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12945ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12946ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12947
12948
12949archive_cmds_need_lc_F77=no
12950allow_undefined_flag_F77=
12951always_export_symbols_F77=no
12952archive_expsym_cmds_F77=
12953export_dynamic_flag_spec_F77=
12954hardcode_direct_F77=no
12955hardcode_libdir_flag_spec_F77=
12956hardcode_libdir_flag_spec_ld_F77=
12957hardcode_libdir_separator_F77=
12958hardcode_minus_L_F77=no
12959hardcode_automatic_F77=no
12960module_cmds_F77=
12961module_expsym_cmds_F77=
12962link_all_deplibs_F77=unknown
12963old_archive_cmds_F77=$old_archive_cmds
12964no_undefined_flag_F77=
12965whole_archive_flag_spec_F77=
12966enable_shared_with_static_runtimes_F77=no
12967
12968# Source file extension for f77 test sources.
12969ac_ext=f
12970
12971# Object file extension for compiled f77 test sources.
12972objext=o
12973objext_F77=$objext
12974
12975# Code to be used in simple compile tests
12976lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12977
12978# Code to be used in simple link tests
12979lt_simple_link_test_code=" program t\n end\n"
12980
12981# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12982
12983# If no C compiler was specified, use CC.
12984LTCC=${LTCC-"$CC"}
12985
12986# Allow CC to be a program name with arguments.
12987compiler=$CC
12988
12989
12990# Allow CC to be a program name with arguments.
12991lt_save_CC="$CC"
12992CC=${F77-"f77"}
12993compiler=$CC
12994compiler_F77=$CC
12995cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12996
12997echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12998echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12999echo "$as_me:$LINENO: result: $can_build_shared" >&5
13000echo "${ECHO_T}$can_build_shared" >&6
13001
13002echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13003echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13004test "$can_build_shared" = "no" && enable_shared=no
13005
13006# On AIX, shared libraries and static libraries use the same namespace, and
13007# are all built from PIC.
13008case "$host_os" in
13009aix3*)
13010 test "$enable_shared" = yes && enable_static=no
13011 if test -n "$RANLIB"; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013012 archive_cmds="$archive_cmds~\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000013013 postinstall_cmds='$RANLIB $lib'
13014 fi
13015 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013016aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000013017 test "$enable_shared" = yes && enable_static=no
13018 ;;
13019esac
13020echo "$as_me:$LINENO: result: $enable_shared" >&5
13021echo "${ECHO_T}$enable_shared" >&6
13022
13023echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13024echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13025# Make sure either enable_shared or enable_static is yes.
13026test "$enable_shared" = yes || enable_static=yes
13027echo "$as_me:$LINENO: result: $enable_static" >&5
13028echo "${ECHO_T}$enable_static" >&6
13029
13030test "$ld_shlibs_F77" = no && can_build_shared=no
13031
13032GCC_F77="$G77"
13033LD_F77="$LD"
13034
13035lt_prog_compiler_wl_F77=
13036lt_prog_compiler_pic_F77=
13037lt_prog_compiler_static_F77=
13038
13039echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13040echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13041
13042 if test "$GCC" = yes; then
13043 lt_prog_compiler_wl_F77='-Wl,'
13044 lt_prog_compiler_static_F77='-static'
13045
13046 case $host_os in
13047 aix*)
13048 # All AIX code is PIC.
13049 if test "$host_cpu" = ia64; then
13050 # AIX 5 now supports IA64 processor
13051 lt_prog_compiler_static_F77='-Bstatic'
13052 fi
13053 ;;
13054
13055 amigaos*)
13056 # FIXME: we need at least 68020 code to build shared libraries, but
13057 # adding the `-m68020' flag to GCC prevents building anything better,
13058 # like `-m68040'.
13059 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13060 ;;
13061
13062 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13063 # PIC is the default for these OSes.
13064 ;;
13065
13066 mingw* | pw32* | os2*)
13067 # This hack is so that the source file can tell whether it is being
13068 # built for inclusion in a dll (and should export symbols for example).
13069 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13070 ;;
13071
13072 darwin* | rhapsody*)
13073 # PIC is the default on this platform
13074 # Common symbols not allowed in MH_DYLIB files
13075 lt_prog_compiler_pic_F77='-fno-common'
13076 ;;
13077
13078 msdosdjgpp*)
13079 # Just because we use GCC doesn't mean we suddenly get shared libraries
13080 # on systems that don't support them.
13081 lt_prog_compiler_can_build_shared_F77=no
13082 enable_shared=no
13083 ;;
13084
13085 sysv4*MP*)
13086 if test -d /usr/nec; then
13087 lt_prog_compiler_pic_F77=-Kconform_pic
13088 fi
13089 ;;
13090
13091 hpux*)
13092 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13093 # not for PA HP-UX.
13094 case "$host_cpu" in
13095 hppa*64*|ia64*)
13096 # +Z the default
13097 ;;
13098 *)
13099 lt_prog_compiler_pic_F77='-fPIC'
13100 ;;
13101 esac
13102 ;;
13103
13104 *)
13105 lt_prog_compiler_pic_F77='-fPIC'
13106 ;;
13107 esac
13108 else
13109 # PORTME Check for flag to pass linker flags through the system compiler.
13110 case $host_os in
13111 aix*)
13112 lt_prog_compiler_wl_F77='-Wl,'
13113 if test "$host_cpu" = ia64; then
13114 # AIX 5 now supports IA64 processor
13115 lt_prog_compiler_static_F77='-Bstatic'
13116 else
13117 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13118 fi
13119 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013120 darwin*)
13121 # PIC is the default on this platform
13122 # Common symbols not allowed in MH_DYLIB files
13123 case "$cc_basename" in
13124 xlc*)
13125 lt_prog_compiler_pic_F77='-qnocommon'
13126 lt_prog_compiler_wl_F77='-Wl,'
13127 ;;
13128 esac
13129 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013130
13131 mingw* | pw32* | os2*)
13132 # This hack is so that the source file can tell whether it is being
13133 # built for inclusion in a dll (and should export symbols for example).
13134 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13135 ;;
13136
13137 hpux9* | hpux10* | hpux11*)
13138 lt_prog_compiler_wl_F77='-Wl,'
13139 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13140 # not for PA HP-UX.
13141 case "$host_cpu" in
13142 hppa*64*|ia64*)
13143 # +Z the default
13144 ;;
13145 *)
13146 lt_prog_compiler_pic_F77='+Z'
13147 ;;
13148 esac
13149 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13150 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13151 ;;
13152
13153 irix5* | irix6* | nonstopux*)
13154 lt_prog_compiler_wl_F77='-Wl,'
13155 # PIC (with -KPIC) is the default.
13156 lt_prog_compiler_static_F77='-non_shared'
13157 ;;
13158
13159 newsos6)
13160 lt_prog_compiler_pic_F77='-KPIC'
13161 lt_prog_compiler_static_F77='-Bstatic'
13162 ;;
13163
13164 linux*)
13165 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013166 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000013167 lt_prog_compiler_wl_F77='-Wl,'
13168 lt_prog_compiler_pic_F77='-KPIC'
13169 lt_prog_compiler_static_F77='-static'
13170 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013171 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013172 lt_prog_compiler_wl_F77='-Wl,'
13173 # All Alpha code is PIC.
13174 lt_prog_compiler_static_F77='-non_shared'
13175 ;;
13176 esac
13177 ;;
13178
13179 osf3* | osf4* | osf5*)
13180 lt_prog_compiler_wl_F77='-Wl,'
13181 # All OSF/1 code is PIC.
13182 lt_prog_compiler_static_F77='-non_shared'
13183 ;;
13184
13185 sco3.2v5*)
13186 lt_prog_compiler_pic_F77='-Kpic'
13187 lt_prog_compiler_static_F77='-dn'
13188 ;;
13189
13190 solaris*)
13191 lt_prog_compiler_wl_F77='-Wl,'
13192 lt_prog_compiler_pic_F77='-KPIC'
13193 lt_prog_compiler_static_F77='-Bstatic'
13194 ;;
13195
13196 sunos4*)
13197 lt_prog_compiler_wl_F77='-Qoption ld '
13198 lt_prog_compiler_pic_F77='-PIC'
13199 lt_prog_compiler_static_F77='-Bstatic'
13200 ;;
13201
13202 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13203 lt_prog_compiler_wl_F77='-Wl,'
13204 lt_prog_compiler_pic_F77='-KPIC'
13205 lt_prog_compiler_static_F77='-Bstatic'
13206 ;;
13207
13208 sysv4*MP*)
13209 if test -d /usr/nec ;then
13210 lt_prog_compiler_pic_F77='-Kconform_pic'
13211 lt_prog_compiler_static_F77='-Bstatic'
13212 fi
13213 ;;
13214
13215 uts4*)
13216 lt_prog_compiler_pic_F77='-pic'
13217 lt_prog_compiler_static_F77='-Bstatic'
13218 ;;
13219
13220 *)
13221 lt_prog_compiler_can_build_shared_F77=no
13222 ;;
13223 esac
13224 fi
13225
13226echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13227echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13228
13229#
13230# Check to make sure the PIC flag actually works.
13231#
13232if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013233
13234echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013235echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13236if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13237 echo $ECHO_N "(cached) $ECHO_C" >&6
13238else
13239 lt_prog_compiler_pic_works_F77=no
13240 ac_outfile=conftest.$ac_objext
13241 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13242 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13243 # Insert the option either (1) after the last *FLAGS variable, or
13244 # (2) before a word containing "conftest.", or (3) at the end.
13245 # Note that $ac_compile itself does not contain backslashes and begins
13246 # with a dollar sign (not a hyphen), so the echo should work correctly.
13247 # The option is referenced via a variable to avoid confusing sed.
13248 lt_compile=`echo "$ac_compile" | $SED \
13249 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13250 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13251 -e 's:$: $lt_compiler_flag:'`
Misha Brukman591edc62004-10-14 18:59:42 +000013252 (eval echo "\"\$as_me:13252: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013253 (eval "$lt_compile" 2>conftest.err)
13254 ac_status=$?
13255 cat conftest.err >&5
Misha Brukman591edc62004-10-14 18:59:42 +000013256 echo "$as_me:13256: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013257 if (exit $ac_status) && test -s "$ac_outfile"; then
13258 # The compiler can only warn and ignore the option if not recognized
13259 # So say no if there are warnings
13260 if test ! -s conftest.err; then
13261 lt_prog_compiler_pic_works_F77=yes
13262 fi
13263 fi
13264 $rm conftest*
13265
13266fi
13267echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13268echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13269
13270if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13271 case $lt_prog_compiler_pic_F77 in
13272 "" | " "*) ;;
13273 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13274 esac
13275else
13276 lt_prog_compiler_pic_F77=
13277 lt_prog_compiler_can_build_shared_F77=no
13278fi
13279
13280fi
13281case "$host_os" in
13282 # For platforms which do not support PIC, -DPIC is meaningless:
13283 *djgpp*)
13284 lt_prog_compiler_pic_F77=
13285 ;;
13286 *)
13287 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13288 ;;
13289esac
13290
13291echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13292echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13293if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13295else
13296 lt_cv_prog_compiler_c_o_F77=no
13297 $rm -r conftest 2>/dev/null
13298 mkdir conftest
13299 cd conftest
13300 mkdir out
13301 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13302
John Criswell47fdd832003-07-14 16:52:07 +000013303 lt_compiler_flag="-o out/conftest2.$ac_objext"
13304 # Insert the option either (1) after the last *FLAGS variable, or
13305 # (2) before a word containing "conftest.", or (3) at the end.
13306 # Note that $ac_compile itself does not contain backslashes and begins
13307 # with a dollar sign (not a hyphen), so the echo should work correctly.
13308 lt_compile=`echo "$ac_compile" | $SED \
13309 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13310 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13311 -e 's:$: $lt_compiler_flag:'`
Misha Brukman591edc62004-10-14 18:59:42 +000013312 (eval echo "\"\$as_me:13312: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013313 (eval "$lt_compile" 2>out/conftest.err)
13314 ac_status=$?
13315 cat out/conftest.err >&5
Misha Brukman591edc62004-10-14 18:59:42 +000013316 echo "$as_me:13316: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013317 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13318 then
13319 # The compiler can only warn and ignore the option if not recognized
13320 # So say no if there are warnings
13321 if test ! -s out/conftest.err; then
13322 lt_cv_prog_compiler_c_o_F77=yes
13323 fi
13324 fi
13325 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000013326 $rm conftest*
13327 # SGI C++ compiler will create directory out/ii_files/ for
13328 # template instantiation
13329 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13330 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000013331 cd ..
13332 rmdir conftest
13333 $rm conftest*
13334
13335fi
13336echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13337echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13338
13339
13340hard_links="nottested"
13341if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13342 # do not overwrite the value of need_locks provided by the user
13343 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13344echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13345 hard_links=yes
13346 $rm conftest*
13347 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13348 touch conftest.a
13349 ln conftest.a conftest.b 2>&5 || hard_links=no
13350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13351 echo "$as_me:$LINENO: result: $hard_links" >&5
13352echo "${ECHO_T}$hard_links" >&6
13353 if test "$hard_links" = no; then
13354 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13355echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13356 need_locks=warn
13357 fi
13358else
13359 need_locks=no
13360fi
13361
13362echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13363echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13364
13365 runpath_var=
13366 allow_undefined_flag_F77=
13367 enable_shared_with_static_runtimes_F77=no
13368 archive_cmds_F77=
13369 archive_expsym_cmds_F77=
13370 old_archive_From_new_cmds_F77=
13371 old_archive_from_expsyms_cmds_F77=
13372 export_dynamic_flag_spec_F77=
13373 whole_archive_flag_spec_F77=
13374 thread_safe_flag_spec_F77=
13375 hardcode_libdir_flag_spec_F77=
13376 hardcode_libdir_flag_spec_ld_F77=
13377 hardcode_libdir_separator_F77=
13378 hardcode_direct_F77=no
13379 hardcode_minus_L_F77=no
13380 hardcode_shlibpath_var_F77=unsupported
13381 link_all_deplibs_F77=unknown
13382 hardcode_automatic_F77=no
13383 module_cmds_F77=
13384 module_expsym_cmds_F77=
13385 always_export_symbols_F77=no
13386 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13387 # include_expsyms should be a list of space-separated symbols to be *always*
13388 # included in the symbol list
13389 include_expsyms_F77=
13390 # exclude_expsyms can be an extended regexp of symbols to exclude
13391 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13392 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13393 # as well as any symbol that contains `d'.
13394 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13395 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13396 # platforms (ab)use it in PIC code, but their linkers get confused if
13397 # the symbol is explicitly referenced. Since portable code cannot
13398 # rely on this symbol name, it's probably fine to never include it in
13399 # preloaded symbol tables.
13400 extract_expsyms_cmds=
13401
13402 case $host_os in
13403 cygwin* | mingw* | pw32*)
13404 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13405 # When not using gcc, we currently assume that we are using
13406 # Microsoft Visual C++.
13407 if test "$GCC" != yes; then
13408 with_gnu_ld=no
13409 fi
13410 ;;
13411 openbsd*)
13412 with_gnu_ld=no
13413 ;;
13414 esac
13415
13416 ld_shlibs_F77=yes
13417 if test "$with_gnu_ld" = yes; then
13418 # If archive_cmds runs LD, not CC, wlarc should be empty
13419 wlarc='${wl}'
13420
13421 # See if GNU ld supports shared libraries.
13422 case $host_os in
13423 aix3* | aix4* | aix5*)
13424 # On AIX/PPC, the GNU linker is very broken
13425 if test "$host_cpu" != ia64; then
13426 ld_shlibs_F77=no
13427 cat <<EOF 1>&2
13428
13429*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13430*** to be unable to reliably create shared libraries on AIX.
13431*** Therefore, libtool is disabling shared libraries support. If you
13432*** really care for shared libraries, you may want to modify your PATH
13433*** so that a non-GNU linker is found, and then restart.
13434
13435EOF
13436 fi
13437 ;;
13438
13439 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000013440 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 +000013441 hardcode_libdir_flag_spec_F77='-L$libdir'
13442 hardcode_minus_L_F77=yes
13443
13444 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13445 # that the semantics of dynamic libraries on AmigaOS, at least up
13446 # to version 4, is to share data among multiple programs linked
13447 # with the same dynamic library. Since this doesn't match the
13448 # behavior of shared libraries on other platforms, we can't use
13449 # them.
13450 ld_shlibs_F77=no
13451 ;;
13452
13453 beos*)
13454 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13455 allow_undefined_flag_F77=unsupported
13456 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13457 # support --undefined. This deserves some investigation. FIXME
13458 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13459 else
13460 ld_shlibs_F77=no
13461 fi
13462 ;;
13463
13464 cygwin* | mingw* | pw32*)
13465 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13466 # as there is no search path for DLLs.
13467 hardcode_libdir_flag_spec_F77='-L$libdir'
13468 allow_undefined_flag_F77=unsupported
13469 always_export_symbols_F77=no
13470 enable_shared_with_static_runtimes_F77=yes
13471 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13472
13473 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13474 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13475 # If the export-symbols file already is a .def file (1st line
13476 # is EXPORTS), use it as is; otherwise, prepend...
13477 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13478 cp $export_symbols $output_objdir/$soname.def;
13479 else
13480 echo EXPORTS > $output_objdir/$soname.def;
13481 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000013482 fi~
13483 $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 +000013484 else
13485 ld_shlibs=no
13486 fi
13487 ;;
13488
13489 netbsd*)
13490 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13491 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13492 wlarc=
13493 else
13494 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13495 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13496 fi
13497 ;;
13498
13499 solaris* | sysv5*)
13500 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13501 ld_shlibs_F77=no
13502 cat <<EOF 1>&2
13503
13504*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13505*** create shared libraries on Solaris systems. Therefore, libtool
13506*** is disabling shared libraries support. We urge you to upgrade GNU
13507*** binutils to release 2.9.1 or newer. Another option is to modify
13508*** your PATH or compiler configuration so that the native linker is
13509*** used, and then restart.
13510
13511EOF
13512 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13513 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13514 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13515 else
13516 ld_shlibs_F77=no
13517 fi
13518 ;;
13519
13520 sunos4*)
13521 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13522 wlarc=
13523 hardcode_direct_F77=yes
13524 hardcode_shlibpath_var_F77=no
13525 ;;
13526
Reid Spencer2706f8c2004-09-19 23:53:36 +000013527 linux*)
13528 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13529 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13530 archive_cmds_F77="$tmp_archive_cmds"
13531 supports_anon_versioning=no
13532 case `$LD -v 2>/dev/null` in
13533 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13534 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13535 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13536 *\ 2.11.*) ;; # other 2.11 versions
13537 *) supports_anon_versioning=yes ;;
13538 esac
13539 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013540 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13541cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13542$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000013543 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13544 else
13545 archive_expsym_cmds_F77="$tmp_archive_cmds"
13546 fi
13547 else
13548 ld_shlibs_F77=no
13549 fi
13550 ;;
13551
John Criswell47fdd832003-07-14 16:52:07 +000013552 *)
13553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13554 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13555 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13556 else
13557 ld_shlibs_F77=no
13558 fi
13559 ;;
13560 esac
13561
13562 if test "$ld_shlibs_F77" = yes; then
13563 runpath_var=LD_RUN_PATH
13564 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13565 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13566 # ancient GNU ld didn't support --whole-archive et. al.
13567 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13568 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13569 else
13570 whole_archive_flag_spec_F77=
13571 fi
13572 fi
13573 else
13574 # PORTME fill in a description of your system's linker (not GNU ld)
13575 case $host_os in
13576 aix3*)
13577 allow_undefined_flag_F77=unsupported
13578 always_export_symbols_F77=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000013579 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 +000013580 # Note: this linker hardcodes the directories in LIBPATH if there
13581 # are no directories specified by -L.
13582 hardcode_minus_L_F77=yes
13583 if test "$GCC" = yes && test -z "$link_static_flag"; then
13584 # Neither direct hardcoding nor static linking is supported with a
13585 # broken collect2.
13586 hardcode_direct_F77=unsupported
13587 fi
13588 ;;
13589
13590 aix4* | aix5*)
13591 if test "$host_cpu" = ia64; then
13592 # On IA64, the linker does run time linking by default, so we don't
13593 # have to do anything special.
13594 aix_use_runtimelinking=no
13595 exp_sym_flag='-Bexport'
13596 no_entry_flag=""
13597 else
13598 # If we're using GNU nm, then we don't want the "-C" option.
13599 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13600 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13601 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'
13602 else
13603 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'
13604 fi
13605 aix_use_runtimelinking=no
13606
13607 # Test if we are trying to use run time linking or normal
13608 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13609 # need to do runtime linking.
13610 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13611 for ld_flag in $LDFLAGS; do
13612 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13613 aix_use_runtimelinking=yes
13614 break
13615 fi
13616 done
13617 esac
13618
13619 exp_sym_flag='-bexport'
13620 no_entry_flag='-bnoentry'
13621 fi
13622
13623 # When large executables or shared objects are built, AIX ld can
13624 # have problems creating the table of contents. If linking a library
13625 # or program results in "error TOC overflow" add -mminimal-toc to
13626 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13627 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13628
13629 archive_cmds_F77=''
13630 hardcode_direct_F77=yes
13631 hardcode_libdir_separator_F77=':'
13632 link_all_deplibs_F77=yes
13633
13634 if test "$GCC" = yes; then
13635 case $host_os in aix4.012|aix4.012.*)
13636 # We only want to do this on AIX 4.2 and lower, the check
13637 # below for broken collect2 doesn't work under 4.3+
13638 collect2name=`${CC} -print-prog-name=collect2`
13639 if test -f "$collect2name" && \
13640 strings "$collect2name" | grep resolve_lib_name >/dev/null
13641 then
13642 # We have reworked collect2
13643 hardcode_direct_F77=yes
13644 else
13645 # We have old collect2
13646 hardcode_direct_F77=unsupported
13647 # It fails to find uninstalled libraries when the uninstalled
13648 # path is not listed in the libpath. Setting hardcode_minus_L
13649 # to unsupported forces relinking
13650 hardcode_minus_L_F77=yes
13651 hardcode_libdir_flag_spec_F77='-L$libdir'
13652 hardcode_libdir_separator_F77=
13653 fi
13654 esac
13655 shared_flag='-shared'
13656 else
13657 # not using gcc
13658 if test "$host_cpu" = ia64; then
13659 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13660 # chokes on -Wl,-G. The following line is correct:
13661 shared_flag='-G'
13662 else
13663 if test "$aix_use_runtimelinking" = yes; then
13664 shared_flag='${wl}-G'
13665 else
13666 shared_flag='${wl}-bM:SRE'
13667 fi
13668 fi
13669 fi
13670
13671 # It seems that -bexpall does not export symbols beginning with
13672 # underscore (_), so it is better to generate a list of symbols to export.
13673 always_export_symbols_F77=yes
13674 if test "$aix_use_runtimelinking" = yes; then
13675 # Warning - without using the other runtime loading flags (-brtl),
13676 # -berok will link without error, but may produce a broken library.
13677 allow_undefined_flag_F77='-berok'
13678 # Determine the default libpath from the value encoded in an empty executable.
13679 cat >conftest.$ac_ext <<_ACEOF
13680 program main
13681
13682 end
13683_ACEOF
13684rm -f conftest.$ac_objext conftest$ac_exeext
13685if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013686 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013687 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013693 { ac_try='test -z "$ac_f77_werror_flag"
13694 || test ! -s conftest.err'
13695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13696 (eval $ac_try) 2>&5
13697 ac_status=$?
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); }; } &&
13700 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13702 (eval $ac_try) 2>&5
13703 ac_status=$?
13704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13705 (exit $ac_status); }; }; then
13706
13707aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13708}'`
13709# Check for a 64-bit object if we didn't find anything.
13710if 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; }
13711}'`; fi
13712else
13713 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013714sed 's/^/| /' conftest.$ac_ext >&5
13715
John Criswell47fdd832003-07-14 16:52:07 +000013716fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013717rm -f conftest.err conftest.$ac_objext \
13718 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013719if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13720
13721 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13722 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"
13723 else
13724 if test "$host_cpu" = ia64; then
13725 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13726 allow_undefined_flag_F77="-z nodefs"
13727 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"
13728 else
13729 # Determine the default libpath from the value encoded in an empty executable.
13730 cat >conftest.$ac_ext <<_ACEOF
13731 program main
13732
13733 end
13734_ACEOF
13735rm -f conftest.$ac_objext conftest$ac_exeext
13736if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013737 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013738 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013739 grep -v '^ *+' conftest.er1 >conftest.err
13740 rm -f conftest.er1
13741 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013744 { ac_try='test -z "$ac_f77_werror_flag"
13745 || test ! -s conftest.err'
13746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13747 (eval $ac_try) 2>&5
13748 ac_status=$?
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); }; } &&
13751 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13753 (eval $ac_try) 2>&5
13754 ac_status=$?
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; }; then
13757
13758aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13759}'`
13760# Check for a 64-bit object if we didn't find anything.
13761if 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; }
13762}'`; fi
13763else
13764 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013765sed 's/^/| /' conftest.$ac_ext >&5
13766
John Criswell47fdd832003-07-14 16:52:07 +000013767fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013768rm -f conftest.err conftest.$ac_objext \
13769 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013770if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13771
13772 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13773 # Warning - without using the other run time loading flags,
13774 # -berok will link without error, but may produce a broken library.
13775 no_undefined_flag_F77=' ${wl}-bernotok'
13776 allow_undefined_flag_F77=' ${wl}-berok'
13777 # -bexpall does not export symbols beginning with underscore (_)
13778 always_export_symbols_F77=yes
13779 # Exported symbols can be pulled into shared objects from archives
13780 whole_archive_flag_spec_F77=' '
13781 archive_cmds_need_lc_F77=yes
13782 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000013783 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 +000013784 fi
13785 fi
13786 ;;
13787
13788 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000013789 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 +000013790 hardcode_libdir_flag_spec_F77='-L$libdir'
13791 hardcode_minus_L_F77=yes
13792 # see comment about different semantics on the GNU ld section
13793 ld_shlibs_F77=no
13794 ;;
13795
Reid Spencer2706f8c2004-09-19 23:53:36 +000013796 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000013797 export_dynamic_flag_spec_F77=-rdynamic
13798 ;;
13799
13800 cygwin* | mingw* | pw32*)
13801 # When not using gcc, we currently assume that we are using
13802 # Microsoft Visual C++.
13803 # hardcode_libdir_flag_spec is actually meaningless, as there is
13804 # no search path for DLLs.
13805 hardcode_libdir_flag_spec_F77=' '
13806 allow_undefined_flag_F77=unsupported
13807 # Tell ltmain to make .lib files, not .a files.
13808 libext=lib
13809 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013810 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000013811 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000013812 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 +000013813 # The linker will automatically build a .lib file if we build a DLL.
13814 old_archive_From_new_cmds_F77='true'
13815 # FIXME: Should let the user specify the lib program.
13816 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13817 fix_srcfile_path='`cygpath -w "$srcfile"`'
13818 enable_shared_with_static_runtimes_F77=yes
13819 ;;
13820
13821 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000013822 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013823 rhapsody* | darwin1.[012])
13824 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13825 ;;
13826 *) # Darwin 1.3 on
13827 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13828 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13829 else
13830 case ${MACOSX_DEPLOYMENT_TARGET} in
13831 10.[012])
13832 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13833 ;;
13834 10.*)
13835 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13836 ;;
13837 esac
13838 fi
13839 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013840 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000013841 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000013842 hardcode_direct_F77=no
13843 hardcode_automatic_F77=yes
13844 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000013845 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000013846 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000013847 if test "$GCC" = yes ; then
13848 output_verbose_link_cmd='echo'
13849 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13850 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13851 # 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 +000013852 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}'
13853 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 +000013854 else
13855 case "$cc_basename" in
13856 xlc*)
13857 output_verbose_link_cmd='echo'
13858 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13859 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13860 # 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 +000013861 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}'
13862 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 +000013863 ;;
13864 *)
13865 ld_shlibs_F77=no
13866 ;;
13867 esac
John Criswell47fdd832003-07-14 16:52:07 +000013868 fi
13869 ;;
13870
13871 dgux*)
13872 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13873 hardcode_libdir_flag_spec_F77='-L$libdir'
13874 hardcode_shlibpath_var_F77=no
13875 ;;
13876
13877 freebsd1*)
13878 ld_shlibs_F77=no
13879 ;;
13880
13881 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13882 # support. Future versions do this automatically, but an explicit c++rt0.o
13883 # does not break anything, and helps significantly (at the cost of a little
13884 # extra space).
13885 freebsd2.2*)
13886 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13887 hardcode_libdir_flag_spec_F77='-R$libdir'
13888 hardcode_direct_F77=yes
13889 hardcode_shlibpath_var_F77=no
13890 ;;
13891
13892 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13893 freebsd2*)
13894 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13895 hardcode_direct_F77=yes
13896 hardcode_minus_L_F77=yes
13897 hardcode_shlibpath_var_F77=no
13898 ;;
13899
13900 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013901 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000013902 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13903 hardcode_libdir_flag_spec_F77='-R$libdir'
13904 hardcode_direct_F77=yes
13905 hardcode_shlibpath_var_F77=no
13906 ;;
13907
13908 hpux9*)
13909 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000013910 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 +000013911 else
Reid Spencer177dbe22004-10-13 01:01:03 +000013912 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 +000013913 fi
13914 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13915 hardcode_libdir_separator_F77=:
13916 hardcode_direct_F77=yes
13917
13918 # hardcode_minus_L: Not really in the search PATH,
13919 # but as the default location of the library.
13920 hardcode_minus_L_F77=yes
13921 export_dynamic_flag_spec_F77='${wl}-E'
13922 ;;
13923
13924 hpux10* | hpux11*)
13925 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13926 case "$host_cpu" in
13927 hppa*64*|ia64*)
13928 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13929 ;;
13930 *)
13931 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13932 ;;
13933 esac
13934 else
13935 case "$host_cpu" in
13936 hppa*64*|ia64*)
13937 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13938 ;;
13939 *)
13940 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13941 ;;
13942 esac
13943 fi
13944 if test "$with_gnu_ld" = no; then
13945 case "$host_cpu" in
13946 hppa*64*)
13947 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13948 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13949 hardcode_libdir_separator_F77=:
13950 hardcode_direct_F77=no
13951 hardcode_shlibpath_var_F77=no
13952 ;;
13953 ia64*)
13954 hardcode_libdir_flag_spec_F77='-L$libdir'
13955 hardcode_direct_F77=no
13956 hardcode_shlibpath_var_F77=no
13957
13958 # hardcode_minus_L: Not really in the search PATH,
13959 # but as the default location of the library.
13960 hardcode_minus_L_F77=yes
13961 ;;
13962 *)
13963 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13964 hardcode_libdir_separator_F77=:
13965 hardcode_direct_F77=yes
13966 export_dynamic_flag_spec_F77='${wl}-E'
13967
13968 # hardcode_minus_L: Not really in the search PATH,
13969 # but as the default location of the library.
13970 hardcode_minus_L_F77=yes
13971 ;;
13972 esac
13973 fi
13974 ;;
13975
13976 irix5* | irix6* | nonstopux*)
13977 if test "$GCC" = yes; then
13978 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'
13979 else
13980 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'
13981 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13982 fi
13983 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13984 hardcode_libdir_separator_F77=:
13985 link_all_deplibs_F77=yes
13986 ;;
13987
13988 netbsd*)
13989 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13990 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13991 else
13992 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13993 fi
13994 hardcode_libdir_flag_spec_F77='-R$libdir'
13995 hardcode_direct_F77=yes
13996 hardcode_shlibpath_var_F77=no
13997 ;;
13998
13999 newsos6)
14000 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14001 hardcode_direct_F77=yes
14002 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14003 hardcode_libdir_separator_F77=:
14004 hardcode_shlibpath_var_F77=no
14005 ;;
14006
14007 openbsd*)
14008 hardcode_direct_F77=yes
14009 hardcode_shlibpath_var_F77=no
14010 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14011 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014012 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 +000014013 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14014 export_dynamic_flag_spec_F77='${wl}-E'
14015 else
14016 case $host_os in
14017 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14018 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14019 hardcode_libdir_flag_spec_F77='-R$libdir'
14020 ;;
14021 *)
14022 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14023 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14024 ;;
14025 esac
14026 fi
14027 ;;
14028
14029 os2*)
14030 hardcode_libdir_flag_spec_F77='-L$libdir'
14031 hardcode_minus_L_F77=yes
14032 allow_undefined_flag_F77=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000014033 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 +000014034 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14035 ;;
14036
14037 osf3*)
14038 if test "$GCC" = yes; then
14039 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14040 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'
14041 else
14042 allow_undefined_flag_F77=' -expect_unresolved \*'
14043 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'
14044 fi
14045 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14046 hardcode_libdir_separator_F77=:
14047 ;;
14048
14049 osf4* | osf5*) # as osf3* with the addition of -msym flag
14050 if test "$GCC" = yes; then
14051 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14052 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'
14053 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14054 else
14055 allow_undefined_flag_F77=' -expect_unresolved \*'
14056 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 +000014057 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~
14058 $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'
14059
John Criswell47fdd832003-07-14 16:52:07 +000014060 # Both c and cxx compiler support -rpath directly
14061 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14062 fi
14063 hardcode_libdir_separator_F77=:
14064 ;;
14065
14066 sco3.2v5*)
14067 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14068 hardcode_shlibpath_var_F77=no
14069 export_dynamic_flag_spec_F77='${wl}-Bexport'
14070 runpath_var=LD_RUN_PATH
14071 hardcode_runpath_var=yes
14072 ;;
14073
14074 solaris*)
14075 no_undefined_flag_F77=' -z text'
14076 if test "$GCC" = yes; then
14077 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014078 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14079 $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 +000014080 else
14081 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014082 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14083 $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 +000014084 fi
14085 hardcode_libdir_flag_spec_F77='-R$libdir'
14086 hardcode_shlibpath_var_F77=no
14087 case $host_os in
14088 solaris2.[0-5] | solaris2.[0-5].*) ;;
14089 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14090 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14091 esac
14092 link_all_deplibs_F77=yes
14093 ;;
14094
14095 sunos4*)
14096 if test "x$host_vendor" = xsequent; then
14097 # Use $CC to link under sequent, because it throws in some extra .o
14098 # files that make .init and .fini sections work.
14099 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14100 else
14101 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14102 fi
14103 hardcode_libdir_flag_spec_F77='-L$libdir'
14104 hardcode_direct_F77=yes
14105 hardcode_minus_L_F77=yes
14106 hardcode_shlibpath_var_F77=no
14107 ;;
14108
14109 sysv4)
14110 case $host_vendor in
14111 sni)
14112 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14113 hardcode_direct_F77=yes # is this really true???
14114 ;;
14115 siemens)
14116 ## LD is ld it makes a PLAMLIB
14117 ## CC just makes a GrossModule.
14118 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14119 reload_cmds_F77='$CC -r -o $output$reload_objs'
14120 hardcode_direct_F77=no
14121 ;;
14122 motorola)
14123 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14124 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14125 ;;
14126 esac
14127 runpath_var='LD_RUN_PATH'
14128 hardcode_shlibpath_var_F77=no
14129 ;;
14130
14131 sysv4.3*)
14132 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14133 hardcode_shlibpath_var_F77=no
14134 export_dynamic_flag_spec_F77='-Bexport'
14135 ;;
14136
14137 sysv4*MP*)
14138 if test -d /usr/nec; then
14139 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14140 hardcode_shlibpath_var_F77=no
14141 runpath_var=LD_RUN_PATH
14142 hardcode_runpath_var=yes
14143 ld_shlibs_F77=yes
14144 fi
14145 ;;
14146
14147 sysv4.2uw2*)
14148 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14149 hardcode_direct_F77=yes
14150 hardcode_minus_L_F77=no
14151 hardcode_shlibpath_var_F77=no
14152 hardcode_runpath_var=yes
14153 runpath_var=LD_RUN_PATH
14154 ;;
14155
14156 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14157 no_undefined_flag_F77='${wl}-z ${wl}text'
14158 if test "$GCC" = yes; then
14159 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14160 else
14161 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14162 fi
14163 runpath_var='LD_RUN_PATH'
14164 hardcode_shlibpath_var_F77=no
14165 ;;
14166
14167 sysv5*)
14168 no_undefined_flag_F77=' -z text'
14169 # $CC -shared without GNU ld will not create a library from C++
14170 # object files and a static libstdc++, better avoid it by now
14171 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000014172 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14173 $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 +000014174 hardcode_libdir_flag_spec_F77=
14175 hardcode_shlibpath_var_F77=no
14176 runpath_var='LD_RUN_PATH'
14177 ;;
14178
14179 uts4*)
14180 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14181 hardcode_libdir_flag_spec_F77='-L$libdir'
14182 hardcode_shlibpath_var_F77=no
14183 ;;
14184
14185 *)
14186 ld_shlibs_F77=no
14187 ;;
14188 esac
14189 fi
14190
14191echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14192echo "${ECHO_T}$ld_shlibs_F77" >&6
14193test "$ld_shlibs_F77" = no && can_build_shared=no
14194
14195variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14196if test "$GCC" = yes; then
14197 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14198fi
14199
14200#
14201# Do we need to explicitly link libc?
14202#
14203case "x$archive_cmds_need_lc_F77" in
14204x|xyes)
14205 # Assume -lc should be added
14206 archive_cmds_need_lc_F77=yes
14207
14208 if test "$enable_shared" = yes && test "$GCC" = yes; then
14209 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014210 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000014211 # FIXME: we may have to deal with multi-command sequences.
14212 ;;
14213 '$CC '*)
14214 # Test whether the compiler implicitly links with -lc since on some
14215 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14216 # to ld, don't add -lc before -lgcc.
14217 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14218echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14219 $rm conftest*
14220 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14221
14222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14223 (eval $ac_compile) 2>&5
14224 ac_status=$?
14225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14226 (exit $ac_status); } 2>conftest.err; then
14227 soname=conftest
14228 lib=conftest
14229 libobjs=conftest.$ac_objext
14230 deplibs=
14231 wl=$lt_prog_compiler_wl_F77
14232 compiler_flags=-v
14233 linker_flags=-v
14234 verstring=
14235 output_objdir=.
14236 libname=conftest
14237 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14238 allow_undefined_flag_F77=
14239 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14240 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14241 ac_status=$?
14242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14243 (exit $ac_status); }
14244 then
14245 archive_cmds_need_lc_F77=no
14246 else
14247 archive_cmds_need_lc_F77=yes
14248 fi
14249 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14250 else
14251 cat conftest.err 1>&5
14252 fi
14253 $rm conftest*
14254 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14255echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14256 ;;
14257 esac
14258 fi
14259 ;;
14260esac
14261
John Criswell47fdd832003-07-14 16:52:07 +000014262echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14263echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14264library_names_spec=
14265libname_spec='lib$name'
14266soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000014267shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000014268postinstall_cmds=
14269postuninstall_cmds=
14270finish_cmds=
14271finish_eval=
14272shlibpath_var=
14273shlibpath_overrides_runpath=unknown
14274version_type=none
14275dynamic_linker="$host_os ld.so"
14276sys_lib_dlsearch_path_spec="/lib /usr/lib"
14277if test "$GCC" = yes; then
14278 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14279 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14280 # if the path contains ";" then we assume it to be the separator
14281 # otherwise default to the standard path separator (i.e. ":") - it is
14282 # assumed that no part of a normal pathname contains ";" but that should
14283 # okay in the real world where ";" in dirpaths is itself problematic.
14284 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14285 else
14286 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14287 fi
14288else
14289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14290fi
14291need_lib_prefix=unknown
14292hardcode_into_libs=no
14293
14294# when you set need_version to no, make sure it does not cause -set_version
14295# flags to be left without arguments
14296need_version=unknown
14297
14298case $host_os in
14299aix3*)
14300 version_type=linux
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14302 shlibpath_var=LIBPATH
14303
14304 # AIX 3 has no versioning support, so we append a major version to the name.
14305 soname_spec='${libname}${release}${shared_ext}$major'
14306 ;;
14307
14308aix4* | aix5*)
14309 version_type=linux
14310 need_lib_prefix=no
14311 need_version=no
14312 hardcode_into_libs=yes
14313 if test "$host_cpu" = ia64; then
14314 # AIX 5 supports IA64
14315 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14316 shlibpath_var=LD_LIBRARY_PATH
14317 else
14318 # With GCC up to 2.95.x, collect2 would create an import file
14319 # for dependence libraries. The import file would start with
14320 # the line `#! .'. This would cause the generated library to
14321 # depend on `.', always an invalid library. This was fixed in
14322 # development snapshots of GCC prior to 3.0.
14323 case $host_os in
14324 aix4 | aix4.[01] | aix4.[01].*)
14325 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14326 echo ' yes '
14327 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14328 :
14329 else
14330 can_build_shared=no
14331 fi
14332 ;;
14333 esac
14334 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14335 # soname into executable. Probably we can add versioning support to
14336 # collect2, so additional links can be useful in future.
14337 if test "$aix_use_runtimelinking" = yes; then
14338 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14339 # instead of lib<name>.a to let people know that these are not
14340 # typical AIX shared libraries.
14341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14342 else
14343 # We preserve .a as extension for shared libraries through AIX4.2
14344 # and later when we are not doing run time linking.
14345 library_names_spec='${libname}${release}.a $libname.a'
14346 soname_spec='${libname}${release}${shared_ext}$major'
14347 fi
14348 shlibpath_var=LIBPATH
14349 fi
14350 ;;
14351
14352amigaos*)
14353 library_names_spec='$libname.ixlibrary $libname.a'
14354 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014355 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 +000014356 ;;
14357
14358beos*)
14359 library_names_spec='${libname}${shared_ext}'
14360 dynamic_linker="$host_os ld.so"
14361 shlibpath_var=LIBRARY_PATH
14362 ;;
14363
Reid Spencer2706f8c2004-09-19 23:53:36 +000014364bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000014365 version_type=linux
14366 need_version=no
14367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14368 soname_spec='${libname}${release}${shared_ext}$major'
14369 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14370 shlibpath_var=LD_LIBRARY_PATH
14371 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14372 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14373 # the default ld.so.conf also contains /usr/contrib/lib and
14374 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14375 # libtool to hard-code these into programs
14376 ;;
14377
14378cygwin* | mingw* | pw32*)
14379 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000014380 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014381 need_version=no
14382 need_lib_prefix=no
14383
14384 case $GCC,$host_os in
14385 yes,cygwin* | yes,mingw* | yes,pw32*)
14386 library_names_spec='$libname.dll.a'
14387 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000014388 postinstall_cmds='base_file=`basename \${file}`~
14389 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14390 dldir=$destdir/`dirname \$dlpath`~
14391 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000014392 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000014393 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14394 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000014395 $rm \$dlpath'
14396 shlibpath_overrides_runpath=yes
14397
14398 case $host_os in
14399 cygwin*)
14400 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14401 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 +000014402 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000014403 ;;
14404 mingw*)
14405 # MinGW DLLs use traditional 'lib' prefix
14406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14407 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14408 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14409 # It is most probably a Windows format PATH printed by
14410 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14411 # path with ; separators, and with drive letters. We can handle the
14412 # drive letters (cygwin fileutils understands them), so leave them,
14413 # especially as we might pass files found there to a mingw objdump,
14414 # which wouldn't understand a cygwinified path. Ahh.
14415 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14416 else
14417 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14418 fi
14419 ;;
14420 pw32*)
14421 # pw32 DLLs use 'pw' prefix rather than 'lib'
14422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14423 ;;
14424 esac
14425 ;;
14426
14427 *)
14428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14429 ;;
14430 esac
14431 dynamic_linker='Win32 ld.exe'
14432 # FIXME: first we should search . and the directory the executable is in
14433 shlibpath_var=PATH
14434 ;;
14435
14436darwin* | rhapsody*)
14437 dynamic_linker="$host_os dyld"
14438 version_type=darwin
14439 need_lib_prefix=no
14440 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000014441 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000014442 soname_spec='${libname}${release}${major}$shared_ext'
14443 shlibpath_overrides_runpath=yes
14444 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000014445 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000014446 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014447 if test "$GCC" = yes; then
14448 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"`
14449 else
14450 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000014451 fi
14452 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14453 ;;
14454
14455dgux*)
14456 version_type=linux
14457 need_lib_prefix=no
14458 need_version=no
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14460 soname_spec='${libname}${release}${shared_ext}$major'
14461 shlibpath_var=LD_LIBRARY_PATH
14462 ;;
14463
14464freebsd1*)
14465 dynamic_linker=no
14466 ;;
14467
Reid Spencer2706f8c2004-09-19 23:53:36 +000014468kfreebsd*-gnu)
14469 version_type=linux
14470 need_lib_prefix=no
14471 need_version=no
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14473 soname_spec='${libname}${release}${shared_ext}$major'
14474 shlibpath_var=LD_LIBRARY_PATH
14475 shlibpath_overrides_runpath=no
14476 hardcode_into_libs=yes
14477 dynamic_linker='GNU ld.so'
14478 ;;
14479
John Criswell47fdd832003-07-14 16:52:07 +000014480freebsd*)
14481 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14482 version_type=freebsd-$objformat
14483 case $version_type in
14484 freebsd-elf*)
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14486 need_version=no
14487 need_lib_prefix=no
14488 ;;
14489 freebsd-*)
14490 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14491 need_version=yes
14492 ;;
14493 esac
14494 shlibpath_var=LD_LIBRARY_PATH
14495 case $host_os in
14496 freebsd2*)
14497 shlibpath_overrides_runpath=yes
14498 ;;
14499 freebsd3.01* | freebsdelf3.01*)
14500 shlibpath_overrides_runpath=yes
14501 hardcode_into_libs=yes
14502 ;;
14503 *) # from 3.2 on
14504 shlibpath_overrides_runpath=no
14505 hardcode_into_libs=yes
14506 ;;
14507 esac
14508 ;;
14509
14510gnu*)
14511 version_type=linux
14512 need_lib_prefix=no
14513 need_version=no
14514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14515 soname_spec='${libname}${release}${shared_ext}$major'
14516 shlibpath_var=LD_LIBRARY_PATH
14517 hardcode_into_libs=yes
14518 ;;
14519
14520hpux9* | hpux10* | hpux11*)
14521 # Give a soname corresponding to the major version so that dld.sl refuses to
14522 # link against other versions.
14523 version_type=sunos
14524 need_lib_prefix=no
14525 need_version=no
14526 case "$host_cpu" in
14527 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014528 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000014529 hardcode_into_libs=yes
14530 dynamic_linker="$host_os dld.so"
14531 shlibpath_var=LD_LIBRARY_PATH
14532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14534 soname_spec='${libname}${release}${shared_ext}$major'
14535 if test "X$HPUX_IA64_MODE" = X32; then
14536 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14537 else
14538 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14539 fi
14540 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14541 ;;
14542 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014543 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000014544 hardcode_into_libs=yes
14545 dynamic_linker="$host_os dld.sl"
14546 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14547 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14549 soname_spec='${libname}${release}${shared_ext}$major'
14550 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14552 ;;
14553 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014554 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000014555 dynamic_linker="$host_os dld.sl"
14556 shlibpath_var=SHLIB_PATH
14557 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14559 soname_spec='${libname}${release}${shared_ext}$major'
14560 ;;
14561 esac
14562 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14563 postinstall_cmds='chmod 555 $lib'
14564 ;;
14565
14566irix5* | irix6* | nonstopux*)
14567 case $host_os in
14568 nonstopux*) version_type=nonstopux ;;
14569 *)
14570 if test "$lt_cv_prog_gnu_ld" = yes; then
14571 version_type=linux
14572 else
14573 version_type=irix
14574 fi ;;
14575 esac
14576 need_lib_prefix=no
14577 need_version=no
14578 soname_spec='${libname}${release}${shared_ext}$major'
14579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14580 case $host_os in
14581 irix5* | nonstopux*)
14582 libsuff= shlibsuff=
14583 ;;
14584 *)
14585 case $LD in # libtool.m4 will add one of these switches to LD
14586 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14587 libsuff= shlibsuff= libmagic=32-bit;;
14588 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14589 libsuff=32 shlibsuff=N32 libmagic=N32;;
14590 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14591 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14592 *) libsuff= shlibsuff= libmagic=never-match;;
14593 esac
14594 ;;
14595 esac
14596 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14597 shlibpath_overrides_runpath=no
14598 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14599 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14600 hardcode_into_libs=yes
14601 ;;
14602
14603# No shared lib support for Linux oldld, aout, or coff.
14604linux*oldld* | linux*aout* | linux*coff*)
14605 dynamic_linker=no
14606 ;;
14607
14608# This must be Linux ELF.
14609linux*)
14610 version_type=linux
14611 need_lib_prefix=no
14612 need_version=no
14613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614 soname_spec='${libname}${release}${shared_ext}$major'
14615 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14616 shlibpath_var=LD_LIBRARY_PATH
14617 shlibpath_overrides_runpath=no
14618 # This implies no fast_install, which is unacceptable.
14619 # Some rework will be needed to allow for fast_install
14620 # before this can be enabled.
14621 hardcode_into_libs=yes
14622
Reid Spencer2706f8c2004-09-19 23:53:36 +000014623 # Append ld.so.conf contents to the search path
14624 if test -f /etc/ld.so.conf; then
14625 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14626 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14627 fi
14628
John Criswell47fdd832003-07-14 16:52:07 +000014629 # We used to test for /lib/ld.so.1 and disable shared libraries on
14630 # powerpc, because MkLinux only supported shared libraries with the
14631 # GNU dynamic linker. Since this was broken with cross compilers,
14632 # most powerpc-linux boxes support dynamic linking these days and
14633 # people can always --disable-shared, the test was removed, and we
14634 # assume the GNU/Linux dynamic linker is in use.
14635 dynamic_linker='GNU/Linux ld.so'
14636 ;;
14637
Reid Spencer2706f8c2004-09-19 23:53:36 +000014638knetbsd*-gnu)
14639 version_type=linux
14640 need_lib_prefix=no
14641 need_version=no
14642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14643 soname_spec='${libname}${release}${shared_ext}$major'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 shlibpath_overrides_runpath=no
14646 hardcode_into_libs=yes
14647 dynamic_linker='GNU ld.so'
14648 ;;
14649
John Criswell47fdd832003-07-14 16:52:07 +000014650netbsd*)
14651 version_type=sunos
14652 need_lib_prefix=no
14653 need_version=no
14654 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14656 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14657 dynamic_linker='NetBSD (a.out) ld.so'
14658 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000014659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000014660 soname_spec='${libname}${release}${shared_ext}$major'
14661 dynamic_linker='NetBSD ld.elf_so'
14662 fi
14663 shlibpath_var=LD_LIBRARY_PATH
14664 shlibpath_overrides_runpath=yes
14665 hardcode_into_libs=yes
14666 ;;
14667
14668newsos6)
14669 version_type=linux
14670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671 shlibpath_var=LD_LIBRARY_PATH
14672 shlibpath_overrides_runpath=yes
14673 ;;
14674
Reid Spencer2706f8c2004-09-19 23:53:36 +000014675nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000014676 version_type=linux
14677 need_lib_prefix=no
14678 need_version=no
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680 soname_spec='${libname}${release}${shared_ext}$major'
14681 shlibpath_var=LD_LIBRARY_PATH
14682 shlibpath_overrides_runpath=yes
14683 ;;
14684
14685openbsd*)
14686 version_type=sunos
14687 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000014688 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14690 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14691 shlibpath_var=LD_LIBRARY_PATH
14692 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14693 case $host_os in
14694 openbsd2.[89] | openbsd2.[89].*)
14695 shlibpath_overrides_runpath=no
14696 ;;
14697 *)
14698 shlibpath_overrides_runpath=yes
14699 ;;
14700 esac
14701 else
14702 shlibpath_overrides_runpath=yes
14703 fi
14704 ;;
14705
14706os2*)
14707 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014708 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014709 need_lib_prefix=no
14710 library_names_spec='$libname${shared_ext} $libname.a'
14711 dynamic_linker='OS/2 ld.exe'
14712 shlibpath_var=LIBPATH
14713 ;;
14714
14715osf3* | osf4* | osf5*)
14716 version_type=osf
14717 need_lib_prefix=no
14718 need_version=no
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14723 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14724 ;;
14725
14726sco3.2v5*)
14727 version_type=osf
14728 soname_spec='${libname}${release}${shared_ext}$major'
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14730 shlibpath_var=LD_LIBRARY_PATH
14731 ;;
14732
14733solaris*)
14734 version_type=linux
14735 need_lib_prefix=no
14736 need_version=no
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738 soname_spec='${libname}${release}${shared_ext}$major'
14739 shlibpath_var=LD_LIBRARY_PATH
14740 shlibpath_overrides_runpath=yes
14741 hardcode_into_libs=yes
14742 # ldd complains unless libraries are executable
14743 postinstall_cmds='chmod +x $lib'
14744 ;;
14745
14746sunos4*)
14747 version_type=sunos
14748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14749 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14750 shlibpath_var=LD_LIBRARY_PATH
14751 shlibpath_overrides_runpath=yes
14752 if test "$with_gnu_ld" = yes; then
14753 need_lib_prefix=no
14754 fi
14755 need_version=yes
14756 ;;
14757
14758sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14759 version_type=linux
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761 soname_spec='${libname}${release}${shared_ext}$major'
14762 shlibpath_var=LD_LIBRARY_PATH
14763 case $host_vendor in
14764 sni)
14765 shlibpath_overrides_runpath=no
14766 need_lib_prefix=no
14767 export_dynamic_flag_spec='${wl}-Blargedynsym'
14768 runpath_var=LD_RUN_PATH
14769 ;;
14770 siemens)
14771 need_lib_prefix=no
14772 ;;
14773 motorola)
14774 need_lib_prefix=no
14775 need_version=no
14776 shlibpath_overrides_runpath=no
14777 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14778 ;;
14779 esac
14780 ;;
14781
14782sysv4*MP*)
14783 if test -d /usr/nec ;then
14784 version_type=linux
14785 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14786 soname_spec='$libname${shared_ext}.$major'
14787 shlibpath_var=LD_LIBRARY_PATH
14788 fi
14789 ;;
14790
14791uts4*)
14792 version_type=linux
14793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14794 soname_spec='${libname}${release}${shared_ext}$major'
14795 shlibpath_var=LD_LIBRARY_PATH
14796 ;;
14797
14798*)
14799 dynamic_linker=no
14800 ;;
14801esac
14802echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14803echo "${ECHO_T}$dynamic_linker" >&6
14804test "$dynamic_linker" = no && can_build_shared=no
14805
Reid Spencer2706f8c2004-09-19 23:53:36 +000014806echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14807echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14808hardcode_action_F77=
14809if test -n "$hardcode_libdir_flag_spec_F77" || \
14810 test -n "$runpath_var_F77" || \
14811 test "X$hardcode_automatic_F77" = "Xyes" ; then
14812
14813 # We can hardcode non-existant directories.
14814 if test "$hardcode_direct_F77" != no &&
14815 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14816 # have to relink, otherwise we might link with an installed library
14817 # when we should be linking with a yet-to-be-installed one
14818 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14819 test "$hardcode_minus_L_F77" != no; then
14820 # Linking always hardcodes the temporary library directory.
14821 hardcode_action_F77=relink
14822 else
14823 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14824 hardcode_action_F77=immediate
14825 fi
14826else
14827 # We cannot hardcode anything, or else we can only hardcode existing
14828 # directories.
14829 hardcode_action_F77=unsupported
14830fi
14831echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14832echo "${ECHO_T}$hardcode_action_F77" >&6
14833
14834if test "$hardcode_action_F77" = relink; then
14835 # Fast installation is not supported
14836 enable_fast_install=no
14837elif test "$shlibpath_overrides_runpath" = yes ||
14838 test "$enable_shared" = no; then
14839 # Fast installation is not necessary
14840 enable_fast_install=needless
14841fi
14842
14843striplib=
14844old_striplib=
14845echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14846echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14847if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14848 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14849 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14850 echo "$as_me:$LINENO: result: yes" >&5
14851echo "${ECHO_T}yes" >&6
14852else
14853# FIXME - insert some real tests, host_os isn't really good enough
14854 case $host_os in
14855 darwin*)
14856 if test -n "$STRIP" ; then
14857 striplib="$STRIP -x"
14858 echo "$as_me:$LINENO: result: yes" >&5
14859echo "${ECHO_T}yes" >&6
14860 else
14861 echo "$as_me:$LINENO: result: no" >&5
14862echo "${ECHO_T}no" >&6
14863fi
14864 ;;
14865 *)
14866 echo "$as_me:$LINENO: result: no" >&5
14867echo "${ECHO_T}no" >&6
14868 ;;
14869 esac
14870fi
14871
14872
John Criswell47fdd832003-07-14 16:52:07 +000014873
14874# The else clause should only fire when bootstrapping the
14875# libtool distribution, otherwise you forgot to ship ltmain.sh
14876# with your package, and you will get complaints that there are
14877# no rules to generate ltmain.sh.
14878if test -f "$ltmain"; then
14879 # See if we are running on zsh, and set the options which allow our commands through
14880 # without removal of \ escapes.
14881 if test -n "${ZSH_VERSION+set}" ; then
14882 setopt NO_GLOB_SUBST
14883 fi
14884 # Now quote all the things that may contain metacharacters while being
14885 # careful not to overquote the AC_SUBSTed values. We take copies of the
14886 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014887 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14888 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014889 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14890 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14891 deplibs_check_method reload_flag reload_cmds need_locks \
14892 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14893 lt_cv_sys_global_symbol_to_c_name_address \
14894 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14895 old_postinstall_cmds old_postuninstall_cmds \
14896 compiler_F77 \
14897 CC_F77 \
14898 LD_F77 \
14899 lt_prog_compiler_wl_F77 \
14900 lt_prog_compiler_pic_F77 \
14901 lt_prog_compiler_static_F77 \
14902 lt_prog_compiler_no_builtin_flag_F77 \
14903 export_dynamic_flag_spec_F77 \
14904 thread_safe_flag_spec_F77 \
14905 whole_archive_flag_spec_F77 \
14906 enable_shared_with_static_runtimes_F77 \
14907 old_archive_cmds_F77 \
14908 old_archive_from_new_cmds_F77 \
14909 predep_objects_F77 \
14910 postdep_objects_F77 \
14911 predeps_F77 \
14912 postdeps_F77 \
14913 compiler_lib_search_path_F77 \
14914 archive_cmds_F77 \
14915 archive_expsym_cmds_F77 \
14916 postinstall_cmds_F77 \
14917 postuninstall_cmds_F77 \
14918 old_archive_from_expsyms_cmds_F77 \
14919 allow_undefined_flag_F77 \
14920 no_undefined_flag_F77 \
14921 export_symbols_cmds_F77 \
14922 hardcode_libdir_flag_spec_F77 \
14923 hardcode_libdir_flag_spec_ld_F77 \
14924 hardcode_libdir_separator_F77 \
14925 hardcode_automatic_F77 \
14926 module_cmds_F77 \
14927 module_expsym_cmds_F77 \
14928 lt_cv_prog_compiler_c_o_F77 \
14929 exclude_expsyms_F77 \
14930 include_expsyms_F77; do
14931
14932 case $var in
14933 old_archive_cmds_F77 | \
14934 old_archive_from_new_cmds_F77 | \
14935 archive_cmds_F77 | \
14936 archive_expsym_cmds_F77 | \
14937 module_cmds_F77 | \
14938 module_expsym_cmds_F77 | \
14939 old_archive_from_expsyms_cmds_F77 | \
14940 export_symbols_cmds_F77 | \
14941 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14942 postinstall_cmds | postuninstall_cmds | \
14943 old_postinstall_cmds | old_postuninstall_cmds | \
14944 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14945 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014946 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 +000014947 ;;
14948 *)
14949 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14950 ;;
14951 esac
14952 done
14953
14954 case $lt_echo in
14955 *'\$0 --fallback-echo"')
14956 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14957 ;;
14958 esac
14959
14960cfgfile="$ofile"
14961
14962 cat <<__EOF__ >> "$cfgfile"
14963# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14964
14965# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14966
14967# Shell to use when invoking shell scripts.
14968SHELL=$lt_SHELL
14969
14970# Whether or not to build shared libraries.
14971build_libtool_libs=$enable_shared
14972
14973# Whether or not to build static libraries.
14974build_old_libs=$enable_static
14975
14976# Whether or not to add -lc for building shared libraries.
14977build_libtool_need_lc=$archive_cmds_need_lc_F77
14978
14979# Whether or not to disallow shared libs when runtime libs are static
14980allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14981
14982# Whether or not to optimize for fast installation.
14983fast_install=$enable_fast_install
14984
14985# The host system.
14986host_alias=$host_alias
14987host=$host
14988
14989# An echo program that does not interpret backslashes.
14990echo=$lt_echo
14991
14992# The archiver.
14993AR=$lt_AR
14994AR_FLAGS=$lt_AR_FLAGS
14995
14996# A C compiler.
14997LTCC=$lt_LTCC
14998
14999# A language-specific compiler.
15000CC=$lt_compiler_F77
15001
15002# Is the compiler the GNU C compiler?
15003with_gcc=$GCC_F77
15004
15005# An ERE matcher.
15006EGREP=$lt_EGREP
15007
15008# The linker used to build libraries.
15009LD=$lt_LD_F77
15010
15011# Whether we need hard or soft links.
15012LN_S=$lt_LN_S
15013
15014# A BSD-compatible nm program.
15015NM=$lt_NM
15016
15017# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000015018STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000015019
15020# Used to examine libraries when file_magic_cmd begins "file"
15021MAGIC_CMD=$MAGIC_CMD
15022
15023# Used on cygwin: DLL creation program.
15024DLLTOOL="$DLLTOOL"
15025
15026# Used on cygwin: object dumper.
15027OBJDUMP="$OBJDUMP"
15028
15029# Used on cygwin: assembler.
15030AS="$AS"
15031
15032# The name of the directory that contains temporary libtool files.
15033objdir=$objdir
15034
15035# How to create reloadable object files.
15036reload_flag=$lt_reload_flag
15037reload_cmds=$lt_reload_cmds
15038
15039# How to pass a linker flag through the compiler.
15040wl=$lt_lt_prog_compiler_wl_F77
15041
15042# Object file suffix (normally "o").
15043objext="$ac_objext"
15044
15045# Old archive suffix (normally "a").
15046libext="$libext"
15047
15048# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000015049shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000015050
15051# Executable file suffix (normally "").
15052exeext="$exeext"
15053
15054# Additional compiler flags for building library objects.
15055pic_flag=$lt_lt_prog_compiler_pic_F77
15056pic_mode=$pic_mode
15057
15058# What is the maximum length of a command?
15059max_cmd_len=$lt_cv_sys_max_cmd_len
15060
15061# Does compiler simultaneously support -c and -o options?
15062compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15063
15064# Must we lock files when doing compilation ?
15065need_locks=$lt_need_locks
15066
15067# Do we need the lib prefix for modules?
15068need_lib_prefix=$need_lib_prefix
15069
15070# Do we need a version for libraries?
15071need_version=$need_version
15072
15073# Whether dlopen is supported.
15074dlopen_support=$enable_dlopen
15075
15076# Whether dlopen of programs is supported.
15077dlopen_self=$enable_dlopen_self
15078
15079# Whether dlopen of statically linked programs is supported.
15080dlopen_self_static=$enable_dlopen_self_static
15081
15082# Compiler flag to prevent dynamic linking.
15083link_static_flag=$lt_lt_prog_compiler_static_F77
15084
15085# Compiler flag to turn off builtin functions.
15086no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15087
15088# Compiler flag to allow reflexive dlopens.
15089export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15090
15091# Compiler flag to generate shared objects directly from archives.
15092whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15093
15094# Compiler flag to generate thread-safe objects.
15095thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15096
15097# Library versioning type.
15098version_type=$version_type
15099
15100# Format of library name prefix.
15101libname_spec=$lt_libname_spec
15102
15103# List of archive names. First name is the real one, the rest are links.
15104# The last name is the one that the linker finds with -lNAME.
15105library_names_spec=$lt_library_names_spec
15106
15107# The coded name of the library, if different from the real name.
15108soname_spec=$lt_soname_spec
15109
15110# Commands used to build and install an old-style archive.
15111RANLIB=$lt_RANLIB
15112old_archive_cmds=$lt_old_archive_cmds_F77
15113old_postinstall_cmds=$lt_old_postinstall_cmds
15114old_postuninstall_cmds=$lt_old_postuninstall_cmds
15115
15116# Create an old-style archive from a shared archive.
15117old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15118
15119# Create a temporary old-style archive to link instead of a shared archive.
15120old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15121
15122# Commands used to build and install a shared archive.
15123archive_cmds=$lt_archive_cmds_F77
15124archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15125postinstall_cmds=$lt_postinstall_cmds
15126postuninstall_cmds=$lt_postuninstall_cmds
15127
15128# Commands used to build a loadable module (assumed same as above if empty)
15129module_cmds=$lt_module_cmds_F77
15130module_expsym_cmds=$lt_module_expsym_cmds_F77
15131
15132# Commands to strip libraries.
15133old_striplib=$lt_old_striplib
15134striplib=$lt_striplib
15135
15136# Dependencies to place before the objects being linked to create a
15137# shared library.
15138predep_objects=$lt_predep_objects_F77
15139
15140# Dependencies to place after the objects being linked to create a
15141# shared library.
15142postdep_objects=$lt_postdep_objects_F77
15143
15144# Dependencies to place before the objects being linked to create a
15145# shared library.
15146predeps=$lt_predeps_F77
15147
15148# Dependencies to place after the objects being linked to create a
15149# shared library.
15150postdeps=$lt_postdeps_F77
15151
15152# The library search path used internally by the compiler when linking
15153# a shared library.
15154compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15155
15156# Method to check whether dependent libraries are shared objects.
15157deplibs_check_method=$lt_deplibs_check_method
15158
15159# Command to use when deplibs_check_method == file_magic.
15160file_magic_cmd=$lt_file_magic_cmd
15161
15162# Flag that allows shared libraries with undefined symbols to be built.
15163allow_undefined_flag=$lt_allow_undefined_flag_F77
15164
15165# Flag that forces no undefined symbols.
15166no_undefined_flag=$lt_no_undefined_flag_F77
15167
15168# Commands used to finish a libtool library installation in a directory.
15169finish_cmds=$lt_finish_cmds
15170
15171# Same as above, but a single script fragment to be evaled but not shown.
15172finish_eval=$lt_finish_eval
15173
15174# Take the output of nm and produce a listing of raw symbols and C names.
15175global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15176
15177# Transform the output of nm in a proper C declaration
15178global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15179
15180# Transform the output of nm in a C name address pair
15181global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15182
15183# This is the shared library runtime path variable.
15184runpath_var=$runpath_var
15185
15186# This is the shared library path variable.
15187shlibpath_var=$shlibpath_var
15188
15189# Is shlibpath searched before the hard-coded library search path?
15190shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15191
15192# How to hardcode a shared library path into an executable.
15193hardcode_action=$hardcode_action_F77
15194
15195# Whether we should hardcode library paths into libraries.
15196hardcode_into_libs=$hardcode_into_libs
15197
15198# Flag to hardcode \$libdir into a binary during linking.
15199# This must work even if \$libdir does not exist.
15200hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15201
15202# If ld is used when linking, flag to hardcode \$libdir into
15203# a binary during linking. This must work even if \$libdir does
15204# not exist.
15205hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15206
15207# Whether we need a single -rpath flag with a separated argument.
15208hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15209
15210# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15211# resulting binary.
15212hardcode_direct=$hardcode_direct_F77
15213
15214# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15215# resulting binary.
15216hardcode_minus_L=$hardcode_minus_L_F77
15217
15218# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15219# the resulting binary.
15220hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15221
15222# Set to yes if building a shared library automatically hardcodes DIR into the library
15223# and all subsequent libraries and executables linked against it.
15224hardcode_automatic=$hardcode_automatic_F77
15225
15226# Variables whose values should be saved in libtool wrapper scripts and
15227# restored at relink time.
15228variables_saved_for_relink="$variables_saved_for_relink"
15229
15230# Whether libtool must link a program against all its dependency libraries.
15231link_all_deplibs=$link_all_deplibs_F77
15232
15233# Compile-time system search path for libraries
15234sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15235
15236# Run-time system search path for libraries
15237sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15238
15239# Fix the shell variable \$srcfile for the compiler.
15240fix_srcfile_path="$fix_srcfile_path_F77"
15241
15242# Set to yes if exported symbols are required.
15243always_export_symbols=$always_export_symbols_F77
15244
15245# The commands to list exported symbols.
15246export_symbols_cmds=$lt_export_symbols_cmds_F77
15247
15248# The commands to extract the exported symbol list from a shared archive.
15249extract_expsyms_cmds=$lt_extract_expsyms_cmds
15250
15251# Symbols that should not be listed in the preloaded symbols.
15252exclude_expsyms=$lt_exclude_expsyms_F77
15253
15254# Symbols that must always be exported.
15255include_expsyms=$lt_include_expsyms_F77
15256
15257# ### END LIBTOOL TAG CONFIG: $tagname
15258
15259__EOF__
15260
15261
15262else
15263 # If there is no Makefile yet, we rely on a make rule to execute
15264 # `config.status --recheck' to rerun these tests and create the
15265 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015266 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15267 if test -f "$ltmain_in"; then
15268 test -f Makefile && make "$ltmain"
15269 fi
John Criswell47fdd832003-07-14 16:52:07 +000015270fi
15271
15272
15273ac_ext=c
15274ac_cpp='$CPP $CPPFLAGS'
15275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15277ac_compiler_gnu=$ac_cv_c_compiler_gnu
15278
15279CC="$lt_save_CC"
15280
15281 else
15282 tagname=""
15283 fi
15284 ;;
15285
15286 GCJ)
15287 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015288 ac_ext=c
15289ac_cpp='$CPP $CPPFLAGS'
15290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15292ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000015293
15294
15295# Source file extension for Java test sources.
15296ac_ext=java
15297
15298# Object file extension for compiled Java test sources.
15299objext=o
15300objext_GCJ=$objext
15301
15302# Code to be used in simple compile tests
15303lt_simple_compile_test_code="class foo {}\n"
15304
15305# Code to be used in simple link tests
15306lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15307
15308# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15309
15310# If no C compiler was specified, use CC.
15311LTCC=${LTCC-"$CC"}
15312
15313# Allow CC to be a program name with arguments.
15314compiler=$CC
15315
15316
15317# Allow CC to be a program name with arguments.
15318lt_save_CC="$CC"
15319CC=${GCJ-"gcj"}
15320compiler=$CC
15321compiler_GCJ=$CC
15322
15323# GCJ did not exist at the time GCC didn't implicitly link libc in.
15324archive_cmds_need_lc_GCJ=no
15325
John Criswell47fdd832003-07-14 16:52:07 +000015326
15327lt_prog_compiler_no_builtin_flag_GCJ=
15328
15329if test "$GCC" = yes; then
15330 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15331
Reid Spencer2706f8c2004-09-19 23:53:36 +000015332
15333echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015334echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15335if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15336 echo $ECHO_N "(cached) $ECHO_C" >&6
15337else
15338 lt_cv_prog_compiler_rtti_exceptions=no
15339 ac_outfile=conftest.$ac_objext
15340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15341 lt_compiler_flag="-fno-rtti -fno-exceptions"
15342 # Insert the option either (1) after the last *FLAGS variable, or
15343 # (2) before a word containing "conftest.", or (3) at the end.
15344 # Note that $ac_compile itself does not contain backslashes and begins
15345 # with a dollar sign (not a hyphen), so the echo should work correctly.
15346 # The option is referenced via a variable to avoid confusing sed.
15347 lt_compile=`echo "$ac_compile" | $SED \
15348 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15349 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15350 -e 's:$: $lt_compiler_flag:'`
Misha Brukman591edc62004-10-14 18:59:42 +000015351 (eval echo "\"\$as_me:15351: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015352 (eval "$lt_compile" 2>conftest.err)
15353 ac_status=$?
15354 cat conftest.err >&5
Misha Brukman591edc62004-10-14 18:59:42 +000015355 echo "$as_me:15355: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015356 if (exit $ac_status) && test -s "$ac_outfile"; then
15357 # The compiler can only warn and ignore the option if not recognized
15358 # So say no if there are warnings
15359 if test ! -s conftest.err; then
15360 lt_cv_prog_compiler_rtti_exceptions=yes
15361 fi
15362 fi
15363 $rm conftest*
15364
15365fi
15366echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15367echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15368
15369if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15370 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15371else
15372 :
15373fi
15374
15375fi
15376
15377lt_prog_compiler_wl_GCJ=
15378lt_prog_compiler_pic_GCJ=
15379lt_prog_compiler_static_GCJ=
15380
15381echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15382echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15383
15384 if test "$GCC" = yes; then
15385 lt_prog_compiler_wl_GCJ='-Wl,'
15386 lt_prog_compiler_static_GCJ='-static'
15387
15388 case $host_os in
15389 aix*)
15390 # All AIX code is PIC.
15391 if test "$host_cpu" = ia64; then
15392 # AIX 5 now supports IA64 processor
15393 lt_prog_compiler_static_GCJ='-Bstatic'
15394 fi
15395 ;;
15396
15397 amigaos*)
15398 # FIXME: we need at least 68020 code to build shared libraries, but
15399 # adding the `-m68020' flag to GCC prevents building anything better,
15400 # like `-m68040'.
15401 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15402 ;;
15403
15404 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15405 # PIC is the default for these OSes.
15406 ;;
15407
15408 mingw* | pw32* | os2*)
15409 # This hack is so that the source file can tell whether it is being
15410 # built for inclusion in a dll (and should export symbols for example).
15411 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15412 ;;
15413
15414 darwin* | rhapsody*)
15415 # PIC is the default on this platform
15416 # Common symbols not allowed in MH_DYLIB files
15417 lt_prog_compiler_pic_GCJ='-fno-common'
15418 ;;
15419
15420 msdosdjgpp*)
15421 # Just because we use GCC doesn't mean we suddenly get shared libraries
15422 # on systems that don't support them.
15423 lt_prog_compiler_can_build_shared_GCJ=no
15424 enable_shared=no
15425 ;;
15426
15427 sysv4*MP*)
15428 if test -d /usr/nec; then
15429 lt_prog_compiler_pic_GCJ=-Kconform_pic
15430 fi
15431 ;;
15432
15433 hpux*)
15434 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15435 # not for PA HP-UX.
15436 case "$host_cpu" in
15437 hppa*64*|ia64*)
15438 # +Z the default
15439 ;;
15440 *)
15441 lt_prog_compiler_pic_GCJ='-fPIC'
15442 ;;
15443 esac
15444 ;;
15445
15446 *)
15447 lt_prog_compiler_pic_GCJ='-fPIC'
15448 ;;
15449 esac
15450 else
15451 # PORTME Check for flag to pass linker flags through the system compiler.
15452 case $host_os in
15453 aix*)
15454 lt_prog_compiler_wl_GCJ='-Wl,'
15455 if test "$host_cpu" = ia64; then
15456 # AIX 5 now supports IA64 processor
15457 lt_prog_compiler_static_GCJ='-Bstatic'
15458 else
15459 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15460 fi
15461 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015462 darwin*)
15463 # PIC is the default on this platform
15464 # Common symbols not allowed in MH_DYLIB files
15465 case "$cc_basename" in
15466 xlc*)
15467 lt_prog_compiler_pic_GCJ='-qnocommon'
15468 lt_prog_compiler_wl_GCJ='-Wl,'
15469 ;;
15470 esac
15471 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015472
15473 mingw* | pw32* | os2*)
15474 # This hack is so that the source file can tell whether it is being
15475 # built for inclusion in a dll (and should export symbols for example).
15476 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15477 ;;
15478
15479 hpux9* | hpux10* | hpux11*)
15480 lt_prog_compiler_wl_GCJ='-Wl,'
15481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15482 # not for PA HP-UX.
15483 case "$host_cpu" in
15484 hppa*64*|ia64*)
15485 # +Z the default
15486 ;;
15487 *)
15488 lt_prog_compiler_pic_GCJ='+Z'
15489 ;;
15490 esac
15491 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15492 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15493 ;;
15494
15495 irix5* | irix6* | nonstopux*)
15496 lt_prog_compiler_wl_GCJ='-Wl,'
15497 # PIC (with -KPIC) is the default.
15498 lt_prog_compiler_static_GCJ='-non_shared'
15499 ;;
15500
15501 newsos6)
15502 lt_prog_compiler_pic_GCJ='-KPIC'
15503 lt_prog_compiler_static_GCJ='-Bstatic'
15504 ;;
15505
15506 linux*)
15507 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015508 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015509 lt_prog_compiler_wl_GCJ='-Wl,'
15510 lt_prog_compiler_pic_GCJ='-KPIC'
15511 lt_prog_compiler_static_GCJ='-static'
15512 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015513 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015514 lt_prog_compiler_wl_GCJ='-Wl,'
15515 # All Alpha code is PIC.
15516 lt_prog_compiler_static_GCJ='-non_shared'
15517 ;;
15518 esac
15519 ;;
15520
15521 osf3* | osf4* | osf5*)
15522 lt_prog_compiler_wl_GCJ='-Wl,'
15523 # All OSF/1 code is PIC.
15524 lt_prog_compiler_static_GCJ='-non_shared'
15525 ;;
15526
15527 sco3.2v5*)
15528 lt_prog_compiler_pic_GCJ='-Kpic'
15529 lt_prog_compiler_static_GCJ='-dn'
15530 ;;
15531
15532 solaris*)
15533 lt_prog_compiler_wl_GCJ='-Wl,'
15534 lt_prog_compiler_pic_GCJ='-KPIC'
15535 lt_prog_compiler_static_GCJ='-Bstatic'
15536 ;;
15537
15538 sunos4*)
15539 lt_prog_compiler_wl_GCJ='-Qoption ld '
15540 lt_prog_compiler_pic_GCJ='-PIC'
15541 lt_prog_compiler_static_GCJ='-Bstatic'
15542 ;;
15543
15544 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15545 lt_prog_compiler_wl_GCJ='-Wl,'
15546 lt_prog_compiler_pic_GCJ='-KPIC'
15547 lt_prog_compiler_static_GCJ='-Bstatic'
15548 ;;
15549
15550 sysv4*MP*)
15551 if test -d /usr/nec ;then
15552 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15553 lt_prog_compiler_static_GCJ='-Bstatic'
15554 fi
15555 ;;
15556
15557 uts4*)
15558 lt_prog_compiler_pic_GCJ='-pic'
15559 lt_prog_compiler_static_GCJ='-Bstatic'
15560 ;;
15561
15562 *)
15563 lt_prog_compiler_can_build_shared_GCJ=no
15564 ;;
15565 esac
15566 fi
15567
15568echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15569echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15570
15571#
15572# Check to make sure the PIC flag actually works.
15573#
15574if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015575
15576echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015577echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15578if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15579 echo $ECHO_N "(cached) $ECHO_C" >&6
15580else
15581 lt_prog_compiler_pic_works_GCJ=no
15582 ac_outfile=conftest.$ac_objext
15583 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15584 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15585 # Insert the option either (1) after the last *FLAGS variable, or
15586 # (2) before a word containing "conftest.", or (3) at the end.
15587 # Note that $ac_compile itself does not contain backslashes and begins
15588 # with a dollar sign (not a hyphen), so the echo should work correctly.
15589 # The option is referenced via a variable to avoid confusing sed.
15590 lt_compile=`echo "$ac_compile" | $SED \
15591 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15592 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15593 -e 's:$: $lt_compiler_flag:'`
Misha Brukman591edc62004-10-14 18:59:42 +000015594 (eval echo "\"\$as_me:15594: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015595 (eval "$lt_compile" 2>conftest.err)
15596 ac_status=$?
15597 cat conftest.err >&5
Misha Brukman591edc62004-10-14 18:59:42 +000015598 echo "$as_me:15598: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015599 if (exit $ac_status) && test -s "$ac_outfile"; then
15600 # The compiler can only warn and ignore the option if not recognized
15601 # So say no if there are warnings
15602 if test ! -s conftest.err; then
15603 lt_prog_compiler_pic_works_GCJ=yes
15604 fi
15605 fi
15606 $rm conftest*
15607
15608fi
15609echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15610echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15611
15612if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15613 case $lt_prog_compiler_pic_GCJ in
15614 "" | " "*) ;;
15615 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15616 esac
15617else
15618 lt_prog_compiler_pic_GCJ=
15619 lt_prog_compiler_can_build_shared_GCJ=no
15620fi
15621
15622fi
15623case "$host_os" in
15624 # For platforms which do not support PIC, -DPIC is meaningless:
15625 *djgpp*)
15626 lt_prog_compiler_pic_GCJ=
15627 ;;
15628 *)
15629 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15630 ;;
15631esac
15632
15633echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15634echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15635if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15636 echo $ECHO_N "(cached) $ECHO_C" >&6
15637else
15638 lt_cv_prog_compiler_c_o_GCJ=no
15639 $rm -r conftest 2>/dev/null
15640 mkdir conftest
15641 cd conftest
15642 mkdir out
15643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15644
John Criswell47fdd832003-07-14 16:52:07 +000015645 lt_compiler_flag="-o out/conftest2.$ac_objext"
15646 # Insert the option either (1) after the last *FLAGS variable, or
15647 # (2) before a word containing "conftest.", or (3) at the end.
15648 # Note that $ac_compile itself does not contain backslashes and begins
15649 # with a dollar sign (not a hyphen), so the echo should work correctly.
15650 lt_compile=`echo "$ac_compile" | $SED \
15651 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15653 -e 's:$: $lt_compiler_flag:'`
Misha Brukman591edc62004-10-14 18:59:42 +000015654 (eval echo "\"\$as_me:15654: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015655 (eval "$lt_compile" 2>out/conftest.err)
15656 ac_status=$?
15657 cat out/conftest.err >&5
Misha Brukman591edc62004-10-14 18:59:42 +000015658 echo "$as_me:15658: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15660 then
15661 # The compiler can only warn and ignore the option if not recognized
15662 # So say no if there are warnings
15663 if test ! -s out/conftest.err; then
15664 lt_cv_prog_compiler_c_o_GCJ=yes
15665 fi
15666 fi
15667 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000015668 $rm conftest*
15669 # SGI C++ compiler will create directory out/ii_files/ for
15670 # template instantiation
15671 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15672 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015673 cd ..
15674 rmdir conftest
15675 $rm conftest*
15676
15677fi
15678echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15679echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15680
15681
15682hard_links="nottested"
15683if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15684 # do not overwrite the value of need_locks provided by the user
15685 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15686echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15687 hard_links=yes
15688 $rm conftest*
15689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15690 touch conftest.a
15691 ln conftest.a conftest.b 2>&5 || hard_links=no
15692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15693 echo "$as_me:$LINENO: result: $hard_links" >&5
15694echo "${ECHO_T}$hard_links" >&6
15695 if test "$hard_links" = no; then
15696 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15697echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15698 need_locks=warn
15699 fi
15700else
15701 need_locks=no
15702fi
15703
15704echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15705echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15706
15707 runpath_var=
15708 allow_undefined_flag_GCJ=
15709 enable_shared_with_static_runtimes_GCJ=no
15710 archive_cmds_GCJ=
15711 archive_expsym_cmds_GCJ=
15712 old_archive_From_new_cmds_GCJ=
15713 old_archive_from_expsyms_cmds_GCJ=
15714 export_dynamic_flag_spec_GCJ=
15715 whole_archive_flag_spec_GCJ=
15716 thread_safe_flag_spec_GCJ=
15717 hardcode_libdir_flag_spec_GCJ=
15718 hardcode_libdir_flag_spec_ld_GCJ=
15719 hardcode_libdir_separator_GCJ=
15720 hardcode_direct_GCJ=no
15721 hardcode_minus_L_GCJ=no
15722 hardcode_shlibpath_var_GCJ=unsupported
15723 link_all_deplibs_GCJ=unknown
15724 hardcode_automatic_GCJ=no
15725 module_cmds_GCJ=
15726 module_expsym_cmds_GCJ=
15727 always_export_symbols_GCJ=no
15728 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15729 # include_expsyms should be a list of space-separated symbols to be *always*
15730 # included in the symbol list
15731 include_expsyms_GCJ=
15732 # exclude_expsyms can be an extended regexp of symbols to exclude
15733 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15734 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15735 # as well as any symbol that contains `d'.
15736 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15737 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15738 # platforms (ab)use it in PIC code, but their linkers get confused if
15739 # the symbol is explicitly referenced. Since portable code cannot
15740 # rely on this symbol name, it's probably fine to never include it in
15741 # preloaded symbol tables.
15742 extract_expsyms_cmds=
15743
15744 case $host_os in
15745 cygwin* | mingw* | pw32*)
15746 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15747 # When not using gcc, we currently assume that we are using
15748 # Microsoft Visual C++.
15749 if test "$GCC" != yes; then
15750 with_gnu_ld=no
15751 fi
15752 ;;
15753 openbsd*)
15754 with_gnu_ld=no
15755 ;;
15756 esac
15757
15758 ld_shlibs_GCJ=yes
15759 if test "$with_gnu_ld" = yes; then
15760 # If archive_cmds runs LD, not CC, wlarc should be empty
15761 wlarc='${wl}'
15762
15763 # See if GNU ld supports shared libraries.
15764 case $host_os in
15765 aix3* | aix4* | aix5*)
15766 # On AIX/PPC, the GNU linker is very broken
15767 if test "$host_cpu" != ia64; then
15768 ld_shlibs_GCJ=no
15769 cat <<EOF 1>&2
15770
15771*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15772*** to be unable to reliably create shared libraries on AIX.
15773*** Therefore, libtool is disabling shared libraries support. If you
15774*** really care for shared libraries, you may want to modify your PATH
15775*** so that a non-GNU linker is found, and then restart.
15776
15777EOF
15778 fi
15779 ;;
15780
15781 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000015782 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 +000015783 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15784 hardcode_minus_L_GCJ=yes
15785
15786 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15787 # that the semantics of dynamic libraries on AmigaOS, at least up
15788 # to version 4, is to share data among multiple programs linked
15789 # with the same dynamic library. Since this doesn't match the
15790 # behavior of shared libraries on other platforms, we can't use
15791 # them.
15792 ld_shlibs_GCJ=no
15793 ;;
15794
15795 beos*)
15796 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15797 allow_undefined_flag_GCJ=unsupported
15798 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15799 # support --undefined. This deserves some investigation. FIXME
15800 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15801 else
15802 ld_shlibs_GCJ=no
15803 fi
15804 ;;
15805
15806 cygwin* | mingw* | pw32*)
15807 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15808 # as there is no search path for DLLs.
15809 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15810 allow_undefined_flag_GCJ=unsupported
15811 always_export_symbols_GCJ=no
15812 enable_shared_with_static_runtimes_GCJ=yes
15813 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15814
15815 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15816 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15817 # If the export-symbols file already is a .def file (1st line
15818 # is EXPORTS), use it as is; otherwise, prepend...
15819 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15820 cp $export_symbols $output_objdir/$soname.def;
15821 else
15822 echo EXPORTS > $output_objdir/$soname.def;
15823 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer177dbe22004-10-13 01:01:03 +000015824 fi~
15825 $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 +000015826 else
15827 ld_shlibs=no
15828 fi
15829 ;;
15830
15831 netbsd*)
15832 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15833 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15834 wlarc=
15835 else
15836 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15837 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15838 fi
15839 ;;
15840
15841 solaris* | sysv5*)
15842 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15843 ld_shlibs_GCJ=no
15844 cat <<EOF 1>&2
15845
15846*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15847*** create shared libraries on Solaris systems. Therefore, libtool
15848*** is disabling shared libraries support. We urge you to upgrade GNU
15849*** binutils to release 2.9.1 or newer. Another option is to modify
15850*** your PATH or compiler configuration so that the native linker is
15851*** used, and then restart.
15852
15853EOF
15854 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15855 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15856 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15857 else
15858 ld_shlibs_GCJ=no
15859 fi
15860 ;;
15861
15862 sunos4*)
15863 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15864 wlarc=
15865 hardcode_direct_GCJ=yes
15866 hardcode_shlibpath_var_GCJ=no
15867 ;;
15868
Reid Spencer2706f8c2004-09-19 23:53:36 +000015869 linux*)
15870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15871 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15872 archive_cmds_GCJ="$tmp_archive_cmds"
15873 supports_anon_versioning=no
15874 case `$LD -v 2>/dev/null` in
15875 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15876 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15877 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15878 *\ 2.11.*) ;; # other 2.11 versions
15879 *) supports_anon_versioning=yes ;;
15880 esac
15881 if test $supports_anon_versioning = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000015882 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15883cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15884$echo "local: *; };" >> $output_objdir/$libname.ver~
Reid Spencer2706f8c2004-09-19 23:53:36 +000015885 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15886 else
15887 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15888 fi
15889 else
15890 ld_shlibs_GCJ=no
15891 fi
15892 ;;
15893
John Criswell47fdd832003-07-14 16:52:07 +000015894 *)
15895 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15896 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15897 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15898 else
15899 ld_shlibs_GCJ=no
15900 fi
15901 ;;
15902 esac
15903
15904 if test "$ld_shlibs_GCJ" = yes; then
15905 runpath_var=LD_RUN_PATH
15906 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15907 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15908 # ancient GNU ld didn't support --whole-archive et. al.
15909 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15910 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15911 else
15912 whole_archive_flag_spec_GCJ=
15913 fi
15914 fi
15915 else
15916 # PORTME fill in a description of your system's linker (not GNU ld)
15917 case $host_os in
15918 aix3*)
15919 allow_undefined_flag_GCJ=unsupported
15920 always_export_symbols_GCJ=yes
Reid Spencer177dbe22004-10-13 01:01:03 +000015921 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 +000015922 # Note: this linker hardcodes the directories in LIBPATH if there
15923 # are no directories specified by -L.
15924 hardcode_minus_L_GCJ=yes
15925 if test "$GCC" = yes && test -z "$link_static_flag"; then
15926 # Neither direct hardcoding nor static linking is supported with a
15927 # broken collect2.
15928 hardcode_direct_GCJ=unsupported
15929 fi
15930 ;;
15931
15932 aix4* | aix5*)
15933 if test "$host_cpu" = ia64; then
15934 # On IA64, the linker does run time linking by default, so we don't
15935 # have to do anything special.
15936 aix_use_runtimelinking=no
15937 exp_sym_flag='-Bexport'
15938 no_entry_flag=""
15939 else
15940 # If we're using GNU nm, then we don't want the "-C" option.
15941 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15942 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15943 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'
15944 else
15945 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'
15946 fi
15947 aix_use_runtimelinking=no
15948
15949 # Test if we are trying to use run time linking or normal
15950 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15951 # need to do runtime linking.
15952 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15953 for ld_flag in $LDFLAGS; do
15954 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15955 aix_use_runtimelinking=yes
15956 break
15957 fi
15958 done
15959 esac
15960
15961 exp_sym_flag='-bexport'
15962 no_entry_flag='-bnoentry'
15963 fi
15964
15965 # When large executables or shared objects are built, AIX ld can
15966 # have problems creating the table of contents. If linking a library
15967 # or program results in "error TOC overflow" add -mminimal-toc to
15968 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15969 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15970
15971 archive_cmds_GCJ=''
15972 hardcode_direct_GCJ=yes
15973 hardcode_libdir_separator_GCJ=':'
15974 link_all_deplibs_GCJ=yes
15975
15976 if test "$GCC" = yes; then
15977 case $host_os in aix4.012|aix4.012.*)
15978 # We only want to do this on AIX 4.2 and lower, the check
15979 # below for broken collect2 doesn't work under 4.3+
15980 collect2name=`${CC} -print-prog-name=collect2`
15981 if test -f "$collect2name" && \
15982 strings "$collect2name" | grep resolve_lib_name >/dev/null
15983 then
15984 # We have reworked collect2
15985 hardcode_direct_GCJ=yes
15986 else
15987 # We have old collect2
15988 hardcode_direct_GCJ=unsupported
15989 # It fails to find uninstalled libraries when the uninstalled
15990 # path is not listed in the libpath. Setting hardcode_minus_L
15991 # to unsupported forces relinking
15992 hardcode_minus_L_GCJ=yes
15993 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15994 hardcode_libdir_separator_GCJ=
15995 fi
15996 esac
15997 shared_flag='-shared'
15998 else
15999 # not using gcc
16000 if test "$host_cpu" = ia64; then
16001 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16002 # chokes on -Wl,-G. The following line is correct:
16003 shared_flag='-G'
16004 else
16005 if test "$aix_use_runtimelinking" = yes; then
16006 shared_flag='${wl}-G'
16007 else
16008 shared_flag='${wl}-bM:SRE'
16009 fi
16010 fi
16011 fi
16012
16013 # It seems that -bexpall does not export symbols beginning with
16014 # underscore (_), so it is better to generate a list of symbols to export.
16015 always_export_symbols_GCJ=yes
16016 if test "$aix_use_runtimelinking" = yes; then
16017 # Warning - without using the other runtime loading flags (-brtl),
16018 # -berok will link without error, but may produce a broken library.
16019 allow_undefined_flag_GCJ='-berok'
16020 # Determine the default libpath from the value encoded in an empty executable.
16021 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016022/* confdefs.h. */
16023_ACEOF
16024cat confdefs.h >>conftest.$ac_ext
16025cat >>conftest.$ac_ext <<_ACEOF
16026/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016027
John Criswell47fdd832003-07-14 16:52:07 +000016028int
16029main ()
16030{
16031
16032 ;
16033 return 0;
16034}
16035_ACEOF
16036rm -f conftest.$ac_objext conftest$ac_exeext
16037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016038 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016039 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016040 grep -v '^ *+' conftest.er1 >conftest.err
16041 rm -f conftest.er1
16042 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016045 { ac_try='test -z "$ac_c_werror_flag"
16046 || test ! -s conftest.err'
16047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16048 (eval $ac_try) 2>&5
16049 ac_status=$?
16050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16051 (exit $ac_status); }; } &&
16052 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16054 (eval $ac_try) 2>&5
16055 ac_status=$?
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058
16059aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16060}'`
16061# Check for a 64-bit object if we didn't find anything.
16062if 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; }
16063}'`; fi
16064else
16065 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016066sed 's/^/| /' conftest.$ac_ext >&5
16067
John Criswell47fdd832003-07-14 16:52:07 +000016068fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016069rm -f conftest.err conftest.$ac_objext \
16070 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016071if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16072
16073 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16074 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"
16075 else
16076 if test "$host_cpu" = ia64; then
16077 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16078 allow_undefined_flag_GCJ="-z nodefs"
16079 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"
16080 else
16081 # Determine the default libpath from the value encoded in an empty executable.
16082 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016083/* confdefs.h. */
16084_ACEOF
16085cat confdefs.h >>conftest.$ac_ext
16086cat >>conftest.$ac_ext <<_ACEOF
16087/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016088
John Criswell47fdd832003-07-14 16:52:07 +000016089int
16090main ()
16091{
16092
16093 ;
16094 return 0;
16095}
16096_ACEOF
16097rm -f conftest.$ac_objext conftest$ac_exeext
16098if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016099 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016100 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016101 grep -v '^ *+' conftest.er1 >conftest.err
16102 rm -f conftest.er1
16103 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016106 { ac_try='test -z "$ac_c_werror_flag"
16107 || test ! -s conftest.err'
16108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16109 (eval $ac_try) 2>&5
16110 ac_status=$?
16111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16112 (exit $ac_status); }; } &&
16113 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16115 (eval $ac_try) 2>&5
16116 ac_status=$?
16117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16118 (exit $ac_status); }; }; then
16119
16120aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16121}'`
16122# Check for a 64-bit object if we didn't find anything.
16123if 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; }
16124}'`; fi
16125else
16126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016127sed 's/^/| /' conftest.$ac_ext >&5
16128
John Criswell47fdd832003-07-14 16:52:07 +000016129fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016130rm -f conftest.err conftest.$ac_objext \
16131 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016132if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16133
16134 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16135 # Warning - without using the other run time loading flags,
16136 # -berok will link without error, but may produce a broken library.
16137 no_undefined_flag_GCJ=' ${wl}-bernotok'
16138 allow_undefined_flag_GCJ=' ${wl}-berok'
16139 # -bexpall does not export symbols beginning with underscore (_)
16140 always_export_symbols_GCJ=yes
16141 # Exported symbols can be pulled into shared objects from archives
16142 whole_archive_flag_spec_GCJ=' '
16143 archive_cmds_need_lc_GCJ=yes
16144 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer177dbe22004-10-13 01:01:03 +000016145 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 +000016146 fi
16147 fi
16148 ;;
16149
16150 amigaos*)
Reid Spencer177dbe22004-10-13 01:01:03 +000016151 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 +000016152 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16153 hardcode_minus_L_GCJ=yes
16154 # see comment about different semantics on the GNU ld section
16155 ld_shlibs_GCJ=no
16156 ;;
16157
Reid Spencer2706f8c2004-09-19 23:53:36 +000016158 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016159 export_dynamic_flag_spec_GCJ=-rdynamic
16160 ;;
16161
16162 cygwin* | mingw* | pw32*)
16163 # When not using gcc, we currently assume that we are using
16164 # Microsoft Visual C++.
16165 # hardcode_libdir_flag_spec is actually meaningless, as there is
16166 # no search path for DLLs.
16167 hardcode_libdir_flag_spec_GCJ=' '
16168 allow_undefined_flag_GCJ=unsupported
16169 # Tell ltmain to make .lib files, not .a files.
16170 libext=lib
16171 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016172 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016173 # FIXME: Setting linknames here is a bad hack.
Reid Spencer177dbe22004-10-13 01:01:03 +000016174 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 +000016175 # The linker will automatically build a .lib file if we build a DLL.
16176 old_archive_From_new_cmds_GCJ='true'
16177 # FIXME: Should let the user specify the lib program.
16178 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16179 fix_srcfile_path='`cygpath -w "$srcfile"`'
16180 enable_shared_with_static_runtimes_GCJ=yes
16181 ;;
16182
16183 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000016184 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016185 rhapsody* | darwin1.[012])
16186 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16187 ;;
16188 *) # Darwin 1.3 on
16189 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16190 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16191 else
16192 case ${MACOSX_DEPLOYMENT_TARGET} in
16193 10.[012])
16194 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16195 ;;
16196 10.*)
16197 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16198 ;;
16199 esac
16200 fi
16201 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016202 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000016203 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000016204 hardcode_direct_GCJ=no
16205 hardcode_automatic_GCJ=yes
16206 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000016207 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000016208 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016209 if test "$GCC" = yes ; then
16210 output_verbose_link_cmd='echo'
16211 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16212 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16213 # 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 +000016214 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}'
16215 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 +000016216 else
16217 case "$cc_basename" in
16218 xlc*)
16219 output_verbose_link_cmd='echo'
16220 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16221 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16222 # 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 +000016223 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}'
16224 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 +000016225 ;;
16226 *)
16227 ld_shlibs_GCJ=no
16228 ;;
16229 esac
John Criswell47fdd832003-07-14 16:52:07 +000016230 fi
16231 ;;
16232
16233 dgux*)
16234 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16235 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16236 hardcode_shlibpath_var_GCJ=no
16237 ;;
16238
16239 freebsd1*)
16240 ld_shlibs_GCJ=no
16241 ;;
16242
16243 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16244 # support. Future versions do this automatically, but an explicit c++rt0.o
16245 # does not break anything, and helps significantly (at the cost of a little
16246 # extra space).
16247 freebsd2.2*)
16248 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16249 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16250 hardcode_direct_GCJ=yes
16251 hardcode_shlibpath_var_GCJ=no
16252 ;;
16253
16254 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16255 freebsd2*)
16256 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16257 hardcode_direct_GCJ=yes
16258 hardcode_minus_L_GCJ=yes
16259 hardcode_shlibpath_var_GCJ=no
16260 ;;
16261
16262 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016263 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016264 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16265 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16266 hardcode_direct_GCJ=yes
16267 hardcode_shlibpath_var_GCJ=no
16268 ;;
16269
16270 hpux9*)
16271 if test "$GCC" = yes; then
Reid Spencer177dbe22004-10-13 01:01:03 +000016272 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 +000016273 else
Reid Spencer177dbe22004-10-13 01:01:03 +000016274 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 +000016275 fi
16276 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16277 hardcode_libdir_separator_GCJ=:
16278 hardcode_direct_GCJ=yes
16279
16280 # hardcode_minus_L: Not really in the search PATH,
16281 # but as the default location of the library.
16282 hardcode_minus_L_GCJ=yes
16283 export_dynamic_flag_spec_GCJ='${wl}-E'
16284 ;;
16285
16286 hpux10* | hpux11*)
16287 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16288 case "$host_cpu" in
16289 hppa*64*|ia64*)
16290 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16291 ;;
16292 *)
16293 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16294 ;;
16295 esac
16296 else
16297 case "$host_cpu" in
16298 hppa*64*|ia64*)
16299 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16300 ;;
16301 *)
16302 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16303 ;;
16304 esac
16305 fi
16306 if test "$with_gnu_ld" = no; then
16307 case "$host_cpu" in
16308 hppa*64*)
16309 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16310 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16311 hardcode_libdir_separator_GCJ=:
16312 hardcode_direct_GCJ=no
16313 hardcode_shlibpath_var_GCJ=no
16314 ;;
16315 ia64*)
16316 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16317 hardcode_direct_GCJ=no
16318 hardcode_shlibpath_var_GCJ=no
16319
16320 # hardcode_minus_L: Not really in the search PATH,
16321 # but as the default location of the library.
16322 hardcode_minus_L_GCJ=yes
16323 ;;
16324 *)
16325 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16326 hardcode_libdir_separator_GCJ=:
16327 hardcode_direct_GCJ=yes
16328 export_dynamic_flag_spec_GCJ='${wl}-E'
16329
16330 # hardcode_minus_L: Not really in the search PATH,
16331 # but as the default location of the library.
16332 hardcode_minus_L_GCJ=yes
16333 ;;
16334 esac
16335 fi
16336 ;;
16337
16338 irix5* | irix6* | nonstopux*)
16339 if test "$GCC" = yes; then
16340 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'
16341 else
16342 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'
16343 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16344 fi
16345 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16346 hardcode_libdir_separator_GCJ=:
16347 link_all_deplibs_GCJ=yes
16348 ;;
16349
16350 netbsd*)
16351 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16352 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16353 else
16354 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16355 fi
16356 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16357 hardcode_direct_GCJ=yes
16358 hardcode_shlibpath_var_GCJ=no
16359 ;;
16360
16361 newsos6)
16362 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16363 hardcode_direct_GCJ=yes
16364 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16365 hardcode_libdir_separator_GCJ=:
16366 hardcode_shlibpath_var_GCJ=no
16367 ;;
16368
16369 openbsd*)
16370 hardcode_direct_GCJ=yes
16371 hardcode_shlibpath_var_GCJ=no
16372 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16373 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016374 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 +000016375 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16376 export_dynamic_flag_spec_GCJ='${wl}-E'
16377 else
16378 case $host_os in
16379 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16380 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16381 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16382 ;;
16383 *)
16384 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16385 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16386 ;;
16387 esac
16388 fi
16389 ;;
16390
16391 os2*)
16392 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16393 hardcode_minus_L_GCJ=yes
16394 allow_undefined_flag_GCJ=unsupported
Reid Spencer177dbe22004-10-13 01:01:03 +000016395 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 +000016396 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16397 ;;
16398
16399 osf3*)
16400 if test "$GCC" = yes; then
16401 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16402 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'
16403 else
16404 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16405 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'
16406 fi
16407 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16408 hardcode_libdir_separator_GCJ=:
16409 ;;
16410
16411 osf4* | osf5*) # as osf3* with the addition of -msym flag
16412 if test "$GCC" = yes; then
16413 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16414 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'
16415 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16416 else
16417 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16418 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 +000016419 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~
16420 $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'
16421
John Criswell47fdd832003-07-14 16:52:07 +000016422 # Both c and cxx compiler support -rpath directly
16423 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16424 fi
16425 hardcode_libdir_separator_GCJ=:
16426 ;;
16427
16428 sco3.2v5*)
16429 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16430 hardcode_shlibpath_var_GCJ=no
16431 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16432 runpath_var=LD_RUN_PATH
16433 hardcode_runpath_var=yes
16434 ;;
16435
16436 solaris*)
16437 no_undefined_flag_GCJ=' -z text'
16438 if test "$GCC" = yes; then
16439 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016440 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16441 $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 +000016442 else
16443 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016444 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16445 $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 +000016446 fi
16447 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16448 hardcode_shlibpath_var_GCJ=no
16449 case $host_os in
16450 solaris2.[0-5] | solaris2.[0-5].*) ;;
16451 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16452 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16453 esac
16454 link_all_deplibs_GCJ=yes
16455 ;;
16456
16457 sunos4*)
16458 if test "x$host_vendor" = xsequent; then
16459 # Use $CC to link under sequent, because it throws in some extra .o
16460 # files that make .init and .fini sections work.
16461 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16462 else
16463 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16464 fi
16465 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16466 hardcode_direct_GCJ=yes
16467 hardcode_minus_L_GCJ=yes
16468 hardcode_shlibpath_var_GCJ=no
16469 ;;
16470
16471 sysv4)
16472 case $host_vendor in
16473 sni)
16474 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16475 hardcode_direct_GCJ=yes # is this really true???
16476 ;;
16477 siemens)
16478 ## LD is ld it makes a PLAMLIB
16479 ## CC just makes a GrossModule.
16480 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16481 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16482 hardcode_direct_GCJ=no
16483 ;;
16484 motorola)
16485 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16486 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16487 ;;
16488 esac
16489 runpath_var='LD_RUN_PATH'
16490 hardcode_shlibpath_var_GCJ=no
16491 ;;
16492
16493 sysv4.3*)
16494 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16495 hardcode_shlibpath_var_GCJ=no
16496 export_dynamic_flag_spec_GCJ='-Bexport'
16497 ;;
16498
16499 sysv4*MP*)
16500 if test -d /usr/nec; then
16501 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16502 hardcode_shlibpath_var_GCJ=no
16503 runpath_var=LD_RUN_PATH
16504 hardcode_runpath_var=yes
16505 ld_shlibs_GCJ=yes
16506 fi
16507 ;;
16508
16509 sysv4.2uw2*)
16510 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16511 hardcode_direct_GCJ=yes
16512 hardcode_minus_L_GCJ=no
16513 hardcode_shlibpath_var_GCJ=no
16514 hardcode_runpath_var=yes
16515 runpath_var=LD_RUN_PATH
16516 ;;
16517
16518 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16519 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16520 if test "$GCC" = yes; then
16521 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16522 else
16523 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16524 fi
16525 runpath_var='LD_RUN_PATH'
16526 hardcode_shlibpath_var_GCJ=no
16527 ;;
16528
16529 sysv5*)
16530 no_undefined_flag_GCJ=' -z text'
16531 # $CC -shared without GNU ld will not create a library from C++
16532 # object files and a static libstdc++, better avoid it by now
16533 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer177dbe22004-10-13 01:01:03 +000016534 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16535 $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 +000016536 hardcode_libdir_flag_spec_GCJ=
16537 hardcode_shlibpath_var_GCJ=no
16538 runpath_var='LD_RUN_PATH'
16539 ;;
16540
16541 uts4*)
16542 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16544 hardcode_shlibpath_var_GCJ=no
16545 ;;
16546
16547 *)
16548 ld_shlibs_GCJ=no
16549 ;;
16550 esac
16551 fi
16552
16553echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16554echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16555test "$ld_shlibs_GCJ" = no && can_build_shared=no
16556
16557variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16558if test "$GCC" = yes; then
16559 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16560fi
16561
16562#
16563# Do we need to explicitly link libc?
16564#
16565case "x$archive_cmds_need_lc_GCJ" in
16566x|xyes)
16567 # Assume -lc should be added
16568 archive_cmds_need_lc_GCJ=yes
16569
16570 if test "$enable_shared" = yes && test "$GCC" = yes; then
16571 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016572 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016573 # FIXME: we may have to deal with multi-command sequences.
16574 ;;
16575 '$CC '*)
16576 # Test whether the compiler implicitly links with -lc since on some
16577 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16578 # to ld, don't add -lc before -lgcc.
16579 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16580echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16581 $rm conftest*
16582 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16583
16584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16585 (eval $ac_compile) 2>&5
16586 ac_status=$?
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } 2>conftest.err; then
16589 soname=conftest
16590 lib=conftest
16591 libobjs=conftest.$ac_objext
16592 deplibs=
16593 wl=$lt_prog_compiler_wl_GCJ
16594 compiler_flags=-v
16595 linker_flags=-v
16596 verstring=
16597 output_objdir=.
16598 libname=conftest
16599 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16600 allow_undefined_flag_GCJ=
16601 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16602 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16603 ac_status=$?
16604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16605 (exit $ac_status); }
16606 then
16607 archive_cmds_need_lc_GCJ=no
16608 else
16609 archive_cmds_need_lc_GCJ=yes
16610 fi
16611 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16612 else
16613 cat conftest.err 1>&5
16614 fi
16615 $rm conftest*
16616 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16617echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16618 ;;
16619 esac
16620 fi
16621 ;;
16622esac
16623
John Criswell47fdd832003-07-14 16:52:07 +000016624echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16625echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16626library_names_spec=
16627libname_spec='lib$name'
16628soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016629shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016630postinstall_cmds=
16631postuninstall_cmds=
16632finish_cmds=
16633finish_eval=
16634shlibpath_var=
16635shlibpath_overrides_runpath=unknown
16636version_type=none
16637dynamic_linker="$host_os ld.so"
16638sys_lib_dlsearch_path_spec="/lib /usr/lib"
16639if test "$GCC" = yes; then
16640 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16641 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16642 # if the path contains ";" then we assume it to be the separator
16643 # otherwise default to the standard path separator (i.e. ":") - it is
16644 # assumed that no part of a normal pathname contains ";" but that should
16645 # okay in the real world where ";" in dirpaths is itself problematic.
16646 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16647 else
16648 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16649 fi
16650else
16651 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16652fi
16653need_lib_prefix=unknown
16654hardcode_into_libs=no
16655
16656# when you set need_version to no, make sure it does not cause -set_version
16657# flags to be left without arguments
16658need_version=unknown
16659
16660case $host_os in
16661aix3*)
16662 version_type=linux
16663 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16664 shlibpath_var=LIBPATH
16665
16666 # AIX 3 has no versioning support, so we append a major version to the name.
16667 soname_spec='${libname}${release}${shared_ext}$major'
16668 ;;
16669
16670aix4* | aix5*)
16671 version_type=linux
16672 need_lib_prefix=no
16673 need_version=no
16674 hardcode_into_libs=yes
16675 if test "$host_cpu" = ia64; then
16676 # AIX 5 supports IA64
16677 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16678 shlibpath_var=LD_LIBRARY_PATH
16679 else
16680 # With GCC up to 2.95.x, collect2 would create an import file
16681 # for dependence libraries. The import file would start with
16682 # the line `#! .'. This would cause the generated library to
16683 # depend on `.', always an invalid library. This was fixed in
16684 # development snapshots of GCC prior to 3.0.
16685 case $host_os in
16686 aix4 | aix4.[01] | aix4.[01].*)
16687 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16688 echo ' yes '
16689 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16690 :
16691 else
16692 can_build_shared=no
16693 fi
16694 ;;
16695 esac
16696 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16697 # soname into executable. Probably we can add versioning support to
16698 # collect2, so additional links can be useful in future.
16699 if test "$aix_use_runtimelinking" = yes; then
16700 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16701 # instead of lib<name>.a to let people know that these are not
16702 # typical AIX shared libraries.
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16704 else
16705 # We preserve .a as extension for shared libraries through AIX4.2
16706 # and later when we are not doing run time linking.
16707 library_names_spec='${libname}${release}.a $libname.a'
16708 soname_spec='${libname}${release}${shared_ext}$major'
16709 fi
16710 shlibpath_var=LIBPATH
16711 fi
16712 ;;
16713
16714amigaos*)
16715 library_names_spec='$libname.ixlibrary $libname.a'
16716 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016717 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 +000016718 ;;
16719
16720beos*)
16721 library_names_spec='${libname}${shared_ext}'
16722 dynamic_linker="$host_os ld.so"
16723 shlibpath_var=LIBRARY_PATH
16724 ;;
16725
Reid Spencer2706f8c2004-09-19 23:53:36 +000016726bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016727 version_type=linux
16728 need_version=no
16729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16730 soname_spec='${libname}${release}${shared_ext}$major'
16731 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16732 shlibpath_var=LD_LIBRARY_PATH
16733 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16734 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16735 # the default ld.so.conf also contains /usr/contrib/lib and
16736 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16737 # libtool to hard-code these into programs
16738 ;;
16739
16740cygwin* | mingw* | pw32*)
16741 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016742 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016743 need_version=no
16744 need_lib_prefix=no
16745
16746 case $GCC,$host_os in
16747 yes,cygwin* | yes,mingw* | yes,pw32*)
16748 library_names_spec='$libname.dll.a'
16749 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer177dbe22004-10-13 01:01:03 +000016750 postinstall_cmds='base_file=`basename \${file}`~
16751 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16752 dldir=$destdir/`dirname \$dlpath`~
16753 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +000016754 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer177dbe22004-10-13 01:01:03 +000016755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16756 dlpath=$dir/\$dldll~
John Criswell47fdd832003-07-14 16:52:07 +000016757 $rm \$dlpath'
16758 shlibpath_overrides_runpath=yes
16759
16760 case $host_os in
16761 cygwin*)
16762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16763 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 +000016764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016765 ;;
16766 mingw*)
16767 # MinGW DLLs use traditional 'lib' prefix
16768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16771 # It is most probably a Windows format PATH printed by
16772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16773 # path with ; separators, and with drive letters. We can handle the
16774 # drive letters (cygwin fileutils understands them), so leave them,
16775 # especially as we might pass files found there to a mingw objdump,
16776 # which wouldn't understand a cygwinified path. Ahh.
16777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16778 else
16779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16780 fi
16781 ;;
16782 pw32*)
16783 # pw32 DLLs use 'pw' prefix rather than 'lib'
16784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16785 ;;
16786 esac
16787 ;;
16788
16789 *)
16790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16791 ;;
16792 esac
16793 dynamic_linker='Win32 ld.exe'
16794 # FIXME: first we should search . and the directory the executable is in
16795 shlibpath_var=PATH
16796 ;;
16797
16798darwin* | rhapsody*)
16799 dynamic_linker="$host_os dyld"
16800 version_type=darwin
16801 need_lib_prefix=no
16802 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016804 soname_spec='${libname}${release}${major}$shared_ext'
16805 shlibpath_overrides_runpath=yes
16806 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016807 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016809 if test "$GCC" = yes; then
16810 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"`
16811 else
16812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016813 fi
16814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16815 ;;
16816
16817dgux*)
16818 version_type=linux
16819 need_lib_prefix=no
16820 need_version=no
16821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16822 soname_spec='${libname}${release}${shared_ext}$major'
16823 shlibpath_var=LD_LIBRARY_PATH
16824 ;;
16825
16826freebsd1*)
16827 dynamic_linker=no
16828 ;;
16829
Reid Spencer2706f8c2004-09-19 23:53:36 +000016830kfreebsd*-gnu)
16831 version_type=linux
16832 need_lib_prefix=no
16833 need_version=no
16834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16835 soname_spec='${libname}${release}${shared_ext}$major'
16836 shlibpath_var=LD_LIBRARY_PATH
16837 shlibpath_overrides_runpath=no
16838 hardcode_into_libs=yes
16839 dynamic_linker='GNU ld.so'
16840 ;;
16841
John Criswell47fdd832003-07-14 16:52:07 +000016842freebsd*)
16843 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16844 version_type=freebsd-$objformat
16845 case $version_type in
16846 freebsd-elf*)
16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16848 need_version=no
16849 need_lib_prefix=no
16850 ;;
16851 freebsd-*)
16852 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16853 need_version=yes
16854 ;;
16855 esac
16856 shlibpath_var=LD_LIBRARY_PATH
16857 case $host_os in
16858 freebsd2*)
16859 shlibpath_overrides_runpath=yes
16860 ;;
16861 freebsd3.01* | freebsdelf3.01*)
16862 shlibpath_overrides_runpath=yes
16863 hardcode_into_libs=yes
16864 ;;
16865 *) # from 3.2 on
16866 shlibpath_overrides_runpath=no
16867 hardcode_into_libs=yes
16868 ;;
16869 esac
16870 ;;
16871
16872gnu*)
16873 version_type=linux
16874 need_lib_prefix=no
16875 need_version=no
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16877 soname_spec='${libname}${release}${shared_ext}$major'
16878 shlibpath_var=LD_LIBRARY_PATH
16879 hardcode_into_libs=yes
16880 ;;
16881
16882hpux9* | hpux10* | hpux11*)
16883 # Give a soname corresponding to the major version so that dld.sl refuses to
16884 # link against other versions.
16885 version_type=sunos
16886 need_lib_prefix=no
16887 need_version=no
16888 case "$host_cpu" in
16889 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016890 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016891 hardcode_into_libs=yes
16892 dynamic_linker="$host_os dld.so"
16893 shlibpath_var=LD_LIBRARY_PATH
16894 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16896 soname_spec='${libname}${release}${shared_ext}$major'
16897 if test "X$HPUX_IA64_MODE" = X32; then
16898 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16899 else
16900 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16901 fi
16902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16903 ;;
16904 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016905 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016906 hardcode_into_libs=yes
16907 dynamic_linker="$host_os dld.sl"
16908 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16909 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16911 soname_spec='${libname}${release}${shared_ext}$major'
16912 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16914 ;;
16915 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016916 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016917 dynamic_linker="$host_os dld.sl"
16918 shlibpath_var=SHLIB_PATH
16919 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16921 soname_spec='${libname}${release}${shared_ext}$major'
16922 ;;
16923 esac
16924 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16925 postinstall_cmds='chmod 555 $lib'
16926 ;;
16927
16928irix5* | irix6* | nonstopux*)
16929 case $host_os in
16930 nonstopux*) version_type=nonstopux ;;
16931 *)
16932 if test "$lt_cv_prog_gnu_ld" = yes; then
16933 version_type=linux
16934 else
16935 version_type=irix
16936 fi ;;
16937 esac
16938 need_lib_prefix=no
16939 need_version=no
16940 soname_spec='${libname}${release}${shared_ext}$major'
16941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16942 case $host_os in
16943 irix5* | nonstopux*)
16944 libsuff= shlibsuff=
16945 ;;
16946 *)
16947 case $LD in # libtool.m4 will add one of these switches to LD
16948 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16949 libsuff= shlibsuff= libmagic=32-bit;;
16950 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16951 libsuff=32 shlibsuff=N32 libmagic=N32;;
16952 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16953 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16954 *) libsuff= shlibsuff= libmagic=never-match;;
16955 esac
16956 ;;
16957 esac
16958 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16959 shlibpath_overrides_runpath=no
16960 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16961 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16962 hardcode_into_libs=yes
16963 ;;
16964
16965# No shared lib support for Linux oldld, aout, or coff.
16966linux*oldld* | linux*aout* | linux*coff*)
16967 dynamic_linker=no
16968 ;;
16969
16970# This must be Linux ELF.
16971linux*)
16972 version_type=linux
16973 need_lib_prefix=no
16974 need_version=no
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976 soname_spec='${libname}${release}${shared_ext}$major'
16977 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16978 shlibpath_var=LD_LIBRARY_PATH
16979 shlibpath_overrides_runpath=no
16980 # This implies no fast_install, which is unacceptable.
16981 # Some rework will be needed to allow for fast_install
16982 # before this can be enabled.
16983 hardcode_into_libs=yes
16984
Reid Spencer2706f8c2004-09-19 23:53:36 +000016985 # Append ld.so.conf contents to the search path
16986 if test -f /etc/ld.so.conf; then
16987 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16988 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16989 fi
16990
John Criswell47fdd832003-07-14 16:52:07 +000016991 # We used to test for /lib/ld.so.1 and disable shared libraries on
16992 # powerpc, because MkLinux only supported shared libraries with the
16993 # GNU dynamic linker. Since this was broken with cross compilers,
16994 # most powerpc-linux boxes support dynamic linking these days and
16995 # people can always --disable-shared, the test was removed, and we
16996 # assume the GNU/Linux dynamic linker is in use.
16997 dynamic_linker='GNU/Linux ld.so'
16998 ;;
16999
Reid Spencer2706f8c2004-09-19 23:53:36 +000017000knetbsd*-gnu)
17001 version_type=linux
17002 need_lib_prefix=no
17003 need_version=no
17004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17005 soname_spec='${libname}${release}${shared_ext}$major'
17006 shlibpath_var=LD_LIBRARY_PATH
17007 shlibpath_overrides_runpath=no
17008 hardcode_into_libs=yes
17009 dynamic_linker='GNU ld.so'
17010 ;;
17011
John Criswell47fdd832003-07-14 16:52:07 +000017012netbsd*)
17013 version_type=sunos
17014 need_lib_prefix=no
17015 need_version=no
17016 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17018 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17019 dynamic_linker='NetBSD (a.out) ld.so'
17020 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000017021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000017022 soname_spec='${libname}${release}${shared_ext}$major'
17023 dynamic_linker='NetBSD ld.elf_so'
17024 fi
17025 shlibpath_var=LD_LIBRARY_PATH
17026 shlibpath_overrides_runpath=yes
17027 hardcode_into_libs=yes
17028 ;;
17029
17030newsos6)
17031 version_type=linux
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033 shlibpath_var=LD_LIBRARY_PATH
17034 shlibpath_overrides_runpath=yes
17035 ;;
17036
Reid Spencer2706f8c2004-09-19 23:53:36 +000017037nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017038 version_type=linux
17039 need_lib_prefix=no
17040 need_version=no
17041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17042 soname_spec='${libname}${release}${shared_ext}$major'
17043 shlibpath_var=LD_LIBRARY_PATH
17044 shlibpath_overrides_runpath=yes
17045 ;;
17046
17047openbsd*)
17048 version_type=sunos
17049 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017050 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17053 shlibpath_var=LD_LIBRARY_PATH
17054 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17055 case $host_os in
17056 openbsd2.[89] | openbsd2.[89].*)
17057 shlibpath_overrides_runpath=no
17058 ;;
17059 *)
17060 shlibpath_overrides_runpath=yes
17061 ;;
17062 esac
17063 else
17064 shlibpath_overrides_runpath=yes
17065 fi
17066 ;;
17067
17068os2*)
17069 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017070 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017071 need_lib_prefix=no
17072 library_names_spec='$libname${shared_ext} $libname.a'
17073 dynamic_linker='OS/2 ld.exe'
17074 shlibpath_var=LIBPATH
17075 ;;
17076
17077osf3* | osf4* | osf5*)
17078 version_type=osf
17079 need_lib_prefix=no
17080 need_version=no
17081 soname_spec='${libname}${release}${shared_ext}$major'
17082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17083 shlibpath_var=LD_LIBRARY_PATH
17084 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17085 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17086 ;;
17087
17088sco3.2v5*)
17089 version_type=osf
17090 soname_spec='${libname}${release}${shared_ext}$major'
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 shlibpath_var=LD_LIBRARY_PATH
17093 ;;
17094
17095solaris*)
17096 version_type=linux
17097 need_lib_prefix=no
17098 need_version=no
17099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17100 soname_spec='${libname}${release}${shared_ext}$major'
17101 shlibpath_var=LD_LIBRARY_PATH
17102 shlibpath_overrides_runpath=yes
17103 hardcode_into_libs=yes
17104 # ldd complains unless libraries are executable
17105 postinstall_cmds='chmod +x $lib'
17106 ;;
17107
17108sunos4*)
17109 version_type=sunos
17110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17111 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17112 shlibpath_var=LD_LIBRARY_PATH
17113 shlibpath_overrides_runpath=yes
17114 if test "$with_gnu_ld" = yes; then
17115 need_lib_prefix=no
17116 fi
17117 need_version=yes
17118 ;;
17119
17120sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17121 version_type=linux
17122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17123 soname_spec='${libname}${release}${shared_ext}$major'
17124 shlibpath_var=LD_LIBRARY_PATH
17125 case $host_vendor in
17126 sni)
17127 shlibpath_overrides_runpath=no
17128 need_lib_prefix=no
17129 export_dynamic_flag_spec='${wl}-Blargedynsym'
17130 runpath_var=LD_RUN_PATH
17131 ;;
17132 siemens)
17133 need_lib_prefix=no
17134 ;;
17135 motorola)
17136 need_lib_prefix=no
17137 need_version=no
17138 shlibpath_overrides_runpath=no
17139 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17140 ;;
17141 esac
17142 ;;
17143
17144sysv4*MP*)
17145 if test -d /usr/nec ;then
17146 version_type=linux
17147 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17148 soname_spec='$libname${shared_ext}.$major'
17149 shlibpath_var=LD_LIBRARY_PATH
17150 fi
17151 ;;
17152
17153uts4*)
17154 version_type=linux
17155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156 soname_spec='${libname}${release}${shared_ext}$major'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 ;;
17159
17160*)
17161 dynamic_linker=no
17162 ;;
17163esac
17164echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17165echo "${ECHO_T}$dynamic_linker" >&6
17166test "$dynamic_linker" = no && can_build_shared=no
17167
Reid Spencer2706f8c2004-09-19 23:53:36 +000017168echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17169echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17170hardcode_action_GCJ=
17171if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17172 test -n "$runpath_var_GCJ" || \
17173 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17174
17175 # We can hardcode non-existant directories.
17176 if test "$hardcode_direct_GCJ" != no &&
17177 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17178 # have to relink, otherwise we might link with an installed library
17179 # when we should be linking with a yet-to-be-installed one
17180 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17181 test "$hardcode_minus_L_GCJ" != no; then
17182 # Linking always hardcodes the temporary library directory.
17183 hardcode_action_GCJ=relink
17184 else
17185 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17186 hardcode_action_GCJ=immediate
17187 fi
17188else
17189 # We cannot hardcode anything, or else we can only hardcode existing
17190 # directories.
17191 hardcode_action_GCJ=unsupported
17192fi
17193echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17194echo "${ECHO_T}$hardcode_action_GCJ" >&6
17195
17196if test "$hardcode_action_GCJ" = relink; then
17197 # Fast installation is not supported
17198 enable_fast_install=no
17199elif test "$shlibpath_overrides_runpath" = yes ||
17200 test "$enable_shared" = no; then
17201 # Fast installation is not necessary
17202 enable_fast_install=needless
17203fi
17204
17205striplib=
17206old_striplib=
17207echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17208echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17209if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17210 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17211 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17212 echo "$as_me:$LINENO: result: yes" >&5
17213echo "${ECHO_T}yes" >&6
17214else
17215# FIXME - insert some real tests, host_os isn't really good enough
17216 case $host_os in
17217 darwin*)
17218 if test -n "$STRIP" ; then
17219 striplib="$STRIP -x"
17220 echo "$as_me:$LINENO: result: yes" >&5
17221echo "${ECHO_T}yes" >&6
17222 else
17223 echo "$as_me:$LINENO: result: no" >&5
17224echo "${ECHO_T}no" >&6
17225fi
17226 ;;
17227 *)
17228 echo "$as_me:$LINENO: result: no" >&5
17229echo "${ECHO_T}no" >&6
17230 ;;
17231 esac
17232fi
17233
John Criswell47fdd832003-07-14 16:52:07 +000017234if test "x$enable_dlopen" != xyes; then
17235 enable_dlopen=unknown
17236 enable_dlopen_self=unknown
17237 enable_dlopen_self_static=unknown
17238else
17239 lt_cv_dlopen=no
17240 lt_cv_dlopen_libs=
17241
17242 case $host_os in
17243 beos*)
17244 lt_cv_dlopen="load_add_on"
17245 lt_cv_dlopen_libs=
17246 lt_cv_dlopen_self=yes
17247 ;;
17248
17249 mingw* | pw32*)
17250 lt_cv_dlopen="LoadLibrary"
17251 lt_cv_dlopen_libs=
17252 ;;
17253
17254 cygwin*)
17255 lt_cv_dlopen="dlopen"
17256 lt_cv_dlopen_libs=
17257 ;;
17258
17259 darwin*)
17260 # if libdl is installed we need to link against it
17261 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17262echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17263if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17264 echo $ECHO_N "(cached) $ECHO_C" >&6
17265else
17266 ac_check_lib_save_LIBS=$LIBS
17267LIBS="-ldl $LIBS"
17268cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017269/* confdefs.h. */
17270_ACEOF
17271cat confdefs.h >>conftest.$ac_ext
17272cat >>conftest.$ac_ext <<_ACEOF
17273/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017274
17275/* Override any gcc2 internal prototype to avoid an error. */
17276#ifdef __cplusplus
17277extern "C"
17278#endif
17279/* We use char because int might match the return type of a gcc2
17280 builtin and then its argument prototype would still apply. */
17281char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017282int
17283main ()
17284{
17285dlopen ();
17286 ;
17287 return 0;
17288}
17289_ACEOF
17290rm -f conftest.$ac_objext conftest$ac_exeext
17291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017292 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017293 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017294 grep -v '^ *+' conftest.er1 >conftest.err
17295 rm -f conftest.er1
17296 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17298 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017299 { ac_try='test -z "$ac_c_werror_flag"
17300 || test ! -s conftest.err'
17301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17302 (eval $ac_try) 2>&5
17303 ac_status=$?
17304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17305 (exit $ac_status); }; } &&
17306 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17308 (eval $ac_try) 2>&5
17309 ac_status=$?
17310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17311 (exit $ac_status); }; }; then
17312 ac_cv_lib_dl_dlopen=yes
17313else
17314 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017315sed 's/^/| /' conftest.$ac_ext >&5
17316
John Criswell47fdd832003-07-14 16:52:07 +000017317ac_cv_lib_dl_dlopen=no
17318fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017319rm -f conftest.err conftest.$ac_objext \
17320 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017321LIBS=$ac_check_lib_save_LIBS
17322fi
17323echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17324echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17325if test $ac_cv_lib_dl_dlopen = yes; then
17326 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17327else
17328
17329 lt_cv_dlopen="dyld"
17330 lt_cv_dlopen_libs=
17331 lt_cv_dlopen_self=yes
17332
17333fi
17334
17335 ;;
17336
17337 *)
17338 echo "$as_me:$LINENO: checking for shl_load" >&5
17339echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17340if test "${ac_cv_func_shl_load+set}" = set; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17342else
17343 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017344/* confdefs.h. */
17345_ACEOF
17346cat confdefs.h >>conftest.$ac_ext
17347cat >>conftest.$ac_ext <<_ACEOF
17348/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017349/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17351#define shl_load innocuous_shl_load
17352
John Criswell47fdd832003-07-14 16:52:07 +000017353/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017354 which can conflict with char shl_load (); below.
17355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17356 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017357
John Criswell0c38eaf2003-09-10 15:17:25 +000017358#ifdef __STDC__
17359# include <limits.h>
17360#else
17361# include <assert.h>
17362#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017363
17364#undef shl_load
17365
John Criswell47fdd832003-07-14 16:52:07 +000017366/* Override any gcc2 internal prototype to avoid an error. */
17367#ifdef __cplusplus
17368extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017369{
John Criswell47fdd832003-07-14 16:52:07 +000017370#endif
17371/* We use char because int might match the return type of a gcc2
17372 builtin and then its argument prototype would still apply. */
17373char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017374/* The GNU C library defines this for functions which it implements
17375 to always fail with ENOSYS. Some functions are actually named
17376 something starting with __ and the normal name is an alias. */
17377#if defined (__stub_shl_load) || defined (__stub___shl_load)
17378choke me
17379#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017380char (*f) () = shl_load;
17381#endif
17382#ifdef __cplusplus
17383}
John Criswell47fdd832003-07-14 16:52:07 +000017384#endif
17385
John Criswell0c38eaf2003-09-10 15:17:25 +000017386int
17387main ()
17388{
17389return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017390 ;
17391 return 0;
17392}
17393_ACEOF
17394rm -f conftest.$ac_objext conftest$ac_exeext
17395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017396 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017397 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017398 grep -v '^ *+' conftest.er1 >conftest.err
17399 rm -f conftest.er1
17400 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017403 { ac_try='test -z "$ac_c_werror_flag"
17404 || test ! -s conftest.err'
17405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17406 (eval $ac_try) 2>&5
17407 ac_status=$?
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); }; } &&
17410 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 ac_cv_func_shl_load=yes
17417else
17418 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017419sed 's/^/| /' conftest.$ac_ext >&5
17420
John Criswell47fdd832003-07-14 16:52:07 +000017421ac_cv_func_shl_load=no
17422fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017423rm -f conftest.err conftest.$ac_objext \
17424 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017425fi
17426echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17427echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17428if test $ac_cv_func_shl_load = yes; then
17429 lt_cv_dlopen="shl_load"
17430else
17431 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17432echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17433if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17434 echo $ECHO_N "(cached) $ECHO_C" >&6
17435else
17436 ac_check_lib_save_LIBS=$LIBS
17437LIBS="-ldld $LIBS"
17438cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017439/* confdefs.h. */
17440_ACEOF
17441cat confdefs.h >>conftest.$ac_ext
17442cat >>conftest.$ac_ext <<_ACEOF
17443/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017444
17445/* Override any gcc2 internal prototype to avoid an error. */
17446#ifdef __cplusplus
17447extern "C"
17448#endif
17449/* We use char because int might match the return type of a gcc2
17450 builtin and then its argument prototype would still apply. */
17451char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017452int
17453main ()
17454{
17455shl_load ();
17456 ;
17457 return 0;
17458}
17459_ACEOF
17460rm -f conftest.$ac_objext conftest$ac_exeext
17461if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017462 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017463 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017464 grep -v '^ *+' conftest.er1 >conftest.err
17465 rm -f conftest.er1
17466 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017469 { ac_try='test -z "$ac_c_werror_flag"
17470 || test ! -s conftest.err'
17471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17472 (eval $ac_try) 2>&5
17473 ac_status=$?
17474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17475 (exit $ac_status); }; } &&
17476 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17478 (eval $ac_try) 2>&5
17479 ac_status=$?
17480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); }; }; then
17482 ac_cv_lib_dld_shl_load=yes
17483else
17484 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017485sed 's/^/| /' conftest.$ac_ext >&5
17486
John Criswell47fdd832003-07-14 16:52:07 +000017487ac_cv_lib_dld_shl_load=no
17488fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017489rm -f conftest.err conftest.$ac_objext \
17490 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017491LIBS=$ac_check_lib_save_LIBS
17492fi
17493echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17494echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17495if test $ac_cv_lib_dld_shl_load = yes; then
17496 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17497else
17498 echo "$as_me:$LINENO: checking for dlopen" >&5
17499echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17500if test "${ac_cv_func_dlopen+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17502else
17503 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017504/* confdefs.h. */
17505_ACEOF
17506cat confdefs.h >>conftest.$ac_ext
17507cat >>conftest.$ac_ext <<_ACEOF
17508/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017509/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17511#define dlopen innocuous_dlopen
17512
John Criswell47fdd832003-07-14 16:52:07 +000017513/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017514 which can conflict with char dlopen (); below.
17515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17516 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017517
John Criswell0c38eaf2003-09-10 15:17:25 +000017518#ifdef __STDC__
17519# include <limits.h>
17520#else
17521# include <assert.h>
17522#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017523
17524#undef dlopen
17525
John Criswell47fdd832003-07-14 16:52:07 +000017526/* Override any gcc2 internal prototype to avoid an error. */
17527#ifdef __cplusplus
17528extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017529{
John Criswell47fdd832003-07-14 16:52:07 +000017530#endif
17531/* We use char because int might match the return type of a gcc2
17532 builtin and then its argument prototype would still apply. */
17533char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017534/* The GNU C library defines this for functions which it implements
17535 to always fail with ENOSYS. Some functions are actually named
17536 something starting with __ and the normal name is an alias. */
17537#if defined (__stub_dlopen) || defined (__stub___dlopen)
17538choke me
17539#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017540char (*f) () = dlopen;
17541#endif
17542#ifdef __cplusplus
17543}
John Criswell47fdd832003-07-14 16:52:07 +000017544#endif
17545
John Criswell0c38eaf2003-09-10 15:17:25 +000017546int
17547main ()
17548{
17549return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017550 ;
17551 return 0;
17552}
17553_ACEOF
17554rm -f conftest.$ac_objext conftest$ac_exeext
17555if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017556 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017557 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017558 grep -v '^ *+' conftest.er1 >conftest.err
17559 rm -f conftest.er1
17560 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017563 { ac_try='test -z "$ac_c_werror_flag"
17564 || test ! -s conftest.err'
17565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17566 (eval $ac_try) 2>&5
17567 ac_status=$?
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17572 (eval $ac_try) 2>&5
17573 ac_status=$?
17574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575 (exit $ac_status); }; }; then
17576 ac_cv_func_dlopen=yes
17577else
17578 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017579sed 's/^/| /' conftest.$ac_ext >&5
17580
John Criswell47fdd832003-07-14 16:52:07 +000017581ac_cv_func_dlopen=no
17582fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017583rm -f conftest.err conftest.$ac_objext \
17584 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017585fi
17586echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17587echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17588if test $ac_cv_func_dlopen = yes; then
17589 lt_cv_dlopen="dlopen"
17590else
17591 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17592echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17593if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17594 echo $ECHO_N "(cached) $ECHO_C" >&6
17595else
17596 ac_check_lib_save_LIBS=$LIBS
17597LIBS="-ldl $LIBS"
17598cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017599/* confdefs.h. */
17600_ACEOF
17601cat confdefs.h >>conftest.$ac_ext
17602cat >>conftest.$ac_ext <<_ACEOF
17603/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017604
17605/* Override any gcc2 internal prototype to avoid an error. */
17606#ifdef __cplusplus
17607extern "C"
17608#endif
17609/* We use char because int might match the return type of a gcc2
17610 builtin and then its argument prototype would still apply. */
17611char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017612int
17613main ()
17614{
17615dlopen ();
17616 ;
17617 return 0;
17618}
17619_ACEOF
17620rm -f conftest.$ac_objext conftest$ac_exeext
17621if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017622 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017623 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017624 grep -v '^ *+' conftest.er1 >conftest.err
17625 rm -f conftest.er1
17626 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017629 { ac_try='test -z "$ac_c_werror_flag"
17630 || test ! -s conftest.err'
17631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17632 (eval $ac_try) 2>&5
17633 ac_status=$?
17634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635 (exit $ac_status); }; } &&
17636 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17638 (eval $ac_try) 2>&5
17639 ac_status=$?
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); }; }; then
17642 ac_cv_lib_dl_dlopen=yes
17643else
17644 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017645sed 's/^/| /' conftest.$ac_ext >&5
17646
John Criswell47fdd832003-07-14 16:52:07 +000017647ac_cv_lib_dl_dlopen=no
17648fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017649rm -f conftest.err conftest.$ac_objext \
17650 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017651LIBS=$ac_check_lib_save_LIBS
17652fi
17653echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17654echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17655if test $ac_cv_lib_dl_dlopen = yes; then
17656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17657else
17658 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17659echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17660if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17661 echo $ECHO_N "(cached) $ECHO_C" >&6
17662else
17663 ac_check_lib_save_LIBS=$LIBS
17664LIBS="-lsvld $LIBS"
17665cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017666/* confdefs.h. */
17667_ACEOF
17668cat confdefs.h >>conftest.$ac_ext
17669cat >>conftest.$ac_ext <<_ACEOF
17670/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017671
17672/* Override any gcc2 internal prototype to avoid an error. */
17673#ifdef __cplusplus
17674extern "C"
17675#endif
17676/* We use char because int might match the return type of a gcc2
17677 builtin and then its argument prototype would still apply. */
17678char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017679int
17680main ()
17681{
17682dlopen ();
17683 ;
17684 return 0;
17685}
17686_ACEOF
17687rm -f conftest.$ac_objext conftest$ac_exeext
17688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017689 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017690 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017691 grep -v '^ *+' conftest.er1 >conftest.err
17692 rm -f conftest.er1
17693 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017696 { ac_try='test -z "$ac_c_werror_flag"
17697 || test ! -s conftest.err'
17698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17699 (eval $ac_try) 2>&5
17700 ac_status=$?
17701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17702 (exit $ac_status); }; } &&
17703 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17705 (eval $ac_try) 2>&5
17706 ac_status=$?
17707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17708 (exit $ac_status); }; }; then
17709 ac_cv_lib_svld_dlopen=yes
17710else
17711 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017712sed 's/^/| /' conftest.$ac_ext >&5
17713
John Criswell47fdd832003-07-14 16:52:07 +000017714ac_cv_lib_svld_dlopen=no
17715fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017716rm -f conftest.err conftest.$ac_objext \
17717 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017718LIBS=$ac_check_lib_save_LIBS
17719fi
17720echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17721echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17722if test $ac_cv_lib_svld_dlopen = yes; then
17723 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17724else
17725 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17726echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17727if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17728 echo $ECHO_N "(cached) $ECHO_C" >&6
17729else
17730 ac_check_lib_save_LIBS=$LIBS
17731LIBS="-ldld $LIBS"
17732cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017733/* confdefs.h. */
17734_ACEOF
17735cat confdefs.h >>conftest.$ac_ext
17736cat >>conftest.$ac_ext <<_ACEOF
17737/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017738
17739/* Override any gcc2 internal prototype to avoid an error. */
17740#ifdef __cplusplus
17741extern "C"
17742#endif
17743/* We use char because int might match the return type of a gcc2
17744 builtin and then its argument prototype would still apply. */
17745char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017746int
17747main ()
17748{
17749dld_link ();
17750 ;
17751 return 0;
17752}
17753_ACEOF
17754rm -f conftest.$ac_objext conftest$ac_exeext
17755if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017756 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017757 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017763 { ac_try='test -z "$ac_c_werror_flag"
17764 || test ! -s conftest.err'
17765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17766 (eval $ac_try) 2>&5
17767 ac_status=$?
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); }; } &&
17770 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17773 ac_status=$?
17774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17776 ac_cv_lib_dld_dld_link=yes
17777else
17778 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017779sed 's/^/| /' conftest.$ac_ext >&5
17780
John Criswell47fdd832003-07-14 16:52:07 +000017781ac_cv_lib_dld_dld_link=no
17782fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017783rm -f conftest.err conftest.$ac_objext \
17784 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017785LIBS=$ac_check_lib_save_LIBS
17786fi
17787echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17788echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17789if test $ac_cv_lib_dld_dld_link = yes; then
17790 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17791fi
17792
17793
17794fi
17795
17796
17797fi
17798
17799
17800fi
17801
17802
17803fi
17804
17805
17806fi
17807
17808 ;;
17809 esac
17810
17811 if test "x$lt_cv_dlopen" != xno; then
17812 enable_dlopen=yes
17813 else
17814 enable_dlopen=no
17815 fi
17816
17817 case $lt_cv_dlopen in
17818 dlopen)
17819 save_CPPFLAGS="$CPPFLAGS"
17820 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17821
17822 save_LDFLAGS="$LDFLAGS"
17823 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17824
17825 save_LIBS="$LIBS"
17826 LIBS="$lt_cv_dlopen_libs $LIBS"
17827
17828 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17829echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17830if test "${lt_cv_dlopen_self+set}" = set; then
17831 echo $ECHO_N "(cached) $ECHO_C" >&6
17832else
17833 if test "$cross_compiling" = yes; then :
17834 lt_cv_dlopen_self=cross
17835else
17836 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17837 lt_status=$lt_dlunknown
17838 cat > conftest.$ac_ext <<EOF
Misha Brukman591edc62004-10-14 18:59:42 +000017839#line 17839 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017840#include "confdefs.h"
17841
17842#if HAVE_DLFCN_H
17843#include <dlfcn.h>
17844#endif
17845
17846#include <stdio.h>
17847
17848#ifdef RTLD_GLOBAL
17849# define LT_DLGLOBAL RTLD_GLOBAL
17850#else
17851# ifdef DL_GLOBAL
17852# define LT_DLGLOBAL DL_GLOBAL
17853# else
17854# define LT_DLGLOBAL 0
17855# endif
17856#endif
17857
17858/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17859 find out it does not work in some platform. */
17860#ifndef LT_DLLAZY_OR_NOW
17861# ifdef RTLD_LAZY
17862# define LT_DLLAZY_OR_NOW RTLD_LAZY
17863# else
17864# ifdef DL_LAZY
17865# define LT_DLLAZY_OR_NOW DL_LAZY
17866# else
17867# ifdef RTLD_NOW
17868# define LT_DLLAZY_OR_NOW RTLD_NOW
17869# else
17870# ifdef DL_NOW
17871# define LT_DLLAZY_OR_NOW DL_NOW
17872# else
17873# define LT_DLLAZY_OR_NOW 0
17874# endif
17875# endif
17876# endif
17877# endif
17878#endif
17879
17880#ifdef __cplusplus
17881extern "C" void exit (int);
17882#endif
17883
17884void fnord() { int i=42;}
17885int main ()
17886{
17887 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17888 int status = $lt_dlunknown;
17889
17890 if (self)
17891 {
17892 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17893 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17894 /* dlclose (self); */
17895 }
17896
17897 exit (status);
17898}
17899EOF
17900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17901 (eval $ac_link) 2>&5
17902 ac_status=$?
17903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17904 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17905 (./conftest; exit; ) 2>/dev/null
17906 lt_status=$?
17907 case x$lt_status in
17908 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17909 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17910 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17911 esac
17912 else :
17913 # compilation failed
17914 lt_cv_dlopen_self=no
17915 fi
17916fi
17917rm -fr conftest*
17918
17919
17920fi
17921echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17922echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17923
17924 if test "x$lt_cv_dlopen_self" = xyes; then
17925 LDFLAGS="$LDFLAGS $link_static_flag"
17926 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17927echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17928if test "${lt_cv_dlopen_self_static+set}" = set; then
17929 echo $ECHO_N "(cached) $ECHO_C" >&6
17930else
17931 if test "$cross_compiling" = yes; then :
17932 lt_cv_dlopen_self_static=cross
17933else
17934 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17935 lt_status=$lt_dlunknown
17936 cat > conftest.$ac_ext <<EOF
Misha Brukman591edc62004-10-14 18:59:42 +000017937#line 17937 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017938#include "confdefs.h"
17939
17940#if HAVE_DLFCN_H
17941#include <dlfcn.h>
17942#endif
17943
17944#include <stdio.h>
17945
17946#ifdef RTLD_GLOBAL
17947# define LT_DLGLOBAL RTLD_GLOBAL
17948#else
17949# ifdef DL_GLOBAL
17950# define LT_DLGLOBAL DL_GLOBAL
17951# else
17952# define LT_DLGLOBAL 0
17953# endif
17954#endif
17955
17956/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17957 find out it does not work in some platform. */
17958#ifndef LT_DLLAZY_OR_NOW
17959# ifdef RTLD_LAZY
17960# define LT_DLLAZY_OR_NOW RTLD_LAZY
17961# else
17962# ifdef DL_LAZY
17963# define LT_DLLAZY_OR_NOW DL_LAZY
17964# else
17965# ifdef RTLD_NOW
17966# define LT_DLLAZY_OR_NOW RTLD_NOW
17967# else
17968# ifdef DL_NOW
17969# define LT_DLLAZY_OR_NOW DL_NOW
17970# else
17971# define LT_DLLAZY_OR_NOW 0
17972# endif
17973# endif
17974# endif
17975# endif
17976#endif
17977
17978#ifdef __cplusplus
17979extern "C" void exit (int);
17980#endif
17981
17982void fnord() { int i=42;}
17983int main ()
17984{
17985 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17986 int status = $lt_dlunknown;
17987
17988 if (self)
17989 {
17990 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17991 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17992 /* dlclose (self); */
17993 }
17994
17995 exit (status);
17996}
17997EOF
17998 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17999 (eval $ac_link) 2>&5
18000 ac_status=$?
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18003 (./conftest; exit; ) 2>/dev/null
18004 lt_status=$?
18005 case x$lt_status in
18006 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18007 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18008 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18009 esac
18010 else :
18011 # compilation failed
18012 lt_cv_dlopen_self_static=no
18013 fi
18014fi
18015rm -fr conftest*
18016
18017
18018fi
18019echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18020echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18021 fi
18022
18023 CPPFLAGS="$save_CPPFLAGS"
18024 LDFLAGS="$save_LDFLAGS"
18025 LIBS="$save_LIBS"
18026 ;;
18027 esac
18028
18029 case $lt_cv_dlopen_self in
18030 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18031 *) enable_dlopen_self=unknown ;;
18032 esac
18033
18034 case $lt_cv_dlopen_self_static in
18035 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18036 *) enable_dlopen_self_static=unknown ;;
18037 esac
18038fi
18039
18040
18041# The else clause should only fire when bootstrapping the
18042# libtool distribution, otherwise you forgot to ship ltmain.sh
18043# with your package, and you will get complaints that there are
18044# no rules to generate ltmain.sh.
18045if test -f "$ltmain"; then
18046 # See if we are running on zsh, and set the options which allow our commands through
18047 # without removal of \ escapes.
18048 if test -n "${ZSH_VERSION+set}" ; then
18049 setopt NO_GLOB_SUBST
18050 fi
18051 # Now quote all the things that may contain metacharacters while being
18052 # careful not to overquote the AC_SUBSTed values. We take copies of the
18053 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018054 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18055 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018056 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18057 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18058 deplibs_check_method reload_flag reload_cmds need_locks \
18059 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18060 lt_cv_sys_global_symbol_to_c_name_address \
18061 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18062 old_postinstall_cmds old_postuninstall_cmds \
18063 compiler_GCJ \
18064 CC_GCJ \
18065 LD_GCJ \
18066 lt_prog_compiler_wl_GCJ \
18067 lt_prog_compiler_pic_GCJ \
18068 lt_prog_compiler_static_GCJ \
18069 lt_prog_compiler_no_builtin_flag_GCJ \
18070 export_dynamic_flag_spec_GCJ \
18071 thread_safe_flag_spec_GCJ \
18072 whole_archive_flag_spec_GCJ \
18073 enable_shared_with_static_runtimes_GCJ \
18074 old_archive_cmds_GCJ \
18075 old_archive_from_new_cmds_GCJ \
18076 predep_objects_GCJ \
18077 postdep_objects_GCJ \
18078 predeps_GCJ \
18079 postdeps_GCJ \
18080 compiler_lib_search_path_GCJ \
18081 archive_cmds_GCJ \
18082 archive_expsym_cmds_GCJ \
18083 postinstall_cmds_GCJ \
18084 postuninstall_cmds_GCJ \
18085 old_archive_from_expsyms_cmds_GCJ \
18086 allow_undefined_flag_GCJ \
18087 no_undefined_flag_GCJ \
18088 export_symbols_cmds_GCJ \
18089 hardcode_libdir_flag_spec_GCJ \
18090 hardcode_libdir_flag_spec_ld_GCJ \
18091 hardcode_libdir_separator_GCJ \
18092 hardcode_automatic_GCJ \
18093 module_cmds_GCJ \
18094 module_expsym_cmds_GCJ \
18095 lt_cv_prog_compiler_c_o_GCJ \
18096 exclude_expsyms_GCJ \
18097 include_expsyms_GCJ; do
18098
18099 case $var in
18100 old_archive_cmds_GCJ | \
18101 old_archive_from_new_cmds_GCJ | \
18102 archive_cmds_GCJ | \
18103 archive_expsym_cmds_GCJ | \
18104 module_cmds_GCJ | \
18105 module_expsym_cmds_GCJ | \
18106 old_archive_from_expsyms_cmds_GCJ | \
18107 export_symbols_cmds_GCJ | \
18108 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18109 postinstall_cmds | postuninstall_cmds | \
18110 old_postinstall_cmds | old_postuninstall_cmds | \
18111 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18112 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018113 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 +000018114 ;;
18115 *)
18116 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18117 ;;
18118 esac
18119 done
18120
18121 case $lt_echo in
18122 *'\$0 --fallback-echo"')
18123 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18124 ;;
18125 esac
18126
18127cfgfile="$ofile"
18128
18129 cat <<__EOF__ >> "$cfgfile"
18130# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18131
18132# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18133
18134# Shell to use when invoking shell scripts.
18135SHELL=$lt_SHELL
18136
18137# Whether or not to build shared libraries.
18138build_libtool_libs=$enable_shared
18139
18140# Whether or not to build static libraries.
18141build_old_libs=$enable_static
18142
18143# Whether or not to add -lc for building shared libraries.
18144build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18145
18146# Whether or not to disallow shared libs when runtime libs are static
18147allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18148
18149# Whether or not to optimize for fast installation.
18150fast_install=$enable_fast_install
18151
18152# The host system.
18153host_alias=$host_alias
18154host=$host
18155
18156# An echo program that does not interpret backslashes.
18157echo=$lt_echo
18158
18159# The archiver.
18160AR=$lt_AR
18161AR_FLAGS=$lt_AR_FLAGS
18162
18163# A C compiler.
18164LTCC=$lt_LTCC
18165
18166# A language-specific compiler.
18167CC=$lt_compiler_GCJ
18168
18169# Is the compiler the GNU C compiler?
18170with_gcc=$GCC_GCJ
18171
18172# An ERE matcher.
18173EGREP=$lt_EGREP
18174
18175# The linker used to build libraries.
18176LD=$lt_LD_GCJ
18177
18178# Whether we need hard or soft links.
18179LN_S=$lt_LN_S
18180
18181# A BSD-compatible nm program.
18182NM=$lt_NM
18183
18184# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018185STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018186
18187# Used to examine libraries when file_magic_cmd begins "file"
18188MAGIC_CMD=$MAGIC_CMD
18189
18190# Used on cygwin: DLL creation program.
18191DLLTOOL="$DLLTOOL"
18192
18193# Used on cygwin: object dumper.
18194OBJDUMP="$OBJDUMP"
18195
18196# Used on cygwin: assembler.
18197AS="$AS"
18198
18199# The name of the directory that contains temporary libtool files.
18200objdir=$objdir
18201
18202# How to create reloadable object files.
18203reload_flag=$lt_reload_flag
18204reload_cmds=$lt_reload_cmds
18205
18206# How to pass a linker flag through the compiler.
18207wl=$lt_lt_prog_compiler_wl_GCJ
18208
18209# Object file suffix (normally "o").
18210objext="$ac_objext"
18211
18212# Old archive suffix (normally "a").
18213libext="$libext"
18214
18215# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018216shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018217
18218# Executable file suffix (normally "").
18219exeext="$exeext"
18220
18221# Additional compiler flags for building library objects.
18222pic_flag=$lt_lt_prog_compiler_pic_GCJ
18223pic_mode=$pic_mode
18224
18225# What is the maximum length of a command?
18226max_cmd_len=$lt_cv_sys_max_cmd_len
18227
18228# Does compiler simultaneously support -c and -o options?
18229compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18230
18231# Must we lock files when doing compilation ?
18232need_locks=$lt_need_locks
18233
18234# Do we need the lib prefix for modules?
18235need_lib_prefix=$need_lib_prefix
18236
18237# Do we need a version for libraries?
18238need_version=$need_version
18239
18240# Whether dlopen is supported.
18241dlopen_support=$enable_dlopen
18242
18243# Whether dlopen of programs is supported.
18244dlopen_self=$enable_dlopen_self
18245
18246# Whether dlopen of statically linked programs is supported.
18247dlopen_self_static=$enable_dlopen_self_static
18248
18249# Compiler flag to prevent dynamic linking.
18250link_static_flag=$lt_lt_prog_compiler_static_GCJ
18251
18252# Compiler flag to turn off builtin functions.
18253no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18254
18255# Compiler flag to allow reflexive dlopens.
18256export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18257
18258# Compiler flag to generate shared objects directly from archives.
18259whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18260
18261# Compiler flag to generate thread-safe objects.
18262thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18263
18264# Library versioning type.
18265version_type=$version_type
18266
18267# Format of library name prefix.
18268libname_spec=$lt_libname_spec
18269
18270# List of archive names. First name is the real one, the rest are links.
18271# The last name is the one that the linker finds with -lNAME.
18272library_names_spec=$lt_library_names_spec
18273
18274# The coded name of the library, if different from the real name.
18275soname_spec=$lt_soname_spec
18276
18277# Commands used to build and install an old-style archive.
18278RANLIB=$lt_RANLIB
18279old_archive_cmds=$lt_old_archive_cmds_GCJ
18280old_postinstall_cmds=$lt_old_postinstall_cmds
18281old_postuninstall_cmds=$lt_old_postuninstall_cmds
18282
18283# Create an old-style archive from a shared archive.
18284old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18285
18286# Create a temporary old-style archive to link instead of a shared archive.
18287old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18288
18289# Commands used to build and install a shared archive.
18290archive_cmds=$lt_archive_cmds_GCJ
18291archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18292postinstall_cmds=$lt_postinstall_cmds
18293postuninstall_cmds=$lt_postuninstall_cmds
18294
18295# Commands used to build a loadable module (assumed same as above if empty)
18296module_cmds=$lt_module_cmds_GCJ
18297module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18298
18299# Commands to strip libraries.
18300old_striplib=$lt_old_striplib
18301striplib=$lt_striplib
18302
18303# Dependencies to place before the objects being linked to create a
18304# shared library.
18305predep_objects=$lt_predep_objects_GCJ
18306
18307# Dependencies to place after the objects being linked to create a
18308# shared library.
18309postdep_objects=$lt_postdep_objects_GCJ
18310
18311# Dependencies to place before the objects being linked to create a
18312# shared library.
18313predeps=$lt_predeps_GCJ
18314
18315# Dependencies to place after the objects being linked to create a
18316# shared library.
18317postdeps=$lt_postdeps_GCJ
18318
18319# The library search path used internally by the compiler when linking
18320# a shared library.
18321compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18322
18323# Method to check whether dependent libraries are shared objects.
18324deplibs_check_method=$lt_deplibs_check_method
18325
18326# Command to use when deplibs_check_method == file_magic.
18327file_magic_cmd=$lt_file_magic_cmd
18328
18329# Flag that allows shared libraries with undefined symbols to be built.
18330allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18331
18332# Flag that forces no undefined symbols.
18333no_undefined_flag=$lt_no_undefined_flag_GCJ
18334
18335# Commands used to finish a libtool library installation in a directory.
18336finish_cmds=$lt_finish_cmds
18337
18338# Same as above, but a single script fragment to be evaled but not shown.
18339finish_eval=$lt_finish_eval
18340
18341# Take the output of nm and produce a listing of raw symbols and C names.
18342global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18343
18344# Transform the output of nm in a proper C declaration
18345global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18346
18347# Transform the output of nm in a C name address pair
18348global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18349
18350# This is the shared library runtime path variable.
18351runpath_var=$runpath_var
18352
18353# This is the shared library path variable.
18354shlibpath_var=$shlibpath_var
18355
18356# Is shlibpath searched before the hard-coded library search path?
18357shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18358
18359# How to hardcode a shared library path into an executable.
18360hardcode_action=$hardcode_action_GCJ
18361
18362# Whether we should hardcode library paths into libraries.
18363hardcode_into_libs=$hardcode_into_libs
18364
18365# Flag to hardcode \$libdir into a binary during linking.
18366# This must work even if \$libdir does not exist.
18367hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18368
18369# If ld is used when linking, flag to hardcode \$libdir into
18370# a binary during linking. This must work even if \$libdir does
18371# not exist.
18372hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18373
18374# Whether we need a single -rpath flag with a separated argument.
18375hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18376
18377# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18378# resulting binary.
18379hardcode_direct=$hardcode_direct_GCJ
18380
18381# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18382# resulting binary.
18383hardcode_minus_L=$hardcode_minus_L_GCJ
18384
18385# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18386# the resulting binary.
18387hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18388
18389# Set to yes if building a shared library automatically hardcodes DIR into the library
18390# and all subsequent libraries and executables linked against it.
18391hardcode_automatic=$hardcode_automatic_GCJ
18392
18393# Variables whose values should be saved in libtool wrapper scripts and
18394# restored at relink time.
18395variables_saved_for_relink="$variables_saved_for_relink"
18396
18397# Whether libtool must link a program against all its dependency libraries.
18398link_all_deplibs=$link_all_deplibs_GCJ
18399
18400# Compile-time system search path for libraries
18401sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18402
18403# Run-time system search path for libraries
18404sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18405
18406# Fix the shell variable \$srcfile for the compiler.
18407fix_srcfile_path="$fix_srcfile_path_GCJ"
18408
18409# Set to yes if exported symbols are required.
18410always_export_symbols=$always_export_symbols_GCJ
18411
18412# The commands to list exported symbols.
18413export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18414
18415# The commands to extract the exported symbol list from a shared archive.
18416extract_expsyms_cmds=$lt_extract_expsyms_cmds
18417
18418# Symbols that should not be listed in the preloaded symbols.
18419exclude_expsyms=$lt_exclude_expsyms_GCJ
18420
18421# Symbols that must always be exported.
18422include_expsyms=$lt_include_expsyms_GCJ
18423
18424# ### END LIBTOOL TAG CONFIG: $tagname
18425
18426__EOF__
18427
18428
18429else
18430 # If there is no Makefile yet, we rely on a make rule to execute
18431 # `config.status --recheck' to rerun these tests and create the
18432 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018433 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18434 if test -f "$ltmain_in"; then
18435 test -f Makefile && make "$ltmain"
18436 fi
John Criswell47fdd832003-07-14 16:52:07 +000018437fi
18438
18439
18440ac_ext=c
18441ac_cpp='$CPP $CPPFLAGS'
18442ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18443ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18444ac_compiler_gnu=$ac_cv_c_compiler_gnu
18445
18446CC="$lt_save_CC"
18447
18448 else
18449 tagname=""
18450 fi
18451 ;;
18452
18453 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018454 ac_ext=c
18455ac_cpp='$CPP $CPPFLAGS'
18456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18458ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000018459
18460
18461# Source file extension for RC test sources.
18462ac_ext=rc
18463
18464# Object file extension for compiled RC test sources.
18465objext=o
18466objext_RC=$objext
18467
18468# Code to be used in simple compile tests
18469lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18470
18471# Code to be used in simple link tests
18472lt_simple_link_test_code="$lt_simple_compile_test_code"
18473
18474# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18475
18476# If no C compiler was specified, use CC.
18477LTCC=${LTCC-"$CC"}
18478
18479# Allow CC to be a program name with arguments.
18480compiler=$CC
18481
18482
18483# Allow CC to be a program name with arguments.
18484lt_save_CC="$CC"
18485CC=${RC-"windres"}
18486compiler=$CC
18487compiler_RC=$CC
18488lt_cv_prog_compiler_c_o_RC=yes
18489
18490# The else clause should only fire when bootstrapping the
18491# libtool distribution, otherwise you forgot to ship ltmain.sh
18492# with your package, and you will get complaints that there are
18493# no rules to generate ltmain.sh.
18494if test -f "$ltmain"; then
18495 # See if we are running on zsh, and set the options which allow our commands through
18496 # without removal of \ escapes.
18497 if test -n "${ZSH_VERSION+set}" ; then
18498 setopt NO_GLOB_SUBST
18499 fi
18500 # Now quote all the things that may contain metacharacters while being
18501 # careful not to overquote the AC_SUBSTed values. We take copies of the
18502 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018503 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18504 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018505 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18506 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18507 deplibs_check_method reload_flag reload_cmds need_locks \
18508 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18509 lt_cv_sys_global_symbol_to_c_name_address \
18510 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18511 old_postinstall_cmds old_postuninstall_cmds \
18512 compiler_RC \
18513 CC_RC \
18514 LD_RC \
18515 lt_prog_compiler_wl_RC \
18516 lt_prog_compiler_pic_RC \
18517 lt_prog_compiler_static_RC \
18518 lt_prog_compiler_no_builtin_flag_RC \
18519 export_dynamic_flag_spec_RC \
18520 thread_safe_flag_spec_RC \
18521 whole_archive_flag_spec_RC \
18522 enable_shared_with_static_runtimes_RC \
18523 old_archive_cmds_RC \
18524 old_archive_from_new_cmds_RC \
18525 predep_objects_RC \
18526 postdep_objects_RC \
18527 predeps_RC \
18528 postdeps_RC \
18529 compiler_lib_search_path_RC \
18530 archive_cmds_RC \
18531 archive_expsym_cmds_RC \
18532 postinstall_cmds_RC \
18533 postuninstall_cmds_RC \
18534 old_archive_from_expsyms_cmds_RC \
18535 allow_undefined_flag_RC \
18536 no_undefined_flag_RC \
18537 export_symbols_cmds_RC \
18538 hardcode_libdir_flag_spec_RC \
18539 hardcode_libdir_flag_spec_ld_RC \
18540 hardcode_libdir_separator_RC \
18541 hardcode_automatic_RC \
18542 module_cmds_RC \
18543 module_expsym_cmds_RC \
18544 lt_cv_prog_compiler_c_o_RC \
18545 exclude_expsyms_RC \
18546 include_expsyms_RC; do
18547
18548 case $var in
18549 old_archive_cmds_RC | \
18550 old_archive_from_new_cmds_RC | \
18551 archive_cmds_RC | \
18552 archive_expsym_cmds_RC | \
18553 module_cmds_RC | \
18554 module_expsym_cmds_RC | \
18555 old_archive_from_expsyms_cmds_RC | \
18556 export_symbols_cmds_RC | \
18557 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18558 postinstall_cmds | postuninstall_cmds | \
18559 old_postinstall_cmds | old_postuninstall_cmds | \
18560 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18561 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018562 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 +000018563 ;;
18564 *)
18565 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18566 ;;
18567 esac
18568 done
18569
18570 case $lt_echo in
18571 *'\$0 --fallback-echo"')
18572 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18573 ;;
18574 esac
18575
18576cfgfile="$ofile"
18577
18578 cat <<__EOF__ >> "$cfgfile"
18579# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18580
18581# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18582
18583# Shell to use when invoking shell scripts.
18584SHELL=$lt_SHELL
18585
18586# Whether or not to build shared libraries.
18587build_libtool_libs=$enable_shared
18588
18589# Whether or not to build static libraries.
18590build_old_libs=$enable_static
18591
18592# Whether or not to add -lc for building shared libraries.
18593build_libtool_need_lc=$archive_cmds_need_lc_RC
18594
18595# Whether or not to disallow shared libs when runtime libs are static
18596allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18597
18598# Whether or not to optimize for fast installation.
18599fast_install=$enable_fast_install
18600
18601# The host system.
18602host_alias=$host_alias
18603host=$host
18604
18605# An echo program that does not interpret backslashes.
18606echo=$lt_echo
18607
18608# The archiver.
18609AR=$lt_AR
18610AR_FLAGS=$lt_AR_FLAGS
18611
18612# A C compiler.
18613LTCC=$lt_LTCC
18614
18615# A language-specific compiler.
18616CC=$lt_compiler_RC
18617
18618# Is the compiler the GNU C compiler?
18619with_gcc=$GCC_RC
18620
18621# An ERE matcher.
18622EGREP=$lt_EGREP
18623
18624# The linker used to build libraries.
18625LD=$lt_LD_RC
18626
18627# Whether we need hard or soft links.
18628LN_S=$lt_LN_S
18629
18630# A BSD-compatible nm program.
18631NM=$lt_NM
18632
18633# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018634STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018635
18636# Used to examine libraries when file_magic_cmd begins "file"
18637MAGIC_CMD=$MAGIC_CMD
18638
18639# Used on cygwin: DLL creation program.
18640DLLTOOL="$DLLTOOL"
18641
18642# Used on cygwin: object dumper.
18643OBJDUMP="$OBJDUMP"
18644
18645# Used on cygwin: assembler.
18646AS="$AS"
18647
18648# The name of the directory that contains temporary libtool files.
18649objdir=$objdir
18650
18651# How to create reloadable object files.
18652reload_flag=$lt_reload_flag
18653reload_cmds=$lt_reload_cmds
18654
18655# How to pass a linker flag through the compiler.
18656wl=$lt_lt_prog_compiler_wl_RC
18657
18658# Object file suffix (normally "o").
18659objext="$ac_objext"
18660
18661# Old archive suffix (normally "a").
18662libext="$libext"
18663
18664# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018665shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018666
18667# Executable file suffix (normally "").
18668exeext="$exeext"
18669
18670# Additional compiler flags for building library objects.
18671pic_flag=$lt_lt_prog_compiler_pic_RC
18672pic_mode=$pic_mode
18673
18674# What is the maximum length of a command?
18675max_cmd_len=$lt_cv_sys_max_cmd_len
18676
18677# Does compiler simultaneously support -c and -o options?
18678compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18679
18680# Must we lock files when doing compilation ?
18681need_locks=$lt_need_locks
18682
18683# Do we need the lib prefix for modules?
18684need_lib_prefix=$need_lib_prefix
18685
18686# Do we need a version for libraries?
18687need_version=$need_version
18688
18689# Whether dlopen is supported.
18690dlopen_support=$enable_dlopen
18691
18692# Whether dlopen of programs is supported.
18693dlopen_self=$enable_dlopen_self
18694
18695# Whether dlopen of statically linked programs is supported.
18696dlopen_self_static=$enable_dlopen_self_static
18697
18698# Compiler flag to prevent dynamic linking.
18699link_static_flag=$lt_lt_prog_compiler_static_RC
18700
18701# Compiler flag to turn off builtin functions.
18702no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18703
18704# Compiler flag to allow reflexive dlopens.
18705export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18706
18707# Compiler flag to generate shared objects directly from archives.
18708whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18709
18710# Compiler flag to generate thread-safe objects.
18711thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18712
18713# Library versioning type.
18714version_type=$version_type
18715
18716# Format of library name prefix.
18717libname_spec=$lt_libname_spec
18718
18719# List of archive names. First name is the real one, the rest are links.
18720# The last name is the one that the linker finds with -lNAME.
18721library_names_spec=$lt_library_names_spec
18722
18723# The coded name of the library, if different from the real name.
18724soname_spec=$lt_soname_spec
18725
18726# Commands used to build and install an old-style archive.
18727RANLIB=$lt_RANLIB
18728old_archive_cmds=$lt_old_archive_cmds_RC
18729old_postinstall_cmds=$lt_old_postinstall_cmds
18730old_postuninstall_cmds=$lt_old_postuninstall_cmds
18731
18732# Create an old-style archive from a shared archive.
18733old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18734
18735# Create a temporary old-style archive to link instead of a shared archive.
18736old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18737
18738# Commands used to build and install a shared archive.
18739archive_cmds=$lt_archive_cmds_RC
18740archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18741postinstall_cmds=$lt_postinstall_cmds
18742postuninstall_cmds=$lt_postuninstall_cmds
18743
18744# Commands used to build a loadable module (assumed same as above if empty)
18745module_cmds=$lt_module_cmds_RC
18746module_expsym_cmds=$lt_module_expsym_cmds_RC
18747
18748# Commands to strip libraries.
18749old_striplib=$lt_old_striplib
18750striplib=$lt_striplib
18751
18752# Dependencies to place before the objects being linked to create a
18753# shared library.
18754predep_objects=$lt_predep_objects_RC
18755
18756# Dependencies to place after the objects being linked to create a
18757# shared library.
18758postdep_objects=$lt_postdep_objects_RC
18759
18760# Dependencies to place before the objects being linked to create a
18761# shared library.
18762predeps=$lt_predeps_RC
18763
18764# Dependencies to place after the objects being linked to create a
18765# shared library.
18766postdeps=$lt_postdeps_RC
18767
18768# The library search path used internally by the compiler when linking
18769# a shared library.
18770compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18771
18772# Method to check whether dependent libraries are shared objects.
18773deplibs_check_method=$lt_deplibs_check_method
18774
18775# Command to use when deplibs_check_method == file_magic.
18776file_magic_cmd=$lt_file_magic_cmd
18777
18778# Flag that allows shared libraries with undefined symbols to be built.
18779allow_undefined_flag=$lt_allow_undefined_flag_RC
18780
18781# Flag that forces no undefined symbols.
18782no_undefined_flag=$lt_no_undefined_flag_RC
18783
18784# Commands used to finish a libtool library installation in a directory.
18785finish_cmds=$lt_finish_cmds
18786
18787# Same as above, but a single script fragment to be evaled but not shown.
18788finish_eval=$lt_finish_eval
18789
18790# Take the output of nm and produce a listing of raw symbols and C names.
18791global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18792
18793# Transform the output of nm in a proper C declaration
18794global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18795
18796# Transform the output of nm in a C name address pair
18797global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18798
18799# This is the shared library runtime path variable.
18800runpath_var=$runpath_var
18801
18802# This is the shared library path variable.
18803shlibpath_var=$shlibpath_var
18804
18805# Is shlibpath searched before the hard-coded library search path?
18806shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18807
18808# How to hardcode a shared library path into an executable.
18809hardcode_action=$hardcode_action_RC
18810
18811# Whether we should hardcode library paths into libraries.
18812hardcode_into_libs=$hardcode_into_libs
18813
18814# Flag to hardcode \$libdir into a binary during linking.
18815# This must work even if \$libdir does not exist.
18816hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18817
18818# If ld is used when linking, flag to hardcode \$libdir into
18819# a binary during linking. This must work even if \$libdir does
18820# not exist.
18821hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18822
18823# Whether we need a single -rpath flag with a separated argument.
18824hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18825
18826# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18827# resulting binary.
18828hardcode_direct=$hardcode_direct_RC
18829
18830# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18831# resulting binary.
18832hardcode_minus_L=$hardcode_minus_L_RC
18833
18834# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18835# the resulting binary.
18836hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18837
18838# Set to yes if building a shared library automatically hardcodes DIR into the library
18839# and all subsequent libraries and executables linked against it.
18840hardcode_automatic=$hardcode_automatic_RC
18841
18842# Variables whose values should be saved in libtool wrapper scripts and
18843# restored at relink time.
18844variables_saved_for_relink="$variables_saved_for_relink"
18845
18846# Whether libtool must link a program against all its dependency libraries.
18847link_all_deplibs=$link_all_deplibs_RC
18848
18849# Compile-time system search path for libraries
18850sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18851
18852# Run-time system search path for libraries
18853sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18854
18855# Fix the shell variable \$srcfile for the compiler.
18856fix_srcfile_path="$fix_srcfile_path_RC"
18857
18858# Set to yes if exported symbols are required.
18859always_export_symbols=$always_export_symbols_RC
18860
18861# The commands to list exported symbols.
18862export_symbols_cmds=$lt_export_symbols_cmds_RC
18863
18864# The commands to extract the exported symbol list from a shared archive.
18865extract_expsyms_cmds=$lt_extract_expsyms_cmds
18866
18867# Symbols that should not be listed in the preloaded symbols.
18868exclude_expsyms=$lt_exclude_expsyms_RC
18869
18870# Symbols that must always be exported.
18871include_expsyms=$lt_include_expsyms_RC
18872
18873# ### END LIBTOOL TAG CONFIG: $tagname
18874
18875__EOF__
18876
18877
18878else
18879 # If there is no Makefile yet, we rely on a make rule to execute
18880 # `config.status --recheck' to rerun these tests and create the
18881 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018882 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18883 if test -f "$ltmain_in"; then
18884 test -f Makefile && make "$ltmain"
18885 fi
John Criswell47fdd832003-07-14 16:52:07 +000018886fi
18887
18888
18889ac_ext=c
18890ac_cpp='$CPP $CPPFLAGS'
18891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18893ac_compiler_gnu=$ac_cv_c_compiler_gnu
18894
18895CC="$lt_save_CC"
18896
18897 ;;
18898
18899 *)
18900 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18901echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18902 { (exit 1); exit 1; }; }
18903 ;;
18904 esac
18905
18906 # Append the new tag name to the list of available tags.
18907 if test -n "$tagname" ; then
18908 available_tags="$available_tags $tagname"
18909 fi
18910 fi
18911 done
18912 IFS="$lt_save_ifs"
18913
18914 # Now substitute the updated list of available tags.
18915 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18916 mv "${ofile}T" "$ofile"
18917 chmod +x "$ofile"
18918 else
18919 rm -f "${ofile}T"
18920 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18921echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18922 { (exit 1); exit 1; }; }
18923 fi
18924fi
John Criswell7a73b802003-06-30 21:59:07 +000018925
18926
18927
18928# This can be used to rebuild libtool when needed
18929LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18930
18931# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018932LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018933
18934# Prevent multiple expansion
18935
18936
18937
John Criswell47fdd832003-07-14 16:52:07 +000018938
18939
18940
18941
18942
18943
18944
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954
Reid Spencerad354c92004-10-25 08:18:47 +000018955# Extract the first word of "tar", so it can be a program name with args.
18956set dummy tar; ac_word=$2
18957echo "$as_me:$LINENO: checking for $ac_word" >&5
18958echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18959if test "${ac_cv_path_TAR+set}" = set; then
18960 echo $ECHO_N "(cached) $ECHO_C" >&6
18961else
18962 case $TAR in
18963 [\\/]* | ?:[\\/]*)
18964 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
18965 ;;
18966 *)
18967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18968for as_dir in $PATH
18969do
18970 IFS=$as_save_IFS
18971 test -z "$as_dir" && as_dir=.
18972 for ac_exec_ext in '' $ac_executable_extensions; do
18973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18974 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
18975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18976 break 2
18977 fi
18978done
18979done
18980
18981 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
18982 ;;
18983esac
18984fi
18985TAR=$ac_cv_path_TAR
18986
18987if test -n "$TAR"; then
18988 echo "$as_me:$LINENO: result: $TAR" >&5
18989echo "${ECHO_T}$TAR" >&6
18990else
18991 echo "$as_me:$LINENO: result: no" >&5
18992echo "${ECHO_T}no" >&6
18993fi
18994
John Criswell47fdd832003-07-14 16:52:07 +000018995
John Criswell7a73b802003-06-30 21:59:07 +000018996# Extract the first word of "dot", so it can be a program name with args.
18997set dummy dot; ac_word=$2
18998echo "$as_me:$LINENO: checking for $ac_word" >&5
18999echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19000if test "${ac_cv_path_DOT+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19002else
19003 case $DOT in
19004 [\\/]* | ?:[\\/]*)
19005 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
19006 ;;
19007 *)
19008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19009for as_dir in $PATH
19010do
19011 IFS=$as_save_IFS
19012 test -z "$as_dir" && as_dir=.
19013 for ac_exec_ext in '' $ac_executable_extensions; do
19014 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19015 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
19016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19017 break 2
19018 fi
19019done
19020done
19021
Brian Gaeke26be9c52004-01-13 06:43:16 +000019022 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000019023 ;;
19024esac
19025fi
19026DOT=$ac_cv_path_DOT
19027
19028if test -n "$DOT"; then
19029 echo "$as_me:$LINENO: result: $DOT" >&5
19030echo "${ECHO_T}$DOT" >&6
19031else
19032 echo "$as_me:$LINENO: result: no" >&5
19033echo "${ECHO_T}no" >&6
19034fi
19035
19036# Extract the first word of "etags", so it can be a program name with args.
19037set dummy etags; ac_word=$2
19038echo "$as_me:$LINENO: checking for $ac_word" >&5
19039echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19040if test "${ac_cv_path_ETAGS+set}" = set; then
19041 echo $ECHO_N "(cached) $ECHO_C" >&6
19042else
19043 case $ETAGS in
19044 [\\/]* | ?:[\\/]*)
19045 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
19046 ;;
19047 *)
19048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19049for as_dir in $PATH
19050do
19051 IFS=$as_save_IFS
19052 test -z "$as_dir" && as_dir=.
19053 for ac_exec_ext in '' $ac_executable_extensions; do
19054 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19055 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
19056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19057 break 2
19058 fi
19059done
19060done
19061
Brian Gaeke26be9c52004-01-13 06:43:16 +000019062 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000019063 ;;
19064esac
19065fi
19066ETAGS=$ac_cv_path_ETAGS
19067
19068if test -n "$ETAGS"; then
19069 echo "$as_me:$LINENO: result: $ETAGS" >&5
19070echo "${ECHO_T}$ETAGS" >&6
19071else
19072 echo "$as_me:$LINENO: result: no" >&5
19073echo "${ECHO_T}no" >&6
19074fi
19075
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000019076etags_version=`$ETAGS --version 2>&1`
19077case "$etags_version" in
19078 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19079 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19080 *) ETAGSFLAGS="" ;;
19081esac
19082ETAGSFLAGS=$ETAGSFLAGS
19083
John Criswellde00db22003-08-25 16:49:54 +000019084# Extract the first word of "python", so it can be a program name with args.
19085set dummy python; ac_word=$2
19086echo "$as_me:$LINENO: checking for $ac_word" >&5
19087echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19088if test "${ac_cv_path_PYTHON+set}" = set; then
19089 echo $ECHO_N "(cached) $ECHO_C" >&6
19090else
19091 case $PYTHON in
19092 [\\/]* | ?:[\\/]*)
19093 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19094 ;;
19095 *)
19096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19097for as_dir in $PATH
19098do
19099 IFS=$as_save_IFS
19100 test -z "$as_dir" && as_dir=.
19101 for ac_exec_ext in '' $ac_executable_extensions; do
19102 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19103 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19105 break 2
19106 fi
19107done
19108done
19109
Brian Gaeke26be9c52004-01-13 06:43:16 +000019110 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000019111 ;;
19112esac
19113fi
19114PYTHON=$ac_cv_path_PYTHON
19115
19116if test -n "$PYTHON"; then
19117 echo "$as_me:$LINENO: result: $PYTHON" >&5
19118echo "${ECHO_T}$PYTHON" >&6
19119else
19120 echo "$as_me:$LINENO: result: no" >&5
19121echo "${ECHO_T}no" >&6
19122fi
19123
Brian Gaeke26be9c52004-01-13 06:43:16 +000019124if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000019125then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019126 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19127echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019128fi
John Criswellde00db22003-08-25 16:49:54 +000019129# Extract the first word of "qmtest", so it can be a program name with args.
19130set dummy qmtest; ac_word=$2
19131echo "$as_me:$LINENO: checking for $ac_word" >&5
19132echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19133if test "${ac_cv_path_QMTEST+set}" = set; then
19134 echo $ECHO_N "(cached) $ECHO_C" >&6
19135else
19136 case $QMTEST in
19137 [\\/]* | ?:[\\/]*)
19138 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19139 ;;
19140 *)
19141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19142for as_dir in $PATH
19143do
19144 IFS=$as_save_IFS
19145 test -z "$as_dir" && as_dir=.
19146 for ac_exec_ext in '' $ac_executable_extensions; do
19147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19148 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19150 break 2
19151 fi
19152done
19153done
19154
Brian Gaeke26be9c52004-01-13 06:43:16 +000019155 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000019156 ;;
19157esac
19158fi
19159QMTEST=$ac_cv_path_QMTEST
19160
19161if test -n "$QMTEST"; then
19162 echo "$as_me:$LINENO: result: $QMTEST" >&5
19163echo "${ECHO_T}$QMTEST" >&6
19164else
19165 echo "$as_me:$LINENO: result: no" >&5
19166echo "${ECHO_T}no" >&6
19167fi
19168
Brian Gaeke26be9c52004-01-13 06:43:16 +000019169if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000019170then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019171 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19172echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019173fi
John Criswellde00db22003-08-25 16:49:54 +000019174
19175pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19176pymajor=`echo $pyversion | cut -d. -f1`
19177pyminor=`echo $pyversion | cut -d. -f2`
19178
19179if test "$pymajor" -ge "2"
19180then
19181 if test "$pymajor" -eq "2"
19182 then
19183 if test "$pyminor" -lt "2"
19184 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019185 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19186echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019187 fi
19188 fi
19189else
Brian Gaeke26be9c52004-01-13 06:43:16 +000019190 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19191echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019192fi
John Criswell7a73b802003-06-30 21:59:07 +000019193
19194
John Criswell7a73b802003-06-30 21:59:07 +000019195echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19196echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19197if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19198 echo $ECHO_N "(cached) $ECHO_C" >&6
19199else
19200 ac_check_lib_save_LIBS=$LIBS
19201LIBS="-lelf $LIBS"
19202cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019203/* confdefs.h. */
19204_ACEOF
19205cat confdefs.h >>conftest.$ac_ext
19206cat >>conftest.$ac_ext <<_ACEOF
19207/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019208
19209/* Override any gcc2 internal prototype to avoid an error. */
19210#ifdef __cplusplus
19211extern "C"
19212#endif
19213/* We use char because int might match the return type of a gcc2
19214 builtin and then its argument prototype would still apply. */
19215char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019216int
19217main ()
19218{
19219elf_begin ();
19220 ;
19221 return 0;
19222}
19223_ACEOF
19224rm -f conftest.$ac_objext conftest$ac_exeext
19225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019226 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019227 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019228 grep -v '^ *+' conftest.er1 >conftest.err
19229 rm -f conftest.er1
19230 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019233 { ac_try='test -z "$ac_c_werror_flag"
19234 || test ! -s conftest.err'
19235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19236 (eval $ac_try) 2>&5
19237 ac_status=$?
19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19239 (exit $ac_status); }; } &&
19240 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242 (eval $ac_try) 2>&5
19243 ac_status=$?
19244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245 (exit $ac_status); }; }; then
19246 ac_cv_lib_elf_elf_begin=yes
19247else
19248 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019249sed 's/^/| /' conftest.$ac_ext >&5
19250
John Criswell7a73b802003-06-30 21:59:07 +000019251ac_cv_lib_elf_elf_begin=no
19252fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019253rm -f conftest.err conftest.$ac_objext \
19254 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019255LIBS=$ac_check_lib_save_LIBS
19256fi
19257echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19258echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19259if test $ac_cv_lib_elf_elf_begin = yes; then
19260 cat >>confdefs.h <<_ACEOF
19261#define HAVE_LIBELF 1
19262_ACEOF
19263
19264 LIBS="-lelf $LIBS"
19265
19266fi
19267
19268
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019269echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
19270echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
19271if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
19272 echo $ECHO_N "(cached) $ECHO_C" >&6
19273else
19274 ac_check_lib_save_LIBS=$LIBS
19275LIBS="-lbz2 $LIBS"
19276cat >conftest.$ac_ext <<_ACEOF
19277/* confdefs.h. */
19278_ACEOF
19279cat confdefs.h >>conftest.$ac_ext
19280cat >>conftest.$ac_ext <<_ACEOF
19281/* end confdefs.h. */
19282
19283/* Override any gcc2 internal prototype to avoid an error. */
19284#ifdef __cplusplus
19285extern "C"
19286#endif
19287/* We use char because int might match the return type of a gcc2
19288 builtin and then its argument prototype would still apply. */
19289char BZ2_bzCompressInit ();
19290int
19291main ()
19292{
19293BZ2_bzCompressInit ();
19294 ;
19295 return 0;
19296}
19297_ACEOF
19298rm -f conftest.$ac_objext conftest$ac_exeext
19299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19300 (eval $ac_link) 2>conftest.er1
19301 ac_status=$?
19302 grep -v '^ *+' conftest.er1 >conftest.err
19303 rm -f conftest.er1
19304 cat conftest.err >&5
19305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19306 (exit $ac_status); } &&
19307 { ac_try='test -z "$ac_c_werror_flag"
19308 || test ! -s conftest.err'
19309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19310 (eval $ac_try) 2>&5
19311 ac_status=$?
19312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19313 (exit $ac_status); }; } &&
19314 { ac_try='test -s conftest$ac_exeext'
19315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19316 (eval $ac_try) 2>&5
19317 ac_status=$?
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); }; }; then
19320 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
19321else
19322 echo "$as_me: failed program was:" >&5
19323sed 's/^/| /' conftest.$ac_ext >&5
19324
19325ac_cv_lib_bz2_BZ2_bzCompressInit=no
19326fi
19327rm -f conftest.err conftest.$ac_objext \
19328 conftest$ac_exeext conftest.$ac_ext
19329LIBS=$ac_check_lib_save_LIBS
19330fi
19331echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
19332echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
19333if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
19334 bzip2_found=1
19335else
19336 bzip2_found=0
19337fi
19338
Reid Spencer0d98aed2004-10-04 22:05:53 +000019339
19340for ac_header in bzlib.h
19341do
19342as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19343if eval "test \"\${$as_ac_Header+set}\" = set"; then
19344 echo "$as_me:$LINENO: checking for $ac_header" >&5
19345echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19346if eval "test \"\${$as_ac_Header+set}\" = set"; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19348fi
19349echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19350echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19351else
19352 # Is the header compilable?
19353echo "$as_me:$LINENO: checking $ac_header usability" >&5
19354echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19355cat >conftest.$ac_ext <<_ACEOF
19356/* confdefs.h. */
19357_ACEOF
19358cat confdefs.h >>conftest.$ac_ext
19359cat >>conftest.$ac_ext <<_ACEOF
19360/* end confdefs.h. */
19361$ac_includes_default
19362#include <$ac_header>
19363_ACEOF
19364rm -f conftest.$ac_objext
19365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19366 (eval $ac_compile) 2>conftest.er1
19367 ac_status=$?
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -z "$ac_c_werror_flag"
19374 || test ! -s conftest.err'
19375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19376 (eval $ac_try) 2>&5
19377 ac_status=$?
19378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19379 (exit $ac_status); }; } &&
19380 { ac_try='test -s conftest.$ac_objext'
19381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19382 (eval $ac_try) 2>&5
19383 ac_status=$?
19384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19385 (exit $ac_status); }; }; then
19386 ac_header_compiler=yes
19387else
19388 echo "$as_me: failed program was:" >&5
19389sed 's/^/| /' conftest.$ac_ext >&5
19390
19391ac_header_compiler=no
19392fi
19393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19394echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19395echo "${ECHO_T}$ac_header_compiler" >&6
19396
19397# Is the header present?
19398echo "$as_me:$LINENO: checking $ac_header presence" >&5
19399echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19400cat >conftest.$ac_ext <<_ACEOF
19401/* confdefs.h. */
19402_ACEOF
19403cat confdefs.h >>conftest.$ac_ext
19404cat >>conftest.$ac_ext <<_ACEOF
19405/* end confdefs.h. */
19406#include <$ac_header>
19407_ACEOF
19408if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19410 ac_status=$?
19411 grep -v '^ *+' conftest.er1 >conftest.err
19412 rm -f conftest.er1
19413 cat conftest.err >&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } >/dev/null; then
19416 if test -s conftest.err; then
19417 ac_cpp_err=$ac_c_preproc_warn_flag
19418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19419 else
19420 ac_cpp_err=
19421 fi
19422else
19423 ac_cpp_err=yes
19424fi
19425if test -z "$ac_cpp_err"; then
19426 ac_header_preproc=yes
19427else
19428 echo "$as_me: failed program was:" >&5
19429sed 's/^/| /' conftest.$ac_ext >&5
19430
19431 ac_header_preproc=no
19432fi
19433rm -f conftest.err conftest.$ac_ext
19434echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19435echo "${ECHO_T}$ac_header_preproc" >&6
19436
19437# So? What about this header?
19438case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19439 yes:no: )
19440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19441echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19443echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19444 ac_header_preproc=yes
19445 ;;
19446 no:yes:* )
19447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19448echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19450echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19452echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19454echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19456echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19458echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19459 (
19460 cat <<\_ASBOX
19461## ----------------------------------- ##
19462## Report this to llvmbugs@cs.uiuc.edu ##
19463## ----------------------------------- ##
19464_ASBOX
19465 ) |
19466 sed "s/^/$as_me: WARNING: /" >&2
19467 ;;
19468esac
19469echo "$as_me:$LINENO: checking for $ac_header" >&5
19470echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19471if eval "test \"\${$as_ac_Header+set}\" = set"; then
19472 echo $ECHO_N "(cached) $ECHO_C" >&6
19473else
19474 eval "$as_ac_Header=\$ac_header_preproc"
19475fi
19476echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19477echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19478
19479fi
19480if test `eval echo '${'$as_ac_Header'}'` = yes; then
19481 cat >>confdefs.h <<_ACEOF
19482#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19483_ACEOF
19484 bzlib_h_found=1
19485else
19486 bzlib_h_found=0
19487fi
19488
19489done
19490
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019491echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19492echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19493if test "${ac_cv_lib_z_gzopen+set}" = set; then
19494 echo $ECHO_N "(cached) $ECHO_C" >&6
19495else
19496 ac_check_lib_save_LIBS=$LIBS
19497LIBS="-lz $LIBS"
19498cat >conftest.$ac_ext <<_ACEOF
19499/* confdefs.h. */
19500_ACEOF
19501cat confdefs.h >>conftest.$ac_ext
19502cat >>conftest.$ac_ext <<_ACEOF
19503/* end confdefs.h. */
19504
19505/* Override any gcc2 internal prototype to avoid an error. */
19506#ifdef __cplusplus
19507extern "C"
19508#endif
19509/* We use char because int might match the return type of a gcc2
19510 builtin and then its argument prototype would still apply. */
19511char gzopen ();
19512int
19513main ()
19514{
19515gzopen ();
19516 ;
19517 return 0;
19518}
19519_ACEOF
19520rm -f conftest.$ac_objext conftest$ac_exeext
19521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19522 (eval $ac_link) 2>conftest.er1
19523 ac_status=$?
19524 grep -v '^ *+' conftest.er1 >conftest.err
19525 rm -f conftest.er1
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } &&
19529 { ac_try='test -z "$ac_c_werror_flag"
19530 || test ! -s conftest.err'
19531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19532 (eval $ac_try) 2>&5
19533 ac_status=$?
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; } &&
19536 { ac_try='test -s conftest$ac_exeext'
19537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19538 (eval $ac_try) 2>&5
19539 ac_status=$?
19540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19541 (exit $ac_status); }; }; then
19542 ac_cv_lib_z_gzopen=yes
19543else
19544 echo "$as_me: failed program was:" >&5
19545sed 's/^/| /' conftest.$ac_ext >&5
19546
19547ac_cv_lib_z_gzopen=no
19548fi
19549rm -f conftest.err conftest.$ac_objext \
19550 conftest$ac_exeext conftest.$ac_ext
19551LIBS=$ac_check_lib_save_LIBS
19552fi
19553echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19554echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19555if test $ac_cv_lib_z_gzopen = yes; then
19556 zlib_found=1
19557else
19558 zlib_found=0
19559fi
19560
Reid Spencer37130d22004-10-04 07:05:07 +000019561
Reid Spencer0d98aed2004-10-04 22:05:53 +000019562for ac_header in zlib.h
19563do
19564as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19565if eval "test \"\${$as_ac_Header+set}\" = set"; then
19566 echo "$as_me:$LINENO: checking for $ac_header" >&5
19567echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19568if eval "test \"\${$as_ac_Header+set}\" = set"; then
19569 echo $ECHO_N "(cached) $ECHO_C" >&6
19570fi
19571echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19572echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19573else
19574 # Is the header compilable?
19575echo "$as_me:$LINENO: checking $ac_header usability" >&5
19576echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19577cat >conftest.$ac_ext <<_ACEOF
19578/* confdefs.h. */
19579_ACEOF
19580cat confdefs.h >>conftest.$ac_ext
19581cat >>conftest.$ac_ext <<_ACEOF
19582/* end confdefs.h. */
19583$ac_includes_default
19584#include <$ac_header>
19585_ACEOF
19586rm -f conftest.$ac_objext
19587if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19588 (eval $ac_compile) 2>conftest.er1
19589 ac_status=$?
19590 grep -v '^ *+' conftest.er1 >conftest.err
19591 rm -f conftest.er1
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } &&
19595 { ac_try='test -z "$ac_c_werror_flag"
19596 || test ! -s conftest.err'
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; } &&
19602 { ac_try='test -s conftest.$ac_objext'
19603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19604 (eval $ac_try) 2>&5
19605 ac_status=$?
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19608 ac_header_compiler=yes
19609else
19610 echo "$as_me: failed program was:" >&5
19611sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencer37130d22004-10-04 07:05:07 +000019612
Reid Spencer0d98aed2004-10-04 22:05:53 +000019613ac_header_compiler=no
19614fi
19615rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19616echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19617echo "${ECHO_T}$ac_header_compiler" >&6
19618
19619# Is the header present?
19620echo "$as_me:$LINENO: checking $ac_header presence" >&5
19621echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19622cat >conftest.$ac_ext <<_ACEOF
19623/* confdefs.h. */
19624_ACEOF
19625cat confdefs.h >>conftest.$ac_ext
19626cat >>conftest.$ac_ext <<_ACEOF
19627/* end confdefs.h. */
19628#include <$ac_header>
19629_ACEOF
19630if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19632 ac_status=$?
19633 grep -v '^ *+' conftest.er1 >conftest.err
19634 rm -f conftest.er1
19635 cat conftest.err >&5
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } >/dev/null; then
19638 if test -s conftest.err; then
19639 ac_cpp_err=$ac_c_preproc_warn_flag
19640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19641 else
19642 ac_cpp_err=
19643 fi
19644else
19645 ac_cpp_err=yes
19646fi
19647if test -z "$ac_cpp_err"; then
19648 ac_header_preproc=yes
19649else
19650 echo "$as_me: failed program was:" >&5
19651sed 's/^/| /' conftest.$ac_ext >&5
19652
19653 ac_header_preproc=no
19654fi
19655rm -f conftest.err conftest.$ac_ext
19656echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19657echo "${ECHO_T}$ac_header_preproc" >&6
19658
19659# So? What about this header?
19660case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19661 yes:no: )
19662 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19663echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19664 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19665echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19666 ac_header_preproc=yes
19667 ;;
19668 no:yes:* )
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19670echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19671 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19672echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19673 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19674echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19675 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19676echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19677 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19678echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19679 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19680echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19681 (
19682 cat <<\_ASBOX
19683## ----------------------------------- ##
19684## Report this to llvmbugs@cs.uiuc.edu ##
19685## ----------------------------------- ##
19686_ASBOX
19687 ) |
19688 sed "s/^/$as_me: WARNING: /" >&2
19689 ;;
19690esac
19691echo "$as_me:$LINENO: checking for $ac_header" >&5
19692echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19693if eval "test \"\${$as_ac_Header+set}\" = set"; then
19694 echo $ECHO_N "(cached) $ECHO_C" >&6
19695else
19696 eval "$as_ac_Header=\$ac_header_preproc"
19697fi
19698echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19699echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19700
19701fi
19702if test `eval echo '${'$as_ac_Header'}'` = yes; then
19703 cat >>confdefs.h <<_ACEOF
19704#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19705_ACEOF
19706 zlib_h_found=1
19707else
19708 zlib_h_found=0
19709fi
19710
19711done
19712
19713if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019714
19715cat >>confdefs.h <<\_ACEOF
19716#define HAVE_ZLIB 1
19717_ACEOF
19718
Reid Spencer0d98aed2004-10-04 22:05:53 +000019719 HAVE_ZLIB=1
19720
19721else
19722 HAVE_ZLIB=0
19723
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019724fi
Reid Spencer0d98aed2004-10-04 22:05:53 +000019725if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019726
19727cat >>confdefs.h <<\_ACEOF
19728#define HAVE_BZIP2 1
19729_ACEOF
19730
Reid Spencer0d98aed2004-10-04 22:05:53 +000019731 HAVE_BZIP2=1
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019732
Reid Spencer0d98aed2004-10-04 22:05:53 +000019733else
19734 HAVE_BZIP2=0
19735
19736fi
John Criswell7a73b802003-06-30 21:59:07 +000019737echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19738echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19739if test "${ac_cv_search_dlopen+set}" = set; then
19740 echo $ECHO_N "(cached) $ECHO_C" >&6
19741else
19742 ac_func_search_save_LIBS=$LIBS
19743ac_cv_search_dlopen=no
19744cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019745/* confdefs.h. */
19746_ACEOF
19747cat confdefs.h >>conftest.$ac_ext
19748cat >>conftest.$ac_ext <<_ACEOF
19749/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019750
19751/* Override any gcc2 internal prototype to avoid an error. */
19752#ifdef __cplusplus
19753extern "C"
19754#endif
19755/* We use char because int might match the return type of a gcc2
19756 builtin and then its argument prototype would still apply. */
19757char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019758int
19759main ()
19760{
19761dlopen ();
19762 ;
19763 return 0;
19764}
19765_ACEOF
19766rm -f conftest.$ac_objext conftest$ac_exeext
19767if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019768 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019769 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019770 grep -v '^ *+' conftest.er1 >conftest.err
19771 rm -f conftest.er1
19772 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019775 { ac_try='test -z "$ac_c_werror_flag"
19776 || test ! -s conftest.err'
19777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19778 (eval $ac_try) 2>&5
19779 ac_status=$?
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); }; } &&
19782 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19785 ac_status=$?
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; }; then
19788 ac_cv_search_dlopen="none required"
19789else
19790 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019791sed 's/^/| /' conftest.$ac_ext >&5
19792
John Criswell7a73b802003-06-30 21:59:07 +000019793fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019794rm -f conftest.err conftest.$ac_objext \
19795 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019796if test "$ac_cv_search_dlopen" = no; then
19797 for ac_lib in dl; do
19798 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19799 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019800/* confdefs.h. */
19801_ACEOF
19802cat confdefs.h >>conftest.$ac_ext
19803cat >>conftest.$ac_ext <<_ACEOF
19804/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019805
19806/* Override any gcc2 internal prototype to avoid an error. */
19807#ifdef __cplusplus
19808extern "C"
19809#endif
19810/* We use char because int might match the return type of a gcc2
19811 builtin and then its argument prototype would still apply. */
19812char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019813int
19814main ()
19815{
19816dlopen ();
19817 ;
19818 return 0;
19819}
19820_ACEOF
19821rm -f conftest.$ac_objext conftest$ac_exeext
19822if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019823 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019824 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019830 { ac_try='test -z "$ac_c_werror_flag"
19831 || test ! -s conftest.err'
19832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19833 (eval $ac_try) 2>&5
19834 ac_status=$?
19835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19836 (exit $ac_status); }; } &&
19837 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19839 (eval $ac_try) 2>&5
19840 ac_status=$?
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; }; then
19843 ac_cv_search_dlopen="-l$ac_lib"
19844break
19845else
19846 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019847sed 's/^/| /' conftest.$ac_ext >&5
19848
John Criswell7a73b802003-06-30 21:59:07 +000019849fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019850rm -f conftest.err conftest.$ac_objext \
19851 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019852 done
19853fi
19854LIBS=$ac_func_search_save_LIBS
19855fi
19856echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19857echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19858if test "$ac_cv_search_dlopen" != no; then
19859 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019860
19861cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019862#define HAVE_DLOPEN 1
19863_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019864
19865else
Brian Gaekec45be042003-10-07 06:01:34 +000019866 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19867echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019868fi
19869
19870
19871echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19872echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19873if test "${ac_cv_search_mallinfo+set}" = set; then
19874 echo $ECHO_N "(cached) $ECHO_C" >&6
19875else
19876 ac_func_search_save_LIBS=$LIBS
19877ac_cv_search_mallinfo=no
19878cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019879/* confdefs.h. */
19880_ACEOF
19881cat confdefs.h >>conftest.$ac_ext
19882cat >>conftest.$ac_ext <<_ACEOF
19883/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019884
19885/* Override any gcc2 internal prototype to avoid an error. */
19886#ifdef __cplusplus
19887extern "C"
19888#endif
19889/* We use char because int might match the return type of a gcc2
19890 builtin and then its argument prototype would still apply. */
19891char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019892int
19893main ()
19894{
19895mallinfo ();
19896 ;
19897 return 0;
19898}
19899_ACEOF
19900rm -f conftest.$ac_objext conftest$ac_exeext
19901if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019902 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019903 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019904 grep -v '^ *+' conftest.er1 >conftest.err
19905 rm -f conftest.er1
19906 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19908 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019909 { ac_try='test -z "$ac_c_werror_flag"
19910 || test ! -s conftest.err'
19911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19912 (eval $ac_try) 2>&5
19913 ac_status=$?
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; } &&
19916 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; }; then
19922 ac_cv_search_mallinfo="none required"
19923else
19924 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019925sed 's/^/| /' conftest.$ac_ext >&5
19926
John Criswell7a73b802003-06-30 21:59:07 +000019927fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019928rm -f conftest.err conftest.$ac_objext \
19929 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019930if test "$ac_cv_search_mallinfo" = no; then
19931 for ac_lib in malloc; do
19932 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19933 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019934/* confdefs.h. */
19935_ACEOF
19936cat confdefs.h >>conftest.$ac_ext
19937cat >>conftest.$ac_ext <<_ACEOF
19938/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019939
19940/* Override any gcc2 internal prototype to avoid an error. */
19941#ifdef __cplusplus
19942extern "C"
19943#endif
19944/* We use char because int might match the return type of a gcc2
19945 builtin and then its argument prototype would still apply. */
19946char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019947int
19948main ()
19949{
19950mallinfo ();
19951 ;
19952 return 0;
19953}
19954_ACEOF
19955rm -f conftest.$ac_objext conftest$ac_exeext
19956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019957 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019958 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019959 grep -v '^ *+' conftest.er1 >conftest.err
19960 rm -f conftest.er1
19961 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019964 { ac_try='test -z "$ac_c_werror_flag"
19965 || test ! -s conftest.err'
19966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19967 (eval $ac_try) 2>&5
19968 ac_status=$?
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; } &&
19971 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19973 (eval $ac_try) 2>&5
19974 ac_status=$?
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); }; }; then
19977 ac_cv_search_mallinfo="-l$ac_lib"
19978break
19979else
19980 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019981sed 's/^/| /' conftest.$ac_ext >&5
19982
John Criswell7a73b802003-06-30 21:59:07 +000019983fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019984rm -f conftest.err conftest.$ac_objext \
19985 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019986 done
19987fi
19988LIBS=$ac_func_search_save_LIBS
19989fi
19990echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19991echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19992if test "$ac_cv_search_mallinfo" != no; then
19993 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019994
19995cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019996#define HAVE_MALLINFO 1
19997_ACEOF
19998
19999fi
20000
20001
Brian Gaeke5f268f72003-12-05 19:29:01 +000020002echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
20003echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
20004if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
20005 echo $ECHO_N "(cached) $ECHO_C" >&6
20006else
20007 ac_func_search_save_LIBS=$LIBS
20008ac_cv_search_pthread_mutex_lock=no
20009cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000020010/* confdefs.h. */
20011_ACEOF
20012cat confdefs.h >>conftest.$ac_ext
20013cat >>conftest.$ac_ext <<_ACEOF
20014/* end confdefs.h. */
20015
20016/* Override any gcc2 internal prototype to avoid an error. */
20017#ifdef __cplusplus
20018extern "C"
20019#endif
20020/* We use char because int might match the return type of a gcc2
20021 builtin and then its argument prototype would still apply. */
20022char pthread_mutex_lock ();
20023int
20024main ()
20025{
20026pthread_mutex_lock ();
20027 ;
20028 return 0;
20029}
20030_ACEOF
20031rm -f conftest.$ac_objext conftest$ac_exeext
20032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020033 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000020034 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020035 grep -v '^ *+' conftest.er1 >conftest.err
20036 rm -f conftest.er1
20037 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000020038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20039 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020040 { ac_try='test -z "$ac_c_werror_flag"
20041 || test ! -s conftest.err'
20042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20043 (eval $ac_try) 2>&5
20044 ac_status=$?
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); }; } &&
20047 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000020048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20050 ac_status=$?
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; }; then
20053 ac_cv_search_pthread_mutex_lock="none required"
20054else
20055 echo "$as_me: failed program was:" >&5
20056sed 's/^/| /' conftest.$ac_ext >&5
20057
20058fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020059rm -f conftest.err conftest.$ac_objext \
20060 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000020061if test "$ac_cv_search_pthread_mutex_lock" = no; then
20062 for ac_lib in pthread; do
20063 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20064 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000020065/* confdefs.h. */
20066_ACEOF
20067cat confdefs.h >>conftest.$ac_ext
20068cat >>conftest.$ac_ext <<_ACEOF
20069/* end confdefs.h. */
20070
20071/* Override any gcc2 internal prototype to avoid an error. */
20072#ifdef __cplusplus
20073extern "C"
20074#endif
20075/* We use char because int might match the return type of a gcc2
20076 builtin and then its argument prototype would still apply. */
20077char pthread_mutex_lock ();
20078int
20079main ()
20080{
20081pthread_mutex_lock ();
20082 ;
20083 return 0;
20084}
20085_ACEOF
20086rm -f conftest.$ac_objext conftest$ac_exeext
20087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020088 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000020089 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020090 grep -v '^ *+' conftest.er1 >conftest.err
20091 rm -f conftest.er1
20092 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000020093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020095 { ac_try='test -z "$ac_c_werror_flag"
20096 || test ! -s conftest.err'
20097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098 (eval $ac_try) 2>&5
20099 ac_status=$?
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); }; } &&
20102 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000020103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20104 (eval $ac_try) 2>&5
20105 ac_status=$?
20106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20107 (exit $ac_status); }; }; then
20108 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
20109break
20110else
20111 echo "$as_me: failed program was:" >&5
20112sed 's/^/| /' conftest.$ac_ext >&5
20113
20114fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020115rm -f conftest.err conftest.$ac_objext \
20116 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000020117 done
20118fi
20119LIBS=$ac_func_search_save_LIBS
20120fi
20121echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
20122echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
20123if test "$ac_cv_search_pthread_mutex_lock" != no; then
20124 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000020125
John Criswell40468462004-09-24 21:19:06 +000020126cat >>confdefs.h <<\_ACEOF
20127#define HAVE_PTHREAD_MUTEX_LOCK 1
20128_ACEOF
20129
20130fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000020131
Brian Gaekec9a410c2004-02-23 21:30:37 +000020132
John Criswell7a73b802003-06-30 21:59:07 +000020133echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20134echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20135if test "${ac_cv_header_stdc+set}" = set; then
20136 echo $ECHO_N "(cached) $ECHO_C" >&6
20137else
20138 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020139/* confdefs.h. */
20140_ACEOF
20141cat confdefs.h >>conftest.$ac_ext
20142cat >>conftest.$ac_ext <<_ACEOF
20143/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020144#include <stdlib.h>
20145#include <stdarg.h>
20146#include <string.h>
20147#include <float.h>
20148
John Criswell0c38eaf2003-09-10 15:17:25 +000020149int
20150main ()
20151{
20152
20153 ;
20154 return 0;
20155}
John Criswell7a73b802003-06-30 21:59:07 +000020156_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020157rm -f conftest.$ac_objext
20158if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020159 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020160 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020161 grep -v '^ *+' conftest.er1 >conftest.err
20162 rm -f conftest.er1
20163 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020165 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020166 { ac_try='test -z "$ac_c_werror_flag"
20167 || test ! -s conftest.err'
20168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20169 (eval $ac_try) 2>&5
20170 ac_status=$?
20171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172 (exit $ac_status); }; } &&
20173 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000020174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20175 (eval $ac_try) 2>&5
20176 ac_status=$?
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020179 ac_cv_header_stdc=yes
20180else
20181 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020182sed 's/^/| /' conftest.$ac_ext >&5
20183
20184ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000020185fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020187
20188if test $ac_cv_header_stdc = yes; then
20189 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20190 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020191/* confdefs.h. */
20192_ACEOF
20193cat confdefs.h >>conftest.$ac_ext
20194cat >>conftest.$ac_ext <<_ACEOF
20195/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020196#include <string.h>
20197
20198_ACEOF
20199if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000020200 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020201 :
20202else
20203 ac_cv_header_stdc=no
20204fi
20205rm -f conftest*
20206
20207fi
20208
20209if test $ac_cv_header_stdc = yes; then
20210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20211 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020212/* confdefs.h. */
20213_ACEOF
20214cat confdefs.h >>conftest.$ac_ext
20215cat >>conftest.$ac_ext <<_ACEOF
20216/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020217#include <stdlib.h>
20218
20219_ACEOF
20220if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000020221 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020222 :
20223else
20224 ac_cv_header_stdc=no
20225fi
20226rm -f conftest*
20227
20228fi
20229
20230if test $ac_cv_header_stdc = yes; then
20231 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20232 if test "$cross_compiling" = yes; then
20233 :
20234else
20235 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020236/* confdefs.h. */
20237_ACEOF
20238cat confdefs.h >>conftest.$ac_ext
20239cat >>conftest.$ac_ext <<_ACEOF
20240/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020241#include <ctype.h>
20242#if ((' ' & 0x0FF) == 0x020)
20243# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20244# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20245#else
John Criswell0c38eaf2003-09-10 15:17:25 +000020246# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020247 (('a' <= (c) && (c) <= 'i') \
20248 || ('j' <= (c) && (c) <= 'r') \
20249 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000020250# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20251#endif
20252
20253#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20254int
20255main ()
20256{
20257 int i;
20258 for (i = 0; i < 256; i++)
20259 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000020260 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000020261 exit(2);
20262 exit (0);
20263}
20264_ACEOF
20265rm -f conftest$ac_exeext
20266if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20267 (eval $ac_link) 2>&5
20268 ac_status=$?
20269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20272 (eval $ac_try) 2>&5
20273 ac_status=$?
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); }; }; then
20276 :
20277else
20278 echo "$as_me: program exited with status $ac_status" >&5
20279echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020280sed 's/^/| /' conftest.$ac_ext >&5
20281
John Criswell7a73b802003-06-30 21:59:07 +000020282( exit $ac_status )
20283ac_cv_header_stdc=no
20284fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020285rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020286fi
20287fi
20288fi
20289echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20290echo "${ECHO_T}$ac_cv_header_stdc" >&6
20291if test $ac_cv_header_stdc = yes; then
20292
20293cat >>confdefs.h <<\_ACEOF
20294#define STDC_HEADERS 1
20295_ACEOF
20296
20297fi
20298
20299echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20300echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20301if test "${ac_cv_header_sys_wait_h+set}" = set; then
20302 echo $ECHO_N "(cached) $ECHO_C" >&6
20303else
20304 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020305/* confdefs.h. */
20306_ACEOF
20307cat confdefs.h >>conftest.$ac_ext
20308cat >>conftest.$ac_ext <<_ACEOF
20309/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020310#include <sys/types.h>
20311#include <sys/wait.h>
20312#ifndef WEXITSTATUS
20313# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20314#endif
20315#ifndef WIFEXITED
20316# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20317#endif
20318
John Criswell7a73b802003-06-30 21:59:07 +000020319int
20320main ()
20321{
20322 int s;
20323 wait (&s);
20324 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20325 ;
20326 return 0;
20327}
20328_ACEOF
20329rm -f conftest.$ac_objext
20330if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020331 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020332 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020338 { ac_try='test -z "$ac_c_werror_flag"
20339 || test ! -s conftest.err'
20340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20341 (eval $ac_try) 2>&5
20342 ac_status=$?
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; } &&
20345 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; }; then
20351 ac_cv_header_sys_wait_h=yes
20352else
20353 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020354sed 's/^/| /' conftest.$ac_ext >&5
20355
John Criswell7a73b802003-06-30 21:59:07 +000020356ac_cv_header_sys_wait_h=no
20357fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020358rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020359fi
20360echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20361echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20362if test $ac_cv_header_sys_wait_h = yes; then
20363
20364cat >>confdefs.h <<\_ACEOF
20365#define HAVE_SYS_WAIT_H 1
20366_ACEOF
20367
20368fi
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
Brian Gaeke26be9c52004-01-13 06:43:16 +000020379
Brian Gaekef5261472004-02-20 06:40:57 +000020380
John Criswellb2815e02004-05-27 20:40:39 +000020381
20382for ac_header in fcntl.h limits.h sys/time.h unistd.h malloc.h sys/mman.h sys/resource.h dlfcn.h link.h execinfo.h windows.h
John Criswell7a73b802003-06-30 21:59:07 +000020383do
20384as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20385if eval "test \"\${$as_ac_Header+set}\" = set"; then
20386 echo "$as_me:$LINENO: checking for $ac_header" >&5
20387echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20388if eval "test \"\${$as_ac_Header+set}\" = set"; then
20389 echo $ECHO_N "(cached) $ECHO_C" >&6
20390fi
20391echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20392echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20393else
20394 # Is the header compilable?
20395echo "$as_me:$LINENO: checking $ac_header usability" >&5
20396echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20397cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020398/* confdefs.h. */
20399_ACEOF
20400cat confdefs.h >>conftest.$ac_ext
20401cat >>conftest.$ac_ext <<_ACEOF
20402/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020403$ac_includes_default
20404#include <$ac_header>
20405_ACEOF
20406rm -f conftest.$ac_objext
20407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020408 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020409 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020410 grep -v '^ *+' conftest.er1 >conftest.err
20411 rm -f conftest.er1
20412 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020415 { ac_try='test -z "$ac_c_werror_flag"
20416 || test ! -s conftest.err'
20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; } &&
20422 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424 (eval $ac_try) 2>&5
20425 ac_status=$?
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; }; then
20428 ac_header_compiler=yes
20429else
20430 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020431sed 's/^/| /' conftest.$ac_ext >&5
20432
John Criswell7a73b802003-06-30 21:59:07 +000020433ac_header_compiler=no
20434fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020435rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020436echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20437echo "${ECHO_T}$ac_header_compiler" >&6
20438
20439# Is the header present?
20440echo "$as_me:$LINENO: checking $ac_header presence" >&5
20441echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20442cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020443/* confdefs.h. */
20444_ACEOF
20445cat confdefs.h >>conftest.$ac_ext
20446cat >>conftest.$ac_ext <<_ACEOF
20447/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020448#include <$ac_header>
20449_ACEOF
20450if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20452 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000020453 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000020454 rm -f conftest.er1
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } >/dev/null; then
20458 if test -s conftest.err; then
20459 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000020461 else
20462 ac_cpp_err=
20463 fi
20464else
20465 ac_cpp_err=yes
20466fi
20467if test -z "$ac_cpp_err"; then
20468 ac_header_preproc=yes
20469else
20470 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020471sed 's/^/| /' conftest.$ac_ext >&5
20472
John Criswell7a73b802003-06-30 21:59:07 +000020473 ac_header_preproc=no
20474fi
20475rm -f conftest.err conftest.$ac_ext
20476echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20477echo "${ECHO_T}$ac_header_preproc" >&6
20478
20479# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020480case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20481 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000020482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20486 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020487 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020488 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020501 (
20502 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020503## ----------------------------------- ##
20504## Report this to llvmbugs@cs.uiuc.edu ##
20505## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000020506_ASBOX
20507 ) |
20508 sed "s/^/$as_me: WARNING: /" >&2
20509 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020510esac
20511echo "$as_me:$LINENO: checking for $ac_header" >&5
20512echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20513if eval "test \"\${$as_ac_Header+set}\" = set"; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20515else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020516 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000020517fi
20518echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20519echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20520
20521fi
20522if test `eval echo '${'$as_ac_Header'}'` = yes; then
20523 cat >>confdefs.h <<_ACEOF
20524#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20525_ACEOF
20526
20527fi
20528
20529done
20530
20531
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020532if test "${ac_cv_header_sys_types_h+set}" = set; then
20533 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20534echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20535if test "${ac_cv_header_sys_types_h+set}" = set; then
20536 echo $ECHO_N "(cached) $ECHO_C" >&6
20537fi
20538echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20539echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20540else
20541 # Is the header compilable?
20542echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20543echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20544cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020545/* confdefs.h. */
20546_ACEOF
20547cat confdefs.h >>conftest.$ac_ext
20548cat >>conftest.$ac_ext <<_ACEOF
20549/* end confdefs.h. */
20550$ac_includes_default
20551#include <sys/types.h>
20552_ACEOF
20553rm -f conftest.$ac_objext
20554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020555 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020556 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020557 grep -v '^ *+' conftest.er1 >conftest.err
20558 rm -f conftest.er1
20559 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020562 { ac_try='test -z "$ac_c_werror_flag"
20563 || test ! -s conftest.err'
20564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20565 (eval $ac_try) 2>&5
20566 ac_status=$?
20567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20568 (exit $ac_status); }; } &&
20569 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20571 (eval $ac_try) 2>&5
20572 ac_status=$?
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); }; }; then
20575 ac_header_compiler=yes
20576else
20577 echo "$as_me: failed program was:" >&5
20578sed 's/^/| /' conftest.$ac_ext >&5
20579
20580ac_header_compiler=no
20581fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020583echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20584echo "${ECHO_T}$ac_header_compiler" >&6
20585
20586# Is the header present?
20587echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20588echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20589cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020590/* confdefs.h. */
20591_ACEOF
20592cat confdefs.h >>conftest.$ac_ext
20593cat >>conftest.$ac_ext <<_ACEOF
20594/* end confdefs.h. */
20595#include <sys/types.h>
20596_ACEOF
20597if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20598 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20599 ac_status=$?
20600 grep -v '^ *+' conftest.er1 >conftest.err
20601 rm -f conftest.er1
20602 cat conftest.err >&5
20603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20604 (exit $ac_status); } >/dev/null; then
20605 if test -s conftest.err; then
20606 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020607 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020608 else
20609 ac_cpp_err=
20610 fi
20611else
20612 ac_cpp_err=yes
20613fi
20614if test -z "$ac_cpp_err"; then
20615 ac_header_preproc=yes
20616else
20617 echo "$as_me: failed program was:" >&5
20618sed 's/^/| /' conftest.$ac_ext >&5
20619
20620 ac_header_preproc=no
20621fi
20622rm -f conftest.err conftest.$ac_ext
20623echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20624echo "${ECHO_T}$ac_header_preproc" >&6
20625
20626# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20628 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020629 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20630echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020631 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20632echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20633 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020634 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020635 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020636 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20637echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020638 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20639echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20640 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20641echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20642 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20643echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020644 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20645echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020646 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20647echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020648 (
20649 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020650## ----------------------------------- ##
20651## Report this to llvmbugs@cs.uiuc.edu ##
20652## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020653_ASBOX
20654 ) |
20655 sed "s/^/$as_me: WARNING: /" >&2
20656 ;;
20657esac
20658echo "$as_me:$LINENO: checking for sys/types.h" >&5
20659echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20660if test "${ac_cv_header_sys_types_h+set}" = set; then
20661 echo $ECHO_N "(cached) $ECHO_C" >&6
20662else
20663 ac_cv_header_sys_types_h=$ac_header_preproc
20664fi
20665echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20666echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20667
20668fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020669
20670
20671if test "${ac_cv_header_inttypes_h+set}" = set; then
20672 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20673echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20674if test "${ac_cv_header_inttypes_h+set}" = set; then
20675 echo $ECHO_N "(cached) $ECHO_C" >&6
20676fi
20677echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20678echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20679else
20680 # Is the header compilable?
20681echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20682echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20683cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020684/* confdefs.h. */
20685_ACEOF
20686cat confdefs.h >>conftest.$ac_ext
20687cat >>conftest.$ac_ext <<_ACEOF
20688/* end confdefs.h. */
20689$ac_includes_default
20690#include <inttypes.h>
20691_ACEOF
20692rm -f conftest.$ac_objext
20693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020694 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020695 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020696 grep -v '^ *+' conftest.er1 >conftest.err
20697 rm -f conftest.er1
20698 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20700 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020701 { ac_try='test -z "$ac_c_werror_flag"
20702 || test ! -s conftest.err'
20703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704 (eval $ac_try) 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; } &&
20708 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20711 ac_status=$?
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; }; then
20714 ac_header_compiler=yes
20715else
20716 echo "$as_me: failed program was:" >&5
20717sed 's/^/| /' conftest.$ac_ext >&5
20718
20719ac_header_compiler=no
20720fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020722echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20723echo "${ECHO_T}$ac_header_compiler" >&6
20724
20725# Is the header present?
20726echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20727echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20728cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020729/* confdefs.h. */
20730_ACEOF
20731cat confdefs.h >>conftest.$ac_ext
20732cat >>conftest.$ac_ext <<_ACEOF
20733/* end confdefs.h. */
20734#include <inttypes.h>
20735_ACEOF
20736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20738 ac_status=$?
20739 grep -v '^ *+' conftest.er1 >conftest.err
20740 rm -f conftest.er1
20741 cat conftest.err >&5
20742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20743 (exit $ac_status); } >/dev/null; then
20744 if test -s conftest.err; then
20745 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020747 else
20748 ac_cpp_err=
20749 fi
20750else
20751 ac_cpp_err=yes
20752fi
20753if test -z "$ac_cpp_err"; then
20754 ac_header_preproc=yes
20755else
20756 echo "$as_me: failed program was:" >&5
20757sed 's/^/| /' conftest.$ac_ext >&5
20758
20759 ac_header_preproc=no
20760fi
20761rm -f conftest.err conftest.$ac_ext
20762echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20763echo "${ECHO_T}$ac_header_preproc" >&6
20764
20765# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20767 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020768 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20769echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020770 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20771echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20772 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020773 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020774 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020775 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20776echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020777 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20778echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20779 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20780echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20781 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20782echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020783 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20784echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020785 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20786echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020787 (
20788 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020789## ----------------------------------- ##
20790## Report this to llvmbugs@cs.uiuc.edu ##
20791## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020792_ASBOX
20793 ) |
20794 sed "s/^/$as_me: WARNING: /" >&2
20795 ;;
20796esac
20797echo "$as_me:$LINENO: checking for inttypes.h" >&5
20798echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20799if test "${ac_cv_header_inttypes_h+set}" = set; then
20800 echo $ECHO_N "(cached) $ECHO_C" >&6
20801else
20802 ac_cv_header_inttypes_h=$ac_header_preproc
20803fi
20804echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20805echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20806
20807fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020808
20809
John Criswell7ed43ad2004-07-19 16:12:29 +000020810if test "${ac_cv_header_stdint_h+set}" = set; then
20811 echo "$as_me:$LINENO: checking for stdint.h" >&5
20812echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20813if test "${ac_cv_header_stdint_h+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20815fi
20816echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20817echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20818else
20819 # Is the header compilable?
20820echo "$as_me:$LINENO: checking stdint.h usability" >&5
20821echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20822cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020823/* confdefs.h. */
20824_ACEOF
20825cat confdefs.h >>conftest.$ac_ext
20826cat >>conftest.$ac_ext <<_ACEOF
20827/* end confdefs.h. */
20828$ac_includes_default
20829#include <stdint.h>
20830_ACEOF
20831rm -f conftest.$ac_objext
20832if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020833 (eval $ac_compile) 2>conftest.er1
John Criswell7ed43ad2004-07-19 16:12:29 +000020834 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
John Criswell7ed43ad2004-07-19 16:12:29 +000020838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020840 { ac_try='test -z "$ac_c_werror_flag"
20841 || test ! -s conftest.err'
20842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20843 (eval $ac_try) 2>&5
20844 ac_status=$?
20845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); }; } &&
20847 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000020848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20849 (eval $ac_try) 2>&5
20850 ac_status=$?
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); }; }; then
20853 ac_header_compiler=yes
20854else
20855 echo "$as_me: failed program was:" >&5
20856sed 's/^/| /' conftest.$ac_ext >&5
20857
20858ac_header_compiler=no
20859fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020860rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000020861echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20862echo "${ECHO_T}$ac_header_compiler" >&6
20863
20864# Is the header present?
20865echo "$as_me:$LINENO: checking stdint.h presence" >&5
20866echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20867cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020868/* confdefs.h. */
20869_ACEOF
20870cat confdefs.h >>conftest.$ac_ext
20871cat >>conftest.$ac_ext <<_ACEOF
20872/* end confdefs.h. */
20873#include <stdint.h>
20874_ACEOF
20875if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20876 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20877 ac_status=$?
20878 grep -v '^ *+' conftest.er1 >conftest.err
20879 rm -f conftest.er1
20880 cat conftest.err >&5
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); } >/dev/null; then
20883 if test -s conftest.err; then
20884 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020885 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7ed43ad2004-07-19 16:12:29 +000020886 else
20887 ac_cpp_err=
20888 fi
20889else
20890 ac_cpp_err=yes
20891fi
20892if test -z "$ac_cpp_err"; then
20893 ac_header_preproc=yes
20894else
20895 echo "$as_me: failed program was:" >&5
20896sed 's/^/| /' conftest.$ac_ext >&5
20897
20898 ac_header_preproc=no
20899fi
20900rm -f conftest.err conftest.$ac_ext
20901echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20902echo "${ECHO_T}$ac_header_preproc" >&6
20903
20904# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020905case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20906 yes:no: )
John Criswell7ed43ad2004-07-19 16:12:29 +000020907 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20908echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020909 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20910echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20911 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020912 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020913 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020914 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20915echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020916 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20917echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20918 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20919echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20920 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20921echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020922 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20923echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020924 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20925echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020926 (
20927 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020928## ----------------------------------- ##
20929## Report this to llvmbugs@cs.uiuc.edu ##
20930## ----------------------------------- ##
John Criswell7ed43ad2004-07-19 16:12:29 +000020931_ASBOX
20932 ) |
20933 sed "s/^/$as_me: WARNING: /" >&2
20934 ;;
20935esac
20936echo "$as_me:$LINENO: checking for stdint.h" >&5
20937echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20938if test "${ac_cv_header_stdint_h+set}" = set; then
20939 echo $ECHO_N "(cached) $ECHO_C" >&6
20940else
20941 ac_cv_header_stdint_h=$ac_header_preproc
20942fi
20943echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20944echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20945
20946fi
John Criswell7ed43ad2004-07-19 16:12:29 +000020947
20948
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020949
John Criswell7a73b802003-06-30 21:59:07 +000020950echo "$as_me:$LINENO: checking for pid_t" >&5
20951echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20952if test "${ac_cv_type_pid_t+set}" = set; then
20953 echo $ECHO_N "(cached) $ECHO_C" >&6
20954else
20955 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020956/* confdefs.h. */
20957_ACEOF
20958cat confdefs.h >>conftest.$ac_ext
20959cat >>conftest.$ac_ext <<_ACEOF
20960/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020961$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020962int
20963main ()
20964{
20965if ((pid_t *) 0)
20966 return 0;
20967if (sizeof (pid_t))
20968 return 0;
20969 ;
20970 return 0;
20971}
20972_ACEOF
20973rm -f conftest.$ac_objext
20974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020975 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020976 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020977 grep -v '^ *+' conftest.er1 >conftest.err
20978 rm -f conftest.er1
20979 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20981 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020982 { ac_try='test -z "$ac_c_werror_flag"
20983 || test ! -s conftest.err'
20984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20985 (eval $ac_try) 2>&5
20986 ac_status=$?
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); }; } &&
20989 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20991 (eval $ac_try) 2>&5
20992 ac_status=$?
20993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); }; }; then
20995 ac_cv_type_pid_t=yes
20996else
20997 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020998sed 's/^/| /' conftest.$ac_ext >&5
20999
John Criswell7a73b802003-06-30 21:59:07 +000021000ac_cv_type_pid_t=no
21001fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021003fi
21004echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21005echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21006if test $ac_cv_type_pid_t = yes; then
21007 :
21008else
21009
21010cat >>confdefs.h <<_ACEOF
21011#define pid_t int
21012_ACEOF
21013
21014fi
21015
21016echo "$as_me:$LINENO: checking for size_t" >&5
21017echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21018if test "${ac_cv_type_size_t+set}" = set; then
21019 echo $ECHO_N "(cached) $ECHO_C" >&6
21020else
21021 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021022/* confdefs.h. */
21023_ACEOF
21024cat confdefs.h >>conftest.$ac_ext
21025cat >>conftest.$ac_ext <<_ACEOF
21026/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021027$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000021028int
21029main ()
21030{
21031if ((size_t *) 0)
21032 return 0;
21033if (sizeof (size_t))
21034 return 0;
21035 ;
21036 return 0;
21037}
21038_ACEOF
21039rm -f conftest.$ac_objext
21040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021041 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021042 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021043 grep -v '^ *+' conftest.er1 >conftest.err
21044 rm -f conftest.er1
21045 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21047 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021048 { ac_try='test -z "$ac_c_werror_flag"
21049 || test ! -s conftest.err'
21050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21051 (eval $ac_try) 2>&5
21052 ac_status=$?
21053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054 (exit $ac_status); }; } &&
21055 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21057 (eval $ac_try) 2>&5
21058 ac_status=$?
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); }; }; then
21061 ac_cv_type_size_t=yes
21062else
21063 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021064sed 's/^/| /' conftest.$ac_ext >&5
21065
John Criswell7a73b802003-06-30 21:59:07 +000021066ac_cv_type_size_t=no
21067fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021068rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021069fi
21070echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21071echo "${ECHO_T}$ac_cv_type_size_t" >&6
21072if test $ac_cv_type_size_t = yes; then
21073 :
21074else
21075
21076cat >>confdefs.h <<_ACEOF
21077#define size_t unsigned
21078_ACEOF
21079
21080fi
21081
21082echo "$as_me:$LINENO: checking for int64_t" >&5
21083echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
21084if test "${ac_cv_type_int64_t+set}" = set; then
21085 echo $ECHO_N "(cached) $ECHO_C" >&6
21086else
21087 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021088/* confdefs.h. */
21089_ACEOF
21090cat confdefs.h >>conftest.$ac_ext
21091cat >>conftest.$ac_ext <<_ACEOF
21092/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021093$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000021094int
21095main ()
21096{
21097if ((int64_t *) 0)
21098 return 0;
21099if (sizeof (int64_t))
21100 return 0;
21101 ;
21102 return 0;
21103}
21104_ACEOF
21105rm -f conftest.$ac_objext
21106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021107 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021108 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021109 grep -v '^ *+' conftest.er1 >conftest.err
21110 rm -f conftest.er1
21111 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21113 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021114 { ac_try='test -z "$ac_c_werror_flag"
21115 || test ! -s conftest.err'
21116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21117 (eval $ac_try) 2>&5
21118 ac_status=$?
21119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21120 (exit $ac_status); }; } &&
21121 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21123 (eval $ac_try) 2>&5
21124 ac_status=$?
21125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21126 (exit $ac_status); }; }; then
21127 ac_cv_type_int64_t=yes
21128else
21129 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021130sed 's/^/| /' conftest.$ac_ext >&5
21131
John Criswell7a73b802003-06-30 21:59:07 +000021132ac_cv_type_int64_t=no
21133fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021135fi
21136echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21137echo "${ECHO_T}$ac_cv_type_int64_t" >&6
21138if test $ac_cv_type_int64_t = yes; then
21139
21140cat >>confdefs.h <<_ACEOF
21141#define HAVE_INT64_T 1
21142_ACEOF
21143
21144
21145else
21146 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
21147echo "$as_me: error: Type int64_t required but not found" >&2;}
21148 { (exit 1); exit 1; }; }
21149fi
21150
21151echo "$as_me:$LINENO: checking for uint64_t" >&5
21152echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
21153if test "${ac_cv_type_uint64_t+set}" = set; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21155else
21156 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021157/* confdefs.h. */
21158_ACEOF
21159cat confdefs.h >>conftest.$ac_ext
21160cat >>conftest.$ac_ext <<_ACEOF
21161/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021162$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000021163int
21164main ()
21165{
21166if ((uint64_t *) 0)
21167 return 0;
21168if (sizeof (uint64_t))
21169 return 0;
21170 ;
21171 return 0;
21172}
21173_ACEOF
21174rm -f conftest.$ac_objext
21175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021176 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021177 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021178 grep -v '^ *+' conftest.er1 >conftest.err
21179 rm -f conftest.er1
21180 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021183 { ac_try='test -z "$ac_c_werror_flag"
21184 || test ! -s conftest.err'
21185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21186 (eval $ac_try) 2>&5
21187 ac_status=$?
21188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189 (exit $ac_status); }; } &&
21190 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; }; then
21196 ac_cv_type_uint64_t=yes
21197else
21198 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021199sed 's/^/| /' conftest.$ac_ext >&5
21200
John Criswell7a73b802003-06-30 21:59:07 +000021201ac_cv_type_uint64_t=no
21202fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021204fi
21205echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21206echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
21207if test $ac_cv_type_uint64_t = yes; then
21208
21209cat >>confdefs.h <<_ACEOF
21210#define HAVE_UINT64_T 1
21211_ACEOF
21212
21213
21214else
Misha Brukmanceca9042004-09-02 23:02:30 +000021215 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000021216echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
21217if test "${ac_cv_type_u_int64_t+set}" = set; then
21218 echo $ECHO_N "(cached) $ECHO_C" >&6
21219else
21220 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000021221/* confdefs.h. */
21222_ACEOF
21223cat confdefs.h >>conftest.$ac_ext
21224cat >>conftest.$ac_ext <<_ACEOF
21225/* end confdefs.h. */
21226$ac_includes_default
21227int
21228main ()
21229{
21230if ((u_int64_t *) 0)
21231 return 0;
21232if (sizeof (u_int64_t))
21233 return 0;
21234 ;
21235 return 0;
21236}
21237_ACEOF
21238rm -f conftest.$ac_objext
21239if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021240 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000021241 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021242 grep -v '^ *+' conftest.er1 >conftest.err
21243 rm -f conftest.er1
21244 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000021245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021247 { ac_try='test -z "$ac_c_werror_flag"
21248 || test ! -s conftest.err'
21249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21250 (eval $ac_try) 2>&5
21251 ac_status=$?
21252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21253 (exit $ac_status); }; } &&
21254 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000021255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21256 (eval $ac_try) 2>&5
21257 ac_status=$?
21258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21259 (exit $ac_status); }; }; then
21260 ac_cv_type_u_int64_t=yes
21261else
21262 echo "$as_me: failed program was:" >&5
21263sed 's/^/| /' conftest.$ac_ext >&5
21264
21265ac_cv_type_u_int64_t=no
21266fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000021268fi
21269echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
21270echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
21271if test $ac_cv_type_u_int64_t = yes; then
21272
21273cat >>confdefs.h <<_ACEOF
21274#define HAVE_U_INT64_T 1
21275_ACEOF
21276
21277
Misha Brukmanceca9042004-09-02 23:02:30 +000021278else
21279 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
21280echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
21281 { (exit 1); exit 1; }; }
21282fi
21283
John Criswell679ff312004-09-02 18:44:44 +000021284fi
21285
John Criswell7a73b802003-06-30 21:59:07 +000021286echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21287echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21288if test "${ac_cv_header_time+set}" = set; then
21289 echo $ECHO_N "(cached) $ECHO_C" >&6
21290else
21291 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021292/* confdefs.h. */
21293_ACEOF
21294cat confdefs.h >>conftest.$ac_ext
21295cat >>conftest.$ac_ext <<_ACEOF
21296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021297#include <sys/types.h>
21298#include <sys/time.h>
21299#include <time.h>
21300
John Criswell7a73b802003-06-30 21:59:07 +000021301int
21302main ()
21303{
21304if ((struct tm *) 0)
21305return 0;
21306 ;
21307 return 0;
21308}
21309_ACEOF
21310rm -f conftest.$ac_objext
21311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021312 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021313 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021319 { ac_try='test -z "$ac_c_werror_flag"
21320 || test ! -s conftest.err'
21321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21322 (eval $ac_try) 2>&5
21323 ac_status=$?
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; } &&
21326 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21328 (eval $ac_try) 2>&5
21329 ac_status=$?
21330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21331 (exit $ac_status); }; }; then
21332 ac_cv_header_time=yes
21333else
21334 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021335sed 's/^/| /' conftest.$ac_ext >&5
21336
John Criswell7a73b802003-06-30 21:59:07 +000021337ac_cv_header_time=no
21338fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021340fi
21341echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21342echo "${ECHO_T}$ac_cv_header_time" >&6
21343if test $ac_cv_header_time = yes; then
21344
21345cat >>confdefs.h <<\_ACEOF
21346#define TIME_WITH_SYS_TIME 1
21347_ACEOF
21348
21349fi
21350
21351echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21352echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21353if test "${ac_cv_struct_tm+set}" = set; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21355else
21356 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021357/* confdefs.h. */
21358_ACEOF
21359cat confdefs.h >>conftest.$ac_ext
21360cat >>conftest.$ac_ext <<_ACEOF
21361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021362#include <sys/types.h>
21363#include <time.h>
21364
John Criswell7a73b802003-06-30 21:59:07 +000021365int
21366main ()
21367{
21368struct tm *tp; tp->tm_sec;
21369 ;
21370 return 0;
21371}
21372_ACEOF
21373rm -f conftest.$ac_objext
21374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021375 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021376 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021377 grep -v '^ *+' conftest.er1 >conftest.err
21378 rm -f conftest.er1
21379 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021382 { ac_try='test -z "$ac_c_werror_flag"
21383 || test ! -s conftest.err'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; } &&
21389 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21392 ac_status=$?
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; }; then
21395 ac_cv_struct_tm=time.h
21396else
21397 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021398sed 's/^/| /' conftest.$ac_ext >&5
21399
John Criswell7a73b802003-06-30 21:59:07 +000021400ac_cv_struct_tm=sys/time.h
21401fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021403fi
21404echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21405echo "${ECHO_T}$ac_cv_struct_tm" >&6
21406if test $ac_cv_struct_tm = sys/time.h; then
21407
21408cat >>confdefs.h <<\_ACEOF
21409#define TM_IN_SYS_TIME 1
21410_ACEOF
21411
21412fi
21413
21414
John Criswella0137d32003-10-13 16:22:01 +000021415
Reid Spencer2706f8c2004-09-19 23:53:36 +000021416 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
Brian Gaekeadfe28d2004-07-21 03:50:25 +000021417echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
Reid Spencer2706f8c2004-09-19 23:53:36 +000021418 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000021419ac_cpp='$CPP $CPPFLAGS'
21420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21422ac_compiler_gnu=$ac_cv_c_compiler_gnu
21423
Reid Spencer2706f8c2004-09-19 23:53:36 +000021424 if test "$cross_compiling" = yes; then
21425 ac_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000021426else
21427 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000021428
21429 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000021430_ACEOF
21431cat confdefs.h >>conftest.$ac_ext
21432cat >>conftest.$ac_ext <<_ACEOF
21433/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000021434
John Criswella0137d32003-10-13 16:22:01 +000021435#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000021436#include <stdlib.h>
21437
John Criswella0137d32003-10-13 16:22:01 +000021438int
21439main ()
21440{
21441
Reid Spencer2706f8c2004-09-19 23:53:36 +000021442volatile double A, B;
21443char Buffer[100];
21444A = 1;
21445A /= 10.0;
21446sprintf(Buffer, "%a", A);
21447B = atof(Buffer);
21448if (A != B)
21449 return (1);
21450if (A != 0x1.999999999999ap-4)
21451 return (1);
21452return (0);
John Criswella0137d32003-10-13 16:22:01 +000021453 ;
21454 return 0;
21455}
21456_ACEOF
21457rm -f conftest$ac_exeext
21458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21459 (eval $ac_link) 2>&5
21460 ac_status=$?
21461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21464 (eval $ac_try) 2>&5
21465 ac_status=$?
21466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21467 (exit $ac_status); }; }; then
21468 ac_c_printf_a=yes
21469else
21470 echo "$as_me: program exited with status $ac_status" >&5
21471echo "$as_me: failed program was:" >&5
21472sed 's/^/| /' conftest.$ac_ext >&5
21473
21474( exit $ac_status )
21475ac_c_printf_a=no
21476fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021477rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000021478fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021479 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000021480ac_cpp='$CPP $CPPFLAGS'
21481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21483ac_compiler_gnu=$ac_cv_c_compiler_gnu
21484
Reid Spencer2706f8c2004-09-19 23:53:36 +000021485 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
Brian Gaekeadfe28d2004-07-21 03:50:25 +000021486echo "${ECHO_T}$ac_c_printf_a" >&6
Reid Spencer2706f8c2004-09-19 23:53:36 +000021487 if test "$ac_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000021488
21489cat >>confdefs.h <<\_ACEOF
21490#define HAVE_PRINTF_A 1
21491_ACEOF
21492
Reid Spencer2706f8c2004-09-19 23:53:36 +000021493 fi
John Criswella0137d32003-10-13 16:22:01 +000021494
21495
John Criswell0021c312004-02-13 21:57:29 +000021496echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21497echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21498if test "${ac_cv_c_bigendian+set}" = set; then
21499 echo $ECHO_N "(cached) $ECHO_C" >&6
21500else
21501 # See if sys/param.h defines the BYTE_ORDER macro.
21502cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021503/* confdefs.h. */
21504_ACEOF
21505cat confdefs.h >>conftest.$ac_ext
21506cat >>conftest.$ac_ext <<_ACEOF
21507/* end confdefs.h. */
21508#include <sys/types.h>
21509#include <sys/param.h>
21510
21511int
21512main ()
21513{
21514#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21515 bogus endian macros
21516#endif
21517
21518 ;
21519 return 0;
21520}
21521_ACEOF
21522rm -f conftest.$ac_objext
21523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021524 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021525 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021526 grep -v '^ *+' conftest.er1 >conftest.err
21527 rm -f conftest.er1
21528 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21530 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021531 { ac_try='test -z "$ac_c_werror_flag"
21532 || test ! -s conftest.err'
21533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21534 (eval $ac_try) 2>&5
21535 ac_status=$?
21536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21537 (exit $ac_status); }; } &&
21538 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21540 (eval $ac_try) 2>&5
21541 ac_status=$?
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); }; }; then
21544 # It does; now see whether it defined to BIG_ENDIAN or not.
21545cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021546/* confdefs.h. */
21547_ACEOF
21548cat confdefs.h >>conftest.$ac_ext
21549cat >>conftest.$ac_ext <<_ACEOF
21550/* end confdefs.h. */
21551#include <sys/types.h>
21552#include <sys/param.h>
21553
21554int
21555main ()
21556{
21557#if BYTE_ORDER != BIG_ENDIAN
21558 not big endian
21559#endif
21560
21561 ;
21562 return 0;
21563}
21564_ACEOF
21565rm -f conftest.$ac_objext
21566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021567 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021568 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021569 grep -v '^ *+' conftest.er1 >conftest.err
21570 rm -f conftest.er1
21571 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021574 { ac_try='test -z "$ac_c_werror_flag"
21575 || test ! -s conftest.err'
21576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21577 (eval $ac_try) 2>&5
21578 ac_status=$?
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); }; } &&
21581 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21583 (eval $ac_try) 2>&5
21584 ac_status=$?
21585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21586 (exit $ac_status); }; }; then
21587 ac_cv_c_bigendian=yes
21588else
21589 echo "$as_me: failed program was:" >&5
21590sed 's/^/| /' conftest.$ac_ext >&5
21591
21592ac_cv_c_bigendian=no
21593fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021595else
21596 echo "$as_me: failed program was:" >&5
21597sed 's/^/| /' conftest.$ac_ext >&5
21598
21599# It does not; compile a test program.
21600if test "$cross_compiling" = yes; then
21601 # try to guess the endianness by grepping values into an object file
21602 ac_cv_c_bigendian=unknown
21603 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021604/* confdefs.h. */
21605_ACEOF
21606cat confdefs.h >>conftest.$ac_ext
21607cat >>conftest.$ac_ext <<_ACEOF
21608/* end confdefs.h. */
21609short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21610short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21611void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21612short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21613short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21614void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21615int
21616main ()
21617{
21618 _ascii (); _ebcdic ();
21619 ;
21620 return 0;
21621}
21622_ACEOF
21623rm -f conftest.$ac_objext
21624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021625 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021626 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021627 grep -v '^ *+' conftest.er1 >conftest.err
21628 rm -f conftest.er1
21629 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021632 { ac_try='test -z "$ac_c_werror_flag"
21633 || test ! -s conftest.err'
21634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635 (eval $ac_try) 2>&5
21636 ac_status=$?
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); }; } &&
21639 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21641 (eval $ac_try) 2>&5
21642 ac_status=$?
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); }; }; then
21645 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21646 ac_cv_c_bigendian=yes
21647fi
21648if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21649 if test "$ac_cv_c_bigendian" = unknown; then
21650 ac_cv_c_bigendian=no
21651 else
21652 # finding both strings is unlikely to happen, but who knows?
21653 ac_cv_c_bigendian=unknown
21654 fi
21655fi
21656else
21657 echo "$as_me: failed program was:" >&5
21658sed 's/^/| /' conftest.$ac_ext >&5
21659
21660fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021661rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021662else
21663 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021664/* confdefs.h. */
21665_ACEOF
21666cat confdefs.h >>conftest.$ac_ext
21667cat >>conftest.$ac_ext <<_ACEOF
21668/* end confdefs.h. */
21669int
21670main ()
21671{
21672 /* Are we little or big endian? From Harbison&Steele. */
21673 union
21674 {
21675 long l;
21676 char c[sizeof (long)];
21677 } u;
21678 u.l = 1;
21679 exit (u.c[sizeof (long) - 1] == 1);
21680}
21681_ACEOF
21682rm -f conftest$ac_exeext
21683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21684 (eval $ac_link) 2>&5
21685 ac_status=$?
21686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21687 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689 (eval $ac_try) 2>&5
21690 ac_status=$?
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); }; }; then
21693 ac_cv_c_bigendian=no
21694else
21695 echo "$as_me: program exited with status $ac_status" >&5
21696echo "$as_me: failed program was:" >&5
21697sed 's/^/| /' conftest.$ac_ext >&5
21698
21699( exit $ac_status )
21700ac_cv_c_bigendian=yes
21701fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021702rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021703fi
21704fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021706fi
21707echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21708echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21709case $ac_cv_c_bigendian in
21710 yes)
21711 ENDIAN=big
21712 ;;
21713 no)
21714 ENDIAN=little
21715 ;;
21716 *)
21717 { { echo "$as_me:$LINENO: error: unknown endianness
21718presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21719echo "$as_me: error: unknown endianness
21720presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21721 { (exit 1); exit 1; }; } ;;
21722esac
21723
21724
John Criswell7a73b802003-06-30 21:59:07 +000021725echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21726echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21727if test "${ac_cv_cxx_namespaces+set}" = set; then
21728 echo $ECHO_N "(cached) $ECHO_C" >&6
21729else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021730 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000021731ac_cpp='$CXXCPP $CPPFLAGS'
21732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21735
21736 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021737/* confdefs.h. */
21738_ACEOF
21739cat confdefs.h >>conftest.$ac_ext
21740cat >>conftest.$ac_ext <<_ACEOF
21741/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021742namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000021743int
21744main ()
21745{
21746using namespace Outer::Inner; return i;
21747 ;
21748 return 0;
21749}
21750_ACEOF
21751rm -f conftest.$ac_objext
21752if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021753 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021754 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021755 grep -v '^ *+' conftest.er1 >conftest.err
21756 rm -f conftest.er1
21757 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021760 { ac_try='test -z "$ac_cxx_werror_flag"
21761 || test ! -s conftest.err'
21762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763 (eval $ac_try) 2>&5
21764 ac_status=$?
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; } &&
21767 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21769 (eval $ac_try) 2>&5
21770 ac_status=$?
21771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21772 (exit $ac_status); }; }; then
21773 ac_cv_cxx_namespaces=yes
21774else
21775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021776sed 's/^/| /' conftest.$ac_ext >&5
21777
John Criswell7a73b802003-06-30 21:59:07 +000021778ac_cv_cxx_namespaces=no
21779fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021780rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021781 ac_ext=c
21782ac_cpp='$CPP $CPPFLAGS'
21783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21785ac_compiler_gnu=$ac_cv_c_compiler_gnu
21786
21787
21788fi
21789echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21790echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21791if test "$ac_cv_cxx_namespaces" = yes; then
21792
21793cat >>confdefs.h <<\_ACEOF
21794#define HAVE_NAMESPACES
21795_ACEOF
21796
21797fi
21798
Brian Gaeke90583492003-11-10 03:06:28 +000021799echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21800echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21801if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021802 echo $ECHO_N "(cached) $ECHO_C" >&6
21803else
21804
John Criswell7a73b802003-06-30 21:59:07 +000021805 ac_ext=cc
21806ac_cpp='$CXXCPP $CPPFLAGS'
21807ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21808ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21809ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21810
21811 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021812/* confdefs.h. */
21813_ACEOF
21814cat confdefs.h >>conftest.$ac_ext
21815cat >>conftest.$ac_ext <<_ACEOF
21816/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021817#include <ext/hash_map>
21818#ifdef HAVE_NAMESPACES
21819using namespace std;
21820#endif
John Criswell7a73b802003-06-30 21:59:07 +000021821int
21822main ()
21823{
Brian Gaeke90583492003-11-10 03:06:28 +000021824hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021825 ;
21826 return 0;
21827}
21828_ACEOF
21829rm -f conftest.$ac_objext
21830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021831 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021832 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021833 grep -v '^ *+' conftest.er1 >conftest.err
21834 rm -f conftest.er1
21835 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021838 { ac_try='test -z "$ac_cxx_werror_flag"
21839 || test ! -s conftest.err'
21840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21841 (eval $ac_try) 2>&5
21842 ac_status=$?
21843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21844 (exit $ac_status); }; } &&
21845 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21847 (eval $ac_try) 2>&5
21848 ac_status=$?
21849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21850 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021851 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000021852else
21853 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021854sed 's/^/| /' conftest.$ac_ext >&5
21855
Brian Gaeke90583492003-11-10 03:06:28 +000021856ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021857fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021859 ac_ext=c
21860ac_cpp='$CPP $CPPFLAGS'
21861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21863ac_compiler_gnu=$ac_cv_c_compiler_gnu
21864
John Criswell7a73b802003-06-30 21:59:07 +000021865fi
Brian Gaeke90583492003-11-10 03:06:28 +000021866echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21867echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021868 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21869 then
John Criswell9f011862004-09-24 18:28:00 +000021870
21871cat >>confdefs.h <<\_ACEOF
21872#define HAVE_STD_EXT_HASH_MAP 1
21873_ACEOF
21874
21875 else
21876
21877cat >>confdefs.h <<\_ACEOF
21878#define HAVE_STD_EXT_HASH_MAP 0
21879_ACEOF
21880
Brian Gaeke90583492003-11-10 03:06:28 +000021881 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021882
Brian Gaeke90583492003-11-10 03:06:28 +000021883 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21884echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21885if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21886 echo $ECHO_N "(cached) $ECHO_C" >&6
21887else
21888
Brian Gaeke90583492003-11-10 03:06:28 +000021889 ac_ext=cc
21890ac_cpp='$CXXCPP $CPPFLAGS'
21891ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21892ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21893ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21894
21895 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021896/* confdefs.h. */
21897_ACEOF
21898cat confdefs.h >>conftest.$ac_ext
21899cat >>conftest.$ac_ext <<_ACEOF
21900/* end confdefs.h. */
21901#include <ext/hash_map>
21902#ifdef HAVE_NAMESPACES
21903using namespace __gnu_cxx;
21904#endif
21905int
21906main ()
21907{
21908hash_map<int,int> t;
21909 ;
21910 return 0;
21911}
21912_ACEOF
21913rm -f conftest.$ac_objext
21914if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021915 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021916 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021917 grep -v '^ *+' conftest.er1 >conftest.err
21918 rm -f conftest.er1
21919 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021922 { ac_try='test -z "$ac_cxx_werror_flag"
21923 || test ! -s conftest.err'
21924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21925 (eval $ac_try) 2>&5
21926 ac_status=$?
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); }; } &&
21929 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21931 (eval $ac_try) 2>&5
21932 ac_status=$?
21933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21934 (exit $ac_status); }; }; then
21935 ac_cv_cxx_have_gnu_ext_hash_map=yes
21936else
21937 echo "$as_me: failed program was:" >&5
21938sed 's/^/| /' conftest.$ac_ext >&5
21939
21940ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021941fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021942rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021943 ac_ext=c
21944ac_cpp='$CPP $CPPFLAGS'
21945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21947ac_compiler_gnu=$ac_cv_c_compiler_gnu
21948
21949fi
21950echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21951echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021952 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21953 then
John Criswell9f011862004-09-24 18:28:00 +000021954
21955cat >>confdefs.h <<\_ACEOF
21956#define HAVE_GNU_EXT_HASH_MAP 1
21957_ACEOF
21958
21959 else
21960
21961cat >>confdefs.h <<\_ACEOF
21962#define HAVE_GNU_EXT_HASH_MAP 0
21963_ACEOF
21964
Brian Gaeke90583492003-11-10 03:06:28 +000021965 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021966
Brian Gaeke90583492003-11-10 03:06:28 +000021967 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21968echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21969if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21970 echo $ECHO_N "(cached) $ECHO_C" >&6
21971else
John Criswell7a73b802003-06-30 21:59:07 +000021972
Brian Gaeke90583492003-11-10 03:06:28 +000021973 ac_ext=cc
21974ac_cpp='$CXXCPP $CPPFLAGS'
21975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21978
21979 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021980/* confdefs.h. */
21981_ACEOF
21982cat confdefs.h >>conftest.$ac_ext
21983cat >>conftest.$ac_ext <<_ACEOF
21984/* end confdefs.h. */
21985#include <hash_map>
21986int
21987main ()
21988{
21989hash_map<int,int> t;
21990 ;
21991 return 0;
21992}
21993_ACEOF
21994rm -f conftest.$ac_objext
21995if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021996 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021997 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021998 grep -v '^ *+' conftest.er1 >conftest.err
21999 rm -f conftest.er1
22000 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000022001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22002 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022003 { ac_try='test -z "$ac_cxx_werror_flag"
22004 || test ! -s conftest.err'
22005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22006 (eval $ac_try) 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; } &&
22010 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000022011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22012 (eval $ac_try) 2>&5
22013 ac_status=$?
22014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); }; }; then
22016 ac_cv_cxx_have_global_hash_map=yes
22017else
22018 echo "$as_me: failed program was:" >&5
22019sed 's/^/| /' conftest.$ac_ext >&5
22020
22021ac_cv_cxx_have_global_hash_map=no
22022fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022023rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000022024 ac_ext=c
22025ac_cpp='$CPP $CPPFLAGS'
22026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22028ac_compiler_gnu=$ac_cv_c_compiler_gnu
22029
22030fi
22031echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
22032echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000022033 if test "$ac_cv_cxx_have_global_hash_map" = yes
22034 then
John Criswell9f011862004-09-24 18:28:00 +000022035
22036cat >>confdefs.h <<\_ACEOF
22037#define HAVE_GLOBAL_HASH_MAP 1
22038_ACEOF
22039
22040 else
22041
22042cat >>confdefs.h <<\_ACEOF
22043#define HAVE_GLOBAL_HASH_MAP 0
22044_ACEOF
22045
Brian Gaeke90583492003-11-10 03:06:28 +000022046 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022047
Brian Gaeke90583492003-11-10 03:06:28 +000022048echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
22049echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
22050if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000022051 echo $ECHO_N "(cached) $ECHO_C" >&6
22052else
22053
John Criswell7a73b802003-06-30 21:59:07 +000022054 ac_ext=cc
22055ac_cpp='$CXXCPP $CPPFLAGS'
22056ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22057ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22058ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22059
22060 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022061/* confdefs.h. */
22062_ACEOF
22063cat confdefs.h >>conftest.$ac_ext
22064cat >>conftest.$ac_ext <<_ACEOF
22065/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022066#include <ext/hash_set>
22067#ifdef HAVE_NAMESPACES
22068using namespace std;
22069#endif
John Criswell7a73b802003-06-30 21:59:07 +000022070int
22071main ()
22072{
Brian Gaeke90583492003-11-10 03:06:28 +000022073hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000022074 ;
22075 return 0;
22076}
22077_ACEOF
22078rm -f conftest.$ac_objext
22079if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022080 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022081 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022082 grep -v '^ *+' conftest.er1 >conftest.err
22083 rm -f conftest.er1
22084 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022087 { ac_try='test -z "$ac_cxx_werror_flag"
22088 || test ! -s conftest.err'
22089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22090 (eval $ac_try) 2>&5
22091 ac_status=$?
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); }; } &&
22094 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096 (eval $ac_try) 2>&5
22097 ac_status=$?
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000022100 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000022101else
22102 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022103sed 's/^/| /' conftest.$ac_ext >&5
22104
Brian Gaeke90583492003-11-10 03:06:28 +000022105ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000022106fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022107rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000022108 ac_ext=c
22109ac_cpp='$CPP $CPPFLAGS'
22110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22112ac_compiler_gnu=$ac_cv_c_compiler_gnu
22113
22114fi
22115echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
22116echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000022117 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
22118 then
John Criswell9f011862004-09-24 18:28:00 +000022119
22120cat >>confdefs.h <<\_ACEOF
22121#define HAVE_STD_EXT_HASH_SET 1
22122_ACEOF
22123
22124 else
22125
22126cat >>confdefs.h <<\_ACEOF
22127#define HAVE_STD_EXT_HASH_SET 0
22128_ACEOF
22129
Brian Gaeke90583492003-11-10 03:06:28 +000022130 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022131
Brian Gaeke90583492003-11-10 03:06:28 +000022132 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
22133echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
22134if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22136else
22137
Brian Gaeke90583492003-11-10 03:06:28 +000022138 ac_ext=cc
22139ac_cpp='$CXXCPP $CPPFLAGS'
22140ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22141ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22142ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22143
John Criswell7a73b802003-06-30 21:59:07 +000022144 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022145/* confdefs.h. */
22146_ACEOF
22147cat confdefs.h >>conftest.$ac_ext
22148cat >>conftest.$ac_ext <<_ACEOF
22149/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022150#include <ext/hash_set>
22151#ifdef HAVE_NAMESPACES
22152using namespace __gnu_cxx;
22153#endif
John Criswell7a73b802003-06-30 21:59:07 +000022154int
22155main ()
22156{
Brian Gaeke90583492003-11-10 03:06:28 +000022157hash_set<int> t;
22158 ;
22159 return 0;
22160}
22161_ACEOF
22162rm -f conftest.$ac_objext
22163if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022164 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000022165 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022166 grep -v '^ *+' conftest.er1 >conftest.err
22167 rm -f conftest.er1
22168 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000022169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022171 { ac_try='test -z "$ac_cxx_werror_flag"
22172 || test ! -s conftest.err'
22173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22174 (eval $ac_try) 2>&5
22175 ac_status=$?
22176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22177 (exit $ac_status); }; } &&
22178 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000022179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22180 (eval $ac_try) 2>&5
22181 ac_status=$?
22182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183 (exit $ac_status); }; }; then
22184 ac_cv_cxx_have_gnu_ext_hash_set=yes
22185else
22186 echo "$as_me: failed program was:" >&5
22187sed 's/^/| /' conftest.$ac_ext >&5
22188
22189ac_cv_cxx_have_gnu_ext_hash_set=no
22190fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022191rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000022192 ac_ext=c
22193ac_cpp='$CPP $CPPFLAGS'
22194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22196ac_compiler_gnu=$ac_cv_c_compiler_gnu
22197
22198fi
22199echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
22200echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000022201 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
22202 then
John Criswell9f011862004-09-24 18:28:00 +000022203
22204cat >>confdefs.h <<\_ACEOF
22205#define HAVE_GNU_EXT_HASH_SET 1
22206_ACEOF
22207
22208 else
22209
22210cat >>confdefs.h <<\_ACEOF
22211#define HAVE_GNU_EXT_HASH_SET 0
22212_ACEOF
22213
Brian Gaeke90583492003-11-10 03:06:28 +000022214 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022215
Brian Gaeke90583492003-11-10 03:06:28 +000022216 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
22217echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
22218if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
22219 echo $ECHO_N "(cached) $ECHO_C" >&6
22220else
22221
Brian Gaeke90583492003-11-10 03:06:28 +000022222 ac_ext=cc
22223ac_cpp='$CXXCPP $CPPFLAGS'
22224ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22225ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22226ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22227
22228 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000022229/* confdefs.h. */
22230_ACEOF
22231cat confdefs.h >>conftest.$ac_ext
22232cat >>conftest.$ac_ext <<_ACEOF
22233/* end confdefs.h. */
22234#include <hash_set>
22235int
22236main ()
22237{
John Criswell7a73b802003-06-30 21:59:07 +000022238hash_set<int> t; return 0;
22239 ;
22240 return 0;
22241}
22242_ACEOF
22243rm -f conftest.$ac_objext
22244if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022245 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022246 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022247 grep -v '^ *+' conftest.er1 >conftest.err
22248 rm -f conftest.er1
22249 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022252 { ac_try='test -z "$ac_cxx_werror_flag"
22253 || test ! -s conftest.err'
22254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22255 (eval $ac_try) 2>&5
22256 ac_status=$?
22257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22258 (exit $ac_status); }; } &&
22259 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261 (eval $ac_try) 2>&5
22262 ac_status=$?
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000022265 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000022266else
22267 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022268sed 's/^/| /' conftest.$ac_ext >&5
22269
Brian Gaeke90583492003-11-10 03:06:28 +000022270ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000022271fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022273 ac_ext=c
22274ac_cpp='$CPP $CPPFLAGS'
22275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22277ac_compiler_gnu=$ac_cv_c_compiler_gnu
22278
John Criswell7a73b802003-06-30 21:59:07 +000022279fi
Brian Gaeke90583492003-11-10 03:06:28 +000022280echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
22281echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000022282 if test "$ac_cv_cxx_have_global_hash_set" = yes
22283 then
John Criswell9f011862004-09-24 18:28:00 +000022284
22285cat >>confdefs.h <<\_ACEOF
22286#define HAVE_GLOBAL_HASH_SET 1
22287_ACEOF
22288
22289 else
22290
22291cat >>confdefs.h <<\_ACEOF
22292#define HAVE_GLOBAL_HASH_SET 0
22293_ACEOF
22294
Brian Gaeke90583492003-11-10 03:06:28 +000022295 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022296
John Criswell7a73b802003-06-30 21:59:07 +000022297echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
22298echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
22299if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
22300 echo $ECHO_N "(cached) $ECHO_C" >&6
22301else
22302
John Criswell7a73b802003-06-30 21:59:07 +000022303 ac_ext=cc
22304ac_cpp='$CXXCPP $CPPFLAGS'
22305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22308
22309 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022310/* confdefs.h. */
22311_ACEOF
22312cat confdefs.h >>conftest.$ac_ext
22313cat >>conftest.$ac_ext <<_ACEOF
22314/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022315#include <iterator>
22316#ifdef HAVE_NAMESPACES
22317using namespace std;
22318#endif
John Criswell7a73b802003-06-30 21:59:07 +000022319int
22320main ()
22321{
22322iterator<int,int,int> t; return 0;
22323 ;
22324 return 0;
22325}
22326_ACEOF
22327rm -f conftest.$ac_objext
22328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022329 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022330 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022331 grep -v '^ *+' conftest.er1 >conftest.err
22332 rm -f conftest.er1
22333 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022336 { ac_try='test -z "$ac_cxx_werror_flag"
22337 || test ! -s conftest.err'
22338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22339 (eval $ac_try) 2>&5
22340 ac_status=$?
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); }; } &&
22343 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22345 (eval $ac_try) 2>&5
22346 ac_status=$?
22347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); }; }; then
22349 ac_cv_cxx_have_std_iterator=yes
22350else
22351 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022352sed 's/^/| /' conftest.$ac_ext >&5
22353
John Criswell7a73b802003-06-30 21:59:07 +000022354ac_cv_cxx_have_std_iterator=no
22355fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022357 ac_ext=c
22358ac_cpp='$CPP $CPPFLAGS'
22359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22361ac_compiler_gnu=$ac_cv_c_compiler_gnu
22362
22363
22364fi
22365echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
22366echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000022367if test "$ac_cv_cxx_have_std_iterator" = yes
22368then
John Criswell40468462004-09-24 21:19:06 +000022369
22370cat >>confdefs.h <<\_ACEOF
22371#define HAVE_STD_ITERATOR 1
22372_ACEOF
22373
22374else
22375
22376cat >>confdefs.h <<\_ACEOF
22377#define HAVE_STD_ITERATOR 0
22378_ACEOF
22379
John Criswell7a73b802003-06-30 21:59:07 +000022380fi
22381
22382echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
22383echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
22384if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
22385 echo $ECHO_N "(cached) $ECHO_C" >&6
22386else
22387
John Criswell7a73b802003-06-30 21:59:07 +000022388 ac_ext=cc
22389ac_cpp='$CXXCPP $CPPFLAGS'
22390ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22391ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22392ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22393
22394 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022395/* confdefs.h. */
22396_ACEOF
22397cat confdefs.h >>conftest.$ac_ext
22398cat >>conftest.$ac_ext <<_ACEOF
22399/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022400#include <iterator>
22401#ifdef HAVE_NAMESPACES
22402using namespace std;
22403#endif
John Criswell7a73b802003-06-30 21:59:07 +000022404int
22405main ()
22406{
John Criswellc78022e2003-07-29 19:11:58 +000022407bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000022408 ;
22409 return 0;
22410}
22411_ACEOF
22412rm -f conftest.$ac_objext
22413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022414 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022415 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022416 grep -v '^ *+' conftest.er1 >conftest.err
22417 rm -f conftest.er1
22418 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022421 { ac_try='test -z "$ac_cxx_werror_flag"
22422 || test ! -s conftest.err'
22423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22424 (eval $ac_try) 2>&5
22425 ac_status=$?
22426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22427 (exit $ac_status); }; } &&
22428 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22430 (eval $ac_try) 2>&5
22431 ac_status=$?
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); }; }; then
22434 ac_cv_cxx_have_bi_iterator=yes
22435else
22436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022437sed 's/^/| /' conftest.$ac_ext >&5
22438
John Criswell7a73b802003-06-30 21:59:07 +000022439ac_cv_cxx_have_bi_iterator=no
22440fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022442 ac_ext=c
22443ac_cpp='$CPP $CPPFLAGS'
22444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22446ac_compiler_gnu=$ac_cv_c_compiler_gnu
22447
22448
22449fi
22450echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
22451echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000022452if test "$ac_cv_cxx_have_bi_iterator" = yes
22453then
John Criswell40468462004-09-24 21:19:06 +000022454
22455cat >>confdefs.h <<\_ACEOF
22456#define HAVE_BI_ITERATOR 1
22457_ACEOF
22458
22459else
22460
22461cat >>confdefs.h <<\_ACEOF
22462#define HAVE_BI_ITERATOR 0
22463_ACEOF
22464
John Criswell7a73b802003-06-30 21:59:07 +000022465fi
22466
22467echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
22468echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
22469if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
22470 echo $ECHO_N "(cached) $ECHO_C" >&6
22471else
22472
John Criswell7a73b802003-06-30 21:59:07 +000022473 ac_ext=cc
22474ac_cpp='$CXXCPP $CPPFLAGS'
22475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22478
22479 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022480/* confdefs.h. */
22481_ACEOF
22482cat confdefs.h >>conftest.$ac_ext
22483cat >>conftest.$ac_ext <<_ACEOF
22484/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022485#include <iterator>
22486#ifdef HAVE_NAMESPACES
22487using namespace std;
22488#endif
John Criswell7a73b802003-06-30 21:59:07 +000022489int
22490main ()
22491{
John Criswellc78022e2003-07-29 19:11:58 +000022492forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000022493 ;
22494 return 0;
22495}
22496_ACEOF
22497rm -f conftest.$ac_objext
22498if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022499 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022500 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022501 grep -v '^ *+' conftest.er1 >conftest.err
22502 rm -f conftest.er1
22503 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22505 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022506 { ac_try='test -z "$ac_cxx_werror_flag"
22507 || test ! -s conftest.err'
22508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22509 (eval $ac_try) 2>&5
22510 ac_status=$?
22511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22512 (exit $ac_status); }; } &&
22513 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22515 (eval $ac_try) 2>&5
22516 ac_status=$?
22517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22518 (exit $ac_status); }; }; then
22519 ac_cv_cxx_have_fwd_iterator=yes
22520else
22521 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022522sed 's/^/| /' conftest.$ac_ext >&5
22523
John Criswell7a73b802003-06-30 21:59:07 +000022524ac_cv_cxx_have_fwd_iterator=no
22525fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022526rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022527 ac_ext=c
22528ac_cpp='$CPP $CPPFLAGS'
22529ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22530ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22531ac_compiler_gnu=$ac_cv_c_compiler_gnu
22532
22533
22534fi
22535echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
22536echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000022537if test "$ac_cv_cxx_have_fwd_iterator" = yes
22538then
John Criswell40468462004-09-24 21:19:06 +000022539
22540cat >>confdefs.h <<\_ACEOF
22541#define HAVE_FWD_ITERATOR 1
22542_ACEOF
22543
22544else
22545
22546cat >>confdefs.h <<\_ACEOF
22547#define HAVE_FWD_ITERATOR 0
22548_ACEOF
22549
John Criswell7a73b802003-06-30 21:59:07 +000022550fi
22551
22552
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022553
22554echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
22555echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
22556if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
22557 echo $ECHO_N "(cached) $ECHO_C" >&6
22558else
22559 ac_ext=cc
22560ac_cpp='$CXXCPP $CPPFLAGS'
22561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22564
Reid Spencerabec8f92004-10-27 23:03:44 +000022565 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022566/* confdefs.h. */
22567_ACEOF
22568cat confdefs.h >>conftest.$ac_ext
22569cat >>conftest.$ac_ext <<_ACEOF
22570/* end confdefs.h. */
22571#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000022572int
22573main ()
22574{
22575float f; isnan(f);
22576 ;
22577 return 0;
22578}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022579_ACEOF
22580rm -f conftest.$ac_objext
22581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022582 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022583 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022584 grep -v '^ *+' conftest.er1 >conftest.err
22585 rm -f conftest.er1
22586 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22588 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022589 { ac_try='test -z "$ac_cxx_werror_flag"
22590 || test ! -s conftest.err'
22591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22592 (eval $ac_try) 2>&5
22593 ac_status=$?
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); }; } &&
22596 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22598 (eval $ac_try) 2>&5
22599 ac_status=$?
22600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); }; }; then
22602 ac_cv_func_isnan_in_math_h=yes
22603else
22604 echo "$as_me: failed program was:" >&5
22605sed 's/^/| /' conftest.$ac_ext >&5
22606
22607ac_cv_func_isnan_in_math_h=no
22608fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000022610 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022611ac_cpp='$CPP $CPPFLAGS'
22612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22614ac_compiler_gnu=$ac_cv_c_compiler_gnu
22615
22616fi
22617echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22618echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000022619
22620
22621if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022622
22623cat >>confdefs.h <<\_ACEOF
22624#define HAVE_ISNAN_IN_MATH_H 1
22625_ACEOF
22626
Reid Spencerabec8f92004-10-27 23:03:44 +000022627fi
22628
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022629echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22630echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22631if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22632 echo $ECHO_N "(cached) $ECHO_C" >&6
22633else
22634 ac_ext=cc
22635ac_cpp='$CXXCPP $CPPFLAGS'
22636ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22637ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22638ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22639
Reid Spencerabec8f92004-10-27 23:03:44 +000022640 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022641/* confdefs.h. */
22642_ACEOF
22643cat confdefs.h >>conftest.$ac_ext
22644cat >>conftest.$ac_ext <<_ACEOF
22645/* end confdefs.h. */
22646#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000022647int
22648main ()
22649{
22650float f; isnan(f);
22651 ;
22652 return 0;
22653}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022654_ACEOF
22655rm -f conftest.$ac_objext
22656if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022657 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022658 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022659 grep -v '^ *+' conftest.er1 >conftest.err
22660 rm -f conftest.er1
22661 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022664 { ac_try='test -z "$ac_cxx_werror_flag"
22665 || test ! -s conftest.err'
22666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667 (eval $ac_try) 2>&5
22668 ac_status=$?
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); }; } &&
22671 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673 (eval $ac_try) 2>&5
22674 ac_status=$?
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); }; }; then
22677 ac_cv_func_isnan_in_cmath=yes
22678else
22679 echo "$as_me: failed program was:" >&5
22680sed 's/^/| /' conftest.$ac_ext >&5
22681
22682ac_cv_func_isnan_in_cmath=no
22683fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000022685 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022686ac_cpp='$CPP $CPPFLAGS'
22687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22689ac_compiler_gnu=$ac_cv_c_compiler_gnu
22690
22691fi
22692echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22693echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000022694
22695if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022696
22697cat >>confdefs.h <<\_ACEOF
22698#define HAVE_ISNAN_IN_CMATH 1
22699_ACEOF
22700
Reid Spencerabec8f92004-10-27 23:03:44 +000022701fi
22702
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022703echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22704echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22705if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22706 echo $ECHO_N "(cached) $ECHO_C" >&6
22707else
22708 ac_ext=cc
22709ac_cpp='$CXXCPP $CPPFLAGS'
22710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22713
Reid Spencerabec8f92004-10-27 23:03:44 +000022714 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022715/* confdefs.h. */
22716_ACEOF
22717cat confdefs.h >>conftest.$ac_ext
22718cat >>conftest.$ac_ext <<_ACEOF
22719/* end confdefs.h. */
22720#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000022721int
22722main ()
22723{
22724float f; std::isnan(f);
22725 ;
22726 return 0;
22727}
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022728_ACEOF
22729rm -f conftest.$ac_objext
22730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022731 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022732 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022733 grep -v '^ *+' conftest.er1 >conftest.err
22734 rm -f conftest.er1
22735 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022738 { ac_try='test -z "$ac_cxx_werror_flag"
22739 || test ! -s conftest.err'
22740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22741 (eval $ac_try) 2>&5
22742 ac_status=$?
22743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22744 (exit $ac_status); }; } &&
22745 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22747 (eval $ac_try) 2>&5
22748 ac_status=$?
22749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); }; }; then
22751 ac_cv_func_std_isnan_in_cmath=yes
22752else
22753 echo "$as_me: failed program was:" >&5
22754sed 's/^/| /' conftest.$ac_ext >&5
22755
22756ac_cv_func_std_isnan_in_cmath=no
22757fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000022759 ac_ext=c
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022760ac_cpp='$CPP $CPPFLAGS'
22761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22763ac_compiler_gnu=$ac_cv_c_compiler_gnu
22764
22765fi
22766echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22767echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000022768
22769if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022770
22771cat >>confdefs.h <<\_ACEOF
22772#define HAVE_STD_ISNAN_IN_CMATH 1
22773_ACEOF
22774
Reid Spencerabec8f92004-10-27 23:03:44 +000022775fi
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022776
22777
Brian Gaeke52a551d2004-07-21 03:14:12 +000022778echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22779echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22780if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22781 echo $ECHO_N "(cached) $ECHO_C" >&6
22782else
22783 ac_ext=cc
22784ac_cpp='$CXXCPP $CPPFLAGS'
22785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22788
Reid Spencerabec8f92004-10-27 23:03:44 +000022789 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022790/* confdefs.h. */
22791_ACEOF
22792cat confdefs.h >>conftest.$ac_ext
22793cat >>conftest.$ac_ext <<_ACEOF
22794/* end confdefs.h. */
22795#include <math.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000022796int
22797main ()
22798{
22799float f; isinf(f);
22800 ;
22801 return 0;
22802}
Brian Gaeke52a551d2004-07-21 03:14:12 +000022803_ACEOF
22804rm -f conftest.$ac_objext
22805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022806 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022807 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022808 grep -v '^ *+' conftest.er1 >conftest.err
22809 rm -f conftest.er1
22810 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022813 { ac_try='test -z "$ac_cxx_werror_flag"
22814 || test ! -s conftest.err'
22815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22816 (eval $ac_try) 2>&5
22817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; } &&
22820 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22822 (eval $ac_try) 2>&5
22823 ac_status=$?
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); }; }; then
22826 ac_cv_func_isinf_in_math_h=yes
22827else
22828 echo "$as_me: failed program was:" >&5
22829sed 's/^/| /' conftest.$ac_ext >&5
22830
22831ac_cv_func_isinf_in_math_h=no
22832fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000022834 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000022835ac_cpp='$CPP $CPPFLAGS'
22836ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22837ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22838ac_compiler_gnu=$ac_cv_c_compiler_gnu
22839
22840fi
22841echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22842echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000022843
22844if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000022845
22846cat >>confdefs.h <<\_ACEOF
22847#define HAVE_ISINF_IN_MATH_H 1
22848_ACEOF
22849
Reid Spencerabec8f92004-10-27 23:03:44 +000022850fi
22851
Brian Gaeke52a551d2004-07-21 03:14:12 +000022852echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22853echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22854if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22855 echo $ECHO_N "(cached) $ECHO_C" >&6
22856else
22857 ac_ext=cc
22858ac_cpp='$CXXCPP $CPPFLAGS'
22859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22862
Reid Spencerabec8f92004-10-27 23:03:44 +000022863 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022864/* confdefs.h. */
22865_ACEOF
22866cat confdefs.h >>conftest.$ac_ext
22867cat >>conftest.$ac_ext <<_ACEOF
22868/* end confdefs.h. */
22869#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000022870int
22871main ()
22872{
22873float f; isinf(f);
22874 ;
22875 return 0;
22876}
Brian Gaeke52a551d2004-07-21 03:14:12 +000022877_ACEOF
22878rm -f conftest.$ac_objext
22879if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022880 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022881 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022882 grep -v '^ *+' conftest.er1 >conftest.err
22883 rm -f conftest.er1
22884 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022887 { ac_try='test -z "$ac_cxx_werror_flag"
22888 || test ! -s conftest.err'
22889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890 (eval $ac_try) 2>&5
22891 ac_status=$?
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); }; } &&
22894 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22896 (eval $ac_try) 2>&5
22897 ac_status=$?
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); }; }; then
22900 ac_cv_func_isinf_in_cmath=yes
22901else
22902 echo "$as_me: failed program was:" >&5
22903sed 's/^/| /' conftest.$ac_ext >&5
22904
22905ac_cv_func_isinf_in_cmath=no
22906fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022907rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000022908 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000022909ac_cpp='$CPP $CPPFLAGS'
22910ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22911ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22912ac_compiler_gnu=$ac_cv_c_compiler_gnu
22913
22914fi
22915echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22916echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000022917
22918if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000022919
22920cat >>confdefs.h <<\_ACEOF
22921#define HAVE_ISINF_IN_CMATH 1
22922_ACEOF
22923
Reid Spencerabec8f92004-10-27 23:03:44 +000022924fi
22925
Brian Gaeke52a551d2004-07-21 03:14:12 +000022926echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22927echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22928if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22929 echo $ECHO_N "(cached) $ECHO_C" >&6
22930else
22931 ac_ext=cc
22932ac_cpp='$CXXCPP $CPPFLAGS'
22933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22936
Reid Spencerabec8f92004-10-27 23:03:44 +000022937 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022938/* confdefs.h. */
22939_ACEOF
22940cat confdefs.h >>conftest.$ac_ext
22941cat >>conftest.$ac_ext <<_ACEOF
22942/* end confdefs.h. */
22943#include <cmath>
Reid Spencerabec8f92004-10-27 23:03:44 +000022944int
22945main ()
22946{
22947float f; std::isinf(f)}
22948 ;
22949 return 0;
22950}
Brian Gaeke52a551d2004-07-21 03:14:12 +000022951_ACEOF
22952rm -f conftest.$ac_objext
22953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022954 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022955 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022956 grep -v '^ *+' conftest.er1 >conftest.err
22957 rm -f conftest.er1
22958 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022961 { ac_try='test -z "$ac_cxx_werror_flag"
22962 || test ! -s conftest.err'
22963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22964 (eval $ac_try) 2>&5
22965 ac_status=$?
22966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967 (exit $ac_status); }; } &&
22968 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22970 (eval $ac_try) 2>&5
22971 ac_status=$?
22972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973 (exit $ac_status); }; }; then
22974 ac_cv_func_std_isinf_in_cmath=yes
22975else
22976 echo "$as_me: failed program was:" >&5
22977sed 's/^/| /' conftest.$ac_ext >&5
22978
22979ac_cv_func_std_isinf_in_cmath=no
22980fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000022982 ac_ext=c
Brian Gaeke52a551d2004-07-21 03:14:12 +000022983ac_cpp='$CPP $CPPFLAGS'
22984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22986ac_compiler_gnu=$ac_cv_c_compiler_gnu
22987
22988fi
22989echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22990echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000022991
22992if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
Brian Gaeke52a551d2004-07-21 03:14:12 +000022993
22994cat >>confdefs.h <<\_ACEOF
22995#define HAVE_STD_ISINF_IN_CMATH 1
22996_ACEOF
22997
Reid Spencerabec8f92004-10-27 23:03:44 +000022998fi
22999
Brian Gaeked59a6472004-07-21 03:33:58 +000023000echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
23001echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
23002if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
23003 echo $ECHO_N "(cached) $ECHO_C" >&6
23004else
23005 ac_ext=cc
23006ac_cpp='$CXXCPP $CPPFLAGS'
23007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23010
Reid Spencerabec8f92004-10-27 23:03:44 +000023011 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000023012/* confdefs.h. */
23013_ACEOF
23014cat confdefs.h >>conftest.$ac_ext
23015cat >>conftest.$ac_ext <<_ACEOF
23016/* end confdefs.h. */
23017#include <ieeefp.h>
Reid Spencerabec8f92004-10-27 23:03:44 +000023018int
23019main ()
23020{
23021float f; finite(f);
23022 ;
23023 return 0;
23024}
Brian Gaeked59a6472004-07-21 03:33:58 +000023025_ACEOF
23026rm -f conftest.$ac_objext
23027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023028 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000023029 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023030 grep -v '^ *+' conftest.er1 >conftest.err
23031 rm -f conftest.er1
23032 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000023033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023035 { ac_try='test -z "$ac_cxx_werror_flag"
23036 || test ! -s conftest.err'
23037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23038 (eval $ac_try) 2>&5
23039 ac_status=$?
23040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23041 (exit $ac_status); }; } &&
23042 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000023043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23044 (eval $ac_try) 2>&5
23045 ac_status=$?
23046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23047 (exit $ac_status); }; }; then
23048 ac_cv_func_finite_in_ieeefp_h=yes
23049else
23050 echo "$as_me: failed program was:" >&5
23051sed 's/^/| /' conftest.$ac_ext >&5
23052
23053ac_cv_func_finite_in_ieeefp_h=no
23054fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Reid Spencerabec8f92004-10-27 23:03:44 +000023056 ac_ext=c
Brian Gaeked59a6472004-07-21 03:33:58 +000023057ac_cpp='$CPP $CPPFLAGS'
23058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23060ac_compiler_gnu=$ac_cv_c_compiler_gnu
23061
23062fi
23063echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
23064echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
Reid Spencerabec8f92004-10-27 23:03:44 +000023065
23066if test "$ac_cv_func_finite_in_ieefp_h" = "yes" ; then
Brian Gaeked59a6472004-07-21 03:33:58 +000023067
23068cat >>confdefs.h <<\_ACEOF
Reid Spencerabec8f92004-10-27 23:03:44 +000023069#define HAVE_FINITE_IN_IEEFP_H 1
Brian Gaeked59a6472004-07-21 03:33:58 +000023070_ACEOF
23071
Reid Spencerabec8f92004-10-27 23:03:44 +000023072fi
23073
23074
23075
23076echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
23077echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6
23078if test "${ac_cv_func_rand48+set}" = set; then
23079 echo $ECHO_N "(cached) $ECHO_C" >&6
23080else
23081 ac_ext=cc
23082ac_cpp='$CXXCPP $CPPFLAGS'
23083ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23084ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23085ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23086
23087 cat >conftest.$ac_ext <<_ACEOF
23088/* confdefs.h. */
23089_ACEOF
23090cat confdefs.h >>conftest.$ac_ext
23091cat >>conftest.$ac_ext <<_ACEOF
23092/* end confdefs.h. */
23093#include <stdlib.h>
23094int
23095main ()
23096{
23097srand48(0);lrand48();drand48();
23098 ;
23099 return 0;
23100}
23101_ACEOF
23102rm -f conftest.$ac_objext
23103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23104 (eval $ac_compile) 2>conftest.er1
23105 ac_status=$?
23106 grep -v '^ *+' conftest.er1 >conftest.err
23107 rm -f conftest.er1
23108 cat conftest.err >&5
23109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23110 (exit $ac_status); } &&
23111 { ac_try='test -z "$ac_cxx_werror_flag"
23112 || test ! -s conftest.err'
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; } &&
23118 { ac_try='test -s conftest.$ac_objext'
23119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23120 (eval $ac_try) 2>&5
23121 ac_status=$?
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); }; }; then
23124 ac_cv_func_rand48=yes
23125else
23126 echo "$as_me: failed program was:" >&5
23127sed 's/^/| /' conftest.$ac_ext >&5
23128
23129ac_cv_func_rand48=no
23130fi
23131rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23132 ac_ext=c
23133ac_cpp='$CPP $CPPFLAGS'
23134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23136ac_compiler_gnu=$ac_cv_c_compiler_gnu
23137
23138fi
23139echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
23140echo "${ECHO_T}$ac_cv_func_rand48" >&6
23141
23142if test "$ac_cv_func_rand48" = "yes" ; then
23143
23144cat >>confdefs.h <<\_ACEOF
23145#define HAVE_RAND48 1
23146_ACEOF
23147
23148fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000023149
23150
John Criswell7a73b802003-06-30 21:59:07 +000023151# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
23152# for constant arguments. Useless!
23153echo "$as_me:$LINENO: checking for working alloca.h" >&5
23154echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
23155if test "${ac_cv_working_alloca_h+set}" = set; then
23156 echo $ECHO_N "(cached) $ECHO_C" >&6
23157else
23158 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023159/* confdefs.h. */
23160_ACEOF
23161cat confdefs.h >>conftest.$ac_ext
23162cat >>conftest.$ac_ext <<_ACEOF
23163/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023164#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000023165int
23166main ()
23167{
23168char *p = (char *) alloca (2 * sizeof (int));
23169 ;
23170 return 0;
23171}
23172_ACEOF
23173rm -f conftest.$ac_objext conftest$ac_exeext
23174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023175 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023176 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023177 grep -v '^ *+' conftest.er1 >conftest.err
23178 rm -f conftest.er1
23179 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023182 { ac_try='test -z "$ac_c_werror_flag"
23183 || test ! -s conftest.err'
23184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23185 (eval $ac_try) 2>&5
23186 ac_status=$?
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); }; } &&
23189 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191 (eval $ac_try) 2>&5
23192 ac_status=$?
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; }; then
23195 ac_cv_working_alloca_h=yes
23196else
23197 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023198sed 's/^/| /' conftest.$ac_ext >&5
23199
John Criswell7a73b802003-06-30 21:59:07 +000023200ac_cv_working_alloca_h=no
23201fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023202rm -f conftest.err conftest.$ac_objext \
23203 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023204fi
23205echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23206echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23207if test $ac_cv_working_alloca_h = yes; then
23208
23209cat >>confdefs.h <<\_ACEOF
23210#define HAVE_ALLOCA_H 1
23211_ACEOF
23212
23213fi
23214
23215echo "$as_me:$LINENO: checking for alloca" >&5
23216echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23217if test "${ac_cv_func_alloca_works+set}" = set; then
23218 echo $ECHO_N "(cached) $ECHO_C" >&6
23219else
23220 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023221/* confdefs.h. */
23222_ACEOF
23223cat confdefs.h >>conftest.$ac_ext
23224cat >>conftest.$ac_ext <<_ACEOF
23225/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023226#ifdef __GNUC__
23227# define alloca __builtin_alloca
23228#else
23229# ifdef _MSC_VER
23230# include <malloc.h>
23231# define alloca _alloca
23232# else
23233# if HAVE_ALLOCA_H
23234# include <alloca.h>
23235# else
23236# ifdef _AIX
23237 #pragma alloca
23238# else
23239# ifndef alloca /* predefined by HP cc +Olibcalls */
23240char *alloca ();
23241# endif
23242# endif
23243# endif
23244# endif
23245#endif
23246
John Criswell7a73b802003-06-30 21:59:07 +000023247int
23248main ()
23249{
23250char *p = (char *) alloca (1);
23251 ;
23252 return 0;
23253}
23254_ACEOF
23255rm -f conftest.$ac_objext conftest$ac_exeext
23256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023257 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023258 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023259 grep -v '^ *+' conftest.er1 >conftest.err
23260 rm -f conftest.er1
23261 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023264 { ac_try='test -z "$ac_c_werror_flag"
23265 || test ! -s conftest.err'
23266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23267 (eval $ac_try) 2>&5
23268 ac_status=$?
23269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23270 (exit $ac_status); }; } &&
23271 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23273 (eval $ac_try) 2>&5
23274 ac_status=$?
23275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23276 (exit $ac_status); }; }; then
23277 ac_cv_func_alloca_works=yes
23278else
23279 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023280sed 's/^/| /' conftest.$ac_ext >&5
23281
John Criswell7a73b802003-06-30 21:59:07 +000023282ac_cv_func_alloca_works=no
23283fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023284rm -f conftest.err conftest.$ac_objext \
23285 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023286fi
23287echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23288echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23289
23290if test $ac_cv_func_alloca_works = yes; then
23291
23292cat >>confdefs.h <<\_ACEOF
23293#define HAVE_ALLOCA 1
23294_ACEOF
23295
23296else
23297 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23298# that cause trouble. Some versions do not even contain alloca or
23299# contain a buggy version. If you still want to use their alloca,
23300# use ar to extract alloca.o from them instead of compiling alloca.c.
23301
23302ALLOCA=alloca.$ac_objext
23303
23304cat >>confdefs.h <<\_ACEOF
23305#define C_ALLOCA 1
23306_ACEOF
23307
23308
23309echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23310echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23311if test "${ac_cv_os_cray+set}" = set; then
23312 echo $ECHO_N "(cached) $ECHO_C" >&6
23313else
23314 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023315/* confdefs.h. */
23316_ACEOF
23317cat confdefs.h >>conftest.$ac_ext
23318cat >>conftest.$ac_ext <<_ACEOF
23319/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023320#if defined(CRAY) && ! defined(CRAY2)
23321webecray
23322#else
23323wenotbecray
23324#endif
23325
23326_ACEOF
23327if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000023328 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023329 ac_cv_os_cray=yes
23330else
23331 ac_cv_os_cray=no
23332fi
23333rm -f conftest*
23334
23335fi
23336echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23337echo "${ECHO_T}$ac_cv_os_cray" >&6
23338if test $ac_cv_os_cray = yes; then
23339 for ac_func in _getb67 GETB67 getb67; do
23340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23341echo "$as_me:$LINENO: checking for $ac_func" >&5
23342echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23343if eval "test \"\${$as_ac_var+set}\" = set"; then
23344 echo $ECHO_N "(cached) $ECHO_C" >&6
23345else
23346 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023347/* confdefs.h. */
23348_ACEOF
23349cat confdefs.h >>conftest.$ac_ext
23350cat >>conftest.$ac_ext <<_ACEOF
23351/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023352/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23354#define $ac_func innocuous_$ac_func
23355
John Criswell7a73b802003-06-30 21:59:07 +000023356/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023357 which can conflict with char $ac_func (); below.
23358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23359 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023360
John Criswell0c38eaf2003-09-10 15:17:25 +000023361#ifdef __STDC__
23362# include <limits.h>
23363#else
23364# include <assert.h>
23365#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023366
23367#undef $ac_func
23368
John Criswell7a73b802003-06-30 21:59:07 +000023369/* Override any gcc2 internal prototype to avoid an error. */
23370#ifdef __cplusplus
23371extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023372{
John Criswell7a73b802003-06-30 21:59:07 +000023373#endif
23374/* We use char because int might match the return type of a gcc2
23375 builtin and then its argument prototype would still apply. */
23376char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023377/* The GNU C library defines this for functions which it implements
23378 to always fail with ENOSYS. Some functions are actually named
23379 something starting with __ and the normal name is an alias. */
23380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23381choke me
23382#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023383char (*f) () = $ac_func;
23384#endif
23385#ifdef __cplusplus
23386}
John Criswell7a73b802003-06-30 21:59:07 +000023387#endif
23388
John Criswell0c38eaf2003-09-10 15:17:25 +000023389int
23390main ()
23391{
23392return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023393 ;
23394 return 0;
23395}
23396_ACEOF
23397rm -f conftest.$ac_objext conftest$ac_exeext
23398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023399 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023400 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023401 grep -v '^ *+' conftest.er1 >conftest.err
23402 rm -f conftest.er1
23403 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023406 { ac_try='test -z "$ac_c_werror_flag"
23407 || test ! -s conftest.err'
23408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23409 (eval $ac_try) 2>&5
23410 ac_status=$?
23411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23412 (exit $ac_status); }; } &&
23413 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23415 (eval $ac_try) 2>&5
23416 ac_status=$?
23417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23418 (exit $ac_status); }; }; then
23419 eval "$as_ac_var=yes"
23420else
23421 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023422sed 's/^/| /' conftest.$ac_ext >&5
23423
John Criswell7a73b802003-06-30 21:59:07 +000023424eval "$as_ac_var=no"
23425fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023426rm -f conftest.err conftest.$ac_objext \
23427 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023428fi
23429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23430echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23431if test `eval echo '${'$as_ac_var'}'` = yes; then
23432
23433cat >>confdefs.h <<_ACEOF
23434#define CRAY_STACKSEG_END $ac_func
23435_ACEOF
23436
23437 break
23438fi
23439
23440 done
23441fi
23442
23443echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23444echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23445if test "${ac_cv_c_stack_direction+set}" = set; then
23446 echo $ECHO_N "(cached) $ECHO_C" >&6
23447else
23448 if test "$cross_compiling" = yes; then
23449 ac_cv_c_stack_direction=0
23450else
23451 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023452/* confdefs.h. */
23453_ACEOF
23454cat confdefs.h >>conftest.$ac_ext
23455cat >>conftest.$ac_ext <<_ACEOF
23456/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023457int
23458find_stack_direction ()
23459{
23460 static char *addr = 0;
23461 auto char dummy;
23462 if (addr == 0)
23463 {
23464 addr = &dummy;
23465 return find_stack_direction ();
23466 }
23467 else
23468 return (&dummy > addr) ? 1 : -1;
23469}
23470
23471int
23472main ()
23473{
23474 exit (find_stack_direction () < 0);
23475}
23476_ACEOF
23477rm -f conftest$ac_exeext
23478if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23479 (eval $ac_link) 2>&5
23480 ac_status=$?
23481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23484 (eval $ac_try) 2>&5
23485 ac_status=$?
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); }; }; then
23488 ac_cv_c_stack_direction=1
23489else
23490 echo "$as_me: program exited with status $ac_status" >&5
23491echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023492sed 's/^/| /' conftest.$ac_ext >&5
23493
John Criswell7a73b802003-06-30 21:59:07 +000023494( exit $ac_status )
23495ac_cv_c_stack_direction=-1
23496fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023497rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023498fi
23499fi
23500echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23501echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23502
23503cat >>confdefs.h <<_ACEOF
23504#define STACK_DIRECTION $ac_cv_c_stack_direction
23505_ACEOF
23506
23507
23508fi
23509
John Criswell7a73b802003-06-30 21:59:07 +000023510
23511
23512for ac_header in stdlib.h unistd.h
23513do
23514as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23515if eval "test \"\${$as_ac_Header+set}\" = set"; then
23516 echo "$as_me:$LINENO: checking for $ac_header" >&5
23517echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23518if eval "test \"\${$as_ac_Header+set}\" = set"; then
23519 echo $ECHO_N "(cached) $ECHO_C" >&6
23520fi
23521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23522echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23523else
23524 # Is the header compilable?
23525echo "$as_me:$LINENO: checking $ac_header usability" >&5
23526echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23527cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023528/* confdefs.h. */
23529_ACEOF
23530cat confdefs.h >>conftest.$ac_ext
23531cat >>conftest.$ac_ext <<_ACEOF
23532/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023533$ac_includes_default
23534#include <$ac_header>
23535_ACEOF
23536rm -f conftest.$ac_objext
23537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023538 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023539 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023540 grep -v '^ *+' conftest.er1 >conftest.err
23541 rm -f conftest.er1
23542 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023545 { ac_try='test -z "$ac_c_werror_flag"
23546 || test ! -s conftest.err'
23547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23548 (eval $ac_try) 2>&5
23549 ac_status=$?
23550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23551 (exit $ac_status); }; } &&
23552 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23554 (eval $ac_try) 2>&5
23555 ac_status=$?
23556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557 (exit $ac_status); }; }; then
23558 ac_header_compiler=yes
23559else
23560 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023561sed 's/^/| /' conftest.$ac_ext >&5
23562
John Criswell7a73b802003-06-30 21:59:07 +000023563ac_header_compiler=no
23564fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023566echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23567echo "${ECHO_T}$ac_header_compiler" >&6
23568
23569# Is the header present?
23570echo "$as_me:$LINENO: checking $ac_header presence" >&5
23571echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23572cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023573/* confdefs.h. */
23574_ACEOF
23575cat confdefs.h >>conftest.$ac_ext
23576cat >>conftest.$ac_ext <<_ACEOF
23577/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023578#include <$ac_header>
23579_ACEOF
23580if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23581 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23582 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000023583 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000023584 rm -f conftest.er1
23585 cat conftest.err >&5
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); } >/dev/null; then
23588 if test -s conftest.err; then
23589 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000023590 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000023591 else
23592 ac_cpp_err=
23593 fi
23594else
23595 ac_cpp_err=yes
23596fi
23597if test -z "$ac_cpp_err"; then
23598 ac_header_preproc=yes
23599else
23600 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023601sed 's/^/| /' conftest.$ac_ext >&5
23602
John Criswell7a73b802003-06-30 21:59:07 +000023603 ac_header_preproc=no
23604fi
23605rm -f conftest.err conftest.$ac_ext
23606echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23607echo "${ECHO_T}$ac_header_preproc" >&6
23608
23609# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023610case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23611 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000023612 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23613echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000023614 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23615echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23616 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000023617 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023618 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000023619 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23620echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000023621 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23622echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23623 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23624echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23625 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23626echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000023627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000023629 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23630echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000023631 (
23632 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000023633## ----------------------------------- ##
23634## Report this to llvmbugs@cs.uiuc.edu ##
23635## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000023636_ASBOX
23637 ) |
23638 sed "s/^/$as_me: WARNING: /" >&2
23639 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023640esac
23641echo "$as_me:$LINENO: checking for $ac_header" >&5
23642echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23643if eval "test \"\${$as_ac_Header+set}\" = set"; then
23644 echo $ECHO_N "(cached) $ECHO_C" >&6
23645else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023646 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000023647fi
23648echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23649echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23650
23651fi
23652if test `eval echo '${'$as_ac_Header'}'` = yes; then
23653 cat >>confdefs.h <<_ACEOF
23654#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23655_ACEOF
23656
23657fi
23658
23659done
23660
23661
23662for ac_func in getpagesize
23663do
23664as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23665echo "$as_me:$LINENO: checking for $ac_func" >&5
23666echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23667if eval "test \"\${$as_ac_var+set}\" = set"; then
23668 echo $ECHO_N "(cached) $ECHO_C" >&6
23669else
23670 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023671/* confdefs.h. */
23672_ACEOF
23673cat confdefs.h >>conftest.$ac_ext
23674cat >>conftest.$ac_ext <<_ACEOF
23675/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023676/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23677 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23678#define $ac_func innocuous_$ac_func
23679
John Criswell7a73b802003-06-30 21:59:07 +000023680/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023681 which can conflict with char $ac_func (); below.
23682 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23683 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023684
John Criswell0c38eaf2003-09-10 15:17:25 +000023685#ifdef __STDC__
23686# include <limits.h>
23687#else
23688# include <assert.h>
23689#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023690
23691#undef $ac_func
23692
John Criswell7a73b802003-06-30 21:59:07 +000023693/* Override any gcc2 internal prototype to avoid an error. */
23694#ifdef __cplusplus
23695extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023696{
John Criswell7a73b802003-06-30 21:59:07 +000023697#endif
23698/* We use char because int might match the return type of a gcc2
23699 builtin and then its argument prototype would still apply. */
23700char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023701/* The GNU C library defines this for functions which it implements
23702 to always fail with ENOSYS. Some functions are actually named
23703 something starting with __ and the normal name is an alias. */
23704#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23705choke me
23706#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023707char (*f) () = $ac_func;
23708#endif
23709#ifdef __cplusplus
23710}
John Criswell7a73b802003-06-30 21:59:07 +000023711#endif
23712
John Criswell0c38eaf2003-09-10 15:17:25 +000023713int
23714main ()
23715{
23716return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023717 ;
23718 return 0;
23719}
23720_ACEOF
23721rm -f conftest.$ac_objext conftest$ac_exeext
23722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023723 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023724 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023725 grep -v '^ *+' conftest.er1 >conftest.err
23726 rm -f conftest.er1
23727 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23729 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023730 { ac_try='test -z "$ac_c_werror_flag"
23731 || test ! -s conftest.err'
23732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23733 (eval $ac_try) 2>&5
23734 ac_status=$?
23735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23736 (exit $ac_status); }; } &&
23737 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23739 (eval $ac_try) 2>&5
23740 ac_status=$?
23741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23742 (exit $ac_status); }; }; then
23743 eval "$as_ac_var=yes"
23744else
23745 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023746sed 's/^/| /' conftest.$ac_ext >&5
23747
John Criswell7a73b802003-06-30 21:59:07 +000023748eval "$as_ac_var=no"
23749fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023750rm -f conftest.err conftest.$ac_objext \
23751 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023752fi
23753echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23754echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23755if test `eval echo '${'$as_ac_var'}'` = yes; then
23756 cat >>confdefs.h <<_ACEOF
23757#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23758_ACEOF
23759
23760fi
23761done
23762
23763echo "$as_me:$LINENO: checking for working mmap" >&5
23764echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23765if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23766 echo $ECHO_N "(cached) $ECHO_C" >&6
23767else
23768 if test "$cross_compiling" = yes; then
23769 ac_cv_func_mmap_fixed_mapped=no
23770else
23771 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023772/* confdefs.h. */
23773_ACEOF
23774cat confdefs.h >>conftest.$ac_ext
23775cat >>conftest.$ac_ext <<_ACEOF
23776/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023777$ac_includes_default
23778/* malloc might have been renamed as rpl_malloc. */
23779#undef malloc
23780
23781/* Thanks to Mike Haertel and Jim Avera for this test.
23782 Here is a matrix of mmap possibilities:
23783 mmap private not fixed
23784 mmap private fixed at somewhere currently unmapped
23785 mmap private fixed at somewhere already mapped
23786 mmap shared not fixed
23787 mmap shared fixed at somewhere currently unmapped
23788 mmap shared fixed at somewhere already mapped
23789 For private mappings, we should verify that changes cannot be read()
23790 back from the file, nor mmap's back from the file at a different
23791 address. (There have been systems where private was not correctly
23792 implemented like the infamous i386 svr4.0, and systems where the
23793 VM page cache was not coherent with the file system buffer cache
23794 like early versions of FreeBSD and possibly contemporary NetBSD.)
23795 For shared mappings, we should conversely verify that changes get
23796 propagated back to all the places they're supposed to be.
23797
23798 Grep wants private fixed already mapped.
23799 The main things grep needs to know about mmap are:
23800 * does it exist and is it safe to write into the mmap'd area
23801 * how to use it (BSD variants) */
23802
23803#include <fcntl.h>
23804#include <sys/mman.h>
23805
23806#if !STDC_HEADERS && !HAVE_STDLIB_H
23807char *malloc ();
23808#endif
23809
23810/* This mess was copied from the GNU getpagesize.h. */
23811#if !HAVE_GETPAGESIZE
23812/* Assume that all systems that can run configure have sys/param.h. */
23813# if !HAVE_SYS_PARAM_H
23814# define HAVE_SYS_PARAM_H 1
23815# endif
23816
23817# ifdef _SC_PAGESIZE
23818# define getpagesize() sysconf(_SC_PAGESIZE)
23819# else /* no _SC_PAGESIZE */
23820# if HAVE_SYS_PARAM_H
23821# include <sys/param.h>
23822# ifdef EXEC_PAGESIZE
23823# define getpagesize() EXEC_PAGESIZE
23824# else /* no EXEC_PAGESIZE */
23825# ifdef NBPG
23826# define getpagesize() NBPG * CLSIZE
23827# ifndef CLSIZE
23828# define CLSIZE 1
23829# endif /* no CLSIZE */
23830# else /* no NBPG */
23831# ifdef NBPC
23832# define getpagesize() NBPC
23833# else /* no NBPC */
23834# ifdef PAGESIZE
23835# define getpagesize() PAGESIZE
23836# endif /* PAGESIZE */
23837# endif /* no NBPC */
23838# endif /* no NBPG */
23839# endif /* no EXEC_PAGESIZE */
23840# else /* no HAVE_SYS_PARAM_H */
23841# define getpagesize() 8192 /* punt totally */
23842# endif /* no HAVE_SYS_PARAM_H */
23843# endif /* no _SC_PAGESIZE */
23844
23845#endif /* no HAVE_GETPAGESIZE */
23846
23847int
23848main ()
23849{
23850 char *data, *data2, *data3;
23851 int i, pagesize;
23852 int fd;
23853
23854 pagesize = getpagesize ();
23855
23856 /* First, make a file with some known garbage in it. */
23857 data = (char *) malloc (pagesize);
23858 if (!data)
23859 exit (1);
23860 for (i = 0; i < pagesize; ++i)
23861 *(data + i) = rand ();
23862 umask (0);
23863 fd = creat ("conftest.mmap", 0600);
23864 if (fd < 0)
23865 exit (1);
23866 if (write (fd, data, pagesize) != pagesize)
23867 exit (1);
23868 close (fd);
23869
23870 /* Next, try to mmap the file at a fixed address which already has
23871 something else allocated at it. If we can, also make sure that
23872 we see the same garbage. */
23873 fd = open ("conftest.mmap", O_RDWR);
23874 if (fd < 0)
23875 exit (1);
23876 data2 = (char *) malloc (2 * pagesize);
23877 if (!data2)
23878 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000023879 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000023880 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000023881 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000023882 exit (1);
23883 for (i = 0; i < pagesize; ++i)
23884 if (*(data + i) != *(data2 + i))
23885 exit (1);
23886
23887 /* Finally, make sure that changes to the mapped area do not
23888 percolate back to the file as seen by read(). (This is a bug on
23889 some variants of i386 svr4.0.) */
23890 for (i = 0; i < pagesize; ++i)
23891 *(data2 + i) = *(data2 + i) + 1;
23892 data3 = (char *) malloc (pagesize);
23893 if (!data3)
23894 exit (1);
23895 if (read (fd, data3, pagesize) != pagesize)
23896 exit (1);
23897 for (i = 0; i < pagesize; ++i)
23898 if (*(data + i) != *(data3 + i))
23899 exit (1);
23900 close (fd);
23901 exit (0);
23902}
23903_ACEOF
23904rm -f conftest$ac_exeext
23905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23906 (eval $ac_link) 2>&5
23907 ac_status=$?
23908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911 (eval $ac_try) 2>&5
23912 ac_status=$?
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); }; }; then
23915 ac_cv_func_mmap_fixed_mapped=yes
23916else
23917 echo "$as_me: program exited with status $ac_status" >&5
23918echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023919sed 's/^/| /' conftest.$ac_ext >&5
23920
John Criswell7a73b802003-06-30 21:59:07 +000023921( exit $ac_status )
23922ac_cv_func_mmap_fixed_mapped=no
23923fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023924rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023925fi
23926fi
23927echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23928echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23929if test $ac_cv_func_mmap_fixed_mapped = yes; then
23930
23931cat >>confdefs.h <<\_ACEOF
23932#define HAVE_MMAP 1
23933_ACEOF
23934
23935fi
23936rm -f conftest.mmap
23937
Brian Gaeke26be9c52004-01-13 06:43:16 +000023938if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23939then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023940 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23941echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000023942fi
John Criswell7a73b802003-06-30 21:59:07 +000023943echo "$as_me:$LINENO: checking for mmap of files" >&5
23944echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23945if test "${ac_cv_func_mmap_file+set}" = set; then
23946 echo $ECHO_N "(cached) $ECHO_C" >&6
23947else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023948 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000023949ac_cpp='$CPP $CPPFLAGS'
23950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23952ac_compiler_gnu=$ac_cv_c_compiler_gnu
23953
23954 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000023955 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000023956else
23957 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023958
Reid Spencer777ce172004-09-20 04:09:56 +000023959 /* confdefs.h. */
23960_ACEOF
23961cat confdefs.h >>conftest.$ac_ext
23962cat >>conftest.$ac_ext <<_ACEOF
23963/* end confdefs.h. */
23964
John Criswell7a73b802003-06-30 21:59:07 +000023965#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000023966#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000023967#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000023968
23969int
23970main ()
23971{
John Criswell7a73b802003-06-30 21:59:07 +000023972
23973 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000023974 fd = creat ("foo",0777);
23975 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23976 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000023977 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000023978 ;
23979 return 0;
23980}
John Criswell7a73b802003-06-30 21:59:07 +000023981_ACEOF
23982rm -f conftest$ac_exeext
23983if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23984 (eval $ac_link) 2>&5
23985 ac_status=$?
23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23989 (eval $ac_try) 2>&5
23990 ac_status=$?
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); }; }; then
23993 ac_cv_func_mmap_file=yes
23994else
23995 echo "$as_me: program exited with status $ac_status" >&5
23996echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023997sed 's/^/| /' conftest.$ac_ext >&5
23998
John Criswell7a73b802003-06-30 21:59:07 +000023999( exit $ac_status )
24000ac_cv_func_mmap_file=no
24001fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024002rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024003fi
24004 ac_ext=c
24005ac_cpp='$CPP $CPPFLAGS'
24006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24008ac_compiler_gnu=$ac_cv_c_compiler_gnu
24009
24010
24011fi
24012echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
24013echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
24014if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000024015
24016cat >>confdefs.h <<\_ACEOF
24017#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000024018_ACEOF
24019
24020 MMAP_FILE=yes
24021
24022fi
24023
Brian Gaeke26be9c52004-01-13 06:43:16 +000024024if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000024025then
John Criswellf3ecf3a2004-05-27 00:57:50 +000024026 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
24027echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000024028fi
24029echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
24030echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
24031if test "${ac_cv_header_mmap_anon+set}" = set; then
24032 echo $ECHO_N "(cached) $ECHO_C" >&6
24033else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024034 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000024035ac_cpp='$CPP $CPPFLAGS'
24036ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24037ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24038ac_compiler_gnu=$ac_cv_c_compiler_gnu
24039
24040 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024041/* confdefs.h. */
24042_ACEOF
24043cat confdefs.h >>conftest.$ac_ext
24044cat >>conftest.$ac_ext <<_ACEOF
24045/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024046#include <sys/mman.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000024047#include <unistd.h>
24048#include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000024049int
24050main ()
24051{
24052mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
24053 ;
24054 return 0;
24055}
24056_ACEOF
24057rm -f conftest.$ac_objext
24058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024059 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024060 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024061 grep -v '^ *+' conftest.er1 >conftest.err
24062 rm -f conftest.er1
24063 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24065 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024066 { ac_try='test -z "$ac_c_werror_flag"
24067 || test ! -s conftest.err'
24068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24069 (eval $ac_try) 2>&5
24070 ac_status=$?
24071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24072 (exit $ac_status); }; } &&
24073 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000024074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24075 (eval $ac_try) 2>&5
24076 ac_status=$?
24077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24078 (exit $ac_status); }; }; then
24079 ac_cv_header_mmap_anon=yes
24080else
24081 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024082sed 's/^/| /' conftest.$ac_ext >&5
24083
John Criswell7a73b802003-06-30 21:59:07 +000024084ac_cv_header_mmap_anon=no
24085fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024086rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024087 ac_ext=c
24088ac_cpp='$CPP $CPPFLAGS'
24089ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24090ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24091ac_compiler_gnu=$ac_cv_c_compiler_gnu
24092
24093
24094fi
24095echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
24096echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
24097if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000024098
24099cat >>confdefs.h <<\_ACEOF
24100#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000024101_ACEOF
24102
24103fi
24104
24105echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24106echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
24107if test "${ac_cv_type_signal+set}" = set; then
24108 echo $ECHO_N "(cached) $ECHO_C" >&6
24109else
24110 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024111/* confdefs.h. */
24112_ACEOF
24113cat confdefs.h >>conftest.$ac_ext
24114cat >>conftest.$ac_ext <<_ACEOF
24115/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000024116#include <sys/types.h>
24117#include <signal.h>
24118#ifdef signal
24119# undef signal
24120#endif
24121#ifdef __cplusplus
24122extern "C" void (*signal (int, void (*)(int)))(int);
24123#else
24124void (*signal ()) ();
24125#endif
24126
John Criswell7a73b802003-06-30 21:59:07 +000024127int
24128main ()
24129{
24130int i;
24131 ;
24132 return 0;
24133}
24134_ACEOF
24135rm -f conftest.$ac_objext
24136if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024137 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024138 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024139 grep -v '^ *+' conftest.er1 >conftest.err
24140 rm -f conftest.er1
24141 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24143 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024144 { ac_try='test -z "$ac_c_werror_flag"
24145 || test ! -s conftest.err'
24146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24147 (eval $ac_try) 2>&5
24148 ac_status=$?
24149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24150 (exit $ac_status); }; } &&
24151 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000024152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24153 (eval $ac_try) 2>&5
24154 ac_status=$?
24155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24156 (exit $ac_status); }; }; then
24157 ac_cv_type_signal=void
24158else
24159 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024160sed 's/^/| /' conftest.$ac_ext >&5
24161
John Criswell7a73b802003-06-30 21:59:07 +000024162ac_cv_type_signal=int
24163fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024165fi
24166echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24167echo "${ECHO_T}$ac_cv_type_signal" >&6
24168
24169cat >>confdefs.h <<_ACEOF
24170#define RETSIGTYPE $ac_cv_type_signal
24171_ACEOF
24172
24173
24174
24175
24176
24177
24178
Brian Gaekef5261472004-02-20 06:40:57 +000024179
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000024180
John Criswelld6621562004-06-07 14:26:24 +000024181
24182
John Criswell7ed43ad2004-07-19 16:12:29 +000024183for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000024184do
24185as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24186echo "$as_me:$LINENO: checking for $ac_func" >&5
24187echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24188if eval "test \"\${$as_ac_var+set}\" = set"; then
24189 echo $ECHO_N "(cached) $ECHO_C" >&6
24190else
24191 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024192/* confdefs.h. */
24193_ACEOF
24194cat confdefs.h >>conftest.$ac_ext
24195cat >>conftest.$ac_ext <<_ACEOF
24196/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024197/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24199#define $ac_func innocuous_$ac_func
24200
John Criswell7a73b802003-06-30 21:59:07 +000024201/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000024202 which can conflict with char $ac_func (); below.
24203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24204 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024205
John Criswell0c38eaf2003-09-10 15:17:25 +000024206#ifdef __STDC__
24207# include <limits.h>
24208#else
24209# include <assert.h>
24210#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000024211
24212#undef $ac_func
24213
John Criswell7a73b802003-06-30 21:59:07 +000024214/* Override any gcc2 internal prototype to avoid an error. */
24215#ifdef __cplusplus
24216extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000024217{
John Criswell7a73b802003-06-30 21:59:07 +000024218#endif
24219/* We use char because int might match the return type of a gcc2
24220 builtin and then its argument prototype would still apply. */
24221char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000024222/* The GNU C library defines this for functions which it implements
24223 to always fail with ENOSYS. Some functions are actually named
24224 something starting with __ and the normal name is an alias. */
24225#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24226choke me
24227#else
John Criswell0c38eaf2003-09-10 15:17:25 +000024228char (*f) () = $ac_func;
24229#endif
24230#ifdef __cplusplus
24231}
John Criswell7a73b802003-06-30 21:59:07 +000024232#endif
24233
John Criswell0c38eaf2003-09-10 15:17:25 +000024234int
24235main ()
24236{
24237return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000024238 ;
24239 return 0;
24240}
24241_ACEOF
24242rm -f conftest.$ac_objext conftest$ac_exeext
24243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024244 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024245 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024246 grep -v '^ *+' conftest.er1 >conftest.err
24247 rm -f conftest.er1
24248 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24250 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024251 { ac_try='test -z "$ac_c_werror_flag"
24252 || test ! -s conftest.err'
24253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24254 (eval $ac_try) 2>&5
24255 ac_status=$?
24256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24257 (exit $ac_status); }; } &&
24258 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24260 (eval $ac_try) 2>&5
24261 ac_status=$?
24262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24263 (exit $ac_status); }; }; then
24264 eval "$as_ac_var=yes"
24265else
24266 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024267sed 's/^/| /' conftest.$ac_ext >&5
24268
John Criswell7a73b802003-06-30 21:59:07 +000024269eval "$as_ac_var=no"
24270fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024271rm -f conftest.err conftest.$ac_objext \
24272 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024273fi
24274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24275echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24276if test `eval echo '${'$as_ac_var'}'` = yes; then
24277 cat >>confdefs.h <<_ACEOF
24278#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24279_ACEOF
24280
24281fi
24282done
24283
John Criswell7a73b802003-06-30 21:59:07 +000024284echo "$as_me:$LINENO: checking for mprotect" >&5
24285echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
24286if test "${ac_cv_func_mprotect+set}" = set; then
24287 echo $ECHO_N "(cached) $ECHO_C" >&6
24288else
24289 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024290/* confdefs.h. */
24291_ACEOF
24292cat confdefs.h >>conftest.$ac_ext
24293cat >>conftest.$ac_ext <<_ACEOF
24294/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024295/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
24296 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24297#define mprotect innocuous_mprotect
24298
John Criswell7a73b802003-06-30 21:59:07 +000024299/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000024300 which can conflict with char mprotect (); below.
24301 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24302 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024303
John Criswell0c38eaf2003-09-10 15:17:25 +000024304#ifdef __STDC__
24305# include <limits.h>
24306#else
24307# include <assert.h>
24308#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000024309
24310#undef mprotect
24311
John Criswell7a73b802003-06-30 21:59:07 +000024312/* Override any gcc2 internal prototype to avoid an error. */
24313#ifdef __cplusplus
24314extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000024315{
John Criswell7a73b802003-06-30 21:59:07 +000024316#endif
24317/* We use char because int might match the return type of a gcc2
24318 builtin and then its argument prototype would still apply. */
24319char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000024320/* The GNU C library defines this for functions which it implements
24321 to always fail with ENOSYS. Some functions are actually named
24322 something starting with __ and the normal name is an alias. */
24323#if defined (__stub_mprotect) || defined (__stub___mprotect)
24324choke me
24325#else
John Criswell0c38eaf2003-09-10 15:17:25 +000024326char (*f) () = mprotect;
24327#endif
24328#ifdef __cplusplus
24329}
John Criswell7a73b802003-06-30 21:59:07 +000024330#endif
24331
John Criswell0c38eaf2003-09-10 15:17:25 +000024332int
24333main ()
24334{
24335return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000024336 ;
24337 return 0;
24338}
24339_ACEOF
24340rm -f conftest.$ac_objext conftest$ac_exeext
24341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024342 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024343 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024344 grep -v '^ *+' conftest.er1 >conftest.err
24345 rm -f conftest.er1
24346 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24348 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024349 { ac_try='test -z "$ac_c_werror_flag"
24350 || test ! -s conftest.err'
24351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24352 (eval $ac_try) 2>&5
24353 ac_status=$?
24354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24355 (exit $ac_status); }; } &&
24356 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24358 (eval $ac_try) 2>&5
24359 ac_status=$?
24360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24361 (exit $ac_status); }; }; then
24362 ac_cv_func_mprotect=yes
24363else
24364 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024365sed 's/^/| /' conftest.$ac_ext >&5
24366
John Criswell7a73b802003-06-30 21:59:07 +000024367ac_cv_func_mprotect=no
24368fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024369rm -f conftest.err conftest.$ac_objext \
24370 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024371fi
24372echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
24373echo "${ECHO_T}$ac_cv_func_mprotect" >&6
24374if test $ac_cv_func_mprotect = yes; then
24375 :
24376else
24377 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
24378echo "$as_me: error: Function mprotect() required but not found" >&2;}
24379 { (exit 1); exit 1; }; }
24380fi
24381
24382
John Criswellb13092b2003-07-22 21:00:24 +000024383
Brian Gaekeadfe28d2004-07-21 03:50:25 +000024384 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
24385echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000024386 ac_ext=c
24387ac_cpp='$CPP $CPPFLAGS'
24388ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24389ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24390ac_compiler_gnu=$ac_cv_c_compiler_gnu
24391
Brian Gaekef91a15c2003-11-18 06:20:41 +000024392 oldcflags="$CFLAGS"
24393 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000024394 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000024395/* confdefs.h. */
24396_ACEOF
24397cat confdefs.h >>conftest.$ac_ext
24398cat >>conftest.$ac_ext <<_ACEOF
24399/* end confdefs.h. */
24400
24401int
24402main ()
24403{
Brian Gaekef91a15c2003-11-18 06:20:41 +000024404int main() { return 0; }
Reid Spencer777ce172004-09-20 04:09:56 +000024405 ;
24406 return 0;
24407}
John Criswellcb7a1eb2003-11-17 19:46:02 +000024408_ACEOF
24409rm -f conftest.$ac_objext conftest$ac_exeext
24410if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024411 (eval $ac_link) 2>conftest.er1
John Criswellcb7a1eb2003-11-17 19:46:02 +000024412 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024413 grep -v '^ *+' conftest.er1 >conftest.err
24414 rm -f conftest.er1
24415 cat conftest.err >&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000024416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24417 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024418 { ac_try='test -z "$ac_c_werror_flag"
24419 || test ! -s conftest.err'
24420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24421 (eval $ac_try) 2>&5
24422 ac_status=$?
24423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); }; } &&
24425 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000024426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24427 (eval $ac_try) 2>&5
24428 ac_status=$?
24429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24430 (exit $ac_status); }; }; then
24431 ac_cv_link_use_r=yes
24432else
24433 echo "$as_me: failed program was:" >&5
24434sed 's/^/| /' conftest.$ac_ext >&5
24435
Brian Gaekef91a15c2003-11-18 06:20:41 +000024436ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000024437fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024438rm -f conftest.err conftest.$ac_objext \
24439 conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000024440 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000024441 ac_ext=c
24442ac_cpp='$CPP $CPPFLAGS'
24443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24445ac_compiler_gnu=$ac_cv_c_compiler_gnu
24446
Brian Gaekeadfe28d2004-07-21 03:50:25 +000024447 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
24448echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000024449 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000024450 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000024451
24452cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000024453#define HAVE_LINK_R 1
24454_ACEOF
24455
24456 fi
24457
24458
John Criswell7a73b802003-06-30 21:59:07 +000024459# Check whether --enable-optimized or --disable-optimized was given.
24460if test "${enable_optimized+set}" = set; then
24461 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000024462
24463else
John Criswellb13092b2003-07-22 21:00:24 +000024464 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000024465fi;
John Criswellb13092b2003-07-22 21:00:24 +000024466if test ${enableval} = "no"
24467then
24468 ENABLE_OPTIMIZED=
24469
24470else
24471 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
24472
24473fi
24474
John Criswellb13092b2003-07-22 21:00:24 +000024475# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000024476if test "${enable_jit+set}" = set; then
24477 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000024478
24479else
John Criswellc78022e2003-07-29 19:11:58 +000024480 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000024481fi;
John Criswellb13092b2003-07-22 21:00:24 +000024482if test ${enableval} = "no"
24483then
24484 JIT=
24485
24486else
John Criswellc78022e2003-07-29 19:11:58 +000024487 case $target in
24488 *i*86*)
24489 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000024490
John Criswellc78022e2003-07-29 19:11:58 +000024491 ;;
24492 *sparc*)
24493 JIT=TARGET_HAS_JIT=1
24494
24495 ;;
24496 *)
24497 JIT=
24498
24499 ;;
24500 esac
John Criswellb13092b2003-07-22 21:00:24 +000024501fi
John Criswell7a73b802003-06-30 21:59:07 +000024502
24503
John Criswell7a73b802003-06-30 21:59:07 +000024504# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
24505if test "${with_llvmgccdir+set}" = set; then
24506 withval="$with_llvmgccdir"
24507 LLVMGCCDIR=$withval
24508
24509fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000024510echo "$as_me:$LINENO: checking for llvm-gcc" >&5
24511echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
24512LLVM_GCC_CHECK=no
24513if test -d "$LLVMGCCDIR"
24514then
24515 if test -x "$LLVMGCCDIR/bin/gcc"
24516 then
24517 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
24518 fi
24519fi
24520llvmgccwarn=no
24521echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
24522echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
24523if test "$LLVM_GCC_CHECK" = "no"
24524then
24525 llvmgccwarn=yes
24526fi
Brian Gaekef3b24102003-11-16 18:38:14 +000024527echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
24528echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
24529LLVM_GCC_SANE=no
24530if test -x "$LLVM_GCC_CHECK"
24531then
24532 cp /dev/null conftest.c
24533 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
24534 if test $? -eq 0
24535 then
24536 LLVM_GCC_SANE=yes
24537 fi
24538 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000024539 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000024540 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000024541
24542 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000024543 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000024544
Brian Gaekef3b24102003-11-16 18:38:14 +000024545fi
24546echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
24547echo "${ECHO_T}$LLVM_GCC_SANE" >&6
24548if test "$LLVM_GCC_SANE" = "no"
24549then
24550 llvmgccwarn=yes
24551fi
24552
Brian Gaeke554831c2004-01-21 19:39:29 +000024553echo "$as_me:$LINENO: checking for shared library suffix" >&5
24554echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
Reid Spencer2e89ae22004-09-20 03:06:28 +000024555eval "SHLIBEXT=$shrext_cmds"
Brian Gaeke554831c2004-01-21 19:39:29 +000024556echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
24557echo "${ECHO_T}$SHLIBEXT" >&6
24558SHLIBEXT=$SHLIBEXT
24559
24560
24561cat >>confdefs.h <<_ACEOF
24562#define SHLIBEXT "$SHLIBEXT"
24563_ACEOF
24564
24565
Reid Spencere9de0912004-08-20 09:03:57 +000024566# Translate the various configuration directories and other basic
24567# information into substitutions that will end up in config.h.in so
24568# that these configured values can be hard-wired into a program.
24569eval LLVM_PREFIX="${prefix}";
24570eval LLVM_BINDIR="${prefix}/bin";
24571eval LLVM_LIBDIR="${prefix}/lib";
24572eval LLVM_DATADIR="${prefix}/data";
24573eval LLVM_DOCSDIR="${prefix}/docs";
24574eval LLVM_ETCDIR="${prefix}/etc";
24575eval LLVM_INCLUDEDIR="${prefix}/include";
24576eval LLVM_INFODIR="${prefix}/info";
24577eval LLVM_MANDIR="${prefix}/man";
24578LLVM_CONFIGTIME=`date`
24579
24580
24581
24582
24583
24584
24585
24586
24587
24588
24589
24590cat >>confdefs.h <<_ACEOF
24591#define LLVM_PREFIX "$LLVM_PREFIX"
24592_ACEOF
24593
24594
24595cat >>confdefs.h <<_ACEOF
24596#define LLVM_BINDIR "$LLVM_BINDIR"
24597_ACEOF
24598
24599
24600cat >>confdefs.h <<_ACEOF
24601#define LLVM_LIBDIR "$LLVM_LIBDIR"
24602_ACEOF
24603
24604
24605cat >>confdefs.h <<_ACEOF
24606#define LLVM_DATADIR "$LLVM_DATADIR"
24607_ACEOF
24608
24609
24610cat >>confdefs.h <<_ACEOF
24611#define LLVM_DATADIR "$LLVM_DOCSDIR"
24612_ACEOF
24613
24614
24615cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000024616#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000024617_ACEOF
24618
24619
24620cat >>confdefs.h <<_ACEOF
24621#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
24622_ACEOF
24623
24624
24625cat >>confdefs.h <<_ACEOF
24626#define LLVM_INFODIR "$LLVM_INFODIR"
24627_ACEOF
24628
24629
24630cat >>confdefs.h <<_ACEOF
24631#define LLVM_MANDIR "$LLVM_MANDIR"
24632_ACEOF
24633
24634
24635cat >>confdefs.h <<_ACEOF
24636#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
24637_ACEOF
24638
24639
John Criswell7a73b802003-06-30 21:59:07 +000024640cat >confcache <<\_ACEOF
24641# This file is a shell script that caches the results of configure
24642# tests run on this system so they can be shared between configure
24643# scripts and configure runs, see configure's option --config-cache.
24644# It is not useful on other systems. If it contains results you don't
24645# want to keep, you may remove or edit it.
24646#
24647# config.status only pays attention to the cache file if you give it
24648# the --recheck option to rerun configure.
24649#
John Criswell0c38eaf2003-09-10 15:17:25 +000024650# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000024651# loading this file, other *unset* `ac_cv_foo' will be assigned the
24652# following values.
24653
24654_ACEOF
24655
24656# The following way of writing the cache mishandles newlines in values,
24657# but we know of no workaround that is simple, portable, and efficient.
24658# So, don't put newlines in cache variables' values.
24659# Ultrix sh set writes to stderr and can't be redirected directly,
24660# and sets the high bit in the cache file unless we assign to the vars.
24661{
24662 (set) 2>&1 |
24663 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24664 *ac_space=\ *)
24665 # `set' does not quote correctly, so add quotes (double-quote
24666 # substitution turns \\\\ into \\, and sed turns \\ into \).
24667 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024668 "s/'/'\\\\''/g;
24669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000024670 ;;
24671 *)
24672 # `set' quotes correctly as required by POSIX, so do not add quotes.
24673 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024674 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000024675 ;;
24676 esac;
24677} |
24678 sed '
24679 t clear
24680 : clear
24681 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24682 t end
24683 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24684 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000024685if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000024686 if test -w $cache_file; then
24687 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24688 cat confcache >$cache_file
24689 else
24690 echo "not updating unwritable cache $cache_file"
24691 fi
24692fi
24693rm -f confcache
24694
24695test "x$prefix" = xNONE && prefix=$ac_default_prefix
24696# Let make expand exec_prefix.
24697test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24698
24699# VPATH may cause trouble with some makes, so we remove $(srcdir),
24700# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24701# trailing colons and then remove the whole line if VPATH becomes empty
24702# (actually we leave an empty line to preserve line numbers).
24703if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024704 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000024705s/:*\$(srcdir):*/:/;
24706s/:*\${srcdir}:*/:/;
24707s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024708s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000024709s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024710s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000024711}'
24712fi
24713
24714DEFS=-DHAVE_CONFIG_H
24715
John Criswell0c38eaf2003-09-10 15:17:25 +000024716ac_libobjs=
24717ac_ltlibobjs=
24718for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24719 # 1. Remove the extension, and $U if already installed.
24720 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000024721 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024722 # 2. Add them.
24723 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24724 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24725done
24726LIBOBJS=$ac_libobjs
24727
24728LTLIBOBJS=$ac_ltlibobjs
24729
24730
John Criswell7a73b802003-06-30 21:59:07 +000024731
24732: ${CONFIG_STATUS=./config.status}
24733ac_clean_files_save=$ac_clean_files
24734ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24735{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24736echo "$as_me: creating $CONFIG_STATUS" >&6;}
24737cat >$CONFIG_STATUS <<_ACEOF
24738#! $SHELL
24739# Generated by $as_me.
24740# Run this file to recreate the current configuration.
24741# Compiler output produced by configure, useful for debugging
24742# configure, is in config.log if it exists.
24743
24744debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000024745ac_cs_recheck=false
24746ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000024747SHELL=\${CONFIG_SHELL-$SHELL}
24748_ACEOF
24749
24750cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024751## --------------------- ##
24752## M4sh Initialization. ##
24753## --------------------- ##
24754
24755# Be Bourne compatible
24756if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24757 emulate sh
24758 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024759 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24760 # is contrary to our usage. Disable this feature.
24761 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000024762elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24763 set -o posix
24764fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024765DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000024766
John Criswell7a73b802003-06-30 21:59:07 +000024767# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024768if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024769 as_unset=unset
24770else
24771 as_unset=false
24772fi
24773
John Criswell0c38eaf2003-09-10 15:17:25 +000024774
24775# Work around bugs in pre-3.0 UWIN ksh.
24776$as_unset ENV MAIL MAILPATH
24777PS1='$ '
24778PS2='> '
24779PS4='+ '
24780
24781# NLS nuisances.
24782for as_var in \
24783 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24784 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24785 LC_TELEPHONE LC_TIME
24786do
Reid Spencer2706f8c2004-09-19 23:53:36 +000024787 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000024788 eval $as_var=C; export $as_var
24789 else
24790 $as_unset $as_var
24791 fi
24792done
24793
24794# Required to use basename.
24795if expr a : '\(a\)' >/dev/null 2>&1; then
24796 as_expr=expr
24797else
24798 as_expr=false
24799fi
24800
24801if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24802 as_basename=basename
24803else
24804 as_basename=false
24805fi
John Criswell7a73b802003-06-30 21:59:07 +000024806
24807
24808# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000024809as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000024810$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24811 X"$0" : 'X\(//\)$' \| \
24812 X"$0" : 'X\(/\)$' \| \
24813 . : '\(.\)' 2>/dev/null ||
24814echo X/"$0" |
24815 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24816 /^X\/\(\/\/\)$/{ s//\1/; q; }
24817 /^X\/\(\/\).*/{ s//\1/; q; }
24818 s/.*/./; q'`
24819
John Criswell0c38eaf2003-09-10 15:17:25 +000024820
John Criswell7a73b802003-06-30 21:59:07 +000024821# PATH needs CR, and LINENO needs CR and PATH.
24822# Avoid depending upon Character Ranges.
24823as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24824as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24825as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24826as_cr_digits='0123456789'
24827as_cr_alnum=$as_cr_Letters$as_cr_digits
24828
24829# The user is always right.
24830if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024831 echo "#! /bin/sh" >conf$$.sh
24832 echo "exit 0" >>conf$$.sh
24833 chmod +x conf$$.sh
24834 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024835 PATH_SEPARATOR=';'
24836 else
24837 PATH_SEPARATOR=:
24838 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000024839 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000024840fi
24841
24842
24843 as_lineno_1=$LINENO
24844 as_lineno_2=$LINENO
24845 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24846 test "x$as_lineno_1" != "x$as_lineno_2" &&
24847 test "x$as_lineno_3" = "x$as_lineno_2" || {
24848 # Find who we are. Look in the path if we contain no path at all
24849 # relative or not.
24850 case $0 in
24851 *[\\/]* ) as_myself=$0 ;;
24852 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24853for as_dir in $PATH
24854do
24855 IFS=$as_save_IFS
24856 test -z "$as_dir" && as_dir=.
24857 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24858done
24859
24860 ;;
24861 esac
24862 # We did not find ourselves, most probably we were run as `sh COMMAND'
24863 # in which case we are not to be found in the path.
24864 if test "x$as_myself" = x; then
24865 as_myself=$0
24866 fi
24867 if test ! -f "$as_myself"; then
24868 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24869echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24870 { (exit 1); exit 1; }; }
24871 fi
24872 case $CONFIG_SHELL in
24873 '')
24874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24875for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24876do
24877 IFS=$as_save_IFS
24878 test -z "$as_dir" && as_dir=.
24879 for as_base in sh bash ksh sh5; do
24880 case $as_dir in
24881 /*)
24882 if ("$as_dir/$as_base" -c '
24883 as_lineno_1=$LINENO
24884 as_lineno_2=$LINENO
24885 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24886 test "x$as_lineno_1" != "x$as_lineno_2" &&
24887 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024888 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24889 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000024890 CONFIG_SHELL=$as_dir/$as_base
24891 export CONFIG_SHELL
24892 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24893 fi;;
24894 esac
24895 done
24896done
24897;;
24898 esac
24899
24900 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24901 # uniformly replaced by the line number. The first 'sed' inserts a
24902 # line-number line before each line; the second 'sed' does the real
24903 # work. The second script uses 'N' to pair each line-number line
24904 # with the numbered line, and appends trailing '-' during
24905 # substitution so that $LINENO is not a special case at line end.
24906 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24907 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24908 sed '=' <$as_myself |
24909 sed '
24910 N
24911 s,$,-,
24912 : loop
24913 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24914 t loop
24915 s,-$,,
24916 s,^['$as_cr_digits']*\n,,
24917 ' >$as_me.lineno &&
24918 chmod +x $as_me.lineno ||
24919 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24920echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24921 { (exit 1); exit 1; }; }
24922
24923 # Don't try to exec as it changes $[0], causing all sort of problems
24924 # (the dirname of $[0] is not the place where we might find the
24925 # original and so on. Autoconf is especially sensible to this).
24926 . ./$as_me.lineno
24927 # Exit status is that of the last command.
24928 exit
24929}
24930
24931
24932case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24933 *c*,-n*) ECHO_N= ECHO_C='
24934' ECHO_T=' ' ;;
24935 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24936 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24937esac
24938
24939if expr a : '\(a\)' >/dev/null 2>&1; then
24940 as_expr=expr
24941else
24942 as_expr=false
24943fi
24944
24945rm -f conf$$ conf$$.exe conf$$.file
24946echo >conf$$.file
24947if ln -s conf$$.file conf$$ 2>/dev/null; then
24948 # We could just check for DJGPP; but this test a) works b) is more generic
24949 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24950 if test -f conf$$.exe; then
24951 # Don't use ln at all; we don't have any links
24952 as_ln_s='cp -p'
24953 else
24954 as_ln_s='ln -s'
24955 fi
24956elif ln conf$$.file conf$$ 2>/dev/null; then
24957 as_ln_s=ln
24958else
24959 as_ln_s='cp -p'
24960fi
24961rm -f conf$$ conf$$.exe conf$$.file
24962
John Criswell0c38eaf2003-09-10 15:17:25 +000024963if mkdir -p . 2>/dev/null; then
24964 as_mkdir_p=:
24965else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024966 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000024967 as_mkdir_p=false
24968fi
24969
John Criswell7a73b802003-06-30 21:59:07 +000024970as_executable_p="test -f"
24971
24972# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024973as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024974
24975# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024976as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024977
24978
24979# IFS
24980# We need space, tab and new line, in precisely that order.
24981as_nl='
24982'
24983IFS=" $as_nl"
24984
24985# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000024986$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000024987
24988exec 6>&1
24989
24990# Open the log real soon, to keep \$[0] and so on meaningful, and to
24991# report actual input values of CONFIG_FILES etc. instead of their
24992# values after options handling. Logging --version etc. is OK.
24993exec 5>>config.log
24994{
24995 echo
24996 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24997## Running $as_me. ##
24998_ASBOX
24999} >&5
25000cat >&5 <<_CSEOF
25001
Reid Spencerabec8f92004-10-27 23:03:44 +000025002This file was extended by llvm $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000025003generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000025004
25005 CONFIG_FILES = $CONFIG_FILES
25006 CONFIG_HEADERS = $CONFIG_HEADERS
25007 CONFIG_LINKS = $CONFIG_LINKS
25008 CONFIG_COMMANDS = $CONFIG_COMMANDS
25009 $ $0 $@
25010
25011_CSEOF
25012echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25013echo >&5
25014_ACEOF
25015
25016# Files that config.status was made for.
25017if test -n "$ac_config_files"; then
25018 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25019fi
25020
25021if test -n "$ac_config_headers"; then
25022 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25023fi
25024
25025if test -n "$ac_config_links"; then
25026 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25027fi
25028
25029if test -n "$ac_config_commands"; then
25030 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25031fi
25032
25033cat >>$CONFIG_STATUS <<\_ACEOF
25034
25035ac_cs_usage="\
25036\`$as_me' instantiates files from templates according to the
25037current configuration.
25038
25039Usage: $0 [OPTIONS] [FILE]...
25040
25041 -h, --help print this help, then exit
25042 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000025043 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000025044 -d, --debug don't remove temporary files
25045 --recheck update $as_me by reconfiguring in the same conditions
25046 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000025047 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000025048 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000025049 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000025050
25051Configuration files:
25052$config_files
25053
25054Configuration headers:
25055$config_headers
25056
Reid Spencerde8c47f2004-08-29 19:35:28 +000025057Configuration links:
25058$config_links
25059
John Criswellc764fbc2003-09-06 15:17:13 +000025060Configuration commands:
25061$config_commands
25062
John Criswell7a73b802003-06-30 21:59:07 +000025063Report bugs to <bug-autoconf@gnu.org>."
25064_ACEOF
25065
25066cat >>$CONFIG_STATUS <<_ACEOF
25067ac_cs_version="\\
Reid Spencerabec8f92004-10-27 23:03:44 +000025068llvm config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000025069configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000025070 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25071
Reid Spencer2706f8c2004-09-19 23:53:36 +000025072Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000025073This config.status script is free software; the Free Software Foundation
25074gives unlimited permission to copy, distribute and modify it."
25075srcdir=$srcdir
25076INSTALL="$INSTALL"
25077_ACEOF
25078
25079cat >>$CONFIG_STATUS <<\_ACEOF
25080# If no file are specified by the user, then we need to provide default
25081# value. By we need to know if files were specified by the user.
25082ac_need_defaults=:
25083while test $# != 0
25084do
25085 case $1 in
25086 --*=*)
25087 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25088 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025089 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000025090 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000025091 -*)
25092 ac_option=$1
25093 ac_optarg=$2
25094 ac_shift=shift
25095 ;;
John Criswell7a73b802003-06-30 21:59:07 +000025096 *) # This is not an option, so the user has probably given explicit
25097 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000025098 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000025099 ac_need_defaults=false;;
25100 esac
25101
John Criswell0c38eaf2003-09-10 15:17:25 +000025102 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000025103 # Handling of the options.
25104_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000025105cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000025106 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25107 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000025108 --version | --vers* | -V )
25109 echo "$ac_cs_version"; exit 0 ;;
25110 --he | --h)
25111 # Conflict between --help and --header
25112 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25113Try \`$0 --help' for more information." >&5
25114echo "$as_me: error: ambiguous option: $1
25115Try \`$0 --help' for more information." >&2;}
25116 { (exit 1); exit 1; }; };;
25117 --help | --hel | -h )
25118 echo "$ac_cs_usage"; exit 0 ;;
25119 --debug | --d* | -d )
25120 debug=: ;;
25121 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000025122 $ac_shift
25123 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000025124 ac_need_defaults=false;;
25125 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000025126 $ac_shift
25127 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000025128 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000025129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25130 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25131 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000025132
25133 # This is an error.
25134 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25135Try \`$0 --help' for more information." >&5
25136echo "$as_me: error: unrecognized option: $1
25137Try \`$0 --help' for more information." >&2;}
25138 { (exit 1); exit 1; }; } ;;
25139
25140 *) ac_config_targets="$ac_config_targets $1" ;;
25141
25142 esac
25143 shift
25144done
25145
John Criswell0c38eaf2003-09-10 15:17:25 +000025146ac_configure_extra_args=
25147
25148if $ac_cs_silent; then
25149 exec 6>/dev/null
25150 ac_configure_extra_args="$ac_configure_extra_args --silent"
25151fi
25152
25153_ACEOF
25154cat >>$CONFIG_STATUS <<_ACEOF
25155if \$ac_cs_recheck; then
25156 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25157 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25158fi
25159
John Criswell7a73b802003-06-30 21:59:07 +000025160_ACEOF
25161
John Criswellc764fbc2003-09-06 15:17:13 +000025162cat >>$CONFIG_STATUS <<_ACEOF
25163#
25164# INIT-COMMANDS section.
25165#
John Criswell7a73b802003-06-30 21:59:07 +000025166
John Criswellc764fbc2003-09-06 15:17:13 +000025167${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
25168${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000025169${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025170${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025171${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025172${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
25173${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000025174${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
25175${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000025176${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Misha Brukman591edc62004-10-14 18:59:42 +000025177${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
Brian Gaekec45be042003-10-07 06:01:34 +000025178${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025179${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025180
25181_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025182
25183
25184
25185cat >>$CONFIG_STATUS <<\_ACEOF
25186for ac_config_target in $ac_config_targets
25187do
25188 case "$ac_config_target" in
25189 # Handling of arguments.
25190 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +000025191 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025192 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
25193 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025194 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025195 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025196 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025197 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
25198 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000025199 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
25200 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025201 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Misha Brukman591edc62004-10-14 18:59:42 +000025202 "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025203 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025204 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000025205 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000025206 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000025207 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
25208 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000025209 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
25210 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000025211 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25212echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25213 { (exit 1); exit 1; }; };;
25214 esac
25215done
25216
25217# If the user did not use the arguments to specify the items to instantiate,
25218# then the envvar interface is used. Set only those that are not.
25219# We use the long form for the default assignment because of an extremely
25220# bizarre bug on SunOS 4.1.3.
25221if $ac_need_defaults; then
25222 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25223 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000025224 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000025225 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000025226fi
25227
John Criswell0c38eaf2003-09-10 15:17:25 +000025228# Have a temporary directory for convenience. Make it in the build tree
25229# simply because there is no reason to put it here, and in addition,
25230# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000025231# Create a temporary directory, and hook for its removal unless debugging.
25232$debug ||
25233{
25234 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25235 trap '{ (exit 1); exit 1; }' 1 2 13 15
25236}
25237
25238# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000025239
John Criswell7a73b802003-06-30 21:59:07 +000025240{
John Criswell0c38eaf2003-09-10 15:17:25 +000025241 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000025242 test -n "$tmp" && test -d "$tmp"
25243} ||
25244{
John Criswell0c38eaf2003-09-10 15:17:25 +000025245 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000025246 (umask 077 && mkdir $tmp)
25247} ||
25248{
John Criswell0c38eaf2003-09-10 15:17:25 +000025249 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000025250 { (exit 1); exit 1; }
25251}
25252
25253_ACEOF
25254
25255cat >>$CONFIG_STATUS <<_ACEOF
25256
25257#
25258# CONFIG_FILES section.
25259#
25260
25261# No need to generate the scripts if there are no CONFIG_FILES.
25262# This happens for instance when ./config.status config.h
25263if test -n "\$CONFIG_FILES"; then
25264 # Protect against being on the right side of a sed subst in config.status.
25265 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25266 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25267s,@SHELL@,$SHELL,;t t
25268s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25269s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25270s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25271s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25272s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25273s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25274s,@exec_prefix@,$exec_prefix,;t t
25275s,@prefix@,$prefix,;t t
25276s,@program_transform_name@,$program_transform_name,;t t
25277s,@bindir@,$bindir,;t t
25278s,@sbindir@,$sbindir,;t t
25279s,@libexecdir@,$libexecdir,;t t
25280s,@datadir@,$datadir,;t t
25281s,@sysconfdir@,$sysconfdir,;t t
25282s,@sharedstatedir@,$sharedstatedir,;t t
25283s,@localstatedir@,$localstatedir,;t t
25284s,@libdir@,$libdir,;t t
25285s,@includedir@,$includedir,;t t
25286s,@oldincludedir@,$oldincludedir,;t t
25287s,@infodir@,$infodir,;t t
25288s,@mandir@,$mandir,;t t
25289s,@build_alias@,$build_alias,;t t
25290s,@host_alias@,$host_alias,;t t
25291s,@target_alias@,$target_alias,;t t
25292s,@DEFS@,$DEFS,;t t
25293s,@ECHO_C@,$ECHO_C,;t t
25294s,@ECHO_N@,$ECHO_N,;t t
25295s,@ECHO_T@,$ECHO_T,;t t
25296s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000025297s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025298s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25299s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25300s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25301s,@build@,$build,;t t
25302s,@build_cpu@,$build_cpu,;t t
25303s,@build_vendor@,$build_vendor,;t t
25304s,@build_os@,$build_os,;t t
25305s,@host@,$host,;t t
25306s,@host_cpu@,$host_cpu,;t t
25307s,@host_vendor@,$host_vendor,;t t
25308s,@host_os@,$host_os,;t t
25309s,@target@,$target,;t t
25310s,@target_cpu@,$target_cpu,;t t
25311s,@target_vendor@,$target_vendor,;t t
25312s,@target_os@,$target_os,;t t
25313s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025314s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000025315s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025316s,@CXX@,$CXX,;t t
25317s,@CXXFLAGS@,$CXXFLAGS,;t t
25318s,@LDFLAGS@,$LDFLAGS,;t t
25319s,@CPPFLAGS@,$CPPFLAGS,;t t
25320s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25321s,@EXEEXT@,$EXEEXT,;t t
25322s,@OBJEXT@,$OBJEXT,;t t
25323s,@CC@,$CC,;t t
25324s,@CFLAGS@,$CFLAGS,;t t
25325s,@ac_ct_CC@,$ac_ct_CC,;t t
25326s,@CPP@,$CPP,;t t
25327s,@ifGNUmake@,$ifGNUmake,;t t
25328s,@LEX@,$LEX,;t t
25329s,@LEXLIB@,$LEXLIB,;t t
25330s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000025331s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025332s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000025333s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000025334s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025335s,@LN_S@,$LN_S,;t t
25336s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000025337s,@AR@,$AR,;t t
25338s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025339s,@RANLIB@,$RANLIB,;t t
25340s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25341s,@STRIP@,$STRIP,;t t
25342s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000025343s,@CXXCPP@,$CXXCPP,;t t
25344s,@F77@,$F77,;t t
25345s,@FFLAGS@,$FFLAGS,;t t
25346s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025347s,@LIBTOOL@,$LIBTOOL,;t t
Reid Spencerad354c92004-10-25 08:18:47 +000025348s,@TAR@,$TAR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025349s,@DOT@,$DOT,;t t
25350s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000025351s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000025352s,@PYTHON@,$PYTHON,;t t
25353s,@QMTEST@,$QMTEST,;t t
Reid Spencer37130d22004-10-04 07:05:07 +000025354s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
25355s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
John Criswell0021c312004-02-13 21:57:29 +000025356s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025357s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025358s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025359s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025360s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000025361s,@LLVMCC1@,$LLVMCC1,;t t
25362s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000025363s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000025364s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
25365s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
25366s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
25367s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
25368s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
25369s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
25370s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
25371s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
25372s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
25373s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000025374s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000025375s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025376CEOF
25377
25378_ACEOF
25379
25380 cat >>$CONFIG_STATUS <<\_ACEOF
25381 # Split the substitutions into bite-sized pieces for seds with
25382 # small command number limits, like on Digital OSF/1 and HP-UX.
25383 ac_max_sed_lines=48
25384 ac_sed_frag=1 # Number of current file.
25385 ac_beg=1 # First line for current file.
25386 ac_end=$ac_max_sed_lines # Line after last line for current file.
25387 ac_more_lines=:
25388 ac_sed_cmds=
25389 while $ac_more_lines; do
25390 if test $ac_beg -gt 1; then
25391 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25392 else
25393 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25394 fi
25395 if test ! -s $tmp/subs.frag; then
25396 ac_more_lines=false
25397 else
25398 # The purpose of the label and of the branching condition is to
25399 # speed up the sed processing (if there are no `@' at all, there
25400 # is no need to browse any of the substitutions).
25401 # These are the two extra sed commands mentioned above.
25402 (echo ':t
25403 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25404 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000025405 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000025406 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025407 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000025408 fi
25409 ac_sed_frag=`expr $ac_sed_frag + 1`
25410 ac_beg=$ac_end
25411 ac_end=`expr $ac_end + $ac_max_sed_lines`
25412 fi
25413 done
25414 if test -z "$ac_sed_cmds"; then
25415 ac_sed_cmds=cat
25416 fi
25417fi # test -n "$CONFIG_FILES"
25418
25419_ACEOF
25420cat >>$CONFIG_STATUS <<\_ACEOF
25421for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25422 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25423 case $ac_file in
25424 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000025425 cat >$tmp/stdin
25426 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25427 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025428 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025429 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025430 * ) ac_file_in=$ac_file.in ;;
25431 esac
25432
25433 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25434 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25435$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025436 X"$ac_file" : 'X\(//\)[^/]' \| \
25437 X"$ac_file" : 'X\(//\)$' \| \
25438 X"$ac_file" : 'X\(/\)' \| \
25439 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025440echo X"$ac_file" |
25441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25442 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25443 /^X\(\/\/\)$/{ s//\1/; q; }
25444 /^X\(\/\).*/{ s//\1/; q; }
25445 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025446 { if $as_mkdir_p; then
25447 mkdir -p "$ac_dir"
25448 else
25449 as_dir="$ac_dir"
25450 as_dirs=
25451 while test ! -d "$as_dir"; do
25452 as_dirs="$as_dir $as_dirs"
25453 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25454$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025455 X"$as_dir" : 'X\(//\)[^/]' \| \
25456 X"$as_dir" : 'X\(//\)$' \| \
25457 X"$as_dir" : 'X\(/\)' \| \
25458 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025459echo X"$as_dir" |
25460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25461 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25462 /^X\(\/\/\)$/{ s//\1/; q; }
25463 /^X\(\/\).*/{ s//\1/; q; }
25464 s/.*/./; q'`
25465 done
25466 test ! -n "$as_dirs" || mkdir $as_dirs
25467 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25468echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25469 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025470
25471 ac_builddir=.
25472
25473if test "$ac_dir" != .; then
25474 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25475 # A "../" for each directory in $ac_dir_suffix.
25476 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25477else
25478 ac_dir_suffix= ac_top_builddir=
25479fi
25480
25481case $srcdir in
25482 .) # No --srcdir option. We are building in place.
25483 ac_srcdir=.
25484 if test -z "$ac_top_builddir"; then
25485 ac_top_srcdir=.
25486 else
25487 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25488 fi ;;
25489 [\\/]* | ?:[\\/]* ) # Absolute path.
25490 ac_srcdir=$srcdir$ac_dir_suffix;
25491 ac_top_srcdir=$srcdir ;;
25492 *) # Relative path.
25493 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25494 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25495esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025496
25497# Do not use `cd foo && pwd` to compute absolute paths, because
25498# the directories may not exist.
25499case `pwd` in
25500.) ac_abs_builddir="$ac_dir";;
25501*)
25502 case "$ac_dir" in
25503 .) ac_abs_builddir=`pwd`;;
25504 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25505 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25506 esac;;
25507esac
25508case $ac_abs_builddir in
25509.) ac_abs_top_builddir=${ac_top_builddir}.;;
25510*)
25511 case ${ac_top_builddir}. in
25512 .) ac_abs_top_builddir=$ac_abs_builddir;;
25513 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25514 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25515 esac;;
25516esac
25517case $ac_abs_builddir in
25518.) ac_abs_srcdir=$ac_srcdir;;
25519*)
25520 case $ac_srcdir in
25521 .) ac_abs_srcdir=$ac_abs_builddir;;
25522 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25523 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25524 esac;;
25525esac
25526case $ac_abs_builddir in
25527.) ac_abs_top_srcdir=$ac_top_srcdir;;
25528*)
25529 case $ac_top_srcdir in
25530 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25531 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25532 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25533 esac;;
25534esac
John Criswell7a73b802003-06-30 21:59:07 +000025535
25536
25537 case $INSTALL in
25538 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25539 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25540 esac
25541
25542 if test x"$ac_file" != x-; then
25543 { echo "$as_me:$LINENO: creating $ac_file" >&5
25544echo "$as_me: creating $ac_file" >&6;}
25545 rm -f "$ac_file"
25546 fi
25547 # Let's still pretend it is `configure' which instantiates (i.e., don't
25548 # use $as_me), people would be surprised to read:
25549 # /* config.h. Generated by config.status. */
25550 if test x"$ac_file" = x-; then
25551 configure_input=
25552 else
25553 configure_input="$ac_file. "
25554 fi
25555 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000025556 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000025557
25558 # First look for the input files in the build tree, otherwise in the
25559 # src tree.
25560 ac_file_inputs=`IFS=:
25561 for f in $ac_file_in; do
25562 case $f in
25563 -) echo $tmp/stdin ;;
25564 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025565 # Absolute (can't be DOS-style, as IFS=:)
25566 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025567echo "$as_me: error: cannot find input file: $f" >&2;}
25568 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025569 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000025570 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000025571 if test -f "$f"; then
25572 # Build tree
25573 echo "$f"
25574 elif test -f "$srcdir/$f"; then
25575 # Source tree
25576 echo "$srcdir/$f"
25577 else
25578 # /dev/null tree
25579 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025580echo "$as_me: error: cannot find input file: $f" >&2;}
25581 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025582 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000025583 esac
25584 done` || { (exit 1); exit 1; }
25585_ACEOF
25586cat >>$CONFIG_STATUS <<_ACEOF
25587 sed "$ac_vpsub
25588$extrasub
25589_ACEOF
25590cat >>$CONFIG_STATUS <<\_ACEOF
25591:t
25592/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25593s,@configure_input@,$configure_input,;t t
25594s,@srcdir@,$ac_srcdir,;t t
25595s,@abs_srcdir@,$ac_abs_srcdir,;t t
25596s,@top_srcdir@,$ac_top_srcdir,;t t
25597s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25598s,@builddir@,$ac_builddir,;t t
25599s,@abs_builddir@,$ac_abs_builddir,;t t
25600s,@top_builddir@,$ac_top_builddir,;t t
25601s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25602s,@INSTALL@,$ac_INSTALL,;t t
25603" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25604 rm -f $tmp/stdin
25605 if test x"$ac_file" != x-; then
25606 mv $tmp/out $ac_file
25607 else
25608 cat $tmp/out
25609 rm -f $tmp/out
25610 fi
25611
25612done
25613_ACEOF
25614cat >>$CONFIG_STATUS <<\_ACEOF
25615
25616#
25617# CONFIG_HEADER section.
25618#
25619
25620# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25621# NAME is the cpp macro being defined and VALUE is the value it is being given.
25622#
25623# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025624ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25625ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000025626ac_dC=' '
25627ac_dD=',;t'
25628# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000025629ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000025630ac_uB='$,\1#\2define\3'
25631ac_uC=' '
25632ac_uD=',;t'
25633
25634for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25635 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25636 case $ac_file in
25637 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000025638 cat >$tmp/stdin
25639 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25640 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025641 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025642 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025643 * ) ac_file_in=$ac_file.in ;;
25644 esac
25645
25646 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25647echo "$as_me: creating $ac_file" >&6;}
25648
25649 # First look for the input files in the build tree, otherwise in the
25650 # src tree.
25651 ac_file_inputs=`IFS=:
25652 for f in $ac_file_in; do
25653 case $f in
25654 -) echo $tmp/stdin ;;
25655 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025656 # Absolute (can't be DOS-style, as IFS=:)
25657 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025658echo "$as_me: error: cannot find input file: $f" >&2;}
25659 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025660 # Do quote $f, to prevent DOS paths from being IFS'd.
25661 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000025662 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000025663 if test -f "$f"; then
25664 # Build tree
25665 echo "$f"
25666 elif test -f "$srcdir/$f"; then
25667 # Source tree
25668 echo "$srcdir/$f"
25669 else
25670 # /dev/null tree
25671 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025672echo "$as_me: error: cannot find input file: $f" >&2;}
25673 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025674 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000025675 esac
25676 done` || { (exit 1); exit 1; }
25677 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025678 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000025679
25680_ACEOF
25681
25682# Transform confdefs.h into two sed scripts, `conftest.defines' and
25683# `conftest.undefs', that substitutes the proper values into
25684# config.h.in to produce config.h. The first handles `#define'
25685# templates, and the second `#undef' templates.
25686# And first: Protect against being on the right side of a sed subst in
25687# config.status. Protect against being in an unquoted here document
25688# in config.status.
25689rm -f conftest.defines conftest.undefs
25690# Using a here document instead of a string reduces the quoting nightmare.
25691# Putting comments in sed scripts is not portable.
25692#
25693# `end' is used to avoid that the second main sed command (meant for
25694# 0-ary CPP macros) applies to n-ary macro definitions.
25695# See the Autoconf documentation for `clear'.
25696cat >confdef2sed.sed <<\_ACEOF
25697s/[\\&,]/\\&/g
25698s,[\\$`],\\&,g
25699t clear
25700: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000025701s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000025702t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000025703s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000025704: end
25705_ACEOF
25706# If some macros were called several times there might be several times
25707# the same #defines, which is useless. Nevertheless, we may not want to
25708# sort them, since we want the *last* AC-DEFINE to be honored.
25709uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25710sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25711rm -f confdef2sed.sed
25712
25713# This sed command replaces #undef with comments. This is necessary, for
25714# example, in the case of _POSIX_SOURCE, which is predefined and required
25715# on some systems where configure will not decide to define it.
25716cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000025717s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000025718_ACEOF
25719
25720# Break up conftest.defines because some shells have a limit on the size
25721# of here documents, and old seds have small limits too (100 cmds).
25722echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000025723echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025724echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25725echo ' :' >>$CONFIG_STATUS
25726rm -f conftest.tail
25727while grep . conftest.defines >/dev/null
25728do
25729 # Write a limited-size here document to $tmp/defines.sed.
25730 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25731 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025732 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025733 # Work around the forget-to-reset-the-flag bug.
25734 echo 't clr' >>$CONFIG_STATUS
25735 echo ': clr' >>$CONFIG_STATUS
25736 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25737 echo 'CEOF
25738 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25739 rm -f $tmp/in
25740 mv $tmp/out $tmp/in
25741' >>$CONFIG_STATUS
25742 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25743 rm -f conftest.defines
25744 mv conftest.tail conftest.defines
25745done
25746rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000025747echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025748echo >>$CONFIG_STATUS
25749
25750# Break up conftest.undefs because some shells have a limit on the size
25751# of here documents, and old seds have small limits too (100 cmds).
25752echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25753rm -f conftest.tail
25754while grep . conftest.undefs >/dev/null
25755do
25756 # Write a limited-size here document to $tmp/undefs.sed.
25757 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25758 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025759 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025760 # Work around the forget-to-reset-the-flag bug.
25761 echo 't clr' >>$CONFIG_STATUS
25762 echo ': clr' >>$CONFIG_STATUS
25763 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25764 echo 'CEOF
25765 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25766 rm -f $tmp/in
25767 mv $tmp/out $tmp/in
25768' >>$CONFIG_STATUS
25769 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25770 rm -f conftest.undefs
25771 mv conftest.tail conftest.undefs
25772done
25773rm -f conftest.undefs
25774
25775cat >>$CONFIG_STATUS <<\_ACEOF
25776 # Let's still pretend it is `configure' which instantiates (i.e., don't
25777 # use $as_me), people would be surprised to read:
25778 # /* config.h. Generated by config.status. */
25779 if test x"$ac_file" = x-; then
25780 echo "/* Generated by configure. */" >$tmp/config.h
25781 else
25782 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25783 fi
25784 cat $tmp/in >>$tmp/config.h
25785 rm -f $tmp/in
25786 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000025787 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025788 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25789echo "$as_me: $ac_file is unchanged" >&6;}
25790 else
25791 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25792$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025793 X"$ac_file" : 'X\(//\)[^/]' \| \
25794 X"$ac_file" : 'X\(//\)$' \| \
25795 X"$ac_file" : 'X\(/\)' \| \
25796 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025797echo X"$ac_file" |
25798 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25799 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25800 /^X\(\/\/\)$/{ s//\1/; q; }
25801 /^X\(\/\).*/{ s//\1/; q; }
25802 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025803 { if $as_mkdir_p; then
25804 mkdir -p "$ac_dir"
25805 else
25806 as_dir="$ac_dir"
25807 as_dirs=
25808 while test ! -d "$as_dir"; do
25809 as_dirs="$as_dir $as_dirs"
25810 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25811$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025812 X"$as_dir" : 'X\(//\)[^/]' \| \
25813 X"$as_dir" : 'X\(//\)$' \| \
25814 X"$as_dir" : 'X\(/\)' \| \
25815 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025816echo X"$as_dir" |
25817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25818 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25819 /^X\(\/\/\)$/{ s//\1/; q; }
25820 /^X\(\/\).*/{ s//\1/; q; }
25821 s/.*/./; q'`
25822 done
25823 test ! -n "$as_dirs" || mkdir $as_dirs
25824 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25825echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25826 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025827
25828 rm -f $ac_file
25829 mv $tmp/config.h $ac_file
25830 fi
25831 else
25832 cat $tmp/config.h
25833 rm -f $tmp/config.h
25834 fi
25835done
25836_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000025837cat >>$CONFIG_STATUS <<\_ACEOF
25838
25839#
Reid Spencerde8c47f2004-08-29 19:35:28 +000025840# CONFIG_LINKS section.
25841#
25842
25843for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25844 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25845 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25846
25847 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25848echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25849
25850 if test ! -r $srcdir/$ac_source; then
25851 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25852echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25853 { (exit 1); exit 1; }; }
25854 fi
25855 rm -f $ac_dest
25856
25857 # Make relative symlinks.
25858 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25859$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025860 X"$ac_dest" : 'X\(//\)[^/]' \| \
25861 X"$ac_dest" : 'X\(//\)$' \| \
25862 X"$ac_dest" : 'X\(/\)' \| \
25863 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025864echo X"$ac_dest" |
25865 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25866 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25867 /^X\(\/\/\)$/{ s//\1/; q; }
25868 /^X\(\/\).*/{ s//\1/; q; }
25869 s/.*/./; q'`
25870 { if $as_mkdir_p; then
25871 mkdir -p "$ac_dest_dir"
25872 else
25873 as_dir="$ac_dest_dir"
25874 as_dirs=
25875 while test ! -d "$as_dir"; do
25876 as_dirs="$as_dir $as_dirs"
25877 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25878$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025879 X"$as_dir" : 'X\(//\)[^/]' \| \
25880 X"$as_dir" : 'X\(//\)$' \| \
25881 X"$as_dir" : 'X\(/\)' \| \
25882 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025883echo X"$as_dir" |
25884 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25885 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25886 /^X\(\/\/\)$/{ s//\1/; q; }
25887 /^X\(\/\).*/{ s//\1/; q; }
25888 s/.*/./; q'`
25889 done
25890 test ! -n "$as_dirs" || mkdir $as_dirs
25891 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25892echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25893 { (exit 1); exit 1; }; }; }
25894
25895 ac_builddir=.
25896
25897if test "$ac_dest_dir" != .; then
25898 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25899 # A "../" for each directory in $ac_dir_suffix.
25900 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25901else
25902 ac_dir_suffix= ac_top_builddir=
25903fi
25904
25905case $srcdir in
25906 .) # No --srcdir option. We are building in place.
25907 ac_srcdir=.
25908 if test -z "$ac_top_builddir"; then
25909 ac_top_srcdir=.
25910 else
25911 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25912 fi ;;
25913 [\\/]* | ?:[\\/]* ) # Absolute path.
25914 ac_srcdir=$srcdir$ac_dir_suffix;
25915 ac_top_srcdir=$srcdir ;;
25916 *) # Relative path.
25917 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25918 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25919esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025920
25921# Do not use `cd foo && pwd` to compute absolute paths, because
25922# the directories may not exist.
25923case `pwd` in
25924.) ac_abs_builddir="$ac_dest_dir";;
25925*)
25926 case "$ac_dest_dir" in
25927 .) ac_abs_builddir=`pwd`;;
25928 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25929 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25930 esac;;
25931esac
25932case $ac_abs_builddir in
25933.) ac_abs_top_builddir=${ac_top_builddir}.;;
25934*)
25935 case ${ac_top_builddir}. in
25936 .) ac_abs_top_builddir=$ac_abs_builddir;;
25937 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25938 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25939 esac;;
25940esac
25941case $ac_abs_builddir in
25942.) ac_abs_srcdir=$ac_srcdir;;
25943*)
25944 case $ac_srcdir in
25945 .) ac_abs_srcdir=$ac_abs_builddir;;
25946 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25947 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25948 esac;;
25949esac
25950case $ac_abs_builddir in
25951.) ac_abs_top_srcdir=$ac_top_srcdir;;
25952*)
25953 case $ac_top_srcdir in
25954 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25955 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25956 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25957 esac;;
25958esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000025959
25960
25961 case $srcdir in
25962 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25963 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25964 esac
25965
25966 # Try a symlink, then a hard link, then a copy.
25967 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25968 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25969 cp -p $srcdir/$ac_source $ac_dest ||
25970 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25971echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25972 { (exit 1); exit 1; }; }
25973done
25974_ACEOF
25975cat >>$CONFIG_STATUS <<\_ACEOF
25976
25977#
John Criswellc764fbc2003-09-06 15:17:13 +000025978# CONFIG_COMMANDS section.
25979#
25980for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25981 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25982 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25983 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25984$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025985 X"$ac_dest" : 'X\(//\)[^/]' \| \
25986 X"$ac_dest" : 'X\(//\)$' \| \
25987 X"$ac_dest" : 'X\(/\)' \| \
25988 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000025989echo X"$ac_dest" |
25990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25991 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25992 /^X\(\/\/\)$/{ s//\1/; q; }
25993 /^X\(\/\).*/{ s//\1/; q; }
25994 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025995 { if $as_mkdir_p; then
25996 mkdir -p "$ac_dir"
25997 else
25998 as_dir="$ac_dir"
25999 as_dirs=
26000 while test ! -d "$as_dir"; do
26001 as_dirs="$as_dir $as_dirs"
26002 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26003$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26004 X"$as_dir" : 'X\(//\)[^/]' \| \
26005 X"$as_dir" : 'X\(//\)$' \| \
26006 X"$as_dir" : 'X\(/\)' \| \
26007 . : '\(.\)' 2>/dev/null ||
26008echo X"$as_dir" |
26009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26011 /^X\(\/\/\)$/{ s//\1/; q; }
26012 /^X\(\/\).*/{ s//\1/; q; }
26013 s/.*/./; q'`
26014 done
26015 test ! -n "$as_dirs" || mkdir $as_dirs
26016 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26017echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26018 { (exit 1); exit 1; }; }; }
26019
John Criswellc764fbc2003-09-06 15:17:13 +000026020 ac_builddir=.
26021
26022if test "$ac_dir" != .; then
26023 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26024 # A "../" for each directory in $ac_dir_suffix.
26025 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26026else
26027 ac_dir_suffix= ac_top_builddir=
26028fi
26029
26030case $srcdir in
26031 .) # No --srcdir option. We are building in place.
26032 ac_srcdir=.
26033 if test -z "$ac_top_builddir"; then
26034 ac_top_srcdir=.
26035 else
26036 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26037 fi ;;
26038 [\\/]* | ?:[\\/]* ) # Absolute path.
26039 ac_srcdir=$srcdir$ac_dir_suffix;
26040 ac_top_srcdir=$srcdir ;;
26041 *) # Relative path.
26042 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26043 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26044esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000026045
26046# Do not use `cd foo && pwd` to compute absolute paths, because
26047# the directories may not exist.
26048case `pwd` in
26049.) ac_abs_builddir="$ac_dir";;
26050*)
26051 case "$ac_dir" in
26052 .) ac_abs_builddir=`pwd`;;
26053 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26054 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26055 esac;;
26056esac
26057case $ac_abs_builddir in
26058.) ac_abs_top_builddir=${ac_top_builddir}.;;
26059*)
26060 case ${ac_top_builddir}. in
26061 .) ac_abs_top_builddir=$ac_abs_builddir;;
26062 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26063 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26064 esac;;
26065esac
26066case $ac_abs_builddir in
26067.) ac_abs_srcdir=$ac_srcdir;;
26068*)
26069 case $ac_srcdir in
26070 .) ac_abs_srcdir=$ac_abs_builddir;;
26071 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26072 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26073 esac;;
26074esac
26075case $ac_abs_builddir in
26076.) ac_abs_top_srcdir=$ac_top_srcdir;;
26077*)
26078 case $ac_top_srcdir in
26079 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26080 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26081 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26082 esac;;
26083esac
John Criswellc764fbc2003-09-06 15:17:13 +000026084
26085
26086 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26087echo "$as_me: executing $ac_dest commands" >&6;}
26088 case $ac_dest in
26089 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
26090 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000026091 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026092 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026093 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026094 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
26095 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000026096 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
26097 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 +000026098 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Misha Brukman591edc62004-10-14 18:59:42 +000026099 tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
Brian Gaekec45be042003-10-07 06:01:34 +000026100 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026101 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000026102 esac
26103done
26104_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000026105
26106cat >>$CONFIG_STATUS <<\_ACEOF
26107
26108{ (exit 0); exit 0; }
26109_ACEOF
26110chmod +x $CONFIG_STATUS
26111ac_clean_files=$ac_clean_files_save
26112
26113
26114# configure is writing to config.log, and then calls config.status.
26115# config.status does its own redirection, appending to config.log.
26116# Unfortunately, on DOS this fails, as config.log is still kept open
26117# by configure, so config.status won't be able to write to it; its
26118# output is simply discarded. So we exec the FD to /dev/null,
26119# effectively closing config.log, so it can be properly (re)opened and
26120# appended to by config.status. When coming back to configure, we
26121# need to make the FD available again.
26122if test "$no_create" != yes; then
26123 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000026124 ac_config_status_args=
26125 test "$silent" = yes &&
26126 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000026127 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000026128 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000026129 exec 5>>config.log
26130 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26131 # would make configure fail if this is the last instruction.
26132 $ac_cs_success || { (exit 1); exit 1; }
26133fi
26134
John Criswell12399a12003-09-30 15:55:44 +000026135#
26136# CONFIG_SUBDIRS section.
26137#
26138if test "$no_recursion" != yes; then
26139
26140 # Remove --cache-file and --srcdir arguments so they do not pile up.
26141 ac_sub_configure_args=
26142 ac_prev=
26143 for ac_arg in $ac_configure_args; do
26144 if test -n "$ac_prev"; then
26145 ac_prev=
26146 continue
26147 fi
26148 case $ac_arg in
26149 -cache-file | --cache-file | --cache-fil | --cache-fi \
26150 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26151 ac_prev=cache_file ;;
26152 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26153 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26154 | --c=*)
26155 ;;
26156 --config-cache | -C)
26157 ;;
26158 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26159 ac_prev=srcdir ;;
26160 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26161 ;;
26162 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26163 ac_prev=prefix ;;
26164 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26165 ;;
26166 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26167 esac
26168 done
26169
26170 # Always prepend --prefix to ensure using the same prefix
26171 # in subdir configurations.
26172 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26173
26174 ac_popdir=`pwd`
26175 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26176
26177 # Do not complain, so a configure script can configure whichever
26178 # parts of a large source tree are present.
26179 test -d $srcdir/$ac_dir || continue
26180
26181 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26182echo "$as_me: configuring in $ac_dir" >&6;}
26183 { if $as_mkdir_p; then
26184 mkdir -p "$ac_dir"
26185 else
26186 as_dir="$ac_dir"
26187 as_dirs=
26188 while test ! -d "$as_dir"; do
26189 as_dirs="$as_dir $as_dirs"
26190 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26191$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026192 X"$as_dir" : 'X\(//\)[^/]' \| \
26193 X"$as_dir" : 'X\(//\)$' \| \
26194 X"$as_dir" : 'X\(/\)' \| \
26195 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000026196echo X"$as_dir" |
26197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26198 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26199 /^X\(\/\/\)$/{ s//\1/; q; }
26200 /^X\(\/\).*/{ s//\1/; q; }
26201 s/.*/./; q'`
26202 done
26203 test ! -n "$as_dirs" || mkdir $as_dirs
26204 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26205echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26206 { (exit 1); exit 1; }; }; }
26207
26208 ac_builddir=.
26209
26210if test "$ac_dir" != .; then
26211 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26212 # A "../" for each directory in $ac_dir_suffix.
26213 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26214else
26215 ac_dir_suffix= ac_top_builddir=
26216fi
26217
26218case $srcdir in
26219 .) # No --srcdir option. We are building in place.
26220 ac_srcdir=.
26221 if test -z "$ac_top_builddir"; then
26222 ac_top_srcdir=.
26223 else
26224 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26225 fi ;;
26226 [\\/]* | ?:[\\/]* ) # Absolute path.
26227 ac_srcdir=$srcdir$ac_dir_suffix;
26228 ac_top_srcdir=$srcdir ;;
26229 *) # Relative path.
26230 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26231 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26232esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000026233
26234# Do not use `cd foo && pwd` to compute absolute paths, because
26235# the directories may not exist.
26236case `pwd` in
26237.) ac_abs_builddir="$ac_dir";;
26238*)
26239 case "$ac_dir" in
26240 .) ac_abs_builddir=`pwd`;;
26241 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26242 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26243 esac;;
26244esac
26245case $ac_abs_builddir in
26246.) ac_abs_top_builddir=${ac_top_builddir}.;;
26247*)
26248 case ${ac_top_builddir}. in
26249 .) ac_abs_top_builddir=$ac_abs_builddir;;
26250 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26251 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26252 esac;;
26253esac
26254case $ac_abs_builddir in
26255.) ac_abs_srcdir=$ac_srcdir;;
26256*)
26257 case $ac_srcdir in
26258 .) ac_abs_srcdir=$ac_abs_builddir;;
26259 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26260 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26261 esac;;
26262esac
26263case $ac_abs_builddir in
26264.) ac_abs_top_srcdir=$ac_top_srcdir;;
26265*)
26266 case $ac_top_srcdir in
26267 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26268 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26269 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26270 esac;;
26271esac
John Criswell12399a12003-09-30 15:55:44 +000026272
26273
26274 cd $ac_dir
26275
26276 # Check for guested configure; otherwise get Cygnus style configure.
26277 if test -f $ac_srcdir/configure.gnu; then
26278 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26279 elif test -f $ac_srcdir/configure; then
26280 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26281 elif test -f $ac_srcdir/configure.in; then
26282 ac_sub_configure=$ac_configure
26283 else
26284 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26285echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26286 ac_sub_configure=
26287 fi
26288
26289 # The recursion is here.
26290 if test -n "$ac_sub_configure"; then
26291 # Make the cache file name correct relative to the subdirectory.
26292 case $cache_file in
26293 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26294 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026295 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000026296 esac
26297
26298 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26299echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26300 # The eval makes quoting arguments work.
26301 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026302 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26303 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000026304echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26305 { (exit 1); exit 1; }; }
26306 fi
26307
26308 cd $ac_popdir
26309 done
26310fi
26311
Brian Gaekef3b24102003-11-16 18:38:14 +000026312
Reid Spencer0d98aed2004-10-04 22:05:53 +000026313if test $bzip2_found -ne 1 ; then
26314 if test $zlib_found -ne 1 ; then
26315 { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
26316echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
26317 { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
26318echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
26319 { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5
26320echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;}
26321 fi
26322fi
26323
Brian Gaekef3b24102003-11-16 18:38:14 +000026324if test $llvmgccwarn = yes
26325then
26326 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
26327echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
26328 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
26329echo "$as_me: WARNING: ***** appear to be working." >&2;}
26330 { echo "$as_me:$LINENO: WARNING: ***** " >&5
26331echo "$as_me: WARNING: ***** " >&2;}
26332 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
26333echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
26334 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
26335echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
26336 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
26337echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
26338fi
Brian Gaeke554831c2004-01-21 19:39:29 +000026339