blob: 3b29fd239c7412e145f6d6f1467910835fd5d32c [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer2706f8c2004-09-19 23:53:36 +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 Spencer2b51a082004-08-04 00:34:49 +0000424PACKAGE_NAME='LLVM'
425PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000426PACKAGE_VERSION='1.4'
427PACKAGE_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 Spencer37130d22004-10-04 07:05:07 +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 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 Spencere9de0912004-08-20 09:03:57 +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 Spencere9de0912004-08-20 09:03:57 +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 Spencere9de0912004-08-20 09:03:57 +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 Spencere9de0912004-08-20 09:03:57 +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
18955
John Criswell7a73b802003-06-30 21:59:07 +000018956# Extract the first word of "dot", so it can be a program name with args.
18957set dummy dot; ac_word=$2
18958echo "$as_me:$LINENO: checking for $ac_word" >&5
18959echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18960if test "${ac_cv_path_DOT+set}" = set; then
18961 echo $ECHO_N "(cached) $ECHO_C" >&6
18962else
18963 case $DOT in
18964 [\\/]* | ?:[\\/]*)
18965 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18966 ;;
18967 *)
18968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18969for as_dir in $PATH
18970do
18971 IFS=$as_save_IFS
18972 test -z "$as_dir" && as_dir=.
18973 for ac_exec_ext in '' $ac_executable_extensions; do
18974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18975 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18977 break 2
18978 fi
18979done
18980done
18981
Brian Gaeke26be9c52004-01-13 06:43:16 +000018982 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018983 ;;
18984esac
18985fi
18986DOT=$ac_cv_path_DOT
18987
18988if test -n "$DOT"; then
18989 echo "$as_me:$LINENO: result: $DOT" >&5
18990echo "${ECHO_T}$DOT" >&6
18991else
18992 echo "$as_me:$LINENO: result: no" >&5
18993echo "${ECHO_T}no" >&6
18994fi
18995
18996# Extract the first word of "etags", so it can be a program name with args.
18997set dummy etags; 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_ETAGS+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19002else
19003 case $ETAGS in
19004 [\\/]* | ?:[\\/]*)
19005 ac_cv_path_ETAGS="$ETAGS" # 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_ETAGS="$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_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000019023 ;;
19024esac
19025fi
19026ETAGS=$ac_cv_path_ETAGS
19027
19028if test -n "$ETAGS"; then
19029 echo "$as_me:$LINENO: result: $ETAGS" >&5
19030echo "${ECHO_T}$ETAGS" >&6
19031else
19032 echo "$as_me:$LINENO: result: no" >&5
19033echo "${ECHO_T}no" >&6
19034fi
19035
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000019036etags_version=`$ETAGS --version 2>&1`
19037case "$etags_version" in
19038 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19039 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19040 *) ETAGSFLAGS="" ;;
19041esac
19042ETAGSFLAGS=$ETAGSFLAGS
19043
John Criswellde00db22003-08-25 16:49:54 +000019044# Extract the first word of "python", so it can be a program name with args.
19045set dummy python; ac_word=$2
19046echo "$as_me:$LINENO: checking for $ac_word" >&5
19047echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19048if test "${ac_cv_path_PYTHON+set}" = set; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19050else
19051 case $PYTHON in
19052 [\\/]* | ?:[\\/]*)
19053 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19054 ;;
19055 *)
19056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19057for as_dir in $PATH
19058do
19059 IFS=$as_save_IFS
19060 test -z "$as_dir" && as_dir=.
19061 for ac_exec_ext in '' $ac_executable_extensions; do
19062 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19063 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19065 break 2
19066 fi
19067done
19068done
19069
Brian Gaeke26be9c52004-01-13 06:43:16 +000019070 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000019071 ;;
19072esac
19073fi
19074PYTHON=$ac_cv_path_PYTHON
19075
19076if test -n "$PYTHON"; then
19077 echo "$as_me:$LINENO: result: $PYTHON" >&5
19078echo "${ECHO_T}$PYTHON" >&6
19079else
19080 echo "$as_me:$LINENO: result: no" >&5
19081echo "${ECHO_T}no" >&6
19082fi
19083
Brian Gaeke26be9c52004-01-13 06:43:16 +000019084if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000019085then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019086 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19087echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019088fi
John Criswellde00db22003-08-25 16:49:54 +000019089# Extract the first word of "qmtest", so it can be a program name with args.
19090set dummy qmtest; ac_word=$2
19091echo "$as_me:$LINENO: checking for $ac_word" >&5
19092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19093if test "${ac_cv_path_QMTEST+set}" = set; then
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19095else
19096 case $QMTEST in
19097 [\\/]* | ?:[\\/]*)
19098 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19099 ;;
19100 *)
19101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19102for as_dir in $PATH
19103do
19104 IFS=$as_save_IFS
19105 test -z "$as_dir" && as_dir=.
19106 for ac_exec_ext in '' $ac_executable_extensions; do
19107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19108 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19110 break 2
19111 fi
19112done
19113done
19114
Brian Gaeke26be9c52004-01-13 06:43:16 +000019115 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000019116 ;;
19117esac
19118fi
19119QMTEST=$ac_cv_path_QMTEST
19120
19121if test -n "$QMTEST"; then
19122 echo "$as_me:$LINENO: result: $QMTEST" >&5
19123echo "${ECHO_T}$QMTEST" >&6
19124else
19125 echo "$as_me:$LINENO: result: no" >&5
19126echo "${ECHO_T}no" >&6
19127fi
19128
Brian Gaeke26be9c52004-01-13 06:43:16 +000019129if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000019130then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019131 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19132echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019133fi
John Criswellde00db22003-08-25 16:49:54 +000019134
19135pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19136pymajor=`echo $pyversion | cut -d. -f1`
19137pyminor=`echo $pyversion | cut -d. -f2`
19138
19139if test "$pymajor" -ge "2"
19140then
19141 if test "$pymajor" -eq "2"
19142 then
19143 if test "$pyminor" -lt "2"
19144 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019145 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19146echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019147 fi
19148 fi
19149else
Brian Gaeke26be9c52004-01-13 06:43:16 +000019150 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19151echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019152fi
John Criswell7a73b802003-06-30 21:59:07 +000019153
19154
John Criswell7a73b802003-06-30 21:59:07 +000019155echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19156echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19157if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19158 echo $ECHO_N "(cached) $ECHO_C" >&6
19159else
19160 ac_check_lib_save_LIBS=$LIBS
19161LIBS="-lelf $LIBS"
19162cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019163/* confdefs.h. */
19164_ACEOF
19165cat confdefs.h >>conftest.$ac_ext
19166cat >>conftest.$ac_ext <<_ACEOF
19167/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019168
19169/* Override any gcc2 internal prototype to avoid an error. */
19170#ifdef __cplusplus
19171extern "C"
19172#endif
19173/* We use char because int might match the return type of a gcc2
19174 builtin and then its argument prototype would still apply. */
19175char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019176int
19177main ()
19178{
19179elf_begin ();
19180 ;
19181 return 0;
19182}
19183_ACEOF
19184rm -f conftest.$ac_objext conftest$ac_exeext
19185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019186 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019187 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019188 grep -v '^ *+' conftest.er1 >conftest.err
19189 rm -f conftest.er1
19190 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019193 { ac_try='test -z "$ac_c_werror_flag"
19194 || test ! -s conftest.err'
19195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19196 (eval $ac_try) 2>&5
19197 ac_status=$?
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); }; } &&
19200 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19202 (eval $ac_try) 2>&5
19203 ac_status=$?
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); }; }; then
19206 ac_cv_lib_elf_elf_begin=yes
19207else
19208 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019209sed 's/^/| /' conftest.$ac_ext >&5
19210
John Criswell7a73b802003-06-30 21:59:07 +000019211ac_cv_lib_elf_elf_begin=no
19212fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019213rm -f conftest.err conftest.$ac_objext \
19214 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019215LIBS=$ac_check_lib_save_LIBS
19216fi
19217echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19218echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19219if test $ac_cv_lib_elf_elf_begin = yes; then
19220 cat >>confdefs.h <<_ACEOF
19221#define HAVE_LIBELF 1
19222_ACEOF
19223
19224 LIBS="-lelf $LIBS"
19225
19226fi
19227
19228
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019229echo "$as_me:$LINENO: checking for BZ2_bzCompressInit in -lbz2" >&5
19230echo $ECHO_N "checking for BZ2_bzCompressInit in -lbz2... $ECHO_C" >&6
19231if test "${ac_cv_lib_bz2_BZ2_bzCompressInit+set}" = set; then
19232 echo $ECHO_N "(cached) $ECHO_C" >&6
19233else
19234 ac_check_lib_save_LIBS=$LIBS
19235LIBS="-lbz2 $LIBS"
19236cat >conftest.$ac_ext <<_ACEOF
19237/* confdefs.h. */
19238_ACEOF
19239cat confdefs.h >>conftest.$ac_ext
19240cat >>conftest.$ac_ext <<_ACEOF
19241/* end confdefs.h. */
19242
19243/* Override any gcc2 internal prototype to avoid an error. */
19244#ifdef __cplusplus
19245extern "C"
19246#endif
19247/* We use char because int might match the return type of a gcc2
19248 builtin and then its argument prototype would still apply. */
19249char BZ2_bzCompressInit ();
19250int
19251main ()
19252{
19253BZ2_bzCompressInit ();
19254 ;
19255 return 0;
19256}
19257_ACEOF
19258rm -f conftest.$ac_objext conftest$ac_exeext
19259if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19260 (eval $ac_link) 2>conftest.er1
19261 ac_status=$?
19262 grep -v '^ *+' conftest.er1 >conftest.err
19263 rm -f conftest.er1
19264 cat conftest.err >&5
19265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19266 (exit $ac_status); } &&
19267 { ac_try='test -z "$ac_c_werror_flag"
19268 || test ! -s conftest.err'
19269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19270 (eval $ac_try) 2>&5
19271 ac_status=$?
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; } &&
19274 { ac_try='test -s conftest$ac_exeext'
19275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19276 (eval $ac_try) 2>&5
19277 ac_status=$?
19278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19279 (exit $ac_status); }; }; then
19280 ac_cv_lib_bz2_BZ2_bzCompressInit=yes
19281else
19282 echo "$as_me: failed program was:" >&5
19283sed 's/^/| /' conftest.$ac_ext >&5
19284
19285ac_cv_lib_bz2_BZ2_bzCompressInit=no
19286fi
19287rm -f conftest.err conftest.$ac_objext \
19288 conftest$ac_exeext conftest.$ac_ext
19289LIBS=$ac_check_lib_save_LIBS
19290fi
19291echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzCompressInit" >&5
19292echo "${ECHO_T}$ac_cv_lib_bz2_BZ2_bzCompressInit" >&6
19293if test $ac_cv_lib_bz2_BZ2_bzCompressInit = yes; then
19294 bzip2_found=1
19295else
19296 bzip2_found=0
19297fi
19298
Reid Spencer0d98aed2004-10-04 22:05:53 +000019299
19300for ac_header in bzlib.h
19301do
19302as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19303if eval "test \"\${$as_ac_Header+set}\" = set"; then
19304 echo "$as_me:$LINENO: checking for $ac_header" >&5
19305echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19306if eval "test \"\${$as_ac_Header+set}\" = set"; then
19307 echo $ECHO_N "(cached) $ECHO_C" >&6
19308fi
19309echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19310echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19311else
19312 # Is the header compilable?
19313echo "$as_me:$LINENO: checking $ac_header usability" >&5
19314echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19315cat >conftest.$ac_ext <<_ACEOF
19316/* confdefs.h. */
19317_ACEOF
19318cat confdefs.h >>conftest.$ac_ext
19319cat >>conftest.$ac_ext <<_ACEOF
19320/* end confdefs.h. */
19321$ac_includes_default
19322#include <$ac_header>
19323_ACEOF
19324rm -f conftest.$ac_objext
19325if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19326 (eval $ac_compile) 2>conftest.er1
19327 ac_status=$?
19328 grep -v '^ *+' conftest.er1 >conftest.err
19329 rm -f conftest.er1
19330 cat conftest.err >&5
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); } &&
19333 { ac_try='test -z "$ac_c_werror_flag"
19334 || test ! -s conftest.err'
19335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19336 (eval $ac_try) 2>&5
19337 ac_status=$?
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); }; } &&
19340 { ac_try='test -s conftest.$ac_objext'
19341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19342 (eval $ac_try) 2>&5
19343 ac_status=$?
19344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19345 (exit $ac_status); }; }; then
19346 ac_header_compiler=yes
19347else
19348 echo "$as_me: failed program was:" >&5
19349sed 's/^/| /' conftest.$ac_ext >&5
19350
19351ac_header_compiler=no
19352fi
19353rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19354echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19355echo "${ECHO_T}$ac_header_compiler" >&6
19356
19357# Is the header present?
19358echo "$as_me:$LINENO: checking $ac_header presence" >&5
19359echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19360cat >conftest.$ac_ext <<_ACEOF
19361/* confdefs.h. */
19362_ACEOF
19363cat confdefs.h >>conftest.$ac_ext
19364cat >>conftest.$ac_ext <<_ACEOF
19365/* end confdefs.h. */
19366#include <$ac_header>
19367_ACEOF
19368if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19369 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19370 ac_status=$?
19371 grep -v '^ *+' conftest.er1 >conftest.err
19372 rm -f conftest.er1
19373 cat conftest.err >&5
19374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19375 (exit $ac_status); } >/dev/null; then
19376 if test -s conftest.err; then
19377 ac_cpp_err=$ac_c_preproc_warn_flag
19378 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19379 else
19380 ac_cpp_err=
19381 fi
19382else
19383 ac_cpp_err=yes
19384fi
19385if test -z "$ac_cpp_err"; then
19386 ac_header_preproc=yes
19387else
19388 echo "$as_me: failed program was:" >&5
19389sed 's/^/| /' conftest.$ac_ext >&5
19390
19391 ac_header_preproc=no
19392fi
19393rm -f conftest.err conftest.$ac_ext
19394echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19395echo "${ECHO_T}$ac_header_preproc" >&6
19396
19397# So? What about this header?
19398case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19399 yes:no: )
19400 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19401echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19402 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19403echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19404 ac_header_preproc=yes
19405 ;;
19406 no:yes:* )
19407 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19408echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19409 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19410echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19411 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19412echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19413 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19414echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19416echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19417 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19418echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19419 (
19420 cat <<\_ASBOX
19421## ----------------------------------- ##
19422## Report this to llvmbugs@cs.uiuc.edu ##
19423## ----------------------------------- ##
19424_ASBOX
19425 ) |
19426 sed "s/^/$as_me: WARNING: /" >&2
19427 ;;
19428esac
19429echo "$as_me:$LINENO: checking for $ac_header" >&5
19430echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19431if eval "test \"\${$as_ac_Header+set}\" = set"; then
19432 echo $ECHO_N "(cached) $ECHO_C" >&6
19433else
19434 eval "$as_ac_Header=\$ac_header_preproc"
19435fi
19436echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19437echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19438
19439fi
19440if test `eval echo '${'$as_ac_Header'}'` = yes; then
19441 cat >>confdefs.h <<_ACEOF
19442#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19443_ACEOF
19444 bzlib_h_found=1
19445else
19446 bzlib_h_found=0
19447fi
19448
19449done
19450
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019451echo "$as_me:$LINENO: checking for gzopen in -lz" >&5
19452echo $ECHO_N "checking for gzopen in -lz... $ECHO_C" >&6
19453if test "${ac_cv_lib_z_gzopen+set}" = set; then
19454 echo $ECHO_N "(cached) $ECHO_C" >&6
19455else
19456 ac_check_lib_save_LIBS=$LIBS
19457LIBS="-lz $LIBS"
19458cat >conftest.$ac_ext <<_ACEOF
19459/* confdefs.h. */
19460_ACEOF
19461cat confdefs.h >>conftest.$ac_ext
19462cat >>conftest.$ac_ext <<_ACEOF
19463/* end confdefs.h. */
19464
19465/* Override any gcc2 internal prototype to avoid an error. */
19466#ifdef __cplusplus
19467extern "C"
19468#endif
19469/* We use char because int might match the return type of a gcc2
19470 builtin and then its argument prototype would still apply. */
19471char gzopen ();
19472int
19473main ()
19474{
19475gzopen ();
19476 ;
19477 return 0;
19478}
19479_ACEOF
19480rm -f conftest.$ac_objext conftest$ac_exeext
19481if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19482 (eval $ac_link) 2>conftest.er1
19483 ac_status=$?
19484 grep -v '^ *+' conftest.er1 >conftest.err
19485 rm -f conftest.er1
19486 cat conftest.err >&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } &&
19489 { ac_try='test -z "$ac_c_werror_flag"
19490 || test ! -s conftest.err'
19491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19492 (eval $ac_try) 2>&5
19493 ac_status=$?
19494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19495 (exit $ac_status); }; } &&
19496 { ac_try='test -s conftest$ac_exeext'
19497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19498 (eval $ac_try) 2>&5
19499 ac_status=$?
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); }; }; then
19502 ac_cv_lib_z_gzopen=yes
19503else
19504 echo "$as_me: failed program was:" >&5
19505sed 's/^/| /' conftest.$ac_ext >&5
19506
19507ac_cv_lib_z_gzopen=no
19508fi
19509rm -f conftest.err conftest.$ac_objext \
19510 conftest$ac_exeext conftest.$ac_ext
19511LIBS=$ac_check_lib_save_LIBS
19512fi
19513echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzopen" >&5
19514echo "${ECHO_T}$ac_cv_lib_z_gzopen" >&6
19515if test $ac_cv_lib_z_gzopen = yes; then
19516 zlib_found=1
19517else
19518 zlib_found=0
19519fi
19520
Reid Spencer37130d22004-10-04 07:05:07 +000019521
Reid Spencer0d98aed2004-10-04 22:05:53 +000019522for ac_header in zlib.h
19523do
19524as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19525if eval "test \"\${$as_ac_Header+set}\" = set"; then
19526 echo "$as_me:$LINENO: checking for $ac_header" >&5
19527echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19528if eval "test \"\${$as_ac_Header+set}\" = set"; then
19529 echo $ECHO_N "(cached) $ECHO_C" >&6
19530fi
19531echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19532echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19533else
19534 # Is the header compilable?
19535echo "$as_me:$LINENO: checking $ac_header usability" >&5
19536echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19537cat >conftest.$ac_ext <<_ACEOF
19538/* confdefs.h. */
19539_ACEOF
19540cat confdefs.h >>conftest.$ac_ext
19541cat >>conftest.$ac_ext <<_ACEOF
19542/* end confdefs.h. */
19543$ac_includes_default
19544#include <$ac_header>
19545_ACEOF
19546rm -f conftest.$ac_objext
19547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19548 (eval $ac_compile) 2>conftest.er1
19549 ac_status=$?
19550 grep -v '^ *+' conftest.er1 >conftest.err
19551 rm -f conftest.er1
19552 cat conftest.err >&5
19553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19554 (exit $ac_status); } &&
19555 { ac_try='test -z "$ac_c_werror_flag"
19556 || test ! -s conftest.err'
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; } &&
19562 { ac_try='test -s conftest.$ac_objext'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 ac_header_compiler=yes
19569else
19570 echo "$as_me: failed program was:" >&5
19571sed 's/^/| /' conftest.$ac_ext >&5
Reid Spencer37130d22004-10-04 07:05:07 +000019572
Reid Spencer0d98aed2004-10-04 22:05:53 +000019573ac_header_compiler=no
19574fi
19575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19576echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19577echo "${ECHO_T}$ac_header_compiler" >&6
19578
19579# Is the header present?
19580echo "$as_me:$LINENO: checking $ac_header presence" >&5
19581echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19582cat >conftest.$ac_ext <<_ACEOF
19583/* confdefs.h. */
19584_ACEOF
19585cat confdefs.h >>conftest.$ac_ext
19586cat >>conftest.$ac_ext <<_ACEOF
19587/* end confdefs.h. */
19588#include <$ac_header>
19589_ACEOF
19590if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19592 ac_status=$?
19593 grep -v '^ *+' conftest.er1 >conftest.err
19594 rm -f conftest.er1
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } >/dev/null; then
19598 if test -s conftest.err; then
19599 ac_cpp_err=$ac_c_preproc_warn_flag
19600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19601 else
19602 ac_cpp_err=
19603 fi
19604else
19605 ac_cpp_err=yes
19606fi
19607if test -z "$ac_cpp_err"; then
19608 ac_header_preproc=yes
19609else
19610 echo "$as_me: failed program was:" >&5
19611sed 's/^/| /' conftest.$ac_ext >&5
19612
19613 ac_header_preproc=no
19614fi
19615rm -f conftest.err conftest.$ac_ext
19616echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19617echo "${ECHO_T}$ac_header_preproc" >&6
19618
19619# So? What about this header?
19620case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19621 yes:no: )
19622 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19623echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19624 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19625echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19626 ac_header_preproc=yes
19627 ;;
19628 no:yes:* )
19629 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19630echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19631 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19632echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19633 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19634echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19636echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19638echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19639 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19640echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19641 (
19642 cat <<\_ASBOX
19643## ----------------------------------- ##
19644## Report this to llvmbugs@cs.uiuc.edu ##
19645## ----------------------------------- ##
19646_ASBOX
19647 ) |
19648 sed "s/^/$as_me: WARNING: /" >&2
19649 ;;
19650esac
19651echo "$as_me:$LINENO: checking for $ac_header" >&5
19652echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19653if eval "test \"\${$as_ac_Header+set}\" = set"; then
19654 echo $ECHO_N "(cached) $ECHO_C" >&6
19655else
19656 eval "$as_ac_Header=\$ac_header_preproc"
19657fi
19658echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19659echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19660
19661fi
19662if test `eval echo '${'$as_ac_Header'}'` = yes; then
19663 cat >>confdefs.h <<_ACEOF
19664#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19665_ACEOF
19666 zlib_h_found=1
19667else
19668 zlib_h_found=0
19669fi
19670
19671done
19672
19673if test $zlib_found -eq 1 -a $zlib_h_found -eq 1; then
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019674
19675cat >>confdefs.h <<\_ACEOF
19676#define HAVE_ZLIB 1
19677_ACEOF
19678
Reid Spencer0d98aed2004-10-04 22:05:53 +000019679 HAVE_ZLIB=1
19680
19681else
19682 HAVE_ZLIB=0
19683
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019684fi
Reid Spencer0d98aed2004-10-04 22:05:53 +000019685if test $bzip2_found -eq 1 -a $bzlib_h_found -eq 1 ; then
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019686
19687cat >>confdefs.h <<\_ACEOF
19688#define HAVE_BZIP2 1
19689_ACEOF
19690
Reid Spencer0d98aed2004-10-04 22:05:53 +000019691 HAVE_BZIP2=1
Reid Spencerc28d7ad2004-10-02 08:50:58 +000019692
Reid Spencer0d98aed2004-10-04 22:05:53 +000019693else
19694 HAVE_BZIP2=0
19695
19696fi
John Criswell7a73b802003-06-30 21:59:07 +000019697echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19698echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19699if test "${ac_cv_search_dlopen+set}" = set; then
19700 echo $ECHO_N "(cached) $ECHO_C" >&6
19701else
19702 ac_func_search_save_LIBS=$LIBS
19703ac_cv_search_dlopen=no
19704cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019705/* confdefs.h. */
19706_ACEOF
19707cat confdefs.h >>conftest.$ac_ext
19708cat >>conftest.$ac_ext <<_ACEOF
19709/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019710
19711/* Override any gcc2 internal prototype to avoid an error. */
19712#ifdef __cplusplus
19713extern "C"
19714#endif
19715/* We use char because int might match the return type of a gcc2
19716 builtin and then its argument prototype would still apply. */
19717char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019718int
19719main ()
19720{
19721dlopen ();
19722 ;
19723 return 0;
19724}
19725_ACEOF
19726rm -f conftest.$ac_objext conftest$ac_exeext
19727if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019728 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019729 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019730 grep -v '^ *+' conftest.er1 >conftest.err
19731 rm -f conftest.er1
19732 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019735 { ac_try='test -z "$ac_c_werror_flag"
19736 || test ! -s conftest.err'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; } &&
19742 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; }; then
19748 ac_cv_search_dlopen="none required"
19749else
19750 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019751sed 's/^/| /' conftest.$ac_ext >&5
19752
John Criswell7a73b802003-06-30 21:59:07 +000019753fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019754rm -f conftest.err conftest.$ac_objext \
19755 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019756if test "$ac_cv_search_dlopen" = no; then
19757 for ac_lib in dl; do
19758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19759 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019760/* confdefs.h. */
19761_ACEOF
19762cat confdefs.h >>conftest.$ac_ext
19763cat >>conftest.$ac_ext <<_ACEOF
19764/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019765
19766/* Override any gcc2 internal prototype to avoid an error. */
19767#ifdef __cplusplus
19768extern "C"
19769#endif
19770/* We use char because int might match the return type of a gcc2
19771 builtin and then its argument prototype would still apply. */
19772char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019773int
19774main ()
19775{
19776dlopen ();
19777 ;
19778 return 0;
19779}
19780_ACEOF
19781rm -f conftest.$ac_objext conftest$ac_exeext
19782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019783 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019784 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019785 grep -v '^ *+' conftest.er1 >conftest.err
19786 rm -f conftest.er1
19787 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019790 { ac_try='test -z "$ac_c_werror_flag"
19791 || test ! -s conftest.err'
19792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19793 (eval $ac_try) 2>&5
19794 ac_status=$?
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); }; } &&
19797 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19799 (eval $ac_try) 2>&5
19800 ac_status=$?
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); }; }; then
19803 ac_cv_search_dlopen="-l$ac_lib"
19804break
19805else
19806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019807sed 's/^/| /' conftest.$ac_ext >&5
19808
John Criswell7a73b802003-06-30 21:59:07 +000019809fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019810rm -f conftest.err conftest.$ac_objext \
19811 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019812 done
19813fi
19814LIBS=$ac_func_search_save_LIBS
19815fi
19816echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19817echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19818if test "$ac_cv_search_dlopen" != no; then
19819 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019820
19821cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019822#define HAVE_DLOPEN 1
19823_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019824
19825else
Brian Gaekec45be042003-10-07 06:01:34 +000019826 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19827echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019828fi
19829
19830
19831echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19832echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19833if test "${ac_cv_search_mallinfo+set}" = set; then
19834 echo $ECHO_N "(cached) $ECHO_C" >&6
19835else
19836 ac_func_search_save_LIBS=$LIBS
19837ac_cv_search_mallinfo=no
19838cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019839/* confdefs.h. */
19840_ACEOF
19841cat confdefs.h >>conftest.$ac_ext
19842cat >>conftest.$ac_ext <<_ACEOF
19843/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019844
19845/* Override any gcc2 internal prototype to avoid an error. */
19846#ifdef __cplusplus
19847extern "C"
19848#endif
19849/* We use char because int might match the return type of a gcc2
19850 builtin and then its argument prototype would still apply. */
19851char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019852int
19853main ()
19854{
19855mallinfo ();
19856 ;
19857 return 0;
19858}
19859_ACEOF
19860rm -f conftest.$ac_objext conftest$ac_exeext
19861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019862 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019863 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019869 { ac_try='test -z "$ac_c_werror_flag"
19870 || test ! -s conftest.err'
19871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19872 (eval $ac_try) 2>&5
19873 ac_status=$?
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; } &&
19876 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; }; then
19882 ac_cv_search_mallinfo="none required"
19883else
19884 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019885sed 's/^/| /' conftest.$ac_ext >&5
19886
John Criswell7a73b802003-06-30 21:59:07 +000019887fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019888rm -f conftest.err conftest.$ac_objext \
19889 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019890if test "$ac_cv_search_mallinfo" = no; then
19891 for ac_lib in malloc; do
19892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19893 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019894/* confdefs.h. */
19895_ACEOF
19896cat confdefs.h >>conftest.$ac_ext
19897cat >>conftest.$ac_ext <<_ACEOF
19898/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019899
19900/* Override any gcc2 internal prototype to avoid an error. */
19901#ifdef __cplusplus
19902extern "C"
19903#endif
19904/* We use char because int might match the return type of a gcc2
19905 builtin and then its argument prototype would still apply. */
19906char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019907int
19908main ()
19909{
19910mallinfo ();
19911 ;
19912 return 0;
19913}
19914_ACEOF
19915rm -f conftest.$ac_objext conftest$ac_exeext
19916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019917 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019918 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019919 grep -v '^ *+' conftest.er1 >conftest.err
19920 rm -f conftest.er1
19921 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019924 { ac_try='test -z "$ac_c_werror_flag"
19925 || test ! -s conftest.err'
19926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19927 (eval $ac_try) 2>&5
19928 ac_status=$?
19929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19930 (exit $ac_status); }; } &&
19931 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19933 (eval $ac_try) 2>&5
19934 ac_status=$?
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); }; }; then
19937 ac_cv_search_mallinfo="-l$ac_lib"
19938break
19939else
19940 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019941sed 's/^/| /' conftest.$ac_ext >&5
19942
John Criswell7a73b802003-06-30 21:59:07 +000019943fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019944rm -f conftest.err conftest.$ac_objext \
19945 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019946 done
19947fi
19948LIBS=$ac_func_search_save_LIBS
19949fi
19950echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19951echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19952if test "$ac_cv_search_mallinfo" != no; then
19953 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019954
19955cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019956#define HAVE_MALLINFO 1
19957_ACEOF
19958
19959fi
19960
19961
Brian Gaeke5f268f72003-12-05 19:29:01 +000019962echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19963echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19964if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19965 echo $ECHO_N "(cached) $ECHO_C" >&6
19966else
19967 ac_func_search_save_LIBS=$LIBS
19968ac_cv_search_pthread_mutex_lock=no
19969cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019970/* confdefs.h. */
19971_ACEOF
19972cat confdefs.h >>conftest.$ac_ext
19973cat >>conftest.$ac_ext <<_ACEOF
19974/* end confdefs.h. */
19975
19976/* Override any gcc2 internal prototype to avoid an error. */
19977#ifdef __cplusplus
19978extern "C"
19979#endif
19980/* We use char because int might match the return type of a gcc2
19981 builtin and then its argument prototype would still apply. */
19982char pthread_mutex_lock ();
19983int
19984main ()
19985{
19986pthread_mutex_lock ();
19987 ;
19988 return 0;
19989}
19990_ACEOF
19991rm -f conftest.$ac_objext conftest$ac_exeext
19992if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019993 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019994 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019995 grep -v '^ *+' conftest.er1 >conftest.err
19996 rm -f conftest.er1
19997 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19999 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020000 { ac_try='test -z "$ac_c_werror_flag"
20001 || test ! -s conftest.err'
20002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; } &&
20007 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000020008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20009 (eval $ac_try) 2>&5
20010 ac_status=$?
20011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20012 (exit $ac_status); }; }; then
20013 ac_cv_search_pthread_mutex_lock="none required"
20014else
20015 echo "$as_me: failed program was:" >&5
20016sed 's/^/| /' conftest.$ac_ext >&5
20017
20018fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020019rm -f conftest.err conftest.$ac_objext \
20020 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000020021if test "$ac_cv_search_pthread_mutex_lock" = no; then
20022 for ac_lib in pthread; do
20023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20024 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000020025/* confdefs.h. */
20026_ACEOF
20027cat confdefs.h >>conftest.$ac_ext
20028cat >>conftest.$ac_ext <<_ACEOF
20029/* end confdefs.h. */
20030
20031/* Override any gcc2 internal prototype to avoid an error. */
20032#ifdef __cplusplus
20033extern "C"
20034#endif
20035/* We use char because int might match the return type of a gcc2
20036 builtin and then its argument prototype would still apply. */
20037char pthread_mutex_lock ();
20038int
20039main ()
20040{
20041pthread_mutex_lock ();
20042 ;
20043 return 0;
20044}
20045_ACEOF
20046rm -f conftest.$ac_objext conftest$ac_exeext
20047if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020048 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000020049 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020050 grep -v '^ *+' conftest.er1 >conftest.err
20051 rm -f conftest.er1
20052 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000020053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020055 { ac_try='test -z "$ac_c_werror_flag"
20056 || test ! -s conftest.err'
20057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20058 (eval $ac_try) 2>&5
20059 ac_status=$?
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); }; } &&
20062 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000020063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064 (eval $ac_try) 2>&5
20065 ac_status=$?
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; }; then
20068 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
20069break
20070else
20071 echo "$as_me: failed program was:" >&5
20072sed 's/^/| /' conftest.$ac_ext >&5
20073
20074fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020075rm -f conftest.err conftest.$ac_objext \
20076 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000020077 done
20078fi
20079LIBS=$ac_func_search_save_LIBS
20080fi
20081echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
20082echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
20083if test "$ac_cv_search_pthread_mutex_lock" != no; then
20084 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaeke5f268f72003-12-05 19:29:01 +000020085
John Criswell40468462004-09-24 21:19:06 +000020086cat >>confdefs.h <<\_ACEOF
20087#define HAVE_PTHREAD_MUTEX_LOCK 1
20088_ACEOF
20089
20090fi
Brian Gaeke5f268f72003-12-05 19:29:01 +000020091
Brian Gaekec9a410c2004-02-23 21:30:37 +000020092
John Criswell7a73b802003-06-30 21:59:07 +000020093echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20094echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20095if test "${ac_cv_header_stdc+set}" = set; then
20096 echo $ECHO_N "(cached) $ECHO_C" >&6
20097else
20098 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020099/* confdefs.h. */
20100_ACEOF
20101cat confdefs.h >>conftest.$ac_ext
20102cat >>conftest.$ac_ext <<_ACEOF
20103/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020104#include <stdlib.h>
20105#include <stdarg.h>
20106#include <string.h>
20107#include <float.h>
20108
John Criswell0c38eaf2003-09-10 15:17:25 +000020109int
20110main ()
20111{
20112
20113 ;
20114 return 0;
20115}
John Criswell7a73b802003-06-30 21:59:07 +000020116_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020117rm -f conftest.$ac_objext
20118if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020119 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020120 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020121 grep -v '^ *+' conftest.er1 >conftest.err
20122 rm -f conftest.er1
20123 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020125 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020126 { ac_try='test -z "$ac_c_werror_flag"
20127 || test ! -s conftest.err'
20128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20129 (eval $ac_try) 2>&5
20130 ac_status=$?
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); }; } &&
20133 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000020134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20135 (eval $ac_try) 2>&5
20136 ac_status=$?
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000020139 ac_cv_header_stdc=yes
20140else
20141 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020142sed 's/^/| /' conftest.$ac_ext >&5
20143
20144ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000020145fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020146rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020147
20148if test $ac_cv_header_stdc = yes; then
20149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20150 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020151/* confdefs.h. */
20152_ACEOF
20153cat confdefs.h >>conftest.$ac_ext
20154cat >>conftest.$ac_ext <<_ACEOF
20155/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020156#include <string.h>
20157
20158_ACEOF
20159if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000020160 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020161 :
20162else
20163 ac_cv_header_stdc=no
20164fi
20165rm -f conftest*
20166
20167fi
20168
20169if test $ac_cv_header_stdc = yes; then
20170 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20171 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020172/* confdefs.h. */
20173_ACEOF
20174cat confdefs.h >>conftest.$ac_ext
20175cat >>conftest.$ac_ext <<_ACEOF
20176/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020177#include <stdlib.h>
20178
20179_ACEOF
20180if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000020181 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000020182 :
20183else
20184 ac_cv_header_stdc=no
20185fi
20186rm -f conftest*
20187
20188fi
20189
20190if test $ac_cv_header_stdc = yes; then
20191 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20192 if test "$cross_compiling" = yes; then
20193 :
20194else
20195 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020196/* confdefs.h. */
20197_ACEOF
20198cat confdefs.h >>conftest.$ac_ext
20199cat >>conftest.$ac_ext <<_ACEOF
20200/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020201#include <ctype.h>
20202#if ((' ' & 0x0FF) == 0x020)
20203# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20204# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20205#else
John Criswell0c38eaf2003-09-10 15:17:25 +000020206# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000020207 (('a' <= (c) && (c) <= 'i') \
20208 || ('j' <= (c) && (c) <= 'r') \
20209 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000020210# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20211#endif
20212
20213#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20214int
20215main ()
20216{
20217 int i;
20218 for (i = 0; i < 256; i++)
20219 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000020220 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000020221 exit(2);
20222 exit (0);
20223}
20224_ACEOF
20225rm -f conftest$ac_exeext
20226if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20227 (eval $ac_link) 2>&5
20228 ac_status=$?
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20232 (eval $ac_try) 2>&5
20233 ac_status=$?
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20236 :
20237else
20238 echo "$as_me: program exited with status $ac_status" >&5
20239echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020240sed 's/^/| /' conftest.$ac_ext >&5
20241
John Criswell7a73b802003-06-30 21:59:07 +000020242( exit $ac_status )
20243ac_cv_header_stdc=no
20244fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020245rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020246fi
20247fi
20248fi
20249echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20250echo "${ECHO_T}$ac_cv_header_stdc" >&6
20251if test $ac_cv_header_stdc = yes; then
20252
20253cat >>confdefs.h <<\_ACEOF
20254#define STDC_HEADERS 1
20255_ACEOF
20256
20257fi
20258
20259echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20260echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20261if test "${ac_cv_header_sys_wait_h+set}" = set; then
20262 echo $ECHO_N "(cached) $ECHO_C" >&6
20263else
20264 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020265/* confdefs.h. */
20266_ACEOF
20267cat confdefs.h >>conftest.$ac_ext
20268cat >>conftest.$ac_ext <<_ACEOF
20269/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020270#include <sys/types.h>
20271#include <sys/wait.h>
20272#ifndef WEXITSTATUS
20273# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20274#endif
20275#ifndef WIFEXITED
20276# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20277#endif
20278
John Criswell7a73b802003-06-30 21:59:07 +000020279int
20280main ()
20281{
20282 int s;
20283 wait (&s);
20284 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20285 ;
20286 return 0;
20287}
20288_ACEOF
20289rm -f conftest.$ac_objext
20290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020291 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020292 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020293 grep -v '^ *+' conftest.er1 >conftest.err
20294 rm -f conftest.er1
20295 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020298 { ac_try='test -z "$ac_c_werror_flag"
20299 || test ! -s conftest.err'
20300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20301 (eval $ac_try) 2>&5
20302 ac_status=$?
20303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); }; } &&
20305 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20307 (eval $ac_try) 2>&5
20308 ac_status=$?
20309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20310 (exit $ac_status); }; }; then
20311 ac_cv_header_sys_wait_h=yes
20312else
20313 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020314sed 's/^/| /' conftest.$ac_ext >&5
20315
John Criswell7a73b802003-06-30 21:59:07 +000020316ac_cv_header_sys_wait_h=no
20317fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020319fi
20320echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20321echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20322if test $ac_cv_header_sys_wait_h = yes; then
20323
20324cat >>confdefs.h <<\_ACEOF
20325#define HAVE_SYS_WAIT_H 1
20326_ACEOF
20327
20328fi
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
Brian Gaeke26be9c52004-01-13 06:43:16 +000020339
Brian Gaekef5261472004-02-20 06:40:57 +000020340
John Criswellb2815e02004-05-27 20:40:39 +000020341
20342for 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 +000020343do
20344as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20345if eval "test \"\${$as_ac_Header+set}\" = set"; then
20346 echo "$as_me:$LINENO: checking for $ac_header" >&5
20347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20348if eval "test \"\${$as_ac_Header+set}\" = set"; then
20349 echo $ECHO_N "(cached) $ECHO_C" >&6
20350fi
20351echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20352echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20353else
20354 # Is the header compilable?
20355echo "$as_me:$LINENO: checking $ac_header usability" >&5
20356echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20357cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020358/* confdefs.h. */
20359_ACEOF
20360cat confdefs.h >>conftest.$ac_ext
20361cat >>conftest.$ac_ext <<_ACEOF
20362/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020363$ac_includes_default
20364#include <$ac_header>
20365_ACEOF
20366rm -f conftest.$ac_objext
20367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020368 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020369 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020370 grep -v '^ *+' conftest.er1 >conftest.err
20371 rm -f conftest.er1
20372 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020375 { ac_try='test -z "$ac_c_werror_flag"
20376 || test ! -s conftest.err'
20377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20378 (eval $ac_try) 2>&5
20379 ac_status=$?
20380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20381 (exit $ac_status); }; } &&
20382 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20384 (eval $ac_try) 2>&5
20385 ac_status=$?
20386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20387 (exit $ac_status); }; }; then
20388 ac_header_compiler=yes
20389else
20390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020391sed 's/^/| /' conftest.$ac_ext >&5
20392
John Criswell7a73b802003-06-30 21:59:07 +000020393ac_header_compiler=no
20394fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020396echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20397echo "${ECHO_T}$ac_header_compiler" >&6
20398
20399# Is the header present?
20400echo "$as_me:$LINENO: checking $ac_header presence" >&5
20401echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20402cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020403/* confdefs.h. */
20404_ACEOF
20405cat confdefs.h >>conftest.$ac_ext
20406cat >>conftest.$ac_ext <<_ACEOF
20407/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020408#include <$ac_header>
20409_ACEOF
20410if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20411 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20412 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000020413 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000020414 rm -f conftest.er1
20415 cat conftest.err >&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } >/dev/null; then
20418 if test -s conftest.err; then
20419 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000020421 else
20422 ac_cpp_err=
20423 fi
20424else
20425 ac_cpp_err=yes
20426fi
20427if test -z "$ac_cpp_err"; then
20428 ac_header_preproc=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 +000020433 ac_header_preproc=no
20434fi
20435rm -f conftest.err conftest.$ac_ext
20436echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20437echo "${ECHO_T}$ac_header_preproc" >&6
20438
20439# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020440case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20441 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000020442 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20443echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20445echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20446 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020447 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020448 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020449 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20450echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020451 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20452echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20453 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20454echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20455 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20456echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020459 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20460echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020461 (
20462 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020463## ----------------------------------- ##
20464## Report this to llvmbugs@cs.uiuc.edu ##
20465## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000020466_ASBOX
20467 ) |
20468 sed "s/^/$as_me: WARNING: /" >&2
20469 ;;
John Criswell7a73b802003-06-30 21:59:07 +000020470esac
20471echo "$as_me:$LINENO: checking for $ac_header" >&5
20472echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20473if eval "test \"\${$as_ac_Header+set}\" = set"; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20475else
Reid Spencer2706f8c2004-09-19 23:53:36 +000020476 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000020477fi
20478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20480
20481fi
20482if test `eval echo '${'$as_ac_Header'}'` = yes; then
20483 cat >>confdefs.h <<_ACEOF
20484#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20485_ACEOF
20486
20487fi
20488
20489done
20490
20491
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020492if test "${ac_cv_header_sys_types_h+set}" = set; then
20493 echo "$as_me:$LINENO: checking for sys/types.h" >&5
20494echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20495if test "${ac_cv_header_sys_types_h+set}" = set; then
20496 echo $ECHO_N "(cached) $ECHO_C" >&6
20497fi
20498echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20499echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20500else
20501 # Is the header compilable?
20502echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20503echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20504cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020505/* confdefs.h. */
20506_ACEOF
20507cat confdefs.h >>conftest.$ac_ext
20508cat >>conftest.$ac_ext <<_ACEOF
20509/* end confdefs.h. */
20510$ac_includes_default
20511#include <sys/types.h>
20512_ACEOF
20513rm -f conftest.$ac_objext
20514if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020515 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020516 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020517 grep -v '^ *+' conftest.er1 >conftest.err
20518 rm -f conftest.er1
20519 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020522 { ac_try='test -z "$ac_c_werror_flag"
20523 || test ! -s conftest.err'
20524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20525 (eval $ac_try) 2>&5
20526 ac_status=$?
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); }; } &&
20529 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20531 (eval $ac_try) 2>&5
20532 ac_status=$?
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; }; then
20535 ac_header_compiler=yes
20536else
20537 echo "$as_me: failed program was:" >&5
20538sed 's/^/| /' conftest.$ac_ext >&5
20539
20540ac_header_compiler=no
20541fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020543echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20544echo "${ECHO_T}$ac_header_compiler" >&6
20545
20546# Is the header present?
20547echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20548echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20549cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020550/* confdefs.h. */
20551_ACEOF
20552cat confdefs.h >>conftest.$ac_ext
20553cat >>conftest.$ac_ext <<_ACEOF
20554/* end confdefs.h. */
20555#include <sys/types.h>
20556_ACEOF
20557if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20558 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20559 ac_status=$?
20560 grep -v '^ *+' conftest.er1 >conftest.err
20561 rm -f conftest.er1
20562 cat conftest.err >&5
20563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20564 (exit $ac_status); } >/dev/null; then
20565 if test -s conftest.err; then
20566 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020567 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020568 else
20569 ac_cpp_err=
20570 fi
20571else
20572 ac_cpp_err=yes
20573fi
20574if test -z "$ac_cpp_err"; then
20575 ac_header_preproc=yes
20576else
20577 echo "$as_me: failed program was:" >&5
20578sed 's/^/| /' conftest.$ac_ext >&5
20579
20580 ac_header_preproc=no
20581fi
20582rm -f conftest.err conftest.$ac_ext
20583echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20584echo "${ECHO_T}$ac_header_preproc" >&6
20585
20586# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020587case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20588 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020589 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20590echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020591 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20592echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20593 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020594 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020595 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020596 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20597echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020598 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20599echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20600 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20601echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20602 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20603echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020604 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20605echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020606 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20607echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020608 (
20609 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020610## ----------------------------------- ##
20611## Report this to llvmbugs@cs.uiuc.edu ##
20612## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020613_ASBOX
20614 ) |
20615 sed "s/^/$as_me: WARNING: /" >&2
20616 ;;
20617esac
20618echo "$as_me:$LINENO: checking for sys/types.h" >&5
20619echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20620if test "${ac_cv_header_sys_types_h+set}" = set; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20622else
20623 ac_cv_header_sys_types_h=$ac_header_preproc
20624fi
20625echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20626echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20627
20628fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020629
20630
20631if test "${ac_cv_header_inttypes_h+set}" = set; then
20632 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20633echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20634if test "${ac_cv_header_inttypes_h+set}" = set; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20636fi
20637echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20638echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20639else
20640 # Is the header compilable?
20641echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20642echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20643cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020644/* confdefs.h. */
20645_ACEOF
20646cat confdefs.h >>conftest.$ac_ext
20647cat >>conftest.$ac_ext <<_ACEOF
20648/* end confdefs.h. */
20649$ac_includes_default
20650#include <inttypes.h>
20651_ACEOF
20652rm -f conftest.$ac_objext
20653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020654 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020655 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020656 grep -v '^ *+' conftest.er1 >conftest.err
20657 rm -f conftest.er1
20658 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020661 { ac_try='test -z "$ac_c_werror_flag"
20662 || test ! -s conftest.err'
20663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20664 (eval $ac_try) 2>&5
20665 ac_status=$?
20666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; } &&
20668 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20670 (eval $ac_try) 2>&5
20671 ac_status=$?
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 ac_header_compiler=yes
20675else
20676 echo "$as_me: failed program was:" >&5
20677sed 's/^/| /' conftest.$ac_ext >&5
20678
20679ac_header_compiler=no
20680fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020681rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020682echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20683echo "${ECHO_T}$ac_header_compiler" >&6
20684
20685# Is the header present?
20686echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20687echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20688cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020689/* confdefs.h. */
20690_ACEOF
20691cat confdefs.h >>conftest.$ac_ext
20692cat >>conftest.$ac_ext <<_ACEOF
20693/* end confdefs.h. */
20694#include <inttypes.h>
20695_ACEOF
20696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20698 ac_status=$?
20699 grep -v '^ *+' conftest.er1 >conftest.err
20700 rm -f conftest.er1
20701 cat conftest.err >&5
20702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20703 (exit $ac_status); } >/dev/null; then
20704 if test -s conftest.err; then
20705 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020707 else
20708 ac_cpp_err=
20709 fi
20710else
20711 ac_cpp_err=yes
20712fi
20713if test -z "$ac_cpp_err"; then
20714 ac_header_preproc=yes
20715else
20716 echo "$as_me: failed program was:" >&5
20717sed 's/^/| /' conftest.$ac_ext >&5
20718
20719 ac_header_preproc=no
20720fi
20721rm -f conftest.err conftest.$ac_ext
20722echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20723echo "${ECHO_T}$ac_header_preproc" >&6
20724
20725# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020726case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20727 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020728 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20729echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020730 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20731echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20732 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020733 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020734 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020735 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20736echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020737 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20738echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20739 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20740echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20741 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20742echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020743 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20744echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020745 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20746echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020747 (
20748 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020749## ----------------------------------- ##
20750## Report this to llvmbugs@cs.uiuc.edu ##
20751## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020752_ASBOX
20753 ) |
20754 sed "s/^/$as_me: WARNING: /" >&2
20755 ;;
20756esac
20757echo "$as_me:$LINENO: checking for inttypes.h" >&5
20758echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20759if test "${ac_cv_header_inttypes_h+set}" = set; then
20760 echo $ECHO_N "(cached) $ECHO_C" >&6
20761else
20762 ac_cv_header_inttypes_h=$ac_header_preproc
20763fi
20764echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20765echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20766
20767fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020768
20769
John Criswell7ed43ad2004-07-19 16:12:29 +000020770if test "${ac_cv_header_stdint_h+set}" = set; then
20771 echo "$as_me:$LINENO: checking for stdint.h" >&5
20772echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20773if test "${ac_cv_header_stdint_h+set}" = set; then
20774 echo $ECHO_N "(cached) $ECHO_C" >&6
20775fi
20776echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20777echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20778else
20779 # Is the header compilable?
20780echo "$as_me:$LINENO: checking stdint.h usability" >&5
20781echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20782cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020783/* confdefs.h. */
20784_ACEOF
20785cat confdefs.h >>conftest.$ac_ext
20786cat >>conftest.$ac_ext <<_ACEOF
20787/* end confdefs.h. */
20788$ac_includes_default
20789#include <stdint.h>
20790_ACEOF
20791rm -f conftest.$ac_objext
20792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020793 (eval $ac_compile) 2>conftest.er1
John Criswell7ed43ad2004-07-19 16:12:29 +000020794 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020795 grep -v '^ *+' conftest.er1 >conftest.err
20796 rm -f conftest.er1
20797 cat conftest.err >&5
John Criswell7ed43ad2004-07-19 16:12:29 +000020798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020800 { ac_try='test -z "$ac_c_werror_flag"
20801 || test ! -s conftest.err'
20802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20803 (eval $ac_try) 2>&5
20804 ac_status=$?
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); }; } &&
20807 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000020808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20809 (eval $ac_try) 2>&5
20810 ac_status=$?
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); }; }; then
20813 ac_header_compiler=yes
20814else
20815 echo "$as_me: failed program was:" >&5
20816sed 's/^/| /' conftest.$ac_ext >&5
20817
20818ac_header_compiler=no
20819fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020820rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000020821echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20822echo "${ECHO_T}$ac_header_compiler" >&6
20823
20824# Is the header present?
20825echo "$as_me:$LINENO: checking stdint.h presence" >&5
20826echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20827cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020828/* confdefs.h. */
20829_ACEOF
20830cat confdefs.h >>conftest.$ac_ext
20831cat >>conftest.$ac_ext <<_ACEOF
20832/* end confdefs.h. */
20833#include <stdint.h>
20834_ACEOF
20835if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20837 ac_status=$?
20838 grep -v '^ *+' conftest.er1 >conftest.err
20839 rm -f conftest.er1
20840 cat conftest.err >&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); } >/dev/null; then
20843 if test -s conftest.err; then
20844 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7ed43ad2004-07-19 16:12:29 +000020846 else
20847 ac_cpp_err=
20848 fi
20849else
20850 ac_cpp_err=yes
20851fi
20852if test -z "$ac_cpp_err"; then
20853 ac_header_preproc=yes
20854else
20855 echo "$as_me: failed program was:" >&5
20856sed 's/^/| /' conftest.$ac_ext >&5
20857
20858 ac_header_preproc=no
20859fi
20860rm -f conftest.err conftest.$ac_ext
20861echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20862echo "${ECHO_T}$ac_header_preproc" >&6
20863
20864# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020865case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20866 yes:no: )
John Criswell7ed43ad2004-07-19 16:12:29 +000020867 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20868echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020869 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20870echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20871 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020872 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020873 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020874 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20875echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020876 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20877echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20878 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20879echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20880 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20881echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020882 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20883echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020884 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20885echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020886 (
20887 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020888## ----------------------------------- ##
20889## Report this to llvmbugs@cs.uiuc.edu ##
20890## ----------------------------------- ##
John Criswell7ed43ad2004-07-19 16:12:29 +000020891_ASBOX
20892 ) |
20893 sed "s/^/$as_me: WARNING: /" >&2
20894 ;;
20895esac
20896echo "$as_me:$LINENO: checking for stdint.h" >&5
20897echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20898if test "${ac_cv_header_stdint_h+set}" = set; then
20899 echo $ECHO_N "(cached) $ECHO_C" >&6
20900else
20901 ac_cv_header_stdint_h=$ac_header_preproc
20902fi
20903echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20904echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20905
20906fi
John Criswell7ed43ad2004-07-19 16:12:29 +000020907
20908
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020909
John Criswell7a73b802003-06-30 21:59:07 +000020910echo "$as_me:$LINENO: checking for pid_t" >&5
20911echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20912if test "${ac_cv_type_pid_t+set}" = set; then
20913 echo $ECHO_N "(cached) $ECHO_C" >&6
20914else
20915 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020916/* confdefs.h. */
20917_ACEOF
20918cat confdefs.h >>conftest.$ac_ext
20919cat >>conftest.$ac_ext <<_ACEOF
20920/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020921$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020922int
20923main ()
20924{
20925if ((pid_t *) 0)
20926 return 0;
20927if (sizeof (pid_t))
20928 return 0;
20929 ;
20930 return 0;
20931}
20932_ACEOF
20933rm -f conftest.$ac_objext
20934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020935 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020936 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020937 grep -v '^ *+' conftest.er1 >conftest.err
20938 rm -f conftest.er1
20939 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20941 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020942 { ac_try='test -z "$ac_c_werror_flag"
20943 || test ! -s conftest.err'
20944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20945 (eval $ac_try) 2>&5
20946 ac_status=$?
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); }; } &&
20949 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20951 (eval $ac_try) 2>&5
20952 ac_status=$?
20953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20954 (exit $ac_status); }; }; then
20955 ac_cv_type_pid_t=yes
20956else
20957 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020958sed 's/^/| /' conftest.$ac_ext >&5
20959
John Criswell7a73b802003-06-30 21:59:07 +000020960ac_cv_type_pid_t=no
20961fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020962rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020963fi
20964echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20965echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20966if test $ac_cv_type_pid_t = yes; then
20967 :
20968else
20969
20970cat >>confdefs.h <<_ACEOF
20971#define pid_t int
20972_ACEOF
20973
20974fi
20975
20976echo "$as_me:$LINENO: checking for size_t" >&5
20977echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20978if test "${ac_cv_type_size_t+set}" = set; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20980else
20981 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020982/* confdefs.h. */
20983_ACEOF
20984cat confdefs.h >>conftest.$ac_ext
20985cat >>conftest.$ac_ext <<_ACEOF
20986/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020987$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020988int
20989main ()
20990{
20991if ((size_t *) 0)
20992 return 0;
20993if (sizeof (size_t))
20994 return 0;
20995 ;
20996 return 0;
20997}
20998_ACEOF
20999rm -f conftest.$ac_objext
21000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021001 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021002 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021003 grep -v '^ *+' conftest.er1 >conftest.err
21004 rm -f conftest.er1
21005 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021008 { ac_try='test -z "$ac_c_werror_flag"
21009 || test ! -s conftest.err'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21012 ac_status=$?
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; } &&
21015 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21018 ac_status=$?
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; }; then
21021 ac_cv_type_size_t=yes
21022else
21023 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021024sed 's/^/| /' conftest.$ac_ext >&5
21025
John Criswell7a73b802003-06-30 21:59:07 +000021026ac_cv_type_size_t=no
21027fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021028rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021029fi
21030echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21031echo "${ECHO_T}$ac_cv_type_size_t" >&6
21032if test $ac_cv_type_size_t = yes; then
21033 :
21034else
21035
21036cat >>confdefs.h <<_ACEOF
21037#define size_t unsigned
21038_ACEOF
21039
21040fi
21041
21042echo "$as_me:$LINENO: checking for int64_t" >&5
21043echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
21044if test "${ac_cv_type_int64_t+set}" = set; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21046else
21047 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021048/* confdefs.h. */
21049_ACEOF
21050cat confdefs.h >>conftest.$ac_ext
21051cat >>conftest.$ac_ext <<_ACEOF
21052/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021053$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000021054int
21055main ()
21056{
21057if ((int64_t *) 0)
21058 return 0;
21059if (sizeof (int64_t))
21060 return 0;
21061 ;
21062 return 0;
21063}
21064_ACEOF
21065rm -f conftest.$ac_objext
21066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021067 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021068 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021069 grep -v '^ *+' conftest.er1 >conftest.err
21070 rm -f conftest.er1
21071 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21073 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021074 { ac_try='test -z "$ac_c_werror_flag"
21075 || test ! -s conftest.err'
21076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21077 (eval $ac_try) 2>&5
21078 ac_status=$?
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); }; } &&
21081 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21084 ac_status=$?
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; }; then
21087 ac_cv_type_int64_t=yes
21088else
21089 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021090sed 's/^/| /' conftest.$ac_ext >&5
21091
John Criswell7a73b802003-06-30 21:59:07 +000021092ac_cv_type_int64_t=no
21093fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021094rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021095fi
21096echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
21097echo "${ECHO_T}$ac_cv_type_int64_t" >&6
21098if test $ac_cv_type_int64_t = yes; then
21099
21100cat >>confdefs.h <<_ACEOF
21101#define HAVE_INT64_T 1
21102_ACEOF
21103
21104
21105else
21106 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
21107echo "$as_me: error: Type int64_t required but not found" >&2;}
21108 { (exit 1); exit 1; }; }
21109fi
21110
21111echo "$as_me:$LINENO: checking for uint64_t" >&5
21112echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
21113if test "${ac_cv_type_uint64_t+set}" = set; then
21114 echo $ECHO_N "(cached) $ECHO_C" >&6
21115else
21116 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021117/* confdefs.h. */
21118_ACEOF
21119cat confdefs.h >>conftest.$ac_ext
21120cat >>conftest.$ac_ext <<_ACEOF
21121/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021122$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000021123int
21124main ()
21125{
21126if ((uint64_t *) 0)
21127 return 0;
21128if (sizeof (uint64_t))
21129 return 0;
21130 ;
21131 return 0;
21132}
21133_ACEOF
21134rm -f conftest.$ac_objext
21135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021136 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021137 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021138 grep -v '^ *+' conftest.er1 >conftest.err
21139 rm -f conftest.er1
21140 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21142 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021143 { ac_try='test -z "$ac_c_werror_flag"
21144 || test ! -s conftest.err'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; } &&
21150 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21153 ac_status=$?
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; }; then
21156 ac_cv_type_uint64_t=yes
21157else
21158 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021159sed 's/^/| /' conftest.$ac_ext >&5
21160
John Criswell7a73b802003-06-30 21:59:07 +000021161ac_cv_type_uint64_t=no
21162fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021164fi
21165echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
21166echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
21167if test $ac_cv_type_uint64_t = yes; then
21168
21169cat >>confdefs.h <<_ACEOF
21170#define HAVE_UINT64_T 1
21171_ACEOF
21172
21173
21174else
Misha Brukmanceca9042004-09-02 23:02:30 +000021175 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000021176echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
21177if test "${ac_cv_type_u_int64_t+set}" = set; then
21178 echo $ECHO_N "(cached) $ECHO_C" >&6
21179else
21180 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000021181/* confdefs.h. */
21182_ACEOF
21183cat confdefs.h >>conftest.$ac_ext
21184cat >>conftest.$ac_ext <<_ACEOF
21185/* end confdefs.h. */
21186$ac_includes_default
21187int
21188main ()
21189{
21190if ((u_int64_t *) 0)
21191 return 0;
21192if (sizeof (u_int64_t))
21193 return 0;
21194 ;
21195 return 0;
21196}
21197_ACEOF
21198rm -f conftest.$ac_objext
21199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021200 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000021201 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021202 grep -v '^ *+' conftest.er1 >conftest.err
21203 rm -f conftest.er1
21204 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000021205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021207 { ac_try='test -z "$ac_c_werror_flag"
21208 || test ! -s conftest.err'
21209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21210 (eval $ac_try) 2>&5
21211 ac_status=$?
21212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21213 (exit $ac_status); }; } &&
21214 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000021215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21216 (eval $ac_try) 2>&5
21217 ac_status=$?
21218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); }; }; then
21220 ac_cv_type_u_int64_t=yes
21221else
21222 echo "$as_me: failed program was:" >&5
21223sed 's/^/| /' conftest.$ac_ext >&5
21224
21225ac_cv_type_u_int64_t=no
21226fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021227rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000021228fi
21229echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
21230echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
21231if test $ac_cv_type_u_int64_t = yes; then
21232
21233cat >>confdefs.h <<_ACEOF
21234#define HAVE_U_INT64_T 1
21235_ACEOF
21236
21237
Misha Brukmanceca9042004-09-02 23:02:30 +000021238else
21239 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
21240echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
21241 { (exit 1); exit 1; }; }
21242fi
21243
John Criswell679ff312004-09-02 18:44:44 +000021244fi
21245
John Criswell7a73b802003-06-30 21:59:07 +000021246echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21247echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21248if test "${ac_cv_header_time+set}" = set; then
21249 echo $ECHO_N "(cached) $ECHO_C" >&6
21250else
21251 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021252/* confdefs.h. */
21253_ACEOF
21254cat confdefs.h >>conftest.$ac_ext
21255cat >>conftest.$ac_ext <<_ACEOF
21256/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021257#include <sys/types.h>
21258#include <sys/time.h>
21259#include <time.h>
21260
John Criswell7a73b802003-06-30 21:59:07 +000021261int
21262main ()
21263{
21264if ((struct tm *) 0)
21265return 0;
21266 ;
21267 return 0;
21268}
21269_ACEOF
21270rm -f conftest.$ac_objext
21271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021272 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021273 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021274 grep -v '^ *+' conftest.er1 >conftest.err
21275 rm -f conftest.er1
21276 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021279 { ac_try='test -z "$ac_c_werror_flag"
21280 || test ! -s conftest.err'
21281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21282 (eval $ac_try) 2>&5
21283 ac_status=$?
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); }; } &&
21286 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21288 (eval $ac_try) 2>&5
21289 ac_status=$?
21290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21291 (exit $ac_status); }; }; then
21292 ac_cv_header_time=yes
21293else
21294 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021295sed 's/^/| /' conftest.$ac_ext >&5
21296
John Criswell7a73b802003-06-30 21:59:07 +000021297ac_cv_header_time=no
21298fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021299rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021300fi
21301echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21302echo "${ECHO_T}$ac_cv_header_time" >&6
21303if test $ac_cv_header_time = yes; then
21304
21305cat >>confdefs.h <<\_ACEOF
21306#define TIME_WITH_SYS_TIME 1
21307_ACEOF
21308
21309fi
21310
21311echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21312echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21313if test "${ac_cv_struct_tm+set}" = set; then
21314 echo $ECHO_N "(cached) $ECHO_C" >&6
21315else
21316 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021317/* confdefs.h. */
21318_ACEOF
21319cat confdefs.h >>conftest.$ac_ext
21320cat >>conftest.$ac_ext <<_ACEOF
21321/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021322#include <sys/types.h>
21323#include <time.h>
21324
John Criswell7a73b802003-06-30 21:59:07 +000021325int
21326main ()
21327{
21328struct tm *tp; tp->tm_sec;
21329 ;
21330 return 0;
21331}
21332_ACEOF
21333rm -f conftest.$ac_objext
21334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021335 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021336 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021337 grep -v '^ *+' conftest.er1 >conftest.err
21338 rm -f conftest.er1
21339 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021342 { ac_try='test -z "$ac_c_werror_flag"
21343 || test ! -s conftest.err'
21344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21345 (eval $ac_try) 2>&5
21346 ac_status=$?
21347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21348 (exit $ac_status); }; } &&
21349 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21351 (eval $ac_try) 2>&5
21352 ac_status=$?
21353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21354 (exit $ac_status); }; }; then
21355 ac_cv_struct_tm=time.h
21356else
21357 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021358sed 's/^/| /' conftest.$ac_ext >&5
21359
John Criswell7a73b802003-06-30 21:59:07 +000021360ac_cv_struct_tm=sys/time.h
21361fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021363fi
21364echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21365echo "${ECHO_T}$ac_cv_struct_tm" >&6
21366if test $ac_cv_struct_tm = sys/time.h; then
21367
21368cat >>confdefs.h <<\_ACEOF
21369#define TM_IN_SYS_TIME 1
21370_ACEOF
21371
21372fi
21373
21374
John Criswella0137d32003-10-13 16:22:01 +000021375
Reid Spencer2706f8c2004-09-19 23:53:36 +000021376 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
Brian Gaekeadfe28d2004-07-21 03:50:25 +000021377echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
Reid Spencer2706f8c2004-09-19 23:53:36 +000021378 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000021379ac_cpp='$CPP $CPPFLAGS'
21380ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21381ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21382ac_compiler_gnu=$ac_cv_c_compiler_gnu
21383
Reid Spencer2706f8c2004-09-19 23:53:36 +000021384 if test "$cross_compiling" = yes; then
21385 ac_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000021386else
21387 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000021388
21389 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000021390_ACEOF
21391cat confdefs.h >>conftest.$ac_ext
21392cat >>conftest.$ac_ext <<_ACEOF
21393/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000021394
John Criswella0137d32003-10-13 16:22:01 +000021395#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000021396#include <stdlib.h>
21397
John Criswella0137d32003-10-13 16:22:01 +000021398int
21399main ()
21400{
21401
Reid Spencer2706f8c2004-09-19 23:53:36 +000021402volatile double A, B;
21403char Buffer[100];
21404A = 1;
21405A /= 10.0;
21406sprintf(Buffer, "%a", A);
21407B = atof(Buffer);
21408if (A != B)
21409 return (1);
21410if (A != 0x1.999999999999ap-4)
21411 return (1);
21412return (0);
John Criswella0137d32003-10-13 16:22:01 +000021413 ;
21414 return 0;
21415}
21416_ACEOF
21417rm -f conftest$ac_exeext
21418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21419 (eval $ac_link) 2>&5
21420 ac_status=$?
21421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21424 (eval $ac_try) 2>&5
21425 ac_status=$?
21426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427 (exit $ac_status); }; }; then
21428 ac_c_printf_a=yes
21429else
21430 echo "$as_me: program exited with status $ac_status" >&5
21431echo "$as_me: failed program was:" >&5
21432sed 's/^/| /' conftest.$ac_ext >&5
21433
21434( exit $ac_status )
21435ac_c_printf_a=no
21436fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021437rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000021438fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021439 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000021440ac_cpp='$CPP $CPPFLAGS'
21441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21443ac_compiler_gnu=$ac_cv_c_compiler_gnu
21444
Reid Spencer2706f8c2004-09-19 23:53:36 +000021445 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
Brian Gaekeadfe28d2004-07-21 03:50:25 +000021446echo "${ECHO_T}$ac_c_printf_a" >&6
Reid Spencer2706f8c2004-09-19 23:53:36 +000021447 if test "$ac_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000021448
21449cat >>confdefs.h <<\_ACEOF
21450#define HAVE_PRINTF_A 1
21451_ACEOF
21452
Reid Spencer2706f8c2004-09-19 23:53:36 +000021453 fi
John Criswella0137d32003-10-13 16:22:01 +000021454
21455
John Criswell0021c312004-02-13 21:57:29 +000021456echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
21457echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
21458if test "${ac_cv_c_bigendian+set}" = set; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
21460else
21461 # See if sys/param.h defines the BYTE_ORDER macro.
21462cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021463/* confdefs.h. */
21464_ACEOF
21465cat confdefs.h >>conftest.$ac_ext
21466cat >>conftest.$ac_ext <<_ACEOF
21467/* end confdefs.h. */
21468#include <sys/types.h>
21469#include <sys/param.h>
21470
21471int
21472main ()
21473{
21474#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
21475 bogus endian macros
21476#endif
21477
21478 ;
21479 return 0;
21480}
21481_ACEOF
21482rm -f conftest.$ac_objext
21483if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021484 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021485 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021486 grep -v '^ *+' conftest.er1 >conftest.err
21487 rm -f conftest.er1
21488 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21490 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021491 { ac_try='test -z "$ac_c_werror_flag"
21492 || test ! -s conftest.err'
21493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21494 (eval $ac_try) 2>&5
21495 ac_status=$?
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); }; } &&
21498 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21501 ac_status=$?
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; }; then
21504 # It does; now see whether it defined to BIG_ENDIAN or not.
21505cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021506/* confdefs.h. */
21507_ACEOF
21508cat confdefs.h >>conftest.$ac_ext
21509cat >>conftest.$ac_ext <<_ACEOF
21510/* end confdefs.h. */
21511#include <sys/types.h>
21512#include <sys/param.h>
21513
21514int
21515main ()
21516{
21517#if BYTE_ORDER != BIG_ENDIAN
21518 not big endian
21519#endif
21520
21521 ;
21522 return 0;
21523}
21524_ACEOF
21525rm -f conftest.$ac_objext
21526if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021527 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021528 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021529 grep -v '^ *+' conftest.er1 >conftest.err
21530 rm -f conftest.er1
21531 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021534 { ac_try='test -z "$ac_c_werror_flag"
21535 || test ! -s conftest.err'
21536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21537 (eval $ac_try) 2>&5
21538 ac_status=$?
21539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); }; } &&
21541 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21544 ac_status=$?
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; }; then
21547 ac_cv_c_bigendian=yes
21548else
21549 echo "$as_me: failed program was:" >&5
21550sed 's/^/| /' conftest.$ac_ext >&5
21551
21552ac_cv_c_bigendian=no
21553fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021554rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021555else
21556 echo "$as_me: failed program was:" >&5
21557sed 's/^/| /' conftest.$ac_ext >&5
21558
21559# It does not; compile a test program.
21560if test "$cross_compiling" = yes; then
21561 # try to guess the endianness by grepping values into an object file
21562 ac_cv_c_bigendian=unknown
21563 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021564/* confdefs.h. */
21565_ACEOF
21566cat confdefs.h >>conftest.$ac_ext
21567cat >>conftest.$ac_ext <<_ACEOF
21568/* end confdefs.h. */
21569short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21570short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21571void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21572short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21573short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21574void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21575int
21576main ()
21577{
21578 _ascii (); _ebcdic ();
21579 ;
21580 return 0;
21581}
21582_ACEOF
21583rm -f conftest.$ac_objext
21584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021585 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021586 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021587 grep -v '^ *+' conftest.er1 >conftest.err
21588 rm -f conftest.er1
21589 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021592 { ac_try='test -z "$ac_c_werror_flag"
21593 || test ! -s conftest.err'
21594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21595 (eval $ac_try) 2>&5
21596 ac_status=$?
21597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21598 (exit $ac_status); }; } &&
21599 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21601 (eval $ac_try) 2>&5
21602 ac_status=$?
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); }; }; then
21605 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21606 ac_cv_c_bigendian=yes
21607fi
21608if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21609 if test "$ac_cv_c_bigendian" = unknown; then
21610 ac_cv_c_bigendian=no
21611 else
21612 # finding both strings is unlikely to happen, but who knows?
21613 ac_cv_c_bigendian=unknown
21614 fi
21615fi
21616else
21617 echo "$as_me: failed program was:" >&5
21618sed 's/^/| /' conftest.$ac_ext >&5
21619
21620fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021622else
21623 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021624/* confdefs.h. */
21625_ACEOF
21626cat confdefs.h >>conftest.$ac_ext
21627cat >>conftest.$ac_ext <<_ACEOF
21628/* end confdefs.h. */
21629int
21630main ()
21631{
21632 /* Are we little or big endian? From Harbison&Steele. */
21633 union
21634 {
21635 long l;
21636 char c[sizeof (long)];
21637 } u;
21638 u.l = 1;
21639 exit (u.c[sizeof (long) - 1] == 1);
21640}
21641_ACEOF
21642rm -f conftest$ac_exeext
21643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21644 (eval $ac_link) 2>&5
21645 ac_status=$?
21646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21649 (eval $ac_try) 2>&5
21650 ac_status=$?
21651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21652 (exit $ac_status); }; }; then
21653 ac_cv_c_bigendian=no
21654else
21655 echo "$as_me: program exited with status $ac_status" >&5
21656echo "$as_me: failed program was:" >&5
21657sed 's/^/| /' conftest.$ac_ext >&5
21658
21659( exit $ac_status )
21660ac_cv_c_bigendian=yes
21661fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021662rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021663fi
21664fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021665rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021666fi
21667echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21668echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21669case $ac_cv_c_bigendian in
21670 yes)
21671 ENDIAN=big
21672 ;;
21673 no)
21674 ENDIAN=little
21675 ;;
21676 *)
21677 { { echo "$as_me:$LINENO: error: unknown endianness
21678presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21679echo "$as_me: error: unknown endianness
21680presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21681 { (exit 1); exit 1; }; } ;;
21682esac
21683
21684
John Criswell7a73b802003-06-30 21:59:07 +000021685echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21686echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21687if test "${ac_cv_cxx_namespaces+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21689else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021690 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000021691ac_cpp='$CXXCPP $CPPFLAGS'
21692ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21693ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21694ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21695
21696 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021697/* confdefs.h. */
21698_ACEOF
21699cat confdefs.h >>conftest.$ac_ext
21700cat >>conftest.$ac_ext <<_ACEOF
21701/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021702namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000021703int
21704main ()
21705{
21706using namespace Outer::Inner; return i;
21707 ;
21708 return 0;
21709}
21710_ACEOF
21711rm -f conftest.$ac_objext
21712if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021713 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021714 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021715 grep -v '^ *+' conftest.er1 >conftest.err
21716 rm -f conftest.er1
21717 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021720 { ac_try='test -z "$ac_cxx_werror_flag"
21721 || test ! -s conftest.err'
21722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21723 (eval $ac_try) 2>&5
21724 ac_status=$?
21725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21726 (exit $ac_status); }; } &&
21727 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21729 (eval $ac_try) 2>&5
21730 ac_status=$?
21731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21732 (exit $ac_status); }; }; then
21733 ac_cv_cxx_namespaces=yes
21734else
21735 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021736sed 's/^/| /' conftest.$ac_ext >&5
21737
John Criswell7a73b802003-06-30 21:59:07 +000021738ac_cv_cxx_namespaces=no
21739fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021741 ac_ext=c
21742ac_cpp='$CPP $CPPFLAGS'
21743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21745ac_compiler_gnu=$ac_cv_c_compiler_gnu
21746
21747
21748fi
21749echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21750echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21751if test "$ac_cv_cxx_namespaces" = yes; then
21752
21753cat >>confdefs.h <<\_ACEOF
21754#define HAVE_NAMESPACES
21755_ACEOF
21756
21757fi
21758
Brian Gaeke90583492003-11-10 03:06:28 +000021759echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21760echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21761if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021762 echo $ECHO_N "(cached) $ECHO_C" >&6
21763else
21764
John Criswell7a73b802003-06-30 21:59:07 +000021765 ac_ext=cc
21766ac_cpp='$CXXCPP $CPPFLAGS'
21767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21770
21771 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021772/* confdefs.h. */
21773_ACEOF
21774cat confdefs.h >>conftest.$ac_ext
21775cat >>conftest.$ac_ext <<_ACEOF
21776/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021777#include <ext/hash_map>
21778#ifdef HAVE_NAMESPACES
21779using namespace std;
21780#endif
John Criswell7a73b802003-06-30 21:59:07 +000021781int
21782main ()
21783{
Brian Gaeke90583492003-11-10 03:06:28 +000021784hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021785 ;
21786 return 0;
21787}
21788_ACEOF
21789rm -f conftest.$ac_objext
21790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021791 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021792 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021793 grep -v '^ *+' conftest.er1 >conftest.err
21794 rm -f conftest.er1
21795 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021798 { ac_try='test -z "$ac_cxx_werror_flag"
21799 || test ! -s conftest.err'
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21802 ac_status=$?
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; } &&
21805 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21808 ac_status=$?
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021811 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000021812else
21813 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021814sed 's/^/| /' conftest.$ac_ext >&5
21815
Brian Gaeke90583492003-11-10 03:06:28 +000021816ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021817fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021819 ac_ext=c
21820ac_cpp='$CPP $CPPFLAGS'
21821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21823ac_compiler_gnu=$ac_cv_c_compiler_gnu
21824
John Criswell7a73b802003-06-30 21:59:07 +000021825fi
Brian Gaeke90583492003-11-10 03:06:28 +000021826echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21827echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021828 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21829 then
John Criswell9f011862004-09-24 18:28:00 +000021830
21831cat >>confdefs.h <<\_ACEOF
21832#define HAVE_STD_EXT_HASH_MAP 1
21833_ACEOF
21834
21835 else
21836
21837cat >>confdefs.h <<\_ACEOF
21838#define HAVE_STD_EXT_HASH_MAP 0
21839_ACEOF
21840
Brian Gaeke90583492003-11-10 03:06:28 +000021841 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021842
Brian Gaeke90583492003-11-10 03:06:28 +000021843 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21844echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21845if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21846 echo $ECHO_N "(cached) $ECHO_C" >&6
21847else
21848
Brian Gaeke90583492003-11-10 03:06:28 +000021849 ac_ext=cc
21850ac_cpp='$CXXCPP $CPPFLAGS'
21851ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21852ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21853ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21854
21855 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021856/* confdefs.h. */
21857_ACEOF
21858cat confdefs.h >>conftest.$ac_ext
21859cat >>conftest.$ac_ext <<_ACEOF
21860/* end confdefs.h. */
21861#include <ext/hash_map>
21862#ifdef HAVE_NAMESPACES
21863using namespace __gnu_cxx;
21864#endif
21865int
21866main ()
21867{
21868hash_map<int,int> t;
21869 ;
21870 return 0;
21871}
21872_ACEOF
21873rm -f conftest.$ac_objext
21874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021875 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021876 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021877 grep -v '^ *+' conftest.er1 >conftest.err
21878 rm -f conftest.er1
21879 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21881 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021882 { ac_try='test -z "$ac_cxx_werror_flag"
21883 || test ! -s conftest.err'
21884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21885 (eval $ac_try) 2>&5
21886 ac_status=$?
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); }; } &&
21889 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21891 (eval $ac_try) 2>&5
21892 ac_status=$?
21893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21894 (exit $ac_status); }; }; then
21895 ac_cv_cxx_have_gnu_ext_hash_map=yes
21896else
21897 echo "$as_me: failed program was:" >&5
21898sed 's/^/| /' conftest.$ac_ext >&5
21899
21900ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021901fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021902rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021903 ac_ext=c
21904ac_cpp='$CPP $CPPFLAGS'
21905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21907ac_compiler_gnu=$ac_cv_c_compiler_gnu
21908
21909fi
21910echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21911echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021912 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21913 then
John Criswell9f011862004-09-24 18:28:00 +000021914
21915cat >>confdefs.h <<\_ACEOF
21916#define HAVE_GNU_EXT_HASH_MAP 1
21917_ACEOF
21918
21919 else
21920
21921cat >>confdefs.h <<\_ACEOF
21922#define HAVE_GNU_EXT_HASH_MAP 0
21923_ACEOF
21924
Brian Gaeke90583492003-11-10 03:06:28 +000021925 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021926
Brian Gaeke90583492003-11-10 03:06:28 +000021927 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21928echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21929if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21931else
John Criswell7a73b802003-06-30 21:59:07 +000021932
Brian Gaeke90583492003-11-10 03:06:28 +000021933 ac_ext=cc
21934ac_cpp='$CXXCPP $CPPFLAGS'
21935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21938
21939 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021940/* confdefs.h. */
21941_ACEOF
21942cat confdefs.h >>conftest.$ac_ext
21943cat >>conftest.$ac_ext <<_ACEOF
21944/* end confdefs.h. */
21945#include <hash_map>
21946int
21947main ()
21948{
21949hash_map<int,int> t;
21950 ;
21951 return 0;
21952}
21953_ACEOF
21954rm -f conftest.$ac_objext
21955if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021956 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021957 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021958 grep -v '^ *+' conftest.er1 >conftest.err
21959 rm -f conftest.er1
21960 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021963 { ac_try='test -z "$ac_cxx_werror_flag"
21964 || test ! -s conftest.err'
21965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21967 ac_status=$?
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; } &&
21970 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21972 (eval $ac_try) 2>&5
21973 ac_status=$?
21974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21975 (exit $ac_status); }; }; then
21976 ac_cv_cxx_have_global_hash_map=yes
21977else
21978 echo "$as_me: failed program was:" >&5
21979sed 's/^/| /' conftest.$ac_ext >&5
21980
21981ac_cv_cxx_have_global_hash_map=no
21982fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021983rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021984 ac_ext=c
21985ac_cpp='$CPP $CPPFLAGS'
21986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21988ac_compiler_gnu=$ac_cv_c_compiler_gnu
21989
21990fi
21991echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21992echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021993 if test "$ac_cv_cxx_have_global_hash_map" = yes
21994 then
John Criswell9f011862004-09-24 18:28:00 +000021995
21996cat >>confdefs.h <<\_ACEOF
21997#define HAVE_GLOBAL_HASH_MAP 1
21998_ACEOF
21999
22000 else
22001
22002cat >>confdefs.h <<\_ACEOF
22003#define HAVE_GLOBAL_HASH_MAP 0
22004_ACEOF
22005
Brian Gaeke90583492003-11-10 03:06:28 +000022006 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022007
Brian Gaeke90583492003-11-10 03:06:28 +000022008echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
22009echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
22010if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000022011 echo $ECHO_N "(cached) $ECHO_C" >&6
22012else
22013
John Criswell7a73b802003-06-30 21:59:07 +000022014 ac_ext=cc
22015ac_cpp='$CXXCPP $CPPFLAGS'
22016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22019
22020 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022021/* confdefs.h. */
22022_ACEOF
22023cat confdefs.h >>conftest.$ac_ext
22024cat >>conftest.$ac_ext <<_ACEOF
22025/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022026#include <ext/hash_set>
22027#ifdef HAVE_NAMESPACES
22028using namespace std;
22029#endif
John Criswell7a73b802003-06-30 21:59:07 +000022030int
22031main ()
22032{
Brian Gaeke90583492003-11-10 03:06:28 +000022033hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000022034 ;
22035 return 0;
22036}
22037_ACEOF
22038rm -f conftest.$ac_objext
22039if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022040 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022041 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022042 grep -v '^ *+' conftest.er1 >conftest.err
22043 rm -f conftest.er1
22044 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022047 { ac_try='test -z "$ac_cxx_werror_flag"
22048 || test ! -s conftest.err'
22049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050 (eval $ac_try) 2>&5
22051 ac_status=$?
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; } &&
22054 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22056 (eval $ac_try) 2>&5
22057 ac_status=$?
22058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22059 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000022060 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000022061else
22062 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022063sed 's/^/| /' conftest.$ac_ext >&5
22064
Brian Gaeke90583492003-11-10 03:06:28 +000022065ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000022066fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022067rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000022068 ac_ext=c
22069ac_cpp='$CPP $CPPFLAGS'
22070ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22071ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22072ac_compiler_gnu=$ac_cv_c_compiler_gnu
22073
22074fi
22075echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
22076echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000022077 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
22078 then
John Criswell9f011862004-09-24 18:28:00 +000022079
22080cat >>confdefs.h <<\_ACEOF
22081#define HAVE_STD_EXT_HASH_SET 1
22082_ACEOF
22083
22084 else
22085
22086cat >>confdefs.h <<\_ACEOF
22087#define HAVE_STD_EXT_HASH_SET 0
22088_ACEOF
22089
Brian Gaeke90583492003-11-10 03:06:28 +000022090 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022091
Brian Gaeke90583492003-11-10 03:06:28 +000022092 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
22093echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
22094if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
22095 echo $ECHO_N "(cached) $ECHO_C" >&6
22096else
22097
Brian Gaeke90583492003-11-10 03:06:28 +000022098 ac_ext=cc
22099ac_cpp='$CXXCPP $CPPFLAGS'
22100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22103
John Criswell7a73b802003-06-30 21:59:07 +000022104 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022105/* confdefs.h. */
22106_ACEOF
22107cat confdefs.h >>conftest.$ac_ext
22108cat >>conftest.$ac_ext <<_ACEOF
22109/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022110#include <ext/hash_set>
22111#ifdef HAVE_NAMESPACES
22112using namespace __gnu_cxx;
22113#endif
John Criswell7a73b802003-06-30 21:59:07 +000022114int
22115main ()
22116{
Brian Gaeke90583492003-11-10 03:06:28 +000022117hash_set<int> t;
22118 ;
22119 return 0;
22120}
22121_ACEOF
22122rm -f conftest.$ac_objext
22123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022124 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000022125 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022126 grep -v '^ *+' conftest.er1 >conftest.err
22127 rm -f conftest.er1
22128 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000022129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22130 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022131 { ac_try='test -z "$ac_cxx_werror_flag"
22132 || test ! -s conftest.err'
22133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22134 (eval $ac_try) 2>&5
22135 ac_status=$?
22136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22137 (exit $ac_status); }; } &&
22138 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000022139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22140 (eval $ac_try) 2>&5
22141 ac_status=$?
22142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22143 (exit $ac_status); }; }; then
22144 ac_cv_cxx_have_gnu_ext_hash_set=yes
22145else
22146 echo "$as_me: failed program was:" >&5
22147sed 's/^/| /' conftest.$ac_ext >&5
22148
22149ac_cv_cxx_have_gnu_ext_hash_set=no
22150fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000022152 ac_ext=c
22153ac_cpp='$CPP $CPPFLAGS'
22154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22156ac_compiler_gnu=$ac_cv_c_compiler_gnu
22157
22158fi
22159echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
22160echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000022161 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
22162 then
John Criswell9f011862004-09-24 18:28:00 +000022163
22164cat >>confdefs.h <<\_ACEOF
22165#define HAVE_GNU_EXT_HASH_SET 1
22166_ACEOF
22167
22168 else
22169
22170cat >>confdefs.h <<\_ACEOF
22171#define HAVE_GNU_EXT_HASH_SET 0
22172_ACEOF
22173
Brian Gaeke90583492003-11-10 03:06:28 +000022174 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022175
Brian Gaeke90583492003-11-10 03:06:28 +000022176 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
22177echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
22178if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
22179 echo $ECHO_N "(cached) $ECHO_C" >&6
22180else
22181
Brian Gaeke90583492003-11-10 03:06:28 +000022182 ac_ext=cc
22183ac_cpp='$CXXCPP $CPPFLAGS'
22184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22187
22188 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000022189/* confdefs.h. */
22190_ACEOF
22191cat confdefs.h >>conftest.$ac_ext
22192cat >>conftest.$ac_ext <<_ACEOF
22193/* end confdefs.h. */
22194#include <hash_set>
22195int
22196main ()
22197{
John Criswell7a73b802003-06-30 21:59:07 +000022198hash_set<int> t; return 0;
22199 ;
22200 return 0;
22201}
22202_ACEOF
22203rm -f conftest.$ac_objext
22204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022205 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022206 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022207 grep -v '^ *+' conftest.er1 >conftest.err
22208 rm -f conftest.er1
22209 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022212 { ac_try='test -z "$ac_cxx_werror_flag"
22213 || test ! -s conftest.err'
22214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22216 ac_status=$?
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; } &&
22219 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22222 ac_status=$?
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000022225 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000022226else
22227 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022228sed 's/^/| /' conftest.$ac_ext >&5
22229
Brian Gaeke90583492003-11-10 03:06:28 +000022230ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000022231fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022233 ac_ext=c
22234ac_cpp='$CPP $CPPFLAGS'
22235ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22236ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22237ac_compiler_gnu=$ac_cv_c_compiler_gnu
22238
John Criswell7a73b802003-06-30 21:59:07 +000022239fi
Brian Gaeke90583492003-11-10 03:06:28 +000022240echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
22241echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000022242 if test "$ac_cv_cxx_have_global_hash_set" = yes
22243 then
John Criswell9f011862004-09-24 18:28:00 +000022244
22245cat >>confdefs.h <<\_ACEOF
22246#define HAVE_GLOBAL_HASH_SET 1
22247_ACEOF
22248
22249 else
22250
22251cat >>confdefs.h <<\_ACEOF
22252#define HAVE_GLOBAL_HASH_SET 0
22253_ACEOF
22254
Brian Gaeke90583492003-11-10 03:06:28 +000022255 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000022256
John Criswell7a73b802003-06-30 21:59:07 +000022257echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
22258echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
22259if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22261else
22262
John Criswell7a73b802003-06-30 21:59:07 +000022263 ac_ext=cc
22264ac_cpp='$CXXCPP $CPPFLAGS'
22265ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22266ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22267ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22268
22269 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022270/* confdefs.h. */
22271_ACEOF
22272cat confdefs.h >>conftest.$ac_ext
22273cat >>conftest.$ac_ext <<_ACEOF
22274/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022275#include <iterator>
22276#ifdef HAVE_NAMESPACES
22277using namespace std;
22278#endif
John Criswell7a73b802003-06-30 21:59:07 +000022279int
22280main ()
22281{
22282iterator<int,int,int> t; return 0;
22283 ;
22284 return 0;
22285}
22286_ACEOF
22287rm -f conftest.$ac_objext
22288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022289 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022290 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022291 grep -v '^ *+' conftest.er1 >conftest.err
22292 rm -f conftest.er1
22293 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022296 { ac_try='test -z "$ac_cxx_werror_flag"
22297 || test ! -s conftest.err'
22298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22299 (eval $ac_try) 2>&5
22300 ac_status=$?
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); }; } &&
22303 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22306 ac_status=$?
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; }; then
22309 ac_cv_cxx_have_std_iterator=yes
22310else
22311 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022312sed 's/^/| /' conftest.$ac_ext >&5
22313
John Criswell7a73b802003-06-30 21:59:07 +000022314ac_cv_cxx_have_std_iterator=no
22315fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022317 ac_ext=c
22318ac_cpp='$CPP $CPPFLAGS'
22319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22321ac_compiler_gnu=$ac_cv_c_compiler_gnu
22322
22323
22324fi
22325echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
22326echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000022327if test "$ac_cv_cxx_have_std_iterator" = yes
22328then
John Criswell40468462004-09-24 21:19:06 +000022329
22330cat >>confdefs.h <<\_ACEOF
22331#define HAVE_STD_ITERATOR 1
22332_ACEOF
22333
22334else
22335
22336cat >>confdefs.h <<\_ACEOF
22337#define HAVE_STD_ITERATOR 0
22338_ACEOF
22339
John Criswell7a73b802003-06-30 21:59:07 +000022340fi
22341
22342echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
22343echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
22344if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
22345 echo $ECHO_N "(cached) $ECHO_C" >&6
22346else
22347
John Criswell7a73b802003-06-30 21:59:07 +000022348 ac_ext=cc
22349ac_cpp='$CXXCPP $CPPFLAGS'
22350ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22351ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22352ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22353
22354 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022355/* confdefs.h. */
22356_ACEOF
22357cat confdefs.h >>conftest.$ac_ext
22358cat >>conftest.$ac_ext <<_ACEOF
22359/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022360#include <iterator>
22361#ifdef HAVE_NAMESPACES
22362using namespace std;
22363#endif
John Criswell7a73b802003-06-30 21:59:07 +000022364int
22365main ()
22366{
John Criswellc78022e2003-07-29 19:11:58 +000022367bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000022368 ;
22369 return 0;
22370}
22371_ACEOF
22372rm -f conftest.$ac_objext
22373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022374 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022375 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022376 grep -v '^ *+' conftest.er1 >conftest.err
22377 rm -f conftest.er1
22378 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22380 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022381 { ac_try='test -z "$ac_cxx_werror_flag"
22382 || test ! -s conftest.err'
22383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22384 (eval $ac_try) 2>&5
22385 ac_status=$?
22386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22387 (exit $ac_status); }; } &&
22388 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22390 (eval $ac_try) 2>&5
22391 ac_status=$?
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); }; }; then
22394 ac_cv_cxx_have_bi_iterator=yes
22395else
22396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022397sed 's/^/| /' conftest.$ac_ext >&5
22398
John Criswell7a73b802003-06-30 21:59:07 +000022399ac_cv_cxx_have_bi_iterator=no
22400fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022402 ac_ext=c
22403ac_cpp='$CPP $CPPFLAGS'
22404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22406ac_compiler_gnu=$ac_cv_c_compiler_gnu
22407
22408
22409fi
22410echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
22411echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000022412if test "$ac_cv_cxx_have_bi_iterator" = yes
22413then
John Criswell40468462004-09-24 21:19:06 +000022414
22415cat >>confdefs.h <<\_ACEOF
22416#define HAVE_BI_ITERATOR 1
22417_ACEOF
22418
22419else
22420
22421cat >>confdefs.h <<\_ACEOF
22422#define HAVE_BI_ITERATOR 0
22423_ACEOF
22424
John Criswell7a73b802003-06-30 21:59:07 +000022425fi
22426
22427echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
22428echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
22429if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
22430 echo $ECHO_N "(cached) $ECHO_C" >&6
22431else
22432
John Criswell7a73b802003-06-30 21:59:07 +000022433 ac_ext=cc
22434ac_cpp='$CXXCPP $CPPFLAGS'
22435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22438
22439 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022440/* confdefs.h. */
22441_ACEOF
22442cat confdefs.h >>conftest.$ac_ext
22443cat >>conftest.$ac_ext <<_ACEOF
22444/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022445#include <iterator>
22446#ifdef HAVE_NAMESPACES
22447using namespace std;
22448#endif
John Criswell7a73b802003-06-30 21:59:07 +000022449int
22450main ()
22451{
John Criswellc78022e2003-07-29 19:11:58 +000022452forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000022453 ;
22454 return 0;
22455}
22456_ACEOF
22457rm -f conftest.$ac_objext
22458if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022459 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022460 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022461 grep -v '^ *+' conftest.er1 >conftest.err
22462 rm -f conftest.er1
22463 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022466 { ac_try='test -z "$ac_cxx_werror_flag"
22467 || test ! -s conftest.err'
22468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22469 (eval $ac_try) 2>&5
22470 ac_status=$?
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); }; } &&
22473 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22475 (eval $ac_try) 2>&5
22476 ac_status=$?
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); }; }; then
22479 ac_cv_cxx_have_fwd_iterator=yes
22480else
22481 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022482sed 's/^/| /' conftest.$ac_ext >&5
22483
John Criswell7a73b802003-06-30 21:59:07 +000022484ac_cv_cxx_have_fwd_iterator=no
22485fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022486rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022487 ac_ext=c
22488ac_cpp='$CPP $CPPFLAGS'
22489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22491ac_compiler_gnu=$ac_cv_c_compiler_gnu
22492
22493
22494fi
22495echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
22496echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000022497if test "$ac_cv_cxx_have_fwd_iterator" = yes
22498then
John Criswell40468462004-09-24 21:19:06 +000022499
22500cat >>confdefs.h <<\_ACEOF
22501#define HAVE_FWD_ITERATOR 1
22502_ACEOF
22503
22504else
22505
22506cat >>confdefs.h <<\_ACEOF
22507#define HAVE_FWD_ITERATOR 0
22508_ACEOF
22509
John Criswell7a73b802003-06-30 21:59:07 +000022510fi
22511
22512
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022513
22514echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
22515echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
22516if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
22517 echo $ECHO_N "(cached) $ECHO_C" >&6
22518else
22519 ac_ext=cc
22520ac_cpp='$CXXCPP $CPPFLAGS'
22521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22524
22525 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022526/* confdefs.h. */
22527_ACEOF
22528cat confdefs.h >>conftest.$ac_ext
22529cat >>conftest.$ac_ext <<_ACEOF
22530/* end confdefs.h. */
22531#include <math.h>
22532 int foo(float f) {return isnan(f);}
22533_ACEOF
22534rm -f conftest.$ac_objext
22535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022536 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022537 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022538 grep -v '^ *+' conftest.er1 >conftest.err
22539 rm -f conftest.er1
22540 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22542 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022543 { ac_try='test -z "$ac_cxx_werror_flag"
22544 || test ! -s conftest.err'
22545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22546 (eval $ac_try) 2>&5
22547 ac_status=$?
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); }; } &&
22550 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22552 (eval $ac_try) 2>&5
22553 ac_status=$?
22554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); }; }; then
22556 ac_cv_func_isnan_in_math_h=yes
22557else
22558 echo "$as_me: failed program was:" >&5
22559sed 's/^/| /' conftest.$ac_ext >&5
22560
22561ac_cv_func_isnan_in_math_h=no
22562fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022564 ac_ext=c
22565ac_cpp='$CPP $CPPFLAGS'
22566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22568ac_compiler_gnu=$ac_cv_c_compiler_gnu
22569
22570fi
22571echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22572echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22573 if test "$ac_cv_func_isnan_in_math_h" = "yes"
22574 then
22575
22576cat >>confdefs.h <<\_ACEOF
22577#define HAVE_ISNAN_IN_MATH_H 1
22578_ACEOF
22579
22580 fi
22581echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22582echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22583if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22584 echo $ECHO_N "(cached) $ECHO_C" >&6
22585else
22586 ac_ext=cc
22587ac_cpp='$CXXCPP $CPPFLAGS'
22588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22591
22592 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022593/* confdefs.h. */
22594_ACEOF
22595cat confdefs.h >>conftest.$ac_ext
22596cat >>conftest.$ac_ext <<_ACEOF
22597/* end confdefs.h. */
22598#include <cmath>
22599 int foo(float f) {return isnan(f);}
22600_ACEOF
22601rm -f conftest.$ac_objext
22602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022603 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022604 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022605 grep -v '^ *+' conftest.er1 >conftest.err
22606 rm -f conftest.er1
22607 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22609 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022610 { ac_try='test -z "$ac_cxx_werror_flag"
22611 || test ! -s conftest.err'
22612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613 (eval $ac_try) 2>&5
22614 ac_status=$?
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; } &&
22617 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22619 (eval $ac_try) 2>&5
22620 ac_status=$?
22621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22622 (exit $ac_status); }; }; then
22623 ac_cv_func_isnan_in_cmath=yes
22624else
22625 echo "$as_me: failed program was:" >&5
22626sed 's/^/| /' conftest.$ac_ext >&5
22627
22628ac_cv_func_isnan_in_cmath=no
22629fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022631 ac_ext=c
22632ac_cpp='$CPP $CPPFLAGS'
22633ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22634ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22635ac_compiler_gnu=$ac_cv_c_compiler_gnu
22636
22637fi
22638echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22639echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22640 if test "$ac_cv_func_isnan_in_cmath" = "yes"
22641 then
22642
22643cat >>confdefs.h <<\_ACEOF
22644#define HAVE_ISNAN_IN_CMATH 1
22645_ACEOF
22646
22647 fi
22648echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22649echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22650if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22651 echo $ECHO_N "(cached) $ECHO_C" >&6
22652else
22653 ac_ext=cc
22654ac_cpp='$CXXCPP $CPPFLAGS'
22655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22658
22659 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022660/* confdefs.h. */
22661_ACEOF
22662cat confdefs.h >>conftest.$ac_ext
22663cat >>conftest.$ac_ext <<_ACEOF
22664/* end confdefs.h. */
22665#include <cmath>
22666 using std::isnan; int foo(float f) {return isnan(f);}
22667_ACEOF
22668rm -f conftest.$ac_objext
22669if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022670 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022671 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022672 grep -v '^ *+' conftest.er1 >conftest.err
22673 rm -f conftest.er1
22674 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022677 { ac_try='test -z "$ac_cxx_werror_flag"
22678 || test ! -s conftest.err'
22679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22680 (eval $ac_try) 2>&5
22681 ac_status=$?
22682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22683 (exit $ac_status); }; } &&
22684 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22686 (eval $ac_try) 2>&5
22687 ac_status=$?
22688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22689 (exit $ac_status); }; }; then
22690 ac_cv_func_std_isnan_in_cmath=yes
22691else
22692 echo "$as_me: failed program was:" >&5
22693sed 's/^/| /' conftest.$ac_ext >&5
22694
22695ac_cv_func_std_isnan_in_cmath=no
22696fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022697rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022698 ac_ext=c
22699ac_cpp='$CPP $CPPFLAGS'
22700ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22701ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22702ac_compiler_gnu=$ac_cv_c_compiler_gnu
22703
22704fi
22705echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22706echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22707 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22708 then
22709
22710cat >>confdefs.h <<\_ACEOF
22711#define HAVE_STD_ISNAN_IN_CMATH 1
22712_ACEOF
22713
22714 fi
22715
22716
Brian Gaeke52a551d2004-07-21 03:14:12 +000022717echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22718echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22719if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22721else
22722 ac_ext=cc
22723ac_cpp='$CXXCPP $CPPFLAGS'
22724ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22725ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22726ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22727
22728 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022729/* confdefs.h. */
22730_ACEOF
22731cat confdefs.h >>conftest.$ac_ext
22732cat >>conftest.$ac_ext <<_ACEOF
22733/* end confdefs.h. */
22734#include <math.h>
22735 int foo(float f) {return isinf(f);}
22736_ACEOF
22737rm -f conftest.$ac_objext
22738if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022739 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022740 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022741 grep -v '^ *+' conftest.er1 >conftest.err
22742 rm -f conftest.er1
22743 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22745 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022746 { ac_try='test -z "$ac_cxx_werror_flag"
22747 || test ! -s conftest.err'
22748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22749 (eval $ac_try) 2>&5
22750 ac_status=$?
22751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22752 (exit $ac_status); }; } &&
22753 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22755 (eval $ac_try) 2>&5
22756 ac_status=$?
22757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22758 (exit $ac_status); }; }; then
22759 ac_cv_func_isinf_in_math_h=yes
22760else
22761 echo "$as_me: failed program was:" >&5
22762sed 's/^/| /' conftest.$ac_ext >&5
22763
22764ac_cv_func_isinf_in_math_h=no
22765fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022766rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022767 ac_ext=c
22768ac_cpp='$CPP $CPPFLAGS'
22769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22771ac_compiler_gnu=$ac_cv_c_compiler_gnu
22772
22773fi
22774echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22775echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22776 if test "$ac_cv_func_isinf_in_math_h" = "yes"
22777 then
22778
22779cat >>confdefs.h <<\_ACEOF
22780#define HAVE_ISINF_IN_MATH_H 1
22781_ACEOF
22782
22783 fi
22784echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22785echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22786if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22787 echo $ECHO_N "(cached) $ECHO_C" >&6
22788else
22789 ac_ext=cc
22790ac_cpp='$CXXCPP $CPPFLAGS'
22791ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22792ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22793ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22794
22795 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022796/* confdefs.h. */
22797_ACEOF
22798cat confdefs.h >>conftest.$ac_ext
22799cat >>conftest.$ac_ext <<_ACEOF
22800/* end confdefs.h. */
22801#include <cmath>
22802 int foo(float f) {return isinf(f);}
22803_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_cmath=yes
22827else
22828 echo "$as_me: failed program was:" >&5
22829sed 's/^/| /' conftest.$ac_ext >&5
22830
22831ac_cv_func_isinf_in_cmath=no
22832fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022834 ac_ext=c
22835ac_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_cmath" >&5
22842echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22843 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22844 then
22845
22846cat >>confdefs.h <<\_ACEOF
22847#define HAVE_ISINF_IN_CMATH 1
22848_ACEOF
22849
22850 fi
22851echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22852echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22853if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22854 echo $ECHO_N "(cached) $ECHO_C" >&6
22855else
22856 ac_ext=cc
22857ac_cpp='$CXXCPP $CPPFLAGS'
22858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22861
22862 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022863/* confdefs.h. */
22864_ACEOF
22865cat confdefs.h >>conftest.$ac_ext
22866cat >>conftest.$ac_ext <<_ACEOF
22867/* end confdefs.h. */
22868#include <cmath>
22869 using std::isinf; int foo(float f) {return isinf(f);}
22870_ACEOF
22871rm -f conftest.$ac_objext
22872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022873 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022874 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022875 grep -v '^ *+' conftest.er1 >conftest.err
22876 rm -f conftest.er1
22877 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22879 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022880 { ac_try='test -z "$ac_cxx_werror_flag"
22881 || test ! -s conftest.err'
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22884 ac_status=$?
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; } &&
22887 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22889 (eval $ac_try) 2>&5
22890 ac_status=$?
22891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892 (exit $ac_status); }; }; then
22893 ac_cv_func_std_isinf_in_cmath=yes
22894else
22895 echo "$as_me: failed program was:" >&5
22896sed 's/^/| /' conftest.$ac_ext >&5
22897
22898ac_cv_func_std_isinf_in_cmath=no
22899fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022901 ac_ext=c
22902ac_cpp='$CPP $CPPFLAGS'
22903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22905ac_compiler_gnu=$ac_cv_c_compiler_gnu
22906
22907fi
22908echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22909echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22910 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22911 then
22912
22913cat >>confdefs.h <<\_ACEOF
22914#define HAVE_STD_ISINF_IN_CMATH 1
22915_ACEOF
22916
22917 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000022918echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22919echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22920if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22922else
22923 ac_ext=cc
22924ac_cpp='$CXXCPP $CPPFLAGS'
22925ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22926ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22927ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22928
22929 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000022930/* confdefs.h. */
22931_ACEOF
22932cat confdefs.h >>conftest.$ac_ext
22933cat >>conftest.$ac_ext <<_ACEOF
22934/* end confdefs.h. */
22935#include <ieeefp.h>
22936 int foo(float f) {return finite(f);}
22937_ACEOF
22938rm -f conftest.$ac_objext
22939if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022940 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000022941 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022942 grep -v '^ *+' conftest.er1 >conftest.err
22943 rm -f conftest.er1
22944 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000022945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022947 { ac_try='test -z "$ac_cxx_werror_flag"
22948 || test ! -s conftest.err'
22949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22950 (eval $ac_try) 2>&5
22951 ac_status=$?
22952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22953 (exit $ac_status); }; } &&
22954 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000022955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22956 (eval $ac_try) 2>&5
22957 ac_status=$?
22958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959 (exit $ac_status); }; }; then
22960 ac_cv_func_finite_in_ieeefp_h=yes
22961else
22962 echo "$as_me: failed program was:" >&5
22963sed 's/^/| /' conftest.$ac_ext >&5
22964
22965ac_cv_func_finite_in_ieeefp_h=no
22966fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeked59a6472004-07-21 03:33:58 +000022968 ac_ext=c
22969ac_cpp='$CPP $CPPFLAGS'
22970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22972ac_compiler_gnu=$ac_cv_c_compiler_gnu
22973
22974fi
22975echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22976echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22977 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22978 then
22979
22980cat >>confdefs.h <<\_ACEOF
22981#define HAVE_FINITE_IN_IEEEFP_H 1
22982_ACEOF
22983
22984 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000022985
22986
John Criswell7a73b802003-06-30 21:59:07 +000022987# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22988# for constant arguments. Useless!
22989echo "$as_me:$LINENO: checking for working alloca.h" >&5
22990echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22991if test "${ac_cv_working_alloca_h+set}" = set; then
22992 echo $ECHO_N "(cached) $ECHO_C" >&6
22993else
22994 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022995/* confdefs.h. */
22996_ACEOF
22997cat confdefs.h >>conftest.$ac_ext
22998cat >>conftest.$ac_ext <<_ACEOF
22999/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023000#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000023001int
23002main ()
23003{
23004char *p = (char *) alloca (2 * sizeof (int));
23005 ;
23006 return 0;
23007}
23008_ACEOF
23009rm -f conftest.$ac_objext conftest$ac_exeext
23010if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023011 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023012 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023013 grep -v '^ *+' conftest.er1 >conftest.err
23014 rm -f conftest.er1
23015 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023018 { ac_try='test -z "$ac_c_werror_flag"
23019 || test ! -s conftest.err'
23020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23021 (eval $ac_try) 2>&5
23022 ac_status=$?
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); }; } &&
23025 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027 (eval $ac_try) 2>&5
23028 ac_status=$?
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); }; }; then
23031 ac_cv_working_alloca_h=yes
23032else
23033 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023034sed 's/^/| /' conftest.$ac_ext >&5
23035
John Criswell7a73b802003-06-30 21:59:07 +000023036ac_cv_working_alloca_h=no
23037fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023038rm -f conftest.err conftest.$ac_objext \
23039 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023040fi
23041echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
23042echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
23043if test $ac_cv_working_alloca_h = yes; then
23044
23045cat >>confdefs.h <<\_ACEOF
23046#define HAVE_ALLOCA_H 1
23047_ACEOF
23048
23049fi
23050
23051echo "$as_me:$LINENO: checking for alloca" >&5
23052echo $ECHO_N "checking for alloca... $ECHO_C" >&6
23053if test "${ac_cv_func_alloca_works+set}" = set; then
23054 echo $ECHO_N "(cached) $ECHO_C" >&6
23055else
23056 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023057/* confdefs.h. */
23058_ACEOF
23059cat confdefs.h >>conftest.$ac_ext
23060cat >>conftest.$ac_ext <<_ACEOF
23061/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023062#ifdef __GNUC__
23063# define alloca __builtin_alloca
23064#else
23065# ifdef _MSC_VER
23066# include <malloc.h>
23067# define alloca _alloca
23068# else
23069# if HAVE_ALLOCA_H
23070# include <alloca.h>
23071# else
23072# ifdef _AIX
23073 #pragma alloca
23074# else
23075# ifndef alloca /* predefined by HP cc +Olibcalls */
23076char *alloca ();
23077# endif
23078# endif
23079# endif
23080# endif
23081#endif
23082
John Criswell7a73b802003-06-30 21:59:07 +000023083int
23084main ()
23085{
23086char *p = (char *) alloca (1);
23087 ;
23088 return 0;
23089}
23090_ACEOF
23091rm -f conftest.$ac_objext conftest$ac_exeext
23092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023093 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023094 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023095 grep -v '^ *+' conftest.er1 >conftest.err
23096 rm -f conftest.er1
23097 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023100 { ac_try='test -z "$ac_c_werror_flag"
23101 || test ! -s conftest.err'
23102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23103 (eval $ac_try) 2>&5
23104 ac_status=$?
23105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); }; } &&
23107 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23109 (eval $ac_try) 2>&5
23110 ac_status=$?
23111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); }; }; then
23113 ac_cv_func_alloca_works=yes
23114else
23115 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023116sed 's/^/| /' conftest.$ac_ext >&5
23117
John Criswell7a73b802003-06-30 21:59:07 +000023118ac_cv_func_alloca_works=no
23119fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023120rm -f conftest.err conftest.$ac_objext \
23121 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023122fi
23123echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
23124echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
23125
23126if test $ac_cv_func_alloca_works = yes; then
23127
23128cat >>confdefs.h <<\_ACEOF
23129#define HAVE_ALLOCA 1
23130_ACEOF
23131
23132else
23133 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
23134# that cause trouble. Some versions do not even contain alloca or
23135# contain a buggy version. If you still want to use their alloca,
23136# use ar to extract alloca.o from them instead of compiling alloca.c.
23137
23138ALLOCA=alloca.$ac_objext
23139
23140cat >>confdefs.h <<\_ACEOF
23141#define C_ALLOCA 1
23142_ACEOF
23143
23144
23145echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
23146echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
23147if test "${ac_cv_os_cray+set}" = set; then
23148 echo $ECHO_N "(cached) $ECHO_C" >&6
23149else
23150 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023151/* confdefs.h. */
23152_ACEOF
23153cat confdefs.h >>conftest.$ac_ext
23154cat >>conftest.$ac_ext <<_ACEOF
23155/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023156#if defined(CRAY) && ! defined(CRAY2)
23157webecray
23158#else
23159wenotbecray
23160#endif
23161
23162_ACEOF
23163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000023164 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023165 ac_cv_os_cray=yes
23166else
23167 ac_cv_os_cray=no
23168fi
23169rm -f conftest*
23170
23171fi
23172echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
23173echo "${ECHO_T}$ac_cv_os_cray" >&6
23174if test $ac_cv_os_cray = yes; then
23175 for ac_func in _getb67 GETB67 getb67; do
23176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23177echo "$as_me:$LINENO: checking for $ac_func" >&5
23178echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23179if eval "test \"\${$as_ac_var+set}\" = set"; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23181else
23182 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023183/* confdefs.h. */
23184_ACEOF
23185cat confdefs.h >>conftest.$ac_ext
23186cat >>conftest.$ac_ext <<_ACEOF
23187/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023188/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23190#define $ac_func innocuous_$ac_func
23191
John Criswell7a73b802003-06-30 21:59:07 +000023192/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023193 which can conflict with char $ac_func (); below.
23194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23195 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023196
John Criswell0c38eaf2003-09-10 15:17:25 +000023197#ifdef __STDC__
23198# include <limits.h>
23199#else
23200# include <assert.h>
23201#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023202
23203#undef $ac_func
23204
John Criswell7a73b802003-06-30 21:59:07 +000023205/* Override any gcc2 internal prototype to avoid an error. */
23206#ifdef __cplusplus
23207extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023208{
John Criswell7a73b802003-06-30 21:59:07 +000023209#endif
23210/* We use char because int might match the return type of a gcc2
23211 builtin and then its argument prototype would still apply. */
23212char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023213/* The GNU C library defines this for functions which it implements
23214 to always fail with ENOSYS. Some functions are actually named
23215 something starting with __ and the normal name is an alias. */
23216#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23217choke me
23218#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023219char (*f) () = $ac_func;
23220#endif
23221#ifdef __cplusplus
23222}
John Criswell7a73b802003-06-30 21:59:07 +000023223#endif
23224
John Criswell0c38eaf2003-09-10 15:17:25 +000023225int
23226main ()
23227{
23228return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023229 ;
23230 return 0;
23231}
23232_ACEOF
23233rm -f conftest.$ac_objext conftest$ac_exeext
23234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023235 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023236 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023237 grep -v '^ *+' conftest.er1 >conftest.err
23238 rm -f conftest.er1
23239 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023242 { ac_try='test -z "$ac_c_werror_flag"
23243 || test ! -s conftest.err'
23244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245 (eval $ac_try) 2>&5
23246 ac_status=$?
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; } &&
23249 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23251 (eval $ac_try) 2>&5
23252 ac_status=$?
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); }; }; then
23255 eval "$as_ac_var=yes"
23256else
23257 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023258sed 's/^/| /' conftest.$ac_ext >&5
23259
John Criswell7a73b802003-06-30 21:59:07 +000023260eval "$as_ac_var=no"
23261fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023262rm -f conftest.err conftest.$ac_objext \
23263 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023264fi
23265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23266echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23267if test `eval echo '${'$as_ac_var'}'` = yes; then
23268
23269cat >>confdefs.h <<_ACEOF
23270#define CRAY_STACKSEG_END $ac_func
23271_ACEOF
23272
23273 break
23274fi
23275
23276 done
23277fi
23278
23279echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
23280echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
23281if test "${ac_cv_c_stack_direction+set}" = set; then
23282 echo $ECHO_N "(cached) $ECHO_C" >&6
23283else
23284 if test "$cross_compiling" = yes; then
23285 ac_cv_c_stack_direction=0
23286else
23287 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023288/* confdefs.h. */
23289_ACEOF
23290cat confdefs.h >>conftest.$ac_ext
23291cat >>conftest.$ac_ext <<_ACEOF
23292/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023293int
23294find_stack_direction ()
23295{
23296 static char *addr = 0;
23297 auto char dummy;
23298 if (addr == 0)
23299 {
23300 addr = &dummy;
23301 return find_stack_direction ();
23302 }
23303 else
23304 return (&dummy > addr) ? 1 : -1;
23305}
23306
23307int
23308main ()
23309{
23310 exit (find_stack_direction () < 0);
23311}
23312_ACEOF
23313rm -f conftest$ac_exeext
23314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23315 (eval $ac_link) 2>&5
23316 ac_status=$?
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23320 (eval $ac_try) 2>&5
23321 ac_status=$?
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); }; }; then
23324 ac_cv_c_stack_direction=1
23325else
23326 echo "$as_me: program exited with status $ac_status" >&5
23327echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023328sed 's/^/| /' conftest.$ac_ext >&5
23329
John Criswell7a73b802003-06-30 21:59:07 +000023330( exit $ac_status )
23331ac_cv_c_stack_direction=-1
23332fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023333rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023334fi
23335fi
23336echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
23337echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
23338
23339cat >>confdefs.h <<_ACEOF
23340#define STACK_DIRECTION $ac_cv_c_stack_direction
23341_ACEOF
23342
23343
23344fi
23345
John Criswell7a73b802003-06-30 21:59:07 +000023346
23347
23348for ac_header in stdlib.h unistd.h
23349do
23350as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23351if eval "test \"\${$as_ac_Header+set}\" = set"; then
23352 echo "$as_me:$LINENO: checking for $ac_header" >&5
23353echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23354if eval "test \"\${$as_ac_Header+set}\" = set"; then
23355 echo $ECHO_N "(cached) $ECHO_C" >&6
23356fi
23357echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23358echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23359else
23360 # Is the header compilable?
23361echo "$as_me:$LINENO: checking $ac_header usability" >&5
23362echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23363cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023364/* confdefs.h. */
23365_ACEOF
23366cat confdefs.h >>conftest.$ac_ext
23367cat >>conftest.$ac_ext <<_ACEOF
23368/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023369$ac_includes_default
23370#include <$ac_header>
23371_ACEOF
23372rm -f conftest.$ac_objext
23373if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023374 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023375 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023376 grep -v '^ *+' conftest.er1 >conftest.err
23377 rm -f conftest.er1
23378 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023381 { ac_try='test -z "$ac_c_werror_flag"
23382 || test ! -s conftest.err'
23383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23385 ac_status=$?
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; } &&
23388 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23390 (eval $ac_try) 2>&5
23391 ac_status=$?
23392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); }; }; then
23394 ac_header_compiler=yes
23395else
23396 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023397sed 's/^/| /' conftest.$ac_ext >&5
23398
John Criswell7a73b802003-06-30 21:59:07 +000023399ac_header_compiler=no
23400fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023401rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023402echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23403echo "${ECHO_T}$ac_header_compiler" >&6
23404
23405# Is the header present?
23406echo "$as_me:$LINENO: checking $ac_header presence" >&5
23407echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23408cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023409/* confdefs.h. */
23410_ACEOF
23411cat confdefs.h >>conftest.$ac_ext
23412cat >>conftest.$ac_ext <<_ACEOF
23413/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023414#include <$ac_header>
23415_ACEOF
23416if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23417 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23418 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000023419 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000023420 rm -f conftest.er1
23421 cat conftest.err >&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } >/dev/null; then
23424 if test -s conftest.err; then
23425 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000023426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000023427 else
23428 ac_cpp_err=
23429 fi
23430else
23431 ac_cpp_err=yes
23432fi
23433if test -z "$ac_cpp_err"; then
23434 ac_header_preproc=yes
23435else
23436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023437sed 's/^/| /' conftest.$ac_ext >&5
23438
John Criswell7a73b802003-06-30 21:59:07 +000023439 ac_header_preproc=no
23440fi
23441rm -f conftest.err conftest.$ac_ext
23442echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23443echo "${ECHO_T}$ac_header_preproc" >&6
23444
23445# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023446case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23447 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000023448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23449echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000023450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23451echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23452 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000023453 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023454 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000023455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23456echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000023457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23458echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23460echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23462echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000023463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23464echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000023465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23466echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000023467 (
23468 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000023469## ----------------------------------- ##
23470## Report this to llvmbugs@cs.uiuc.edu ##
23471## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000023472_ASBOX
23473 ) |
23474 sed "s/^/$as_me: WARNING: /" >&2
23475 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023476esac
23477echo "$as_me:$LINENO: checking for $ac_header" >&5
23478echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23479if eval "test \"\${$as_ac_Header+set}\" = set"; then
23480 echo $ECHO_N "(cached) $ECHO_C" >&6
23481else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023482 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000023483fi
23484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23486
23487fi
23488if test `eval echo '${'$as_ac_Header'}'` = yes; then
23489 cat >>confdefs.h <<_ACEOF
23490#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23491_ACEOF
23492
23493fi
23494
23495done
23496
23497
23498for ac_func in getpagesize
23499do
23500as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23501echo "$as_me:$LINENO: checking for $ac_func" >&5
23502echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23503if eval "test \"\${$as_ac_var+set}\" = set"; then
23504 echo $ECHO_N "(cached) $ECHO_C" >&6
23505else
23506 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023507/* confdefs.h. */
23508_ACEOF
23509cat confdefs.h >>conftest.$ac_ext
23510cat >>conftest.$ac_ext <<_ACEOF
23511/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023512/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23514#define $ac_func innocuous_$ac_func
23515
John Criswell7a73b802003-06-30 21:59:07 +000023516/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023517 which can conflict with char $ac_func (); below.
23518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23519 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023520
John Criswell0c38eaf2003-09-10 15:17:25 +000023521#ifdef __STDC__
23522# include <limits.h>
23523#else
23524# include <assert.h>
23525#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023526
23527#undef $ac_func
23528
John Criswell7a73b802003-06-30 21:59:07 +000023529/* Override any gcc2 internal prototype to avoid an error. */
23530#ifdef __cplusplus
23531extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023532{
John Criswell7a73b802003-06-30 21:59:07 +000023533#endif
23534/* We use char because int might match the return type of a gcc2
23535 builtin and then its argument prototype would still apply. */
23536char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023537/* The GNU C library defines this for functions which it implements
23538 to always fail with ENOSYS. Some functions are actually named
23539 something starting with __ and the normal name is an alias. */
23540#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23541choke me
23542#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023543char (*f) () = $ac_func;
23544#endif
23545#ifdef __cplusplus
23546}
John Criswell7a73b802003-06-30 21:59:07 +000023547#endif
23548
John Criswell0c38eaf2003-09-10 15:17:25 +000023549int
23550main ()
23551{
23552return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023553 ;
23554 return 0;
23555}
23556_ACEOF
23557rm -f conftest.$ac_objext conftest$ac_exeext
23558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023559 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023560 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023561 grep -v '^ *+' conftest.er1 >conftest.err
23562 rm -f conftest.er1
23563 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23565 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023566 { ac_try='test -z "$ac_c_werror_flag"
23567 || test ! -s conftest.err'
23568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569 (eval $ac_try) 2>&5
23570 ac_status=$?
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; } &&
23573 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23575 (eval $ac_try) 2>&5
23576 ac_status=$?
23577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23578 (exit $ac_status); }; }; then
23579 eval "$as_ac_var=yes"
23580else
23581 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023582sed 's/^/| /' conftest.$ac_ext >&5
23583
John Criswell7a73b802003-06-30 21:59:07 +000023584eval "$as_ac_var=no"
23585fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023586rm -f conftest.err conftest.$ac_objext \
23587 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023588fi
23589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23590echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23591if test `eval echo '${'$as_ac_var'}'` = yes; then
23592 cat >>confdefs.h <<_ACEOF
23593#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23594_ACEOF
23595
23596fi
23597done
23598
23599echo "$as_me:$LINENO: checking for working mmap" >&5
23600echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23601if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23602 echo $ECHO_N "(cached) $ECHO_C" >&6
23603else
23604 if test "$cross_compiling" = yes; then
23605 ac_cv_func_mmap_fixed_mapped=no
23606else
23607 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023608/* confdefs.h. */
23609_ACEOF
23610cat confdefs.h >>conftest.$ac_ext
23611cat >>conftest.$ac_ext <<_ACEOF
23612/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023613$ac_includes_default
23614/* malloc might have been renamed as rpl_malloc. */
23615#undef malloc
23616
23617/* Thanks to Mike Haertel and Jim Avera for this test.
23618 Here is a matrix of mmap possibilities:
23619 mmap private not fixed
23620 mmap private fixed at somewhere currently unmapped
23621 mmap private fixed at somewhere already mapped
23622 mmap shared not fixed
23623 mmap shared fixed at somewhere currently unmapped
23624 mmap shared fixed at somewhere already mapped
23625 For private mappings, we should verify that changes cannot be read()
23626 back from the file, nor mmap's back from the file at a different
23627 address. (There have been systems where private was not correctly
23628 implemented like the infamous i386 svr4.0, and systems where the
23629 VM page cache was not coherent with the file system buffer cache
23630 like early versions of FreeBSD and possibly contemporary NetBSD.)
23631 For shared mappings, we should conversely verify that changes get
23632 propagated back to all the places they're supposed to be.
23633
23634 Grep wants private fixed already mapped.
23635 The main things grep needs to know about mmap are:
23636 * does it exist and is it safe to write into the mmap'd area
23637 * how to use it (BSD variants) */
23638
23639#include <fcntl.h>
23640#include <sys/mman.h>
23641
23642#if !STDC_HEADERS && !HAVE_STDLIB_H
23643char *malloc ();
23644#endif
23645
23646/* This mess was copied from the GNU getpagesize.h. */
23647#if !HAVE_GETPAGESIZE
23648/* Assume that all systems that can run configure have sys/param.h. */
23649# if !HAVE_SYS_PARAM_H
23650# define HAVE_SYS_PARAM_H 1
23651# endif
23652
23653# ifdef _SC_PAGESIZE
23654# define getpagesize() sysconf(_SC_PAGESIZE)
23655# else /* no _SC_PAGESIZE */
23656# if HAVE_SYS_PARAM_H
23657# include <sys/param.h>
23658# ifdef EXEC_PAGESIZE
23659# define getpagesize() EXEC_PAGESIZE
23660# else /* no EXEC_PAGESIZE */
23661# ifdef NBPG
23662# define getpagesize() NBPG * CLSIZE
23663# ifndef CLSIZE
23664# define CLSIZE 1
23665# endif /* no CLSIZE */
23666# else /* no NBPG */
23667# ifdef NBPC
23668# define getpagesize() NBPC
23669# else /* no NBPC */
23670# ifdef PAGESIZE
23671# define getpagesize() PAGESIZE
23672# endif /* PAGESIZE */
23673# endif /* no NBPC */
23674# endif /* no NBPG */
23675# endif /* no EXEC_PAGESIZE */
23676# else /* no HAVE_SYS_PARAM_H */
23677# define getpagesize() 8192 /* punt totally */
23678# endif /* no HAVE_SYS_PARAM_H */
23679# endif /* no _SC_PAGESIZE */
23680
23681#endif /* no HAVE_GETPAGESIZE */
23682
23683int
23684main ()
23685{
23686 char *data, *data2, *data3;
23687 int i, pagesize;
23688 int fd;
23689
23690 pagesize = getpagesize ();
23691
23692 /* First, make a file with some known garbage in it. */
23693 data = (char *) malloc (pagesize);
23694 if (!data)
23695 exit (1);
23696 for (i = 0; i < pagesize; ++i)
23697 *(data + i) = rand ();
23698 umask (0);
23699 fd = creat ("conftest.mmap", 0600);
23700 if (fd < 0)
23701 exit (1);
23702 if (write (fd, data, pagesize) != pagesize)
23703 exit (1);
23704 close (fd);
23705
23706 /* Next, try to mmap the file at a fixed address which already has
23707 something else allocated at it. If we can, also make sure that
23708 we see the same garbage. */
23709 fd = open ("conftest.mmap", O_RDWR);
23710 if (fd < 0)
23711 exit (1);
23712 data2 = (char *) malloc (2 * pagesize);
23713 if (!data2)
23714 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000023715 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000023716 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000023717 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000023718 exit (1);
23719 for (i = 0; i < pagesize; ++i)
23720 if (*(data + i) != *(data2 + i))
23721 exit (1);
23722
23723 /* Finally, make sure that changes to the mapped area do not
23724 percolate back to the file as seen by read(). (This is a bug on
23725 some variants of i386 svr4.0.) */
23726 for (i = 0; i < pagesize; ++i)
23727 *(data2 + i) = *(data2 + i) + 1;
23728 data3 = (char *) malloc (pagesize);
23729 if (!data3)
23730 exit (1);
23731 if (read (fd, data3, pagesize) != pagesize)
23732 exit (1);
23733 for (i = 0; i < pagesize; ++i)
23734 if (*(data + i) != *(data3 + i))
23735 exit (1);
23736 close (fd);
23737 exit (0);
23738}
23739_ACEOF
23740rm -f conftest$ac_exeext
23741if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23742 (eval $ac_link) 2>&5
23743 ac_status=$?
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23747 (eval $ac_try) 2>&5
23748 ac_status=$?
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); }; }; then
23751 ac_cv_func_mmap_fixed_mapped=yes
23752else
23753 echo "$as_me: program exited with status $ac_status" >&5
23754echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023755sed 's/^/| /' conftest.$ac_ext >&5
23756
John Criswell7a73b802003-06-30 21:59:07 +000023757( exit $ac_status )
23758ac_cv_func_mmap_fixed_mapped=no
23759fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023760rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023761fi
23762fi
23763echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23764echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23765if test $ac_cv_func_mmap_fixed_mapped = yes; then
23766
23767cat >>confdefs.h <<\_ACEOF
23768#define HAVE_MMAP 1
23769_ACEOF
23770
23771fi
23772rm -f conftest.mmap
23773
Brian Gaeke26be9c52004-01-13 06:43:16 +000023774if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23775then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023776 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23777echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000023778fi
John Criswell7a73b802003-06-30 21:59:07 +000023779echo "$as_me:$LINENO: checking for mmap of files" >&5
23780echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23781if test "${ac_cv_func_mmap_file+set}" = set; then
23782 echo $ECHO_N "(cached) $ECHO_C" >&6
23783else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023784 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000023785ac_cpp='$CPP $CPPFLAGS'
23786ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23787ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23788ac_compiler_gnu=$ac_cv_c_compiler_gnu
23789
23790 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000023791 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000023792else
23793 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023794
Reid Spencer777ce172004-09-20 04:09:56 +000023795 /* confdefs.h. */
23796_ACEOF
23797cat confdefs.h >>conftest.$ac_ext
23798cat >>conftest.$ac_ext <<_ACEOF
23799/* end confdefs.h. */
23800
John Criswell7a73b802003-06-30 21:59:07 +000023801#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000023802#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000023803#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000023804
23805int
23806main ()
23807{
John Criswell7a73b802003-06-30 21:59:07 +000023808
23809 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000023810 fd = creat ("foo",0777);
23811 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23812 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000023813 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000023814 ;
23815 return 0;
23816}
John Criswell7a73b802003-06-30 21:59:07 +000023817_ACEOF
23818rm -f conftest$ac_exeext
23819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23820 (eval $ac_link) 2>&5
23821 ac_status=$?
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23825 (eval $ac_try) 2>&5
23826 ac_status=$?
23827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23828 (exit $ac_status); }; }; then
23829 ac_cv_func_mmap_file=yes
23830else
23831 echo "$as_me: program exited with status $ac_status" >&5
23832echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023833sed 's/^/| /' conftest.$ac_ext >&5
23834
John Criswell7a73b802003-06-30 21:59:07 +000023835( exit $ac_status )
23836ac_cv_func_mmap_file=no
23837fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023838rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023839fi
23840 ac_ext=c
23841ac_cpp='$CPP $CPPFLAGS'
23842ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23843ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23844ac_compiler_gnu=$ac_cv_c_compiler_gnu
23845
23846
23847fi
23848echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23849echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23850if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023851
23852cat >>confdefs.h <<\_ACEOF
23853#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000023854_ACEOF
23855
23856 MMAP_FILE=yes
23857
23858fi
23859
Brian Gaeke26be9c52004-01-13 06:43:16 +000023860if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000023861then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023862 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23863echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023864fi
23865echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23866echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23867if test "${ac_cv_header_mmap_anon+set}" = set; then
23868 echo $ECHO_N "(cached) $ECHO_C" >&6
23869else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023870 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000023871ac_cpp='$CPP $CPPFLAGS'
23872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23874ac_compiler_gnu=$ac_cv_c_compiler_gnu
23875
23876 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023877/* confdefs.h. */
23878_ACEOF
23879cat confdefs.h >>conftest.$ac_ext
23880cat >>conftest.$ac_ext <<_ACEOF
23881/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023882#include <sys/mman.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000023883#include <unistd.h>
23884#include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000023885int
23886main ()
23887{
23888mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23889 ;
23890 return 0;
23891}
23892_ACEOF
23893rm -f conftest.$ac_objext
23894if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023895 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023896 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023897 grep -v '^ *+' conftest.er1 >conftest.err
23898 rm -f conftest.er1
23899 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23901 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023902 { ac_try='test -z "$ac_c_werror_flag"
23903 || test ! -s conftest.err'
23904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23905 (eval $ac_try) 2>&5
23906 ac_status=$?
23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); }; } &&
23909 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023910 { (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_header_mmap_anon=yes
23916else
23917 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023918sed 's/^/| /' conftest.$ac_ext >&5
23919
John Criswell7a73b802003-06-30 21:59:07 +000023920ac_cv_header_mmap_anon=no
23921fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023923 ac_ext=c
23924ac_cpp='$CPP $CPPFLAGS'
23925ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23926ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23927ac_compiler_gnu=$ac_cv_c_compiler_gnu
23928
23929
23930fi
23931echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23932echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23933if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023934
23935cat >>confdefs.h <<\_ACEOF
23936#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000023937_ACEOF
23938
23939fi
23940
23941echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23942echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23943if test "${ac_cv_type_signal+set}" = set; then
23944 echo $ECHO_N "(cached) $ECHO_C" >&6
23945else
23946 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023947/* confdefs.h. */
23948_ACEOF
23949cat confdefs.h >>conftest.$ac_ext
23950cat >>conftest.$ac_ext <<_ACEOF
23951/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023952#include <sys/types.h>
23953#include <signal.h>
23954#ifdef signal
23955# undef signal
23956#endif
23957#ifdef __cplusplus
23958extern "C" void (*signal (int, void (*)(int)))(int);
23959#else
23960void (*signal ()) ();
23961#endif
23962
John Criswell7a73b802003-06-30 21:59:07 +000023963int
23964main ()
23965{
23966int i;
23967 ;
23968 return 0;
23969}
23970_ACEOF
23971rm -f conftest.$ac_objext
23972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023973 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023974 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023975 grep -v '^ *+' conftest.er1 >conftest.err
23976 rm -f conftest.er1
23977 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023980 { ac_try='test -z "$ac_c_werror_flag"
23981 || test ! -s conftest.err'
23982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23983 (eval $ac_try) 2>&5
23984 ac_status=$?
23985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23986 (exit $ac_status); }; } &&
23987 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023988 { (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_type_signal=void
23994else
23995 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023996sed 's/^/| /' conftest.$ac_ext >&5
23997
John Criswell7a73b802003-06-30 21:59:07 +000023998ac_cv_type_signal=int
23999fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024001fi
24002echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
24003echo "${ECHO_T}$ac_cv_type_signal" >&6
24004
24005cat >>confdefs.h <<_ACEOF
24006#define RETSIGTYPE $ac_cv_type_signal
24007_ACEOF
24008
24009
24010
24011
24012
24013
24014
Brian Gaekef5261472004-02-20 06:40:57 +000024015
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000024016
John Criswelld6621562004-06-07 14:26:24 +000024017
24018
John Criswell7ed43ad2004-07-19 16:12:29 +000024019for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000024020do
24021as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24022echo "$as_me:$LINENO: checking for $ac_func" >&5
24023echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24024if eval "test \"\${$as_ac_var+set}\" = set"; then
24025 echo $ECHO_N "(cached) $ECHO_C" >&6
24026else
24027 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024028/* confdefs.h. */
24029_ACEOF
24030cat confdefs.h >>conftest.$ac_ext
24031cat >>conftest.$ac_ext <<_ACEOF
24032/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024033/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24035#define $ac_func innocuous_$ac_func
24036
John Criswell7a73b802003-06-30 21:59:07 +000024037/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000024038 which can conflict with char $ac_func (); below.
24039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24040 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024041
John Criswell0c38eaf2003-09-10 15:17:25 +000024042#ifdef __STDC__
24043# include <limits.h>
24044#else
24045# include <assert.h>
24046#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000024047
24048#undef $ac_func
24049
John Criswell7a73b802003-06-30 21:59:07 +000024050/* Override any gcc2 internal prototype to avoid an error. */
24051#ifdef __cplusplus
24052extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000024053{
John Criswell7a73b802003-06-30 21:59:07 +000024054#endif
24055/* We use char because int might match the return type of a gcc2
24056 builtin and then its argument prototype would still apply. */
24057char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000024058/* The GNU C library defines this for functions which it implements
24059 to always fail with ENOSYS. Some functions are actually named
24060 something starting with __ and the normal name is an alias. */
24061#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24062choke me
24063#else
John Criswell0c38eaf2003-09-10 15:17:25 +000024064char (*f) () = $ac_func;
24065#endif
24066#ifdef __cplusplus
24067}
John Criswell7a73b802003-06-30 21:59:07 +000024068#endif
24069
John Criswell0c38eaf2003-09-10 15:17:25 +000024070int
24071main ()
24072{
24073return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000024074 ;
24075 return 0;
24076}
24077_ACEOF
24078rm -f conftest.$ac_objext conftest$ac_exeext
24079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024080 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024081 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024082 grep -v '^ *+' conftest.er1 >conftest.err
24083 rm -f conftest.er1
24084 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024087 { ac_try='test -z "$ac_c_werror_flag"
24088 || test ! -s conftest.err'
24089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090 (eval $ac_try) 2>&5
24091 ac_status=$?
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); }; } &&
24094 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24096 (eval $ac_try) 2>&5
24097 ac_status=$?
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); }; }; then
24100 eval "$as_ac_var=yes"
24101else
24102 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024103sed 's/^/| /' conftest.$ac_ext >&5
24104
John Criswell7a73b802003-06-30 21:59:07 +000024105eval "$as_ac_var=no"
24106fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024107rm -f conftest.err conftest.$ac_objext \
24108 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024109fi
24110echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24111echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24112if test `eval echo '${'$as_ac_var'}'` = yes; then
24113 cat >>confdefs.h <<_ACEOF
24114#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24115_ACEOF
24116
24117fi
24118done
24119
John Criswell7a73b802003-06-30 21:59:07 +000024120echo "$as_me:$LINENO: checking for mprotect" >&5
24121echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
24122if test "${ac_cv_func_mprotect+set}" = set; then
24123 echo $ECHO_N "(cached) $ECHO_C" >&6
24124else
24125 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024126/* confdefs.h. */
24127_ACEOF
24128cat confdefs.h >>conftest.$ac_ext
24129cat >>conftest.$ac_ext <<_ACEOF
24130/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024131/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
24132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24133#define mprotect innocuous_mprotect
24134
John Criswell7a73b802003-06-30 21:59:07 +000024135/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000024136 which can conflict with char mprotect (); below.
24137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24138 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000024139
John Criswell0c38eaf2003-09-10 15:17:25 +000024140#ifdef __STDC__
24141# include <limits.h>
24142#else
24143# include <assert.h>
24144#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000024145
24146#undef mprotect
24147
John Criswell7a73b802003-06-30 21:59:07 +000024148/* Override any gcc2 internal prototype to avoid an error. */
24149#ifdef __cplusplus
24150extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000024151{
John Criswell7a73b802003-06-30 21:59:07 +000024152#endif
24153/* We use char because int might match the return type of a gcc2
24154 builtin and then its argument prototype would still apply. */
24155char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000024156/* The GNU C library defines this for functions which it implements
24157 to always fail with ENOSYS. Some functions are actually named
24158 something starting with __ and the normal name is an alias. */
24159#if defined (__stub_mprotect) || defined (__stub___mprotect)
24160choke me
24161#else
John Criswell0c38eaf2003-09-10 15:17:25 +000024162char (*f) () = mprotect;
24163#endif
24164#ifdef __cplusplus
24165}
John Criswell7a73b802003-06-30 21:59:07 +000024166#endif
24167
John Criswell0c38eaf2003-09-10 15:17:25 +000024168int
24169main ()
24170{
24171return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000024172 ;
24173 return 0;
24174}
24175_ACEOF
24176rm -f conftest.$ac_objext conftest$ac_exeext
24177if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024178 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000024179 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024180 grep -v '^ *+' conftest.er1 >conftest.err
24181 rm -f conftest.er1
24182 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000024183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024185 { ac_try='test -z "$ac_c_werror_flag"
24186 || test ! -s conftest.err'
24187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24188 (eval $ac_try) 2>&5
24189 ac_status=$?
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); }; } &&
24192 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000024193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194 (eval $ac_try) 2>&5
24195 ac_status=$?
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; }; then
24198 ac_cv_func_mprotect=yes
24199else
24200 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000024201sed 's/^/| /' conftest.$ac_ext >&5
24202
John Criswell7a73b802003-06-30 21:59:07 +000024203ac_cv_func_mprotect=no
24204fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024205rm -f conftest.err conftest.$ac_objext \
24206 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000024207fi
24208echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
24209echo "${ECHO_T}$ac_cv_func_mprotect" >&6
24210if test $ac_cv_func_mprotect = yes; then
24211 :
24212else
24213 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
24214echo "$as_me: error: Function mprotect() required but not found" >&2;}
24215 { (exit 1); exit 1; }; }
24216fi
24217
24218
John Criswellb13092b2003-07-22 21:00:24 +000024219
Brian Gaekeadfe28d2004-07-21 03:50:25 +000024220 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
24221echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000024222 ac_ext=c
24223ac_cpp='$CPP $CPPFLAGS'
24224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24226ac_compiler_gnu=$ac_cv_c_compiler_gnu
24227
Brian Gaekef91a15c2003-11-18 06:20:41 +000024228 oldcflags="$CFLAGS"
24229 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000024230 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000024231/* confdefs.h. */
24232_ACEOF
24233cat confdefs.h >>conftest.$ac_ext
24234cat >>conftest.$ac_ext <<_ACEOF
24235/* end confdefs.h. */
24236
24237int
24238main ()
24239{
Brian Gaekef91a15c2003-11-18 06:20:41 +000024240int main() { return 0; }
Reid Spencer777ce172004-09-20 04:09:56 +000024241 ;
24242 return 0;
24243}
John Criswellcb7a1eb2003-11-17 19:46:02 +000024244_ACEOF
24245rm -f conftest.$ac_objext conftest$ac_exeext
24246if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000024247 (eval $ac_link) 2>conftest.er1
John Criswellcb7a1eb2003-11-17 19:46:02 +000024248 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000024249 grep -v '^ *+' conftest.er1 >conftest.err
24250 rm -f conftest.er1
24251 cat conftest.err >&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000024252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24253 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000024254 { ac_try='test -z "$ac_c_werror_flag"
24255 || test ! -s conftest.err'
24256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24257 (eval $ac_try) 2>&5
24258 ac_status=$?
24259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24260 (exit $ac_status); }; } &&
24261 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000024262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24263 (eval $ac_try) 2>&5
24264 ac_status=$?
24265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24266 (exit $ac_status); }; }; then
24267 ac_cv_link_use_r=yes
24268else
24269 echo "$as_me: failed program was:" >&5
24270sed 's/^/| /' conftest.$ac_ext >&5
24271
Brian Gaekef91a15c2003-11-18 06:20:41 +000024272ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000024273fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024274rm -f conftest.err conftest.$ac_objext \
24275 conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000024276 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000024277 ac_ext=c
24278ac_cpp='$CPP $CPPFLAGS'
24279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24281ac_compiler_gnu=$ac_cv_c_compiler_gnu
24282
Brian Gaekeadfe28d2004-07-21 03:50:25 +000024283 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
24284echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000024285 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000024286 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000024287
24288cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000024289#define HAVE_LINK_R 1
24290_ACEOF
24291
24292 fi
24293
24294
John Criswell7a73b802003-06-30 21:59:07 +000024295# Check whether --enable-optimized or --disable-optimized was given.
24296if test "${enable_optimized+set}" = set; then
24297 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000024298
24299else
John Criswellb13092b2003-07-22 21:00:24 +000024300 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000024301fi;
John Criswellb13092b2003-07-22 21:00:24 +000024302if test ${enableval} = "no"
24303then
24304 ENABLE_OPTIMIZED=
24305
24306else
24307 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
24308
24309fi
24310
John Criswellb13092b2003-07-22 21:00:24 +000024311# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000024312if test "${enable_jit+set}" = set; then
24313 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000024314
24315else
John Criswellc78022e2003-07-29 19:11:58 +000024316 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000024317fi;
John Criswellb13092b2003-07-22 21:00:24 +000024318if test ${enableval} = "no"
24319then
24320 JIT=
24321
24322else
John Criswellc78022e2003-07-29 19:11:58 +000024323 case $target in
24324 *i*86*)
24325 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000024326
John Criswellc78022e2003-07-29 19:11:58 +000024327 ;;
24328 *sparc*)
24329 JIT=TARGET_HAS_JIT=1
24330
24331 ;;
24332 *)
24333 JIT=
24334
24335 ;;
24336 esac
John Criswellb13092b2003-07-22 21:00:24 +000024337fi
John Criswell7a73b802003-06-30 21:59:07 +000024338
24339
John Criswell7a73b802003-06-30 21:59:07 +000024340# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
24341if test "${with_llvmgccdir+set}" = set; then
24342 withval="$with_llvmgccdir"
24343 LLVMGCCDIR=$withval
24344
24345fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000024346echo "$as_me:$LINENO: checking for llvm-gcc" >&5
24347echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
24348LLVM_GCC_CHECK=no
24349if test -d "$LLVMGCCDIR"
24350then
24351 if test -x "$LLVMGCCDIR/bin/gcc"
24352 then
24353 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
24354 fi
24355fi
24356llvmgccwarn=no
24357echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
24358echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
24359if test "$LLVM_GCC_CHECK" = "no"
24360then
24361 llvmgccwarn=yes
24362fi
Brian Gaekef3b24102003-11-16 18:38:14 +000024363echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
24364echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
24365LLVM_GCC_SANE=no
24366if test -x "$LLVM_GCC_CHECK"
24367then
24368 cp /dev/null conftest.c
24369 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
24370 if test $? -eq 0
24371 then
24372 LLVM_GCC_SANE=yes
24373 fi
24374 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000024375 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000024376 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000024377
24378 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000024379 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000024380
Brian Gaekef3b24102003-11-16 18:38:14 +000024381fi
24382echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
24383echo "${ECHO_T}$LLVM_GCC_SANE" >&6
24384if test "$LLVM_GCC_SANE" = "no"
24385then
24386 llvmgccwarn=yes
24387fi
24388
Brian Gaeke554831c2004-01-21 19:39:29 +000024389echo "$as_me:$LINENO: checking for shared library suffix" >&5
24390echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
Reid Spencer2e89ae22004-09-20 03:06:28 +000024391eval "SHLIBEXT=$shrext_cmds"
Brian Gaeke554831c2004-01-21 19:39:29 +000024392echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
24393echo "${ECHO_T}$SHLIBEXT" >&6
24394SHLIBEXT=$SHLIBEXT
24395
24396
24397cat >>confdefs.h <<_ACEOF
24398#define SHLIBEXT "$SHLIBEXT"
24399_ACEOF
24400
24401
Reid Spencere9de0912004-08-20 09:03:57 +000024402# Translate the various configuration directories and other basic
24403# information into substitutions that will end up in config.h.in so
24404# that these configured values can be hard-wired into a program.
24405eval LLVM_PREFIX="${prefix}";
24406eval LLVM_BINDIR="${prefix}/bin";
24407eval LLVM_LIBDIR="${prefix}/lib";
24408eval LLVM_DATADIR="${prefix}/data";
24409eval LLVM_DOCSDIR="${prefix}/docs";
24410eval LLVM_ETCDIR="${prefix}/etc";
24411eval LLVM_INCLUDEDIR="${prefix}/include";
24412eval LLVM_INFODIR="${prefix}/info";
24413eval LLVM_MANDIR="${prefix}/man";
24414LLVM_CONFIGTIME=`date`
24415
24416
24417
24418
24419
24420
24421
24422
24423
24424
24425
24426cat >>confdefs.h <<_ACEOF
24427#define LLVM_PREFIX "$LLVM_PREFIX"
24428_ACEOF
24429
24430
24431cat >>confdefs.h <<_ACEOF
24432#define LLVM_BINDIR "$LLVM_BINDIR"
24433_ACEOF
24434
24435
24436cat >>confdefs.h <<_ACEOF
24437#define LLVM_LIBDIR "$LLVM_LIBDIR"
24438_ACEOF
24439
24440
24441cat >>confdefs.h <<_ACEOF
24442#define LLVM_DATADIR "$LLVM_DATADIR"
24443_ACEOF
24444
24445
24446cat >>confdefs.h <<_ACEOF
24447#define LLVM_DATADIR "$LLVM_DOCSDIR"
24448_ACEOF
24449
24450
24451cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000024452#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000024453_ACEOF
24454
24455
24456cat >>confdefs.h <<_ACEOF
24457#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
24458_ACEOF
24459
24460
24461cat >>confdefs.h <<_ACEOF
24462#define LLVM_INFODIR "$LLVM_INFODIR"
24463_ACEOF
24464
24465
24466cat >>confdefs.h <<_ACEOF
24467#define LLVM_MANDIR "$LLVM_MANDIR"
24468_ACEOF
24469
24470
24471cat >>confdefs.h <<_ACEOF
24472#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
24473_ACEOF
24474
24475
John Criswell7a73b802003-06-30 21:59:07 +000024476cat >confcache <<\_ACEOF
24477# This file is a shell script that caches the results of configure
24478# tests run on this system so they can be shared between configure
24479# scripts and configure runs, see configure's option --config-cache.
24480# It is not useful on other systems. If it contains results you don't
24481# want to keep, you may remove or edit it.
24482#
24483# config.status only pays attention to the cache file if you give it
24484# the --recheck option to rerun configure.
24485#
John Criswell0c38eaf2003-09-10 15:17:25 +000024486# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000024487# loading this file, other *unset* `ac_cv_foo' will be assigned the
24488# following values.
24489
24490_ACEOF
24491
24492# The following way of writing the cache mishandles newlines in values,
24493# but we know of no workaround that is simple, portable, and efficient.
24494# So, don't put newlines in cache variables' values.
24495# Ultrix sh set writes to stderr and can't be redirected directly,
24496# and sets the high bit in the cache file unless we assign to the vars.
24497{
24498 (set) 2>&1 |
24499 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24500 *ac_space=\ *)
24501 # `set' does not quote correctly, so add quotes (double-quote
24502 # substitution turns \\\\ into \\, and sed turns \\ into \).
24503 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024504 "s/'/'\\\\''/g;
24505 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000024506 ;;
24507 *)
24508 # `set' quotes correctly as required by POSIX, so do not add quotes.
24509 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024510 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000024511 ;;
24512 esac;
24513} |
24514 sed '
24515 t clear
24516 : clear
24517 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24518 t end
24519 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24520 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000024521if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000024522 if test -w $cache_file; then
24523 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24524 cat confcache >$cache_file
24525 else
24526 echo "not updating unwritable cache $cache_file"
24527 fi
24528fi
24529rm -f confcache
24530
24531test "x$prefix" = xNONE && prefix=$ac_default_prefix
24532# Let make expand exec_prefix.
24533test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24534
24535# VPATH may cause trouble with some makes, so we remove $(srcdir),
24536# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24537# trailing colons and then remove the whole line if VPATH becomes empty
24538# (actually we leave an empty line to preserve line numbers).
24539if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024540 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000024541s/:*\$(srcdir):*/:/;
24542s/:*\${srcdir}:*/:/;
24543s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024544s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000024545s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024546s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000024547}'
24548fi
24549
24550DEFS=-DHAVE_CONFIG_H
24551
John Criswell0c38eaf2003-09-10 15:17:25 +000024552ac_libobjs=
24553ac_ltlibobjs=
24554for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24555 # 1. Remove the extension, and $U if already installed.
24556 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000024557 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024558 # 2. Add them.
24559 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24560 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24561done
24562LIBOBJS=$ac_libobjs
24563
24564LTLIBOBJS=$ac_ltlibobjs
24565
24566
John Criswell7a73b802003-06-30 21:59:07 +000024567
24568: ${CONFIG_STATUS=./config.status}
24569ac_clean_files_save=$ac_clean_files
24570ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24571{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24572echo "$as_me: creating $CONFIG_STATUS" >&6;}
24573cat >$CONFIG_STATUS <<_ACEOF
24574#! $SHELL
24575# Generated by $as_me.
24576# Run this file to recreate the current configuration.
24577# Compiler output produced by configure, useful for debugging
24578# configure, is in config.log if it exists.
24579
24580debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000024581ac_cs_recheck=false
24582ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000024583SHELL=\${CONFIG_SHELL-$SHELL}
24584_ACEOF
24585
24586cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024587## --------------------- ##
24588## M4sh Initialization. ##
24589## --------------------- ##
24590
24591# Be Bourne compatible
24592if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24593 emulate sh
24594 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024595 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24596 # is contrary to our usage. Disable this feature.
24597 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000024598elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24599 set -o posix
24600fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024601DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000024602
John Criswell7a73b802003-06-30 21:59:07 +000024603# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024604if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024605 as_unset=unset
24606else
24607 as_unset=false
24608fi
24609
John Criswell0c38eaf2003-09-10 15:17:25 +000024610
24611# Work around bugs in pre-3.0 UWIN ksh.
24612$as_unset ENV MAIL MAILPATH
24613PS1='$ '
24614PS2='> '
24615PS4='+ '
24616
24617# NLS nuisances.
24618for as_var in \
24619 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24620 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24621 LC_TELEPHONE LC_TIME
24622do
Reid Spencer2706f8c2004-09-19 23:53:36 +000024623 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000024624 eval $as_var=C; export $as_var
24625 else
24626 $as_unset $as_var
24627 fi
24628done
24629
24630# Required to use basename.
24631if expr a : '\(a\)' >/dev/null 2>&1; then
24632 as_expr=expr
24633else
24634 as_expr=false
24635fi
24636
24637if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24638 as_basename=basename
24639else
24640 as_basename=false
24641fi
John Criswell7a73b802003-06-30 21:59:07 +000024642
24643
24644# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000024645as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000024646$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24647 X"$0" : 'X\(//\)$' \| \
24648 X"$0" : 'X\(/\)$' \| \
24649 . : '\(.\)' 2>/dev/null ||
24650echo X/"$0" |
24651 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24652 /^X\/\(\/\/\)$/{ s//\1/; q; }
24653 /^X\/\(\/\).*/{ s//\1/; q; }
24654 s/.*/./; q'`
24655
John Criswell0c38eaf2003-09-10 15:17:25 +000024656
John Criswell7a73b802003-06-30 21:59:07 +000024657# PATH needs CR, and LINENO needs CR and PATH.
24658# Avoid depending upon Character Ranges.
24659as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24660as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24661as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24662as_cr_digits='0123456789'
24663as_cr_alnum=$as_cr_Letters$as_cr_digits
24664
24665# The user is always right.
24666if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024667 echo "#! /bin/sh" >conf$$.sh
24668 echo "exit 0" >>conf$$.sh
24669 chmod +x conf$$.sh
24670 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024671 PATH_SEPARATOR=';'
24672 else
24673 PATH_SEPARATOR=:
24674 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000024675 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000024676fi
24677
24678
24679 as_lineno_1=$LINENO
24680 as_lineno_2=$LINENO
24681 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24682 test "x$as_lineno_1" != "x$as_lineno_2" &&
24683 test "x$as_lineno_3" = "x$as_lineno_2" || {
24684 # Find who we are. Look in the path if we contain no path at all
24685 # relative or not.
24686 case $0 in
24687 *[\\/]* ) as_myself=$0 ;;
24688 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24689for as_dir in $PATH
24690do
24691 IFS=$as_save_IFS
24692 test -z "$as_dir" && as_dir=.
24693 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24694done
24695
24696 ;;
24697 esac
24698 # We did not find ourselves, most probably we were run as `sh COMMAND'
24699 # in which case we are not to be found in the path.
24700 if test "x$as_myself" = x; then
24701 as_myself=$0
24702 fi
24703 if test ! -f "$as_myself"; then
24704 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24705echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24706 { (exit 1); exit 1; }; }
24707 fi
24708 case $CONFIG_SHELL in
24709 '')
24710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24711for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24712do
24713 IFS=$as_save_IFS
24714 test -z "$as_dir" && as_dir=.
24715 for as_base in sh bash ksh sh5; do
24716 case $as_dir in
24717 /*)
24718 if ("$as_dir/$as_base" -c '
24719 as_lineno_1=$LINENO
24720 as_lineno_2=$LINENO
24721 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24722 test "x$as_lineno_1" != "x$as_lineno_2" &&
24723 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024724 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24725 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000024726 CONFIG_SHELL=$as_dir/$as_base
24727 export CONFIG_SHELL
24728 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24729 fi;;
24730 esac
24731 done
24732done
24733;;
24734 esac
24735
24736 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24737 # uniformly replaced by the line number. The first 'sed' inserts a
24738 # line-number line before each line; the second 'sed' does the real
24739 # work. The second script uses 'N' to pair each line-number line
24740 # with the numbered line, and appends trailing '-' during
24741 # substitution so that $LINENO is not a special case at line end.
24742 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24743 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24744 sed '=' <$as_myself |
24745 sed '
24746 N
24747 s,$,-,
24748 : loop
24749 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24750 t loop
24751 s,-$,,
24752 s,^['$as_cr_digits']*\n,,
24753 ' >$as_me.lineno &&
24754 chmod +x $as_me.lineno ||
24755 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24756echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24757 { (exit 1); exit 1; }; }
24758
24759 # Don't try to exec as it changes $[0], causing all sort of problems
24760 # (the dirname of $[0] is not the place where we might find the
24761 # original and so on. Autoconf is especially sensible to this).
24762 . ./$as_me.lineno
24763 # Exit status is that of the last command.
24764 exit
24765}
24766
24767
24768case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24769 *c*,-n*) ECHO_N= ECHO_C='
24770' ECHO_T=' ' ;;
24771 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24772 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24773esac
24774
24775if expr a : '\(a\)' >/dev/null 2>&1; then
24776 as_expr=expr
24777else
24778 as_expr=false
24779fi
24780
24781rm -f conf$$ conf$$.exe conf$$.file
24782echo >conf$$.file
24783if ln -s conf$$.file conf$$ 2>/dev/null; then
24784 # We could just check for DJGPP; but this test a) works b) is more generic
24785 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24786 if test -f conf$$.exe; then
24787 # Don't use ln at all; we don't have any links
24788 as_ln_s='cp -p'
24789 else
24790 as_ln_s='ln -s'
24791 fi
24792elif ln conf$$.file conf$$ 2>/dev/null; then
24793 as_ln_s=ln
24794else
24795 as_ln_s='cp -p'
24796fi
24797rm -f conf$$ conf$$.exe conf$$.file
24798
John Criswell0c38eaf2003-09-10 15:17:25 +000024799if mkdir -p . 2>/dev/null; then
24800 as_mkdir_p=:
24801else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024802 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000024803 as_mkdir_p=false
24804fi
24805
John Criswell7a73b802003-06-30 21:59:07 +000024806as_executable_p="test -f"
24807
24808# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024809as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024810
24811# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024812as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024813
24814
24815# IFS
24816# We need space, tab and new line, in precisely that order.
24817as_nl='
24818'
24819IFS=" $as_nl"
24820
24821# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000024822$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000024823
24824exec 6>&1
24825
24826# Open the log real soon, to keep \$[0] and so on meaningful, and to
24827# report actual input values of CONFIG_FILES etc. instead of their
24828# values after options handling. Logging --version etc. is OK.
24829exec 5>>config.log
24830{
24831 echo
24832 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24833## Running $as_me. ##
24834_ASBOX
24835} >&5
24836cat >&5 <<_CSEOF
24837
Reid Spencere9de0912004-08-20 09:03:57 +000024838This file was extended by LLVM $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000024839generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000024840
24841 CONFIG_FILES = $CONFIG_FILES
24842 CONFIG_HEADERS = $CONFIG_HEADERS
24843 CONFIG_LINKS = $CONFIG_LINKS
24844 CONFIG_COMMANDS = $CONFIG_COMMANDS
24845 $ $0 $@
24846
24847_CSEOF
24848echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24849echo >&5
24850_ACEOF
24851
24852# Files that config.status was made for.
24853if test -n "$ac_config_files"; then
24854 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24855fi
24856
24857if test -n "$ac_config_headers"; then
24858 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24859fi
24860
24861if test -n "$ac_config_links"; then
24862 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24863fi
24864
24865if test -n "$ac_config_commands"; then
24866 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24867fi
24868
24869cat >>$CONFIG_STATUS <<\_ACEOF
24870
24871ac_cs_usage="\
24872\`$as_me' instantiates files from templates according to the
24873current configuration.
24874
24875Usage: $0 [OPTIONS] [FILE]...
24876
24877 -h, --help print this help, then exit
24878 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000024879 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000024880 -d, --debug don't remove temporary files
24881 --recheck update $as_me by reconfiguring in the same conditions
24882 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000024883 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000024884 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000024885 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000024886
24887Configuration files:
24888$config_files
24889
24890Configuration headers:
24891$config_headers
24892
Reid Spencerde8c47f2004-08-29 19:35:28 +000024893Configuration links:
24894$config_links
24895
John Criswellc764fbc2003-09-06 15:17:13 +000024896Configuration commands:
24897$config_commands
24898
John Criswell7a73b802003-06-30 21:59:07 +000024899Report bugs to <bug-autoconf@gnu.org>."
24900_ACEOF
24901
24902cat >>$CONFIG_STATUS <<_ACEOF
24903ac_cs_version="\\
Reid Spencere9de0912004-08-20 09:03:57 +000024904LLVM config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000024905configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000024906 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24907
Reid Spencer2706f8c2004-09-19 23:53:36 +000024908Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000024909This config.status script is free software; the Free Software Foundation
24910gives unlimited permission to copy, distribute and modify it."
24911srcdir=$srcdir
24912INSTALL="$INSTALL"
24913_ACEOF
24914
24915cat >>$CONFIG_STATUS <<\_ACEOF
24916# If no file are specified by the user, then we need to provide default
24917# value. By we need to know if files were specified by the user.
24918ac_need_defaults=:
24919while test $# != 0
24920do
24921 case $1 in
24922 --*=*)
24923 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24924 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024925 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000024926 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024927 -*)
24928 ac_option=$1
24929 ac_optarg=$2
24930 ac_shift=shift
24931 ;;
John Criswell7a73b802003-06-30 21:59:07 +000024932 *) # This is not an option, so the user has probably given explicit
24933 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000024934 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000024935 ac_need_defaults=false;;
24936 esac
24937
John Criswell0c38eaf2003-09-10 15:17:25 +000024938 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000024939 # Handling of the options.
24940_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000024941cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024942 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24943 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024944 --version | --vers* | -V )
24945 echo "$ac_cs_version"; exit 0 ;;
24946 --he | --h)
24947 # Conflict between --help and --header
24948 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24949Try \`$0 --help' for more information." >&5
24950echo "$as_me: error: ambiguous option: $1
24951Try \`$0 --help' for more information." >&2;}
24952 { (exit 1); exit 1; }; };;
24953 --help | --hel | -h )
24954 echo "$ac_cs_usage"; exit 0 ;;
24955 --debug | --d* | -d )
24956 debug=: ;;
24957 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000024958 $ac_shift
24959 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024960 ac_need_defaults=false;;
24961 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000024962 $ac_shift
24963 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024964 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24966 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24967 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024968
24969 # This is an error.
24970 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24971Try \`$0 --help' for more information." >&5
24972echo "$as_me: error: unrecognized option: $1
24973Try \`$0 --help' for more information." >&2;}
24974 { (exit 1); exit 1; }; } ;;
24975
24976 *) ac_config_targets="$ac_config_targets $1" ;;
24977
24978 esac
24979 shift
24980done
24981
John Criswell0c38eaf2003-09-10 15:17:25 +000024982ac_configure_extra_args=
24983
24984if $ac_cs_silent; then
24985 exec 6>/dev/null
24986 ac_configure_extra_args="$ac_configure_extra_args --silent"
24987fi
24988
24989_ACEOF
24990cat >>$CONFIG_STATUS <<_ACEOF
24991if \$ac_cs_recheck; then
24992 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24993 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24994fi
24995
John Criswell7a73b802003-06-30 21:59:07 +000024996_ACEOF
24997
John Criswellc764fbc2003-09-06 15:17:13 +000024998cat >>$CONFIG_STATUS <<_ACEOF
24999#
25000# INIT-COMMANDS section.
25001#
John Criswell7a73b802003-06-30 21:59:07 +000025002
John Criswellc764fbc2003-09-06 15:17:13 +000025003${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
25004${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000025005${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025006${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025007${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025008${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
25009${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000025010${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
25011${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000025012${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Misha Brukman591edc62004-10-14 18:59:42 +000025013${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile.JIT`
Brian Gaekec45be042003-10-07 06:01:34 +000025014${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025015${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000025016
25017_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025018
25019
25020
25021cat >>$CONFIG_STATUS <<\_ACEOF
25022for ac_config_target in $ac_config_targets
25023do
25024 case "$ac_config_target" in
25025 # Handling of arguments.
25026 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +000025027 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025028 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
25029 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025030 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025031 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025032 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025033 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
25034 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000025035 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
25036 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025037 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Misha Brukman591edc62004-10-14 18:59:42 +000025038 "tools/Makefile.JIT" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile.JIT" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025039 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025040 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000025041 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000025042 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000025043 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
25044 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell40468462004-09-24 21:19:06 +000025045 "include/llvm/Support/ThreadSupport.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/ThreadSupport.h" ;;
25046 "include/llvm/ADT/iterator" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/iterator" ;;
John Criswell7a73b802003-06-30 21:59:07 +000025047 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25048echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25049 { (exit 1); exit 1; }; };;
25050 esac
25051done
25052
25053# If the user did not use the arguments to specify the items to instantiate,
25054# then the envvar interface is used. Set only those that are not.
25055# We use the long form for the default assignment because of an extremely
25056# bizarre bug on SunOS 4.1.3.
25057if $ac_need_defaults; then
25058 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25059 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000025060 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000025061 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000025062fi
25063
John Criswell0c38eaf2003-09-10 15:17:25 +000025064# Have a temporary directory for convenience. Make it in the build tree
25065# simply because there is no reason to put it here, and in addition,
25066# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000025067# Create a temporary directory, and hook for its removal unless debugging.
25068$debug ||
25069{
25070 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25071 trap '{ (exit 1); exit 1; }' 1 2 13 15
25072}
25073
25074# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000025075
John Criswell7a73b802003-06-30 21:59:07 +000025076{
John Criswell0c38eaf2003-09-10 15:17:25 +000025077 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000025078 test -n "$tmp" && test -d "$tmp"
25079} ||
25080{
John Criswell0c38eaf2003-09-10 15:17:25 +000025081 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000025082 (umask 077 && mkdir $tmp)
25083} ||
25084{
John Criswell0c38eaf2003-09-10 15:17:25 +000025085 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000025086 { (exit 1); exit 1; }
25087}
25088
25089_ACEOF
25090
25091cat >>$CONFIG_STATUS <<_ACEOF
25092
25093#
25094# CONFIG_FILES section.
25095#
25096
25097# No need to generate the scripts if there are no CONFIG_FILES.
25098# This happens for instance when ./config.status config.h
25099if test -n "\$CONFIG_FILES"; then
25100 # Protect against being on the right side of a sed subst in config.status.
25101 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25102 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25103s,@SHELL@,$SHELL,;t t
25104s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25105s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25106s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25107s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25108s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25109s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25110s,@exec_prefix@,$exec_prefix,;t t
25111s,@prefix@,$prefix,;t t
25112s,@program_transform_name@,$program_transform_name,;t t
25113s,@bindir@,$bindir,;t t
25114s,@sbindir@,$sbindir,;t t
25115s,@libexecdir@,$libexecdir,;t t
25116s,@datadir@,$datadir,;t t
25117s,@sysconfdir@,$sysconfdir,;t t
25118s,@sharedstatedir@,$sharedstatedir,;t t
25119s,@localstatedir@,$localstatedir,;t t
25120s,@libdir@,$libdir,;t t
25121s,@includedir@,$includedir,;t t
25122s,@oldincludedir@,$oldincludedir,;t t
25123s,@infodir@,$infodir,;t t
25124s,@mandir@,$mandir,;t t
25125s,@build_alias@,$build_alias,;t t
25126s,@host_alias@,$host_alias,;t t
25127s,@target_alias@,$target_alias,;t t
25128s,@DEFS@,$DEFS,;t t
25129s,@ECHO_C@,$ECHO_C,;t t
25130s,@ECHO_N@,$ECHO_N,;t t
25131s,@ECHO_T@,$ECHO_T,;t t
25132s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000025133s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025134s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25135s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25136s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25137s,@build@,$build,;t t
25138s,@build_cpu@,$build_cpu,;t t
25139s,@build_vendor@,$build_vendor,;t t
25140s,@build_os@,$build_os,;t t
25141s,@host@,$host,;t t
25142s,@host_cpu@,$host_cpu,;t t
25143s,@host_vendor@,$host_vendor,;t t
25144s,@host_os@,$host_os,;t t
25145s,@target@,$target,;t t
25146s,@target_cpu@,$target_cpu,;t t
25147s,@target_vendor@,$target_vendor,;t t
25148s,@target_os@,$target_os,;t t
25149s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025150s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000025151s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025152s,@CXX@,$CXX,;t t
25153s,@CXXFLAGS@,$CXXFLAGS,;t t
25154s,@LDFLAGS@,$LDFLAGS,;t t
25155s,@CPPFLAGS@,$CPPFLAGS,;t t
25156s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25157s,@EXEEXT@,$EXEEXT,;t t
25158s,@OBJEXT@,$OBJEXT,;t t
25159s,@CC@,$CC,;t t
25160s,@CFLAGS@,$CFLAGS,;t t
25161s,@ac_ct_CC@,$ac_ct_CC,;t t
25162s,@CPP@,$CPP,;t t
25163s,@ifGNUmake@,$ifGNUmake,;t t
25164s,@LEX@,$LEX,;t t
25165s,@LEXLIB@,$LEXLIB,;t t
25166s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000025167s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025168s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000025169s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000025170s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025171s,@LN_S@,$LN_S,;t t
25172s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000025173s,@AR@,$AR,;t t
25174s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025175s,@RANLIB@,$RANLIB,;t t
25176s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25177s,@STRIP@,$STRIP,;t t
25178s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000025179s,@CXXCPP@,$CXXCPP,;t t
25180s,@F77@,$F77,;t t
25181s,@FFLAGS@,$FFLAGS,;t t
25182s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025183s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025184s,@DOT@,$DOT,;t t
25185s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000025186s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000025187s,@PYTHON@,$PYTHON,;t t
25188s,@QMTEST@,$QMTEST,;t t
Reid Spencer37130d22004-10-04 07:05:07 +000025189s,@HAVE_ZLIB@,$HAVE_ZLIB,;t t
25190s,@HAVE_BZIP2@,$HAVE_BZIP2,;t t
John Criswell0021c312004-02-13 21:57:29 +000025191s,@ENDIAN@,$ENDIAN,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025192s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025193s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025194s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025195s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000025196s,@LLVMCC1@,$LLVMCC1,;t t
25197s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000025198s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000025199s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
25200s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
25201s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
25202s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
25203s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
25204s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
25205s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
25206s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
25207s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
25208s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000025209s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000025210s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000025211CEOF
25212
25213_ACEOF
25214
25215 cat >>$CONFIG_STATUS <<\_ACEOF
25216 # Split the substitutions into bite-sized pieces for seds with
25217 # small command number limits, like on Digital OSF/1 and HP-UX.
25218 ac_max_sed_lines=48
25219 ac_sed_frag=1 # Number of current file.
25220 ac_beg=1 # First line for current file.
25221 ac_end=$ac_max_sed_lines # Line after last line for current file.
25222 ac_more_lines=:
25223 ac_sed_cmds=
25224 while $ac_more_lines; do
25225 if test $ac_beg -gt 1; then
25226 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25227 else
25228 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25229 fi
25230 if test ! -s $tmp/subs.frag; then
25231 ac_more_lines=false
25232 else
25233 # The purpose of the label and of the branching condition is to
25234 # speed up the sed processing (if there are no `@' at all, there
25235 # is no need to browse any of the substitutions).
25236 # These are the two extra sed commands mentioned above.
25237 (echo ':t
25238 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25239 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000025240 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000025241 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000025242 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000025243 fi
25244 ac_sed_frag=`expr $ac_sed_frag + 1`
25245 ac_beg=$ac_end
25246 ac_end=`expr $ac_end + $ac_max_sed_lines`
25247 fi
25248 done
25249 if test -z "$ac_sed_cmds"; then
25250 ac_sed_cmds=cat
25251 fi
25252fi # test -n "$CONFIG_FILES"
25253
25254_ACEOF
25255cat >>$CONFIG_STATUS <<\_ACEOF
25256for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25257 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25258 case $ac_file in
25259 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000025260 cat >$tmp/stdin
25261 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25262 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025263 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025264 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025265 * ) ac_file_in=$ac_file.in ;;
25266 esac
25267
25268 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25269 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25270$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025271 X"$ac_file" : 'X\(//\)[^/]' \| \
25272 X"$ac_file" : 'X\(//\)$' \| \
25273 X"$ac_file" : 'X\(/\)' \| \
25274 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025275echo X"$ac_file" |
25276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25277 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25278 /^X\(\/\/\)$/{ s//\1/; q; }
25279 /^X\(\/\).*/{ s//\1/; q; }
25280 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025281 { if $as_mkdir_p; then
25282 mkdir -p "$ac_dir"
25283 else
25284 as_dir="$ac_dir"
25285 as_dirs=
25286 while test ! -d "$as_dir"; do
25287 as_dirs="$as_dir $as_dirs"
25288 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25289$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025290 X"$as_dir" : 'X\(//\)[^/]' \| \
25291 X"$as_dir" : 'X\(//\)$' \| \
25292 X"$as_dir" : 'X\(/\)' \| \
25293 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025294echo X"$as_dir" |
25295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25296 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25297 /^X\(\/\/\)$/{ s//\1/; q; }
25298 /^X\(\/\).*/{ s//\1/; q; }
25299 s/.*/./; q'`
25300 done
25301 test ! -n "$as_dirs" || mkdir $as_dirs
25302 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25303echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25304 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025305
25306 ac_builddir=.
25307
25308if test "$ac_dir" != .; then
25309 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25310 # A "../" for each directory in $ac_dir_suffix.
25311 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25312else
25313 ac_dir_suffix= ac_top_builddir=
25314fi
25315
25316case $srcdir in
25317 .) # No --srcdir option. We are building in place.
25318 ac_srcdir=.
25319 if test -z "$ac_top_builddir"; then
25320 ac_top_srcdir=.
25321 else
25322 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25323 fi ;;
25324 [\\/]* | ?:[\\/]* ) # Absolute path.
25325 ac_srcdir=$srcdir$ac_dir_suffix;
25326 ac_top_srcdir=$srcdir ;;
25327 *) # Relative path.
25328 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25329 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25330esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025331
25332# Do not use `cd foo && pwd` to compute absolute paths, because
25333# the directories may not exist.
25334case `pwd` in
25335.) ac_abs_builddir="$ac_dir";;
25336*)
25337 case "$ac_dir" in
25338 .) ac_abs_builddir=`pwd`;;
25339 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25340 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25341 esac;;
25342esac
25343case $ac_abs_builddir in
25344.) ac_abs_top_builddir=${ac_top_builddir}.;;
25345*)
25346 case ${ac_top_builddir}. in
25347 .) ac_abs_top_builddir=$ac_abs_builddir;;
25348 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25349 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25350 esac;;
25351esac
25352case $ac_abs_builddir in
25353.) ac_abs_srcdir=$ac_srcdir;;
25354*)
25355 case $ac_srcdir in
25356 .) ac_abs_srcdir=$ac_abs_builddir;;
25357 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25358 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25359 esac;;
25360esac
25361case $ac_abs_builddir in
25362.) ac_abs_top_srcdir=$ac_top_srcdir;;
25363*)
25364 case $ac_top_srcdir in
25365 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25366 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25367 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25368 esac;;
25369esac
John Criswell7a73b802003-06-30 21:59:07 +000025370
25371
25372 case $INSTALL in
25373 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25374 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25375 esac
25376
25377 if test x"$ac_file" != x-; then
25378 { echo "$as_me:$LINENO: creating $ac_file" >&5
25379echo "$as_me: creating $ac_file" >&6;}
25380 rm -f "$ac_file"
25381 fi
25382 # Let's still pretend it is `configure' which instantiates (i.e., don't
25383 # use $as_me), people would be surprised to read:
25384 # /* config.h. Generated by config.status. */
25385 if test x"$ac_file" = x-; then
25386 configure_input=
25387 else
25388 configure_input="$ac_file. "
25389 fi
25390 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000025391 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000025392
25393 # First look for the input files in the build tree, otherwise in the
25394 # src tree.
25395 ac_file_inputs=`IFS=:
25396 for f in $ac_file_in; do
25397 case $f in
25398 -) echo $tmp/stdin ;;
25399 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025400 # Absolute (can't be DOS-style, as IFS=:)
25401 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025402echo "$as_me: error: cannot find input file: $f" >&2;}
25403 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025404 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000025405 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000025406 if test -f "$f"; then
25407 # Build tree
25408 echo "$f"
25409 elif test -f "$srcdir/$f"; then
25410 # Source tree
25411 echo "$srcdir/$f"
25412 else
25413 # /dev/null tree
25414 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025415echo "$as_me: error: cannot find input file: $f" >&2;}
25416 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025417 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000025418 esac
25419 done` || { (exit 1); exit 1; }
25420_ACEOF
25421cat >>$CONFIG_STATUS <<_ACEOF
25422 sed "$ac_vpsub
25423$extrasub
25424_ACEOF
25425cat >>$CONFIG_STATUS <<\_ACEOF
25426:t
25427/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25428s,@configure_input@,$configure_input,;t t
25429s,@srcdir@,$ac_srcdir,;t t
25430s,@abs_srcdir@,$ac_abs_srcdir,;t t
25431s,@top_srcdir@,$ac_top_srcdir,;t t
25432s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25433s,@builddir@,$ac_builddir,;t t
25434s,@abs_builddir@,$ac_abs_builddir,;t t
25435s,@top_builddir@,$ac_top_builddir,;t t
25436s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25437s,@INSTALL@,$ac_INSTALL,;t t
25438" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25439 rm -f $tmp/stdin
25440 if test x"$ac_file" != x-; then
25441 mv $tmp/out $ac_file
25442 else
25443 cat $tmp/out
25444 rm -f $tmp/out
25445 fi
25446
25447done
25448_ACEOF
25449cat >>$CONFIG_STATUS <<\_ACEOF
25450
25451#
25452# CONFIG_HEADER section.
25453#
25454
25455# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25456# NAME is the cpp macro being defined and VALUE is the value it is being given.
25457#
25458# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025459ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25460ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000025461ac_dC=' '
25462ac_dD=',;t'
25463# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000025464ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000025465ac_uB='$,\1#\2define\3'
25466ac_uC=' '
25467ac_uD=',;t'
25468
25469for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25470 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25471 case $ac_file in
25472 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000025473 cat >$tmp/stdin
25474 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025476 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025477 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000025478 * ) ac_file_in=$ac_file.in ;;
25479 esac
25480
25481 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25482echo "$as_me: creating $ac_file" >&6;}
25483
25484 # First look for the input files in the build tree, otherwise in the
25485 # src tree.
25486 ac_file_inputs=`IFS=:
25487 for f in $ac_file_in; do
25488 case $f in
25489 -) echo $tmp/stdin ;;
25490 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000025491 # Absolute (can't be DOS-style, as IFS=:)
25492 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025493echo "$as_me: error: cannot find input file: $f" >&2;}
25494 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025495 # Do quote $f, to prevent DOS paths from being IFS'd.
25496 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000025497 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000025498 if test -f "$f"; then
25499 # Build tree
25500 echo "$f"
25501 elif test -f "$srcdir/$f"; then
25502 # Source tree
25503 echo "$srcdir/$f"
25504 else
25505 # /dev/null tree
25506 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000025507echo "$as_me: error: cannot find input file: $f" >&2;}
25508 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000025509 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000025510 esac
25511 done` || { (exit 1); exit 1; }
25512 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025513 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000025514
25515_ACEOF
25516
25517# Transform confdefs.h into two sed scripts, `conftest.defines' and
25518# `conftest.undefs', that substitutes the proper values into
25519# config.h.in to produce config.h. The first handles `#define'
25520# templates, and the second `#undef' templates.
25521# And first: Protect against being on the right side of a sed subst in
25522# config.status. Protect against being in an unquoted here document
25523# in config.status.
25524rm -f conftest.defines conftest.undefs
25525# Using a here document instead of a string reduces the quoting nightmare.
25526# Putting comments in sed scripts is not portable.
25527#
25528# `end' is used to avoid that the second main sed command (meant for
25529# 0-ary CPP macros) applies to n-ary macro definitions.
25530# See the Autoconf documentation for `clear'.
25531cat >confdef2sed.sed <<\_ACEOF
25532s/[\\&,]/\\&/g
25533s,[\\$`],\\&,g
25534t clear
25535: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000025536s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000025537t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000025538s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000025539: end
25540_ACEOF
25541# If some macros were called several times there might be several times
25542# the same #defines, which is useless. Nevertheless, we may not want to
25543# sort them, since we want the *last* AC-DEFINE to be honored.
25544uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25545sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25546rm -f confdef2sed.sed
25547
25548# This sed command replaces #undef with comments. This is necessary, for
25549# example, in the case of _POSIX_SOURCE, which is predefined and required
25550# on some systems where configure will not decide to define it.
25551cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000025552s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000025553_ACEOF
25554
25555# Break up conftest.defines because some shells have a limit on the size
25556# of here documents, and old seds have small limits too (100 cmds).
25557echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000025558echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025559echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25560echo ' :' >>$CONFIG_STATUS
25561rm -f conftest.tail
25562while grep . conftest.defines >/dev/null
25563do
25564 # Write a limited-size here document to $tmp/defines.sed.
25565 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25566 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025567 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025568 # Work around the forget-to-reset-the-flag bug.
25569 echo 't clr' >>$CONFIG_STATUS
25570 echo ': clr' >>$CONFIG_STATUS
25571 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25572 echo 'CEOF
25573 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25574 rm -f $tmp/in
25575 mv $tmp/out $tmp/in
25576' >>$CONFIG_STATUS
25577 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25578 rm -f conftest.defines
25579 mv conftest.tail conftest.defines
25580done
25581rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000025582echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025583echo >>$CONFIG_STATUS
25584
25585# Break up conftest.undefs because some shells have a limit on the size
25586# of here documents, and old seds have small limits too (100 cmds).
25587echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25588rm -f conftest.tail
25589while grep . conftest.undefs >/dev/null
25590do
25591 # Write a limited-size here document to $tmp/undefs.sed.
25592 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25593 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025594 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025595 # Work around the forget-to-reset-the-flag bug.
25596 echo 't clr' >>$CONFIG_STATUS
25597 echo ': clr' >>$CONFIG_STATUS
25598 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25599 echo 'CEOF
25600 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25601 rm -f $tmp/in
25602 mv $tmp/out $tmp/in
25603' >>$CONFIG_STATUS
25604 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25605 rm -f conftest.undefs
25606 mv conftest.tail conftest.undefs
25607done
25608rm -f conftest.undefs
25609
25610cat >>$CONFIG_STATUS <<\_ACEOF
25611 # Let's still pretend it is `configure' which instantiates (i.e., don't
25612 # use $as_me), people would be surprised to read:
25613 # /* config.h. Generated by config.status. */
25614 if test x"$ac_file" = x-; then
25615 echo "/* Generated by configure. */" >$tmp/config.h
25616 else
25617 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25618 fi
25619 cat $tmp/in >>$tmp/config.h
25620 rm -f $tmp/in
25621 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000025622 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025623 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25624echo "$as_me: $ac_file is unchanged" >&6;}
25625 else
25626 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25627$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025628 X"$ac_file" : 'X\(//\)[^/]' \| \
25629 X"$ac_file" : 'X\(//\)$' \| \
25630 X"$ac_file" : 'X\(/\)' \| \
25631 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025632echo X"$ac_file" |
25633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25634 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25635 /^X\(\/\/\)$/{ s//\1/; q; }
25636 /^X\(\/\).*/{ s//\1/; q; }
25637 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025638 { if $as_mkdir_p; then
25639 mkdir -p "$ac_dir"
25640 else
25641 as_dir="$ac_dir"
25642 as_dirs=
25643 while test ! -d "$as_dir"; do
25644 as_dirs="$as_dir $as_dirs"
25645 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25646$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025647 X"$as_dir" : 'X\(//\)[^/]' \| \
25648 X"$as_dir" : 'X\(//\)$' \| \
25649 X"$as_dir" : 'X\(/\)' \| \
25650 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025651echo X"$as_dir" |
25652 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25653 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25654 /^X\(\/\/\)$/{ s//\1/; q; }
25655 /^X\(\/\).*/{ s//\1/; q; }
25656 s/.*/./; q'`
25657 done
25658 test ! -n "$as_dirs" || mkdir $as_dirs
25659 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25660echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25661 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025662
25663 rm -f $ac_file
25664 mv $tmp/config.h $ac_file
25665 fi
25666 else
25667 cat $tmp/config.h
25668 rm -f $tmp/config.h
25669 fi
25670done
25671_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000025672cat >>$CONFIG_STATUS <<\_ACEOF
25673
25674#
Reid Spencerde8c47f2004-08-29 19:35:28 +000025675# CONFIG_LINKS section.
25676#
25677
25678for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25679 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25680 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25681
25682 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25683echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25684
25685 if test ! -r $srcdir/$ac_source; then
25686 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25687echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25688 { (exit 1); exit 1; }; }
25689 fi
25690 rm -f $ac_dest
25691
25692 # Make relative symlinks.
25693 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25694$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025695 X"$ac_dest" : 'X\(//\)[^/]' \| \
25696 X"$ac_dest" : 'X\(//\)$' \| \
25697 X"$ac_dest" : 'X\(/\)' \| \
25698 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025699echo X"$ac_dest" |
25700 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25701 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25702 /^X\(\/\/\)$/{ s//\1/; q; }
25703 /^X\(\/\).*/{ s//\1/; q; }
25704 s/.*/./; q'`
25705 { if $as_mkdir_p; then
25706 mkdir -p "$ac_dest_dir"
25707 else
25708 as_dir="$ac_dest_dir"
25709 as_dirs=
25710 while test ! -d "$as_dir"; do
25711 as_dirs="$as_dir $as_dirs"
25712 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25713$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025714 X"$as_dir" : 'X\(//\)[^/]' \| \
25715 X"$as_dir" : 'X\(//\)$' \| \
25716 X"$as_dir" : 'X\(/\)' \| \
25717 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025718echo X"$as_dir" |
25719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25720 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25721 /^X\(\/\/\)$/{ s//\1/; q; }
25722 /^X\(\/\).*/{ s//\1/; q; }
25723 s/.*/./; q'`
25724 done
25725 test ! -n "$as_dirs" || mkdir $as_dirs
25726 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25727echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25728 { (exit 1); exit 1; }; }; }
25729
25730 ac_builddir=.
25731
25732if test "$ac_dest_dir" != .; then
25733 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25734 # A "../" for each directory in $ac_dir_suffix.
25735 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25736else
25737 ac_dir_suffix= ac_top_builddir=
25738fi
25739
25740case $srcdir in
25741 .) # No --srcdir option. We are building in place.
25742 ac_srcdir=.
25743 if test -z "$ac_top_builddir"; then
25744 ac_top_srcdir=.
25745 else
25746 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25747 fi ;;
25748 [\\/]* | ?:[\\/]* ) # Absolute path.
25749 ac_srcdir=$srcdir$ac_dir_suffix;
25750 ac_top_srcdir=$srcdir ;;
25751 *) # Relative path.
25752 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25753 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25754esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025755
25756# Do not use `cd foo && pwd` to compute absolute paths, because
25757# the directories may not exist.
25758case `pwd` in
25759.) ac_abs_builddir="$ac_dest_dir";;
25760*)
25761 case "$ac_dest_dir" in
25762 .) ac_abs_builddir=`pwd`;;
25763 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25764 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25765 esac;;
25766esac
25767case $ac_abs_builddir in
25768.) ac_abs_top_builddir=${ac_top_builddir}.;;
25769*)
25770 case ${ac_top_builddir}. in
25771 .) ac_abs_top_builddir=$ac_abs_builddir;;
25772 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25773 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25774 esac;;
25775esac
25776case $ac_abs_builddir in
25777.) ac_abs_srcdir=$ac_srcdir;;
25778*)
25779 case $ac_srcdir in
25780 .) ac_abs_srcdir=$ac_abs_builddir;;
25781 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25782 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25783 esac;;
25784esac
25785case $ac_abs_builddir in
25786.) ac_abs_top_srcdir=$ac_top_srcdir;;
25787*)
25788 case $ac_top_srcdir in
25789 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25790 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25791 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25792 esac;;
25793esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000025794
25795
25796 case $srcdir in
25797 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25798 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25799 esac
25800
25801 # Try a symlink, then a hard link, then a copy.
25802 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25803 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25804 cp -p $srcdir/$ac_source $ac_dest ||
25805 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25806echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25807 { (exit 1); exit 1; }; }
25808done
25809_ACEOF
25810cat >>$CONFIG_STATUS <<\_ACEOF
25811
25812#
John Criswellc764fbc2003-09-06 15:17:13 +000025813# CONFIG_COMMANDS section.
25814#
25815for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25816 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25817 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25818 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25819$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025820 X"$ac_dest" : 'X\(//\)[^/]' \| \
25821 X"$ac_dest" : 'X\(//\)$' \| \
25822 X"$ac_dest" : 'X\(/\)' \| \
25823 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000025824echo X"$ac_dest" |
25825 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25826 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25827 /^X\(\/\/\)$/{ s//\1/; q; }
25828 /^X\(\/\).*/{ s//\1/; q; }
25829 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025830 { if $as_mkdir_p; then
25831 mkdir -p "$ac_dir"
25832 else
25833 as_dir="$ac_dir"
25834 as_dirs=
25835 while test ! -d "$as_dir"; do
25836 as_dirs="$as_dir $as_dirs"
25837 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25838$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25839 X"$as_dir" : 'X\(//\)[^/]' \| \
25840 X"$as_dir" : 'X\(//\)$' \| \
25841 X"$as_dir" : 'X\(/\)' \| \
25842 . : '\(.\)' 2>/dev/null ||
25843echo X"$as_dir" |
25844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25845 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25846 /^X\(\/\/\)$/{ s//\1/; q; }
25847 /^X\(\/\).*/{ s//\1/; q; }
25848 s/.*/./; q'`
25849 done
25850 test ! -n "$as_dirs" || mkdir $as_dirs
25851 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25852echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25853 { (exit 1); exit 1; }; }; }
25854
John Criswellc764fbc2003-09-06 15:17:13 +000025855 ac_builddir=.
25856
25857if test "$ac_dir" != .; then
25858 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25859 # A "../" for each directory in $ac_dir_suffix.
25860 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25861else
25862 ac_dir_suffix= ac_top_builddir=
25863fi
25864
25865case $srcdir in
25866 .) # No --srcdir option. We are building in place.
25867 ac_srcdir=.
25868 if test -z "$ac_top_builddir"; then
25869 ac_top_srcdir=.
25870 else
25871 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25872 fi ;;
25873 [\\/]* | ?:[\\/]* ) # Absolute path.
25874 ac_srcdir=$srcdir$ac_dir_suffix;
25875 ac_top_srcdir=$srcdir ;;
25876 *) # Relative path.
25877 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25878 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25879esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025880
25881# Do not use `cd foo && pwd` to compute absolute paths, because
25882# the directories may not exist.
25883case `pwd` in
25884.) ac_abs_builddir="$ac_dir";;
25885*)
25886 case "$ac_dir" in
25887 .) ac_abs_builddir=`pwd`;;
25888 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25889 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25890 esac;;
25891esac
25892case $ac_abs_builddir in
25893.) ac_abs_top_builddir=${ac_top_builddir}.;;
25894*)
25895 case ${ac_top_builddir}. in
25896 .) ac_abs_top_builddir=$ac_abs_builddir;;
25897 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25898 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25899 esac;;
25900esac
25901case $ac_abs_builddir in
25902.) ac_abs_srcdir=$ac_srcdir;;
25903*)
25904 case $ac_srcdir in
25905 .) ac_abs_srcdir=$ac_abs_builddir;;
25906 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25907 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25908 esac;;
25909esac
25910case $ac_abs_builddir in
25911.) ac_abs_top_srcdir=$ac_top_srcdir;;
25912*)
25913 case $ac_top_srcdir in
25914 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25915 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25916 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25917 esac;;
25918esac
John Criswellc764fbc2003-09-06 15:17:13 +000025919
25920
25921 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25922echo "$as_me: executing $ac_dest commands" >&6;}
25923 case $ac_dest in
25924 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25925 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025926 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025927 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025928 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025929 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25930 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000025931 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25932 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 +000025933 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Misha Brukman591edc62004-10-14 18:59:42 +000025934 tools/Makefile.JIT ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile.JIT tools/Makefile.JIT ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025935 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025936 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025937 esac
25938done
25939_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025940
25941cat >>$CONFIG_STATUS <<\_ACEOF
25942
25943{ (exit 0); exit 0; }
25944_ACEOF
25945chmod +x $CONFIG_STATUS
25946ac_clean_files=$ac_clean_files_save
25947
25948
25949# configure is writing to config.log, and then calls config.status.
25950# config.status does its own redirection, appending to config.log.
25951# Unfortunately, on DOS this fails, as config.log is still kept open
25952# by configure, so config.status won't be able to write to it; its
25953# output is simply discarded. So we exec the FD to /dev/null,
25954# effectively closing config.log, so it can be properly (re)opened and
25955# appended to by config.status. When coming back to configure, we
25956# need to make the FD available again.
25957if test "$no_create" != yes; then
25958 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000025959 ac_config_status_args=
25960 test "$silent" = yes &&
25961 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000025962 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000025963 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000025964 exec 5>>config.log
25965 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25966 # would make configure fail if this is the last instruction.
25967 $ac_cs_success || { (exit 1); exit 1; }
25968fi
25969
John Criswell12399a12003-09-30 15:55:44 +000025970#
25971# CONFIG_SUBDIRS section.
25972#
25973if test "$no_recursion" != yes; then
25974
25975 # Remove --cache-file and --srcdir arguments so they do not pile up.
25976 ac_sub_configure_args=
25977 ac_prev=
25978 for ac_arg in $ac_configure_args; do
25979 if test -n "$ac_prev"; then
25980 ac_prev=
25981 continue
25982 fi
25983 case $ac_arg in
25984 -cache-file | --cache-file | --cache-fil | --cache-fi \
25985 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25986 ac_prev=cache_file ;;
25987 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25988 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25989 | --c=*)
25990 ;;
25991 --config-cache | -C)
25992 ;;
25993 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25994 ac_prev=srcdir ;;
25995 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25996 ;;
25997 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25998 ac_prev=prefix ;;
25999 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26000 ;;
26001 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26002 esac
26003 done
26004
26005 # Always prepend --prefix to ensure using the same prefix
26006 # in subdir configurations.
26007 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26008
26009 ac_popdir=`pwd`
26010 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26011
26012 # Do not complain, so a configure script can configure whichever
26013 # parts of a large source tree are present.
26014 test -d $srcdir/$ac_dir || continue
26015
26016 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26017echo "$as_me: configuring in $ac_dir" >&6;}
26018 { if $as_mkdir_p; then
26019 mkdir -p "$ac_dir"
26020 else
26021 as_dir="$ac_dir"
26022 as_dirs=
26023 while test ! -d "$as_dir"; do
26024 as_dirs="$as_dir $as_dirs"
26025 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26026$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026027 X"$as_dir" : 'X\(//\)[^/]' \| \
26028 X"$as_dir" : 'X\(//\)$' \| \
26029 X"$as_dir" : 'X\(/\)' \| \
26030 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000026031echo X"$as_dir" |
26032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26033 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26034 /^X\(\/\/\)$/{ s//\1/; q; }
26035 /^X\(\/\).*/{ s//\1/; q; }
26036 s/.*/./; q'`
26037 done
26038 test ! -n "$as_dirs" || mkdir $as_dirs
26039 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26040echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26041 { (exit 1); exit 1; }; }; }
26042
26043 ac_builddir=.
26044
26045if test "$ac_dir" != .; then
26046 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26047 # A "../" for each directory in $ac_dir_suffix.
26048 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26049else
26050 ac_dir_suffix= ac_top_builddir=
26051fi
26052
26053case $srcdir in
26054 .) # No --srcdir option. We are building in place.
26055 ac_srcdir=.
26056 if test -z "$ac_top_builddir"; then
26057 ac_top_srcdir=.
26058 else
26059 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26060 fi ;;
26061 [\\/]* | ?:[\\/]* ) # Absolute path.
26062 ac_srcdir=$srcdir$ac_dir_suffix;
26063 ac_top_srcdir=$srcdir ;;
26064 *) # Relative path.
26065 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26066 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26067esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000026068
26069# Do not use `cd foo && pwd` to compute absolute paths, because
26070# the directories may not exist.
26071case `pwd` in
26072.) ac_abs_builddir="$ac_dir";;
26073*)
26074 case "$ac_dir" in
26075 .) ac_abs_builddir=`pwd`;;
26076 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26077 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26078 esac;;
26079esac
26080case $ac_abs_builddir in
26081.) ac_abs_top_builddir=${ac_top_builddir}.;;
26082*)
26083 case ${ac_top_builddir}. in
26084 .) ac_abs_top_builddir=$ac_abs_builddir;;
26085 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26086 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26087 esac;;
26088esac
26089case $ac_abs_builddir in
26090.) ac_abs_srcdir=$ac_srcdir;;
26091*)
26092 case $ac_srcdir in
26093 .) ac_abs_srcdir=$ac_abs_builddir;;
26094 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26095 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26096 esac;;
26097esac
26098case $ac_abs_builddir in
26099.) ac_abs_top_srcdir=$ac_top_srcdir;;
26100*)
26101 case $ac_top_srcdir in
26102 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26103 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26104 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26105 esac;;
26106esac
John Criswell12399a12003-09-30 15:55:44 +000026107
26108
26109 cd $ac_dir
26110
26111 # Check for guested configure; otherwise get Cygnus style configure.
26112 if test -f $ac_srcdir/configure.gnu; then
26113 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26114 elif test -f $ac_srcdir/configure; then
26115 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26116 elif test -f $ac_srcdir/configure.in; then
26117 ac_sub_configure=$ac_configure
26118 else
26119 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26120echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26121 ac_sub_configure=
26122 fi
26123
26124 # The recursion is here.
26125 if test -n "$ac_sub_configure"; then
26126 # Make the cache file name correct relative to the subdirectory.
26127 case $cache_file in
26128 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26129 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000026130 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000026131 esac
26132
26133 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26134echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26135 # The eval makes quoting arguments work.
26136 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000026137 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26138 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000026139echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26140 { (exit 1); exit 1; }; }
26141 fi
26142
26143 cd $ac_popdir
26144 done
26145fi
26146
Brian Gaekef3b24102003-11-16 18:38:14 +000026147
Reid Spencer0d98aed2004-10-04 22:05:53 +000026148if test $bzip2_found -ne 1 ; then
26149 if test $zlib_found -ne 1 ; then
26150 { echo "$as_me:$LINENO: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&5
26151echo "$as_me: WARNING: *** Neither zlib nor bzip2 compression libraries were found." >&2;}
26152 { echo "$as_me:$LINENO: WARNING: *** Bytecode archives will not support compression!" >&5
26153echo "$as_me: WARNING: *** Bytecode archives will not support compression!" >&2;}
26154 { echo "$as_me:$LINENO: WARNING: *** To correct, install the libraries and and re-run configure." >&5
26155echo "$as_me: WARNING: *** To correct, install the libraries and and re-run configure." >&2;}
26156 fi
26157fi
26158
Brian Gaekef3b24102003-11-16 18:38:14 +000026159if test $llvmgccwarn = yes
26160then
26161 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
26162echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
26163 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
26164echo "$as_me: WARNING: ***** appear to be working." >&2;}
26165 { echo "$as_me:$LINENO: WARNING: ***** " >&5
26166echo "$as_me: WARNING: ***** " >&2;}
26167 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
26168echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
26169 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
26170echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
26171 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
26172echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
26173fi
Brian Gaeke554831c2004-01-21 19:39:29 +000026174