blob: ad2af4f80733449f1d4f2529ad83098e5f12bc4e [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
John Criswell5fbb1f82004-09-24 13:28:51 +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_PTHREAD_MUTEX_LOCK ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR 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 *)
Reid Spencer8b93e7a2004-09-21 17:14:44 +00001591 { echo "$as_me:$LINENO: WARNING: Unknown projects (${i})won't be configured automatically" >&5
1592echo "$as_me: WARNING: Unknown projects (${i})won't be configured automatically" >&2;}
1593 ;;
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 Criswell5fbb1f82004-09-24 13:28:51 +00001601 ac_config_files="$ac_config_files Makefile.config include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
1602
1603 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
John Criswelldc76e322004-07-23 15:40:57 +00001604
1605
John Criswell0c38eaf2003-09-10 15:17:25 +00001606 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001607
1608
John Criswell0c38eaf2003-09-10 15:17:25 +00001609 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001610
1611
Reid Spencer5f285392004-08-24 16:32:21 +00001612 ac_config_commands="$ac_config_commands examples/Makefile"
1613
1614
John Criswell0c38eaf2003-09-10 15:17:25 +00001615 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001616
1617
John Criswell0c38eaf2003-09-10 15:17:25 +00001618 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001619
1620
John Criswell0c38eaf2003-09-10 15:17:25 +00001621 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001622
1623
John Criswell0c38eaf2003-09-10 15:17:25 +00001624 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001625
1626
John Criswellf424d742003-10-07 21:13:47 +00001627 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1628
1629
1630 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001631
1632
John Criswell0c38eaf2003-09-10 15:17:25 +00001633 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001634
1635
Brian Gaekec45be042003-10-07 06:01:34 +00001636 ac_config_commands="$ac_config_commands utils/Makefile"
1637
1638
John Criswell0c38eaf2003-09-10 15:17:25 +00001639 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001640
1641
John Criswell392aaa32003-07-22 19:18:09 +00001642
John Criswell7a73b802003-06-30 21:59:07 +00001643# Find a good install program. We prefer a C program (faster),
1644# so one script is as good as another. But avoid the broken or
1645# incompatible versions:
1646# SysV /etc/install, /usr/sbin/install
1647# SunOS /usr/etc/install
1648# IRIX /sbin/install
1649# AIX /bin/install
1650# AmigaOS /C/install, which installs bootblocks on floppy discs
1651# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1652# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1653# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Reid Spencer2706f8c2004-09-19 23:53:36 +00001654# OS/2's system install, which has a completely different semantic
John Criswell7a73b802003-06-30 21:59:07 +00001655# ./install, which can be erroneously created by make from ./install.sh.
1656echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1657echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1658if test -z "$INSTALL"; then
1659if test "${ac_cv_path_install+set}" = set; then
1660 echo $ECHO_N "(cached) $ECHO_C" >&6
1661else
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1663for as_dir in $PATH
1664do
1665 IFS=$as_save_IFS
1666 test -z "$as_dir" && as_dir=.
1667 # Account for people who put trailing slashes in PATH elements.
1668case $as_dir/ in
1669 ./ | .// | /cC/* | \
1670 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001671 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
John Criswell7a73b802003-06-30 21:59:07 +00001672 /usr/ucb/* ) ;;
1673 *)
1674 # OSF1 and SCO ODT 3.0 have their own names for install.
1675 # Don't use installbsd from OSF since it installs stuff as root
1676 # by default.
1677 for ac_prog in ginstall scoinst install; do
1678 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencer2706f8c2004-09-19 23:53:36 +00001679 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1680 if test $ac_prog = install &&
1681 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1682 # AIX install. It has an incompatible calling convention.
1683 :
1684 elif test $ac_prog = install &&
1685 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1686 # program-specific install script used by HP pwplus--don't use.
1687 :
1688 else
1689 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1690 break 3
1691 fi
1692 fi
John Criswell7a73b802003-06-30 21:59:07 +00001693 done
1694 done
1695 ;;
1696esac
1697done
1698
1699
1700fi
1701 if test "${ac_cv_path_install+set}" = set; then
1702 INSTALL=$ac_cv_path_install
1703 else
1704 # As a last resort, use the slow shell script. We don't cache a
1705 # path for INSTALL within a source directory, because that will
1706 # break other packages using the cache if that directory is
1707 # removed, or if the path is relative.
1708 INSTALL=$ac_install_sh
1709 fi
1710fi
1711echo "$as_me:$LINENO: result: $INSTALL" >&5
1712echo "${ECHO_T}$INSTALL" >&6
1713
1714# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1715# It thinks the first close brace ends the variable substitution.
1716test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1717
1718test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1719
1720test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1721
1722
1723# Make sure we can run config.sub.
1724$ac_config_sub sun4 >/dev/null 2>&1 ||
1725 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1726echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1727 { (exit 1); exit 1; }; }
1728
1729echo "$as_me:$LINENO: checking build system type" >&5
1730echo $ECHO_N "checking build system type... $ECHO_C" >&6
1731if test "${ac_cv_build+set}" = set; then
1732 echo $ECHO_N "(cached) $ECHO_C" >&6
1733else
1734 ac_cv_build_alias=$build_alias
1735test -z "$ac_cv_build_alias" &&
1736 ac_cv_build_alias=`$ac_config_guess`
1737test -z "$ac_cv_build_alias" &&
1738 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1739echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1740 { (exit 1); exit 1; }; }
1741ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1742 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1743echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1744 { (exit 1); exit 1; }; }
1745
1746fi
1747echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1748echo "${ECHO_T}$ac_cv_build" >&6
1749build=$ac_cv_build
1750build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1751build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1752build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1753
1754
1755echo "$as_me:$LINENO: checking host system type" >&5
1756echo $ECHO_N "checking host system type... $ECHO_C" >&6
1757if test "${ac_cv_host+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1759else
1760 ac_cv_host_alias=$host_alias
1761test -z "$ac_cv_host_alias" &&
1762 ac_cv_host_alias=$ac_cv_build_alias
1763ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1764 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1765echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1766 { (exit 1); exit 1; }; }
1767
1768fi
1769echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1770echo "${ECHO_T}$ac_cv_host" >&6
1771host=$ac_cv_host
1772host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1773host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1774host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1775
1776
1777echo "$as_me:$LINENO: checking target system type" >&5
1778echo $ECHO_N "checking target system type... $ECHO_C" >&6
1779if test "${ac_cv_target+set}" = set; then
1780 echo $ECHO_N "(cached) $ECHO_C" >&6
1781else
1782 ac_cv_target_alias=$target_alias
1783test "x$ac_cv_target_alias" = "x" &&
1784 ac_cv_target_alias=$ac_cv_host_alias
1785ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1786 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1787echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1788 { (exit 1); exit 1; }; }
1789
1790fi
1791echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1792echo "${ECHO_T}$ac_cv_target" >&6
1793target=$ac_cv_target
1794target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1795target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1796target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1797
1798
1799# The aliases save the names the user supplied, while $host etc.
1800# will get canonicalized.
1801test -n "$target_alias" &&
1802 test "$program_prefix$program_suffix$program_transform_name" = \
1803 NONENONEs,x,x, &&
1804 program_prefix=${target_alias}-
1805
Reid Spencer73fb5482004-08-31 14:20:36 +00001806
1807echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1808echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001809case $build in
Reid Spencer73fb5482004-08-31 14:20:36 +00001810 *-*-aix*)
1811 OS=AIX
1812
1813 platform_type="AIX"
1814 ;;
1815 *-*-cygwin*)
1816 OS=Cygwin
1817
1818 platform_type="Cygwin"
1819 ;;
1820 *-*-darwin*)
1821 OS=Darwin
1822
1823 platform_type="Darwin"
1824 ;;
1825 *-*-freebsd*)
1826 OS=Linux
1827
Reid Spencera11e4db2004-08-31 18:03:23 +00001828 platform_type="FreeBSD"
Reid Spencer73fb5482004-08-31 14:20:36 +00001829 ;;
1830 *-*-interix*)
1831 OS=SunOS
1832
Reid Spencera11e4db2004-08-31 18:03:23 +00001833 platform_type="Interix"
Reid Spencer73fb5482004-08-31 14:20:36 +00001834 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001835 *-*-linux*)
1836 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001837
Reid Spencerde8c47f2004-08-29 19:35:28 +00001838 platform_type="Linux"
1839 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1840 then
1841 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001842
Reid Spencerde8c47f2004-08-29 19:35:28 +00001843 fi
1844 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001845 *-*-solaris*)
1846 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001847
Reid Spencerde8c47f2004-08-29 19:35:28 +00001848 platform_type="SunOS"
1849 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1850 then
1851 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001852
Reid Spencerde8c47f2004-08-29 19:35:28 +00001853 fi
1854 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001855 *-*-win32*)
1856 OS=Win32
John Criswell7a73b802003-06-30 21:59:07 +00001857
Reid Spencerde8c47f2004-08-29 19:35:28 +00001858 platform_type="Win32"
1859 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +00001860 *-*-mingw*)
1861 OS=Win32
1862
1863 platform_type="Win32"
1864 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001865 *)
1866 OS=Unknown
1867
1868 platform_type="Unknown"
1869 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001870esac
1871
Reid Spencer73fb5482004-08-31 14:20:36 +00001872if test "$platform_type" = "Unknown" ; then
Reid Spencer886e9512004-08-31 01:34:10 +00001873 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1874echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1875 { (exit 1); exit 1; }; }
1876fi
1877
Reid Spencerde8c47f2004-08-29 19:35:28 +00001878 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1879
1880
Reid Spencer73fb5482004-08-31 14:20:36 +00001881
1882echo "$as_me:$LINENO: checking target architecture" >&5
1883echo $ECHO_N "checking target architecture... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001884case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001885 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001886
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001887 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001888esac
1889
John Criswell76595452003-07-01 22:07:39 +00001890case $target in
Reid Spencer73fb5482004-08-31 14:20:36 +00001891 i*86-*)
1892 ARCH="x86"
1893 ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001894
Reid Spencer73fb5482004-08-31 14:20:36 +00001895 ;;
1896 sparc*-*)
1897 ARCH="Sparc"
1898 ARCH=Sparc
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001899
Reid Spencer73fb5482004-08-31 14:20:36 +00001900 ;;
1901 powerpc*-*)
1902 ARCH="PowerPC"
1903 ARCH=PowerPC
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001904
Reid Spencer73fb5482004-08-31 14:20:36 +00001905 ;;
1906 *)
1907 ARCH="Unknown"
1908 ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001909
Reid Spencer73fb5482004-08-31 14:20:36 +00001910 ;;
John Criswell76595452003-07-01 22:07:39 +00001911esac
1912
Reid Spencer73fb5482004-08-31 14:20:36 +00001913echo "$as_me:$LINENO: result: $ARCH" >&5
1914echo "${ECHO_T}$ARCH" >&6
1915
John Criswell7a73b802003-06-30 21:59:07 +00001916ac_ext=cc
1917ac_cpp='$CXXCPP $CPPFLAGS'
1918ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1921if test -n "$ac_tool_prefix"; then
1922 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1923 do
1924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1925set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1926echo "$as_me:$LINENO: checking for $ac_word" >&5
1927echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1928if test "${ac_cv_prog_CXX+set}" = set; then
1929 echo $ECHO_N "(cached) $ECHO_C" >&6
1930else
1931 if test -n "$CXX"; then
1932 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1933else
1934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1935for as_dir in $PATH
1936do
1937 IFS=$as_save_IFS
1938 test -z "$as_dir" && as_dir=.
1939 for ac_exec_ext in '' $ac_executable_extensions; do
1940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1941 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1943 break 2
1944 fi
1945done
1946done
1947
1948fi
1949fi
1950CXX=$ac_cv_prog_CXX
1951if test -n "$CXX"; then
1952 echo "$as_me:$LINENO: result: $CXX" >&5
1953echo "${ECHO_T}$CXX" >&6
1954else
1955 echo "$as_me:$LINENO: result: no" >&5
1956echo "${ECHO_T}no" >&6
1957fi
1958
1959 test -n "$CXX" && break
1960 done
1961fi
1962if test -z "$CXX"; then
1963 ac_ct_CXX=$CXX
1964 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1965do
1966 # Extract the first word of "$ac_prog", so it can be a program name with args.
1967set dummy $ac_prog; ac_word=$2
1968echo "$as_me:$LINENO: checking for $ac_word" >&5
1969echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973 if test -n "$ac_ct_CXX"; then
1974 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1975else
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979 IFS=$as_save_IFS
1980 test -z "$as_dir" && as_dir=.
1981 for ac_exec_ext in '' $ac_executable_extensions; do
1982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983 ac_cv_prog_ac_ct_CXX="$ac_prog"
1984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985 break 2
1986 fi
1987done
1988done
1989
1990fi
1991fi
1992ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1993if test -n "$ac_ct_CXX"; then
1994 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1995echo "${ECHO_T}$ac_ct_CXX" >&6
1996else
1997 echo "$as_me:$LINENO: result: no" >&5
1998echo "${ECHO_T}no" >&6
1999fi
2000
2001 test -n "$ac_ct_CXX" && break
2002done
2003test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2004
2005 CXX=$ac_ct_CXX
2006fi
2007
2008
2009# Provide some information about the compiler.
2010echo "$as_me:$LINENO:" \
2011 "checking for C++ compiler version" >&5
2012ac_compiler=`set X $ac_compile; echo $2`
2013{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2014 (eval $ac_compiler --version </dev/null >&5) 2>&5
2015 ac_status=$?
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }
2018{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2019 (eval $ac_compiler -v </dev/null >&5) 2>&5
2020 ac_status=$?
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }
2023{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2024 (eval $ac_compiler -V </dev/null >&5) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }
2028
2029cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002030/* confdefs.h. */
2031_ACEOF
2032cat confdefs.h >>conftest.$ac_ext
2033cat >>conftest.$ac_ext <<_ACEOF
2034/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002035
John Criswell7a73b802003-06-30 21:59:07 +00002036int
2037main ()
2038{
2039
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002045ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002046# Try to create an executable without -o first, disregard a.out.
2047# It will help us diagnose broken compilers, and finding out an intuition
2048# of exeext.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002049echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2050echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002051ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2052if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2053 (eval $ac_link_default) 2>&5
2054 ac_status=$?
2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2056 (exit $ac_status); }; then
2057 # Find the output, starting from the most likely. This scheme is
2058# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2059# resort.
2060
2061# Be careful to initialize this variable, since it used to be cached.
2062# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2063ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002064# b.out is created by i960 compilers.
2065for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2066do
2067 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002068 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002070 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002071 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002072 # This is the source file.
2073 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002074 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002075 # We found the default executable, but exeext='' is most
2076 # certainly right.
2077 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002078 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002079 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2080 # FIXME: I believe we export ac_cv_exeext for Libtool,
2081 # but it would be cool to find out if it's true. Does anybody
2082 # maintain Libtool? --akim.
2083 export ac_cv_exeext
2084 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002085 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002086 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002087 esac
2088done
2089else
2090 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002091sed 's/^/| /' conftest.$ac_ext >&5
2092
2093{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2094See \`config.log' for more details." >&5
2095echo "$as_me: error: C++ compiler cannot create executables
2096See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002097 { (exit 77); exit 77; }; }
2098fi
2099
2100ac_exeext=$ac_cv_exeext
2101echo "$as_me:$LINENO: result: $ac_file" >&5
2102echo "${ECHO_T}$ac_file" >&6
2103
2104# Check the compiler produces executables we can run. If not, either
2105# the compiler is broken, or we cross compile.
2106echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2107echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2108# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2109# If not cross compiling, check that we can run a simple program.
2110if test "$cross_compiling" != yes; then
2111 if { ac_try='./$ac_file'
2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113 (eval $ac_try) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; }; then
2117 cross_compiling=no
2118 else
2119 if test "$cross_compiling" = maybe; then
2120 cross_compiling=yes
2121 else
2122 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002123If you meant to cross compile, use \`--host'.
2124See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002125echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002126If you meant to cross compile, use \`--host'.
2127See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002128 { (exit 1); exit 1; }; }
2129 fi
2130 fi
2131fi
2132echo "$as_me:$LINENO: result: yes" >&5
2133echo "${ECHO_T}yes" >&6
2134
John Criswell0c38eaf2003-09-10 15:17:25 +00002135rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002136ac_clean_files=$ac_clean_files_save
2137# Check the compiler produces executables we can run. If not, either
2138# the compiler is broken, or we cross compile.
2139echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2140echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2141echo "$as_me:$LINENO: result: $cross_compiling" >&5
2142echo "${ECHO_T}$cross_compiling" >&6
2143
2144echo "$as_me:$LINENO: checking for suffix of executables" >&5
2145echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2147 (eval $ac_link) 2>&5
2148 ac_status=$?
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; then
2151 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2152# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2153# work properly (i.e., refer to `conftest.exe'), while it won't with
2154# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002155for ac_file in conftest.exe conftest conftest.*; do
2156 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002157 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002159 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002160 export ac_cv_exeext
2161 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002162 * ) break;;
2163 esac
2164done
2165else
John Criswell0c38eaf2003-09-10 15:17:25 +00002166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2167See \`config.log' for more details." >&5
2168echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2169See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002170 { (exit 1); exit 1; }; }
2171fi
2172
2173rm -f conftest$ac_cv_exeext
2174echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2175echo "${ECHO_T}$ac_cv_exeext" >&6
2176
2177rm -f conftest.$ac_ext
2178EXEEXT=$ac_cv_exeext
2179ac_exeext=$EXEEXT
2180echo "$as_me:$LINENO: checking for suffix of object files" >&5
2181echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2182if test "${ac_cv_objext+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184else
2185 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002186/* confdefs.h. */
2187_ACEOF
2188cat confdefs.h >>conftest.$ac_ext
2189cat >>conftest.$ac_ext <<_ACEOF
2190/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002191
John Criswell7a73b802003-06-30 21:59:07 +00002192int
2193main ()
2194{
2195
2196 ;
2197 return 0;
2198}
2199_ACEOF
2200rm -f conftest.o conftest.obj
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202 (eval $ac_compile) 2>&5
2203 ac_status=$?
2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205 (exit $ac_status); }; then
2206 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2207 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002209 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2210 break;;
2211 esac
2212done
2213else
2214 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002215sed 's/^/| /' conftest.$ac_ext >&5
2216
2217{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2218See \`config.log' for more details." >&5
2219echo "$as_me: error: cannot compute suffix of object files: cannot compile
2220See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002221 { (exit 1); exit 1; }; }
2222fi
2223
2224rm -f conftest.$ac_cv_objext conftest.$ac_ext
2225fi
2226echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2227echo "${ECHO_T}$ac_cv_objext" >&6
2228OBJEXT=$ac_cv_objext
2229ac_objext=$OBJEXT
2230echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2231echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2232if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2233 echo $ECHO_N "(cached) $ECHO_C" >&6
2234else
2235 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002236/* confdefs.h. */
2237_ACEOF
2238cat confdefs.h >>conftest.$ac_ext
2239cat >>conftest.$ac_ext <<_ACEOF
2240/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002241
John Criswell7a73b802003-06-30 21:59:07 +00002242int
2243main ()
2244{
2245#ifndef __GNUC__
2246 choke me
2247#endif
2248
2249 ;
2250 return 0;
2251}
2252_ACEOF
2253rm -f conftest.$ac_objext
2254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002255 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002256 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002257 grep -v '^ *+' conftest.er1 >conftest.err
2258 rm -f conftest.er1
2259 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002262 { ac_try='test -z "$ac_cxx_werror_flag"
2263 || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 ac_compiler_gnu=yes
2276else
2277 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002278sed 's/^/| /' conftest.$ac_ext >&5
2279
John Criswell7a73b802003-06-30 21:59:07 +00002280ac_compiler_gnu=no
2281fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002283ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2284
2285fi
2286echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2287echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2288GXX=`test $ac_compiler_gnu = yes && echo yes`
2289ac_test_CXXFLAGS=${CXXFLAGS+set}
2290ac_save_CXXFLAGS=$CXXFLAGS
2291CXXFLAGS="-g"
2292echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2293echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2294if test "${ac_cv_prog_cxx_g+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002298/* confdefs.h. */
2299_ACEOF
2300cat confdefs.h >>conftest.$ac_ext
2301cat >>conftest.$ac_ext <<_ACEOF
2302/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002303
John Criswell7a73b802003-06-30 21:59:07 +00002304int
2305main ()
2306{
2307
2308 ;
2309 return 0;
2310}
2311_ACEOF
2312rm -f conftest.$ac_objext
2313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002314 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002315 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002316 grep -v '^ *+' conftest.er1 >conftest.err
2317 rm -f conftest.er1
2318 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002321 { ac_try='test -z "$ac_cxx_werror_flag"
2322 || test ! -s conftest.err'
2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 (eval $ac_try) 2>&5
2325 ac_status=$?
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; } &&
2328 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2330 (eval $ac_try) 2>&5
2331 ac_status=$?
2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2333 (exit $ac_status); }; }; then
2334 ac_cv_prog_cxx_g=yes
2335else
2336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002337sed 's/^/| /' conftest.$ac_ext >&5
2338
John Criswell7a73b802003-06-30 21:59:07 +00002339ac_cv_prog_cxx_g=no
2340fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002342fi
2343echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2344echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2345if test "$ac_test_CXXFLAGS" = set; then
2346 CXXFLAGS=$ac_save_CXXFLAGS
2347elif test $ac_cv_prog_cxx_g = yes; then
2348 if test "$GXX" = yes; then
2349 CXXFLAGS="-g -O2"
2350 else
2351 CXXFLAGS="-g"
2352 fi
2353else
2354 if test "$GXX" = yes; then
2355 CXXFLAGS="-O2"
2356 else
2357 CXXFLAGS=
2358 fi
2359fi
2360for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002361 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002362 'extern "C" void std::exit (int) throw (); using std::exit;' \
2363 'extern "C" void std::exit (int); using std::exit;' \
2364 'extern "C" void exit (int) throw ();' \
2365 'extern "C" void exit (int);' \
2366 'void exit (int);'
2367do
2368 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002369/* confdefs.h. */
2370_ACEOF
2371cat confdefs.h >>conftest.$ac_ext
2372cat >>conftest.$ac_ext <<_ACEOF
2373/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002374$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002375#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002376int
2377main ()
2378{
2379exit (42);
2380 ;
2381 return 0;
2382}
2383_ACEOF
2384rm -f conftest.$ac_objext
2385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002386 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002387 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002388 grep -v '^ *+' conftest.er1 >conftest.err
2389 rm -f conftest.er1
2390 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002393 { ac_try='test -z "$ac_cxx_werror_flag"
2394 || test ! -s conftest.err'
2395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2402 (eval $ac_try) 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }; }; then
2406 :
2407else
2408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002409sed 's/^/| /' conftest.$ac_ext >&5
2410
John Criswell7a73b802003-06-30 21:59:07 +00002411continue
2412fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002414 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002415/* confdefs.h. */
2416_ACEOF
2417cat confdefs.h >>conftest.$ac_ext
2418cat >>conftest.$ac_ext <<_ACEOF
2419/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002420$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002421int
2422main ()
2423{
2424exit (42);
2425 ;
2426 return 0;
2427}
2428_ACEOF
2429rm -f conftest.$ac_objext
2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002431 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002433 grep -v '^ *+' conftest.er1 >conftest.err
2434 rm -f conftest.er1
2435 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002438 { ac_try='test -z "$ac_cxx_werror_flag"
2439 || test ! -s conftest.err'
2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441 (eval $ac_try) 2>&5
2442 ac_status=$?
2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444 (exit $ac_status); }; } &&
2445 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447 (eval $ac_try) 2>&5
2448 ac_status=$?
2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450 (exit $ac_status); }; }; then
2451 break
2452else
2453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002454sed 's/^/| /' conftest.$ac_ext >&5
2455
John Criswell7a73b802003-06-30 21:59:07 +00002456fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002458done
2459rm -f conftest*
2460if test -n "$ac_declaration"; then
2461 echo '#ifdef __cplusplus' >>confdefs.h
2462 echo $ac_declaration >>confdefs.h
2463 echo '#endif' >>confdefs.h
2464fi
2465
2466ac_ext=c
2467ac_cpp='$CPP $CPPFLAGS'
2468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2470ac_compiler_gnu=$ac_cv_c_compiler_gnu
2471
2472ac_ext=c
2473ac_cpp='$CPP $CPPFLAGS'
2474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2476ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477if test -n "$ac_tool_prefix"; then
2478 for ac_prog in gcc
2479 do
2480 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2481set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2482echo "$as_me:$LINENO: checking for $ac_word" >&5
2483echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2484if test "${ac_cv_prog_CC+set}" = set; then
2485 echo $ECHO_N "(cached) $ECHO_C" >&6
2486else
2487 if test -n "$CC"; then
2488 ac_cv_prog_CC="$CC" # Let the user override the test.
2489else
2490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491for as_dir in $PATH
2492do
2493 IFS=$as_save_IFS
2494 test -z "$as_dir" && as_dir=.
2495 for ac_exec_ext in '' $ac_executable_extensions; do
2496 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2497 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 break 2
2500 fi
2501done
2502done
2503
2504fi
2505fi
2506CC=$ac_cv_prog_CC
2507if test -n "$CC"; then
2508 echo "$as_me:$LINENO: result: $CC" >&5
2509echo "${ECHO_T}$CC" >&6
2510else
2511 echo "$as_me:$LINENO: result: no" >&5
2512echo "${ECHO_T}no" >&6
2513fi
2514
2515 test -n "$CC" && break
2516 done
2517fi
2518if test -z "$CC"; then
2519 ac_ct_CC=$CC
2520 for ac_prog in gcc
2521do
2522 # Extract the first word of "$ac_prog", so it can be a program name with args.
2523set dummy $ac_prog; ac_word=$2
2524echo "$as_me:$LINENO: checking for $ac_word" >&5
2525echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528else
2529 if test -n "$ac_ct_CC"; then
2530 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2531else
2532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2533for as_dir in $PATH
2534do
2535 IFS=$as_save_IFS
2536 test -z "$as_dir" && as_dir=.
2537 for ac_exec_ext in '' $ac_executable_extensions; do
2538 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539 ac_cv_prog_ac_ct_CC="$ac_prog"
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2541 break 2
2542 fi
2543done
2544done
2545
2546fi
2547fi
2548ac_ct_CC=$ac_cv_prog_ac_ct_CC
2549if test -n "$ac_ct_CC"; then
2550 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2551echo "${ECHO_T}$ac_ct_CC" >&6
2552else
2553 echo "$as_me:$LINENO: result: no" >&5
2554echo "${ECHO_T}no" >&6
2555fi
2556
2557 test -n "$ac_ct_CC" && break
2558done
2559
2560 CC=$ac_ct_CC
2561fi
2562
2563
John Criswell0c38eaf2003-09-10 15:17:25 +00002564test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2565See \`config.log' for more details." >&5
2566echo "$as_me: error: no acceptable C compiler found in \$PATH
2567See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002568 { (exit 1); exit 1; }; }
2569
2570# Provide some information about the compiler.
2571echo "$as_me:$LINENO:" \
2572 "checking for C compiler version" >&5
2573ac_compiler=`set X $ac_compile; echo $2`
2574{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2575 (eval $ac_compiler --version </dev/null >&5) 2>&5
2576 ac_status=$?
2577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2578 (exit $ac_status); }
2579{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2580 (eval $ac_compiler -v </dev/null >&5) 2>&5
2581 ac_status=$?
2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2583 (exit $ac_status); }
2584{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2585 (eval $ac_compiler -V </dev/null >&5) 2>&5
2586 ac_status=$?
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }
2589
2590echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2591echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2592if test "${ac_cv_c_compiler_gnu+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2594else
2595 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002596/* confdefs.h. */
2597_ACEOF
2598cat confdefs.h >>conftest.$ac_ext
2599cat >>conftest.$ac_ext <<_ACEOF
2600/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002601
John Criswell7a73b802003-06-30 21:59:07 +00002602int
2603main ()
2604{
2605#ifndef __GNUC__
2606 choke me
2607#endif
2608
2609 ;
2610 return 0;
2611}
2612_ACEOF
2613rm -f conftest.$ac_objext
2614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002615 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002616 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002617 grep -v '^ *+' conftest.er1 >conftest.err
2618 rm -f conftest.er1
2619 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002622 { ac_try='test -z "$ac_c_werror_flag"
2623 || test ! -s conftest.err'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625 (eval $ac_try) 2>&5
2626 ac_status=$?
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; } &&
2629 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2631 (eval $ac_try) 2>&5
2632 ac_status=$?
2633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2634 (exit $ac_status); }; }; then
2635 ac_compiler_gnu=yes
2636else
2637 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002638sed 's/^/| /' conftest.$ac_ext >&5
2639
John Criswell7a73b802003-06-30 21:59:07 +00002640ac_compiler_gnu=no
2641fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002643ac_cv_c_compiler_gnu=$ac_compiler_gnu
2644
2645fi
2646echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2647echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2648GCC=`test $ac_compiler_gnu = yes && echo yes`
2649ac_test_CFLAGS=${CFLAGS+set}
2650ac_save_CFLAGS=$CFLAGS
2651CFLAGS="-g"
2652echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2653echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2654if test "${ac_cv_prog_cc_g+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2656else
2657 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002658/* confdefs.h. */
2659_ACEOF
2660cat confdefs.h >>conftest.$ac_ext
2661cat >>conftest.$ac_ext <<_ACEOF
2662/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002663
John Criswell7a73b802003-06-30 21:59:07 +00002664int
2665main ()
2666{
2667
2668 ;
2669 return 0;
2670}
2671_ACEOF
2672rm -f conftest.$ac_objext
2673if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002674 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002675 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002676 grep -v '^ *+' conftest.er1 >conftest.err
2677 rm -f conftest.er1
2678 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2680 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002681 { ac_try='test -z "$ac_c_werror_flag"
2682 || test ! -s conftest.err'
2683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2684 (eval $ac_try) 2>&5
2685 ac_status=$?
2686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2687 (exit $ac_status); }; } &&
2688 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2690 (eval $ac_try) 2>&5
2691 ac_status=$?
2692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693 (exit $ac_status); }; }; then
2694 ac_cv_prog_cc_g=yes
2695else
2696 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002697sed 's/^/| /' conftest.$ac_ext >&5
2698
John Criswell7a73b802003-06-30 21:59:07 +00002699ac_cv_prog_cc_g=no
2700fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002702fi
2703echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2704echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2705if test "$ac_test_CFLAGS" = set; then
2706 CFLAGS=$ac_save_CFLAGS
2707elif test $ac_cv_prog_cc_g = yes; then
2708 if test "$GCC" = yes; then
2709 CFLAGS="-g -O2"
2710 else
2711 CFLAGS="-g"
2712 fi
2713else
2714 if test "$GCC" = yes; then
2715 CFLAGS="-O2"
2716 else
2717 CFLAGS=
2718 fi
2719fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002720echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2721echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2722if test "${ac_cv_prog_cc_stdc+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2724else
2725 ac_cv_prog_cc_stdc=no
2726ac_save_CC=$CC
2727cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002728/* confdefs.h. */
2729_ACEOF
2730cat confdefs.h >>conftest.$ac_ext
2731cat >>conftest.$ac_ext <<_ACEOF
2732/* end confdefs.h. */
2733#include <stdarg.h>
2734#include <stdio.h>
2735#include <sys/types.h>
2736#include <sys/stat.h>
2737/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2738struct buf { int x; };
2739FILE * (*rcsopen) (struct buf *, struct stat *, int);
2740static char *e (p, i)
2741 char **p;
2742 int i;
2743{
2744 return p[i];
2745}
2746static char *f (char * (*g) (char **, int), char **p, ...)
2747{
2748 char *s;
2749 va_list v;
2750 va_start (v,p);
2751 s = g (p, va_arg (v,int));
2752 va_end (v);
2753 return s;
2754}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002755
2756/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2757 function prototypes and stuff, but not '\xHH' hex character constants.
2758 These don't provoke an error unfortunately, instead are silently treated
2759 as 'x'. The following induces an error, until -std1 is added to get
2760 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2761 array size at least. It's necessary to write '\x00'==0 to get something
2762 that's true only with -std1. */
2763int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2764
John Criswell0c38eaf2003-09-10 15:17:25 +00002765int test (int i, double x);
2766struct s1 {int (*f) (int a);};
2767struct s2 {int (*f) (double a);};
2768int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2769int argc;
2770char **argv;
2771int
2772main ()
2773{
2774return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2775 ;
2776 return 0;
2777}
2778_ACEOF
2779# Don't try gcc -ansi; that turns off useful extensions and
2780# breaks some systems' header files.
2781# AIX -qlanglvl=ansi
2782# Ultrix and OSF/1 -std1
2783# HP-UX 10.20 and later -Ae
2784# HP-UX older versions -Aa -D_HPUX_SOURCE
2785# SVR4 -Xc -D__EXTENSIONS__
2786for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2787do
2788 CC="$ac_save_CC $ac_arg"
2789 rm -f conftest.$ac_objext
2790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002791 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00002792 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002793 grep -v '^ *+' conftest.er1 >conftest.err
2794 rm -f conftest.er1
2795 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002798 { ac_try='test -z "$ac_c_werror_flag"
2799 || test ! -s conftest.err'
2800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2801 (eval $ac_try) 2>&5
2802 ac_status=$?
2803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804 (exit $ac_status); }; } &&
2805 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00002806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2807 (eval $ac_try) 2>&5
2808 ac_status=$?
2809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2810 (exit $ac_status); }; }; then
2811 ac_cv_prog_cc_stdc=$ac_arg
2812break
2813else
2814 echo "$as_me: failed program was:" >&5
2815sed 's/^/| /' conftest.$ac_ext >&5
2816
2817fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002818rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00002819done
2820rm -f conftest.$ac_ext conftest.$ac_objext
2821CC=$ac_save_CC
2822
2823fi
2824
2825case "x$ac_cv_prog_cc_stdc" in
2826 x|xno)
2827 echo "$as_me:$LINENO: result: none needed" >&5
2828echo "${ECHO_T}none needed" >&6 ;;
2829 *)
2830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2831echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2832 CC="$CC $ac_cv_prog_cc_stdc" ;;
2833esac
2834
John Criswell7a73b802003-06-30 21:59:07 +00002835# Some people use a C++ compiler to compile C. Since we use `exit',
2836# in C++ we need to declare it. In case someone uses the same compiler
2837# for both compiling C and C++ we need to have the C++ compiler decide
2838# the declaration of exit, since it's the most demanding environment.
2839cat >conftest.$ac_ext <<_ACEOF
2840#ifndef __cplusplus
2841 choke me
2842#endif
2843_ACEOF
2844rm -f conftest.$ac_objext
2845if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002846 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002847 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002848 grep -v '^ *+' conftest.er1 >conftest.err
2849 rm -f conftest.er1
2850 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002853 { ac_try='test -z "$ac_c_werror_flag"
2854 || test ! -s conftest.err'
2855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2856 (eval $ac_try) 2>&5
2857 ac_status=$?
2858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2859 (exit $ac_status); }; } &&
2860 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2862 (eval $ac_try) 2>&5
2863 ac_status=$?
2864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2865 (exit $ac_status); }; }; then
2866 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002867 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002868 'extern "C" void std::exit (int) throw (); using std::exit;' \
2869 'extern "C" void std::exit (int); using std::exit;' \
2870 'extern "C" void exit (int) throw ();' \
2871 'extern "C" void exit (int);' \
2872 'void exit (int);'
2873do
2874 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002875/* confdefs.h. */
2876_ACEOF
2877cat confdefs.h >>conftest.$ac_ext
2878cat >>conftest.$ac_ext <<_ACEOF
2879/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002880$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002881#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002882int
2883main ()
2884{
2885exit (42);
2886 ;
2887 return 0;
2888}
2889_ACEOF
2890rm -f conftest.$ac_objext
2891if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002892 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002893 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002894 grep -v '^ *+' conftest.er1 >conftest.err
2895 rm -f conftest.er1
2896 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002899 { ac_try='test -z "$ac_c_werror_flag"
2900 || test ! -s conftest.err'
2901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2902 (eval $ac_try) 2>&5
2903 ac_status=$?
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }; } &&
2906 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908 (eval $ac_try) 2>&5
2909 ac_status=$?
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); }; }; then
2912 :
2913else
2914 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002915sed 's/^/| /' conftest.$ac_ext >&5
2916
John Criswell7a73b802003-06-30 21:59:07 +00002917continue
2918fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002919rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002920 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002921/* confdefs.h. */
2922_ACEOF
2923cat confdefs.h >>conftest.$ac_ext
2924cat >>conftest.$ac_ext <<_ACEOF
2925/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002926$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002927int
2928main ()
2929{
2930exit (42);
2931 ;
2932 return 0;
2933}
2934_ACEOF
2935rm -f conftest.$ac_objext
2936if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002937 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002938 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002939 grep -v '^ *+' conftest.er1 >conftest.err
2940 rm -f conftest.er1
2941 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002944 { ac_try='test -z "$ac_c_werror_flag"
2945 || test ! -s conftest.err'
2946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2947 (eval $ac_try) 2>&5
2948 ac_status=$?
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); }; } &&
2951 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2953 (eval $ac_try) 2>&5
2954 ac_status=$?
2955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956 (exit $ac_status); }; }; then
2957 break
2958else
2959 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002960sed 's/^/| /' conftest.$ac_ext >&5
2961
John Criswell7a73b802003-06-30 21:59:07 +00002962fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002964done
2965rm -f conftest*
2966if test -n "$ac_declaration"; then
2967 echo '#ifdef __cplusplus' >>confdefs.h
2968 echo $ac_declaration >>confdefs.h
2969 echo '#endif' >>confdefs.h
2970fi
2971
2972else
2973 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002974sed 's/^/| /' conftest.$ac_ext >&5
2975
John Criswell7a73b802003-06-30 21:59:07 +00002976fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002978ac_ext=c
2979ac_cpp='$CPP $CPPFLAGS'
2980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2982ac_compiler_gnu=$ac_cv_c_compiler_gnu
2983
Reid Spencer2706f8c2004-09-19 23:53:36 +00002984if test "$GCC" != "yes"
2985then
2986 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2987echo "$as_me: error: gcc required but not found" >&2;}
2988 { (exit 1); exit 1; }; }
2989fi
John Criswell7a73b802003-06-30 21:59:07 +00002990ac_ext=c
2991ac_cpp='$CPP $CPPFLAGS'
2992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2994ac_compiler_gnu=$ac_cv_c_compiler_gnu
2995echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2996echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2997# On Suns, sometimes $CPP names a directory.
2998if test -n "$CPP" && test -d "$CPP"; then
2999 CPP=
3000fi
3001if test -z "$CPP"; then
3002 if test "${ac_cv_prog_CPP+set}" = set; then
3003 echo $ECHO_N "(cached) $ECHO_C" >&6
3004else
3005 # Double quotes because CPP needs to be expanded
3006 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3007 do
3008 ac_preproc_ok=false
3009for ac_c_preproc_warn_flag in '' yes
3010do
3011 # Use a header file that comes with gcc, so configuring glibc
3012 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3014 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003015 # On the NeXT, cc -E runs the code through the compiler's parser,
3016 # not just through cpp. "Syntax error" is here to catch this case.
3017 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003018/* confdefs.h. */
3019_ACEOF
3020cat confdefs.h >>conftest.$ac_ext
3021cat >>conftest.$ac_ext <<_ACEOF
3022/* end confdefs.h. */
3023#ifdef __STDC__
3024# include <limits.h>
3025#else
3026# include <assert.h>
3027#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00003028 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003029_ACEOF
3030if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3032 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003033 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003034 rm -f conftest.er1
3035 cat conftest.err >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); } >/dev/null; then
3038 if test -s conftest.err; then
3039 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003040 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003041 else
3042 ac_cpp_err=
3043 fi
3044else
3045 ac_cpp_err=yes
3046fi
3047if test -z "$ac_cpp_err"; then
3048 :
3049else
3050 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003051sed 's/^/| /' conftest.$ac_ext >&5
3052
John Criswell7a73b802003-06-30 21:59:07 +00003053 # Broken: fails on valid input.
3054continue
3055fi
3056rm -f conftest.err conftest.$ac_ext
3057
3058 # OK, works on sane cases. Now check whether non-existent headers
3059 # can be detected and how.
3060 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003061/* confdefs.h. */
3062_ACEOF
3063cat confdefs.h >>conftest.$ac_ext
3064cat >>conftest.$ac_ext <<_ACEOF
3065/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003066#include <ac_nonexistent.h>
3067_ACEOF
3068if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3070 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003071 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003072 rm -f conftest.er1
3073 cat conftest.err >&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } >/dev/null; then
3076 if test -s conftest.err; then
3077 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003079 else
3080 ac_cpp_err=
3081 fi
3082else
3083 ac_cpp_err=yes
3084fi
3085if test -z "$ac_cpp_err"; then
3086 # Broken: success on invalid input.
3087continue
3088else
3089 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003090sed 's/^/| /' conftest.$ac_ext >&5
3091
John Criswell7a73b802003-06-30 21:59:07 +00003092 # Passes both tests.
3093ac_preproc_ok=:
3094break
3095fi
3096rm -f conftest.err conftest.$ac_ext
3097
3098done
3099# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3100rm -f conftest.err conftest.$ac_ext
3101if $ac_preproc_ok; then
3102 break
3103fi
3104
3105 done
3106 ac_cv_prog_CPP=$CPP
3107
3108fi
3109 CPP=$ac_cv_prog_CPP
3110else
3111 ac_cv_prog_CPP=$CPP
3112fi
3113echo "$as_me:$LINENO: result: $CPP" >&5
3114echo "${ECHO_T}$CPP" >&6
3115ac_preproc_ok=false
3116for ac_c_preproc_warn_flag in '' yes
3117do
3118 # Use a header file that comes with gcc, so configuring glibc
3119 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003120 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3121 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003122 # On the NeXT, cc -E runs the code through the compiler's parser,
3123 # not just through cpp. "Syntax error" is here to catch this case.
3124 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003125/* confdefs.h. */
3126_ACEOF
3127cat confdefs.h >>conftest.$ac_ext
3128cat >>conftest.$ac_ext <<_ACEOF
3129/* end confdefs.h. */
3130#ifdef __STDC__
3131# include <limits.h>
3132#else
3133# include <assert.h>
3134#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00003135 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003136_ACEOF
3137if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3138 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3139 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003140 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003141 rm -f conftest.er1
3142 cat conftest.err >&5
3143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3144 (exit $ac_status); } >/dev/null; then
3145 if test -s conftest.err; then
3146 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003147 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003148 else
3149 ac_cpp_err=
3150 fi
3151else
3152 ac_cpp_err=yes
3153fi
3154if test -z "$ac_cpp_err"; then
3155 :
3156else
3157 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003158sed 's/^/| /' conftest.$ac_ext >&5
3159
John Criswell7a73b802003-06-30 21:59:07 +00003160 # Broken: fails on valid input.
3161continue
3162fi
3163rm -f conftest.err conftest.$ac_ext
3164
3165 # OK, works on sane cases. Now check whether non-existent headers
3166 # can be detected and how.
3167 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003168/* confdefs.h. */
3169_ACEOF
3170cat confdefs.h >>conftest.$ac_ext
3171cat >>conftest.$ac_ext <<_ACEOF
3172/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003173#include <ac_nonexistent.h>
3174_ACEOF
3175if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3176 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3177 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003178 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003179 rm -f conftest.er1
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } >/dev/null; then
3183 if test -s conftest.err; then
3184 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003185 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003186 else
3187 ac_cpp_err=
3188 fi
3189else
3190 ac_cpp_err=yes
3191fi
3192if test -z "$ac_cpp_err"; then
3193 # Broken: success on invalid input.
3194continue
3195else
3196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003197sed 's/^/| /' conftest.$ac_ext >&5
3198
John Criswell7a73b802003-06-30 21:59:07 +00003199 # Passes both tests.
3200ac_preproc_ok=:
3201break
3202fi
3203rm -f conftest.err conftest.$ac_ext
3204
3205done
3206# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3207rm -f conftest.err conftest.$ac_ext
3208if $ac_preproc_ok; then
3209 :
3210else
John Criswell0c38eaf2003-09-10 15:17:25 +00003211 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3212See \`config.log' for more details." >&5
3213echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3214See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003215 { (exit 1); exit 1; }; }
3216fi
3217
3218ac_ext=c
3219ac_cpp='$CPP $CPPFLAGS'
3220ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222ac_compiler_gnu=$ac_cv_c_compiler_gnu
3223
John Criswell7a73b802003-06-30 21:59:07 +00003224if test "$GXX" != "yes"
3225then
3226 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3227echo "$as_me: error: g++ required but not found" >&2;}
3228 { (exit 1); exit 1; }; }
3229fi
3230
John Criswellde00db22003-08-25 16:49:54 +00003231gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3232if test "$gccmajor" -lt "3"
3233then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003234 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3235echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003236 { (exit 1); exit 1; }; }
3237fi
3238
John Criswell7a73b802003-06-30 21:59:07 +00003239 echo "$as_me:$LINENO: checking for GNU make" >&5
3240echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3241if test "${_cv_gnu_make_command+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3243else
3244 _cv_gnu_make_command='' ;
3245 for a in "$MAKE" make gmake gnumake ; do
3246 if test -z "$a" ; then continue ; fi ;
3247 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3248 _cv_gnu_make_command=$a ;
3249 break;
3250 fi
3251 done ;
3252
3253fi
3254echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3255echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3256 if test "x$_cv_gnu_make_command" != "x" ; then
3257 ifGNUmake='' ;
3258 else
3259 ifGNUmake='#' ;
3260 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3261echo "${ECHO_T}\"Not found\"" >&6;
3262 fi
3263
3264
3265if test -z "$_cv_gnu_make_command"
3266then
3267 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3268echo "$as_me: error: GNU Make required but not found" >&2;}
3269 { (exit 1); exit 1; }; }
3270fi
3271
3272
3273echo "$as_me:$LINENO: checking " >&5
3274echo $ECHO_N "checking ... $ECHO_C" >&6
3275if test "${ac_cv_has_flex+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278 for ac_prog in flex lex
3279do
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281set dummy $ac_prog; ac_word=$2
3282echo "$as_me:$LINENO: checking for $ac_word" >&5
3283echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3284if test "${ac_cv_prog_LEX+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286else
3287 if test -n "$LEX"; then
3288 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3289else
3290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291for as_dir in $PATH
3292do
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3297 ac_cv_prog_LEX="$ac_prog"
3298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3300 fi
3301done
3302done
3303
3304fi
3305fi
3306LEX=$ac_cv_prog_LEX
3307if test -n "$LEX"; then
3308 echo "$as_me:$LINENO: result: $LEX" >&5
3309echo "${ECHO_T}$LEX" >&6
3310else
3311 echo "$as_me:$LINENO: result: no" >&5
3312echo "${ECHO_T}no" >&6
3313fi
3314
3315 test -n "$LEX" && break
3316done
3317test -n "$LEX" || LEX=":"
3318
3319if test -z "$LEXLIB"
3320then
3321 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3322echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3323if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325else
3326 ac_check_lib_save_LIBS=$LIBS
3327LIBS="-lfl $LIBS"
3328cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003329/* confdefs.h. */
3330_ACEOF
3331cat confdefs.h >>conftest.$ac_ext
3332cat >>conftest.$ac_ext <<_ACEOF
3333/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003334
3335/* Override any gcc2 internal prototype to avoid an error. */
3336#ifdef __cplusplus
3337extern "C"
3338#endif
3339/* We use char because int might match the return type of a gcc2
3340 builtin and then its argument prototype would still apply. */
3341char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003342int
3343main ()
3344{
3345yywrap ();
3346 ;
3347 return 0;
3348}
3349_ACEOF
3350rm -f conftest.$ac_objext conftest$ac_exeext
3351if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003352 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003353 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003354 grep -v '^ *+' conftest.er1 >conftest.err
3355 rm -f conftest.er1
3356 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3358 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003359 { ac_try='test -z "$ac_c_werror_flag"
3360 || test ! -s conftest.err'
3361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3362 (eval $ac_try) 2>&5
3363 ac_status=$?
3364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365 (exit $ac_status); }; } &&
3366 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3368 (eval $ac_try) 2>&5
3369 ac_status=$?
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); }; }; then
3372 ac_cv_lib_fl_yywrap=yes
3373else
3374 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003375sed 's/^/| /' conftest.$ac_ext >&5
3376
John Criswell7a73b802003-06-30 21:59:07 +00003377ac_cv_lib_fl_yywrap=no
3378fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003379rm -f conftest.err conftest.$ac_objext \
3380 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003381LIBS=$ac_check_lib_save_LIBS
3382fi
3383echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3384echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3385if test $ac_cv_lib_fl_yywrap = yes; then
3386 LEXLIB="-lfl"
3387else
3388 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3389echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3390if test "${ac_cv_lib_l_yywrap+set}" = set; then
3391 echo $ECHO_N "(cached) $ECHO_C" >&6
3392else
3393 ac_check_lib_save_LIBS=$LIBS
3394LIBS="-ll $LIBS"
3395cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003396/* confdefs.h. */
3397_ACEOF
3398cat confdefs.h >>conftest.$ac_ext
3399cat >>conftest.$ac_ext <<_ACEOF
3400/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003401
3402/* Override any gcc2 internal prototype to avoid an error. */
3403#ifdef __cplusplus
3404extern "C"
3405#endif
3406/* We use char because int might match the return type of a gcc2
3407 builtin and then its argument prototype would still apply. */
3408char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003409int
3410main ()
3411{
3412yywrap ();
3413 ;
3414 return 0;
3415}
3416_ACEOF
3417rm -f conftest.$ac_objext conftest$ac_exeext
3418if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003419 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003420 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003421 grep -v '^ *+' conftest.er1 >conftest.err
3422 rm -f conftest.er1
3423 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003426 { ac_try='test -z "$ac_c_werror_flag"
3427 || test ! -s conftest.err'
3428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3429 (eval $ac_try) 2>&5
3430 ac_status=$?
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); }; } &&
3433 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; }; then
3439 ac_cv_lib_l_yywrap=yes
3440else
3441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003442sed 's/^/| /' conftest.$ac_ext >&5
3443
John Criswell7a73b802003-06-30 21:59:07 +00003444ac_cv_lib_l_yywrap=no
3445fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003446rm -f conftest.err conftest.$ac_objext \
3447 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003448LIBS=$ac_check_lib_save_LIBS
3449fi
3450echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3451echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3452if test $ac_cv_lib_l_yywrap = yes; then
3453 LEXLIB="-ll"
3454fi
3455
3456fi
3457
3458fi
3459
3460if test "x$LEX" != "x:"; then
3461 echo "$as_me:$LINENO: checking lex output file root" >&5
3462echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3463if test "${ac_cv_prog_lex_root+set}" = set; then
3464 echo $ECHO_N "(cached) $ECHO_C" >&6
3465else
3466 # The minimal lex program is just a single line: %%. But some broken lexes
3467# (Solaris, I think it was) want two %% lines, so accommodate them.
3468cat >conftest.l <<_ACEOF
3469%%
3470%%
3471_ACEOF
3472{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3473 (eval $LEX conftest.l) 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }
3477if test -f lex.yy.c; then
3478 ac_cv_prog_lex_root=lex.yy
3479elif test -f lexyy.c; then
3480 ac_cv_prog_lex_root=lexyy
3481else
3482 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3483echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3484 { (exit 1); exit 1; }; }
3485fi
3486fi
3487echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3488echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3489rm -f conftest.l
3490LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3491
3492echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3493echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3494if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496else
3497 # POSIX says lex can declare yytext either as a pointer or an array; the
3498# default is implementation-dependent. Figure out which it is, since
3499# not all implementations provide the %pointer and %array declarations.
3500ac_cv_prog_lex_yytext_pointer=no
3501echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3502ac_save_LIBS=$LIBS
3503LIBS="$LIBS $LEXLIB"
3504cat >conftest.$ac_ext <<_ACEOF
3505`cat $LEX_OUTPUT_ROOT.c`
3506_ACEOF
3507rm -f conftest.$ac_objext conftest$ac_exeext
3508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003509 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003510 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003511 grep -v '^ *+' conftest.er1 >conftest.err
3512 rm -f conftest.er1
3513 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003516 { ac_try='test -z "$ac_c_werror_flag"
3517 || test ! -s conftest.err'
3518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3519 (eval $ac_try) 2>&5
3520 ac_status=$?
3521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522 (exit $ac_status); }; } &&
3523 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3525 (eval $ac_try) 2>&5
3526 ac_status=$?
3527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3528 (exit $ac_status); }; }; then
3529 ac_cv_prog_lex_yytext_pointer=yes
3530else
3531 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003532sed 's/^/| /' conftest.$ac_ext >&5
3533
John Criswell7a73b802003-06-30 21:59:07 +00003534fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003535rm -f conftest.err conftest.$ac_objext \
3536 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003537LIBS=$ac_save_LIBS
3538rm -f "${LEX_OUTPUT_ROOT}.c"
3539
3540fi
3541echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3542echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3543if test $ac_cv_prog_lex_yytext_pointer = yes; then
3544
3545cat >>confdefs.h <<\_ACEOF
3546#define YYTEXT_POINTER 1
3547_ACEOF
3548
3549fi
3550
3551fi
3552
3553fi
3554echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3555echo "${ECHO_T}$ac_cv_has_flex" >&6
3556if test "$LEX" != "flex"; then
3557 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3558echo "$as_me: error: flex not found but required" >&2;}
3559 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00003560else
3561 FLEX=flex
3562
John Criswell7a73b802003-06-30 21:59:07 +00003563fi
3564
3565echo "$as_me:$LINENO: checking " >&5
3566echo $ECHO_N "checking ... $ECHO_C" >&6
3567if test "${ac_cv_has_bison+set}" = set; then
3568 echo $ECHO_N "(cached) $ECHO_C" >&6
3569else
3570 for ac_prog in 'bison -y' byacc
3571do
3572 # Extract the first word of "$ac_prog", so it can be a program name with args.
3573set dummy $ac_prog; ac_word=$2
3574echo "$as_me:$LINENO: checking for $ac_word" >&5
3575echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3576if test "${ac_cv_prog_YACC+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578else
3579 if test -n "$YACC"; then
3580 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3581else
3582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583for as_dir in $PATH
3584do
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3589 ac_cv_prog_YACC="$ac_prog"
3590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 break 2
3592 fi
3593done
3594done
3595
3596fi
3597fi
3598YACC=$ac_cv_prog_YACC
3599if test -n "$YACC"; then
3600 echo "$as_me:$LINENO: result: $YACC" >&5
3601echo "${ECHO_T}$YACC" >&6
3602else
3603 echo "$as_me:$LINENO: result: no" >&5
3604echo "${ECHO_T}no" >&6
3605fi
3606
3607 test -n "$YACC" && break
3608done
3609test -n "$YACC" || YACC="yacc"
3610
3611
3612fi
3613echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3614echo "${ECHO_T}$ac_cv_has_bison" >&6
3615if test "$YACC" != "bison -y"; then
3616 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3617echo "$as_me: error: bison not found but required" >&2;}
3618 { (exit 1); exit 1; }; }
3619else
Brian Gaeke12810632004-01-13 06:52:10 +00003620 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003621
3622fi
3623
John Criswell7a73b802003-06-30 21:59:07 +00003624# Check whether --enable-shared or --disable-shared was given.
3625if test "${enable_shared+set}" = set; then
3626 enableval="$enable_shared"
3627 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003628 case $enableval in
3629 yes) enable_shared=yes ;;
3630 no) enable_shared=no ;;
3631 *)
3632 enable_shared=no
3633 # Look at the argument we got. We use all the common list separators.
3634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3635 for pkg in $enableval; do
3636 IFS="$lt_save_ifs"
3637 if test "X$pkg" = "X$p"; then
3638 enable_shared=yes
3639 fi
3640 done
3641 IFS="$lt_save_ifs"
3642 ;;
3643 esac
John Criswell7a73b802003-06-30 21:59:07 +00003644else
3645 enable_shared=yes
3646fi;
John Criswell47fdd832003-07-14 16:52:07 +00003647
John Criswell7a73b802003-06-30 21:59:07 +00003648# Check whether --enable-static or --disable-static was given.
3649if test "${enable_static+set}" = set; then
3650 enableval="$enable_static"
3651 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003652 case $enableval in
3653 yes) enable_static=yes ;;
3654 no) enable_static=no ;;
3655 *)
3656 enable_static=no
3657 # Look at the argument we got. We use all the common list separators.
3658 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3659 for pkg in $enableval; do
3660 IFS="$lt_save_ifs"
3661 if test "X$pkg" = "X$p"; then
3662 enable_static=yes
3663 fi
3664 done
3665 IFS="$lt_save_ifs"
3666 ;;
3667 esac
John Criswell7a73b802003-06-30 21:59:07 +00003668else
3669 enable_static=yes
3670fi;
John Criswell47fdd832003-07-14 16:52:07 +00003671
John Criswell7a73b802003-06-30 21:59:07 +00003672# Check whether --enable-fast-install or --disable-fast-install was given.
3673if test "${enable_fast_install+set}" = set; then
3674 enableval="$enable_fast_install"
3675 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003676 case $enableval in
3677 yes) enable_fast_install=yes ;;
3678 no) enable_fast_install=no ;;
3679 *)
3680 enable_fast_install=no
3681 # Look at the argument we got. We use all the common list separators.
3682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3683 for pkg in $enableval; do
3684 IFS="$lt_save_ifs"
3685 if test "X$pkg" = "X$p"; then
3686 enable_fast_install=yes
3687 fi
3688 done
3689 IFS="$lt_save_ifs"
3690 ;;
3691 esac
John Criswell7a73b802003-06-30 21:59:07 +00003692else
3693 enable_fast_install=yes
3694fi;
John Criswell47fdd832003-07-14 16:52:07 +00003695
3696echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3697echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3698if test "${lt_cv_path_SED+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3700else
3701 # Loop through the user's path and test for sed and gsed.
3702# Then use that list of sed's as ones to test for truncation.
3703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704for as_dir in $PATH
3705do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 for lt_ac_prog in sed gsed; do
3709 for ac_exec_ext in '' $ac_executable_extensions; do
3710 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3711 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3712 fi
3713 done
3714 done
3715done
3716lt_ac_max=0
3717lt_ac_count=0
3718# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3719# along with /bin/sed that truncates output.
3720for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3721 test ! -f $lt_ac_sed && break
3722 cat /dev/null > conftest.in
3723 lt_ac_count=0
3724 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3725 # Check for GNU sed and select it if it is found.
3726 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3727 lt_cv_path_SED=$lt_ac_sed
3728 break
3729 fi
3730 while true; do
3731 cat conftest.in conftest.in >conftest.tmp
3732 mv conftest.tmp conftest.in
3733 cp conftest.in conftest.nl
3734 echo >>conftest.nl
3735 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3736 cmp -s conftest.out conftest.nl || break
3737 # 10000 chars as input seems more than enough
3738 test $lt_ac_count -gt 10 && break
3739 lt_ac_count=`expr $lt_ac_count + 1`
3740 if test $lt_ac_count -gt $lt_ac_max; then
3741 lt_ac_max=$lt_ac_count
3742 lt_cv_path_SED=$lt_ac_sed
3743 fi
3744 done
3745done
John Criswell47fdd832003-07-14 16:52:07 +00003746
John Criswell7a73b802003-06-30 21:59:07 +00003747fi
3748
Reid Spencer2706f8c2004-09-19 23:53:36 +00003749SED=$lt_cv_path_SED
John Criswell47fdd832003-07-14 16:52:07 +00003750echo "$as_me:$LINENO: result: $SED" >&5
3751echo "${ECHO_T}$SED" >&6
3752
3753echo "$as_me:$LINENO: checking for egrep" >&5
3754echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3755if test "${ac_cv_prog_egrep+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3757else
3758 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3759 then ac_cv_prog_egrep='grep -E'
3760 else ac_cv_prog_egrep='egrep'
3761 fi
3762fi
3763echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3764echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3765 EGREP=$ac_cv_prog_egrep
3766
3767
John Criswell7a73b802003-06-30 21:59:07 +00003768
3769# Check whether --with-gnu-ld or --without-gnu-ld was given.
3770if test "${with_gnu_ld+set}" = set; then
3771 withval="$with_gnu_ld"
3772 test "$withval" = no || with_gnu_ld=yes
3773else
3774 with_gnu_ld=no
3775fi;
3776ac_prog=ld
3777if test "$GCC" = yes; then
3778 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003779 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3780echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003781 case $host in
3782 *-*-mingw*)
3783 # gcc leaves a trailing carriage return which upsets mingw
3784 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3785 *)
3786 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3787 esac
3788 case $ac_prog in
3789 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003790 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003791 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +00003792 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00003793 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003794 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003795 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003796 done
3797 test -z "$LD" && LD="$ac_prog"
3798 ;;
3799 "")
3800 # If it fails, then pretend we aren't using GCC.
3801 ac_prog=ld
3802 ;;
3803 *)
3804 # If it is relative, then search for the first ld in PATH.
3805 with_gnu_ld=unknown
3806 ;;
3807 esac
3808elif test "$with_gnu_ld" = yes; then
3809 echo "$as_me:$LINENO: checking for GNU ld" >&5
3810echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3811else
3812 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3813echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3814fi
3815if test "${lt_cv_path_LD+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817else
3818 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003820 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003821 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003822 test -z "$ac_dir" && ac_dir=.
3823 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3824 lt_cv_path_LD="$ac_dir/$ac_prog"
3825 # Check to see if the program is GNU ld. I'd rather use --version,
3826 # but apparently some GNU ld's only accept -v.
3827 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003828 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3829 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003830 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003831 ;;
3832 *)
John Criswell7a73b802003-06-30 21:59:07 +00003833 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003834 ;;
3835 esac
John Criswell7a73b802003-06-30 21:59:07 +00003836 fi
3837 done
John Criswell47fdd832003-07-14 16:52:07 +00003838 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003839else
3840 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3841fi
3842fi
3843
3844LD="$lt_cv_path_LD"
3845if test -n "$LD"; then
3846 echo "$as_me:$LINENO: result: $LD" >&5
3847echo "${ECHO_T}$LD" >&6
3848else
3849 echo "$as_me:$LINENO: result: no" >&5
3850echo "${ECHO_T}no" >&6
3851fi
3852test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3853echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3854 { (exit 1); exit 1; }; }
3855echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3856echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3857if test "${lt_cv_prog_gnu_ld+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859else
3860 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +00003861case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00003862*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003863 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003864 ;;
3865*)
John Criswell7a73b802003-06-30 21:59:07 +00003866 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003867 ;;
3868esac
John Criswell7a73b802003-06-30 21:59:07 +00003869fi
3870echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3871echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3872with_gnu_ld=$lt_cv_prog_gnu_ld
3873
3874
3875echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3876echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3877if test "${lt_cv_ld_reload_flag+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879else
3880 lt_cv_ld_reload_flag='-r'
3881fi
3882echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3883echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3884reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003885case $reload_flag in
3886"" | " "*) ;;
3887*) reload_flag=" $reload_flag" ;;
3888esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00003889reload_cmds='$LD$reload_flag -o $output$reload_objs'
3890case $host_os in
3891 darwin*)
3892 if test "$GCC" = yes; then
3893 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3894 else
3895 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3896 fi
3897 ;;
3898esac
John Criswell7a73b802003-06-30 21:59:07 +00003899
3900echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3901echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3902if test "${lt_cv_path_NM+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904else
3905 if test -n "$NM"; then
3906 # Let the user override the test.
3907 lt_cv_path_NM="$NM"
3908else
John Criswell47fdd832003-07-14 16:52:07 +00003909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003910 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003911 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003912 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003913 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3914 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003915 # Check to see if the nm accepts a BSD-compat flag.
3916 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3917 # nm: unknown option "B" ignored
3918 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003919 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3920 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003921 lt_cv_path_NM="$tmp_nm -B"
3922 break
John Criswell47fdd832003-07-14 16:52:07 +00003923 ;;
3924 *)
3925 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3926 */dev/null*)
3927 lt_cv_path_NM="$tmp_nm -p"
3928 break
3929 ;;
3930 *)
3931 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3932 continue # so that we can try to find one that supports BSD flags
3933 ;;
3934 esac
3935 esac
John Criswell7a73b802003-06-30 21:59:07 +00003936 fi
3937 done
John Criswell47fdd832003-07-14 16:52:07 +00003938 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003939 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3940fi
3941fi
John Criswell47fdd832003-07-14 16:52:07 +00003942echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3943echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003944NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003945
3946echo "$as_me:$LINENO: checking whether ln -s works" >&5
3947echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3948LN_S=$as_ln_s
3949if test "$LN_S" = "ln -s"; then
3950 echo "$as_me:$LINENO: result: yes" >&5
3951echo "${ECHO_T}yes" >&6
3952else
3953 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3954echo "${ECHO_T}no, using $LN_S" >&6
3955fi
3956
John Criswell47fdd832003-07-14 16:52:07 +00003957echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3958echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003959if test "${lt_cv_deplibs_check_method+set}" = set; then
3960 echo $ECHO_N "(cached) $ECHO_C" >&6
3961else
3962 lt_cv_file_magic_cmd='$MAGIC_CMD'
3963lt_cv_file_magic_test_file=
3964lt_cv_deplibs_check_method='unknown'
3965# Need to set the preceding variable on all platforms that support
3966# interlibrary dependencies.
3967# 'none' -- dependencies not supported.
3968# `unknown' -- same as none, but documents that we really don't know.
3969# 'pass_all' -- all dependencies passed with no checks.
3970# 'test_compile' -- check by making test program.
3971# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003972# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003973# If you have `file' or equivalent on your system and you're not sure
3974# whether `pass_all' will *always* work, you probably want this one.
3975
3976case $host_os in
3977aix4* | aix5*)
3978 lt_cv_deplibs_check_method=pass_all
3979 ;;
3980
3981beos*)
3982 lt_cv_deplibs_check_method=pass_all
3983 ;;
3984
Reid Spencer2706f8c2004-09-19 23:53:36 +00003985bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00003986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3987 lt_cv_file_magic_cmd='/usr/bin/file -L'
3988 lt_cv_file_magic_test_file=/shlib/libc.so
3989 ;;
3990
Reid Spencer2706f8c2004-09-19 23:53:36 +00003991cygwin*)
3992 # func_win32_libid is a shell function defined in ltmain.sh
John Criswell47fdd832003-07-14 16:52:07 +00003993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Reid Spencer2706f8c2004-09-19 23:53:36 +00003994 lt_cv_file_magic_cmd='func_win32_libid'
3995 ;;
3996
3997mingw* | pw32*)
3998 # Base MSYS/MinGW do not provide the 'file' command needed by
3999 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4000 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4001 lt_cv_file_magic_cmd='$OBJDUMP -f'
John Criswell7a73b802003-06-30 21:59:07 +00004002 ;;
4003
4004darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004005 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004006 ;;
4007
Reid Spencer2706f8c2004-09-19 23:53:36 +00004008freebsd* | kfreebsd*-gnu)
John Criswell7a73b802003-06-30 21:59:07 +00004009 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4010 case $host_cpu in
4011 i*86 )
4012 # Not sure whether the presence of OpenBSD here was a mistake.
4013 # Let's accept both of them until this is cleared up.
4014 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4015 lt_cv_file_magic_cmd=/usr/bin/file
4016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4017 ;;
4018 esac
4019 else
4020 lt_cv_deplibs_check_method=pass_all
4021 fi
4022 ;;
4023
4024gnu*)
4025 lt_cv_deplibs_check_method=pass_all
4026 ;;
4027
John Criswell47fdd832003-07-14 16:52:07 +00004028hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004029 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004030 case "$host_cpu" in
4031 ia64*)
4032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4033 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4034 ;;
4035 hppa*64*)
4036 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]'
4037 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4038 ;;
4039 *)
4040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4041 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4042 ;;
4043 esac
John Criswell7a73b802003-06-30 21:59:07 +00004044 ;;
4045
John Criswell47fdd832003-07-14 16:52:07 +00004046irix5* | irix6* | nonstopux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004047 case $LD in
4048 *-32|*"-32 ") libmagic=32-bit;;
4049 *-n32|*"-n32 ") libmagic=N32;;
4050 *-64|*"-64 ") libmagic=64-bit;;
4051 *) libmagic=never-match;;
John Criswell7a73b802003-06-30 21:59:07 +00004052 esac
John Criswell7a73b802003-06-30 21:59:07 +00004053 lt_cv_deplibs_check_method=pass_all
4054 ;;
4055
4056# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004057linux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004058 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004059 ;;
4060
4061netbsd*)
4062 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004064 else
John Criswell47fdd832003-07-14 16:52:07 +00004065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004066 fi
4067 ;;
4068
4069newos6*)
4070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4071 lt_cv_file_magic_cmd=/usr/bin/file
4072 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4073 ;;
4074
Reid Spencer2706f8c2004-09-19 23:53:36 +00004075nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00004076 lt_cv_deplibs_check_method=unknown
4077 ;;
4078
John Criswell7a73b802003-06-30 21:59:07 +00004079openbsd*)
John Criswell7a73b802003-06-30 21:59:07 +00004080 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 +00004081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004082 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00004083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004084 fi
4085 ;;
4086
4087osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00004088 lt_cv_deplibs_check_method=pass_all
4089 ;;
4090
4091sco3.2v5*)
4092 lt_cv_deplibs_check_method=pass_all
4093 ;;
4094
4095solaris*)
4096 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004097 ;;
4098
John Criswell7a73b802003-06-30 21:59:07 +00004099sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4100 case $host_vendor in
4101 motorola)
4102 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]'
4103 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4104 ;;
4105 ncr)
4106 lt_cv_deplibs_check_method=pass_all
4107 ;;
4108 sequent)
4109 lt_cv_file_magic_cmd='/bin/file'
4110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4111 ;;
4112 sni)
4113 lt_cv_file_magic_cmd='/bin/file'
4114 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4115 lt_cv_file_magic_test_file=/lib/libc.so
4116 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004117 siemens)
4118 lt_cv_deplibs_check_method=pass_all
4119 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004120 esac
4121 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004122
4123sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4124 lt_cv_deplibs_check_method=pass_all
4125 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004126esac
4127
4128fi
4129echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4130echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4131file_magic_cmd=$lt_cv_file_magic_cmd
4132deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004133test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004134
4135
4136
4137
John Criswell47fdd832003-07-14 16:52:07 +00004138# If no C compiler was specified, use CC.
4139LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004140
John Criswell47fdd832003-07-14 16:52:07 +00004141# Allow CC to be a program name with arguments.
4142compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004143
John Criswell47fdd832003-07-14 16:52:07 +00004144# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4145if test "${enable_libtool_lock+set}" = set; then
4146 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004147
John Criswell47fdd832003-07-14 16:52:07 +00004148fi;
4149test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004150
John Criswell47fdd832003-07-14 16:52:07 +00004151# Some flags need to be propagated to the compiler or linker for good
4152# libtool support.
4153case $host in
4154ia64-*-hpux*)
4155 # Find out which ABI we are using.
4156 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4158 (eval $ac_compile) 2>&5
4159 ac_status=$?
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004162 case `/usr/bin/file conftest.$ac_objext` in
4163 *ELF-32*)
4164 HPUX_IA64_MODE="32"
4165 ;;
4166 *ELF-64*)
4167 HPUX_IA64_MODE="64"
4168 ;;
4169 esac
4170 fi
4171 rm -rf conftest*
4172 ;;
4173*-*-irix6*)
4174 # Find out which ABI we are using.
John Criswell5fbb1f82004-09-24 13:28:51 +00004175 echo '#line 4175 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004178 ac_status=$?
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004180 (exit $ac_status); }; then
4181 if test "$lt_cv_prog_gnu_ld" = yes; then
4182 case `/usr/bin/file conftest.$ac_objext` in
4183 *32-bit*)
4184 LD="${LD-ld} -melf32bsmip"
4185 ;;
4186 *N32*)
4187 LD="${LD-ld} -melf32bmipn32"
4188 ;;
4189 *64-bit*)
4190 LD="${LD-ld} -melf64bmip"
4191 ;;
4192 esac
4193 else
4194 case `/usr/bin/file conftest.$ac_objext` in
4195 *32-bit*)
4196 LD="${LD-ld} -32"
4197 ;;
4198 *N32*)
4199 LD="${LD-ld} -n32"
4200 ;;
4201 *64-bit*)
4202 LD="${LD-ld} -64"
4203 ;;
4204 esac
4205 fi
4206 fi
4207 rm -rf conftest*
4208 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004209
John Criswell47fdd832003-07-14 16:52:07 +00004210x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4211 # Find out which ABI we are using.
4212 echo 'int i;' > conftest.$ac_ext
4213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4214 (eval $ac_compile) 2>&5
4215 ac_status=$?
4216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4217 (exit $ac_status); }; then
4218 case "`/usr/bin/file conftest.o`" in
4219 *32-bit*)
4220 case $host in
4221 x86_64-*linux*)
4222 LD="${LD-ld} -m elf_i386"
4223 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00004224 ppc64-*linux*|powerpc64-*linux*)
John Criswell47fdd832003-07-14 16:52:07 +00004225 LD="${LD-ld} -m elf32ppclinux"
4226 ;;
4227 s390x-*linux*)
4228 LD="${LD-ld} -m elf_s390"
4229 ;;
4230 sparc64-*linux*)
4231 LD="${LD-ld} -m elf32_sparc"
4232 ;;
4233 esac
4234 ;;
4235 *64-bit*)
4236 case $host in
4237 x86_64-*linux*)
4238 LD="${LD-ld} -m elf_x86_64"
4239 ;;
4240 ppc*-*linux*|powerpc*-*linux*)
4241 LD="${LD-ld} -m elf64ppc"
4242 ;;
4243 s390*-*linux*)
4244 LD="${LD-ld} -m elf64_s390"
4245 ;;
4246 sparc*-*linux*)
4247 LD="${LD-ld} -m elf64_sparc"
4248 ;;
4249 esac
4250 ;;
4251 esac
4252 fi
4253 rm -rf conftest*
4254 ;;
4255
4256*-*-sco3.2v5*)
4257 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4258 SAVE_CFLAGS="$CFLAGS"
4259 CFLAGS="$CFLAGS -belf"
4260 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4261echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4262if test "${lt_cv_cc_needs_belf+set}" = set; then
4263 echo $ECHO_N "(cached) $ECHO_C" >&6
4264else
4265 ac_ext=c
4266ac_cpp='$CPP $CPPFLAGS'
4267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270
4271 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004272/* confdefs.h. */
4273_ACEOF
4274cat confdefs.h >>conftest.$ac_ext
4275cat >>conftest.$ac_ext <<_ACEOF
4276/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004277
John Criswell47fdd832003-07-14 16:52:07 +00004278int
4279main ()
John Criswell7a73b802003-06-30 21:59:07 +00004280{
John Criswell7a73b802003-06-30 21:59:07 +00004281
John Criswell47fdd832003-07-14 16:52:07 +00004282 ;
4283 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004284}
John Criswell47fdd832003-07-14 16:52:07 +00004285_ACEOF
4286rm -f conftest.$ac_objext conftest$ac_exeext
4287if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004288 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004289 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004290 grep -v '^ *+' conftest.er1 >conftest.err
4291 rm -f conftest.er1
4292 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004294 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004295 { ac_try='test -z "$ac_c_werror_flag"
4296 || test ! -s conftest.err'
4297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4298 (eval $ac_try) 2>&5
4299 ac_status=$?
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; } &&
4302 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00004303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4304 (eval $ac_try) 2>&5
4305 ac_status=$?
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4308 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004309else
John Criswell47fdd832003-07-14 16:52:07 +00004310 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004311sed 's/^/| /' conftest.$ac_ext >&5
4312
John Criswell47fdd832003-07-14 16:52:07 +00004313lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004314fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004315rm -f conftest.err conftest.$ac_objext \
4316 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004317 ac_ext=c
4318ac_cpp='$CPP $CPPFLAGS'
4319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322
John Criswell7a73b802003-06-30 21:59:07 +00004323fi
John Criswell47fdd832003-07-14 16:52:07 +00004324echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4325echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4328 CFLAGS="$SAVE_CFLAGS"
4329 fi
4330 ;;
4331
4332esac
4333
4334need_locks="$enable_libtool_lock"
4335
John Criswell7a73b802003-06-30 21:59:07 +00004336
4337
4338echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4339echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4340if test "${ac_cv_header_stdc+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
4342else
4343 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004344/* confdefs.h. */
4345_ACEOF
4346cat confdefs.h >>conftest.$ac_ext
4347cat >>conftest.$ac_ext <<_ACEOF
4348/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004349#include <stdlib.h>
4350#include <stdarg.h>
4351#include <string.h>
4352#include <float.h>
4353
John Criswell0c38eaf2003-09-10 15:17:25 +00004354int
4355main ()
4356{
4357
4358 ;
4359 return 0;
4360}
John Criswell7a73b802003-06-30 21:59:07 +00004361_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004362rm -f conftest.$ac_objext
4363if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004364 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004365 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004366 grep -v '^ *+' conftest.er1 >conftest.err
4367 rm -f conftest.er1
4368 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004370 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004371 { ac_try='test -z "$ac_c_werror_flag"
4372 || test ! -s conftest.err'
4373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4374 (eval $ac_try) 2>&5
4375 ac_status=$?
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); }; } &&
4378 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00004379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4380 (eval $ac_try) 2>&5
4381 ac_status=$?
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004384 ac_cv_header_stdc=yes
4385else
4386 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004387sed 's/^/| /' conftest.$ac_ext >&5
4388
4389ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004390fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004391rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004392
4393if test $ac_cv_header_stdc = yes; then
4394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4395 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004396/* confdefs.h. */
4397_ACEOF
4398cat confdefs.h >>conftest.$ac_ext
4399cat >>conftest.$ac_ext <<_ACEOF
4400/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004401#include <string.h>
4402
4403_ACEOF
4404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004405 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004406 :
4407else
4408 ac_cv_header_stdc=no
4409fi
4410rm -f conftest*
4411
4412fi
4413
4414if test $ac_cv_header_stdc = yes; then
4415 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4416 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004417/* confdefs.h. */
4418_ACEOF
4419cat confdefs.h >>conftest.$ac_ext
4420cat >>conftest.$ac_ext <<_ACEOF
4421/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004422#include <stdlib.h>
4423
4424_ACEOF
4425if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004426 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004427 :
4428else
4429 ac_cv_header_stdc=no
4430fi
4431rm -f conftest*
4432
4433fi
4434
4435if test $ac_cv_header_stdc = yes; then
4436 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4437 if test "$cross_compiling" = yes; then
4438 :
4439else
4440 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004441/* confdefs.h. */
4442_ACEOF
4443cat confdefs.h >>conftest.$ac_ext
4444cat >>conftest.$ac_ext <<_ACEOF
4445/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004446#include <ctype.h>
4447#if ((' ' & 0x0FF) == 0x020)
4448# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4449# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4450#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004451# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004452 (('a' <= (c) && (c) <= 'i') \
4453 || ('j' <= (c) && (c) <= 'r') \
4454 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004455# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4456#endif
4457
4458#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4459int
4460main ()
4461{
4462 int i;
4463 for (i = 0; i < 256; i++)
4464 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004465 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00004466 exit(2);
4467 exit (0);
4468}
4469_ACEOF
4470rm -f conftest$ac_exeext
4471if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4472 (eval $ac_link) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 (eval $ac_try) 2>&5
4478 ac_status=$?
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 :
4482else
4483 echo "$as_me: program exited with status $ac_status" >&5
4484echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004485sed 's/^/| /' conftest.$ac_ext >&5
4486
John Criswell7a73b802003-06-30 21:59:07 +00004487( exit $ac_status )
4488ac_cv_header_stdc=no
4489fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004490rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004491fi
4492fi
4493fi
4494echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4495echo "${ECHO_T}$ac_cv_header_stdc" >&6
4496if test $ac_cv_header_stdc = yes; then
4497
4498cat >>confdefs.h <<\_ACEOF
4499#define STDC_HEADERS 1
4500_ACEOF
4501
4502fi
4503
4504# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004515 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00004516do
4517as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4518echo "$as_me:$LINENO: checking for $ac_header" >&5
4519echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4520if eval "test \"\${$as_ac_Header+set}\" = set"; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522else
4523 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004524/* confdefs.h. */
4525_ACEOF
4526cat confdefs.h >>conftest.$ac_ext
4527cat >>conftest.$ac_ext <<_ACEOF
4528/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004529$ac_includes_default
4530
4531#include <$ac_header>
4532_ACEOF
4533rm -f conftest.$ac_objext
4534if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004535 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004536 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004537 grep -v '^ *+' conftest.er1 >conftest.err
4538 rm -f conftest.er1
4539 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004542 { ac_try='test -z "$ac_c_werror_flag"
4543 || test ! -s conftest.err'
4544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4545 (eval $ac_try) 2>&5
4546 ac_status=$?
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); }; } &&
4549 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551 (eval $ac_try) 2>&5
4552 ac_status=$?
4553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554 (exit $ac_status); }; }; then
4555 eval "$as_ac_Header=yes"
4556else
4557 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004558sed 's/^/| /' conftest.$ac_ext >&5
4559
John Criswell7a73b802003-06-30 21:59:07 +00004560eval "$as_ac_Header=no"
4561fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004563fi
4564echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4565echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4566if test `eval echo '${'$as_ac_Header'}'` = yes; then
4567 cat >>confdefs.h <<_ACEOF
4568#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4569_ACEOF
4570
4571fi
4572
4573done
4574
4575
4576
4577for ac_header in dlfcn.h
4578do
4579as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00004580if eval "test \"\${$as_ac_Header+set}\" = set"; then
4581 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00004582echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4583if eval "test \"\${$as_ac_Header+set}\" = set"; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00004585fi
4586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004588else
Brian Gaeke0a621332004-09-08 20:38:05 +00004589 # Is the header compilable?
4590echo "$as_me:$LINENO: checking $ac_header usability" >&5
4591echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4592cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004593/* confdefs.h. */
4594_ACEOF
4595cat confdefs.h >>conftest.$ac_ext
4596cat >>conftest.$ac_ext <<_ACEOF
4597/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004598$ac_includes_default
4599#include <$ac_header>
4600_ACEOF
4601rm -f conftest.$ac_objext
4602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004603 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004604 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004605 grep -v '^ *+' conftest.er1 >conftest.err
4606 rm -f conftest.er1
4607 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4609 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004610 { ac_try='test -z "$ac_c_werror_flag"
4611 || test ! -s conftest.err'
4612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613 (eval $ac_try) 2>&5
4614 ac_status=$?
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; } &&
4617 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4619 (eval $ac_try) 2>&5
4620 ac_status=$?
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00004623 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00004624else
4625 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004626sed 's/^/| /' conftest.$ac_ext >&5
4627
Brian Gaeke0a621332004-09-08 20:38:05 +00004628ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00004629fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004630rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00004631echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4632echo "${ECHO_T}$ac_header_compiler" >&6
4633
4634# Is the header present?
4635echo "$as_me:$LINENO: checking $ac_header presence" >&5
4636echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4637cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004638/* confdefs.h. */
4639_ACEOF
4640cat confdefs.h >>conftest.$ac_ext
4641cat >>conftest.$ac_ext <<_ACEOF
4642/* end confdefs.h. */
4643#include <$ac_header>
4644_ACEOF
4645if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4647 ac_status=$?
4648 grep -v '^ *+' conftest.er1 >conftest.err
4649 rm -f conftest.er1
4650 cat conftest.err >&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); } >/dev/null; then
4653 if test -s conftest.err; then
4654 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00004656 else
4657 ac_cpp_err=
4658 fi
4659else
4660 ac_cpp_err=yes
4661fi
4662if test -z "$ac_cpp_err"; then
4663 ac_header_preproc=yes
4664else
4665 echo "$as_me: failed program was:" >&5
4666sed 's/^/| /' conftest.$ac_ext >&5
4667
4668 ac_header_preproc=no
4669fi
4670rm -f conftest.err conftest.$ac_ext
4671echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4672echo "${ECHO_T}$ac_header_preproc" >&6
4673
4674# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004675case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4676 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00004677 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4678echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004679 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4680echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4681 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00004682 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00004683 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00004684 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4685echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004686 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4687echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4689echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4690 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4691echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00004692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4693echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004694 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4695echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00004696 (
4697 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00004698## ----------------------------------- ##
4699## Report this to llvmbugs@cs.uiuc.edu ##
4700## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00004701_ASBOX
4702 ) |
4703 sed "s/^/$as_me: WARNING: /" >&2
4704 ;;
4705esac
4706echo "$as_me:$LINENO: checking for $ac_header" >&5
4707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4708if eval "test \"\${$as_ac_Header+set}\" = set"; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4710else
Reid Spencer2706f8c2004-09-19 23:53:36 +00004711 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00004712fi
4713echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4714echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00004715
4716fi
John Criswell7a73b802003-06-30 21:59:07 +00004717if test `eval echo '${'$as_ac_Header'}'` = yes; then
4718 cat >>confdefs.h <<_ACEOF
4719#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4720_ACEOF
4721
4722fi
4723
4724done
4725
Reid Spencer2706f8c2004-09-19 23:53:36 +00004726
4727
4728if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4729 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4730 (test "X$CXX" != "Xg++"))) ; then
4731 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +00004732ac_cpp='$CXXCPP $CPPFLAGS'
4733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4736echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4737echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4738if test -z "$CXXCPP"; then
4739 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004740 echo $ECHO_N "(cached) $ECHO_C" >&6
4741else
John Criswell47fdd832003-07-14 16:52:07 +00004742 # Double quotes because CXXCPP needs to be expanded
4743 for CXXCPP in "$CXX -E" "/lib/cpp"
4744 do
4745 ac_preproc_ok=false
4746for ac_cxx_preproc_warn_flag in '' yes
4747do
4748 # Use a header file that comes with gcc, so configuring glibc
4749 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4751 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004752 # On the NeXT, cc -E runs the code through the compiler's parser,
4753 # not just through cpp. "Syntax error" is here to catch this case.
4754 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004755/* confdefs.h. */
4756_ACEOF
4757cat confdefs.h >>conftest.$ac_ext
4758cat >>conftest.$ac_ext <<_ACEOF
4759/* end confdefs.h. */
4760#ifdef __STDC__
4761# include <limits.h>
4762#else
4763# include <assert.h>
4764#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00004765 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004766_ACEOF
4767if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4768 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4769 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004770 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004771 rm -f conftest.er1
4772 cat conftest.err >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } >/dev/null; then
4775 if test -s conftest.err; then
4776 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004777 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004778 else
John Criswell47fdd832003-07-14 16:52:07 +00004779 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004780 fi
John Criswell47fdd832003-07-14 16:52:07 +00004781else
4782 ac_cpp_err=yes
4783fi
4784if test -z "$ac_cpp_err"; then
4785 :
4786else
4787 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004788sed 's/^/| /' conftest.$ac_ext >&5
4789
John Criswell47fdd832003-07-14 16:52:07 +00004790 # Broken: fails on valid input.
4791continue
4792fi
4793rm -f conftest.err conftest.$ac_ext
4794
4795 # OK, works on sane cases. Now check whether non-existent headers
4796 # can be detected and how.
4797 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004798/* confdefs.h. */
4799_ACEOF
4800cat confdefs.h >>conftest.$ac_ext
4801cat >>conftest.$ac_ext <<_ACEOF
4802/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004803#include <ac_nonexistent.h>
4804_ACEOF
4805if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4806 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4807 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004808 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004809 rm -f conftest.er1
4810 cat conftest.err >&5
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); } >/dev/null; then
4813 if test -s conftest.err; then
4814 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004815 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004816 else
4817 ac_cpp_err=
4818 fi
4819else
4820 ac_cpp_err=yes
4821fi
4822if test -z "$ac_cpp_err"; then
4823 # Broken: success on invalid input.
4824continue
4825else
4826 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004827sed 's/^/| /' conftest.$ac_ext >&5
4828
John Criswell47fdd832003-07-14 16:52:07 +00004829 # Passes both tests.
4830ac_preproc_ok=:
4831break
4832fi
4833rm -f conftest.err conftest.$ac_ext
4834
4835done
4836# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4837rm -f conftest.err conftest.$ac_ext
4838if $ac_preproc_ok; then
4839 break
John Criswell7a73b802003-06-30 21:59:07 +00004840fi
4841
John Criswell47fdd832003-07-14 16:52:07 +00004842 done
4843 ac_cv_prog_CXXCPP=$CXXCPP
4844
4845fi
4846 CXXCPP=$ac_cv_prog_CXXCPP
4847else
4848 ac_cv_prog_CXXCPP=$CXXCPP
4849fi
4850echo "$as_me:$LINENO: result: $CXXCPP" >&5
4851echo "${ECHO_T}$CXXCPP" >&6
4852ac_preproc_ok=false
4853for ac_cxx_preproc_warn_flag in '' yes
4854do
4855 # Use a header file that comes with gcc, so configuring glibc
4856 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4858 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004859 # On the NeXT, cc -E runs the code through the compiler's parser,
4860 # not just through cpp. "Syntax error" is here to catch this case.
4861 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004862/* confdefs.h. */
4863_ACEOF
4864cat confdefs.h >>conftest.$ac_ext
4865cat >>conftest.$ac_ext <<_ACEOF
4866/* end confdefs.h. */
4867#ifdef __STDC__
4868# include <limits.h>
4869#else
4870# include <assert.h>
4871#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00004872 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004873_ACEOF
4874if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4875 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4876 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004877 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004878 rm -f conftest.er1
4879 cat conftest.err >&5
4880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881 (exit $ac_status); } >/dev/null; then
4882 if test -s conftest.err; then
4883 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004884 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004885 else
4886 ac_cpp_err=
4887 fi
4888else
4889 ac_cpp_err=yes
4890fi
4891if test -z "$ac_cpp_err"; then
4892 :
4893else
4894 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004895sed 's/^/| /' conftest.$ac_ext >&5
4896
John Criswell47fdd832003-07-14 16:52:07 +00004897 # Broken: fails on valid input.
4898continue
4899fi
4900rm -f conftest.err conftest.$ac_ext
4901
4902 # OK, works on sane cases. Now check whether non-existent headers
4903 # can be detected and how.
4904 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004905/* confdefs.h. */
4906_ACEOF
4907cat confdefs.h >>conftest.$ac_ext
4908cat >>conftest.$ac_ext <<_ACEOF
4909/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004910#include <ac_nonexistent.h>
4911_ACEOF
4912if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4913 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4914 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004915 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004916 rm -f conftest.er1
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } >/dev/null; then
4920 if test -s conftest.err; then
4921 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004922 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004923 else
4924 ac_cpp_err=
4925 fi
4926else
4927 ac_cpp_err=yes
4928fi
4929if test -z "$ac_cpp_err"; then
4930 # Broken: success on invalid input.
4931continue
4932else
4933 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004934sed 's/^/| /' conftest.$ac_ext >&5
4935
John Criswell47fdd832003-07-14 16:52:07 +00004936 # Passes both tests.
4937ac_preproc_ok=:
4938break
4939fi
4940rm -f conftest.err conftest.$ac_ext
4941
4942done
4943# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4944rm -f conftest.err conftest.$ac_ext
4945if $ac_preproc_ok; then
4946 :
4947else
John Criswell0c38eaf2003-09-10 15:17:25 +00004948 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4949See \`config.log' for more details." >&5
4950echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4951See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004952 { (exit 1); exit 1; }; }
4953fi
4954
4955ac_ext=cc
4956ac_cpp='$CXXCPP $CPPFLAGS'
4957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4960
Reid Spencer2706f8c2004-09-19 23:53:36 +00004961fi
4962
John Criswell47fdd832003-07-14 16:52:07 +00004963
4964ac_ext=f
4965ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4966ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4967ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4968if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00004969 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 +00004970 do
4971 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4972set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4973echo "$as_me:$LINENO: checking for $ac_word" >&5
4974echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4975if test "${ac_cv_prog_F77+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4977else
4978 if test -n "$F77"; then
4979 ac_cv_prog_F77="$F77" # Let the user override the test.
4980else
4981as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982for as_dir in $PATH
4983do
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4988 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4991 fi
4992done
4993done
4994
4995fi
4996fi
4997F77=$ac_cv_prog_F77
4998if test -n "$F77"; then
4999 echo "$as_me:$LINENO: result: $F77" >&5
5000echo "${ECHO_T}$F77" >&6
5001else
5002 echo "$as_me:$LINENO: result: no" >&5
5003echo "${ECHO_T}no" >&6
5004fi
5005
5006 test -n "$F77" && break
5007 done
5008fi
5009if test -z "$F77"; then
5010 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +00005011 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 +00005012do
5013 # Extract the first word of "$ac_prog", so it can be a program name with args.
5014set dummy $ac_prog; ac_word=$2
5015echo "$as_me:$LINENO: checking for $ac_word" >&5
5016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5017if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5018 echo $ECHO_N "(cached) $ECHO_C" >&6
5019else
5020 if test -n "$ac_ct_F77"; then
5021 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
5028 for ac_exec_ext in '' $ac_executable_extensions; do
5029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030 ac_cv_prog_ac_ct_F77="$ac_prog"
5031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 break 2
5033 fi
5034done
5035done
5036
5037fi
5038fi
5039ac_ct_F77=$ac_cv_prog_ac_ct_F77
5040if test -n "$ac_ct_F77"; then
5041 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5042echo "${ECHO_T}$ac_ct_F77" >&6
5043else
5044 echo "$as_me:$LINENO: result: no" >&5
5045echo "${ECHO_T}no" >&6
5046fi
5047
5048 test -n "$ac_ct_F77" && break
5049done
5050
5051 F77=$ac_ct_F77
5052fi
5053
5054
5055# Provide some information about the compiler.
John Criswell5fbb1f82004-09-24 13:28:51 +00005056echo "$as_me:5056:" \
John Criswell47fdd832003-07-14 16:52:07 +00005057 "checking for Fortran 77 compiler version" >&5
5058ac_compiler=`set X $ac_compile; echo $2`
5059{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5060 (eval $ac_compiler --version </dev/null >&5) 2>&5
5061 ac_status=$?
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); }
5064{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5065 (eval $ac_compiler -v </dev/null >&5) 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }
5069{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5070 (eval $ac_compiler -V </dev/null >&5) 2>&5
5071 ac_status=$?
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +00005074rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00005075
5076# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +00005077# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00005078ac_save_ext=$ac_ext
5079ac_ext=F
5080echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5081echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5082if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084else
5085 cat >conftest.$ac_ext <<_ACEOF
5086 program main
5087#ifndef __GNUC__
5088 choke me
5089#endif
5090
5091 end
5092_ACEOF
5093rm -f conftest.$ac_objext
5094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005095 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005096 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005097 grep -v '^ *+' conftest.er1 >conftest.err
5098 rm -f conftest.er1
5099 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5101 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005102 { ac_try='test -z "$ac_f77_werror_flag"
5103 || test ! -s conftest.err'
5104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5105 (eval $ac_try) 2>&5
5106 ac_status=$?
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }; } &&
5109 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5111 (eval $ac_try) 2>&5
5112 ac_status=$?
5113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114 (exit $ac_status); }; }; then
5115 ac_compiler_gnu=yes
5116else
5117 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005118sed 's/^/| /' conftest.$ac_ext >&5
5119
John Criswell47fdd832003-07-14 16:52:07 +00005120ac_compiler_gnu=no
5121fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005122rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005123ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5124
5125fi
5126echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5127echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5128ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005129ac_test_FFLAGS=${FFLAGS+set}
5130ac_save_FFLAGS=$FFLAGS
5131FFLAGS=
5132echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5133echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5134if test "${ac_cv_prog_f77_g+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136else
5137 FFLAGS=-g
5138cat >conftest.$ac_ext <<_ACEOF
5139 program main
5140
5141 end
5142_ACEOF
5143rm -f conftest.$ac_objext
5144if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005145 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005146 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005147 grep -v '^ *+' conftest.er1 >conftest.err
5148 rm -f conftest.er1
5149 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005152 { ac_try='test -z "$ac_f77_werror_flag"
5153 || test ! -s conftest.err'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5155 (eval $ac_try) 2>&5
5156 ac_status=$?
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; } &&
5159 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5161 (eval $ac_try) 2>&5
5162 ac_status=$?
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5165 ac_cv_prog_f77_g=yes
5166else
5167 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005168sed 's/^/| /' conftest.$ac_ext >&5
5169
John Criswell47fdd832003-07-14 16:52:07 +00005170ac_cv_prog_f77_g=no
5171fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005172rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005173
5174fi
5175echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5176echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5177if test "$ac_test_FFLAGS" = set; then
5178 FFLAGS=$ac_save_FFLAGS
5179elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00005180 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005181 FFLAGS="-g -O2"
5182 else
5183 FFLAGS="-g"
5184 fi
5185else
Reid Spencer2706f8c2004-09-19 23:53:36 +00005186 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005187 FFLAGS="-O2"
5188 else
5189 FFLAGS=
5190 fi
5191fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005192
5193G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00005194ac_ext=c
5195ac_cpp='$CPP $CPPFLAGS'
5196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198ac_compiler_gnu=$ac_cv_c_compiler_gnu
5199
5200
5201
5202# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5203
5204# find the maximum length of command line arguments
5205echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5206echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5207if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209else
5210 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +00005211 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +00005212
5213 case $build_os in
5214 msdosdjgpp*)
5215 # On DJGPP, this test can blow up pretty badly due to problems in libc
5216 # (any single argument exceeding 2000 bytes causes a buffer overrun
5217 # during glob expansion). Even if it were fixed, the result of this
5218 # check would be larger than it should be.
5219 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5220 ;;
5221
5222 gnu*)
5223 # Under GNU Hurd, this test is not required because there is
5224 # no limit to the length of command line arguments.
5225 # Libtool will interpret -1 as no limit whatsoever
5226 lt_cv_sys_max_cmd_len=-1;
5227 ;;
5228
5229 cygwin* | mingw*)
5230 # On Win9x/ME, this test blows up -- it succeeds, but takes
5231 # about 5 minutes as the teststring grows exponentially.
5232 # Worse, since 9x/ME are not pre-emptively multitasking,
5233 # you end up with a "frozen" computer, even though with patience
5234 # the test eventually succeeds (with a max line length of 256k).
5235 # Instead, let's just punt: use the minimum linelength reported by
5236 # all of the supported platforms: 8192 (on NT/2K/XP).
5237 lt_cv_sys_max_cmd_len=8192;
5238 ;;
5239
Reid Spencer2706f8c2004-09-19 23:53:36 +00005240 amigaos*)
5241 # On AmigaOS with pdksh, this test takes hours, literally.
5242 # So we just punt and use a minimum line length of 8192.
5243 lt_cv_sys_max_cmd_len=8192;
5244 ;;
5245
5246 netbsd* | freebsd* | openbsd* | darwin* )
5247 # This has been around since 386BSD, at least. Likely further.
5248 if test -x /sbin/sysctl; then
5249 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5250 elif test -x /usr/sbin/sysctl; then
5251 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5252 else
5253 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5254 fi
5255 # And add a safety zone
5256 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5257 ;;
5258
John Criswell47fdd832003-07-14 16:52:07 +00005259 *)
5260 # If test is not a shell built-in, we'll probably end up computing a
5261 # maximum length that is only half of the actual maximum length, but
5262 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +00005263 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5264 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5265 = "XX$teststring") >/dev/null 2>&1 &&
5266 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +00005267 lt_cv_sys_max_cmd_len=$new_result &&
5268 test $i != 17 # 1/2 MB should be enough
5269 do
5270 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +00005271 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +00005272 done
Reid Spencer2706f8c2004-09-19 23:53:36 +00005273 teststring=
John Criswell47fdd832003-07-14 16:52:07 +00005274 # Add a significant safety factor because C++ compilers can tack on massive
5275 # amounts of additional arguments before passing them to the linker.
5276 # It appears as though 1/2 is a usable value.
5277 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5278 ;;
5279 esac
5280
5281fi
5282
5283if test -n $lt_cv_sys_max_cmd_len ; then
5284 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5285echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5286else
5287 echo "$as_me:$LINENO: result: none" >&5
5288echo "${ECHO_T}none" >&6
5289fi
5290
5291
5292
5293
5294# Check for command to grab the raw symbol name followed by C symbol from nm.
5295echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5296echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5297if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5298 echo $ECHO_N "(cached) $ECHO_C" >&6
5299else
5300
5301# These are sane defaults that work on at least a few old systems.
5302# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5303
5304# Character class describing NM global symbol codes.
5305symcode='[BCDEGRST]'
5306
5307# Regexp to match symbols that can be accessed directly from C.
5308sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5309
5310# Transform the above into a raw symbol and a C symbol.
5311symxfrm='\1 \2\3 \3'
5312
5313# Transform an extracted symbol line into a proper C declaration
5314lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5315
5316# Transform an extracted symbol line into symbol name and symbol address
5317lt_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'"
5318
5319# Define system-specific variables.
5320case $host_os in
5321aix*)
5322 symcode='[BCDT]'
5323 ;;
5324cygwin* | mingw* | pw32*)
5325 symcode='[ABCDGISTW]'
5326 ;;
5327hpux*) # Its linker distinguishes data from code symbols
5328 if test "$host_cpu" = ia64; then
5329 symcode='[ABCDEGRST]'
5330 fi
5331 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5332 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'"
5333 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00005334linux*)
5335 if test "$host_cpu" = ia64; then
5336 symcode='[ABCDGIRSTW]'
5337 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5338 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'"
5339 fi
5340 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005341irix* | nonstopux*)
5342 symcode='[BCDEGRST]'
5343 ;;
5344osf*)
5345 symcode='[BCDEGQRST]'
5346 ;;
5347solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005348 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +00005349 ;;
5350sysv4)
5351 symcode='[DFNSTU]'
5352 ;;
5353esac
5354
5355# Handle CRLF in mingw tool chain
5356opt_cr=
5357case $build_os in
5358mingw*)
5359 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5360 ;;
5361esac
5362
5363# If we're using GNU nm, then use its standard symbol codes.
5364case `$NM -V 2>&1` in
5365*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005366 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +00005367esac
5368
5369# Try without a prefix undercore, then with it.
5370for ac_symprfx in "" "_"; do
5371
5372 # Write the raw and C identifiers.
5373 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5374
5375 # Check to see that the pipe works correctly.
5376 pipe_works=no
5377
5378 rm -f conftest*
5379 cat > conftest.$ac_ext <<EOF
5380#ifdef __cplusplus
5381extern "C" {
5382#endif
5383char nm_test_var;
5384void nm_test_func(){}
5385#ifdef __cplusplus
5386}
5387#endif
5388int main(){nm_test_var='a';nm_test_func();return(0);}
5389EOF
5390
5391 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5392 (eval $ac_compile) 2>&5
5393 ac_status=$?
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); }; then
5396 # Now try to grab the symbols.
5397 nlist=conftest.nm
5398 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5399 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5400 ac_status=$?
5401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402 (exit $ac_status); } && test -s "$nlist"; then
5403 # Try sorting and uniquifying the output.
5404 if sort "$nlist" | uniq > "$nlist"T; then
5405 mv -f "$nlist"T "$nlist"
5406 else
5407 rm -f "$nlist"T
5408 fi
5409
5410 # Make sure that we snagged all the symbols we need.
5411 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5412 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5413 cat <<EOF > conftest.$ac_ext
5414#ifdef __cplusplus
5415extern "C" {
5416#endif
5417
5418EOF
5419 # Now generate the symbol file.
5420 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5421
5422 cat <<EOF >> conftest.$ac_ext
5423#if defined (__STDC__) && __STDC__
5424# define lt_ptr_t void *
5425#else
5426# define lt_ptr_t char *
5427# define const
5428#endif
5429
5430/* The mapping between symbol names and symbols. */
5431const struct {
5432 const char *name;
5433 lt_ptr_t address;
5434}
5435lt_preloaded_symbols[] =
5436{
5437EOF
5438 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5439 cat <<\EOF >> conftest.$ac_ext
5440 {0, (lt_ptr_t) 0}
5441};
5442
5443#ifdef __cplusplus
5444}
5445#endif
5446EOF
5447 # Now try linking the two files.
5448 mv conftest.$ac_objext conftstm.$ac_objext
5449 lt_save_LIBS="$LIBS"
5450 lt_save_CFLAGS="$CFLAGS"
5451 LIBS="conftstm.$ac_objext"
5452 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5454 (eval $ac_link) 2>&5
5455 ac_status=$?
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5458 pipe_works=yes
5459 fi
5460 LIBS="$lt_save_LIBS"
5461 CFLAGS="$lt_save_CFLAGS"
5462 else
5463 echo "cannot find nm_test_func in $nlist" >&5
5464 fi
5465 else
5466 echo "cannot find nm_test_var in $nlist" >&5
5467 fi
5468 else
5469 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5470 fi
5471 else
5472 echo "$progname: failed program was:" >&5
5473 cat conftest.$ac_ext >&5
5474 fi
5475 rm -f conftest* conftst*
5476
5477 # Do not use the global_symbol_pipe unless it works.
5478 if test "$pipe_works" = yes; then
5479 break
5480 else
5481 lt_cv_sys_global_symbol_pipe=
5482 fi
5483done
5484
5485fi
5486
5487if test -z "$lt_cv_sys_global_symbol_pipe"; then
5488 lt_cv_sys_global_symbol_to_cdecl=
5489fi
5490if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5491 echo "$as_me:$LINENO: result: failed" >&5
5492echo "${ECHO_T}failed" >&6
5493else
5494 echo "$as_me:$LINENO: result: ok" >&5
5495echo "${ECHO_T}ok" >&6
5496fi
5497
5498echo "$as_me:$LINENO: checking for objdir" >&5
5499echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5500if test "${lt_cv_objdir+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502else
5503 rm -f .libs 2>/dev/null
5504mkdir .libs 2>/dev/null
5505if test -d .libs; then
5506 lt_cv_objdir=.libs
5507else
5508 # MS-DOS does not allow filenames that begin with a dot.
5509 lt_cv_objdir=_libs
5510fi
5511rmdir .libs 2>/dev/null
5512fi
5513echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5514echo "${ECHO_T}$lt_cv_objdir" >&6
5515objdir=$lt_cv_objdir
5516
5517
5518
5519
5520
5521case $host_os in
5522aix3*)
5523 # AIX sometimes has problems with the GCC collect2 program. For some
5524 # reason, if we set the COLLECT_NAMES environment variable, the problems
5525 # vanish in a puff of smoke.
5526 if test "X${COLLECT_NAMES+set}" != Xset; then
5527 COLLECT_NAMES=
5528 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005529 fi
5530 ;;
5531esac
5532
John Criswell47fdd832003-07-14 16:52:07 +00005533# Sed substitution that helps us do robust quoting. It backslashifies
5534# metacharacters that are still active within double-quoted strings.
5535Xsed='sed -e s/^X//'
5536sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5537
5538# Same as above, but do not quote variable references.
5539double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5540
5541# Sed substitution to delay expansion of an escaped shell variable in a
5542# double_quote_subst'ed string.
5543delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5544
5545# Sed substitution to avoid accidental globbing in evaled expressions
5546no_glob_subst='s/\*/\\\*/g'
5547
5548# Constants:
5549rm="rm -f"
5550
5551# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +00005552default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005553can_build_shared=yes
5554
5555# All known linkers require a `.a' archive for static linking (except M$VC,
5556# which needs '.lib').
5557libext=a
5558ltmain="$ac_aux_dir/ltmain.sh"
5559ofile="$default_ofile"
5560with_gnu_ld="$lt_cv_prog_gnu_ld"
5561
5562if test -n "$ac_tool_prefix"; then
5563 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5564set dummy ${ac_tool_prefix}ar; ac_word=$2
5565echo "$as_me:$LINENO: checking for $ac_word" >&5
5566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5567if test "${ac_cv_prog_AR+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5569else
5570 if test -n "$AR"; then
5571 ac_cv_prog_AR="$AR" # Let the user override the test.
5572else
5573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574for as_dir in $PATH
5575do
5576 IFS=$as_save_IFS
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580 ac_cv_prog_AR="${ac_tool_prefix}ar"
5581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5582 break 2
5583 fi
5584done
5585done
5586
5587fi
5588fi
5589AR=$ac_cv_prog_AR
5590if test -n "$AR"; then
5591 echo "$as_me:$LINENO: result: $AR" >&5
5592echo "${ECHO_T}$AR" >&6
5593else
5594 echo "$as_me:$LINENO: result: no" >&5
5595echo "${ECHO_T}no" >&6
5596fi
5597
5598fi
5599if test -z "$ac_cv_prog_AR"; then
5600 ac_ct_AR=$AR
5601 # Extract the first word of "ar", so it can be a program name with args.
5602set dummy ar; ac_word=$2
5603echo "$as_me:$LINENO: checking for $ac_word" >&5
5604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5605if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608 if test -n "$ac_ct_AR"; then
5609 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5610else
5611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5612for as_dir in $PATH
5613do
5614 IFS=$as_save_IFS
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5618 ac_cv_prog_ac_ct_AR="ar"
5619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5620 break 2
5621 fi
5622done
5623done
5624
5625 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5626fi
5627fi
5628ac_ct_AR=$ac_cv_prog_ac_ct_AR
5629if test -n "$ac_ct_AR"; then
5630 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5631echo "${ECHO_T}$ac_ct_AR" >&6
5632else
5633 echo "$as_me:$LINENO: result: no" >&5
5634echo "${ECHO_T}no" >&6
5635fi
5636
5637 AR=$ac_ct_AR
5638else
5639 AR="$ac_cv_prog_AR"
5640fi
5641
John Criswell7a73b802003-06-30 21:59:07 +00005642if test -n "$ac_tool_prefix"; then
5643 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5644set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5645echo "$as_me:$LINENO: checking for $ac_word" >&5
5646echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5647if test "${ac_cv_prog_RANLIB+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649else
5650 if test -n "$RANLIB"; then
5651 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5652else
5653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654for as_dir in $PATH
5655do
5656 IFS=$as_save_IFS
5657 test -z "$as_dir" && as_dir=.
5658 for ac_exec_ext in '' $ac_executable_extensions; do
5659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5660 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 break 2
5663 fi
5664done
5665done
5666
5667fi
5668fi
5669RANLIB=$ac_cv_prog_RANLIB
5670if test -n "$RANLIB"; then
5671 echo "$as_me:$LINENO: result: $RANLIB" >&5
5672echo "${ECHO_T}$RANLIB" >&6
5673else
5674 echo "$as_me:$LINENO: result: no" >&5
5675echo "${ECHO_T}no" >&6
5676fi
5677
5678fi
5679if test -z "$ac_cv_prog_RANLIB"; then
5680 ac_ct_RANLIB=$RANLIB
5681 # Extract the first word of "ranlib", so it can be a program name with args.
5682set dummy ranlib; ac_word=$2
5683echo "$as_me:$LINENO: checking for $ac_word" >&5
5684echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5685if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5687else
5688 if test -n "$ac_ct_RANLIB"; then
5689 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5690else
5691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692for as_dir in $PATH
5693do
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5698 ac_cv_prog_ac_ct_RANLIB="ranlib"
5699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 break 2
5701 fi
5702done
5703done
5704
5705 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5706fi
5707fi
5708ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5709if test -n "$ac_ct_RANLIB"; then
5710 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5711echo "${ECHO_T}$ac_ct_RANLIB" >&6
5712else
5713 echo "$as_me:$LINENO: result: no" >&5
5714echo "${ECHO_T}no" >&6
5715fi
5716
5717 RANLIB=$ac_ct_RANLIB
5718else
5719 RANLIB="$ac_cv_prog_RANLIB"
5720fi
5721
5722if test -n "$ac_tool_prefix"; then
5723 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5724set dummy ${ac_tool_prefix}strip; ac_word=$2
5725echo "$as_me:$LINENO: checking for $ac_word" >&5
5726echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5727if test "${ac_cv_prog_STRIP+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730 if test -n "$STRIP"; then
5731 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5732else
5733as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5734for as_dir in $PATH
5735do
5736 IFS=$as_save_IFS
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5742 break 2
5743 fi
5744done
5745done
5746
5747fi
5748fi
5749STRIP=$ac_cv_prog_STRIP
5750if test -n "$STRIP"; then
5751 echo "$as_me:$LINENO: result: $STRIP" >&5
5752echo "${ECHO_T}$STRIP" >&6
5753else
5754 echo "$as_me:$LINENO: result: no" >&5
5755echo "${ECHO_T}no" >&6
5756fi
5757
5758fi
5759if test -z "$ac_cv_prog_STRIP"; then
5760 ac_ct_STRIP=$STRIP
5761 # Extract the first word of "strip", so it can be a program name with args.
5762set dummy strip; ac_word=$2
5763echo "$as_me:$LINENO: checking for $ac_word" >&5
5764echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5765if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767else
5768 if test -n "$ac_ct_STRIP"; then
5769 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5770else
5771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772for as_dir in $PATH
5773do
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_ac_ct_STRIP="strip"
5779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5781 fi
5782done
5783done
5784
5785 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5786fi
5787fi
5788ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5789if test -n "$ac_ct_STRIP"; then
5790 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5791echo "${ECHO_T}$ac_ct_STRIP" >&6
5792else
5793 echo "$as_me:$LINENO: result: no" >&5
5794echo "${ECHO_T}no" >&6
5795fi
5796
5797 STRIP=$ac_ct_STRIP
5798else
5799 STRIP="$ac_cv_prog_STRIP"
5800fi
5801
5802
John Criswell7a73b802003-06-30 21:59:07 +00005803old_CC="$CC"
5804old_CFLAGS="$CFLAGS"
5805
5806# Set sane defaults for various variables
5807test -z "$AR" && AR=ar
5808test -z "$AR_FLAGS" && AR_FLAGS=cru
5809test -z "$AS" && AS=as
5810test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005811test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005812test -z "$DLLTOOL" && DLLTOOL=dlltool
5813test -z "$LD" && LD=ld
5814test -z "$LN_S" && LN_S="ln -s"
5815test -z "$MAGIC_CMD" && MAGIC_CMD=file
5816test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005817test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005818test -z "$OBJDUMP" && OBJDUMP=objdump
5819test -z "$RANLIB" && RANLIB=:
5820test -z "$STRIP" && STRIP=:
5821test -z "$ac_objext" && ac_objext=o
5822
John Criswell7a73b802003-06-30 21:59:07 +00005823# Determine commands to create old-style static archives.
5824old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5825old_postinstall_cmds='chmod 644 $oldlib'
5826old_postuninstall_cmds=
5827
5828if test -n "$RANLIB"; then
5829 case $host_os in
5830 openbsd*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005831 old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00005832 ;;
5833 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005834 old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00005835 ;;
5836 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00005837 old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +00005838fi
5839
Reid Spencer2706f8c2004-09-19 23:53:36 +00005840cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5841
John Criswell47fdd832003-07-14 16:52:07 +00005842# Only perform the check for file, if the check method requires it
5843case $deplibs_check_method in
5844file_magic*)
5845 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5846 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5847echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5848if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005850else
John Criswell47fdd832003-07-14 16:52:07 +00005851 case $MAGIC_CMD in
5852[\\/*] | ?:[\\/]*)
5853 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5854 ;;
5855*)
5856 lt_save_MAGIC_CMD="$MAGIC_CMD"
5857 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5858 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5859 for ac_dir in $ac_dummy; do
5860 IFS="$lt_save_ifs"
5861 test -z "$ac_dir" && ac_dir=.
5862 if test -f $ac_dir/${ac_tool_prefix}file; then
5863 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5864 if test -n "$file_magic_test_file"; then
5865 case $deplibs_check_method in
5866 "file_magic "*)
5867 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5868 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5869 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5870 $EGREP "$file_magic_regex" > /dev/null; then
5871 :
5872 else
5873 cat <<EOF 1>&2
5874
5875*** Warning: the command libtool uses to detect shared libraries,
5876*** $file_magic_cmd, produces output that libtool cannot recognize.
5877*** The result is that libtool may fail to recognize shared libraries
5878*** as such. This will affect the creation of libtool libraries that
5879*** depend on shared libraries, but programs linked with such libtool
5880*** libraries will work regardless of this problem. Nevertheless, you
5881*** may want to report the problem to your system manager and/or to
5882*** bug-libtool@gnu.org
5883
5884EOF
5885 fi ;;
5886 esac
5887 fi
5888 break
5889 fi
5890 done
5891 IFS="$lt_save_ifs"
5892 MAGIC_CMD="$lt_save_MAGIC_CMD"
5893 ;;
5894esac
John Criswell7a73b802003-06-30 21:59:07 +00005895fi
John Criswell7a73b802003-06-30 21:59:07 +00005896
John Criswell47fdd832003-07-14 16:52:07 +00005897MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5898if test -n "$MAGIC_CMD"; then
5899 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5900echo "${ECHO_T}$MAGIC_CMD" >&6
5901else
5902 echo "$as_me:$LINENO: result: no" >&5
5903echo "${ECHO_T}no" >&6
5904fi
John Criswell7a73b802003-06-30 21:59:07 +00005905
John Criswell47fdd832003-07-14 16:52:07 +00005906if test -z "$lt_cv_path_MAGIC_CMD"; then
5907 if test -n "$ac_tool_prefix"; then
5908 echo "$as_me:$LINENO: checking for file" >&5
5909echo $ECHO_N "checking for file... $ECHO_C" >&6
5910if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5911 echo $ECHO_N "(cached) $ECHO_C" >&6
5912else
5913 case $MAGIC_CMD in
5914[\\/*] | ?:[\\/]*)
5915 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5916 ;;
5917*)
5918 lt_save_MAGIC_CMD="$MAGIC_CMD"
5919 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5920 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5921 for ac_dir in $ac_dummy; do
5922 IFS="$lt_save_ifs"
5923 test -z "$ac_dir" && ac_dir=.
5924 if test -f $ac_dir/file; then
5925 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5926 if test -n "$file_magic_test_file"; then
5927 case $deplibs_check_method in
5928 "file_magic "*)
5929 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5931 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5932 $EGREP "$file_magic_regex" > /dev/null; then
5933 :
5934 else
5935 cat <<EOF 1>&2
5936
5937*** Warning: the command libtool uses to detect shared libraries,
5938*** $file_magic_cmd, produces output that libtool cannot recognize.
5939*** The result is that libtool may fail to recognize shared libraries
5940*** as such. This will affect the creation of libtool libraries that
5941*** depend on shared libraries, but programs linked with such libtool
5942*** libraries will work regardless of this problem. Nevertheless, you
5943*** may want to report the problem to your system manager and/or to
5944*** bug-libtool@gnu.org
5945
5946EOF
5947 fi ;;
5948 esac
5949 fi
5950 break
5951 fi
5952 done
5953 IFS="$lt_save_ifs"
5954 MAGIC_CMD="$lt_save_MAGIC_CMD"
5955 ;;
5956esac
5957fi
5958
5959MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5960if test -n "$MAGIC_CMD"; then
5961 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5962echo "${ECHO_T}$MAGIC_CMD" >&6
5963else
5964 echo "$as_me:$LINENO: result: no" >&5
5965echo "${ECHO_T}no" >&6
5966fi
5967
5968 else
5969 MAGIC_CMD=:
5970 fi
5971fi
5972
5973 fi
5974 ;;
5975esac
5976
5977enable_dlopen=no
5978enable_win32_dll=no
5979
5980# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5981if test "${enable_libtool_lock+set}" = set; then
5982 enableval="$enable_libtool_lock"
5983
5984fi;
5985test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5986
John Criswell7a73b802003-06-30 21:59:07 +00005987
5988# Check whether --with-pic or --without-pic was given.
5989if test "${with_pic+set}" = set; then
5990 withval="$with_pic"
5991 pic_mode="$withval"
5992else
5993 pic_mode=default
5994fi;
5995test -z "$pic_mode" && pic_mode=default
5996
John Criswell47fdd832003-07-14 16:52:07 +00005997# Use C for the default configuration in the libtool script
5998tagname=
5999lt_save_CC="$CC"
6000ac_ext=c
6001ac_cpp='$CPP $CPPFLAGS'
6002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6004ac_compiler_gnu=$ac_cv_c_compiler_gnu
6005
6006
6007# Source file extension for C test sources.
6008ac_ext=c
6009
6010# Object file extension for compiled C test sources.
6011objext=o
6012objext=$objext
6013
6014# Code to be used in simple compile tests
6015lt_simple_compile_test_code="int some_variable = 0;\n"
6016
6017# Code to be used in simple link tests
6018lt_simple_link_test_code='int main(){return(0);}\n'
6019
6020
6021# If no C compiler was specified, use CC.
6022LTCC=${LTCC-"$CC"}
6023
6024# Allow CC to be a program name with arguments.
6025compiler=$CC
6026
6027
6028#
6029# Check for any special shared library compilation flags.
6030#
6031lt_prog_cc_shlib=
6032if test "$GCC" = no; then
6033 case $host_os in
6034 sco3.2v5*)
6035 lt_prog_cc_shlib='-belf'
6036 ;;
6037 esac
6038fi
6039if test -n "$lt_prog_cc_shlib"; then
6040 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6041echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6042 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6043 else
6044 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6045echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6046 lt_cv_prog_cc_can_build_shared=no
6047 fi
6048fi
6049
6050
6051#
6052# Check to make sure the static flag actually works.
6053#
6054echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6055echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6056if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006057 echo $ECHO_N "(cached) $ECHO_C" >&6
6058else
John Criswell47fdd832003-07-14 16:52:07 +00006059 lt_prog_compiler_static_works=no
6060 save_LDFLAGS="$LDFLAGS"
6061 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6062 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6063 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6064 # The compiler can only warn and ignore the option if not recognized
6065 # So say no if there are warnings
6066 if test -s conftest.err; then
6067 # Append any errors to the config.log.
6068 cat conftest.err 1>&5
6069 else
6070 lt_prog_compiler_static_works=yes
6071 fi
6072 fi
6073 $rm conftest*
6074 LDFLAGS="$save_LDFLAGS"
6075
6076fi
6077echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6078echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6079
6080if test x"$lt_prog_compiler_static_works" = xyes; then
6081 :
6082else
6083 lt_prog_compiler_static=
6084fi
6085
6086
6087
John Criswell47fdd832003-07-14 16:52:07 +00006088
6089lt_prog_compiler_no_builtin_flag=
6090
6091if test "$GCC" = yes; then
6092 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6093
Reid Spencer2706f8c2004-09-19 23:53:36 +00006094
6095echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006096echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6097if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6098 echo $ECHO_N "(cached) $ECHO_C" >&6
6099else
6100 lt_cv_prog_compiler_rtti_exceptions=no
6101 ac_outfile=conftest.$ac_objext
6102 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6103 lt_compiler_flag="-fno-rtti -fno-exceptions"
6104 # Insert the option either (1) after the last *FLAGS variable, or
6105 # (2) before a word containing "conftest.", or (3) at the end.
6106 # Note that $ac_compile itself does not contain backslashes and begins
6107 # with a dollar sign (not a hyphen), so the echo should work correctly.
6108 # The option is referenced via a variable to avoid confusing sed.
6109 lt_compile=`echo "$ac_compile" | $SED \
6110 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6112 -e 's:$: $lt_compiler_flag:'`
John Criswell5fbb1f82004-09-24 13:28:51 +00006113 (eval echo "\"\$as_me:6113: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006114 (eval "$lt_compile" 2>conftest.err)
6115 ac_status=$?
6116 cat conftest.err >&5
John Criswell5fbb1f82004-09-24 13:28:51 +00006117 echo "$as_me:6117: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006118 if (exit $ac_status) && test -s "$ac_outfile"; then
6119 # The compiler can only warn and ignore the option if not recognized
6120 # So say no if there are warnings
6121 if test ! -s conftest.err; then
6122 lt_cv_prog_compiler_rtti_exceptions=yes
6123 fi
6124 fi
6125 $rm conftest*
6126
6127fi
6128echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6129echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6130
6131if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6132 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6133else
6134 :
6135fi
6136
6137fi
6138
6139lt_prog_compiler_wl=
6140lt_prog_compiler_pic=
6141lt_prog_compiler_static=
6142
6143echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6144echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006145
6146 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006147 lt_prog_compiler_wl='-Wl,'
6148 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006149
6150 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006151 aix*)
6152 # All AIX code is PIC.
6153 if test "$host_cpu" = ia64; then
6154 # AIX 5 now supports IA64 processor
6155 lt_prog_compiler_static='-Bstatic'
6156 fi
John Criswell7a73b802003-06-30 21:59:07 +00006157 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006158
John Criswell7a73b802003-06-30 21:59:07 +00006159 amigaos*)
6160 # FIXME: we need at least 68020 code to build shared libraries, but
6161 # adding the `-m68020' flag to GCC prevents building anything better,
6162 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006163 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006164 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006165
6166 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006167 # PIC is the default for these OSes.
6168 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006169
6170 mingw* | pw32* | os2*)
6171 # This hack is so that the source file can tell whether it is being
6172 # built for inclusion in a dll (and should export symbols for example).
6173 lt_prog_compiler_pic='-DDLL_EXPORT'
6174 ;;
6175
John Criswell7a73b802003-06-30 21:59:07 +00006176 darwin* | rhapsody*)
6177 # PIC is the default on this platform
6178 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006179 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006180 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006181
6182 msdosdjgpp*)
6183 # Just because we use GCC doesn't mean we suddenly get shared libraries
6184 # on systems that don't support them.
6185 lt_prog_compiler_can_build_shared=no
6186 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006187 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006188
John Criswell7a73b802003-06-30 21:59:07 +00006189 sysv4*MP*)
6190 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006191 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006192 fi
6193 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006194
6195 hpux*)
6196 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6197 # not for PA HP-UX.
6198 case "$host_cpu" in
6199 hppa*64*|ia64*)
6200 # +Z the default
6201 ;;
6202 *)
6203 lt_prog_compiler_pic='-fPIC'
6204 ;;
6205 esac
6206 ;;
6207
John Criswell7a73b802003-06-30 21:59:07 +00006208 *)
John Criswell47fdd832003-07-14 16:52:07 +00006209 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006210 ;;
6211 esac
6212 else
John Criswell47fdd832003-07-14 16:52:07 +00006213 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006214 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006215 aix*)
6216 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006217 if test "$host_cpu" = ia64; then
6218 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006219 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006220 else
John Criswell47fdd832003-07-14 16:52:07 +00006221 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006222 fi
6223 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006224 darwin*)
6225 # PIC is the default on this platform
6226 # Common symbols not allowed in MH_DYLIB files
6227 case "$cc_basename" in
6228 xlc*)
6229 lt_prog_compiler_pic='-qnocommon'
6230 lt_prog_compiler_wl='-Wl,'
6231 ;;
6232 esac
6233 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006234
John Criswell47fdd832003-07-14 16:52:07 +00006235 mingw* | pw32* | os2*)
6236 # This hack is so that the source file can tell whether it is being
6237 # built for inclusion in a dll (and should export symbols for example).
6238 lt_prog_compiler_pic='-DDLL_EXPORT'
6239 ;;
6240
John Criswell7a73b802003-06-30 21:59:07 +00006241 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006242 lt_prog_compiler_wl='-Wl,'
6243 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6244 # not for PA HP-UX.
6245 case "$host_cpu" in
6246 hppa*64*|ia64*)
6247 # +Z the default
6248 ;;
6249 *)
6250 lt_prog_compiler_pic='+Z'
6251 ;;
6252 esac
6253 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6254 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006255 ;;
6256
John Criswell47fdd832003-07-14 16:52:07 +00006257 irix5* | irix6* | nonstopux*)
6258 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006259 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006260 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006261 ;;
6262
6263 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006264 lt_prog_compiler_pic='-KPIC'
6265 lt_prog_compiler_static='-Bstatic'
6266 ;;
6267
6268 linux*)
6269 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +00006270 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +00006271 lt_prog_compiler_wl='-Wl,'
6272 lt_prog_compiler_pic='-KPIC'
6273 lt_prog_compiler_static='-static'
6274 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006275 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +00006276 lt_prog_compiler_wl='-Wl,'
6277 # All Alpha code is PIC.
6278 lt_prog_compiler_static='-non_shared'
6279 ;;
6280 esac
John Criswell7a73b802003-06-30 21:59:07 +00006281 ;;
6282
6283 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006284 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006285 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006286 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006287 ;;
6288
6289 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006290 lt_prog_compiler_pic='-Kpic'
6291 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006292 ;;
6293
6294 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006295 lt_prog_compiler_wl='-Wl,'
6296 lt_prog_compiler_pic='-KPIC'
6297 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006298 ;;
6299
6300 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006301 lt_prog_compiler_wl='-Qoption ld '
6302 lt_prog_compiler_pic='-PIC'
6303 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006304 ;;
6305
6306 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006307 lt_prog_compiler_wl='-Wl,'
6308 lt_prog_compiler_pic='-KPIC'
6309 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006310 ;;
6311
6312 sysv4*MP*)
6313 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006314 lt_prog_compiler_pic='-Kconform_pic'
6315 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006316 fi
6317 ;;
6318
John Criswell47fdd832003-07-14 16:52:07 +00006319 uts4*)
6320 lt_prog_compiler_pic='-pic'
6321 lt_prog_compiler_static='-Bstatic'
6322 ;;
6323
John Criswell7a73b802003-06-30 21:59:07 +00006324 *)
John Criswell47fdd832003-07-14 16:52:07 +00006325 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006326 ;;
6327 esac
6328 fi
6329
John Criswell47fdd832003-07-14 16:52:07 +00006330echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6331echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006332
John Criswell47fdd832003-07-14 16:52:07 +00006333#
6334# Check to make sure the PIC flag actually works.
6335#
6336if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00006337
6338echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006339echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6340if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006341 echo $ECHO_N "(cached) $ECHO_C" >&6
6342else
John Criswell47fdd832003-07-14 16:52:07 +00006343 lt_prog_compiler_pic_works=no
6344 ac_outfile=conftest.$ac_objext
6345 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6346 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6347 # Insert the option either (1) after the last *FLAGS variable, or
6348 # (2) before a word containing "conftest.", or (3) at the end.
6349 # Note that $ac_compile itself does not contain backslashes and begins
6350 # with a dollar sign (not a hyphen), so the echo should work correctly.
6351 # The option is referenced via a variable to avoid confusing sed.
6352 lt_compile=`echo "$ac_compile" | $SED \
6353 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6354 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6355 -e 's:$: $lt_compiler_flag:'`
John Criswell5fbb1f82004-09-24 13:28:51 +00006356 (eval echo "\"\$as_me:6356: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006357 (eval "$lt_compile" 2>conftest.err)
6358 ac_status=$?
6359 cat conftest.err >&5
John Criswell5fbb1f82004-09-24 13:28:51 +00006360 echo "$as_me:6360: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006361 if (exit $ac_status) && test -s "$ac_outfile"; then
6362 # The compiler can only warn and ignore the option if not recognized
6363 # So say no if there are warnings
6364 if test ! -s conftest.err; then
6365 lt_prog_compiler_pic_works=yes
6366 fi
6367 fi
6368 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006369
John Criswell47fdd832003-07-14 16:52:07 +00006370fi
6371echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6372echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006373
John Criswell47fdd832003-07-14 16:52:07 +00006374if test x"$lt_prog_compiler_pic_works" = xyes; then
6375 case $lt_prog_compiler_pic in
6376 "" | " "*) ;;
6377 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6378 esac
John Criswell7a73b802003-06-30 21:59:07 +00006379else
John Criswell47fdd832003-07-14 16:52:07 +00006380 lt_prog_compiler_pic=
6381 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006382fi
6383
John Criswell7a73b802003-06-30 21:59:07 +00006384fi
John Criswell47fdd832003-07-14 16:52:07 +00006385case "$host_os" in
6386 # For platforms which do not support PIC, -DPIC is meaningless:
6387 *djgpp*)
6388 lt_prog_compiler_pic=
6389 ;;
6390 *)
6391 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6392 ;;
6393esac
John Criswell7a73b802003-06-30 21:59:07 +00006394
John Criswell7a73b802003-06-30 21:59:07 +00006395echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6396echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006397if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006398 echo $ECHO_N "(cached) $ECHO_C" >&6
6399else
John Criswell47fdd832003-07-14 16:52:07 +00006400 lt_cv_prog_compiler_c_o=no
6401 $rm -r conftest 2>/dev/null
6402 mkdir conftest
6403 cd conftest
6404 mkdir out
6405 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006406
John Criswell47fdd832003-07-14 16:52:07 +00006407 lt_compiler_flag="-o out/conftest2.$ac_objext"
6408 # Insert the option either (1) after the last *FLAGS variable, or
6409 # (2) before a word containing "conftest.", or (3) at the end.
6410 # Note that $ac_compile itself does not contain backslashes and begins
6411 # with a dollar sign (not a hyphen), so the echo should work correctly.
6412 lt_compile=`echo "$ac_compile" | $SED \
6413 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6415 -e 's:$: $lt_compiler_flag:'`
John Criswell5fbb1f82004-09-24 13:28:51 +00006416 (eval echo "\"\$as_me:6416: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006417 (eval "$lt_compile" 2>out/conftest.err)
6418 ac_status=$?
6419 cat out/conftest.err >&5
John Criswell5fbb1f82004-09-24 13:28:51 +00006420 echo "$as_me:6420: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6422 then
6423 # The compiler can only warn and ignore the option if not recognized
6424 # So say no if there are warnings
6425 if test ! -s out/conftest.err; then
6426 lt_cv_prog_compiler_c_o=yes
6427 fi
6428 fi
6429 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +00006430 $rm conftest*
6431 # SGI C++ compiler will create directory out/ii_files/ for
6432 # template instantiation
6433 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6434 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +00006435 cd ..
6436 rmdir conftest
6437 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006438
6439fi
John Criswell47fdd832003-07-14 16:52:07 +00006440echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6441echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006442
John Criswell7a73b802003-06-30 21:59:07 +00006443
John Criswell7a73b802003-06-30 21:59:07 +00006444hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006445if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006446 # do not overwrite the value of need_locks provided by the user
6447 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6448echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6449 hard_links=yes
6450 $rm conftest*
6451 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6452 touch conftest.a
6453 ln conftest.a conftest.b 2>&5 || hard_links=no
6454 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6455 echo "$as_me:$LINENO: result: $hard_links" >&5
6456echo "${ECHO_T}$hard_links" >&6
6457 if test "$hard_links" = no; then
6458 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6459echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6460 need_locks=warn
6461 fi
6462else
6463 need_locks=no
6464fi
John Criswell7a73b802003-06-30 21:59:07 +00006465
John Criswell47fdd832003-07-14 16:52:07 +00006466echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6467echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6468
6469 runpath_var=
6470 allow_undefined_flag=
6471 enable_shared_with_static_runtimes=no
6472 archive_cmds=
6473 archive_expsym_cmds=
6474 old_archive_From_new_cmds=
6475 old_archive_from_expsyms_cmds=
6476 export_dynamic_flag_spec=
6477 whole_archive_flag_spec=
6478 thread_safe_flag_spec=
6479 hardcode_libdir_flag_spec=
6480 hardcode_libdir_flag_spec_ld=
6481 hardcode_libdir_separator=
6482 hardcode_direct=no
6483 hardcode_minus_L=no
6484 hardcode_shlibpath_var=unsupported
6485 link_all_deplibs=unknown
6486 hardcode_automatic=no
6487 module_cmds=
6488 module_expsym_cmds=
6489 always_export_symbols=no
6490 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6491 # include_expsyms should be a list of space-separated symbols to be *always*
6492 # included in the symbol list
6493 include_expsyms=
6494 # exclude_expsyms can be an extended regexp of symbols to exclude
6495 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6496 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6497 # as well as any symbol that contains `d'.
6498 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6499 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6500 # platforms (ab)use it in PIC code, but their linkers get confused if
6501 # the symbol is explicitly referenced. Since portable code cannot
6502 # rely on this symbol name, it's probably fine to never include it in
6503 # preloaded symbol tables.
6504 extract_expsyms_cmds=
6505
6506 case $host_os in
6507 cygwin* | mingw* | pw32*)
6508 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6509 # When not using gcc, we currently assume that we are using
6510 # Microsoft Visual C++.
6511 if test "$GCC" != yes; then
6512 with_gnu_ld=no
6513 fi
6514 ;;
6515 openbsd*)
6516 with_gnu_ld=no
6517 ;;
6518 esac
6519
6520 ld_shlibs=yes
6521 if test "$with_gnu_ld" = yes; then
6522 # If archive_cmds runs LD, not CC, wlarc should be empty
6523 wlarc='${wl}'
6524
6525 # See if GNU ld supports shared libraries.
6526 case $host_os in
6527 aix3* | aix4* | aix5*)
6528 # On AIX/PPC, the GNU linker is very broken
6529 if test "$host_cpu" != ia64; then
6530 ld_shlibs=no
6531 cat <<EOF 1>&2
6532
6533*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6534*** to be unable to reliably create shared libraries on AIX.
6535*** Therefore, libtool is disabling shared libraries support. If you
6536*** really care for shared libraries, you may want to modify your PATH
6537*** so that a non-GNU linker is found, and then restart.
6538
6539EOF
6540 fi
6541 ;;
6542
6543 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00006544 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 +00006545 hardcode_libdir_flag_spec='-L$libdir'
6546 hardcode_minus_L=yes
6547
6548 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6549 # that the semantics of dynamic libraries on AmigaOS, at least up
6550 # to version 4, is to share data among multiple programs linked
6551 # with the same dynamic library. Since this doesn't match the
6552 # behavior of shared libraries on other platforms, we can't use
6553 # them.
6554 ld_shlibs=no
6555 ;;
6556
6557 beos*)
6558 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6559 allow_undefined_flag=unsupported
6560 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6561 # support --undefined. This deserves some investigation. FIXME
6562 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6563 else
6564 ld_shlibs=no
6565 fi
6566 ;;
6567
6568 cygwin* | mingw* | pw32*)
6569 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6570 # as there is no search path for DLLs.
6571 hardcode_libdir_flag_spec='-L$libdir'
6572 allow_undefined_flag=unsupported
6573 always_export_symbols=no
6574 enable_shared_with_static_runtimes=yes
6575 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6576
6577 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6578 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6579 # If the export-symbols file already is a .def file (1st line
6580 # is EXPORTS), use it as is; otherwise, prepend...
6581 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6582 cp $export_symbols $output_objdir/$soname.def;
6583 else
6584 echo EXPORTS > $output_objdir/$soname.def;
6585 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006586 fi;$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 +00006587 else
6588 ld_shlibs=no
6589 fi
6590 ;;
6591
6592 netbsd*)
6593 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6594 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6595 wlarc=
6596 else
6597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6598 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6599 fi
6600 ;;
6601
6602 solaris* | sysv5*)
6603 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6604 ld_shlibs=no
6605 cat <<EOF 1>&2
6606
6607*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6608*** create shared libraries on Solaris systems. Therefore, libtool
6609*** is disabling shared libraries support. We urge you to upgrade GNU
6610*** binutils to release 2.9.1 or newer. Another option is to modify
6611*** your PATH or compiler configuration so that the native linker is
6612*** used, and then restart.
6613
6614EOF
6615 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6616 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6617 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6618 else
6619 ld_shlibs=no
6620 fi
6621 ;;
6622
6623 sunos4*)
6624 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6625 wlarc=
6626 hardcode_direct=yes
6627 hardcode_shlibpath_var=no
6628 ;;
6629
Reid Spencer2706f8c2004-09-19 23:53:36 +00006630 linux*)
6631 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6632 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6633 archive_cmds="$tmp_archive_cmds"
6634 supports_anon_versioning=no
6635 case `$LD -v 2>/dev/null` in
6636 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6637 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6638 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6639 *\ 2.11.*) ;; # other 2.11 versions
6640 *) supports_anon_versioning=yes ;;
6641 esac
6642 if test $supports_anon_versioning = yes; then
6643 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
6644 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6645 else
6646 archive_expsym_cmds="$tmp_archive_cmds"
6647 fi
6648 else
6649 ld_shlibs=no
6650 fi
6651 ;;
6652
John Criswell47fdd832003-07-14 16:52:07 +00006653 *)
6654 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6655 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6656 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6657 else
6658 ld_shlibs=no
6659 fi
6660 ;;
6661 esac
6662
6663 if test "$ld_shlibs" = yes; then
6664 runpath_var=LD_RUN_PATH
6665 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6666 export_dynamic_flag_spec='${wl}--export-dynamic'
6667 # ancient GNU ld didn't support --whole-archive et. al.
6668 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6669 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6670 else
6671 whole_archive_flag_spec=
6672 fi
6673 fi
6674 else
6675 # PORTME fill in a description of your system's linker (not GNU ld)
6676 case $host_os in
6677 aix3*)
6678 allow_undefined_flag=unsupported
6679 always_export_symbols=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +00006680 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 +00006681 # Note: this linker hardcodes the directories in LIBPATH if there
6682 # are no directories specified by -L.
6683 hardcode_minus_L=yes
6684 if test "$GCC" = yes && test -z "$link_static_flag"; then
6685 # Neither direct hardcoding nor static linking is supported with a
6686 # broken collect2.
6687 hardcode_direct=unsupported
6688 fi
6689 ;;
6690
6691 aix4* | aix5*)
6692 if test "$host_cpu" = ia64; then
6693 # On IA64, the linker does run time linking by default, so we don't
6694 # have to do anything special.
6695 aix_use_runtimelinking=no
6696 exp_sym_flag='-Bexport'
6697 no_entry_flag=""
6698 else
6699 # If we're using GNU nm, then we don't want the "-C" option.
6700 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6701 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6702 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'
6703 else
6704 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'
6705 fi
6706 aix_use_runtimelinking=no
6707
6708 # Test if we are trying to use run time linking or normal
6709 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6710 # need to do runtime linking.
6711 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6712 for ld_flag in $LDFLAGS; do
6713 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6714 aix_use_runtimelinking=yes
6715 break
6716 fi
6717 done
6718 esac
6719
6720 exp_sym_flag='-bexport'
6721 no_entry_flag='-bnoentry'
6722 fi
6723
6724 # When large executables or shared objects are built, AIX ld can
6725 # have problems creating the table of contents. If linking a library
6726 # or program results in "error TOC overflow" add -mminimal-toc to
6727 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6728 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6729
6730 archive_cmds=''
6731 hardcode_direct=yes
6732 hardcode_libdir_separator=':'
6733 link_all_deplibs=yes
6734
6735 if test "$GCC" = yes; then
6736 case $host_os in aix4.012|aix4.012.*)
6737 # We only want to do this on AIX 4.2 and lower, the check
6738 # below for broken collect2 doesn't work under 4.3+
6739 collect2name=`${CC} -print-prog-name=collect2`
6740 if test -f "$collect2name" && \
6741 strings "$collect2name" | grep resolve_lib_name >/dev/null
6742 then
6743 # We have reworked collect2
6744 hardcode_direct=yes
6745 else
6746 # We have old collect2
6747 hardcode_direct=unsupported
6748 # It fails to find uninstalled libraries when the uninstalled
6749 # path is not listed in the libpath. Setting hardcode_minus_L
6750 # to unsupported forces relinking
6751 hardcode_minus_L=yes
6752 hardcode_libdir_flag_spec='-L$libdir'
6753 hardcode_libdir_separator=
6754 fi
6755 esac
6756 shared_flag='-shared'
6757 else
6758 # not using gcc
6759 if test "$host_cpu" = ia64; then
6760 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6761 # chokes on -Wl,-G. The following line is correct:
6762 shared_flag='-G'
6763 else
6764 if test "$aix_use_runtimelinking" = yes; then
6765 shared_flag='${wl}-G'
6766 else
6767 shared_flag='${wl}-bM:SRE'
6768 fi
6769 fi
6770 fi
6771
6772 # It seems that -bexpall does not export symbols beginning with
6773 # underscore (_), so it is better to generate a list of symbols to export.
6774 always_export_symbols=yes
6775 if test "$aix_use_runtimelinking" = yes; then
6776 # Warning - without using the other runtime loading flags (-brtl),
6777 # -berok will link without error, but may produce a broken library.
6778 allow_undefined_flag='-berok'
6779 # Determine the default libpath from the value encoded in an empty executable.
6780 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006781/* confdefs.h. */
6782_ACEOF
6783cat confdefs.h >>conftest.$ac_ext
6784cat >>conftest.$ac_ext <<_ACEOF
6785/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006786
John Criswell7a73b802003-06-30 21:59:07 +00006787int
6788main ()
6789{
John Criswell47fdd832003-07-14 16:52:07 +00006790
John Criswell7a73b802003-06-30 21:59:07 +00006791 ;
6792 return 0;
6793}
6794_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006795rm -f conftest.$ac_objext conftest$ac_exeext
6796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006797 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006798 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006799 grep -v '^ *+' conftest.er1 >conftest.err
6800 rm -f conftest.er1
6801 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6803 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006804 { ac_try='test -z "$ac_c_werror_flag"
6805 || test ! -s conftest.err'
6806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6807 (eval $ac_try) 2>&5
6808 ac_status=$?
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); }; } &&
6811 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6813 (eval $ac_try) 2>&5
6814 ac_status=$?
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006817
John Criswell47fdd832003-07-14 16:52:07 +00006818aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6819}'`
6820# Check for a 64-bit object if we didn't find anything.
6821if 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; }
6822}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006823else
6824 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006825sed 's/^/| /' conftest.$ac_ext >&5
6826
John Criswell7a73b802003-06-30 21:59:07 +00006827fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006828rm -f conftest.err conftest.$ac_objext \
6829 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006830if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006831
John Criswell47fdd832003-07-14 16:52:07 +00006832 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6833 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"
6834 else
6835 if test "$host_cpu" = ia64; then
6836 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6837 allow_undefined_flag="-z nodefs"
6838 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"
6839 else
6840 # Determine the default libpath from the value encoded in an empty executable.
6841 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006842/* confdefs.h. */
6843_ACEOF
6844cat confdefs.h >>conftest.$ac_ext
6845cat >>conftest.$ac_ext <<_ACEOF
6846/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006847
John Criswell47fdd832003-07-14 16:52:07 +00006848int
6849main ()
6850{
John Criswell7a73b802003-06-30 21:59:07 +00006851
John Criswell47fdd832003-07-14 16:52:07 +00006852 ;
6853 return 0;
6854}
6855_ACEOF
6856rm -f conftest.$ac_objext conftest$ac_exeext
6857if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006858 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00006859 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006860 grep -v '^ *+' conftest.er1 >conftest.err
6861 rm -f conftest.er1
6862 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00006863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6864 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006865 { ac_try='test -z "$ac_c_werror_flag"
6866 || test ! -s conftest.err'
6867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6868 (eval $ac_try) 2>&5
6869 ac_status=$?
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }; } &&
6872 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6874 (eval $ac_try) 2>&5
6875 ac_status=$?
6876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6877 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006878
John Criswell47fdd832003-07-14 16:52:07 +00006879aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6880}'`
6881# Check for a 64-bit object if we didn't find anything.
6882if 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; }
6883}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006884else
John Criswell47fdd832003-07-14 16:52:07 +00006885 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006886sed 's/^/| /' conftest.$ac_ext >&5
6887
John Criswell47fdd832003-07-14 16:52:07 +00006888fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006889rm -f conftest.err conftest.$ac_objext \
6890 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006891if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006892
John Criswell47fdd832003-07-14 16:52:07 +00006893 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6894 # Warning - without using the other run time loading flags,
6895 # -berok will link without error, but may produce a broken library.
6896 no_undefined_flag=' ${wl}-bernotok'
6897 allow_undefined_flag=' ${wl}-berok'
6898 # -bexpall does not export symbols beginning with underscore (_)
6899 always_export_symbols=yes
6900 # Exported symbols can be pulled into shared objects from archives
6901 whole_archive_flag_spec=' '
6902 archive_cmds_need_lc=yes
6903 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +00006904 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 +00006905 fi
6906 fi
John Criswell7a73b802003-06-30 21:59:07 +00006907 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006908
6909 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00006910 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 +00006911 hardcode_libdir_flag_spec='-L$libdir'
6912 hardcode_minus_L=yes
6913 # see comment about different semantics on the GNU ld section
6914 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006915 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006916
Reid Spencer2706f8c2004-09-19 23:53:36 +00006917 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +00006918 export_dynamic_flag_spec=-rdynamic
6919 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006920
John Criswell47fdd832003-07-14 16:52:07 +00006921 cygwin* | mingw* | pw32*)
6922 # When not using gcc, we currently assume that we are using
6923 # Microsoft Visual C++.
6924 # hardcode_libdir_flag_spec is actually meaningless, as there is
6925 # no search path for DLLs.
6926 hardcode_libdir_flag_spec=' '
6927 allow_undefined_flag=unsupported
6928 # Tell ltmain to make .lib files, not .a files.
6929 libext=lib
6930 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +00006931 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +00006932 # FIXME: Setting linknames here is a bad hack.
Reid Spencer2706f8c2004-09-19 23:53:36 +00006933 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
John Criswell47fdd832003-07-14 16:52:07 +00006934 # The linker will automatically build a .lib file if we build a DLL.
6935 old_archive_From_new_cmds='true'
6936 # FIXME: Should let the user specify the lib program.
6937 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6938 fix_srcfile_path='`cygpath -w "$srcfile"`'
6939 enable_shared_with_static_runtimes=yes
6940 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006941
John Criswell47fdd832003-07-14 16:52:07 +00006942 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +00006943 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +00006944 rhapsody* | darwin1.[012])
6945 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6946 ;;
6947 *) # Darwin 1.3 on
6948 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6949 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6950 else
6951 case ${MACOSX_DEPLOYMENT_TARGET} in
6952 10.[012])
6953 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6954 ;;
6955 10.*)
6956 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6957 ;;
6958 esac
6959 fi
6960 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006961 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00006962 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +00006963 hardcode_direct=no
6964 hardcode_automatic=yes
6965 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +00006966 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +00006967 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +00006968 if test "$GCC" = yes ; then
6969 output_verbose_link_cmd='echo'
6970 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6971 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6972 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6973 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}'
6974 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}'
6975 else
6976 case "$cc_basename" in
6977 xlc*)
6978 output_verbose_link_cmd='echo'
6979 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6980 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6981 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6982 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}'
6983 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}'
6984 ;;
6985 *)
6986 ld_shlibs=no
6987 ;;
6988 esac
John Criswell7a73b802003-06-30 21:59:07 +00006989 fi
John Criswell47fdd832003-07-14 16:52:07 +00006990 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006991
John Criswell47fdd832003-07-14 16:52:07 +00006992 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006994 hardcode_libdir_flag_spec='-L$libdir'
6995 hardcode_shlibpath_var=no
6996 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006997
John Criswell47fdd832003-07-14 16:52:07 +00006998 freebsd1*)
6999 ld_shlibs=no
7000 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007001
John Criswell47fdd832003-07-14 16:52:07 +00007002 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7003 # support. Future versions do this automatically, but an explicit c++rt0.o
7004 # does not break anything, and helps significantly (at the cost of a little
7005 # extra space).
7006 freebsd2.2*)
7007 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7008 hardcode_libdir_flag_spec='-R$libdir'
7009 hardcode_direct=yes
7010 hardcode_shlibpath_var=no
7011 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007012
John Criswell47fdd832003-07-14 16:52:07 +00007013 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7014 freebsd2*)
7015 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7016 hardcode_direct=yes
7017 hardcode_minus_L=yes
7018 hardcode_shlibpath_var=no
7019 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007020
John Criswell47fdd832003-07-14 16:52:07 +00007021 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007022 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00007023 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7024 hardcode_libdir_flag_spec='-R$libdir'
7025 hardcode_direct=yes
7026 hardcode_shlibpath_var=no
7027 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007028
John Criswell47fdd832003-07-14 16:52:07 +00007029 hpux9*)
7030 if test "$GCC" = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00007031 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 +00007032 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00007033 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 +00007034 fi
7035 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7036 hardcode_libdir_separator=:
7037 hardcode_direct=yes
7038
7039 # hardcode_minus_L: Not really in the search PATH,
7040 # but as the default location of the library.
7041 hardcode_minus_L=yes
7042 export_dynamic_flag_spec='${wl}-E'
7043 ;;
7044
7045 hpux10* | hpux11*)
7046 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7047 case "$host_cpu" in
7048 hppa*64*|ia64*)
7049 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7050 ;;
7051 *)
7052 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7053 ;;
7054 esac
7055 else
7056 case "$host_cpu" in
7057 hppa*64*|ia64*)
7058 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7059 ;;
7060 *)
7061 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7062 ;;
7063 esac
7064 fi
7065 if test "$with_gnu_ld" = no; then
7066 case "$host_cpu" in
7067 hppa*64*)
7068 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7069 hardcode_libdir_flag_spec_ld='+b $libdir'
7070 hardcode_libdir_separator=:
7071 hardcode_direct=no
7072 hardcode_shlibpath_var=no
7073 ;;
7074 ia64*)
7075 hardcode_libdir_flag_spec='-L$libdir'
7076 hardcode_direct=no
7077 hardcode_shlibpath_var=no
7078
7079 # hardcode_minus_L: Not really in the search PATH,
7080 # but as the default location of the library.
7081 hardcode_minus_L=yes
7082 ;;
7083 *)
7084 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7085 hardcode_libdir_separator=:
7086 hardcode_direct=yes
7087 export_dynamic_flag_spec='${wl}-E'
7088
7089 # hardcode_minus_L: Not really in the search PATH,
7090 # but as the default location of the library.
7091 hardcode_minus_L=yes
7092 ;;
7093 esac
7094 fi
7095 ;;
7096
7097 irix5* | irix6* | nonstopux*)
7098 if test "$GCC" = yes; then
7099 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'
7100 else
7101 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'
7102 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7103 fi
7104 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7105 hardcode_libdir_separator=:
7106 link_all_deplibs=yes
7107 ;;
7108
7109 netbsd*)
7110 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7111 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7112 else
7113 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7114 fi
7115 hardcode_libdir_flag_spec='-R$libdir'
7116 hardcode_direct=yes
7117 hardcode_shlibpath_var=no
7118 ;;
7119
7120 newsos6)
7121 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7122 hardcode_direct=yes
7123 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7124 hardcode_libdir_separator=:
7125 hardcode_shlibpath_var=no
7126 ;;
7127
7128 openbsd*)
7129 hardcode_direct=yes
7130 hardcode_shlibpath_var=no
7131 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7132 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007133 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 +00007134 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7135 export_dynamic_flag_spec='${wl}-E'
7136 else
7137 case $host_os in
7138 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7139 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7140 hardcode_libdir_flag_spec='-R$libdir'
7141 ;;
7142 *)
7143 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7144 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7145 ;;
7146 esac
7147 fi
7148 ;;
7149
7150 os2*)
7151 hardcode_libdir_flag_spec='-L$libdir'
7152 hardcode_minus_L=yes
7153 allow_undefined_flag=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +00007154 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 +00007155 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7156 ;;
7157
7158 osf3*)
7159 if test "$GCC" = yes; then
7160 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7161 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'
7162 else
7163 allow_undefined_flag=' -expect_unresolved \*'
7164 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'
7165 fi
7166 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7167 hardcode_libdir_separator=:
7168 ;;
7169
7170 osf4* | osf5*) # as osf3* with the addition of -msym flag
7171 if test "$GCC" = yes; then
7172 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7173 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'
7174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7175 else
7176 allow_undefined_flag=' -expect_unresolved \*'
7177 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 Spencer2706f8c2004-09-19 23:53:36 +00007178 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp; $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'
John Criswell47fdd832003-07-14 16:52:07 +00007179 # Both c and cxx compiler support -rpath directly
7180 hardcode_libdir_flag_spec='-rpath $libdir'
7181 fi
7182 hardcode_libdir_separator=:
7183 ;;
7184
7185 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007186 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7187 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007188 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007189 runpath_var=LD_RUN_PATH
7190 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007191 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007192
John Criswell47fdd832003-07-14 16:52:07 +00007193 solaris*)
7194 no_undefined_flag=' -z text'
7195 if test "$GCC" = yes; then
7196 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007197 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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 +00007198 else
7199 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007200 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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 +00007201 fi
7202 hardcode_libdir_flag_spec='-R$libdir'
7203 hardcode_shlibpath_var=no
7204 case $host_os in
7205 solaris2.[0-5] | solaris2.[0-5].*) ;;
7206 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7207 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7208 esac
7209 link_all_deplibs=yes
7210 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007211
John Criswell47fdd832003-07-14 16:52:07 +00007212 sunos4*)
7213 if test "x$host_vendor" = xsequent; then
7214 # Use $CC to link under sequent, because it throws in some extra .o
7215 # files that make .init and .fini sections work.
7216 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7217 else
7218 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7219 fi
7220 hardcode_libdir_flag_spec='-L$libdir'
7221 hardcode_direct=yes
7222 hardcode_minus_L=yes
7223 hardcode_shlibpath_var=no
7224 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007225
John Criswell47fdd832003-07-14 16:52:07 +00007226 sysv4)
7227 case $host_vendor in
7228 sni)
7229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7230 hardcode_direct=yes # is this really true???
7231 ;;
7232 siemens)
7233 ## LD is ld it makes a PLAMLIB
7234 ## CC just makes a GrossModule.
7235 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7236 reload_cmds='$CC -r -o $output$reload_objs'
7237 hardcode_direct=no
7238 ;;
7239 motorola)
7240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7241 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7242 ;;
7243 esac
7244 runpath_var='LD_RUN_PATH'
7245 hardcode_shlibpath_var=no
7246 ;;
7247
7248 sysv4.3*)
7249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7250 hardcode_shlibpath_var=no
7251 export_dynamic_flag_spec='-Bexport'
7252 ;;
7253
7254 sysv4*MP*)
7255 if test -d /usr/nec; then
7256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7257 hardcode_shlibpath_var=no
7258 runpath_var=LD_RUN_PATH
7259 hardcode_runpath_var=yes
7260 ld_shlibs=yes
7261 fi
7262 ;;
7263
7264 sysv4.2uw2*)
7265 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7266 hardcode_direct=yes
7267 hardcode_minus_L=no
7268 hardcode_shlibpath_var=no
7269 hardcode_runpath_var=yes
7270 runpath_var=LD_RUN_PATH
7271 ;;
7272
7273 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7274 no_undefined_flag='${wl}-z ${wl}text'
7275 if test "$GCC" = yes; then
7276 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7277 else
7278 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7279 fi
7280 runpath_var='LD_RUN_PATH'
7281 hardcode_shlibpath_var=no
7282 ;;
7283
7284 sysv5*)
7285 no_undefined_flag=' -z text'
7286 # $CC -shared without GNU ld will not create a library from C++
7287 # object files and a static libstdc++, better avoid it by now
7288 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007289 archive_expsym_cmds='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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 +00007290 hardcode_libdir_flag_spec=
7291 hardcode_shlibpath_var=no
7292 runpath_var='LD_RUN_PATH'
7293 ;;
7294
7295 uts4*)
7296 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7297 hardcode_libdir_flag_spec='-L$libdir'
7298 hardcode_shlibpath_var=no
7299 ;;
7300
7301 *)
7302 ld_shlibs=no
7303 ;;
7304 esac
7305 fi
7306
John Criswell7a73b802003-06-30 21:59:07 +00007307echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7308echo "${ECHO_T}$ld_shlibs" >&6
7309test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007310
John Criswell47fdd832003-07-14 16:52:07 +00007311variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7312if test "$GCC" = yes; then
7313 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7314fi
7315
7316#
7317# Do we need to explicitly link libc?
7318#
7319case "x$archive_cmds_need_lc" in
7320x|xyes)
7321 # Assume -lc should be added
7322 archive_cmds_need_lc=yes
7323
7324 if test "$enable_shared" = yes && test "$GCC" = yes; then
7325 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +00007326 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +00007327 # FIXME: we may have to deal with multi-command sequences.
7328 ;;
7329 '$CC '*)
7330 # Test whether the compiler implicitly links with -lc since on some
7331 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7332 # to ld, don't add -lc before -lgcc.
7333 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7334echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7335 $rm conftest*
7336 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7337
7338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7339 (eval $ac_compile) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } 2>conftest.err; then
7343 soname=conftest
7344 lib=conftest
7345 libobjs=conftest.$ac_objext
7346 deplibs=
7347 wl=$lt_prog_compiler_wl
7348 compiler_flags=-v
7349 linker_flags=-v
7350 verstring=
7351 output_objdir=.
7352 libname=conftest
7353 lt_save_allow_undefined_flag=$allow_undefined_flag
7354 allow_undefined_flag=
7355 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7356 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7357 ac_status=$?
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); }
7360 then
7361 archive_cmds_need_lc=no
7362 else
7363 archive_cmds_need_lc=yes
7364 fi
7365 allow_undefined_flag=$lt_save_allow_undefined_flag
7366 else
7367 cat conftest.err 1>&5
7368 fi
7369 $rm conftest*
7370 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7371echo "${ECHO_T}$archive_cmds_need_lc" >&6
7372 ;;
7373 esac
7374 fi
7375 ;;
7376esac
7377
John Criswell7a73b802003-06-30 21:59:07 +00007378echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7379echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7380library_names_spec=
7381libname_spec='lib$name'
7382soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +00007383shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007384postinstall_cmds=
7385postuninstall_cmds=
7386finish_cmds=
7387finish_eval=
7388shlibpath_var=
7389shlibpath_overrides_runpath=unknown
7390version_type=none
7391dynamic_linker="$host_os ld.so"
7392sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007393if test "$GCC" = yes; then
7394 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7395 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7396 # if the path contains ";" then we assume it to be the separator
7397 # otherwise default to the standard path separator (i.e. ":") - it is
7398 # assumed that no part of a normal pathname contains ";" but that should
7399 # okay in the real world where ";" in dirpaths is itself problematic.
7400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7401 else
7402 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7403 fi
7404else
7405 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7406fi
7407need_lib_prefix=unknown
7408hardcode_into_libs=no
7409
7410# when you set need_version to no, make sure it does not cause -set_version
7411# flags to be left without arguments
7412need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007413
7414case $host_os in
7415aix3*)
7416 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007417 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007418 shlibpath_var=LIBPATH
7419
John Criswell47fdd832003-07-14 16:52:07 +00007420 # AIX 3 has no versioning support, so we append a major version to the name.
7421 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007422 ;;
7423
7424aix4* | aix5*)
7425 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007426 need_lib_prefix=no
7427 need_version=no
7428 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007429 if test "$host_cpu" = ia64; then
7430 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007431 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007432 shlibpath_var=LD_LIBRARY_PATH
7433 else
7434 # With GCC up to 2.95.x, collect2 would create an import file
7435 # for dependence libraries. The import file would start with
7436 # the line `#! .'. This would cause the generated library to
7437 # depend on `.', always an invalid library. This was fixed in
7438 # development snapshots of GCC prior to 3.0.
7439 case $host_os in
7440 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007441 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7442 echo ' yes '
7443 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7444 :
7445 else
7446 can_build_shared=no
7447 fi
7448 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007449 esac
John Criswell47fdd832003-07-14 16:52:07 +00007450 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7451 # soname into executable. Probably we can add versioning support to
7452 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007453 if test "$aix_use_runtimelinking" = yes; then
7454 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7455 # instead of lib<name>.a to let people know that these are not
7456 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007458 else
7459 # We preserve .a as extension for shared libraries through AIX4.2
7460 # and later when we are not doing run time linking.
7461 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007462 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007463 fi
7464 shlibpath_var=LIBPATH
7465 fi
7466 ;;
7467
7468amigaos*)
7469 library_names_spec='$libname.ixlibrary $libname.a'
7470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007471 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 +00007472 ;;
7473
7474beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007475 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007476 dynamic_linker="$host_os ld.so"
7477 shlibpath_var=LIBRARY_PATH
7478 ;;
7479
Reid Spencer2706f8c2004-09-19 23:53:36 +00007480bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00007481 version_type=linux
7482 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7484 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007485 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7486 shlibpath_var=LD_LIBRARY_PATH
7487 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7488 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007489 # the default ld.so.conf also contains /usr/contrib/lib and
7490 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7491 # libtool to hard-code these into programs
7492 ;;
7493
7494cygwin* | mingw* | pw32*)
7495 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +00007496 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007497 need_version=no
7498 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007499
John Criswell7a73b802003-06-30 21:59:07 +00007500 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007501 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007502 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007503 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer2706f8c2004-09-19 23:53:36 +00007504 postinstall_cmds='base_file=`basename \${file}`;
7505 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
7506 dldir=$destdir/`dirname \$dlpath`;
7507 test -d \$dldir || mkdir -p \$dldir;
John Criswell47fdd832003-07-14 16:52:07 +00007508 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
7510 dlpath=$dir/\$dldll;
John Criswell7a73b802003-06-30 21:59:07 +00007511 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007512 shlibpath_overrides_runpath=yes
7513
7514 case $host_os in
7515 cygwin*)
7516 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7517 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 +00007518 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007519 ;;
7520 mingw*)
7521 # MinGW DLLs use traditional 'lib' prefix
7522 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7523 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7524 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7525 # It is most probably a Windows format PATH printed by
7526 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7527 # path with ; separators, and with drive letters. We can handle the
7528 # drive letters (cygwin fileutils understands them), so leave them,
7529 # especially as we might pass files found there to a mingw objdump,
7530 # which wouldn't understand a cygwinified path. Ahh.
7531 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7532 else
7533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7534 fi
7535 ;;
7536 pw32*)
7537 # pw32 DLLs use 'pw' prefix rather than 'lib'
7538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7539 ;;
7540 esac
John Criswell7a73b802003-06-30 21:59:07 +00007541 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007542
John Criswell7a73b802003-06-30 21:59:07 +00007543 *)
John Criswell47fdd832003-07-14 16:52:07 +00007544 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007545 ;;
7546 esac
7547 dynamic_linker='Win32 ld.exe'
7548 # FIXME: first we should search . and the directory the executable is in
7549 shlibpath_var=PATH
7550 ;;
7551
7552darwin* | rhapsody*)
7553 dynamic_linker="$host_os dyld"
7554 version_type=darwin
7555 need_lib_prefix=no
7556 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +00007557 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +00007558 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007559 shlibpath_overrides_runpath=yes
7560 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +00007561 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +00007562 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007563 if test "$GCC" = yes; then
7564 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"`
7565 else
7566 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +00007567 fi
7568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7569 ;;
7570
7571dgux*)
7572 version_type=linux
7573 need_lib_prefix=no
7574 need_version=no
7575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7576 soname_spec='${libname}${release}${shared_ext}$major'
7577 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007578 ;;
7579
7580freebsd1*)
7581 dynamic_linker=no
7582 ;;
7583
Reid Spencer2706f8c2004-09-19 23:53:36 +00007584kfreebsd*-gnu)
7585 version_type=linux
7586 need_lib_prefix=no
7587 need_version=no
7588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7589 soname_spec='${libname}${release}${shared_ext}$major'
7590 shlibpath_var=LD_LIBRARY_PATH
7591 shlibpath_overrides_runpath=no
7592 hardcode_into_libs=yes
7593 dynamic_linker='GNU ld.so'
7594 ;;
7595
John Criswell7a73b802003-06-30 21:59:07 +00007596freebsd*)
7597 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7598 version_type=freebsd-$objformat
7599 case $version_type in
7600 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007602 need_version=no
7603 need_lib_prefix=no
7604 ;;
7605 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007606 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007607 need_version=yes
7608 ;;
7609 esac
7610 shlibpath_var=LD_LIBRARY_PATH
7611 case $host_os in
7612 freebsd2*)
7613 shlibpath_overrides_runpath=yes
7614 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007615 freebsd3.01* | freebsdelf3.01*)
7616 shlibpath_overrides_runpath=yes
7617 hardcode_into_libs=yes
7618 ;;
7619 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007620 shlibpath_overrides_runpath=no
7621 hardcode_into_libs=yes
7622 ;;
7623 esac
7624 ;;
7625
7626gnu*)
7627 version_type=linux
7628 need_lib_prefix=no
7629 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7631 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007632 shlibpath_var=LD_LIBRARY_PATH
7633 hardcode_into_libs=yes
7634 ;;
7635
7636hpux9* | hpux10* | hpux11*)
7637 # Give a soname corresponding to the major version so that dld.sl refuses to
7638 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007639 version_type=sunos
7640 need_lib_prefix=no
7641 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007642 case "$host_cpu" in
7643 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007644 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +00007645 hardcode_into_libs=yes
7646 dynamic_linker="$host_os dld.so"
7647 shlibpath_var=LD_LIBRARY_PATH
7648 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7650 soname_spec='${libname}${release}${shared_ext}$major'
7651 if test "X$HPUX_IA64_MODE" = X32; then
7652 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7653 else
7654 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7655 fi
7656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7657 ;;
7658 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007659 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00007660 hardcode_into_libs=yes
7661 dynamic_linker="$host_os dld.sl"
7662 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7663 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7665 soname_spec='${libname}${release}${shared_ext}$major'
7666 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7667 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7668 ;;
7669 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007670 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00007671 dynamic_linker="$host_os dld.sl"
7672 shlibpath_var=SHLIB_PATH
7673 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7675 soname_spec='${libname}${release}${shared_ext}$major'
7676 ;;
7677 esac
John Criswell7a73b802003-06-30 21:59:07 +00007678 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7679 postinstall_cmds='chmod 555 $lib'
7680 ;;
7681
John Criswell47fdd832003-07-14 16:52:07 +00007682irix5* | irix6* | nonstopux*)
7683 case $host_os in
7684 nonstopux*) version_type=nonstopux ;;
7685 *)
7686 if test "$lt_cv_prog_gnu_ld" = yes; then
7687 version_type=linux
7688 else
7689 version_type=irix
7690 fi ;;
7691 esac
John Criswell7a73b802003-06-30 21:59:07 +00007692 need_lib_prefix=no
7693 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007694 soname_spec='${libname}${release}${shared_ext}$major'
7695 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 +00007696 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007697 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007698 libsuff= shlibsuff=
7699 ;;
7700 *)
7701 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007702 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7703 libsuff= shlibsuff= libmagic=32-bit;;
7704 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7705 libsuff=32 shlibsuff=N32 libmagic=N32;;
7706 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7707 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007708 *) libsuff= shlibsuff= libmagic=never-match;;
7709 esac
7710 ;;
7711 esac
7712 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7713 shlibpath_overrides_runpath=no
7714 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7715 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007716 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007717 ;;
7718
7719# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007720linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007721 dynamic_linker=no
7722 ;;
7723
7724# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007725linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007726 version_type=linux
7727 need_lib_prefix=no
7728 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7730 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007731 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7732 shlibpath_var=LD_LIBRARY_PATH
7733 shlibpath_overrides_runpath=no
7734 # This implies no fast_install, which is unacceptable.
7735 # Some rework will be needed to allow for fast_install
7736 # before this can be enabled.
7737 hardcode_into_libs=yes
7738
Reid Spencer2706f8c2004-09-19 23:53:36 +00007739 # Append ld.so.conf contents to the search path
7740 if test -f /etc/ld.so.conf; then
7741 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7742 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7743 fi
7744
John Criswell7a73b802003-06-30 21:59:07 +00007745 # We used to test for /lib/ld.so.1 and disable shared libraries on
7746 # powerpc, because MkLinux only supported shared libraries with the
7747 # GNU dynamic linker. Since this was broken with cross compilers,
7748 # most powerpc-linux boxes support dynamic linking these days and
7749 # people can always --disable-shared, the test was removed, and we
7750 # assume the GNU/Linux dynamic linker is in use.
7751 dynamic_linker='GNU/Linux ld.so'
7752 ;;
7753
Reid Spencer2706f8c2004-09-19 23:53:36 +00007754knetbsd*-gnu)
7755 version_type=linux
7756 need_lib_prefix=no
7757 need_version=no
7758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7759 soname_spec='${libname}${release}${shared_ext}$major'
7760 shlibpath_var=LD_LIBRARY_PATH
7761 shlibpath_overrides_runpath=no
7762 hardcode_into_libs=yes
7763 dynamic_linker='GNU ld.so'
7764 ;;
7765
John Criswell7a73b802003-06-30 21:59:07 +00007766netbsd*)
7767 version_type=sunos
7768 need_lib_prefix=no
7769 need_version=no
7770 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007772 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7773 dynamic_linker='NetBSD (a.out) ld.so'
7774 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00007775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +00007776 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007777 dynamic_linker='NetBSD ld.elf_so'
7778 fi
7779 shlibpath_var=LD_LIBRARY_PATH
7780 shlibpath_overrides_runpath=yes
7781 hardcode_into_libs=yes
7782 ;;
7783
7784newsos6)
7785 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7787 shlibpath_var=LD_LIBRARY_PATH
7788 shlibpath_overrides_runpath=yes
7789 ;;
7790
Reid Spencer2706f8c2004-09-19 23:53:36 +00007791nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00007792 version_type=linux
7793 need_lib_prefix=no
7794 need_version=no
7795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7796 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007797 shlibpath_var=LD_LIBRARY_PATH
7798 shlibpath_overrides_runpath=yes
7799 ;;
7800
7801openbsd*)
7802 version_type=sunos
7803 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +00007804 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7806 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7807 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007808 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 +00007809 case $host_os in
7810 openbsd2.[89] | openbsd2.[89].*)
7811 shlibpath_overrides_runpath=no
7812 ;;
7813 *)
7814 shlibpath_overrides_runpath=yes
7815 ;;
7816 esac
John Criswell7a73b802003-06-30 21:59:07 +00007817 else
7818 shlibpath_overrides_runpath=yes
7819 fi
John Criswell7a73b802003-06-30 21:59:07 +00007820 ;;
7821
7822os2*)
7823 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007824 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007825 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007826 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007827 dynamic_linker='OS/2 ld.exe'
7828 shlibpath_var=LIBPATH
7829 ;;
7830
7831osf3* | osf4* | osf5*)
7832 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007833 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007834 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007835 soname_spec='${libname}${release}${shared_ext}$major'
7836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007837 shlibpath_var=LD_LIBRARY_PATH
7838 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7839 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7840 ;;
7841
7842sco3.2v5*)
7843 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007844 soname_spec='${libname}${release}${shared_ext}$major'
7845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007846 shlibpath_var=LD_LIBRARY_PATH
7847 ;;
7848
7849solaris*)
7850 version_type=linux
7851 need_lib_prefix=no
7852 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7854 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007855 shlibpath_var=LD_LIBRARY_PATH
7856 shlibpath_overrides_runpath=yes
7857 hardcode_into_libs=yes
7858 # ldd complains unless libraries are executable
7859 postinstall_cmds='chmod +x $lib'
7860 ;;
7861
7862sunos4*)
7863 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007865 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7866 shlibpath_var=LD_LIBRARY_PATH
7867 shlibpath_overrides_runpath=yes
7868 if test "$with_gnu_ld" = yes; then
7869 need_lib_prefix=no
7870 fi
7871 need_version=yes
7872 ;;
7873
7874sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7875 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7877 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007878 shlibpath_var=LD_LIBRARY_PATH
7879 case $host_vendor in
7880 sni)
7881 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007882 need_lib_prefix=no
7883 export_dynamic_flag_spec='${wl}-Blargedynsym'
7884 runpath_var=LD_RUN_PATH
7885 ;;
7886 siemens)
7887 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007888 ;;
7889 motorola)
7890 need_lib_prefix=no
7891 need_version=no
7892 shlibpath_overrides_runpath=no
7893 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7894 ;;
7895 esac
7896 ;;
7897
John Criswell7a73b802003-06-30 21:59:07 +00007898sysv4*MP*)
7899 if test -d /usr/nec ;then
7900 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007901 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7902 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007903 shlibpath_var=LD_LIBRARY_PATH
7904 fi
7905 ;;
7906
John Criswell47fdd832003-07-14 16:52:07 +00007907uts4*)
7908 version_type=linux
7909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7910 soname_spec='${libname}${release}${shared_ext}$major'
7911 shlibpath_var=LD_LIBRARY_PATH
7912 ;;
7913
John Criswell7a73b802003-06-30 21:59:07 +00007914*)
7915 dynamic_linker=no
7916 ;;
7917esac
7918echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7919echo "${ECHO_T}$dynamic_linker" >&6
7920test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007921
Reid Spencer2706f8c2004-09-19 23:53:36 +00007922echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7923echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7924hardcode_action=
7925if test -n "$hardcode_libdir_flag_spec" || \
7926 test -n "$runpath_var" || \
7927 test "X$hardcode_automatic" = "Xyes" ; then
7928
7929 # We can hardcode non-existant directories.
7930 if test "$hardcode_direct" != no &&
7931 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7932 # have to relink, otherwise we might link with an installed library
7933 # when we should be linking with a yet-to-be-installed one
7934 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7935 test "$hardcode_minus_L" != no; then
7936 # Linking always hardcodes the temporary library directory.
7937 hardcode_action=relink
7938 else
7939 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7940 hardcode_action=immediate
7941 fi
7942else
7943 # We cannot hardcode anything, or else we can only hardcode existing
7944 # directories.
7945 hardcode_action=unsupported
7946fi
7947echo "$as_me:$LINENO: result: $hardcode_action" >&5
7948echo "${ECHO_T}$hardcode_action" >&6
7949
7950if test "$hardcode_action" = relink; then
7951 # Fast installation is not supported
7952 enable_fast_install=no
7953elif test "$shlibpath_overrides_runpath" = yes ||
7954 test "$enable_shared" = no; then
7955 # Fast installation is not necessary
7956 enable_fast_install=needless
7957fi
7958
7959striplib=
7960old_striplib=
7961echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7962echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7963if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7964 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7965 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7966 echo "$as_me:$LINENO: result: yes" >&5
7967echo "${ECHO_T}yes" >&6
7968else
7969# FIXME - insert some real tests, host_os isn't really good enough
7970 case $host_os in
7971 darwin*)
7972 if test -n "$STRIP" ; then
7973 striplib="$STRIP -x"
7974 echo "$as_me:$LINENO: result: yes" >&5
7975echo "${ECHO_T}yes" >&6
7976 else
7977 echo "$as_me:$LINENO: result: no" >&5
7978echo "${ECHO_T}no" >&6
7979fi
7980 ;;
7981 *)
7982 echo "$as_me:$LINENO: result: no" >&5
7983echo "${ECHO_T}no" >&6
7984 ;;
7985 esac
7986fi
7987
John Criswell7a73b802003-06-30 21:59:07 +00007988if test "x$enable_dlopen" != xyes; then
7989 enable_dlopen=unknown
7990 enable_dlopen_self=unknown
7991 enable_dlopen_self_static=unknown
7992else
7993 lt_cv_dlopen=no
7994 lt_cv_dlopen_libs=
7995
7996 case $host_os in
7997 beos*)
7998 lt_cv_dlopen="load_add_on"
7999 lt_cv_dlopen_libs=
8000 lt_cv_dlopen_self=yes
8001 ;;
8002
John Criswell47fdd832003-07-14 16:52:07 +00008003 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008004 lt_cv_dlopen="LoadLibrary"
8005 lt_cv_dlopen_libs=
8006 ;;
8007
John Criswell47fdd832003-07-14 16:52:07 +00008008 cygwin*)
8009 lt_cv_dlopen="dlopen"
8010 lt_cv_dlopen_libs=
8011 ;;
8012
8013 darwin*)
8014 # if libdl is installed we need to link against it
8015 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8016echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8017if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8019else
8020 ac_check_lib_save_LIBS=$LIBS
8021LIBS="-ldl $LIBS"
8022cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008023/* confdefs.h. */
8024_ACEOF
8025cat confdefs.h >>conftest.$ac_ext
8026cat >>conftest.$ac_ext <<_ACEOF
8027/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008028
8029/* Override any gcc2 internal prototype to avoid an error. */
8030#ifdef __cplusplus
8031extern "C"
8032#endif
8033/* We use char because int might match the return type of a gcc2
8034 builtin and then its argument prototype would still apply. */
8035char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008036int
8037main ()
8038{
8039dlopen ();
8040 ;
8041 return 0;
8042}
8043_ACEOF
8044rm -f conftest.$ac_objext conftest$ac_exeext
8045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008046 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00008047 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00008051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008053 { ac_try='test -z "$ac_c_werror_flag"
8054 || test ! -s conftest.err'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8056 (eval $ac_try) 2>&5
8057 ac_status=$?
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; } &&
8060 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00008061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8062 (eval $ac_try) 2>&5
8063 ac_status=$?
8064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8065 (exit $ac_status); }; }; then
8066 ac_cv_lib_dl_dlopen=yes
8067else
8068 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008069sed 's/^/| /' conftest.$ac_ext >&5
8070
John Criswell47fdd832003-07-14 16:52:07 +00008071ac_cv_lib_dl_dlopen=no
8072fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008073rm -f conftest.err conftest.$ac_objext \
8074 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00008075LIBS=$ac_check_lib_save_LIBS
8076fi
8077echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8078echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8079if test $ac_cv_lib_dl_dlopen = yes; then
8080 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8081else
8082
8083 lt_cv_dlopen="dyld"
8084 lt_cv_dlopen_libs=
8085 lt_cv_dlopen_self=yes
8086
8087fi
8088
8089 ;;
8090
John Criswell7a73b802003-06-30 21:59:07 +00008091 *)
8092 echo "$as_me:$LINENO: checking for shl_load" >&5
8093echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8094if test "${ac_cv_func_shl_load+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008098/* confdefs.h. */
8099_ACEOF
8100cat confdefs.h >>conftest.$ac_ext
8101cat >>conftest.$ac_ext <<_ACEOF
8102/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008103/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8105#define shl_load innocuous_shl_load
8106
John Criswell7a73b802003-06-30 21:59:07 +00008107/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008108 which can conflict with char shl_load (); below.
8109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8110 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008111
John Criswell0c38eaf2003-09-10 15:17:25 +00008112#ifdef __STDC__
8113# include <limits.h>
8114#else
8115# include <assert.h>
8116#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00008117
8118#undef shl_load
8119
John Criswell7a73b802003-06-30 21:59:07 +00008120/* Override any gcc2 internal prototype to avoid an error. */
8121#ifdef __cplusplus
8122extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008123{
John Criswell7a73b802003-06-30 21:59:07 +00008124#endif
8125/* We use char because int might match the return type of a gcc2
8126 builtin and then its argument prototype would still apply. */
8127char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008128/* The GNU C library defines this for functions which it implements
8129 to always fail with ENOSYS. Some functions are actually named
8130 something starting with __ and the normal name is an alias. */
8131#if defined (__stub_shl_load) || defined (__stub___shl_load)
8132choke me
8133#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008134char (*f) () = shl_load;
8135#endif
8136#ifdef __cplusplus
8137}
John Criswell7a73b802003-06-30 21:59:07 +00008138#endif
8139
John Criswell0c38eaf2003-09-10 15:17:25 +00008140int
8141main ()
8142{
8143return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008144 ;
8145 return 0;
8146}
8147_ACEOF
8148rm -f conftest.$ac_objext conftest$ac_exeext
8149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008150 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008151 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008152 grep -v '^ *+' conftest.er1 >conftest.err
8153 rm -f conftest.er1
8154 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008157 { ac_try='test -z "$ac_c_werror_flag"
8158 || test ! -s conftest.err'
8159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8160 (eval $ac_try) 2>&5
8161 ac_status=$?
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }; } &&
8164 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8166 (eval $ac_try) 2>&5
8167 ac_status=$?
8168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8169 (exit $ac_status); }; }; then
8170 ac_cv_func_shl_load=yes
8171else
8172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008173sed 's/^/| /' conftest.$ac_ext >&5
8174
John Criswell7a73b802003-06-30 21:59:07 +00008175ac_cv_func_shl_load=no
8176fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008177rm -f conftest.err conftest.$ac_objext \
8178 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008179fi
8180echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8181echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8182if test $ac_cv_func_shl_load = yes; then
8183 lt_cv_dlopen="shl_load"
8184else
8185 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8186echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8187if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8189else
8190 ac_check_lib_save_LIBS=$LIBS
8191LIBS="-ldld $LIBS"
8192cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008193/* confdefs.h. */
8194_ACEOF
8195cat confdefs.h >>conftest.$ac_ext
8196cat >>conftest.$ac_ext <<_ACEOF
8197/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008198
8199/* Override any gcc2 internal prototype to avoid an error. */
8200#ifdef __cplusplus
8201extern "C"
8202#endif
8203/* We use char because int might match the return type of a gcc2
8204 builtin and then its argument prototype would still apply. */
8205char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008206int
8207main ()
8208{
8209shl_load ();
8210 ;
8211 return 0;
8212}
8213_ACEOF
8214rm -f conftest.$ac_objext conftest$ac_exeext
8215if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008216 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008217 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008223 { ac_try='test -z "$ac_c_werror_flag"
8224 || test ! -s conftest.err'
8225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8226 (eval $ac_try) 2>&5
8227 ac_status=$?
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); }; } &&
8230 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8232 (eval $ac_try) 2>&5
8233 ac_status=$?
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8236 ac_cv_lib_dld_shl_load=yes
8237else
8238 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008239sed 's/^/| /' conftest.$ac_ext >&5
8240
John Criswell7a73b802003-06-30 21:59:07 +00008241ac_cv_lib_dld_shl_load=no
8242fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008243rm -f conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008245LIBS=$ac_check_lib_save_LIBS
8246fi
8247echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8248echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8249if test $ac_cv_lib_dld_shl_load = yes; then
8250 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8251else
8252 echo "$as_me:$LINENO: checking for dlopen" >&5
8253echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8254if test "${ac_cv_func_dlopen+set}" = set; then
8255 echo $ECHO_N "(cached) $ECHO_C" >&6
8256else
8257 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008258/* confdefs.h. */
8259_ACEOF
8260cat confdefs.h >>conftest.$ac_ext
8261cat >>conftest.$ac_ext <<_ACEOF
8262/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008263/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8265#define dlopen innocuous_dlopen
8266
John Criswell7a73b802003-06-30 21:59:07 +00008267/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008268 which can conflict with char dlopen (); below.
8269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8270 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008271
John Criswell0c38eaf2003-09-10 15:17:25 +00008272#ifdef __STDC__
8273# include <limits.h>
8274#else
8275# include <assert.h>
8276#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00008277
8278#undef dlopen
8279
John Criswell7a73b802003-06-30 21:59:07 +00008280/* Override any gcc2 internal prototype to avoid an error. */
8281#ifdef __cplusplus
8282extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008283{
John Criswell7a73b802003-06-30 21:59:07 +00008284#endif
8285/* We use char because int might match the return type of a gcc2
8286 builtin and then its argument prototype would still apply. */
8287char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008288/* The GNU C library defines this for functions which it implements
8289 to always fail with ENOSYS. Some functions are actually named
8290 something starting with __ and the normal name is an alias. */
8291#if defined (__stub_dlopen) || defined (__stub___dlopen)
8292choke me
8293#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008294char (*f) () = dlopen;
8295#endif
8296#ifdef __cplusplus
8297}
John Criswell7a73b802003-06-30 21:59:07 +00008298#endif
8299
John Criswell0c38eaf2003-09-10 15:17:25 +00008300int
8301main ()
8302{
8303return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008304 ;
8305 return 0;
8306}
8307_ACEOF
8308rm -f conftest.$ac_objext conftest$ac_exeext
8309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008310 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008311 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008312 grep -v '^ *+' conftest.er1 >conftest.err
8313 rm -f conftest.er1
8314 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8316 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008317 { ac_try='test -z "$ac_c_werror_flag"
8318 || test ! -s conftest.err'
8319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 (eval $ac_try) 2>&5
8321 ac_status=$?
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); }; } &&
8324 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 (eval $ac_try) 2>&5
8327 ac_status=$?
8328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); }; }; then
8330 ac_cv_func_dlopen=yes
8331else
8332 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008333sed 's/^/| /' conftest.$ac_ext >&5
8334
John Criswell7a73b802003-06-30 21:59:07 +00008335ac_cv_func_dlopen=no
8336fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008337rm -f conftest.err conftest.$ac_objext \
8338 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008339fi
8340echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8341echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8342if test $ac_cv_func_dlopen = yes; then
8343 lt_cv_dlopen="dlopen"
8344else
8345 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8346echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8347if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8349else
8350 ac_check_lib_save_LIBS=$LIBS
8351LIBS="-ldl $LIBS"
8352cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008353/* confdefs.h. */
8354_ACEOF
8355cat confdefs.h >>conftest.$ac_ext
8356cat >>conftest.$ac_ext <<_ACEOF
8357/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008358
8359/* Override any gcc2 internal prototype to avoid an error. */
8360#ifdef __cplusplus
8361extern "C"
8362#endif
8363/* We use char because int might match the return type of a gcc2
8364 builtin and then its argument prototype would still apply. */
8365char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008366int
8367main ()
8368{
8369dlopen ();
8370 ;
8371 return 0;
8372}
8373_ACEOF
8374rm -f conftest.$ac_objext conftest$ac_exeext
8375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008376 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008377 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008378 grep -v '^ *+' conftest.er1 >conftest.err
8379 rm -f conftest.er1
8380 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008383 { ac_try='test -z "$ac_c_werror_flag"
8384 || test ! -s conftest.err'
8385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8386 (eval $ac_try) 2>&5
8387 ac_status=$?
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); }; } &&
8390 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8392 (eval $ac_try) 2>&5
8393 ac_status=$?
8394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8395 (exit $ac_status); }; }; then
8396 ac_cv_lib_dl_dlopen=yes
8397else
8398 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008399sed 's/^/| /' conftest.$ac_ext >&5
8400
John Criswell7a73b802003-06-30 21:59:07 +00008401ac_cv_lib_dl_dlopen=no
8402fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008403rm -f conftest.err conftest.$ac_objext \
8404 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008405LIBS=$ac_check_lib_save_LIBS
8406fi
8407echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8408echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8409if test $ac_cv_lib_dl_dlopen = yes; then
8410 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8411else
8412 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8413echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8414if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8415 echo $ECHO_N "(cached) $ECHO_C" >&6
8416else
8417 ac_check_lib_save_LIBS=$LIBS
8418LIBS="-lsvld $LIBS"
8419cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008420/* confdefs.h. */
8421_ACEOF
8422cat confdefs.h >>conftest.$ac_ext
8423cat >>conftest.$ac_ext <<_ACEOF
8424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008425
8426/* Override any gcc2 internal prototype to avoid an error. */
8427#ifdef __cplusplus
8428extern "C"
8429#endif
8430/* We use char because int might match the return type of a gcc2
8431 builtin and then its argument prototype would still apply. */
8432char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008433int
8434main ()
8435{
8436dlopen ();
8437 ;
8438 return 0;
8439}
8440_ACEOF
8441rm -f conftest.$ac_objext conftest$ac_exeext
8442if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008443 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008444 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008445 grep -v '^ *+' conftest.er1 >conftest.err
8446 rm -f conftest.er1
8447 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008450 { ac_try='test -z "$ac_c_werror_flag"
8451 || test ! -s conftest.err'
8452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8453 (eval $ac_try) 2>&5
8454 ac_status=$?
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); }; } &&
8457 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8459 (eval $ac_try) 2>&5
8460 ac_status=$?
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; }; then
8463 ac_cv_lib_svld_dlopen=yes
8464else
8465 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008466sed 's/^/| /' conftest.$ac_ext >&5
8467
John Criswell7a73b802003-06-30 21:59:07 +00008468ac_cv_lib_svld_dlopen=no
8469fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008470rm -f conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008472LIBS=$ac_check_lib_save_LIBS
8473fi
8474echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8475echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8476if test $ac_cv_lib_svld_dlopen = yes; then
8477 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8478else
8479 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8480echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8481if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8483else
8484 ac_check_lib_save_LIBS=$LIBS
8485LIBS="-ldld $LIBS"
8486cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008487/* confdefs.h. */
8488_ACEOF
8489cat confdefs.h >>conftest.$ac_ext
8490cat >>conftest.$ac_ext <<_ACEOF
8491/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008492
8493/* Override any gcc2 internal prototype to avoid an error. */
8494#ifdef __cplusplus
8495extern "C"
8496#endif
8497/* We use char because int might match the return type of a gcc2
8498 builtin and then its argument prototype would still apply. */
8499char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008500int
8501main ()
8502{
8503dld_link ();
8504 ;
8505 return 0;
8506}
8507_ACEOF
8508rm -f conftest.$ac_objext conftest$ac_exeext
8509if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008510 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008511 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008512 grep -v '^ *+' conftest.er1 >conftest.err
8513 rm -f conftest.er1
8514 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008517 { ac_try='test -z "$ac_c_werror_flag"
8518 || test ! -s conftest.err'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; } &&
8524 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 (eval $ac_try) 2>&5
8527 ac_status=$?
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); }; }; then
8530 ac_cv_lib_dld_dld_link=yes
8531else
8532 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008533sed 's/^/| /' conftest.$ac_ext >&5
8534
John Criswell7a73b802003-06-30 21:59:07 +00008535ac_cv_lib_dld_dld_link=no
8536fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008537rm -f conftest.err conftest.$ac_objext \
8538 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008539LIBS=$ac_check_lib_save_LIBS
8540fi
8541echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8542echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8543if test $ac_cv_lib_dld_dld_link = yes; then
8544 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8545fi
8546
8547
8548fi
8549
8550
8551fi
8552
8553
8554fi
8555
8556
8557fi
8558
8559
8560fi
8561
8562 ;;
8563 esac
8564
8565 if test "x$lt_cv_dlopen" != xno; then
8566 enable_dlopen=yes
8567 else
8568 enable_dlopen=no
8569 fi
8570
8571 case $lt_cv_dlopen in
8572 dlopen)
8573 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008574 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008575
8576 save_LDFLAGS="$LDFLAGS"
8577 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8578
8579 save_LIBS="$LIBS"
8580 LIBS="$lt_cv_dlopen_libs $LIBS"
8581
8582 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8583echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8584if test "${lt_cv_dlopen_self+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8586else
8587 if test "$cross_compiling" = yes; then :
8588 lt_cv_dlopen_self=cross
8589else
John Criswell47fdd832003-07-14 16:52:07 +00008590 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008591 lt_status=$lt_dlunknown
8592 cat > conftest.$ac_ext <<EOF
John Criswell5fbb1f82004-09-24 13:28:51 +00008593#line 8593 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008594#include "confdefs.h"
8595
8596#if HAVE_DLFCN_H
8597#include <dlfcn.h>
8598#endif
8599
8600#include <stdio.h>
8601
8602#ifdef RTLD_GLOBAL
8603# define LT_DLGLOBAL RTLD_GLOBAL
8604#else
8605# ifdef DL_GLOBAL
8606# define LT_DLGLOBAL DL_GLOBAL
8607# else
8608# define LT_DLGLOBAL 0
8609# endif
8610#endif
8611
8612/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8613 find out it does not work in some platform. */
8614#ifndef LT_DLLAZY_OR_NOW
8615# ifdef RTLD_LAZY
8616# define LT_DLLAZY_OR_NOW RTLD_LAZY
8617# else
8618# ifdef DL_LAZY
8619# define LT_DLLAZY_OR_NOW DL_LAZY
8620# else
8621# ifdef RTLD_NOW
8622# define LT_DLLAZY_OR_NOW RTLD_NOW
8623# else
8624# ifdef DL_NOW
8625# define LT_DLLAZY_OR_NOW DL_NOW
8626# else
8627# define LT_DLLAZY_OR_NOW 0
8628# endif
8629# endif
8630# endif
8631# endif
8632#endif
8633
8634#ifdef __cplusplus
8635extern "C" void exit (int);
8636#endif
8637
8638void fnord() { int i=42;}
8639int main ()
8640{
8641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8642 int status = $lt_dlunknown;
8643
8644 if (self)
8645 {
8646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8648 /* dlclose (self); */
8649 }
8650
8651 exit (status);
8652}
8653EOF
8654 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8655 (eval $ac_link) 2>&5
8656 ac_status=$?
8657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8658 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8659 (./conftest; exit; ) 2>/dev/null
8660 lt_status=$?
8661 case x$lt_status in
8662 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8663 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8664 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8665 esac
8666 else :
8667 # compilation failed
8668 lt_cv_dlopen_self=no
8669 fi
8670fi
8671rm -fr conftest*
8672
8673
8674fi
8675echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8676echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8677
8678 if test "x$lt_cv_dlopen_self" = xyes; then
8679 LDFLAGS="$LDFLAGS $link_static_flag"
8680 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8681echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8682if test "${lt_cv_dlopen_self_static+set}" = set; then
8683 echo $ECHO_N "(cached) $ECHO_C" >&6
8684else
8685 if test "$cross_compiling" = yes; then :
8686 lt_cv_dlopen_self_static=cross
8687else
John Criswell47fdd832003-07-14 16:52:07 +00008688 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008689 lt_status=$lt_dlunknown
8690 cat > conftest.$ac_ext <<EOF
John Criswell5fbb1f82004-09-24 13:28:51 +00008691#line 8691 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008692#include "confdefs.h"
8693
8694#if HAVE_DLFCN_H
8695#include <dlfcn.h>
8696#endif
8697
8698#include <stdio.h>
8699
8700#ifdef RTLD_GLOBAL
8701# define LT_DLGLOBAL RTLD_GLOBAL
8702#else
8703# ifdef DL_GLOBAL
8704# define LT_DLGLOBAL DL_GLOBAL
8705# else
8706# define LT_DLGLOBAL 0
8707# endif
8708#endif
8709
8710/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8711 find out it does not work in some platform. */
8712#ifndef LT_DLLAZY_OR_NOW
8713# ifdef RTLD_LAZY
8714# define LT_DLLAZY_OR_NOW RTLD_LAZY
8715# else
8716# ifdef DL_LAZY
8717# define LT_DLLAZY_OR_NOW DL_LAZY
8718# else
8719# ifdef RTLD_NOW
8720# define LT_DLLAZY_OR_NOW RTLD_NOW
8721# else
8722# ifdef DL_NOW
8723# define LT_DLLAZY_OR_NOW DL_NOW
8724# else
8725# define LT_DLLAZY_OR_NOW 0
8726# endif
8727# endif
8728# endif
8729# endif
8730#endif
8731
8732#ifdef __cplusplus
8733extern "C" void exit (int);
8734#endif
8735
8736void fnord() { int i=42;}
8737int main ()
8738{
8739 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8740 int status = $lt_dlunknown;
8741
8742 if (self)
8743 {
8744 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8745 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8746 /* dlclose (self); */
8747 }
8748
8749 exit (status);
8750}
8751EOF
8752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8753 (eval $ac_link) 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8757 (./conftest; exit; ) 2>/dev/null
8758 lt_status=$?
8759 case x$lt_status in
8760 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8761 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8762 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8763 esac
8764 else :
8765 # compilation failed
8766 lt_cv_dlopen_self_static=no
8767 fi
8768fi
8769rm -fr conftest*
8770
8771
8772fi
8773echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8774echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8775 fi
8776
8777 CPPFLAGS="$save_CPPFLAGS"
8778 LDFLAGS="$save_LDFLAGS"
8779 LIBS="$save_LIBS"
8780 ;;
8781 esac
8782
8783 case $lt_cv_dlopen_self in
8784 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8785 *) enable_dlopen_self=unknown ;;
8786 esac
8787
8788 case $lt_cv_dlopen_self_static in
8789 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8790 *) enable_dlopen_self_static=unknown ;;
8791 esac
8792fi
8793
8794
John Criswell47fdd832003-07-14 16:52:07 +00008795# Report which librarie types wil actually be built
8796echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8797echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8798echo "$as_me:$LINENO: result: $can_build_shared" >&5
8799echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008800
John Criswell47fdd832003-07-14 16:52:07 +00008801echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8802echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8803test "$can_build_shared" = "no" && enable_shared=no
8804
8805# On AIX, shared libraries and static libraries use the same namespace, and
8806# are all built from PIC.
8807case "$host_os" in
8808aix3*)
8809 test "$enable_shared" = yes && enable_static=no
8810 if test -n "$RANLIB"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00008811 archive_cmds="$archive_cmds;\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +00008812 postinstall_cmds='$RANLIB $lib'
8813 fi
8814 ;;
8815
Reid Spencer2706f8c2004-09-19 23:53:36 +00008816aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +00008817 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8818 test "$enable_shared" = yes && enable_static=no
8819 fi
John Criswell7a73b802003-06-30 21:59:07 +00008820 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008821esac
8822echo "$as_me:$LINENO: result: $enable_shared" >&5
8823echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008824
John Criswell47fdd832003-07-14 16:52:07 +00008825echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8826echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8827# Make sure either enable_shared or enable_static is yes.
8828test "$enable_shared" = yes || enable_static=yes
8829echo "$as_me:$LINENO: result: $enable_static" >&5
8830echo "${ECHO_T}$enable_static" >&6
8831
8832# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008833# libtool distribution, otherwise you forgot to ship ltmain.sh
8834# with your package, and you will get complaints that there are
8835# no rules to generate ltmain.sh.
8836if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008837 # See if we are running on zsh, and set the options which allow our commands through
8838 # without removal of \ escapes.
8839 if test -n "${ZSH_VERSION+set}" ; then
8840 setopt NO_GLOB_SUBST
8841 fi
John Criswell7a73b802003-06-30 21:59:07 +00008842 # Now quote all the things that may contain metacharacters while being
8843 # careful not to overquote the AC_SUBSTed values. We take copies of the
8844 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008845 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8846 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +00008847 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8848 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8849 deplibs_check_method reload_flag reload_cmds need_locks \
8850 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8851 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008852 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008853 old_postinstall_cmds old_postuninstall_cmds \
8854 compiler \
8855 CC \
8856 LD \
8857 lt_prog_compiler_wl \
8858 lt_prog_compiler_pic \
8859 lt_prog_compiler_static \
8860 lt_prog_compiler_no_builtin_flag \
8861 export_dynamic_flag_spec \
8862 thread_safe_flag_spec \
8863 whole_archive_flag_spec \
8864 enable_shared_with_static_runtimes \
8865 old_archive_cmds \
8866 old_archive_from_new_cmds \
8867 predep_objects \
8868 postdep_objects \
8869 predeps \
8870 postdeps \
8871 compiler_lib_search_path \
8872 archive_cmds \
8873 archive_expsym_cmds \
8874 postinstall_cmds \
8875 postuninstall_cmds \
8876 old_archive_from_expsyms_cmds \
8877 allow_undefined_flag \
8878 no_undefined_flag \
8879 export_symbols_cmds \
8880 hardcode_libdir_flag_spec \
8881 hardcode_libdir_flag_spec_ld \
8882 hardcode_libdir_separator \
8883 hardcode_automatic \
8884 module_cmds \
8885 module_expsym_cmds \
8886 lt_cv_prog_compiler_c_o \
8887 exclude_expsyms \
8888 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008889
8890 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008891 old_archive_cmds | \
8892 old_archive_from_new_cmds | \
8893 archive_cmds | \
8894 archive_expsym_cmds | \
8895 module_cmds | \
8896 module_expsym_cmds | \
8897 old_archive_from_expsyms_cmds | \
8898 export_symbols_cmds | \
8899 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008900 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008901 old_postinstall_cmds | old_postuninstall_cmds | \
8902 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008903 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008904 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 +00008905 ;;
8906 *)
8907 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8908 ;;
8909 esac
8910 done
8911
John Criswell47fdd832003-07-14 16:52:07 +00008912 case $lt_echo in
8913 *'\$0 --fallback-echo"')
8914 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8915 ;;
8916 esac
8917
8918cfgfile="${ofile}T"
8919 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8920 $rm -f "$cfgfile"
8921 { echo "$as_me:$LINENO: creating $ofile" >&5
8922echo "$as_me: creating $ofile" >&6;}
8923
8924 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008925#! $SHELL
8926
John Criswell47fdd832003-07-14 16:52:07 +00008927# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008928# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8929# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8930#
John Criswell47fdd832003-07-14 16:52:07 +00008931# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8932# Free Software Foundation, Inc.
8933#
8934# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008935# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8936#
8937# This program is free software; you can redistribute it and/or modify
8938# it under the terms of the GNU General Public License as published by
8939# the Free Software Foundation; either version 2 of the License, or
8940# (at your option) any later version.
8941#
8942# This program is distributed in the hope that it will be useful, but
8943# WITHOUT ANY WARRANTY; without even the implied warranty of
8944# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8945# General Public License for more details.
8946#
8947# You should have received a copy of the GNU General Public License
8948# along with this program; if not, write to the Free Software
8949# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8950#
8951# As a special exception to the GNU General Public License, if you
8952# distribute this file as part of a program that contains a
8953# configuration script generated by Autoconf, you may include it under
8954# the same distribution terms that you use for the rest of that program.
8955
John Criswell47fdd832003-07-14 16:52:07 +00008956# A sed program that does not truncate output.
8957SED=$lt_SED
8958
John Criswell7a73b802003-06-30 21:59:07 +00008959# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008960Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008961
8962# The HP-UX ksh and POSIX shell print the target directory to stdout
8963# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008964(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +00008965
John Criswell47fdd832003-07-14 16:52:07 +00008966# The names of the tagged configurations supported by this script.
8967available_tags=
8968
John Criswell7a73b802003-06-30 21:59:07 +00008969# ### BEGIN LIBTOOL CONFIG
8970
8971# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8972
8973# Shell to use when invoking shell scripts.
8974SHELL=$lt_SHELL
8975
8976# Whether or not to build shared libraries.
8977build_libtool_libs=$enable_shared
8978
8979# Whether or not to build static libraries.
8980build_old_libs=$enable_static
8981
8982# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008983build_libtool_need_lc=$archive_cmds_need_lc
8984
8985# Whether or not to disallow shared libs when runtime libs are static
8986allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008987
8988# Whether or not to optimize for fast installation.
8989fast_install=$enable_fast_install
8990
8991# The host system.
8992host_alias=$host_alias
8993host=$host
8994
8995# An echo program that does not interpret backslashes.
8996echo=$lt_echo
8997
8998# The archiver.
8999AR=$lt_AR
9000AR_FLAGS=$lt_AR_FLAGS
9001
John Criswell47fdd832003-07-14 16:52:07 +00009002# A C compiler.
9003LTCC=$lt_LTCC
9004
9005# A language-specific compiler.
9006CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009007
9008# Is the compiler the GNU C compiler?
9009with_gcc=$GCC
9010
John Criswell47fdd832003-07-14 16:52:07 +00009011# An ERE matcher.
9012EGREP=$lt_EGREP
9013
John Criswell7a73b802003-06-30 21:59:07 +00009014# The linker used to build libraries.
9015LD=$lt_LD
9016
9017# Whether we need hard or soft links.
9018LN_S=$lt_LN_S
9019
9020# A BSD-compatible nm program.
9021NM=$lt_NM
9022
9023# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +00009024STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +00009025
9026# Used to examine libraries when file_magic_cmd begins "file"
9027MAGIC_CMD=$MAGIC_CMD
9028
9029# Used on cygwin: DLL creation program.
9030DLLTOOL="$DLLTOOL"
9031
9032# Used on cygwin: object dumper.
9033OBJDUMP="$OBJDUMP"
9034
9035# Used on cygwin: assembler.
9036AS="$AS"
9037
9038# The name of the directory that contains temporary libtool files.
9039objdir=$objdir
9040
9041# How to create reloadable object files.
9042reload_flag=$lt_reload_flag
9043reload_cmds=$lt_reload_cmds
9044
9045# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009046wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009047
9048# Object file suffix (normally "o").
9049objext="$ac_objext"
9050
9051# Old archive suffix (normally "a").
9052libext="$libext"
9053
John Criswell47fdd832003-07-14 16:52:07 +00009054# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +00009055shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +00009056
John Criswell7a73b802003-06-30 21:59:07 +00009057# Executable file suffix (normally "").
9058exeext="$exeext"
9059
9060# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009061pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009062pic_mode=$pic_mode
9063
John Criswell47fdd832003-07-14 16:52:07 +00009064# What is the maximum length of a command?
9065max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009066
John Criswell47fdd832003-07-14 16:52:07 +00009067# Does compiler simultaneously support -c and -o options?
9068compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009069
9070# Must we lock files when doing compilation ?
9071need_locks=$lt_need_locks
9072
9073# Do we need the lib prefix for modules?
9074need_lib_prefix=$need_lib_prefix
9075
9076# Do we need a version for libraries?
9077need_version=$need_version
9078
9079# Whether dlopen is supported.
9080dlopen_support=$enable_dlopen
9081
9082# Whether dlopen of programs is supported.
9083dlopen_self=$enable_dlopen_self
9084
9085# Whether dlopen of statically linked programs is supported.
9086dlopen_self_static=$enable_dlopen_self_static
9087
9088# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009089link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009090
9091# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009092no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009093
9094# Compiler flag to allow reflexive dlopens.
9095export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9096
9097# Compiler flag to generate shared objects directly from archives.
9098whole_archive_flag_spec=$lt_whole_archive_flag_spec
9099
9100# Compiler flag to generate thread-safe objects.
9101thread_safe_flag_spec=$lt_thread_safe_flag_spec
9102
9103# Library versioning type.
9104version_type=$version_type
9105
9106# Format of library name prefix.
9107libname_spec=$lt_libname_spec
9108
9109# List of archive names. First name is the real one, the rest are links.
9110# The last name is the one that the linker finds with -lNAME.
9111library_names_spec=$lt_library_names_spec
9112
9113# The coded name of the library, if different from the real name.
9114soname_spec=$lt_soname_spec
9115
9116# Commands used to build and install an old-style archive.
9117RANLIB=$lt_RANLIB
9118old_archive_cmds=$lt_old_archive_cmds
9119old_postinstall_cmds=$lt_old_postinstall_cmds
9120old_postuninstall_cmds=$lt_old_postuninstall_cmds
9121
9122# Create an old-style archive from a shared archive.
9123old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9124
9125# Create a temporary old-style archive to link instead of a shared archive.
9126old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9127
9128# Commands used to build and install a shared archive.
9129archive_cmds=$lt_archive_cmds
9130archive_expsym_cmds=$lt_archive_expsym_cmds
9131postinstall_cmds=$lt_postinstall_cmds
9132postuninstall_cmds=$lt_postuninstall_cmds
9133
John Criswell47fdd832003-07-14 16:52:07 +00009134# Commands used to build a loadable module (assumed same as above if empty)
9135module_cmds=$lt_module_cmds
9136module_expsym_cmds=$lt_module_expsym_cmds
9137
John Criswell7a73b802003-06-30 21:59:07 +00009138# Commands to strip libraries.
9139old_striplib=$lt_old_striplib
9140striplib=$lt_striplib
9141
John Criswell47fdd832003-07-14 16:52:07 +00009142# Dependencies to place before the objects being linked to create a
9143# shared library.
9144predep_objects=$lt_predep_objects
9145
9146# Dependencies to place after the objects being linked to create a
9147# shared library.
9148postdep_objects=$lt_postdep_objects
9149
9150# Dependencies to place before the objects being linked to create a
9151# shared library.
9152predeps=$lt_predeps
9153
9154# Dependencies to place after the objects being linked to create a
9155# shared library.
9156postdeps=$lt_postdeps
9157
9158# The library search path used internally by the compiler when linking
9159# a shared library.
9160compiler_lib_search_path=$lt_compiler_lib_search_path
9161
John Criswell7a73b802003-06-30 21:59:07 +00009162# Method to check whether dependent libraries are shared objects.
9163deplibs_check_method=$lt_deplibs_check_method
9164
9165# Command to use when deplibs_check_method == file_magic.
9166file_magic_cmd=$lt_file_magic_cmd
9167
9168# Flag that allows shared libraries with undefined symbols to be built.
9169allow_undefined_flag=$lt_allow_undefined_flag
9170
9171# Flag that forces no undefined symbols.
9172no_undefined_flag=$lt_no_undefined_flag
9173
9174# Commands used to finish a libtool library installation in a directory.
9175finish_cmds=$lt_finish_cmds
9176
9177# Same as above, but a single script fragment to be evaled but not shown.
9178finish_eval=$lt_finish_eval
9179
9180# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009181global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009182
9183# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009184global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009185
9186# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009187global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009188
9189# This is the shared library runtime path variable.
9190runpath_var=$runpath_var
9191
9192# This is the shared library path variable.
9193shlibpath_var=$shlibpath_var
9194
9195# Is shlibpath searched before the hard-coded library search path?
9196shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9197
9198# How to hardcode a shared library path into an executable.
9199hardcode_action=$hardcode_action
9200
9201# Whether we should hardcode library paths into libraries.
9202hardcode_into_libs=$hardcode_into_libs
9203
9204# Flag to hardcode \$libdir into a binary during linking.
9205# This must work even if \$libdir does not exist.
9206hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9207
John Criswell47fdd832003-07-14 16:52:07 +00009208# If ld is used when linking, flag to hardcode \$libdir into
9209# a binary during linking. This must work even if \$libdir does
9210# not exist.
9211hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9212
John Criswell7a73b802003-06-30 21:59:07 +00009213# Whether we need a single -rpath flag with a separated argument.
9214hardcode_libdir_separator=$lt_hardcode_libdir_separator
9215
John Criswell47fdd832003-07-14 16:52:07 +00009216# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009217# resulting binary.
9218hardcode_direct=$hardcode_direct
9219
9220# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9221# resulting binary.
9222hardcode_minus_L=$hardcode_minus_L
9223
9224# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9225# the resulting binary.
9226hardcode_shlibpath_var=$hardcode_shlibpath_var
9227
John Criswell47fdd832003-07-14 16:52:07 +00009228# Set to yes if building a shared library automatically hardcodes DIR into the library
9229# and all subsequent libraries and executables linked against it.
9230hardcode_automatic=$hardcode_automatic
9231
John Criswell7a73b802003-06-30 21:59:07 +00009232# Variables whose values should be saved in libtool wrapper scripts and
9233# restored at relink time.
9234variables_saved_for_relink="$variables_saved_for_relink"
9235
9236# Whether libtool must link a program against all its dependency libraries.
9237link_all_deplibs=$link_all_deplibs
9238
9239# Compile-time system search path for libraries
9240sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9241
9242# Run-time system search path for libraries
9243sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9244
9245# Fix the shell variable \$srcfile for the compiler.
9246fix_srcfile_path="$fix_srcfile_path"
9247
9248# Set to yes if exported symbols are required.
9249always_export_symbols=$always_export_symbols
9250
9251# The commands to list exported symbols.
9252export_symbols_cmds=$lt_export_symbols_cmds
9253
9254# The commands to extract the exported symbol list from a shared archive.
9255extract_expsyms_cmds=$lt_extract_expsyms_cmds
9256
9257# Symbols that should not be listed in the preloaded symbols.
9258exclude_expsyms=$lt_exclude_expsyms
9259
9260# Symbols that must always be exported.
9261include_expsyms=$lt_include_expsyms
9262
9263# ### END LIBTOOL CONFIG
9264
9265__EOF__
9266
John Criswell47fdd832003-07-14 16:52:07 +00009267
John Criswell7a73b802003-06-30 21:59:07 +00009268 case $host_os in
9269 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009270 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009271
9272# AIX sometimes has problems with the GCC collect2 program. For some
9273# reason, if we set the COLLECT_NAMES environment variable, the problems
9274# vanish in a puff of smoke.
9275if test "X${COLLECT_NAMES+set}" != Xset; then
9276 COLLECT_NAMES=
9277 export COLLECT_NAMES
9278fi
9279EOF
9280 ;;
9281 esac
9282
John Criswell7a73b802003-06-30 21:59:07 +00009283 # We use sed instead of cat because bash on DJGPP gets confused if
9284 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9285 # text mode, it properly converts lines to CR/LF. This bash problem
9286 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009287 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009288
John Criswell47fdd832003-07-14 16:52:07 +00009289 mv -f "$cfgfile" "$ofile" || \
9290 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009291 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009292
9293else
9294 # If there is no Makefile yet, we rely on a make rule to execute
9295 # `config.status --recheck' to rerun these tests and create the
9296 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009297 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9298 if test -f "$ltmain_in"; then
9299 test -f Makefile && make "$ltmain"
9300 fi
John Criswell7a73b802003-06-30 21:59:07 +00009301fi
John Criswell7a73b802003-06-30 21:59:07 +00009302
9303
John Criswell47fdd832003-07-14 16:52:07 +00009304ac_ext=c
9305ac_cpp='$CPP $CPPFLAGS'
9306ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9307ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9308ac_compiler_gnu=$ac_cv_c_compiler_gnu
9309
9310CC="$lt_save_CC"
9311
9312
9313# Check whether --with-tags or --without-tags was given.
9314if test "${with_tags+set}" = set; then
9315 withval="$with_tags"
9316 tagnames="$withval"
9317fi;
9318
9319if test -f "$ltmain" && test -n "$tagnames"; then
9320 if test ! -f "${ofile}"; then
9321 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9322echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9323 fi
9324
9325 if test -z "$LTCC"; then
9326 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9327 if test -z "$LTCC"; then
9328 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9329echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9330 else
9331 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9332echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9333 fi
9334 fi
9335
9336 # Extract list of available tagged configurations in $ofile.
9337 # Note that this assumes the entire list is on one line.
9338 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9339
9340 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9341 for tagname in $tagnames; do
9342 IFS="$lt_save_ifs"
9343 # Check whether tagname contains only valid characters
9344 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9345 "") ;;
9346 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9347echo "$as_me: error: invalid tag name: $tagname" >&2;}
9348 { (exit 1); exit 1; }; }
9349 ;;
9350 esac
9351
9352 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9353 then
9354 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9355echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9356 { (exit 1); exit 1; }; }
9357 fi
9358
9359 # Update the list of available tags.
9360 if test -n "$tagname"; then
9361 echo appending configuration tag \"$tagname\" to $ofile
9362
9363 case $tagname in
9364 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +00009365 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9366 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9367 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +00009368 ac_ext=cc
9369ac_cpp='$CXXCPP $CPPFLAGS'
9370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9373
9374
9375
9376
9377archive_cmds_need_lc_CXX=no
9378allow_undefined_flag_CXX=
9379always_export_symbols_CXX=no
9380archive_expsym_cmds_CXX=
9381export_dynamic_flag_spec_CXX=
9382hardcode_direct_CXX=no
9383hardcode_libdir_flag_spec_CXX=
9384hardcode_libdir_flag_spec_ld_CXX=
9385hardcode_libdir_separator_CXX=
9386hardcode_minus_L_CXX=no
9387hardcode_automatic_CXX=no
9388module_cmds_CXX=
9389module_expsym_cmds_CXX=
9390link_all_deplibs_CXX=unknown
9391old_archive_cmds_CXX=$old_archive_cmds
9392no_undefined_flag_CXX=
9393whole_archive_flag_spec_CXX=
9394enable_shared_with_static_runtimes_CXX=no
9395
9396# Dependencies to place before and after the object being linked:
9397predep_objects_CXX=
9398postdep_objects_CXX=
9399predeps_CXX=
9400postdeps_CXX=
9401compiler_lib_search_path_CXX=
9402
9403# Source file extension for C++ test sources.
9404ac_ext=cc
9405
9406# Object file extension for compiled C++ test sources.
9407objext=o
9408objext_CXX=$objext
9409
9410# Code to be used in simple compile tests
9411lt_simple_compile_test_code="int some_variable = 0;\n"
9412
9413# Code to be used in simple link tests
9414lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9415
9416# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9417
9418# If no C compiler was specified, use CC.
9419LTCC=${LTCC-"$CC"}
9420
9421# Allow CC to be a program name with arguments.
9422compiler=$CC
9423
9424
9425# Allow CC to be a program name with arguments.
9426lt_save_CC=$CC
9427lt_save_LD=$LD
9428lt_save_GCC=$GCC
9429GCC=$GXX
9430lt_save_with_gnu_ld=$with_gnu_ld
9431lt_save_path_LD=$lt_cv_path_LD
9432if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9433 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9434else
9435 unset lt_cv_prog_gnu_ld
9436fi
9437if test -n "${lt_cv_path_LDCXX+set}"; then
9438 lt_cv_path_LD=$lt_cv_path_LDCXX
9439else
9440 unset lt_cv_path_LD
9441fi
9442test -z "${LDCXX+set}" || LD=$LDCXX
9443CC=${CXX-"c++"}
9444compiler=$CC
9445compiler_CXX=$CC
9446cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9447
9448# We don't want -fno-exception wen compiling C++ code, so set the
9449# no_builtin_flag separately
9450if test "$GXX" = yes; then
9451 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9452else
9453 lt_prog_compiler_no_builtin_flag_CXX=
9454fi
9455
9456if test "$GXX" = yes; then
9457 # Set up default GNU C++ configuration
9458
9459
9460# Check whether --with-gnu-ld or --without-gnu-ld was given.
9461if test "${with_gnu_ld+set}" = set; then
9462 withval="$with_gnu_ld"
9463 test "$withval" = no || with_gnu_ld=yes
9464else
9465 with_gnu_ld=no
9466fi;
9467ac_prog=ld
9468if test "$GCC" = yes; then
9469 # Check if gcc -print-prog-name=ld gives a path.
9470 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9471echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9472 case $host in
9473 *-*-mingw*)
9474 # gcc leaves a trailing carriage return which upsets mingw
9475 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9476 *)
9477 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9478 esac
9479 case $ac_prog in
9480 # Accept absolute paths.
9481 [\\/]* | ?:[\\/]*)
9482 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009483 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00009484 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9485 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9486 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9487 done
9488 test -z "$LD" && LD="$ac_prog"
9489 ;;
9490 "")
9491 # If it fails, then pretend we aren't using GCC.
9492 ac_prog=ld
9493 ;;
9494 *)
9495 # If it is relative, then search for the first ld in PATH.
9496 with_gnu_ld=unknown
9497 ;;
9498 esac
9499elif test "$with_gnu_ld" = yes; then
9500 echo "$as_me:$LINENO: checking for GNU ld" >&5
9501echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9502else
9503 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9504echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9505fi
9506if test "${lt_cv_path_LD+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508else
9509 if test -z "$LD"; then
9510 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9511 for ac_dir in $PATH; do
9512 IFS="$lt_save_ifs"
9513 test -z "$ac_dir" && ac_dir=.
9514 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9515 lt_cv_path_LD="$ac_dir/$ac_prog"
9516 # Check to see if the program is GNU ld. I'd rather use --version,
9517 # but apparently some GNU ld's only accept -v.
9518 # Break only if it was the GNU/non-GNU ld that we prefer.
9519 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9520 *GNU* | *'with BFD'*)
9521 test "$with_gnu_ld" != no && break
9522 ;;
9523 *)
9524 test "$with_gnu_ld" != yes && break
9525 ;;
9526 esac
9527 fi
9528 done
9529 IFS="$lt_save_ifs"
9530else
9531 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9532fi
9533fi
9534
9535LD="$lt_cv_path_LD"
9536if test -n "$LD"; then
9537 echo "$as_me:$LINENO: result: $LD" >&5
9538echo "${ECHO_T}$LD" >&6
9539else
9540 echo "$as_me:$LINENO: result: no" >&5
9541echo "${ECHO_T}no" >&6
9542fi
9543test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9544echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9545 { (exit 1); exit 1; }; }
9546echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9547echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9548if test "${lt_cv_prog_gnu_ld+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550else
9551 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009552case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00009553*GNU* | *'with BFD'*)
9554 lt_cv_prog_gnu_ld=yes
9555 ;;
9556*)
9557 lt_cv_prog_gnu_ld=no
9558 ;;
9559esac
9560fi
9561echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9562echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9563with_gnu_ld=$lt_cv_prog_gnu_ld
9564
9565
9566
9567 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9568 # archiving commands below assume that GNU ld is being used.
9569 if test "$with_gnu_ld" = yes; then
9570 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9571 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'
9572
9573 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9574 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9575
9576 # If archive_cmds runs LD, not CC, wlarc should be empty
9577 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9578 # investigate it a little bit more. (MM)
9579 wlarc='${wl}'
9580
9581 # ancient GNU ld didn't support --whole-archive et. al.
9582 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9583 grep 'no-whole-archive' > /dev/null; then
9584 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9585 else
9586 whole_archive_flag_spec_CXX=
9587 fi
9588 else
9589 with_gnu_ld=no
9590 wlarc=
9591
9592 # A generic and very simple default shared library creation
9593 # command for GNU C++ for the case where it uses the native
9594 # linker, instead of GNU ld. If possible, this setting should
9595 # overridden to take advantage of the native linker features on
9596 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009597 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +00009598 fi
9599
9600 # Commands to make compiler produce verbose output that lists
9601 # what "hidden" libraries, object files and flags are used when
9602 # linking a shared library.
9603 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9604
9605else
9606 GXX=no
9607 with_gnu_ld=no
9608 wlarc=
9609fi
9610
9611# PORTME: fill in a description of your system's C++ link characteristics
9612echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9613echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9614ld_shlibs_CXX=yes
9615case $host_os in
9616 aix3*)
9617 # FIXME: insert proper C++ library support
9618 ld_shlibs_CXX=no
9619 ;;
9620 aix4* | aix5*)
9621 if test "$host_cpu" = ia64; then
9622 # On IA64, the linker does run time linking by default, so we don't
9623 # have to do anything special.
9624 aix_use_runtimelinking=no
9625 exp_sym_flag='-Bexport'
9626 no_entry_flag=""
9627 else
9628 aix_use_runtimelinking=no
9629
9630 # Test if we are trying to use run time linking or normal
9631 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9632 # need to do runtime linking.
9633 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9634 for ld_flag in $LDFLAGS; do
9635 case $ld_flag in
9636 *-brtl*)
9637 aix_use_runtimelinking=yes
9638 break
9639 ;;
9640 esac
9641 done
9642 esac
9643
9644 exp_sym_flag='-bexport'
9645 no_entry_flag='-bnoentry'
9646 fi
9647
9648 # When large executables or shared objects are built, AIX ld can
9649 # have problems creating the table of contents. If linking a library
9650 # or program results in "error TOC overflow" add -mminimal-toc to
9651 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9652 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9653
9654 archive_cmds_CXX=''
9655 hardcode_direct_CXX=yes
9656 hardcode_libdir_separator_CXX=':'
9657 link_all_deplibs_CXX=yes
9658
9659 if test "$GXX" = yes; then
9660 case $host_os in aix4.012|aix4.012.*)
9661 # We only want to do this on AIX 4.2 and lower, the check
9662 # below for broken collect2 doesn't work under 4.3+
9663 collect2name=`${CC} -print-prog-name=collect2`
9664 if test -f "$collect2name" && \
9665 strings "$collect2name" | grep resolve_lib_name >/dev/null
9666 then
9667 # We have reworked collect2
9668 hardcode_direct_CXX=yes
9669 else
9670 # We have old collect2
9671 hardcode_direct_CXX=unsupported
9672 # It fails to find uninstalled libraries when the uninstalled
9673 # path is not listed in the libpath. Setting hardcode_minus_L
9674 # to unsupported forces relinking
9675 hardcode_minus_L_CXX=yes
9676 hardcode_libdir_flag_spec_CXX='-L$libdir'
9677 hardcode_libdir_separator_CXX=
9678 fi
9679 esac
9680 shared_flag='-shared'
9681 else
9682 # not using gcc
9683 if test "$host_cpu" = ia64; then
9684 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9685 # chokes on -Wl,-G. The following line is correct:
9686 shared_flag='-G'
9687 else
9688 if test "$aix_use_runtimelinking" = yes; then
9689 shared_flag='${wl}-G'
9690 else
9691 shared_flag='${wl}-bM:SRE'
9692 fi
9693 fi
9694 fi
9695
9696 # It seems that -bexpall does not export symbols beginning with
9697 # underscore (_), so it is better to generate a list of symbols to export.
9698 always_export_symbols_CXX=yes
9699 if test "$aix_use_runtimelinking" = yes; then
9700 # Warning - without using the other runtime loading flags (-brtl),
9701 # -berok will link without error, but may produce a broken library.
9702 allow_undefined_flag_CXX='-berok'
9703 # Determine the default libpath from the value encoded in an empty executable.
9704 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009705/* confdefs.h. */
9706_ACEOF
9707cat confdefs.h >>conftest.$ac_ext
9708cat >>conftest.$ac_ext <<_ACEOF
9709/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009710
John Criswell47fdd832003-07-14 16:52:07 +00009711int
9712main ()
9713{
9714
9715 ;
9716 return 0;
9717}
9718_ACEOF
9719rm -f conftest.$ac_objext conftest$ac_exeext
9720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009721 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009722 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009723 grep -v '^ *+' conftest.er1 >conftest.err
9724 rm -f conftest.er1
9725 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9727 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009728 { ac_try='test -z "$ac_cxx_werror_flag"
9729 || test ! -s conftest.err'
9730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9731 (eval $ac_try) 2>&5
9732 ac_status=$?
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; } &&
9735 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9737 (eval $ac_try) 2>&5
9738 ac_status=$?
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); }; }; then
9741
9742aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9743}'`
9744# Check for a 64-bit object if we didn't find anything.
9745if 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; }
9746}'`; fi
9747else
9748 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009749sed 's/^/| /' conftest.$ac_ext >&5
9750
John Criswell47fdd832003-07-14 16:52:07 +00009751fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009752rm -f conftest.err conftest.$ac_objext \
9753 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009754if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9755
9756 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9757
9758 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"
9759 else
9760 if test "$host_cpu" = ia64; then
9761 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9762 allow_undefined_flag_CXX="-z nodefs"
9763 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"
9764 else
9765 # Determine the default libpath from the value encoded in an empty executable.
9766 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009767/* confdefs.h. */
9768_ACEOF
9769cat confdefs.h >>conftest.$ac_ext
9770cat >>conftest.$ac_ext <<_ACEOF
9771/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009772
John Criswell47fdd832003-07-14 16:52:07 +00009773int
9774main ()
9775{
9776
9777 ;
9778 return 0;
9779}
9780_ACEOF
9781rm -f conftest.$ac_objext conftest$ac_exeext
9782if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009783 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009784 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009785 grep -v '^ *+' conftest.er1 >conftest.err
9786 rm -f conftest.er1
9787 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9789 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009790 { ac_try='test -z "$ac_cxx_werror_flag"
9791 || test ! -s conftest.err'
9792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9793 (eval $ac_try) 2>&5
9794 ac_status=$?
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); }; } &&
9797 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9799 (eval $ac_try) 2>&5
9800 ac_status=$?
9801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; }; then
9803
9804aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9805}'`
9806# Check for a 64-bit object if we didn't find anything.
9807if 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; }
9808}'`; fi
9809else
9810 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009811sed 's/^/| /' conftest.$ac_ext >&5
9812
John Criswell47fdd832003-07-14 16:52:07 +00009813fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009814rm -f conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009816if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9817
9818 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9819 # Warning - without using the other run time loading flags,
9820 # -berok will link without error, but may produce a broken library.
9821 no_undefined_flag_CXX=' ${wl}-bernotok'
9822 allow_undefined_flag_CXX=' ${wl}-berok'
9823 # -bexpall does not export symbols beginning with underscore (_)
9824 always_export_symbols_CXX=yes
9825 # Exported symbols can be pulled into shared objects from archives
9826 whole_archive_flag_spec_CXX=' '
9827 archive_cmds_need_lc_CXX=yes
9828 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009829 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 +00009830 fi
9831 fi
9832 ;;
9833 chorus*)
9834 case $cc_basename in
9835 *)
9836 # FIXME: insert proper C++ library support
9837 ld_shlibs_CXX=no
9838 ;;
9839 esac
9840 ;;
9841
Reid Spencer2706f8c2004-09-19 23:53:36 +00009842
John Criswell47fdd832003-07-14 16:52:07 +00009843 cygwin* | mingw* | pw32*)
9844 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9845 # as there is no search path for DLLs.
9846 hardcode_libdir_flag_spec_CXX='-L$libdir'
9847 allow_undefined_flag_CXX=unsupported
9848 always_export_symbols_CXX=no
9849 enable_shared_with_static_runtimes_CXX=yes
9850
9851 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9852 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'
9853 # If the export-symbols file already is a .def file (1st line
9854 # is EXPORTS), use it as is; otherwise, prepend...
9855 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9856 cp $export_symbols $output_objdir/$soname.def;
9857 else
9858 echo EXPORTS > $output_objdir/$soname.def;
9859 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009860 fi;$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 +00009861 else
9862 ld_shlibs_CXX=no
9863 fi
9864 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009865 darwin* | rhapsody*)
9866 case "$host_os" in
9867 rhapsody* | darwin1.[012])
9868 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9869 ;;
9870 *) # Darwin 1.3 on
9871 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9872 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9873 else
9874 case ${MACOSX_DEPLOYMENT_TARGET} in
9875 10.[012])
9876 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9877 ;;
9878 10.*)
9879 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9880 ;;
9881 esac
9882 fi
9883 ;;
9884 esac
9885 archive_cmds_need_lc_CXX=no
9886 hardcode_direct_CXX=no
9887 hardcode_automatic_CXX=yes
9888 hardcode_shlibpath_var_CXX=unsupported
9889 whole_archive_flag_spec_CXX=''
9890 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +00009891
Reid Spencer2706f8c2004-09-19 23:53:36 +00009892 if test "$GXX" = yes ; then
9893 lt_int_apple_cc_single_mod=no
9894 output_verbose_link_cmd='echo'
9895 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9896 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009897 fi
Brian Gaeke0a621332004-09-08 20:38:05 +00009898 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00009899 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 +00009900 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009901 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'
9902 fi
9903 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9904 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9905 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9906 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}'
9907 else
9908 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}'
9909 fi
9910 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}'
9911 else
9912 case "$cc_basename" in
9913 xlc*)
9914 output_verbose_link_cmd='echo'
9915 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'
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 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}'
9919 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}'
9920 ;;
9921 *)
9922 ld_shlibs_CXX=no
9923 ;;
9924 esac
Brian Gaeke0a621332004-09-08 20:38:05 +00009925 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009926 ;;
John Criswell47fdd832003-07-14 16:52:07 +00009927
9928 dgux*)
9929 case $cc_basename in
9930 ec++)
9931 # FIXME: insert proper C++ library support
9932 ld_shlibs_CXX=no
9933 ;;
9934 ghcx)
9935 # Green Hills C++ Compiler
9936 # FIXME: insert proper C++ library support
9937 ld_shlibs_CXX=no
9938 ;;
9939 *)
9940 # FIXME: insert proper C++ library support
9941 ld_shlibs_CXX=no
9942 ;;
9943 esac
9944 ;;
9945 freebsd12*)
9946 # C++ shared libraries reported to be fairly broken before switch to ELF
9947 ld_shlibs_CXX=no
9948 ;;
9949 freebsd-elf*)
9950 archive_cmds_need_lc_CXX=no
9951 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009952 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00009953 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9954 # conventions
9955 ld_shlibs_CXX=yes
9956 ;;
9957 gnu*)
9958 ;;
9959 hpux9*)
9960 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9961 hardcode_libdir_separator_CXX=:
9962 export_dynamic_flag_spec_CXX='${wl}-E'
9963 hardcode_direct_CXX=yes
9964 hardcode_minus_L_CXX=yes # Not in the search PATH,
9965 # but as the default
9966 # location of the library.
9967
9968 case $cc_basename in
9969 CC)
9970 # FIXME: insert proper C++ library support
9971 ld_shlibs_CXX=no
9972 ;;
9973 aCC)
Reid Spencer2706f8c2004-09-19 23:53:36 +00009974 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 +00009975 # Commands to make compiler produce verbose output that lists
9976 # what "hidden" libraries, object files and flags are used when
9977 # linking a shared library.
9978 #
9979 # There doesn't appear to be a way to prevent this compiler from
9980 # explicitly linking system object files so we need to strip them
9981 # from the output so that they don't get included in the library
9982 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009983 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 +00009984 ;;
9985 *)
9986 if test "$GXX" = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00009987 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 +00009988 else
9989 # FIXME: insert proper C++ library support
9990 ld_shlibs_CXX=no
9991 fi
9992 ;;
9993 esac
9994 ;;
9995 hpux10*|hpux11*)
9996 if test $with_gnu_ld = no; then
9997 case "$host_cpu" in
9998 hppa*64*)
9999 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10000 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10001 hardcode_libdir_separator_CXX=:
10002 ;;
10003 ia64*)
10004 hardcode_libdir_flag_spec_CXX='-L$libdir'
10005 ;;
10006 *)
10007 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10008 hardcode_libdir_separator_CXX=:
10009 export_dynamic_flag_spec_CXX='${wl}-E'
10010 ;;
10011 esac
10012 fi
10013 case "$host_cpu" in
10014 hppa*64*)
10015 hardcode_direct_CXX=no
10016 hardcode_shlibpath_var_CXX=no
10017 ;;
10018 ia64*)
10019 hardcode_direct_CXX=no
10020 hardcode_shlibpath_var_CXX=no
10021 hardcode_minus_L_CXX=yes # Not in the search PATH,
10022 # but as the default
10023 # location of the library.
10024 ;;
10025 *)
10026 hardcode_direct_CXX=yes
10027 hardcode_minus_L_CXX=yes # Not in the search PATH,
10028 # but as the default
10029 # location of the library.
10030 ;;
10031 esac
10032
10033 case $cc_basename in
10034 CC)
10035 # FIXME: insert proper C++ library support
10036 ld_shlibs_CXX=no
10037 ;;
10038 aCC)
10039 case "$host_cpu" in
10040 hppa*64*|ia64*)
10041 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10042 ;;
10043 *)
10044 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10045 ;;
10046 esac
10047 # Commands to make compiler produce verbose output that lists
10048 # what "hidden" libraries, object files and flags are used when
10049 # linking a shared library.
10050 #
10051 # There doesn't appear to be a way to prevent this compiler from
10052 # explicitly linking system object files so we need to strip them
10053 # from the output so that they don't get included in the library
10054 # dependencies.
10055 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'
10056 ;;
10057 *)
10058 if test "$GXX" = yes; then
10059 if test $with_gnu_ld = no; then
10060 case "$host_cpu" in
10061 ia64*|hppa*64*)
10062 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10063 ;;
10064 *)
10065 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'
10066 ;;
10067 esac
10068 fi
10069 else
10070 # FIXME: insert proper C++ library support
10071 ld_shlibs_CXX=no
10072 fi
10073 ;;
10074 esac
10075 ;;
10076 irix5* | irix6*)
10077 case $cc_basename in
10078 CC)
10079 # SGI C++
10080 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'
10081
10082 # Archives containing C++ object files must be created using
10083 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10084 # necessary to make sure instantiated templates are included
10085 # in the archive.
10086 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10087 ;;
10088 *)
10089 if test "$GXX" = yes; then
10090 if test "$with_gnu_ld" = no; then
10091 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'
10092 else
10093 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'
10094 fi
10095 fi
10096 link_all_deplibs_CXX=yes
10097 ;;
10098 esac
10099 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10100 hardcode_libdir_separator_CXX=:
10101 ;;
10102 linux*)
10103 case $cc_basename in
10104 KCC)
10105 # Kuck and Associates, Inc. (KAI) C++ Compiler
10106
10107 # KCC will only create a shared library if the output file
10108 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10109 # to its proper name (with version) after linking.
10110 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'
10111 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'
10112 # Commands to make compiler produce verbose output that lists
10113 # what "hidden" libraries, object files and flags are used when
10114 # linking a shared library.
10115 #
10116 # There doesn't appear to be a way to prevent this compiler from
10117 # explicitly linking system object files so we need to strip them
10118 # from the output so that they don't get included in the library
10119 # dependencies.
10120 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'
10121
10122 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10123 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10124
10125 # Archives containing C++ object files must be created using
10126 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10127 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10128 ;;
10129 icpc)
10130 # Intel C++
10131 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000010132 # version 8.0 and above of icpc choke on multiply defined symbols
10133 # if we add $predep_objects and $postdep_objects, however 7.1 and
10134 # earlier do not add the objects themselves.
10135 case `$CC -V 2>&1` in
10136 *"Version 7."*)
10137 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10138 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'
10139 ;;
10140 *) # Version 8.0 or newer
10141 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10142 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10143 ;;
10144 esac
John Criswell47fdd832003-07-14 16:52:07 +000010145 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000010146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10147 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10148 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10149 ;;
10150 cxx)
10151 # Compaq C++
10152 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10153 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'
10154
10155 runpath_var=LD_RUN_PATH
10156 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10157 hardcode_libdir_separator_CXX=:
10158
10159 # Commands to make compiler produce verbose output that lists
10160 # what "hidden" libraries, object files and flags are used when
10161 # linking a shared library.
10162 #
10163 # There doesn't appear to be a way to prevent this compiler from
10164 # explicitly linking system object files so we need to strip them
10165 # from the output so that they don't get included in the library
10166 # dependencies.
10167 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'
10168 ;;
10169 esac
10170 ;;
10171 lynxos*)
10172 # FIXME: insert proper C++ library support
10173 ld_shlibs_CXX=no
10174 ;;
10175 m88k*)
10176 # FIXME: insert proper C++ library support
10177 ld_shlibs_CXX=no
10178 ;;
10179 mvs*)
10180 case $cc_basename in
10181 cxx)
10182 # FIXME: insert proper C++ library support
10183 ld_shlibs_CXX=no
10184 ;;
10185 *)
10186 # FIXME: insert proper C++ library support
10187 ld_shlibs_CXX=no
10188 ;;
10189 esac
10190 ;;
10191 netbsd*)
10192 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10193 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10194 wlarc=
10195 hardcode_libdir_flag_spec_CXX='-R$libdir'
10196 hardcode_direct_CXX=yes
10197 hardcode_shlibpath_var_CXX=no
10198 fi
10199 # Workaround some broken pre-1.5 toolchains
10200 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10201 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010202 openbsd2*)
10203 # C++ shared libraries are fairly broken
10204 ld_shlibs_CXX=no
10205 ;;
10206 openbsd*)
10207 hardcode_direct_CXX=yes
10208 hardcode_shlibpath_var_CXX=no
10209 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10210 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10211 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10212 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10213 export_dynamic_flag_spec_CXX='${wl}-E'
10214 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10215 fi
10216 output_verbose_link_cmd='echo'
10217 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010218 osf3*)
10219 case $cc_basename in
10220 KCC)
10221 # Kuck and Associates, Inc. (KAI) C++ Compiler
10222
10223 # KCC will only create a shared library if the output file
10224 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10225 # to its proper name (with version) after linking.
10226 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'
10227
10228 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10229 hardcode_libdir_separator_CXX=:
10230
10231 # Archives containing C++ object files must be created using
10232 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10233 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10234
10235 ;;
10236 RCC)
10237 # Rational C++ 2.4.1
10238 # FIXME: insert proper C++ library support
10239 ld_shlibs_CXX=no
10240 ;;
10241 cxx)
10242 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10243 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'
10244
10245 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10246 hardcode_libdir_separator_CXX=:
10247
10248 # Commands to make compiler produce verbose output that lists
10249 # what "hidden" libraries, object files and flags are used when
10250 # linking a shared library.
10251 #
10252 # There doesn't appear to be a way to prevent this compiler from
10253 # explicitly linking system object files so we need to strip them
10254 # from the output so that they don't get included in the library
10255 # dependencies.
10256 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'
10257 ;;
10258 *)
10259 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10260 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10261 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'
10262
10263 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10264 hardcode_libdir_separator_CXX=:
10265
10266 # Commands to make compiler produce verbose output that lists
10267 # what "hidden" libraries, object files and flags are used when
10268 # linking a shared library.
10269 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10270
10271 else
10272 # FIXME: insert proper C++ library support
10273 ld_shlibs_CXX=no
10274 fi
10275 ;;
10276 esac
10277 ;;
10278 osf4* | osf5*)
10279 case $cc_basename in
10280 KCC)
10281 # Kuck and Associates, Inc. (KAI) C++ Compiler
10282
10283 # KCC will only create a shared library if the output file
10284 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10285 # to its proper name (with version) after linking.
10286 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'
10287
10288 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10289 hardcode_libdir_separator_CXX=:
10290
10291 # Archives containing C++ object files must be created using
10292 # the KAI C++ compiler.
10293 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10294 ;;
10295 RCC)
10296 # Rational C++ 2.4.1
10297 # FIXME: insert proper C++ library support
10298 ld_shlibs_CXX=no
10299 ;;
10300 cxx)
10301 allow_undefined_flag_CXX=' -expect_unresolved \*'
10302 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 Spencer2706f8c2004-09-19 23:53:36 +000010303 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp;$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;$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000010304
10305 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10306 hardcode_libdir_separator_CXX=:
10307
10308 # Commands to make compiler produce verbose output that lists
10309 # what "hidden" libraries, object files and flags are used when
10310 # linking a shared library.
10311 #
10312 # There doesn't appear to be a way to prevent this compiler from
10313 # explicitly linking system object files so we need to strip them
10314 # from the output so that they don't get included in the library
10315 # dependencies.
10316 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'
10317 ;;
10318 *)
10319 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10320 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10321 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'
10322
10323 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10324 hardcode_libdir_separator_CXX=:
10325
10326 # Commands to make compiler produce verbose output that lists
10327 # what "hidden" libraries, object files and flags are used when
10328 # linking a shared library.
10329 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10330
10331 else
10332 # FIXME: insert proper C++ library support
10333 ld_shlibs_CXX=no
10334 fi
10335 ;;
10336 esac
10337 ;;
10338 psos*)
10339 # FIXME: insert proper C++ library support
10340 ld_shlibs_CXX=no
10341 ;;
10342 sco*)
10343 archive_cmds_need_lc_CXX=no
10344 case $cc_basename in
10345 CC)
10346 # FIXME: insert proper C++ library support
10347 ld_shlibs_CXX=no
10348 ;;
10349 *)
10350 # FIXME: insert proper C++ library support
10351 ld_shlibs_CXX=no
10352 ;;
10353 esac
10354 ;;
10355 sunos4*)
10356 case $cc_basename in
10357 CC)
10358 # Sun C++ 4.x
10359 # FIXME: insert proper C++ library support
10360 ld_shlibs_CXX=no
10361 ;;
10362 lcc)
10363 # Lucid
10364 # FIXME: insert proper C++ library support
10365 ld_shlibs_CXX=no
10366 ;;
10367 *)
10368 # FIXME: insert proper C++ library support
10369 ld_shlibs_CXX=no
10370 ;;
10371 esac
10372 ;;
10373 solaris*)
10374 case $cc_basename in
10375 CC)
10376 # Sun C++ 4.2, 5.x and Centerline C++
10377 no_undefined_flag_CXX=' -zdefs'
10378 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000010379 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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 +000010380
10381 hardcode_libdir_flag_spec_CXX='-R$libdir'
10382 hardcode_shlibpath_var_CXX=no
10383 case $host_os in
10384 solaris2.0-5 | solaris2.0-5.*) ;;
10385 *)
10386 # The C++ compiler is used as linker so we must use $wl
10387 # flag to pass the commands to the underlying system
10388 # linker.
10389 # Supported since Solaris 2.6 (maybe 2.5.1?)
10390 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10391 ;;
10392 esac
10393 link_all_deplibs_CXX=yes
10394
10395 # Commands to make compiler produce verbose output that lists
10396 # what "hidden" libraries, object files and flags are used when
10397 # linking a shared library.
10398 #
10399 # There doesn't appear to be a way to prevent this compiler from
10400 # explicitly linking system object files so we need to strip them
10401 # from the output so that they don't get included in the library
10402 # dependencies.
10403 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'
10404
10405 # Archives containing C++ object files must be created using
10406 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10407 # necessary to make sure instantiated templates are included
10408 # in the archive.
10409 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10410 ;;
10411 gcx)
10412 # Green Hills C++ Compiler
10413 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10414
10415 # The C++ compiler must be used to create the archive.
10416 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10417 ;;
10418 *)
10419 # GNU C++ compiler with Solaris linker
10420 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10421 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10422 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000010423 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer2706f8c2004-09-19 23:53:36 +000010424 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $CC -shared -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 +000010425 # Commands to make compiler produce verbose output that lists
10426 # what "hidden" libraries, object files and flags are used when
10427 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000010428 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000010429 else
10430 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10431 # platform.
10432 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Reid Spencer2706f8c2004-09-19 23:53:36 +000010433 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp;
10434 $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 +000010435
10436 # Commands to make compiler produce verbose output that lists
10437 # what "hidden" libraries, object files and flags are used when
10438 # linking a shared library.
10439 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10440 fi
10441
10442 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10443 fi
10444 ;;
10445 esac
10446 ;;
10447 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10448 archive_cmds_need_lc_CXX=no
10449 ;;
10450 tandem*)
10451 case $cc_basename in
10452 NCC)
10453 # NonStop-UX NCC 3.20
10454 # FIXME: insert proper C++ library support
10455 ld_shlibs_CXX=no
10456 ;;
10457 *)
10458 # FIXME: insert proper C++ library support
10459 ld_shlibs_CXX=no
10460 ;;
10461 esac
10462 ;;
10463 vxworks*)
10464 # FIXME: insert proper C++ library support
10465 ld_shlibs_CXX=no
10466 ;;
10467 *)
10468 # FIXME: insert proper C++ library support
10469 ld_shlibs_CXX=no
10470 ;;
10471esac
10472echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10473echo "${ECHO_T}$ld_shlibs_CXX" >&6
10474test "$ld_shlibs_CXX" = no && can_build_shared=no
10475
10476GCC_CXX="$GXX"
10477LD_CXX="$LD"
10478
John Criswell47fdd832003-07-14 16:52:07 +000010479
10480cat > conftest.$ac_ext <<EOF
10481class Foo
10482{
10483public:
10484 Foo (void) { a = 0; }
10485private:
10486 int a;
10487};
10488EOF
10489
10490if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10491 (eval $ac_compile) 2>&5
10492 ac_status=$?
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); }; then
10495 # Parse the compiler output and extract the necessary
10496 # objects, libraries and library flags.
10497
10498 # Sentinel used to keep track of whether or not we are before
10499 # the conftest object file.
10500 pre_test_object_deps_done=no
10501
10502 # The `*' in the case matches for architectures that use `case' in
10503 # $output_verbose_cmd can trigger glob expansion during the loop
10504 # eval without this substitution.
10505 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10506
10507 for p in `eval $output_verbose_link_cmd`; do
10508 case $p in
10509
10510 -L* | -R* | -l*)
10511 # Some compilers place space between "-{L,R}" and the path.
10512 # Remove the space.
10513 if test $p = "-L" \
10514 || test $p = "-R"; then
10515 prev=$p
10516 continue
10517 else
10518 prev=
10519 fi
10520
10521 if test "$pre_test_object_deps_done" = no; then
10522 case $p in
10523 -L* | -R*)
10524 # Internal compiler library paths should come after those
10525 # provided the user. The postdeps already come after the
10526 # user supplied libs so there is no need to process them.
10527 if test -z "$compiler_lib_search_path_CXX"; then
10528 compiler_lib_search_path_CXX="${prev}${p}"
10529 else
10530 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10531 fi
10532 ;;
10533 # The "-l" case would never come before the object being
10534 # linked, so don't bother handling this case.
10535 esac
10536 else
10537 if test -z "$postdeps_CXX"; then
10538 postdeps_CXX="${prev}${p}"
10539 else
10540 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10541 fi
10542 fi
10543 ;;
10544
10545 *.$objext)
10546 # This assumes that the test object file only shows up
10547 # once in the compiler output.
10548 if test "$p" = "conftest.$objext"; then
10549 pre_test_object_deps_done=yes
10550 continue
10551 fi
10552
10553 if test "$pre_test_object_deps_done" = no; then
10554 if test -z "$predep_objects_CXX"; then
10555 predep_objects_CXX="$p"
10556 else
10557 predep_objects_CXX="$predep_objects_CXX $p"
10558 fi
10559 else
10560 if test -z "$postdep_objects_CXX"; then
10561 postdep_objects_CXX="$p"
10562 else
10563 postdep_objects_CXX="$postdep_objects_CXX $p"
10564 fi
10565 fi
10566 ;;
10567
10568 *) ;; # Ignore the rest.
10569
10570 esac
10571 done
10572
10573 # Clean up.
10574 rm -f a.out a.exe
10575else
10576 echo "libtool.m4: error: problem compiling CXX test program"
10577fi
10578
10579$rm -f confest.$objext
10580
10581case " $postdeps_CXX " in
10582*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10583esac
10584
10585lt_prog_compiler_wl_CXX=
10586lt_prog_compiler_pic_CXX=
10587lt_prog_compiler_static_CXX=
10588
10589echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10590echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10591
10592 # C++ specific cases for pic, static, wl, etc.
10593 if test "$GXX" = yes; then
10594 lt_prog_compiler_wl_CXX='-Wl,'
10595 lt_prog_compiler_static_CXX='-static'
10596
10597 case $host_os in
10598 aix*)
10599 # All AIX code is PIC.
10600 if test "$host_cpu" = ia64; then
10601 # AIX 5 now supports IA64 processor
10602 lt_prog_compiler_static_CXX='-Bstatic'
10603 fi
10604 ;;
10605 amigaos*)
10606 # FIXME: we need at least 68020 code to build shared libraries, but
10607 # adding the `-m68020' flag to GCC prevents building anything better,
10608 # like `-m68040'.
10609 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10610 ;;
10611 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10612 # PIC is the default for these OSes.
10613 ;;
10614 mingw* | os2* | pw32*)
10615 # This hack is so that the source file can tell whether it is being
10616 # built for inclusion in a dll (and should export symbols for example).
10617 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10618 ;;
10619 darwin* | rhapsody*)
10620 # PIC is the default on this platform
10621 # Common symbols not allowed in MH_DYLIB files
10622 lt_prog_compiler_pic_CXX='-fno-common'
10623 ;;
10624 *djgpp*)
10625 # DJGPP does not support shared libraries at all
10626 lt_prog_compiler_pic_CXX=
10627 ;;
10628 sysv4*MP*)
10629 if test -d /usr/nec; then
10630 lt_prog_compiler_pic_CXX=-Kconform_pic
10631 fi
10632 ;;
10633 hpux*)
10634 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10635 # not for PA HP-UX.
10636 case "$host_cpu" in
10637 hppa*64*|ia64*)
10638 ;;
10639 *)
10640 lt_prog_compiler_pic_CXX='-fPIC'
10641 ;;
10642 esac
10643 ;;
10644 *)
10645 lt_prog_compiler_pic_CXX='-fPIC'
10646 ;;
10647 esac
10648 else
10649 case $host_os in
10650 aix4* | aix5*)
10651 # All AIX code is PIC.
10652 if test "$host_cpu" = ia64; then
10653 # AIX 5 now supports IA64 processor
10654 lt_prog_compiler_static_CXX='-Bstatic'
10655 else
10656 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10657 fi
10658 ;;
10659 chorus*)
10660 case $cc_basename in
10661 cxch68)
10662 # Green Hills C++ Compiler
10663 # _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"
10664 ;;
10665 esac
10666 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010667 darwin*)
10668 # PIC is the default on this platform
10669 # Common symbols not allowed in MH_DYLIB files
10670 case "$cc_basename" in
10671 xlc*)
10672 lt_prog_compiler_pic_CXX='-qnocommon'
10673 lt_prog_compiler_wl_CXX='-Wl,'
10674 ;;
10675 esac
10676 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010677 dgux*)
10678 case $cc_basename in
10679 ec++)
10680 lt_prog_compiler_pic_CXX='-KPIC'
10681 ;;
10682 ghcx)
10683 # Green Hills C++ Compiler
10684 lt_prog_compiler_pic_CXX='-pic'
10685 ;;
10686 *)
10687 ;;
10688 esac
10689 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010690 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000010691 # FreeBSD uses GNU C++
10692 ;;
10693 hpux9* | hpux10* | hpux11*)
10694 case $cc_basename in
10695 CC)
10696 lt_prog_compiler_wl_CXX='-Wl,'
10697 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10698 if test "$host_cpu" != ia64; then
10699 lt_prog_compiler_pic_CXX='+Z'
10700 fi
10701 ;;
10702 aCC)
10703 lt_prog_compiler_wl_CXX='-Wl,'
10704 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10705 case "$host_cpu" in
10706 hppa*64*|ia64*)
10707 # +Z the default
10708 ;;
10709 *)
10710 lt_prog_compiler_pic_CXX='+Z'
10711 ;;
10712 esac
10713 ;;
10714 *)
10715 ;;
10716 esac
10717 ;;
10718 irix5* | irix6* | nonstopux*)
10719 case $cc_basename in
10720 CC)
10721 lt_prog_compiler_wl_CXX='-Wl,'
10722 lt_prog_compiler_static_CXX='-non_shared'
10723 # CC pic flag -KPIC is the default.
10724 ;;
10725 *)
10726 ;;
10727 esac
10728 ;;
10729 linux*)
10730 case $cc_basename in
10731 KCC)
10732 # KAI C++ Compiler
10733 lt_prog_compiler_wl_CXX='--backend -Wl,'
10734 lt_prog_compiler_pic_CXX='-fPIC'
10735 ;;
10736 icpc)
10737 # Intel C++
10738 lt_prog_compiler_wl_CXX='-Wl,'
10739 lt_prog_compiler_pic_CXX='-KPIC'
10740 lt_prog_compiler_static_CXX='-static'
10741 ;;
10742 cxx)
10743 # Compaq C++
10744 # Make sure the PIC flag is empty. It appears that all Alpha
10745 # Linux and Compaq Tru64 Unix objects are PIC.
10746 lt_prog_compiler_pic_CXX=
10747 lt_prog_compiler_static_CXX='-non_shared'
10748 ;;
10749 *)
10750 ;;
10751 esac
10752 ;;
10753 lynxos*)
10754 ;;
10755 m88k*)
10756 ;;
10757 mvs*)
10758 case $cc_basename in
10759 cxx)
10760 lt_prog_compiler_pic_CXX='-W c,exportall'
10761 ;;
10762 *)
10763 ;;
10764 esac
10765 ;;
10766 netbsd*)
10767 ;;
10768 osf3* | osf4* | osf5*)
10769 case $cc_basename in
10770 KCC)
10771 lt_prog_compiler_wl_CXX='--backend -Wl,'
10772 ;;
10773 RCC)
10774 # Rational C++ 2.4.1
10775 lt_prog_compiler_pic_CXX='-pic'
10776 ;;
10777 cxx)
10778 # Digital/Compaq C++
10779 lt_prog_compiler_wl_CXX='-Wl,'
10780 # Make sure the PIC flag is empty. It appears that all Alpha
10781 # Linux and Compaq Tru64 Unix objects are PIC.
10782 lt_prog_compiler_pic_CXX=
10783 lt_prog_compiler_static_CXX='-non_shared'
10784 ;;
10785 *)
10786 ;;
10787 esac
10788 ;;
10789 psos*)
10790 ;;
10791 sco*)
10792 case $cc_basename in
10793 CC)
10794 lt_prog_compiler_pic_CXX='-fPIC'
10795 ;;
10796 *)
10797 ;;
10798 esac
10799 ;;
10800 solaris*)
10801 case $cc_basename in
10802 CC)
10803 # Sun C++ 4.2, 5.x and Centerline C++
10804 lt_prog_compiler_pic_CXX='-KPIC'
10805 lt_prog_compiler_static_CXX='-Bstatic'
10806 lt_prog_compiler_wl_CXX='-Qoption ld '
10807 ;;
10808 gcx)
10809 # Green Hills C++ Compiler
10810 lt_prog_compiler_pic_CXX='-PIC'
10811 ;;
10812 *)
10813 ;;
10814 esac
10815 ;;
10816 sunos4*)
10817 case $cc_basename in
10818 CC)
10819 # Sun C++ 4.x
10820 lt_prog_compiler_pic_CXX='-pic'
10821 lt_prog_compiler_static_CXX='-Bstatic'
10822 ;;
10823 lcc)
10824 # Lucid
10825 lt_prog_compiler_pic_CXX='-pic'
10826 ;;
10827 *)
10828 ;;
10829 esac
10830 ;;
10831 tandem*)
10832 case $cc_basename in
10833 NCC)
10834 # NonStop-UX NCC 3.20
10835 lt_prog_compiler_pic_CXX='-KPIC'
10836 ;;
10837 *)
10838 ;;
10839 esac
10840 ;;
10841 unixware*)
10842 ;;
10843 vxworks*)
10844 ;;
10845 *)
10846 lt_prog_compiler_can_build_shared_CXX=no
10847 ;;
10848 esac
10849 fi
10850
10851echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10852echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10853
10854#
10855# Check to make sure the PIC flag actually works.
10856#
10857if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010858
10859echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010860echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10861if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10862 echo $ECHO_N "(cached) $ECHO_C" >&6
10863else
10864 lt_prog_compiler_pic_works_CXX=no
10865 ac_outfile=conftest.$ac_objext
10866 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10867 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10868 # Insert the option either (1) after the last *FLAGS variable, or
10869 # (2) before a word containing "conftest.", or (3) at the end.
10870 # Note that $ac_compile itself does not contain backslashes and begins
10871 # with a dollar sign (not a hyphen), so the echo should work correctly.
10872 # The option is referenced via a variable to avoid confusing sed.
10873 lt_compile=`echo "$ac_compile" | $SED \
10874 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10875 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10876 -e 's:$: $lt_compiler_flag:'`
John Criswell5fbb1f82004-09-24 13:28:51 +000010877 (eval echo "\"\$as_me:10877: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010878 (eval "$lt_compile" 2>conftest.err)
10879 ac_status=$?
10880 cat conftest.err >&5
John Criswell5fbb1f82004-09-24 13:28:51 +000010881 echo "$as_me:10881: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010882 if (exit $ac_status) && test -s "$ac_outfile"; then
10883 # The compiler can only warn and ignore the option if not recognized
10884 # So say no if there are warnings
10885 if test ! -s conftest.err; then
10886 lt_prog_compiler_pic_works_CXX=yes
10887 fi
10888 fi
10889 $rm conftest*
10890
10891fi
10892echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10893echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10894
10895if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10896 case $lt_prog_compiler_pic_CXX in
10897 "" | " "*) ;;
10898 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10899 esac
10900else
10901 lt_prog_compiler_pic_CXX=
10902 lt_prog_compiler_can_build_shared_CXX=no
10903fi
10904
10905fi
10906case "$host_os" in
10907 # For platforms which do not support PIC, -DPIC is meaningless:
10908 *djgpp*)
10909 lt_prog_compiler_pic_CXX=
10910 ;;
10911 *)
10912 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10913 ;;
10914esac
10915
10916echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10917echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10918if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10919 echo $ECHO_N "(cached) $ECHO_C" >&6
10920else
10921 lt_cv_prog_compiler_c_o_CXX=no
10922 $rm -r conftest 2>/dev/null
10923 mkdir conftest
10924 cd conftest
10925 mkdir out
10926 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10927
John Criswell47fdd832003-07-14 16:52:07 +000010928 lt_compiler_flag="-o out/conftest2.$ac_objext"
10929 # Insert the option either (1) after the last *FLAGS variable, or
10930 # (2) before a word containing "conftest.", or (3) at the end.
10931 # Note that $ac_compile itself does not contain backslashes and begins
10932 # with a dollar sign (not a hyphen), so the echo should work correctly.
10933 lt_compile=`echo "$ac_compile" | $SED \
10934 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10936 -e 's:$: $lt_compiler_flag:'`
John Criswell5fbb1f82004-09-24 13:28:51 +000010937 (eval echo "\"\$as_me:10937: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010938 (eval "$lt_compile" 2>out/conftest.err)
10939 ac_status=$?
10940 cat out/conftest.err >&5
John Criswell5fbb1f82004-09-24 13:28:51 +000010941 echo "$as_me:10941: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010942 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10943 then
10944 # The compiler can only warn and ignore the option if not recognized
10945 # So say no if there are warnings
10946 if test ! -s out/conftest.err; then
10947 lt_cv_prog_compiler_c_o_CXX=yes
10948 fi
10949 fi
10950 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000010951 $rm conftest*
10952 # SGI C++ compiler will create directory out/ii_files/ for
10953 # template instantiation
10954 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10955 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000010956 cd ..
10957 rmdir conftest
10958 $rm conftest*
10959
10960fi
10961echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10962echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10963
10964
10965hard_links="nottested"
10966if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10967 # do not overwrite the value of need_locks provided by the user
10968 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10969echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10970 hard_links=yes
10971 $rm conftest*
10972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10973 touch conftest.a
10974 ln conftest.a conftest.b 2>&5 || hard_links=no
10975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10976 echo "$as_me:$LINENO: result: $hard_links" >&5
10977echo "${ECHO_T}$hard_links" >&6
10978 if test "$hard_links" = no; then
10979 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10980echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10981 need_locks=warn
10982 fi
10983else
10984 need_locks=no
10985fi
10986
10987echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10988echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10989
10990 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10991 case $host_os in
10992 aix4* | aix5*)
10993 # If we're using GNU nm, then we don't want the "-C" option.
10994 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10995 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10996 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'
10997 else
10998 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'
10999 fi
11000 ;;
11001 pw32*)
11002 export_symbols_cmds_CXX="$ltdll_cmds"
11003 ;;
11004 cygwin* | mingw*)
11005 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11006 ;;
11007 *)
11008 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11009 ;;
11010 esac
11011
11012echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11013echo "${ECHO_T}$ld_shlibs_CXX" >&6
11014test "$ld_shlibs_CXX" = no && can_build_shared=no
11015
11016variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11017if test "$GCC" = yes; then
11018 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11019fi
11020
11021#
11022# Do we need to explicitly link libc?
11023#
11024case "x$archive_cmds_need_lc_CXX" in
11025x|xyes)
11026 # Assume -lc should be added
11027 archive_cmds_need_lc_CXX=yes
11028
11029 if test "$enable_shared" = yes && test "$GCC" = yes; then
11030 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011031 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000011032 # FIXME: we may have to deal with multi-command sequences.
11033 ;;
11034 '$CC '*)
11035 # Test whether the compiler implicitly links with -lc since on some
11036 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11037 # to ld, don't add -lc before -lgcc.
11038 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11039echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11040 $rm conftest*
11041 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11042
11043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11044 (eval $ac_compile) 2>&5
11045 ac_status=$?
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } 2>conftest.err; then
11048 soname=conftest
11049 lib=conftest
11050 libobjs=conftest.$ac_objext
11051 deplibs=
11052 wl=$lt_prog_compiler_wl_CXX
11053 compiler_flags=-v
11054 linker_flags=-v
11055 verstring=
11056 output_objdir=.
11057 libname=conftest
11058 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11059 allow_undefined_flag_CXX=
11060 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11061 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11062 ac_status=$?
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); }
11065 then
11066 archive_cmds_need_lc_CXX=no
11067 else
11068 archive_cmds_need_lc_CXX=yes
11069 fi
11070 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11071 else
11072 cat conftest.err 1>&5
11073 fi
11074 $rm conftest*
11075 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11076echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11077 ;;
11078 esac
11079 fi
11080 ;;
11081esac
11082
John Criswell47fdd832003-07-14 16:52:07 +000011083echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11084echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11085library_names_spec=
11086libname_spec='lib$name'
11087soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000011088shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000011089postinstall_cmds=
11090postuninstall_cmds=
11091finish_cmds=
11092finish_eval=
11093shlibpath_var=
11094shlibpath_overrides_runpath=unknown
11095version_type=none
11096dynamic_linker="$host_os ld.so"
11097sys_lib_dlsearch_path_spec="/lib /usr/lib"
11098if test "$GCC" = yes; then
11099 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11100 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11101 # if the path contains ";" then we assume it to be the separator
11102 # otherwise default to the standard path separator (i.e. ":") - it is
11103 # assumed that no part of a normal pathname contains ";" but that should
11104 # okay in the real world where ";" in dirpaths is itself problematic.
11105 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11106 else
11107 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11108 fi
11109else
11110 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11111fi
11112need_lib_prefix=unknown
11113hardcode_into_libs=no
11114
11115# when you set need_version to no, make sure it does not cause -set_version
11116# flags to be left without arguments
11117need_version=unknown
11118
11119case $host_os in
11120aix3*)
11121 version_type=linux
11122 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11123 shlibpath_var=LIBPATH
11124
11125 # AIX 3 has no versioning support, so we append a major version to the name.
11126 soname_spec='${libname}${release}${shared_ext}$major'
11127 ;;
11128
11129aix4* | aix5*)
11130 version_type=linux
11131 need_lib_prefix=no
11132 need_version=no
11133 hardcode_into_libs=yes
11134 if test "$host_cpu" = ia64; then
11135 # AIX 5 supports IA64
11136 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11137 shlibpath_var=LD_LIBRARY_PATH
11138 else
11139 # With GCC up to 2.95.x, collect2 would create an import file
11140 # for dependence libraries. The import file would start with
11141 # the line `#! .'. This would cause the generated library to
11142 # depend on `.', always an invalid library. This was fixed in
11143 # development snapshots of GCC prior to 3.0.
11144 case $host_os in
11145 aix4 | aix4.[01] | aix4.[01].*)
11146 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11147 echo ' yes '
11148 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11149 :
11150 else
11151 can_build_shared=no
11152 fi
11153 ;;
11154 esac
11155 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11156 # soname into executable. Probably we can add versioning support to
11157 # collect2, so additional links can be useful in future.
11158 if test "$aix_use_runtimelinking" = yes; then
11159 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11160 # instead of lib<name>.a to let people know that these are not
11161 # typical AIX shared libraries.
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 else
11164 # We preserve .a as extension for shared libraries through AIX4.2
11165 # and later when we are not doing run time linking.
11166 library_names_spec='${libname}${release}.a $libname.a'
11167 soname_spec='${libname}${release}${shared_ext}$major'
11168 fi
11169 shlibpath_var=LIBPATH
11170 fi
11171 ;;
11172
11173amigaos*)
11174 library_names_spec='$libname.ixlibrary $libname.a'
11175 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011176 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 +000011177 ;;
11178
11179beos*)
11180 library_names_spec='${libname}${shared_ext}'
11181 dynamic_linker="$host_os ld.so"
11182 shlibpath_var=LIBRARY_PATH
11183 ;;
11184
Reid Spencer2706f8c2004-09-19 23:53:36 +000011185bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000011186 version_type=linux
11187 need_version=no
11188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11189 soname_spec='${libname}${release}${shared_ext}$major'
11190 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11191 shlibpath_var=LD_LIBRARY_PATH
11192 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11193 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11194 # the default ld.so.conf also contains /usr/contrib/lib and
11195 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11196 # libtool to hard-code these into programs
11197 ;;
11198
11199cygwin* | mingw* | pw32*)
11200 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000011201 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000011202 need_version=no
11203 need_lib_prefix=no
11204
11205 case $GCC,$host_os in
11206 yes,cygwin* | yes,mingw* | yes,pw32*)
11207 library_names_spec='$libname.dll.a'
11208 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer2706f8c2004-09-19 23:53:36 +000011209 postinstall_cmds='base_file=`basename \${file}`;
11210 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
11211 dldir=$destdir/`dirname \$dlpath`;
11212 test -d \$dldir || mkdir -p \$dldir;
John Criswell47fdd832003-07-14 16:52:07 +000011213 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer2706f8c2004-09-19 23:53:36 +000011214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
11215 dlpath=$dir/\$dldll;
John Criswell47fdd832003-07-14 16:52:07 +000011216 $rm \$dlpath'
11217 shlibpath_overrides_runpath=yes
11218
11219 case $host_os in
11220 cygwin*)
11221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11222 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 +000011223 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000011224 ;;
11225 mingw*)
11226 # MinGW DLLs use traditional 'lib' prefix
11227 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11228 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11229 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11230 # It is most probably a Windows format PATH printed by
11231 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11232 # path with ; separators, and with drive letters. We can handle the
11233 # drive letters (cygwin fileutils understands them), so leave them,
11234 # especially as we might pass files found there to a mingw objdump,
11235 # which wouldn't understand a cygwinified path. Ahh.
11236 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11237 else
11238 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11239 fi
11240 ;;
11241 pw32*)
11242 # pw32 DLLs use 'pw' prefix rather than 'lib'
11243 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11244 ;;
11245 esac
11246 ;;
11247
11248 *)
11249 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11250 ;;
11251 esac
11252 dynamic_linker='Win32 ld.exe'
11253 # FIXME: first we should search . and the directory the executable is in
11254 shlibpath_var=PATH
11255 ;;
11256
11257darwin* | rhapsody*)
11258 dynamic_linker="$host_os dyld"
11259 version_type=darwin
11260 need_lib_prefix=no
11261 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000011262 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000011263 soname_spec='${libname}${release}${major}$shared_ext'
11264 shlibpath_overrides_runpath=yes
11265 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000011266 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000011267 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011268 if test "$GCC" = yes; then
11269 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"`
11270 else
11271 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000011272 fi
11273 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11274 ;;
11275
11276dgux*)
11277 version_type=linux
11278 need_lib_prefix=no
11279 need_version=no
11280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11281 soname_spec='${libname}${release}${shared_ext}$major'
11282 shlibpath_var=LD_LIBRARY_PATH
11283 ;;
11284
11285freebsd1*)
11286 dynamic_linker=no
11287 ;;
11288
Reid Spencer2706f8c2004-09-19 23:53:36 +000011289kfreebsd*-gnu)
11290 version_type=linux
11291 need_lib_prefix=no
11292 need_version=no
11293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11294 soname_spec='${libname}${release}${shared_ext}$major'
11295 shlibpath_var=LD_LIBRARY_PATH
11296 shlibpath_overrides_runpath=no
11297 hardcode_into_libs=yes
11298 dynamic_linker='GNU ld.so'
11299 ;;
11300
John Criswell47fdd832003-07-14 16:52:07 +000011301freebsd*)
11302 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11303 version_type=freebsd-$objformat
11304 case $version_type in
11305 freebsd-elf*)
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11307 need_version=no
11308 need_lib_prefix=no
11309 ;;
11310 freebsd-*)
11311 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11312 need_version=yes
11313 ;;
11314 esac
11315 shlibpath_var=LD_LIBRARY_PATH
11316 case $host_os in
11317 freebsd2*)
11318 shlibpath_overrides_runpath=yes
11319 ;;
11320 freebsd3.01* | freebsdelf3.01*)
11321 shlibpath_overrides_runpath=yes
11322 hardcode_into_libs=yes
11323 ;;
11324 *) # from 3.2 on
11325 shlibpath_overrides_runpath=no
11326 hardcode_into_libs=yes
11327 ;;
11328 esac
11329 ;;
11330
11331gnu*)
11332 version_type=linux
11333 need_lib_prefix=no
11334 need_version=no
11335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11336 soname_spec='${libname}${release}${shared_ext}$major'
11337 shlibpath_var=LD_LIBRARY_PATH
11338 hardcode_into_libs=yes
11339 ;;
11340
11341hpux9* | hpux10* | hpux11*)
11342 # Give a soname corresponding to the major version so that dld.sl refuses to
11343 # link against other versions.
11344 version_type=sunos
11345 need_lib_prefix=no
11346 need_version=no
11347 case "$host_cpu" in
11348 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011349 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000011350 hardcode_into_libs=yes
11351 dynamic_linker="$host_os dld.so"
11352 shlibpath_var=LD_LIBRARY_PATH
11353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
11357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11358 else
11359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11360 fi
11361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11362 ;;
11363 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011364 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000011365 hardcode_into_libs=yes
11366 dynamic_linker="$host_os dld.sl"
11367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11370 soname_spec='${libname}${release}${shared_ext}$major'
11371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11373 ;;
11374 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011375 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000011376 dynamic_linker="$host_os dld.sl"
11377 shlibpath_var=SHLIB_PATH
11378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 ;;
11382 esac
11383 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11384 postinstall_cmds='chmod 555 $lib'
11385 ;;
11386
11387irix5* | irix6* | nonstopux*)
11388 case $host_os in
11389 nonstopux*) version_type=nonstopux ;;
11390 *)
11391 if test "$lt_cv_prog_gnu_ld" = yes; then
11392 version_type=linux
11393 else
11394 version_type=irix
11395 fi ;;
11396 esac
11397 need_lib_prefix=no
11398 need_version=no
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11401 case $host_os in
11402 irix5* | nonstopux*)
11403 libsuff= shlibsuff=
11404 ;;
11405 *)
11406 case $LD in # libtool.m4 will add one of these switches to LD
11407 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11408 libsuff= shlibsuff= libmagic=32-bit;;
11409 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11410 libsuff=32 shlibsuff=N32 libmagic=N32;;
11411 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11412 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11413 *) libsuff= shlibsuff= libmagic=never-match;;
11414 esac
11415 ;;
11416 esac
11417 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11418 shlibpath_overrides_runpath=no
11419 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11420 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11421 hardcode_into_libs=yes
11422 ;;
11423
11424# No shared lib support for Linux oldld, aout, or coff.
11425linux*oldld* | linux*aout* | linux*coff*)
11426 dynamic_linker=no
11427 ;;
11428
11429# This must be Linux ELF.
11430linux*)
11431 version_type=linux
11432 need_lib_prefix=no
11433 need_version=no
11434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435 soname_spec='${libname}${release}${shared_ext}$major'
11436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 shlibpath_overrides_runpath=no
11439 # This implies no fast_install, which is unacceptable.
11440 # Some rework will be needed to allow for fast_install
11441 # before this can be enabled.
11442 hardcode_into_libs=yes
11443
Reid Spencer2706f8c2004-09-19 23:53:36 +000011444 # Append ld.so.conf contents to the search path
11445 if test -f /etc/ld.so.conf; then
11446 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11447 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11448 fi
11449
John Criswell47fdd832003-07-14 16:52:07 +000011450 # We used to test for /lib/ld.so.1 and disable shared libraries on
11451 # powerpc, because MkLinux only supported shared libraries with the
11452 # GNU dynamic linker. Since this was broken with cross compilers,
11453 # most powerpc-linux boxes support dynamic linking these days and
11454 # people can always --disable-shared, the test was removed, and we
11455 # assume the GNU/Linux dynamic linker is in use.
11456 dynamic_linker='GNU/Linux ld.so'
11457 ;;
11458
Reid Spencer2706f8c2004-09-19 23:53:36 +000011459knetbsd*-gnu)
11460 version_type=linux
11461 need_lib_prefix=no
11462 need_version=no
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11464 soname_spec='${libname}${release}${shared_ext}$major'
11465 shlibpath_var=LD_LIBRARY_PATH
11466 shlibpath_overrides_runpath=no
11467 hardcode_into_libs=yes
11468 dynamic_linker='GNU ld.so'
11469 ;;
11470
John Criswell47fdd832003-07-14 16:52:07 +000011471netbsd*)
11472 version_type=sunos
11473 need_lib_prefix=no
11474 need_version=no
11475 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11477 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11478 dynamic_linker='NetBSD (a.out) ld.so'
11479 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000011481 soname_spec='${libname}${release}${shared_ext}$major'
11482 dynamic_linker='NetBSD ld.elf_so'
11483 fi
11484 shlibpath_var=LD_LIBRARY_PATH
11485 shlibpath_overrides_runpath=yes
11486 hardcode_into_libs=yes
11487 ;;
11488
11489newsos6)
11490 version_type=linux
11491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11492 shlibpath_var=LD_LIBRARY_PATH
11493 shlibpath_overrides_runpath=yes
11494 ;;
11495
Reid Spencer2706f8c2004-09-19 23:53:36 +000011496nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000011497 version_type=linux
11498 need_lib_prefix=no
11499 need_version=no
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11501 soname_spec='${libname}${release}${shared_ext}$major'
11502 shlibpath_var=LD_LIBRARY_PATH
11503 shlibpath_overrides_runpath=yes
11504 ;;
11505
11506openbsd*)
11507 version_type=sunos
11508 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000011509 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000011510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11512 shlibpath_var=LD_LIBRARY_PATH
11513 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11514 case $host_os in
11515 openbsd2.[89] | openbsd2.[89].*)
11516 shlibpath_overrides_runpath=no
11517 ;;
11518 *)
11519 shlibpath_overrides_runpath=yes
11520 ;;
11521 esac
11522 else
11523 shlibpath_overrides_runpath=yes
11524 fi
11525 ;;
11526
11527os2*)
11528 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000011529 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000011530 need_lib_prefix=no
11531 library_names_spec='$libname${shared_ext} $libname.a'
11532 dynamic_linker='OS/2 ld.exe'
11533 shlibpath_var=LIBPATH
11534 ;;
11535
11536osf3* | osf4* | osf5*)
11537 version_type=osf
11538 need_lib_prefix=no
11539 need_version=no
11540 soname_spec='${libname}${release}${shared_ext}$major'
11541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11542 shlibpath_var=LD_LIBRARY_PATH
11543 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11544 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11545 ;;
11546
11547sco3.2v5*)
11548 version_type=osf
11549 soname_spec='${libname}${release}${shared_ext}$major'
11550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11551 shlibpath_var=LD_LIBRARY_PATH
11552 ;;
11553
11554solaris*)
11555 version_type=linux
11556 need_lib_prefix=no
11557 need_version=no
11558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11559 soname_spec='${libname}${release}${shared_ext}$major'
11560 shlibpath_var=LD_LIBRARY_PATH
11561 shlibpath_overrides_runpath=yes
11562 hardcode_into_libs=yes
11563 # ldd complains unless libraries are executable
11564 postinstall_cmds='chmod +x $lib'
11565 ;;
11566
11567sunos4*)
11568 version_type=sunos
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11570 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=yes
11573 if test "$with_gnu_ld" = yes; then
11574 need_lib_prefix=no
11575 fi
11576 need_version=yes
11577 ;;
11578
11579sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11580 version_type=linux
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 case $host_vendor in
11585 sni)
11586 shlibpath_overrides_runpath=no
11587 need_lib_prefix=no
11588 export_dynamic_flag_spec='${wl}-Blargedynsym'
11589 runpath_var=LD_RUN_PATH
11590 ;;
11591 siemens)
11592 need_lib_prefix=no
11593 ;;
11594 motorola)
11595 need_lib_prefix=no
11596 need_version=no
11597 shlibpath_overrides_runpath=no
11598 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11599 ;;
11600 esac
11601 ;;
11602
11603sysv4*MP*)
11604 if test -d /usr/nec ;then
11605 version_type=linux
11606 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11607 soname_spec='$libname${shared_ext}.$major'
11608 shlibpath_var=LD_LIBRARY_PATH
11609 fi
11610 ;;
11611
11612uts4*)
11613 version_type=linux
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11615 soname_spec='${libname}${release}${shared_ext}$major'
11616 shlibpath_var=LD_LIBRARY_PATH
11617 ;;
11618
11619*)
11620 dynamic_linker=no
11621 ;;
11622esac
11623echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11624echo "${ECHO_T}$dynamic_linker" >&6
11625test "$dynamic_linker" = no && can_build_shared=no
11626
Reid Spencer2706f8c2004-09-19 23:53:36 +000011627echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11628echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11629hardcode_action_CXX=
11630if test -n "$hardcode_libdir_flag_spec_CXX" || \
11631 test -n "$runpath_var_CXX" || \
11632 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11633
11634 # We can hardcode non-existant directories.
11635 if test "$hardcode_direct_CXX" != no &&
11636 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11637 # have to relink, otherwise we might link with an installed library
11638 # when we should be linking with a yet-to-be-installed one
11639 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11640 test "$hardcode_minus_L_CXX" != no; then
11641 # Linking always hardcodes the temporary library directory.
11642 hardcode_action_CXX=relink
11643 else
11644 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11645 hardcode_action_CXX=immediate
11646 fi
11647else
11648 # We cannot hardcode anything, or else we can only hardcode existing
11649 # directories.
11650 hardcode_action_CXX=unsupported
11651fi
11652echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11653echo "${ECHO_T}$hardcode_action_CXX" >&6
11654
11655if test "$hardcode_action_CXX" = relink; then
11656 # Fast installation is not supported
11657 enable_fast_install=no
11658elif test "$shlibpath_overrides_runpath" = yes ||
11659 test "$enable_shared" = no; then
11660 # Fast installation is not necessary
11661 enable_fast_install=needless
11662fi
11663
11664striplib=
11665old_striplib=
11666echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11667echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11668if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11669 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11670 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11671 echo "$as_me:$LINENO: result: yes" >&5
11672echo "${ECHO_T}yes" >&6
11673else
11674# FIXME - insert some real tests, host_os isn't really good enough
11675 case $host_os in
11676 darwin*)
11677 if test -n "$STRIP" ; then
11678 striplib="$STRIP -x"
11679 echo "$as_me:$LINENO: result: yes" >&5
11680echo "${ECHO_T}yes" >&6
11681 else
11682 echo "$as_me:$LINENO: result: no" >&5
11683echo "${ECHO_T}no" >&6
11684fi
11685 ;;
11686 *)
11687 echo "$as_me:$LINENO: result: no" >&5
11688echo "${ECHO_T}no" >&6
11689 ;;
11690 esac
11691fi
11692
John Criswell47fdd832003-07-14 16:52:07 +000011693if test "x$enable_dlopen" != xyes; then
11694 enable_dlopen=unknown
11695 enable_dlopen_self=unknown
11696 enable_dlopen_self_static=unknown
11697else
11698 lt_cv_dlopen=no
11699 lt_cv_dlopen_libs=
11700
11701 case $host_os in
11702 beos*)
11703 lt_cv_dlopen="load_add_on"
11704 lt_cv_dlopen_libs=
11705 lt_cv_dlopen_self=yes
11706 ;;
11707
11708 mingw* | pw32*)
11709 lt_cv_dlopen="LoadLibrary"
11710 lt_cv_dlopen_libs=
11711 ;;
11712
11713 cygwin*)
11714 lt_cv_dlopen="dlopen"
11715 lt_cv_dlopen_libs=
11716 ;;
11717
11718 darwin*)
11719 # if libdl is installed we need to link against it
11720 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11721echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11722if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11723 echo $ECHO_N "(cached) $ECHO_C" >&6
11724else
11725 ac_check_lib_save_LIBS=$LIBS
11726LIBS="-ldl $LIBS"
11727cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011728/* confdefs.h. */
11729_ACEOF
11730cat confdefs.h >>conftest.$ac_ext
11731cat >>conftest.$ac_ext <<_ACEOF
11732/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011733
11734/* Override any gcc2 internal prototype to avoid an error. */
11735#ifdef __cplusplus
11736extern "C"
11737#endif
11738/* We use char because int might match the return type of a gcc2
11739 builtin and then its argument prototype would still apply. */
11740char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011741int
11742main ()
11743{
11744dlopen ();
11745 ;
11746 return 0;
11747}
11748_ACEOF
11749rm -f conftest.$ac_objext conftest$ac_exeext
11750if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011751 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011752 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011753 grep -v '^ *+' conftest.er1 >conftest.err
11754 rm -f conftest.er1
11755 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011758 { ac_try='test -z "$ac_cxx_werror_flag"
11759 || test ! -s conftest.err'
11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11761 (eval $ac_try) 2>&5
11762 ac_status=$?
11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11764 (exit $ac_status); }; } &&
11765 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11767 (eval $ac_try) 2>&5
11768 ac_status=$?
11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11770 (exit $ac_status); }; }; then
11771 ac_cv_lib_dl_dlopen=yes
11772else
11773 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011774sed 's/^/| /' conftest.$ac_ext >&5
11775
John Criswell47fdd832003-07-14 16:52:07 +000011776ac_cv_lib_dl_dlopen=no
11777fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011778rm -f conftest.err conftest.$ac_objext \
11779 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011780LIBS=$ac_check_lib_save_LIBS
11781fi
11782echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11783echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11784if test $ac_cv_lib_dl_dlopen = yes; then
11785 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11786else
11787
11788 lt_cv_dlopen="dyld"
11789 lt_cv_dlopen_libs=
11790 lt_cv_dlopen_self=yes
11791
11792fi
11793
11794 ;;
11795
11796 *)
11797 echo "$as_me:$LINENO: checking for shl_load" >&5
11798echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11799if test "${ac_cv_func_shl_load+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11801else
11802 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011803/* confdefs.h. */
11804_ACEOF
11805cat confdefs.h >>conftest.$ac_ext
11806cat >>conftest.$ac_ext <<_ACEOF
11807/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011808/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11809 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11810#define shl_load innocuous_shl_load
11811
John Criswell47fdd832003-07-14 16:52:07 +000011812/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011813 which can conflict with char shl_load (); below.
11814 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11815 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011816
John Criswell0c38eaf2003-09-10 15:17:25 +000011817#ifdef __STDC__
11818# include <limits.h>
11819#else
11820# include <assert.h>
11821#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000011822
11823#undef shl_load
11824
John Criswell47fdd832003-07-14 16:52:07 +000011825/* Override any gcc2 internal prototype to avoid an error. */
11826#ifdef __cplusplus
11827extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011828{
John Criswell47fdd832003-07-14 16:52:07 +000011829#endif
11830/* We use char because int might match the return type of a gcc2
11831 builtin and then its argument prototype would still apply. */
11832char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011833/* The GNU C library defines this for functions which it implements
11834 to always fail with ENOSYS. Some functions are actually named
11835 something starting with __ and the normal name is an alias. */
11836#if defined (__stub_shl_load) || defined (__stub___shl_load)
11837choke me
11838#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011839char (*f) () = shl_load;
11840#endif
11841#ifdef __cplusplus
11842}
John Criswell47fdd832003-07-14 16:52:07 +000011843#endif
11844
John Criswell0c38eaf2003-09-10 15:17:25 +000011845int
11846main ()
11847{
11848return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011849 ;
11850 return 0;
11851}
11852_ACEOF
11853rm -f conftest.$ac_objext conftest$ac_exeext
11854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011855 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011856 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011857 grep -v '^ *+' conftest.er1 >conftest.err
11858 rm -f conftest.er1
11859 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011862 { ac_try='test -z "$ac_cxx_werror_flag"
11863 || test ! -s conftest.err'
11864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11865 (eval $ac_try) 2>&5
11866 ac_status=$?
11867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868 (exit $ac_status); }; } &&
11869 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871 (eval $ac_try) 2>&5
11872 ac_status=$?
11873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874 (exit $ac_status); }; }; then
11875 ac_cv_func_shl_load=yes
11876else
11877 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011878sed 's/^/| /' conftest.$ac_ext >&5
11879
John Criswell47fdd832003-07-14 16:52:07 +000011880ac_cv_func_shl_load=no
11881fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011882rm -f conftest.err conftest.$ac_objext \
11883 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011884fi
11885echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11886echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11887if test $ac_cv_func_shl_load = yes; then
11888 lt_cv_dlopen="shl_load"
11889else
11890 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11891echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11892if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11894else
11895 ac_check_lib_save_LIBS=$LIBS
11896LIBS="-ldld $LIBS"
11897cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011898/* confdefs.h. */
11899_ACEOF
11900cat confdefs.h >>conftest.$ac_ext
11901cat >>conftest.$ac_ext <<_ACEOF
11902/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011903
11904/* Override any gcc2 internal prototype to avoid an error. */
11905#ifdef __cplusplus
11906extern "C"
11907#endif
11908/* We use char because int might match the return type of a gcc2
11909 builtin and then its argument prototype would still apply. */
11910char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011911int
11912main ()
11913{
11914shl_load ();
11915 ;
11916 return 0;
11917}
11918_ACEOF
11919rm -f conftest.$ac_objext conftest$ac_exeext
11920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011921 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011922 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011923 grep -v '^ *+' conftest.er1 >conftest.err
11924 rm -f conftest.er1
11925 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011928 { ac_try='test -z "$ac_cxx_werror_flag"
11929 || test ! -s conftest.err'
11930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11931 (eval $ac_try) 2>&5
11932 ac_status=$?
11933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11934 (exit $ac_status); }; } &&
11935 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11937 (eval $ac_try) 2>&5
11938 ac_status=$?
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); }; }; then
11941 ac_cv_lib_dld_shl_load=yes
11942else
11943 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011944sed 's/^/| /' conftest.$ac_ext >&5
11945
John Criswell47fdd832003-07-14 16:52:07 +000011946ac_cv_lib_dld_shl_load=no
11947fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011948rm -f conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011950LIBS=$ac_check_lib_save_LIBS
11951fi
11952echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11953echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11954if test $ac_cv_lib_dld_shl_load = yes; then
11955 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11956else
11957 echo "$as_me:$LINENO: checking for dlopen" >&5
11958echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11959if test "${ac_cv_func_dlopen+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11961else
11962 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011963/* confdefs.h. */
11964_ACEOF
11965cat confdefs.h >>conftest.$ac_ext
11966cat >>conftest.$ac_ext <<_ACEOF
11967/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011968/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11970#define dlopen innocuous_dlopen
11971
John Criswell47fdd832003-07-14 16:52:07 +000011972/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011973 which can conflict with char dlopen (); below.
11974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011976
John Criswell0c38eaf2003-09-10 15:17:25 +000011977#ifdef __STDC__
11978# include <limits.h>
11979#else
11980# include <assert.h>
11981#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000011982
11983#undef dlopen
11984
John Criswell47fdd832003-07-14 16:52:07 +000011985/* Override any gcc2 internal prototype to avoid an error. */
11986#ifdef __cplusplus
11987extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011988{
John Criswell47fdd832003-07-14 16:52:07 +000011989#endif
11990/* We use char because int might match the return type of a gcc2
11991 builtin and then its argument prototype would still apply. */
11992char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011993/* The GNU C library defines this for functions which it implements
11994 to always fail with ENOSYS. Some functions are actually named
11995 something starting with __ and the normal name is an alias. */
11996#if defined (__stub_dlopen) || defined (__stub___dlopen)
11997choke me
11998#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011999char (*f) () = dlopen;
12000#endif
12001#ifdef __cplusplus
12002}
John Criswell47fdd832003-07-14 16:52:07 +000012003#endif
12004
John Criswell0c38eaf2003-09-10 15:17:25 +000012005int
12006main ()
12007{
12008return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000012009 ;
12010 return 0;
12011}
12012_ACEOF
12013rm -f conftest.$ac_objext conftest$ac_exeext
12014if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012015 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012016 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012017 grep -v '^ *+' conftest.er1 >conftest.err
12018 rm -f conftest.er1
12019 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012022 { ac_try='test -z "$ac_cxx_werror_flag"
12023 || test ! -s conftest.err'
12024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12025 (eval $ac_try) 2>&5
12026 ac_status=$?
12027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12028 (exit $ac_status); }; } &&
12029 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12031 (eval $ac_try) 2>&5
12032 ac_status=$?
12033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034 (exit $ac_status); }; }; then
12035 ac_cv_func_dlopen=yes
12036else
12037 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012038sed 's/^/| /' conftest.$ac_ext >&5
12039
John Criswell47fdd832003-07-14 16:52:07 +000012040ac_cv_func_dlopen=no
12041fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012042rm -f conftest.err conftest.$ac_objext \
12043 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012044fi
12045echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12046echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12047if test $ac_cv_func_dlopen = yes; then
12048 lt_cv_dlopen="dlopen"
12049else
12050 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12051echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12052if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12053 echo $ECHO_N "(cached) $ECHO_C" >&6
12054else
12055 ac_check_lib_save_LIBS=$LIBS
12056LIBS="-ldl $LIBS"
12057cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012058/* confdefs.h. */
12059_ACEOF
12060cat confdefs.h >>conftest.$ac_ext
12061cat >>conftest.$ac_ext <<_ACEOF
12062/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012063
12064/* Override any gcc2 internal prototype to avoid an error. */
12065#ifdef __cplusplus
12066extern "C"
12067#endif
12068/* We use char because int might match the return type of a gcc2
12069 builtin and then its argument prototype would still apply. */
12070char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012071int
12072main ()
12073{
12074dlopen ();
12075 ;
12076 return 0;
12077}
12078_ACEOF
12079rm -f conftest.$ac_objext conftest$ac_exeext
12080if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012081 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012082 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012083 grep -v '^ *+' conftest.er1 >conftest.err
12084 rm -f conftest.er1
12085 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012088 { ac_try='test -z "$ac_cxx_werror_flag"
12089 || test ! -s conftest.err'
12090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12091 (eval $ac_try) 2>&5
12092 ac_status=$?
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; } &&
12095 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12097 (eval $ac_try) 2>&5
12098 ac_status=$?
12099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12100 (exit $ac_status); }; }; then
12101 ac_cv_lib_dl_dlopen=yes
12102else
12103 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012104sed 's/^/| /' conftest.$ac_ext >&5
12105
John Criswell47fdd832003-07-14 16:52:07 +000012106ac_cv_lib_dl_dlopen=no
12107fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012108rm -f conftest.err conftest.$ac_objext \
12109 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012110LIBS=$ac_check_lib_save_LIBS
12111fi
12112echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12113echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12114if test $ac_cv_lib_dl_dlopen = yes; then
12115 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12116else
12117 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12118echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12119if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12120 echo $ECHO_N "(cached) $ECHO_C" >&6
12121else
12122 ac_check_lib_save_LIBS=$LIBS
12123LIBS="-lsvld $LIBS"
12124cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012125/* confdefs.h. */
12126_ACEOF
12127cat confdefs.h >>conftest.$ac_ext
12128cat >>conftest.$ac_ext <<_ACEOF
12129/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012130
12131/* Override any gcc2 internal prototype to avoid an error. */
12132#ifdef __cplusplus
12133extern "C"
12134#endif
12135/* We use char because int might match the return type of a gcc2
12136 builtin and then its argument prototype would still apply. */
12137char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012138int
12139main ()
12140{
12141dlopen ();
12142 ;
12143 return 0;
12144}
12145_ACEOF
12146rm -f conftest.$ac_objext conftest$ac_exeext
12147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012148 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012149 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012150 grep -v '^ *+' conftest.er1 >conftest.err
12151 rm -f conftest.er1
12152 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12154 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012155 { ac_try='test -z "$ac_cxx_werror_flag"
12156 || test ! -s conftest.err'
12157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12158 (eval $ac_try) 2>&5
12159 ac_status=$?
12160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12161 (exit $ac_status); }; } &&
12162 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12164 (eval $ac_try) 2>&5
12165 ac_status=$?
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); }; }; then
12168 ac_cv_lib_svld_dlopen=yes
12169else
12170 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012171sed 's/^/| /' conftest.$ac_ext >&5
12172
John Criswell47fdd832003-07-14 16:52:07 +000012173ac_cv_lib_svld_dlopen=no
12174fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012175rm -f conftest.err conftest.$ac_objext \
12176 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012177LIBS=$ac_check_lib_save_LIBS
12178fi
12179echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12180echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12181if test $ac_cv_lib_svld_dlopen = yes; then
12182 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12183else
12184 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12185echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12186if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12187 echo $ECHO_N "(cached) $ECHO_C" >&6
12188else
12189 ac_check_lib_save_LIBS=$LIBS
12190LIBS="-ldld $LIBS"
12191cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012192/* confdefs.h. */
12193_ACEOF
12194cat confdefs.h >>conftest.$ac_ext
12195cat >>conftest.$ac_ext <<_ACEOF
12196/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012197
12198/* Override any gcc2 internal prototype to avoid an error. */
12199#ifdef __cplusplus
12200extern "C"
12201#endif
12202/* We use char because int might match the return type of a gcc2
12203 builtin and then its argument prototype would still apply. */
12204char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012205int
12206main ()
12207{
12208dld_link ();
12209 ;
12210 return 0;
12211}
12212_ACEOF
12213rm -f conftest.$ac_objext conftest$ac_exeext
12214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012215 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012216 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012217 grep -v '^ *+' conftest.er1 >conftest.err
12218 rm -f conftest.er1
12219 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012222 { ac_try='test -z "$ac_cxx_werror_flag"
12223 || test ! -s conftest.err'
12224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12225 (eval $ac_try) 2>&5
12226 ac_status=$?
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; } &&
12229 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12231 (eval $ac_try) 2>&5
12232 ac_status=$?
12233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12234 (exit $ac_status); }; }; then
12235 ac_cv_lib_dld_dld_link=yes
12236else
12237 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012238sed 's/^/| /' conftest.$ac_ext >&5
12239
John Criswell47fdd832003-07-14 16:52:07 +000012240ac_cv_lib_dld_dld_link=no
12241fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012242rm -f conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012244LIBS=$ac_check_lib_save_LIBS
12245fi
12246echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12247echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12248if test $ac_cv_lib_dld_dld_link = yes; then
12249 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12250fi
12251
12252
12253fi
12254
12255
12256fi
12257
12258
12259fi
12260
12261
12262fi
12263
12264
12265fi
12266
12267 ;;
12268 esac
12269
12270 if test "x$lt_cv_dlopen" != xno; then
12271 enable_dlopen=yes
12272 else
12273 enable_dlopen=no
12274 fi
12275
12276 case $lt_cv_dlopen in
12277 dlopen)
12278 save_CPPFLAGS="$CPPFLAGS"
12279 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12280
12281 save_LDFLAGS="$LDFLAGS"
12282 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12283
12284 save_LIBS="$LIBS"
12285 LIBS="$lt_cv_dlopen_libs $LIBS"
12286
12287 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12288echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12289if test "${lt_cv_dlopen_self+set}" = set; then
12290 echo $ECHO_N "(cached) $ECHO_C" >&6
12291else
12292 if test "$cross_compiling" = yes; then :
12293 lt_cv_dlopen_self=cross
12294else
12295 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12296 lt_status=$lt_dlunknown
12297 cat > conftest.$ac_ext <<EOF
John Criswell5fbb1f82004-09-24 13:28:51 +000012298#line 12298 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012299#include "confdefs.h"
12300
12301#if HAVE_DLFCN_H
12302#include <dlfcn.h>
12303#endif
12304
12305#include <stdio.h>
12306
12307#ifdef RTLD_GLOBAL
12308# define LT_DLGLOBAL RTLD_GLOBAL
12309#else
12310# ifdef DL_GLOBAL
12311# define LT_DLGLOBAL DL_GLOBAL
12312# else
12313# define LT_DLGLOBAL 0
12314# endif
12315#endif
12316
12317/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12318 find out it does not work in some platform. */
12319#ifndef LT_DLLAZY_OR_NOW
12320# ifdef RTLD_LAZY
12321# define LT_DLLAZY_OR_NOW RTLD_LAZY
12322# else
12323# ifdef DL_LAZY
12324# define LT_DLLAZY_OR_NOW DL_LAZY
12325# else
12326# ifdef RTLD_NOW
12327# define LT_DLLAZY_OR_NOW RTLD_NOW
12328# else
12329# ifdef DL_NOW
12330# define LT_DLLAZY_OR_NOW DL_NOW
12331# else
12332# define LT_DLLAZY_OR_NOW 0
12333# endif
12334# endif
12335# endif
12336# endif
12337#endif
12338
12339#ifdef __cplusplus
12340extern "C" void exit (int);
12341#endif
12342
12343void fnord() { int i=42;}
12344int main ()
12345{
12346 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12347 int status = $lt_dlunknown;
12348
12349 if (self)
12350 {
12351 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12352 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12353 /* dlclose (self); */
12354 }
12355
12356 exit (status);
12357}
12358EOF
12359 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12360 (eval $ac_link) 2>&5
12361 ac_status=$?
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12364 (./conftest; exit; ) 2>/dev/null
12365 lt_status=$?
12366 case x$lt_status in
12367 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12368 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12369 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12370 esac
12371 else :
12372 # compilation failed
12373 lt_cv_dlopen_self=no
12374 fi
12375fi
12376rm -fr conftest*
12377
12378
12379fi
12380echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12381echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12382
12383 if test "x$lt_cv_dlopen_self" = xyes; then
12384 LDFLAGS="$LDFLAGS $link_static_flag"
12385 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12386echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12387if test "${lt_cv_dlopen_self_static+set}" = set; then
12388 echo $ECHO_N "(cached) $ECHO_C" >&6
12389else
12390 if test "$cross_compiling" = yes; then :
12391 lt_cv_dlopen_self_static=cross
12392else
12393 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12394 lt_status=$lt_dlunknown
12395 cat > conftest.$ac_ext <<EOF
John Criswell5fbb1f82004-09-24 13:28:51 +000012396#line 12396 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012397#include "confdefs.h"
12398
12399#if HAVE_DLFCN_H
12400#include <dlfcn.h>
12401#endif
12402
12403#include <stdio.h>
12404
12405#ifdef RTLD_GLOBAL
12406# define LT_DLGLOBAL RTLD_GLOBAL
12407#else
12408# ifdef DL_GLOBAL
12409# define LT_DLGLOBAL DL_GLOBAL
12410# else
12411# define LT_DLGLOBAL 0
12412# endif
12413#endif
12414
12415/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12416 find out it does not work in some platform. */
12417#ifndef LT_DLLAZY_OR_NOW
12418# ifdef RTLD_LAZY
12419# define LT_DLLAZY_OR_NOW RTLD_LAZY
12420# else
12421# ifdef DL_LAZY
12422# define LT_DLLAZY_OR_NOW DL_LAZY
12423# else
12424# ifdef RTLD_NOW
12425# define LT_DLLAZY_OR_NOW RTLD_NOW
12426# else
12427# ifdef DL_NOW
12428# define LT_DLLAZY_OR_NOW DL_NOW
12429# else
12430# define LT_DLLAZY_OR_NOW 0
12431# endif
12432# endif
12433# endif
12434# endif
12435#endif
12436
12437#ifdef __cplusplus
12438extern "C" void exit (int);
12439#endif
12440
12441void fnord() { int i=42;}
12442int main ()
12443{
12444 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12445 int status = $lt_dlunknown;
12446
12447 if (self)
12448 {
12449 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12450 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12451 /* dlclose (self); */
12452 }
12453
12454 exit (status);
12455}
12456EOF
12457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12458 (eval $ac_link) 2>&5
12459 ac_status=$?
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12462 (./conftest; exit; ) 2>/dev/null
12463 lt_status=$?
12464 case x$lt_status in
12465 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12466 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12467 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12468 esac
12469 else :
12470 # compilation failed
12471 lt_cv_dlopen_self_static=no
12472 fi
12473fi
12474rm -fr conftest*
12475
12476
12477fi
12478echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12479echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12480 fi
12481
12482 CPPFLAGS="$save_CPPFLAGS"
12483 LDFLAGS="$save_LDFLAGS"
12484 LIBS="$save_LIBS"
12485 ;;
12486 esac
12487
12488 case $lt_cv_dlopen_self in
12489 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12490 *) enable_dlopen_self=unknown ;;
12491 esac
12492
12493 case $lt_cv_dlopen_self_static in
12494 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12495 *) enable_dlopen_self_static=unknown ;;
12496 esac
12497fi
12498
12499
12500# The else clause should only fire when bootstrapping the
12501# libtool distribution, otherwise you forgot to ship ltmain.sh
12502# with your package, and you will get complaints that there are
12503# no rules to generate ltmain.sh.
12504if test -f "$ltmain"; then
12505 # See if we are running on zsh, and set the options which allow our commands through
12506 # without removal of \ escapes.
12507 if test -n "${ZSH_VERSION+set}" ; then
12508 setopt NO_GLOB_SUBST
12509 fi
12510 # Now quote all the things that may contain metacharacters while being
12511 # careful not to overquote the AC_SUBSTed values. We take copies of the
12512 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012513 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12514 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000012515 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12516 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12517 deplibs_check_method reload_flag reload_cmds need_locks \
12518 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12519 lt_cv_sys_global_symbol_to_c_name_address \
12520 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12521 old_postinstall_cmds old_postuninstall_cmds \
12522 compiler_CXX \
12523 CC_CXX \
12524 LD_CXX \
12525 lt_prog_compiler_wl_CXX \
12526 lt_prog_compiler_pic_CXX \
12527 lt_prog_compiler_static_CXX \
12528 lt_prog_compiler_no_builtin_flag_CXX \
12529 export_dynamic_flag_spec_CXX \
12530 thread_safe_flag_spec_CXX \
12531 whole_archive_flag_spec_CXX \
12532 enable_shared_with_static_runtimes_CXX \
12533 old_archive_cmds_CXX \
12534 old_archive_from_new_cmds_CXX \
12535 predep_objects_CXX \
12536 postdep_objects_CXX \
12537 predeps_CXX \
12538 postdeps_CXX \
12539 compiler_lib_search_path_CXX \
12540 archive_cmds_CXX \
12541 archive_expsym_cmds_CXX \
12542 postinstall_cmds_CXX \
12543 postuninstall_cmds_CXX \
12544 old_archive_from_expsyms_cmds_CXX \
12545 allow_undefined_flag_CXX \
12546 no_undefined_flag_CXX \
12547 export_symbols_cmds_CXX \
12548 hardcode_libdir_flag_spec_CXX \
12549 hardcode_libdir_flag_spec_ld_CXX \
12550 hardcode_libdir_separator_CXX \
12551 hardcode_automatic_CXX \
12552 module_cmds_CXX \
12553 module_expsym_cmds_CXX \
12554 lt_cv_prog_compiler_c_o_CXX \
12555 exclude_expsyms_CXX \
12556 include_expsyms_CXX; do
12557
12558 case $var in
12559 old_archive_cmds_CXX | \
12560 old_archive_from_new_cmds_CXX | \
12561 archive_cmds_CXX | \
12562 archive_expsym_cmds_CXX | \
12563 module_cmds_CXX | \
12564 module_expsym_cmds_CXX | \
12565 old_archive_from_expsyms_cmds_CXX | \
12566 export_symbols_cmds_CXX | \
12567 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12568 postinstall_cmds | postuninstall_cmds | \
12569 old_postinstall_cmds | old_postuninstall_cmds | \
12570 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12571 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012572 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 +000012573 ;;
12574 *)
12575 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12576 ;;
12577 esac
12578 done
12579
12580 case $lt_echo in
12581 *'\$0 --fallback-echo"')
12582 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12583 ;;
12584 esac
12585
12586cfgfile="$ofile"
12587
12588 cat <<__EOF__ >> "$cfgfile"
12589# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12590
12591# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12592
12593# Shell to use when invoking shell scripts.
12594SHELL=$lt_SHELL
12595
12596# Whether or not to build shared libraries.
12597build_libtool_libs=$enable_shared
12598
12599# Whether or not to build static libraries.
12600build_old_libs=$enable_static
12601
12602# Whether or not to add -lc for building shared libraries.
12603build_libtool_need_lc=$archive_cmds_need_lc_CXX
12604
12605# Whether or not to disallow shared libs when runtime libs are static
12606allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12607
12608# Whether or not to optimize for fast installation.
12609fast_install=$enable_fast_install
12610
12611# The host system.
12612host_alias=$host_alias
12613host=$host
12614
12615# An echo program that does not interpret backslashes.
12616echo=$lt_echo
12617
12618# The archiver.
12619AR=$lt_AR
12620AR_FLAGS=$lt_AR_FLAGS
12621
12622# A C compiler.
12623LTCC=$lt_LTCC
12624
12625# A language-specific compiler.
12626CC=$lt_compiler_CXX
12627
12628# Is the compiler the GNU C compiler?
12629with_gcc=$GCC_CXX
12630
12631# An ERE matcher.
12632EGREP=$lt_EGREP
12633
12634# The linker used to build libraries.
12635LD=$lt_LD_CXX
12636
12637# Whether we need hard or soft links.
12638LN_S=$lt_LN_S
12639
12640# A BSD-compatible nm program.
12641NM=$lt_NM
12642
12643# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000012644STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000012645
12646# Used to examine libraries when file_magic_cmd begins "file"
12647MAGIC_CMD=$MAGIC_CMD
12648
12649# Used on cygwin: DLL creation program.
12650DLLTOOL="$DLLTOOL"
12651
12652# Used on cygwin: object dumper.
12653OBJDUMP="$OBJDUMP"
12654
12655# Used on cygwin: assembler.
12656AS="$AS"
12657
12658# The name of the directory that contains temporary libtool files.
12659objdir=$objdir
12660
12661# How to create reloadable object files.
12662reload_flag=$lt_reload_flag
12663reload_cmds=$lt_reload_cmds
12664
12665# How to pass a linker flag through the compiler.
12666wl=$lt_lt_prog_compiler_wl_CXX
12667
12668# Object file suffix (normally "o").
12669objext="$ac_objext"
12670
12671# Old archive suffix (normally "a").
12672libext="$libext"
12673
12674# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000012675shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000012676
12677# Executable file suffix (normally "").
12678exeext="$exeext"
12679
12680# Additional compiler flags for building library objects.
12681pic_flag=$lt_lt_prog_compiler_pic_CXX
12682pic_mode=$pic_mode
12683
12684# What is the maximum length of a command?
12685max_cmd_len=$lt_cv_sys_max_cmd_len
12686
12687# Does compiler simultaneously support -c and -o options?
12688compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12689
12690# Must we lock files when doing compilation ?
12691need_locks=$lt_need_locks
12692
12693# Do we need the lib prefix for modules?
12694need_lib_prefix=$need_lib_prefix
12695
12696# Do we need a version for libraries?
12697need_version=$need_version
12698
12699# Whether dlopen is supported.
12700dlopen_support=$enable_dlopen
12701
12702# Whether dlopen of programs is supported.
12703dlopen_self=$enable_dlopen_self
12704
12705# Whether dlopen of statically linked programs is supported.
12706dlopen_self_static=$enable_dlopen_self_static
12707
12708# Compiler flag to prevent dynamic linking.
12709link_static_flag=$lt_lt_prog_compiler_static_CXX
12710
12711# Compiler flag to turn off builtin functions.
12712no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12713
12714# Compiler flag to allow reflexive dlopens.
12715export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12716
12717# Compiler flag to generate shared objects directly from archives.
12718whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12719
12720# Compiler flag to generate thread-safe objects.
12721thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12722
12723# Library versioning type.
12724version_type=$version_type
12725
12726# Format of library name prefix.
12727libname_spec=$lt_libname_spec
12728
12729# List of archive names. First name is the real one, the rest are links.
12730# The last name is the one that the linker finds with -lNAME.
12731library_names_spec=$lt_library_names_spec
12732
12733# The coded name of the library, if different from the real name.
12734soname_spec=$lt_soname_spec
12735
12736# Commands used to build and install an old-style archive.
12737RANLIB=$lt_RANLIB
12738old_archive_cmds=$lt_old_archive_cmds_CXX
12739old_postinstall_cmds=$lt_old_postinstall_cmds
12740old_postuninstall_cmds=$lt_old_postuninstall_cmds
12741
12742# Create an old-style archive from a shared archive.
12743old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12744
12745# Create a temporary old-style archive to link instead of a shared archive.
12746old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12747
12748# Commands used to build and install a shared archive.
12749archive_cmds=$lt_archive_cmds_CXX
12750archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12751postinstall_cmds=$lt_postinstall_cmds
12752postuninstall_cmds=$lt_postuninstall_cmds
12753
12754# Commands used to build a loadable module (assumed same as above if empty)
12755module_cmds=$lt_module_cmds_CXX
12756module_expsym_cmds=$lt_module_expsym_cmds_CXX
12757
12758# Commands to strip libraries.
12759old_striplib=$lt_old_striplib
12760striplib=$lt_striplib
12761
12762# Dependencies to place before the objects being linked to create a
12763# shared library.
12764predep_objects=$lt_predep_objects_CXX
12765
12766# Dependencies to place after the objects being linked to create a
12767# shared library.
12768postdep_objects=$lt_postdep_objects_CXX
12769
12770# Dependencies to place before the objects being linked to create a
12771# shared library.
12772predeps=$lt_predeps_CXX
12773
12774# Dependencies to place after the objects being linked to create a
12775# shared library.
12776postdeps=$lt_postdeps_CXX
12777
12778# The library search path used internally by the compiler when linking
12779# a shared library.
12780compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12781
12782# Method to check whether dependent libraries are shared objects.
12783deplibs_check_method=$lt_deplibs_check_method
12784
12785# Command to use when deplibs_check_method == file_magic.
12786file_magic_cmd=$lt_file_magic_cmd
12787
12788# Flag that allows shared libraries with undefined symbols to be built.
12789allow_undefined_flag=$lt_allow_undefined_flag_CXX
12790
12791# Flag that forces no undefined symbols.
12792no_undefined_flag=$lt_no_undefined_flag_CXX
12793
12794# Commands used to finish a libtool library installation in a directory.
12795finish_cmds=$lt_finish_cmds
12796
12797# Same as above, but a single script fragment to be evaled but not shown.
12798finish_eval=$lt_finish_eval
12799
12800# Take the output of nm and produce a listing of raw symbols and C names.
12801global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12802
12803# Transform the output of nm in a proper C declaration
12804global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12805
12806# Transform the output of nm in a C name address pair
12807global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12808
12809# This is the shared library runtime path variable.
12810runpath_var=$runpath_var
12811
12812# This is the shared library path variable.
12813shlibpath_var=$shlibpath_var
12814
12815# Is shlibpath searched before the hard-coded library search path?
12816shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12817
12818# How to hardcode a shared library path into an executable.
12819hardcode_action=$hardcode_action_CXX
12820
12821# Whether we should hardcode library paths into libraries.
12822hardcode_into_libs=$hardcode_into_libs
12823
12824# Flag to hardcode \$libdir into a binary during linking.
12825# This must work even if \$libdir does not exist.
12826hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12827
12828# If ld is used when linking, flag to hardcode \$libdir into
12829# a binary during linking. This must work even if \$libdir does
12830# not exist.
12831hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12832
12833# Whether we need a single -rpath flag with a separated argument.
12834hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12835
12836# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12837# resulting binary.
12838hardcode_direct=$hardcode_direct_CXX
12839
12840# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12841# resulting binary.
12842hardcode_minus_L=$hardcode_minus_L_CXX
12843
12844# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12845# the resulting binary.
12846hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12847
12848# Set to yes if building a shared library automatically hardcodes DIR into the library
12849# and all subsequent libraries and executables linked against it.
12850hardcode_automatic=$hardcode_automatic_CXX
12851
12852# Variables whose values should be saved in libtool wrapper scripts and
12853# restored at relink time.
12854variables_saved_for_relink="$variables_saved_for_relink"
12855
12856# Whether libtool must link a program against all its dependency libraries.
12857link_all_deplibs=$link_all_deplibs_CXX
12858
12859# Compile-time system search path for libraries
12860sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12861
12862# Run-time system search path for libraries
12863sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12864
12865# Fix the shell variable \$srcfile for the compiler.
12866fix_srcfile_path="$fix_srcfile_path_CXX"
12867
12868# Set to yes if exported symbols are required.
12869always_export_symbols=$always_export_symbols_CXX
12870
12871# The commands to list exported symbols.
12872export_symbols_cmds=$lt_export_symbols_cmds_CXX
12873
12874# The commands to extract the exported symbol list from a shared archive.
12875extract_expsyms_cmds=$lt_extract_expsyms_cmds
12876
12877# Symbols that should not be listed in the preloaded symbols.
12878exclude_expsyms=$lt_exclude_expsyms_CXX
12879
12880# Symbols that must always be exported.
12881include_expsyms=$lt_include_expsyms_CXX
12882
12883# ### END LIBTOOL TAG CONFIG: $tagname
12884
12885__EOF__
12886
12887
12888else
12889 # If there is no Makefile yet, we rely on a make rule to execute
12890 # `config.status --recheck' to rerun these tests and create the
12891 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012892 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12893 if test -f "$ltmain_in"; then
12894 test -f Makefile && make "$ltmain"
12895 fi
John Criswell47fdd832003-07-14 16:52:07 +000012896fi
12897
12898
12899ac_ext=c
12900ac_cpp='$CPP $CPPFLAGS'
12901ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12902ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12903ac_compiler_gnu=$ac_cv_c_compiler_gnu
12904
12905CC=$lt_save_CC
12906LDCXX=$LD
12907LD=$lt_save_LD
12908GCC=$lt_save_GCC
12909with_gnu_ldcxx=$with_gnu_ld
12910with_gnu_ld=$lt_save_with_gnu_ld
12911lt_cv_path_LDCXX=$lt_cv_path_LD
12912lt_cv_path_LD=$lt_save_path_LD
12913lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12914lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12915
12916 else
12917 tagname=""
12918 fi
12919 ;;
12920
12921 F77)
12922 if test -n "$F77" && test "X$F77" != "Xno"; then
12923
12924ac_ext=f
12925ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12926ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12927ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12928
12929
12930archive_cmds_need_lc_F77=no
12931allow_undefined_flag_F77=
12932always_export_symbols_F77=no
12933archive_expsym_cmds_F77=
12934export_dynamic_flag_spec_F77=
12935hardcode_direct_F77=no
12936hardcode_libdir_flag_spec_F77=
12937hardcode_libdir_flag_spec_ld_F77=
12938hardcode_libdir_separator_F77=
12939hardcode_minus_L_F77=no
12940hardcode_automatic_F77=no
12941module_cmds_F77=
12942module_expsym_cmds_F77=
12943link_all_deplibs_F77=unknown
12944old_archive_cmds_F77=$old_archive_cmds
12945no_undefined_flag_F77=
12946whole_archive_flag_spec_F77=
12947enable_shared_with_static_runtimes_F77=no
12948
12949# Source file extension for f77 test sources.
12950ac_ext=f
12951
12952# Object file extension for compiled f77 test sources.
12953objext=o
12954objext_F77=$objext
12955
12956# Code to be used in simple compile tests
12957lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12958
12959# Code to be used in simple link tests
12960lt_simple_link_test_code=" program t\n end\n"
12961
12962# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12963
12964# If no C compiler was specified, use CC.
12965LTCC=${LTCC-"$CC"}
12966
12967# Allow CC to be a program name with arguments.
12968compiler=$CC
12969
12970
12971# Allow CC to be a program name with arguments.
12972lt_save_CC="$CC"
12973CC=${F77-"f77"}
12974compiler=$CC
12975compiler_F77=$CC
12976cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12977
12978echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12979echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12980echo "$as_me:$LINENO: result: $can_build_shared" >&5
12981echo "${ECHO_T}$can_build_shared" >&6
12982
12983echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12984echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12985test "$can_build_shared" = "no" && enable_shared=no
12986
12987# On AIX, shared libraries and static libraries use the same namespace, and
12988# are all built from PIC.
12989case "$host_os" in
12990aix3*)
12991 test "$enable_shared" = yes && enable_static=no
12992 if test -n "$RANLIB"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012993 archive_cmds="$archive_cmds;\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000012994 postinstall_cmds='$RANLIB $lib'
12995 fi
12996 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000012997aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000012998 test "$enable_shared" = yes && enable_static=no
12999 ;;
13000esac
13001echo "$as_me:$LINENO: result: $enable_shared" >&5
13002echo "${ECHO_T}$enable_shared" >&6
13003
13004echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13005echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13006# Make sure either enable_shared or enable_static is yes.
13007test "$enable_shared" = yes || enable_static=yes
13008echo "$as_me:$LINENO: result: $enable_static" >&5
13009echo "${ECHO_T}$enable_static" >&6
13010
13011test "$ld_shlibs_F77" = no && can_build_shared=no
13012
13013GCC_F77="$G77"
13014LD_F77="$LD"
13015
13016lt_prog_compiler_wl_F77=
13017lt_prog_compiler_pic_F77=
13018lt_prog_compiler_static_F77=
13019
13020echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13021echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13022
13023 if test "$GCC" = yes; then
13024 lt_prog_compiler_wl_F77='-Wl,'
13025 lt_prog_compiler_static_F77='-static'
13026
13027 case $host_os in
13028 aix*)
13029 # All AIX code is PIC.
13030 if test "$host_cpu" = ia64; then
13031 # AIX 5 now supports IA64 processor
13032 lt_prog_compiler_static_F77='-Bstatic'
13033 fi
13034 ;;
13035
13036 amigaos*)
13037 # FIXME: we need at least 68020 code to build shared libraries, but
13038 # adding the `-m68020' flag to GCC prevents building anything better,
13039 # like `-m68040'.
13040 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13041 ;;
13042
13043 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13044 # PIC is the default for these OSes.
13045 ;;
13046
13047 mingw* | pw32* | os2*)
13048 # This hack is so that the source file can tell whether it is being
13049 # built for inclusion in a dll (and should export symbols for example).
13050 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13051 ;;
13052
13053 darwin* | rhapsody*)
13054 # PIC is the default on this platform
13055 # Common symbols not allowed in MH_DYLIB files
13056 lt_prog_compiler_pic_F77='-fno-common'
13057 ;;
13058
13059 msdosdjgpp*)
13060 # Just because we use GCC doesn't mean we suddenly get shared libraries
13061 # on systems that don't support them.
13062 lt_prog_compiler_can_build_shared_F77=no
13063 enable_shared=no
13064 ;;
13065
13066 sysv4*MP*)
13067 if test -d /usr/nec; then
13068 lt_prog_compiler_pic_F77=-Kconform_pic
13069 fi
13070 ;;
13071
13072 hpux*)
13073 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13074 # not for PA HP-UX.
13075 case "$host_cpu" in
13076 hppa*64*|ia64*)
13077 # +Z the default
13078 ;;
13079 *)
13080 lt_prog_compiler_pic_F77='-fPIC'
13081 ;;
13082 esac
13083 ;;
13084
13085 *)
13086 lt_prog_compiler_pic_F77='-fPIC'
13087 ;;
13088 esac
13089 else
13090 # PORTME Check for flag to pass linker flags through the system compiler.
13091 case $host_os in
13092 aix*)
13093 lt_prog_compiler_wl_F77='-Wl,'
13094 if test "$host_cpu" = ia64; then
13095 # AIX 5 now supports IA64 processor
13096 lt_prog_compiler_static_F77='-Bstatic'
13097 else
13098 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13099 fi
13100 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013101 darwin*)
13102 # PIC is the default on this platform
13103 # Common symbols not allowed in MH_DYLIB files
13104 case "$cc_basename" in
13105 xlc*)
13106 lt_prog_compiler_pic_F77='-qnocommon'
13107 lt_prog_compiler_wl_F77='-Wl,'
13108 ;;
13109 esac
13110 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013111
13112 mingw* | pw32* | os2*)
13113 # This hack is so that the source file can tell whether it is being
13114 # built for inclusion in a dll (and should export symbols for example).
13115 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13116 ;;
13117
13118 hpux9* | hpux10* | hpux11*)
13119 lt_prog_compiler_wl_F77='-Wl,'
13120 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13121 # not for PA HP-UX.
13122 case "$host_cpu" in
13123 hppa*64*|ia64*)
13124 # +Z the default
13125 ;;
13126 *)
13127 lt_prog_compiler_pic_F77='+Z'
13128 ;;
13129 esac
13130 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13131 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13132 ;;
13133
13134 irix5* | irix6* | nonstopux*)
13135 lt_prog_compiler_wl_F77='-Wl,'
13136 # PIC (with -KPIC) is the default.
13137 lt_prog_compiler_static_F77='-non_shared'
13138 ;;
13139
13140 newsos6)
13141 lt_prog_compiler_pic_F77='-KPIC'
13142 lt_prog_compiler_static_F77='-Bstatic'
13143 ;;
13144
13145 linux*)
13146 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013147 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000013148 lt_prog_compiler_wl_F77='-Wl,'
13149 lt_prog_compiler_pic_F77='-KPIC'
13150 lt_prog_compiler_static_F77='-static'
13151 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013152 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013153 lt_prog_compiler_wl_F77='-Wl,'
13154 # All Alpha code is PIC.
13155 lt_prog_compiler_static_F77='-non_shared'
13156 ;;
13157 esac
13158 ;;
13159
13160 osf3* | osf4* | osf5*)
13161 lt_prog_compiler_wl_F77='-Wl,'
13162 # All OSF/1 code is PIC.
13163 lt_prog_compiler_static_F77='-non_shared'
13164 ;;
13165
13166 sco3.2v5*)
13167 lt_prog_compiler_pic_F77='-Kpic'
13168 lt_prog_compiler_static_F77='-dn'
13169 ;;
13170
13171 solaris*)
13172 lt_prog_compiler_wl_F77='-Wl,'
13173 lt_prog_compiler_pic_F77='-KPIC'
13174 lt_prog_compiler_static_F77='-Bstatic'
13175 ;;
13176
13177 sunos4*)
13178 lt_prog_compiler_wl_F77='-Qoption ld '
13179 lt_prog_compiler_pic_F77='-PIC'
13180 lt_prog_compiler_static_F77='-Bstatic'
13181 ;;
13182
13183 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13184 lt_prog_compiler_wl_F77='-Wl,'
13185 lt_prog_compiler_pic_F77='-KPIC'
13186 lt_prog_compiler_static_F77='-Bstatic'
13187 ;;
13188
13189 sysv4*MP*)
13190 if test -d /usr/nec ;then
13191 lt_prog_compiler_pic_F77='-Kconform_pic'
13192 lt_prog_compiler_static_F77='-Bstatic'
13193 fi
13194 ;;
13195
13196 uts4*)
13197 lt_prog_compiler_pic_F77='-pic'
13198 lt_prog_compiler_static_F77='-Bstatic'
13199 ;;
13200
13201 *)
13202 lt_prog_compiler_can_build_shared_F77=no
13203 ;;
13204 esac
13205 fi
13206
13207echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13208echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13209
13210#
13211# Check to make sure the PIC flag actually works.
13212#
13213if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013214
13215echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013216echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13217if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13218 echo $ECHO_N "(cached) $ECHO_C" >&6
13219else
13220 lt_prog_compiler_pic_works_F77=no
13221 ac_outfile=conftest.$ac_objext
13222 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13223 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13224 # Insert the option either (1) after the last *FLAGS variable, or
13225 # (2) before a word containing "conftest.", or (3) at the end.
13226 # Note that $ac_compile itself does not contain backslashes and begins
13227 # with a dollar sign (not a hyphen), so the echo should work correctly.
13228 # The option is referenced via a variable to avoid confusing sed.
13229 lt_compile=`echo "$ac_compile" | $SED \
13230 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13232 -e 's:$: $lt_compiler_flag:'`
John Criswell5fbb1f82004-09-24 13:28:51 +000013233 (eval echo "\"\$as_me:13233: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013234 (eval "$lt_compile" 2>conftest.err)
13235 ac_status=$?
13236 cat conftest.err >&5
John Criswell5fbb1f82004-09-24 13:28:51 +000013237 echo "$as_me:13237: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013238 if (exit $ac_status) && test -s "$ac_outfile"; then
13239 # The compiler can only warn and ignore the option if not recognized
13240 # So say no if there are warnings
13241 if test ! -s conftest.err; then
13242 lt_prog_compiler_pic_works_F77=yes
13243 fi
13244 fi
13245 $rm conftest*
13246
13247fi
13248echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13249echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13250
13251if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13252 case $lt_prog_compiler_pic_F77 in
13253 "" | " "*) ;;
13254 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13255 esac
13256else
13257 lt_prog_compiler_pic_F77=
13258 lt_prog_compiler_can_build_shared_F77=no
13259fi
13260
13261fi
13262case "$host_os" in
13263 # For platforms which do not support PIC, -DPIC is meaningless:
13264 *djgpp*)
13265 lt_prog_compiler_pic_F77=
13266 ;;
13267 *)
13268 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13269 ;;
13270esac
13271
13272echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13273echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13274if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13275 echo $ECHO_N "(cached) $ECHO_C" >&6
13276else
13277 lt_cv_prog_compiler_c_o_F77=no
13278 $rm -r conftest 2>/dev/null
13279 mkdir conftest
13280 cd conftest
13281 mkdir out
13282 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13283
John Criswell47fdd832003-07-14 16:52:07 +000013284 lt_compiler_flag="-o out/conftest2.$ac_objext"
13285 # Insert the option either (1) after the last *FLAGS variable, or
13286 # (2) before a word containing "conftest.", or (3) at the end.
13287 # Note that $ac_compile itself does not contain backslashes and begins
13288 # with a dollar sign (not a hyphen), so the echo should work correctly.
13289 lt_compile=`echo "$ac_compile" | $SED \
13290 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13291 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13292 -e 's:$: $lt_compiler_flag:'`
John Criswell5fbb1f82004-09-24 13:28:51 +000013293 (eval echo "\"\$as_me:13293: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013294 (eval "$lt_compile" 2>out/conftest.err)
13295 ac_status=$?
13296 cat out/conftest.err >&5
John Criswell5fbb1f82004-09-24 13:28:51 +000013297 echo "$as_me:13297: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013298 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13299 then
13300 # The compiler can only warn and ignore the option if not recognized
13301 # So say no if there are warnings
13302 if test ! -s out/conftest.err; then
13303 lt_cv_prog_compiler_c_o_F77=yes
13304 fi
13305 fi
13306 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000013307 $rm conftest*
13308 # SGI C++ compiler will create directory out/ii_files/ for
13309 # template instantiation
13310 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13311 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000013312 cd ..
13313 rmdir conftest
13314 $rm conftest*
13315
13316fi
13317echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13318echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13319
13320
13321hard_links="nottested"
13322if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13323 # do not overwrite the value of need_locks provided by the user
13324 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13325echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13326 hard_links=yes
13327 $rm conftest*
13328 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13329 touch conftest.a
13330 ln conftest.a conftest.b 2>&5 || hard_links=no
13331 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13332 echo "$as_me:$LINENO: result: $hard_links" >&5
13333echo "${ECHO_T}$hard_links" >&6
13334 if test "$hard_links" = no; then
13335 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13336echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13337 need_locks=warn
13338 fi
13339else
13340 need_locks=no
13341fi
13342
13343echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13344echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13345
13346 runpath_var=
13347 allow_undefined_flag_F77=
13348 enable_shared_with_static_runtimes_F77=no
13349 archive_cmds_F77=
13350 archive_expsym_cmds_F77=
13351 old_archive_From_new_cmds_F77=
13352 old_archive_from_expsyms_cmds_F77=
13353 export_dynamic_flag_spec_F77=
13354 whole_archive_flag_spec_F77=
13355 thread_safe_flag_spec_F77=
13356 hardcode_libdir_flag_spec_F77=
13357 hardcode_libdir_flag_spec_ld_F77=
13358 hardcode_libdir_separator_F77=
13359 hardcode_direct_F77=no
13360 hardcode_minus_L_F77=no
13361 hardcode_shlibpath_var_F77=unsupported
13362 link_all_deplibs_F77=unknown
13363 hardcode_automatic_F77=no
13364 module_cmds_F77=
13365 module_expsym_cmds_F77=
13366 always_export_symbols_F77=no
13367 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13368 # include_expsyms should be a list of space-separated symbols to be *always*
13369 # included in the symbol list
13370 include_expsyms_F77=
13371 # exclude_expsyms can be an extended regexp of symbols to exclude
13372 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13373 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13374 # as well as any symbol that contains `d'.
13375 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13376 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13377 # platforms (ab)use it in PIC code, but their linkers get confused if
13378 # the symbol is explicitly referenced. Since portable code cannot
13379 # rely on this symbol name, it's probably fine to never include it in
13380 # preloaded symbol tables.
13381 extract_expsyms_cmds=
13382
13383 case $host_os in
13384 cygwin* | mingw* | pw32*)
13385 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13386 # When not using gcc, we currently assume that we are using
13387 # Microsoft Visual C++.
13388 if test "$GCC" != yes; then
13389 with_gnu_ld=no
13390 fi
13391 ;;
13392 openbsd*)
13393 with_gnu_ld=no
13394 ;;
13395 esac
13396
13397 ld_shlibs_F77=yes
13398 if test "$with_gnu_ld" = yes; then
13399 # If archive_cmds runs LD, not CC, wlarc should be empty
13400 wlarc='${wl}'
13401
13402 # See if GNU ld supports shared libraries.
13403 case $host_os in
13404 aix3* | aix4* | aix5*)
13405 # On AIX/PPC, the GNU linker is very broken
13406 if test "$host_cpu" != ia64; then
13407 ld_shlibs_F77=no
13408 cat <<EOF 1>&2
13409
13410*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13411*** to be unable to reliably create shared libraries on AIX.
13412*** Therefore, libtool is disabling shared libraries support. If you
13413*** really care for shared libraries, you may want to modify your PATH
13414*** so that a non-GNU linker is found, and then restart.
13415
13416EOF
13417 fi
13418 ;;
13419
13420 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013421 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 +000013422 hardcode_libdir_flag_spec_F77='-L$libdir'
13423 hardcode_minus_L_F77=yes
13424
13425 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13426 # that the semantics of dynamic libraries on AmigaOS, at least up
13427 # to version 4, is to share data among multiple programs linked
13428 # with the same dynamic library. Since this doesn't match the
13429 # behavior of shared libraries on other platforms, we can't use
13430 # them.
13431 ld_shlibs_F77=no
13432 ;;
13433
13434 beos*)
13435 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13436 allow_undefined_flag_F77=unsupported
13437 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13438 # support --undefined. This deserves some investigation. FIXME
13439 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13440 else
13441 ld_shlibs_F77=no
13442 fi
13443 ;;
13444
13445 cygwin* | mingw* | pw32*)
13446 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13447 # as there is no search path for DLLs.
13448 hardcode_libdir_flag_spec_F77='-L$libdir'
13449 allow_undefined_flag_F77=unsupported
13450 always_export_symbols_F77=no
13451 enable_shared_with_static_runtimes_F77=yes
13452 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13453
13454 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13455 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13456 # If the export-symbols file already is a .def file (1st line
13457 # is EXPORTS), use it as is; otherwise, prepend...
13458 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13459 cp $export_symbols $output_objdir/$soname.def;
13460 else
13461 echo EXPORTS > $output_objdir/$soname.def;
13462 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013463 fi;$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 +000013464 else
13465 ld_shlibs=no
13466 fi
13467 ;;
13468
13469 netbsd*)
13470 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13471 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13472 wlarc=
13473 else
13474 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13475 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13476 fi
13477 ;;
13478
13479 solaris* | sysv5*)
13480 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13481 ld_shlibs_F77=no
13482 cat <<EOF 1>&2
13483
13484*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13485*** create shared libraries on Solaris systems. Therefore, libtool
13486*** is disabling shared libraries support. We urge you to upgrade GNU
13487*** binutils to release 2.9.1 or newer. Another option is to modify
13488*** your PATH or compiler configuration so that the native linker is
13489*** used, and then restart.
13490
13491EOF
13492 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13493 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13494 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13495 else
13496 ld_shlibs_F77=no
13497 fi
13498 ;;
13499
13500 sunos4*)
13501 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13502 wlarc=
13503 hardcode_direct_F77=yes
13504 hardcode_shlibpath_var_F77=no
13505 ;;
13506
Reid Spencer2706f8c2004-09-19 23:53:36 +000013507 linux*)
13508 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13509 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13510 archive_cmds_F77="$tmp_archive_cmds"
13511 supports_anon_versioning=no
13512 case `$LD -v 2>/dev/null` in
13513 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13514 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13515 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13516 *\ 2.11.*) ;; # other 2.11 versions
13517 *) supports_anon_versioning=yes ;;
13518 esac
13519 if test $supports_anon_versioning = yes; then
13520 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
13521 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13522 else
13523 archive_expsym_cmds_F77="$tmp_archive_cmds"
13524 fi
13525 else
13526 ld_shlibs_F77=no
13527 fi
13528 ;;
13529
John Criswell47fdd832003-07-14 16:52:07 +000013530 *)
13531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13532 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13534 else
13535 ld_shlibs_F77=no
13536 fi
13537 ;;
13538 esac
13539
13540 if test "$ld_shlibs_F77" = yes; then
13541 runpath_var=LD_RUN_PATH
13542 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13543 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13544 # ancient GNU ld didn't support --whole-archive et. al.
13545 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13546 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13547 else
13548 whole_archive_flag_spec_F77=
13549 fi
13550 fi
13551 else
13552 # PORTME fill in a description of your system's linker (not GNU ld)
13553 case $host_os in
13554 aix3*)
13555 allow_undefined_flag_F77=unsupported
13556 always_export_symbols_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000013557 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 +000013558 # Note: this linker hardcodes the directories in LIBPATH if there
13559 # are no directories specified by -L.
13560 hardcode_minus_L_F77=yes
13561 if test "$GCC" = yes && test -z "$link_static_flag"; then
13562 # Neither direct hardcoding nor static linking is supported with a
13563 # broken collect2.
13564 hardcode_direct_F77=unsupported
13565 fi
13566 ;;
13567
13568 aix4* | aix5*)
13569 if test "$host_cpu" = ia64; then
13570 # On IA64, the linker does run time linking by default, so we don't
13571 # have to do anything special.
13572 aix_use_runtimelinking=no
13573 exp_sym_flag='-Bexport'
13574 no_entry_flag=""
13575 else
13576 # If we're using GNU nm, then we don't want the "-C" option.
13577 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13578 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13579 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'
13580 else
13581 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'
13582 fi
13583 aix_use_runtimelinking=no
13584
13585 # Test if we are trying to use run time linking or normal
13586 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13587 # need to do runtime linking.
13588 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13589 for ld_flag in $LDFLAGS; do
13590 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13591 aix_use_runtimelinking=yes
13592 break
13593 fi
13594 done
13595 esac
13596
13597 exp_sym_flag='-bexport'
13598 no_entry_flag='-bnoentry'
13599 fi
13600
13601 # When large executables or shared objects are built, AIX ld can
13602 # have problems creating the table of contents. If linking a library
13603 # or program results in "error TOC overflow" add -mminimal-toc to
13604 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13605 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13606
13607 archive_cmds_F77=''
13608 hardcode_direct_F77=yes
13609 hardcode_libdir_separator_F77=':'
13610 link_all_deplibs_F77=yes
13611
13612 if test "$GCC" = yes; then
13613 case $host_os in aix4.012|aix4.012.*)
13614 # We only want to do this on AIX 4.2 and lower, the check
13615 # below for broken collect2 doesn't work under 4.3+
13616 collect2name=`${CC} -print-prog-name=collect2`
13617 if test -f "$collect2name" && \
13618 strings "$collect2name" | grep resolve_lib_name >/dev/null
13619 then
13620 # We have reworked collect2
13621 hardcode_direct_F77=yes
13622 else
13623 # We have old collect2
13624 hardcode_direct_F77=unsupported
13625 # It fails to find uninstalled libraries when the uninstalled
13626 # path is not listed in the libpath. Setting hardcode_minus_L
13627 # to unsupported forces relinking
13628 hardcode_minus_L_F77=yes
13629 hardcode_libdir_flag_spec_F77='-L$libdir'
13630 hardcode_libdir_separator_F77=
13631 fi
13632 esac
13633 shared_flag='-shared'
13634 else
13635 # not using gcc
13636 if test "$host_cpu" = ia64; then
13637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13638 # chokes on -Wl,-G. The following line is correct:
13639 shared_flag='-G'
13640 else
13641 if test "$aix_use_runtimelinking" = yes; then
13642 shared_flag='${wl}-G'
13643 else
13644 shared_flag='${wl}-bM:SRE'
13645 fi
13646 fi
13647 fi
13648
13649 # It seems that -bexpall does not export symbols beginning with
13650 # underscore (_), so it is better to generate a list of symbols to export.
13651 always_export_symbols_F77=yes
13652 if test "$aix_use_runtimelinking" = yes; then
13653 # Warning - without using the other runtime loading flags (-brtl),
13654 # -berok will link without error, but may produce a broken library.
13655 allow_undefined_flag_F77='-berok'
13656 # Determine the default libpath from the value encoded in an empty executable.
13657 cat >conftest.$ac_ext <<_ACEOF
13658 program main
13659
13660 end
13661_ACEOF
13662rm -f conftest.$ac_objext conftest$ac_exeext
13663if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013664 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013665 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013666 grep -v '^ *+' conftest.er1 >conftest.err
13667 rm -f conftest.er1
13668 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013671 { ac_try='test -z "$ac_f77_werror_flag"
13672 || test ! -s conftest.err'
13673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13674 (eval $ac_try) 2>&5
13675 ac_status=$?
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13680 (eval $ac_try) 2>&5
13681 ac_status=$?
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; }; then
13684
13685aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13686}'`
13687# Check for a 64-bit object if we didn't find anything.
13688if 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; }
13689}'`; fi
13690else
13691 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013692sed 's/^/| /' conftest.$ac_ext >&5
13693
John Criswell47fdd832003-07-14 16:52:07 +000013694fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013695rm -f conftest.err conftest.$ac_objext \
13696 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013697if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13698
13699 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13700 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"
13701 else
13702 if test "$host_cpu" = ia64; then
13703 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13704 allow_undefined_flag_F77="-z nodefs"
13705 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"
13706 else
13707 # Determine the default libpath from the value encoded in an empty executable.
13708 cat >conftest.$ac_ext <<_ACEOF
13709 program main
13710
13711 end
13712_ACEOF
13713rm -f conftest.$ac_objext conftest$ac_exeext
13714if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013715 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013716 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013717 grep -v '^ *+' conftest.er1 >conftest.err
13718 rm -f conftest.er1
13719 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013722 { ac_try='test -z "$ac_f77_werror_flag"
13723 || test ! -s conftest.err'
13724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13725 (eval $ac_try) 2>&5
13726 ac_status=$?
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); }; } &&
13729 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13731 (eval $ac_try) 2>&5
13732 ac_status=$?
13733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13734 (exit $ac_status); }; }; then
13735
13736aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13737}'`
13738# Check for a 64-bit object if we didn't find anything.
13739if 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; }
13740}'`; fi
13741else
13742 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013743sed 's/^/| /' conftest.$ac_ext >&5
13744
John Criswell47fdd832003-07-14 16:52:07 +000013745fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013746rm -f conftest.err conftest.$ac_objext \
13747 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013748if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13749
13750 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13751 # Warning - without using the other run time loading flags,
13752 # -berok will link without error, but may produce a broken library.
13753 no_undefined_flag_F77=' ${wl}-bernotok'
13754 allow_undefined_flag_F77=' ${wl}-berok'
13755 # -bexpall does not export symbols beginning with underscore (_)
13756 always_export_symbols_F77=yes
13757 # Exported symbols can be pulled into shared objects from archives
13758 whole_archive_flag_spec_F77=' '
13759 archive_cmds_need_lc_F77=yes
13760 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013761 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 +000013762 fi
13763 fi
13764 ;;
13765
13766 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013767 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 +000013768 hardcode_libdir_flag_spec_F77='-L$libdir'
13769 hardcode_minus_L_F77=yes
13770 # see comment about different semantics on the GNU ld section
13771 ld_shlibs_F77=no
13772 ;;
13773
Reid Spencer2706f8c2004-09-19 23:53:36 +000013774 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000013775 export_dynamic_flag_spec_F77=-rdynamic
13776 ;;
13777
13778 cygwin* | mingw* | pw32*)
13779 # When not using gcc, we currently assume that we are using
13780 # Microsoft Visual C++.
13781 # hardcode_libdir_flag_spec is actually meaningless, as there is
13782 # no search path for DLLs.
13783 hardcode_libdir_flag_spec_F77=' '
13784 allow_undefined_flag_F77=unsupported
13785 # Tell ltmain to make .lib files, not .a files.
13786 libext=lib
13787 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013788 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000013789 # FIXME: Setting linknames here is a bad hack.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013790 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 +000013791 # The linker will automatically build a .lib file if we build a DLL.
13792 old_archive_From_new_cmds_F77='true'
13793 # FIXME: Should let the user specify the lib program.
13794 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13795 fix_srcfile_path='`cygpath -w "$srcfile"`'
13796 enable_shared_with_static_runtimes_F77=yes
13797 ;;
13798
13799 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000013800 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013801 rhapsody* | darwin1.[012])
13802 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13803 ;;
13804 *) # Darwin 1.3 on
13805 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13806 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13807 else
13808 case ${MACOSX_DEPLOYMENT_TARGET} in
13809 10.[012])
13810 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13811 ;;
13812 10.*)
13813 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13814 ;;
13815 esac
13816 fi
13817 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013818 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000013819 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000013820 hardcode_direct_F77=no
13821 hardcode_automatic_F77=yes
13822 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000013823 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000013824 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000013825 if test "$GCC" = yes ; then
13826 output_verbose_link_cmd='echo'
13827 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13828 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13829 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13830 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}'
13831 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}'
13832 else
13833 case "$cc_basename" in
13834 xlc*)
13835 output_verbose_link_cmd='echo'
13836 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13837 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13838 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13839 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}'
13840 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}'
13841 ;;
13842 *)
13843 ld_shlibs_F77=no
13844 ;;
13845 esac
John Criswell47fdd832003-07-14 16:52:07 +000013846 fi
13847 ;;
13848
13849 dgux*)
13850 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13851 hardcode_libdir_flag_spec_F77='-L$libdir'
13852 hardcode_shlibpath_var_F77=no
13853 ;;
13854
13855 freebsd1*)
13856 ld_shlibs_F77=no
13857 ;;
13858
13859 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13860 # support. Future versions do this automatically, but an explicit c++rt0.o
13861 # does not break anything, and helps significantly (at the cost of a little
13862 # extra space).
13863 freebsd2.2*)
13864 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13865 hardcode_libdir_flag_spec_F77='-R$libdir'
13866 hardcode_direct_F77=yes
13867 hardcode_shlibpath_var_F77=no
13868 ;;
13869
13870 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13871 freebsd2*)
13872 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13873 hardcode_direct_F77=yes
13874 hardcode_minus_L_F77=yes
13875 hardcode_shlibpath_var_F77=no
13876 ;;
13877
13878 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013879 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000013880 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13881 hardcode_libdir_flag_spec_F77='-R$libdir'
13882 hardcode_direct_F77=yes
13883 hardcode_shlibpath_var_F77=no
13884 ;;
13885
13886 hpux9*)
13887 if test "$GCC" = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013888 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 +000013889 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013890 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 +000013891 fi
13892 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13893 hardcode_libdir_separator_F77=:
13894 hardcode_direct_F77=yes
13895
13896 # hardcode_minus_L: Not really in the search PATH,
13897 # but as the default location of the library.
13898 hardcode_minus_L_F77=yes
13899 export_dynamic_flag_spec_F77='${wl}-E'
13900 ;;
13901
13902 hpux10* | hpux11*)
13903 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13904 case "$host_cpu" in
13905 hppa*64*|ia64*)
13906 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13907 ;;
13908 *)
13909 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13910 ;;
13911 esac
13912 else
13913 case "$host_cpu" in
13914 hppa*64*|ia64*)
13915 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13916 ;;
13917 *)
13918 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13919 ;;
13920 esac
13921 fi
13922 if test "$with_gnu_ld" = no; then
13923 case "$host_cpu" in
13924 hppa*64*)
13925 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13926 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13927 hardcode_libdir_separator_F77=:
13928 hardcode_direct_F77=no
13929 hardcode_shlibpath_var_F77=no
13930 ;;
13931 ia64*)
13932 hardcode_libdir_flag_spec_F77='-L$libdir'
13933 hardcode_direct_F77=no
13934 hardcode_shlibpath_var_F77=no
13935
13936 # hardcode_minus_L: Not really in the search PATH,
13937 # but as the default location of the library.
13938 hardcode_minus_L_F77=yes
13939 ;;
13940 *)
13941 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13942 hardcode_libdir_separator_F77=:
13943 hardcode_direct_F77=yes
13944 export_dynamic_flag_spec_F77='${wl}-E'
13945
13946 # hardcode_minus_L: Not really in the search PATH,
13947 # but as the default location of the library.
13948 hardcode_minus_L_F77=yes
13949 ;;
13950 esac
13951 fi
13952 ;;
13953
13954 irix5* | irix6* | nonstopux*)
13955 if test "$GCC" = yes; then
13956 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'
13957 else
13958 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'
13959 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13960 fi
13961 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13962 hardcode_libdir_separator_F77=:
13963 link_all_deplibs_F77=yes
13964 ;;
13965
13966 netbsd*)
13967 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13968 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13969 else
13970 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13971 fi
13972 hardcode_libdir_flag_spec_F77='-R$libdir'
13973 hardcode_direct_F77=yes
13974 hardcode_shlibpath_var_F77=no
13975 ;;
13976
13977 newsos6)
13978 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13979 hardcode_direct_F77=yes
13980 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13981 hardcode_libdir_separator_F77=:
13982 hardcode_shlibpath_var_F77=no
13983 ;;
13984
13985 openbsd*)
13986 hardcode_direct_F77=yes
13987 hardcode_shlibpath_var_F77=no
13988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13989 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013990 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 +000013991 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13992 export_dynamic_flag_spec_F77='${wl}-E'
13993 else
13994 case $host_os in
13995 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13996 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13997 hardcode_libdir_flag_spec_F77='-R$libdir'
13998 ;;
13999 *)
14000 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14001 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14002 ;;
14003 esac
14004 fi
14005 ;;
14006
14007 os2*)
14008 hardcode_libdir_flag_spec_F77='-L$libdir'
14009 hardcode_minus_L_F77=yes
14010 allow_undefined_flag_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000014011 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 +000014012 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14013 ;;
14014
14015 osf3*)
14016 if test "$GCC" = yes; then
14017 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14018 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'
14019 else
14020 allow_undefined_flag_F77=' -expect_unresolved \*'
14021 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'
14022 fi
14023 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14024 hardcode_libdir_separator_F77=:
14025 ;;
14026
14027 osf4* | osf5*) # as osf3* with the addition of -msym flag
14028 if test "$GCC" = yes; then
14029 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14030 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'
14031 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14032 else
14033 allow_undefined_flag_F77=' -expect_unresolved \*'
14034 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 Spencer2706f8c2004-09-19 23:53:36 +000014035 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; $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'
John Criswell47fdd832003-07-14 16:52:07 +000014036 # Both c and cxx compiler support -rpath directly
14037 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14038 fi
14039 hardcode_libdir_separator_F77=:
14040 ;;
14041
14042 sco3.2v5*)
14043 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14044 hardcode_shlibpath_var_F77=no
14045 export_dynamic_flag_spec_F77='${wl}-Bexport'
14046 runpath_var=LD_RUN_PATH
14047 hardcode_runpath_var=yes
14048 ;;
14049
14050 solaris*)
14051 no_undefined_flag_F77=' -z text'
14052 if test "$GCC" = yes; then
14053 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014054 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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 +000014055 else
14056 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014057 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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 +000014058 fi
14059 hardcode_libdir_flag_spec_F77='-R$libdir'
14060 hardcode_shlibpath_var_F77=no
14061 case $host_os in
14062 solaris2.[0-5] | solaris2.[0-5].*) ;;
14063 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14064 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14065 esac
14066 link_all_deplibs_F77=yes
14067 ;;
14068
14069 sunos4*)
14070 if test "x$host_vendor" = xsequent; then
14071 # Use $CC to link under sequent, because it throws in some extra .o
14072 # files that make .init and .fini sections work.
14073 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14074 else
14075 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14076 fi
14077 hardcode_libdir_flag_spec_F77='-L$libdir'
14078 hardcode_direct_F77=yes
14079 hardcode_minus_L_F77=yes
14080 hardcode_shlibpath_var_F77=no
14081 ;;
14082
14083 sysv4)
14084 case $host_vendor in
14085 sni)
14086 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14087 hardcode_direct_F77=yes # is this really true???
14088 ;;
14089 siemens)
14090 ## LD is ld it makes a PLAMLIB
14091 ## CC just makes a GrossModule.
14092 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14093 reload_cmds_F77='$CC -r -o $output$reload_objs'
14094 hardcode_direct_F77=no
14095 ;;
14096 motorola)
14097 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14098 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14099 ;;
14100 esac
14101 runpath_var='LD_RUN_PATH'
14102 hardcode_shlibpath_var_F77=no
14103 ;;
14104
14105 sysv4.3*)
14106 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14107 hardcode_shlibpath_var_F77=no
14108 export_dynamic_flag_spec_F77='-Bexport'
14109 ;;
14110
14111 sysv4*MP*)
14112 if test -d /usr/nec; then
14113 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14114 hardcode_shlibpath_var_F77=no
14115 runpath_var=LD_RUN_PATH
14116 hardcode_runpath_var=yes
14117 ld_shlibs_F77=yes
14118 fi
14119 ;;
14120
14121 sysv4.2uw2*)
14122 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14123 hardcode_direct_F77=yes
14124 hardcode_minus_L_F77=no
14125 hardcode_shlibpath_var_F77=no
14126 hardcode_runpath_var=yes
14127 runpath_var=LD_RUN_PATH
14128 ;;
14129
14130 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14131 no_undefined_flag_F77='${wl}-z ${wl}text'
14132 if test "$GCC" = yes; then
14133 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14134 else
14135 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14136 fi
14137 runpath_var='LD_RUN_PATH'
14138 hardcode_shlibpath_var_F77=no
14139 ;;
14140
14141 sysv5*)
14142 no_undefined_flag_F77=' -z text'
14143 # $CC -shared without GNU ld will not create a library from C++
14144 # object files and a static libstdc++, better avoid it by now
14145 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014146 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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 +000014147 hardcode_libdir_flag_spec_F77=
14148 hardcode_shlibpath_var_F77=no
14149 runpath_var='LD_RUN_PATH'
14150 ;;
14151
14152 uts4*)
14153 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14154 hardcode_libdir_flag_spec_F77='-L$libdir'
14155 hardcode_shlibpath_var_F77=no
14156 ;;
14157
14158 *)
14159 ld_shlibs_F77=no
14160 ;;
14161 esac
14162 fi
14163
14164echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14165echo "${ECHO_T}$ld_shlibs_F77" >&6
14166test "$ld_shlibs_F77" = no && can_build_shared=no
14167
14168variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14169if test "$GCC" = yes; then
14170 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14171fi
14172
14173#
14174# Do we need to explicitly link libc?
14175#
14176case "x$archive_cmds_need_lc_F77" in
14177x|xyes)
14178 # Assume -lc should be added
14179 archive_cmds_need_lc_F77=yes
14180
14181 if test "$enable_shared" = yes && test "$GCC" = yes; then
14182 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014183 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000014184 # FIXME: we may have to deal with multi-command sequences.
14185 ;;
14186 '$CC '*)
14187 # Test whether the compiler implicitly links with -lc since on some
14188 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14189 # to ld, don't add -lc before -lgcc.
14190 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14191echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14192 $rm conftest*
14193 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14194
14195 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14196 (eval $ac_compile) 2>&5
14197 ac_status=$?
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } 2>conftest.err; then
14200 soname=conftest
14201 lib=conftest
14202 libobjs=conftest.$ac_objext
14203 deplibs=
14204 wl=$lt_prog_compiler_wl_F77
14205 compiler_flags=-v
14206 linker_flags=-v
14207 verstring=
14208 output_objdir=.
14209 libname=conftest
14210 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14211 allow_undefined_flag_F77=
14212 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14213 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14214 ac_status=$?
14215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216 (exit $ac_status); }
14217 then
14218 archive_cmds_need_lc_F77=no
14219 else
14220 archive_cmds_need_lc_F77=yes
14221 fi
14222 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14223 else
14224 cat conftest.err 1>&5
14225 fi
14226 $rm conftest*
14227 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14228echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14229 ;;
14230 esac
14231 fi
14232 ;;
14233esac
14234
John Criswell47fdd832003-07-14 16:52:07 +000014235echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14236echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14237library_names_spec=
14238libname_spec='lib$name'
14239soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000014240shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000014241postinstall_cmds=
14242postuninstall_cmds=
14243finish_cmds=
14244finish_eval=
14245shlibpath_var=
14246shlibpath_overrides_runpath=unknown
14247version_type=none
14248dynamic_linker="$host_os ld.so"
14249sys_lib_dlsearch_path_spec="/lib /usr/lib"
14250if test "$GCC" = yes; then
14251 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14252 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14253 # if the path contains ";" then we assume it to be the separator
14254 # otherwise default to the standard path separator (i.e. ":") - it is
14255 # assumed that no part of a normal pathname contains ";" but that should
14256 # okay in the real world where ";" in dirpaths is itself problematic.
14257 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14258 else
14259 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14260 fi
14261else
14262 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14263fi
14264need_lib_prefix=unknown
14265hardcode_into_libs=no
14266
14267# when you set need_version to no, make sure it does not cause -set_version
14268# flags to be left without arguments
14269need_version=unknown
14270
14271case $host_os in
14272aix3*)
14273 version_type=linux
14274 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14275 shlibpath_var=LIBPATH
14276
14277 # AIX 3 has no versioning support, so we append a major version to the name.
14278 soname_spec='${libname}${release}${shared_ext}$major'
14279 ;;
14280
14281aix4* | aix5*)
14282 version_type=linux
14283 need_lib_prefix=no
14284 need_version=no
14285 hardcode_into_libs=yes
14286 if test "$host_cpu" = ia64; then
14287 # AIX 5 supports IA64
14288 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14289 shlibpath_var=LD_LIBRARY_PATH
14290 else
14291 # With GCC up to 2.95.x, collect2 would create an import file
14292 # for dependence libraries. The import file would start with
14293 # the line `#! .'. This would cause the generated library to
14294 # depend on `.', always an invalid library. This was fixed in
14295 # development snapshots of GCC prior to 3.0.
14296 case $host_os in
14297 aix4 | aix4.[01] | aix4.[01].*)
14298 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14299 echo ' yes '
14300 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14301 :
14302 else
14303 can_build_shared=no
14304 fi
14305 ;;
14306 esac
14307 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14308 # soname into executable. Probably we can add versioning support to
14309 # collect2, so additional links can be useful in future.
14310 if test "$aix_use_runtimelinking" = yes; then
14311 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14312 # instead of lib<name>.a to let people know that these are not
14313 # typical AIX shared libraries.
14314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14315 else
14316 # We preserve .a as extension for shared libraries through AIX4.2
14317 # and later when we are not doing run time linking.
14318 library_names_spec='${libname}${release}.a $libname.a'
14319 soname_spec='${libname}${release}${shared_ext}$major'
14320 fi
14321 shlibpath_var=LIBPATH
14322 fi
14323 ;;
14324
14325amigaos*)
14326 library_names_spec='$libname.ixlibrary $libname.a'
14327 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014328 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 +000014329 ;;
14330
14331beos*)
14332 library_names_spec='${libname}${shared_ext}'
14333 dynamic_linker="$host_os ld.so"
14334 shlibpath_var=LIBRARY_PATH
14335 ;;
14336
Reid Spencer2706f8c2004-09-19 23:53:36 +000014337bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000014338 version_type=linux
14339 need_version=no
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14343 shlibpath_var=LD_LIBRARY_PATH
14344 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14345 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14346 # the default ld.so.conf also contains /usr/contrib/lib and
14347 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14348 # libtool to hard-code these into programs
14349 ;;
14350
14351cygwin* | mingw* | pw32*)
14352 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000014353 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014354 need_version=no
14355 need_lib_prefix=no
14356
14357 case $GCC,$host_os in
14358 yes,cygwin* | yes,mingw* | yes,pw32*)
14359 library_names_spec='$libname.dll.a'
14360 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer2706f8c2004-09-19 23:53:36 +000014361 postinstall_cmds='base_file=`basename \${file}`;
14362 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
14363 dldir=$destdir/`dirname \$dlpath`;
14364 test -d \$dldir || mkdir -p \$dldir;
John Criswell47fdd832003-07-14 16:52:07 +000014365 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014366 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
14367 dlpath=$dir/\$dldll;
John Criswell47fdd832003-07-14 16:52:07 +000014368 $rm \$dlpath'
14369 shlibpath_overrides_runpath=yes
14370
14371 case $host_os in
14372 cygwin*)
14373 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14374 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 +000014375 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000014376 ;;
14377 mingw*)
14378 # MinGW DLLs use traditional 'lib' prefix
14379 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14380 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14381 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14382 # It is most probably a Windows format PATH printed by
14383 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14384 # path with ; separators, and with drive letters. We can handle the
14385 # drive letters (cygwin fileutils understands them), so leave them,
14386 # especially as we might pass files found there to a mingw objdump,
14387 # which wouldn't understand a cygwinified path. Ahh.
14388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14389 else
14390 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14391 fi
14392 ;;
14393 pw32*)
14394 # pw32 DLLs use 'pw' prefix rather than 'lib'
14395 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14396 ;;
14397 esac
14398 ;;
14399
14400 *)
14401 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14402 ;;
14403 esac
14404 dynamic_linker='Win32 ld.exe'
14405 # FIXME: first we should search . and the directory the executable is in
14406 shlibpath_var=PATH
14407 ;;
14408
14409darwin* | rhapsody*)
14410 dynamic_linker="$host_os dyld"
14411 version_type=darwin
14412 need_lib_prefix=no
14413 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000014414 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000014415 soname_spec='${libname}${release}${major}$shared_ext'
14416 shlibpath_overrides_runpath=yes
14417 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000014418 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000014419 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014420 if test "$GCC" = yes; then
14421 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"`
14422 else
14423 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000014424 fi
14425 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14426 ;;
14427
14428dgux*)
14429 version_type=linux
14430 need_lib_prefix=no
14431 need_version=no
14432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14433 soname_spec='${libname}${release}${shared_ext}$major'
14434 shlibpath_var=LD_LIBRARY_PATH
14435 ;;
14436
14437freebsd1*)
14438 dynamic_linker=no
14439 ;;
14440
Reid Spencer2706f8c2004-09-19 23:53:36 +000014441kfreebsd*-gnu)
14442 version_type=linux
14443 need_lib_prefix=no
14444 need_version=no
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 shlibpath_var=LD_LIBRARY_PATH
14448 shlibpath_overrides_runpath=no
14449 hardcode_into_libs=yes
14450 dynamic_linker='GNU ld.so'
14451 ;;
14452
John Criswell47fdd832003-07-14 16:52:07 +000014453freebsd*)
14454 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14455 version_type=freebsd-$objformat
14456 case $version_type in
14457 freebsd-elf*)
14458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14459 need_version=no
14460 need_lib_prefix=no
14461 ;;
14462 freebsd-*)
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14464 need_version=yes
14465 ;;
14466 esac
14467 shlibpath_var=LD_LIBRARY_PATH
14468 case $host_os in
14469 freebsd2*)
14470 shlibpath_overrides_runpath=yes
14471 ;;
14472 freebsd3.01* | freebsdelf3.01*)
14473 shlibpath_overrides_runpath=yes
14474 hardcode_into_libs=yes
14475 ;;
14476 *) # from 3.2 on
14477 shlibpath_overrides_runpath=no
14478 hardcode_into_libs=yes
14479 ;;
14480 esac
14481 ;;
14482
14483gnu*)
14484 version_type=linux
14485 need_lib_prefix=no
14486 need_version=no
14487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14488 soname_spec='${libname}${release}${shared_ext}$major'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 hardcode_into_libs=yes
14491 ;;
14492
14493hpux9* | hpux10* | hpux11*)
14494 # Give a soname corresponding to the major version so that dld.sl refuses to
14495 # link against other versions.
14496 version_type=sunos
14497 need_lib_prefix=no
14498 need_version=no
14499 case "$host_cpu" in
14500 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014501 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000014502 hardcode_into_libs=yes
14503 dynamic_linker="$host_os dld.so"
14504 shlibpath_var=LD_LIBRARY_PATH
14505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507 soname_spec='${libname}${release}${shared_ext}$major'
14508 if test "X$HPUX_IA64_MODE" = X32; then
14509 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14510 else
14511 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14512 fi
14513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14514 ;;
14515 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014516 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000014517 hardcode_into_libs=yes
14518 dynamic_linker="$host_os dld.sl"
14519 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14522 soname_spec='${libname}${release}${shared_ext}$major'
14523 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14525 ;;
14526 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014527 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000014528 dynamic_linker="$host_os dld.sl"
14529 shlibpath_var=SHLIB_PATH
14530 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532 soname_spec='${libname}${release}${shared_ext}$major'
14533 ;;
14534 esac
14535 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14536 postinstall_cmds='chmod 555 $lib'
14537 ;;
14538
14539irix5* | irix6* | nonstopux*)
14540 case $host_os in
14541 nonstopux*) version_type=nonstopux ;;
14542 *)
14543 if test "$lt_cv_prog_gnu_ld" = yes; then
14544 version_type=linux
14545 else
14546 version_type=irix
14547 fi ;;
14548 esac
14549 need_lib_prefix=no
14550 need_version=no
14551 soname_spec='${libname}${release}${shared_ext}$major'
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14553 case $host_os in
14554 irix5* | nonstopux*)
14555 libsuff= shlibsuff=
14556 ;;
14557 *)
14558 case $LD in # libtool.m4 will add one of these switches to LD
14559 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14560 libsuff= shlibsuff= libmagic=32-bit;;
14561 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14562 libsuff=32 shlibsuff=N32 libmagic=N32;;
14563 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14564 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14565 *) libsuff= shlibsuff= libmagic=never-match;;
14566 esac
14567 ;;
14568 esac
14569 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14570 shlibpath_overrides_runpath=no
14571 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14572 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14573 hardcode_into_libs=yes
14574 ;;
14575
14576# No shared lib support for Linux oldld, aout, or coff.
14577linux*oldld* | linux*aout* | linux*coff*)
14578 dynamic_linker=no
14579 ;;
14580
14581# This must be Linux ELF.
14582linux*)
14583 version_type=linux
14584 need_lib_prefix=no
14585 need_version=no
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14587 soname_spec='${libname}${release}${shared_ext}$major'
14588 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14589 shlibpath_var=LD_LIBRARY_PATH
14590 shlibpath_overrides_runpath=no
14591 # This implies no fast_install, which is unacceptable.
14592 # Some rework will be needed to allow for fast_install
14593 # before this can be enabled.
14594 hardcode_into_libs=yes
14595
Reid Spencer2706f8c2004-09-19 23:53:36 +000014596 # Append ld.so.conf contents to the search path
14597 if test -f /etc/ld.so.conf; then
14598 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14599 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14600 fi
14601
John Criswell47fdd832003-07-14 16:52:07 +000014602 # We used to test for /lib/ld.so.1 and disable shared libraries on
14603 # powerpc, because MkLinux only supported shared libraries with the
14604 # GNU dynamic linker. Since this was broken with cross compilers,
14605 # most powerpc-linux boxes support dynamic linking these days and
14606 # people can always --disable-shared, the test was removed, and we
14607 # assume the GNU/Linux dynamic linker is in use.
14608 dynamic_linker='GNU/Linux ld.so'
14609 ;;
14610
Reid Spencer2706f8c2004-09-19 23:53:36 +000014611knetbsd*-gnu)
14612 version_type=linux
14613 need_lib_prefix=no
14614 need_version=no
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 shlibpath_overrides_runpath=no
14619 hardcode_into_libs=yes
14620 dynamic_linker='GNU ld.so'
14621 ;;
14622
John Criswell47fdd832003-07-14 16:52:07 +000014623netbsd*)
14624 version_type=sunos
14625 need_lib_prefix=no
14626 need_version=no
14627 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14629 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14630 dynamic_linker='NetBSD (a.out) ld.so'
14631 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000014632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000014633 soname_spec='${libname}${release}${shared_ext}$major'
14634 dynamic_linker='NetBSD ld.elf_so'
14635 fi
14636 shlibpath_var=LD_LIBRARY_PATH
14637 shlibpath_overrides_runpath=yes
14638 hardcode_into_libs=yes
14639 ;;
14640
14641newsos6)
14642 version_type=linux
14643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14644 shlibpath_var=LD_LIBRARY_PATH
14645 shlibpath_overrides_runpath=yes
14646 ;;
14647
Reid Spencer2706f8c2004-09-19 23:53:36 +000014648nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000014649 version_type=linux
14650 need_lib_prefix=no
14651 need_version=no
14652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14653 soname_spec='${libname}${release}${shared_ext}$major'
14654 shlibpath_var=LD_LIBRARY_PATH
14655 shlibpath_overrides_runpath=yes
14656 ;;
14657
14658openbsd*)
14659 version_type=sunos
14660 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000014661 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14664 shlibpath_var=LD_LIBRARY_PATH
14665 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14666 case $host_os in
14667 openbsd2.[89] | openbsd2.[89].*)
14668 shlibpath_overrides_runpath=no
14669 ;;
14670 *)
14671 shlibpath_overrides_runpath=yes
14672 ;;
14673 esac
14674 else
14675 shlibpath_overrides_runpath=yes
14676 fi
14677 ;;
14678
14679os2*)
14680 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014681 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014682 need_lib_prefix=no
14683 library_names_spec='$libname${shared_ext} $libname.a'
14684 dynamic_linker='OS/2 ld.exe'
14685 shlibpath_var=LIBPATH
14686 ;;
14687
14688osf3* | osf4* | osf5*)
14689 version_type=osf
14690 need_lib_prefix=no
14691 need_version=no
14692 soname_spec='${libname}${release}${shared_ext}$major'
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 shlibpath_var=LD_LIBRARY_PATH
14695 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14696 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14697 ;;
14698
14699sco3.2v5*)
14700 version_type=osf
14701 soname_spec='${libname}${release}${shared_ext}$major'
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703 shlibpath_var=LD_LIBRARY_PATH
14704 ;;
14705
14706solaris*)
14707 version_type=linux
14708 need_lib_prefix=no
14709 need_version=no
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711 soname_spec='${libname}${release}${shared_ext}$major'
14712 shlibpath_var=LD_LIBRARY_PATH
14713 shlibpath_overrides_runpath=yes
14714 hardcode_into_libs=yes
14715 # ldd complains unless libraries are executable
14716 postinstall_cmds='chmod +x $lib'
14717 ;;
14718
14719sunos4*)
14720 version_type=sunos
14721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14722 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14723 shlibpath_var=LD_LIBRARY_PATH
14724 shlibpath_overrides_runpath=yes
14725 if test "$with_gnu_ld" = yes; then
14726 need_lib_prefix=no
14727 fi
14728 need_version=yes
14729 ;;
14730
14731sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14732 version_type=linux
14733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734 soname_spec='${libname}${release}${shared_ext}$major'
14735 shlibpath_var=LD_LIBRARY_PATH
14736 case $host_vendor in
14737 sni)
14738 shlibpath_overrides_runpath=no
14739 need_lib_prefix=no
14740 export_dynamic_flag_spec='${wl}-Blargedynsym'
14741 runpath_var=LD_RUN_PATH
14742 ;;
14743 siemens)
14744 need_lib_prefix=no
14745 ;;
14746 motorola)
14747 need_lib_prefix=no
14748 need_version=no
14749 shlibpath_overrides_runpath=no
14750 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14751 ;;
14752 esac
14753 ;;
14754
14755sysv4*MP*)
14756 if test -d /usr/nec ;then
14757 version_type=linux
14758 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14759 soname_spec='$libname${shared_ext}.$major'
14760 shlibpath_var=LD_LIBRARY_PATH
14761 fi
14762 ;;
14763
14764uts4*)
14765 version_type=linux
14766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14767 soname_spec='${libname}${release}${shared_ext}$major'
14768 shlibpath_var=LD_LIBRARY_PATH
14769 ;;
14770
14771*)
14772 dynamic_linker=no
14773 ;;
14774esac
14775echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14776echo "${ECHO_T}$dynamic_linker" >&6
14777test "$dynamic_linker" = no && can_build_shared=no
14778
Reid Spencer2706f8c2004-09-19 23:53:36 +000014779echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14780echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14781hardcode_action_F77=
14782if test -n "$hardcode_libdir_flag_spec_F77" || \
14783 test -n "$runpath_var_F77" || \
14784 test "X$hardcode_automatic_F77" = "Xyes" ; then
14785
14786 # We can hardcode non-existant directories.
14787 if test "$hardcode_direct_F77" != no &&
14788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14789 # have to relink, otherwise we might link with an installed library
14790 # when we should be linking with a yet-to-be-installed one
14791 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14792 test "$hardcode_minus_L_F77" != no; then
14793 # Linking always hardcodes the temporary library directory.
14794 hardcode_action_F77=relink
14795 else
14796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14797 hardcode_action_F77=immediate
14798 fi
14799else
14800 # We cannot hardcode anything, or else we can only hardcode existing
14801 # directories.
14802 hardcode_action_F77=unsupported
14803fi
14804echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14805echo "${ECHO_T}$hardcode_action_F77" >&6
14806
14807if test "$hardcode_action_F77" = relink; then
14808 # Fast installation is not supported
14809 enable_fast_install=no
14810elif test "$shlibpath_overrides_runpath" = yes ||
14811 test "$enable_shared" = no; then
14812 # Fast installation is not necessary
14813 enable_fast_install=needless
14814fi
14815
14816striplib=
14817old_striplib=
14818echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14819echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14820if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14821 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14822 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14823 echo "$as_me:$LINENO: result: yes" >&5
14824echo "${ECHO_T}yes" >&6
14825else
14826# FIXME - insert some real tests, host_os isn't really good enough
14827 case $host_os in
14828 darwin*)
14829 if test -n "$STRIP" ; then
14830 striplib="$STRIP -x"
14831 echo "$as_me:$LINENO: result: yes" >&5
14832echo "${ECHO_T}yes" >&6
14833 else
14834 echo "$as_me:$LINENO: result: no" >&5
14835echo "${ECHO_T}no" >&6
14836fi
14837 ;;
14838 *)
14839 echo "$as_me:$LINENO: result: no" >&5
14840echo "${ECHO_T}no" >&6
14841 ;;
14842 esac
14843fi
14844
14845
John Criswell47fdd832003-07-14 16:52:07 +000014846
14847# The else clause should only fire when bootstrapping the
14848# libtool distribution, otherwise you forgot to ship ltmain.sh
14849# with your package, and you will get complaints that there are
14850# no rules to generate ltmain.sh.
14851if test -f "$ltmain"; then
14852 # See if we are running on zsh, and set the options which allow our commands through
14853 # without removal of \ escapes.
14854 if test -n "${ZSH_VERSION+set}" ; then
14855 setopt NO_GLOB_SUBST
14856 fi
14857 # Now quote all the things that may contain metacharacters while being
14858 # careful not to overquote the AC_SUBSTed values. We take copies of the
14859 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014860 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14861 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014862 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14863 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14864 deplibs_check_method reload_flag reload_cmds need_locks \
14865 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14866 lt_cv_sys_global_symbol_to_c_name_address \
14867 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14868 old_postinstall_cmds old_postuninstall_cmds \
14869 compiler_F77 \
14870 CC_F77 \
14871 LD_F77 \
14872 lt_prog_compiler_wl_F77 \
14873 lt_prog_compiler_pic_F77 \
14874 lt_prog_compiler_static_F77 \
14875 lt_prog_compiler_no_builtin_flag_F77 \
14876 export_dynamic_flag_spec_F77 \
14877 thread_safe_flag_spec_F77 \
14878 whole_archive_flag_spec_F77 \
14879 enable_shared_with_static_runtimes_F77 \
14880 old_archive_cmds_F77 \
14881 old_archive_from_new_cmds_F77 \
14882 predep_objects_F77 \
14883 postdep_objects_F77 \
14884 predeps_F77 \
14885 postdeps_F77 \
14886 compiler_lib_search_path_F77 \
14887 archive_cmds_F77 \
14888 archive_expsym_cmds_F77 \
14889 postinstall_cmds_F77 \
14890 postuninstall_cmds_F77 \
14891 old_archive_from_expsyms_cmds_F77 \
14892 allow_undefined_flag_F77 \
14893 no_undefined_flag_F77 \
14894 export_symbols_cmds_F77 \
14895 hardcode_libdir_flag_spec_F77 \
14896 hardcode_libdir_flag_spec_ld_F77 \
14897 hardcode_libdir_separator_F77 \
14898 hardcode_automatic_F77 \
14899 module_cmds_F77 \
14900 module_expsym_cmds_F77 \
14901 lt_cv_prog_compiler_c_o_F77 \
14902 exclude_expsyms_F77 \
14903 include_expsyms_F77; do
14904
14905 case $var in
14906 old_archive_cmds_F77 | \
14907 old_archive_from_new_cmds_F77 | \
14908 archive_cmds_F77 | \
14909 archive_expsym_cmds_F77 | \
14910 module_cmds_F77 | \
14911 module_expsym_cmds_F77 | \
14912 old_archive_from_expsyms_cmds_F77 | \
14913 export_symbols_cmds_F77 | \
14914 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14915 postinstall_cmds | postuninstall_cmds | \
14916 old_postinstall_cmds | old_postuninstall_cmds | \
14917 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14918 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014919 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 +000014920 ;;
14921 *)
14922 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14923 ;;
14924 esac
14925 done
14926
14927 case $lt_echo in
14928 *'\$0 --fallback-echo"')
14929 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14930 ;;
14931 esac
14932
14933cfgfile="$ofile"
14934
14935 cat <<__EOF__ >> "$cfgfile"
14936# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14937
14938# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14939
14940# Shell to use when invoking shell scripts.
14941SHELL=$lt_SHELL
14942
14943# Whether or not to build shared libraries.
14944build_libtool_libs=$enable_shared
14945
14946# Whether or not to build static libraries.
14947build_old_libs=$enable_static
14948
14949# Whether or not to add -lc for building shared libraries.
14950build_libtool_need_lc=$archive_cmds_need_lc_F77
14951
14952# Whether or not to disallow shared libs when runtime libs are static
14953allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14954
14955# Whether or not to optimize for fast installation.
14956fast_install=$enable_fast_install
14957
14958# The host system.
14959host_alias=$host_alias
14960host=$host
14961
14962# An echo program that does not interpret backslashes.
14963echo=$lt_echo
14964
14965# The archiver.
14966AR=$lt_AR
14967AR_FLAGS=$lt_AR_FLAGS
14968
14969# A C compiler.
14970LTCC=$lt_LTCC
14971
14972# A language-specific compiler.
14973CC=$lt_compiler_F77
14974
14975# Is the compiler the GNU C compiler?
14976with_gcc=$GCC_F77
14977
14978# An ERE matcher.
14979EGREP=$lt_EGREP
14980
14981# The linker used to build libraries.
14982LD=$lt_LD_F77
14983
14984# Whether we need hard or soft links.
14985LN_S=$lt_LN_S
14986
14987# A BSD-compatible nm program.
14988NM=$lt_NM
14989
14990# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014991STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000014992
14993# Used to examine libraries when file_magic_cmd begins "file"
14994MAGIC_CMD=$MAGIC_CMD
14995
14996# Used on cygwin: DLL creation program.
14997DLLTOOL="$DLLTOOL"
14998
14999# Used on cygwin: object dumper.
15000OBJDUMP="$OBJDUMP"
15001
15002# Used on cygwin: assembler.
15003AS="$AS"
15004
15005# The name of the directory that contains temporary libtool files.
15006objdir=$objdir
15007
15008# How to create reloadable object files.
15009reload_flag=$lt_reload_flag
15010reload_cmds=$lt_reload_cmds
15011
15012# How to pass a linker flag through the compiler.
15013wl=$lt_lt_prog_compiler_wl_F77
15014
15015# Object file suffix (normally "o").
15016objext="$ac_objext"
15017
15018# Old archive suffix (normally "a").
15019libext="$libext"
15020
15021# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000015022shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000015023
15024# Executable file suffix (normally "").
15025exeext="$exeext"
15026
15027# Additional compiler flags for building library objects.
15028pic_flag=$lt_lt_prog_compiler_pic_F77
15029pic_mode=$pic_mode
15030
15031# What is the maximum length of a command?
15032max_cmd_len=$lt_cv_sys_max_cmd_len
15033
15034# Does compiler simultaneously support -c and -o options?
15035compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15036
15037# Must we lock files when doing compilation ?
15038need_locks=$lt_need_locks
15039
15040# Do we need the lib prefix for modules?
15041need_lib_prefix=$need_lib_prefix
15042
15043# Do we need a version for libraries?
15044need_version=$need_version
15045
15046# Whether dlopen is supported.
15047dlopen_support=$enable_dlopen
15048
15049# Whether dlopen of programs is supported.
15050dlopen_self=$enable_dlopen_self
15051
15052# Whether dlopen of statically linked programs is supported.
15053dlopen_self_static=$enable_dlopen_self_static
15054
15055# Compiler flag to prevent dynamic linking.
15056link_static_flag=$lt_lt_prog_compiler_static_F77
15057
15058# Compiler flag to turn off builtin functions.
15059no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15060
15061# Compiler flag to allow reflexive dlopens.
15062export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15063
15064# Compiler flag to generate shared objects directly from archives.
15065whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15066
15067# Compiler flag to generate thread-safe objects.
15068thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15069
15070# Library versioning type.
15071version_type=$version_type
15072
15073# Format of library name prefix.
15074libname_spec=$lt_libname_spec
15075
15076# List of archive names. First name is the real one, the rest are links.
15077# The last name is the one that the linker finds with -lNAME.
15078library_names_spec=$lt_library_names_spec
15079
15080# The coded name of the library, if different from the real name.
15081soname_spec=$lt_soname_spec
15082
15083# Commands used to build and install an old-style archive.
15084RANLIB=$lt_RANLIB
15085old_archive_cmds=$lt_old_archive_cmds_F77
15086old_postinstall_cmds=$lt_old_postinstall_cmds
15087old_postuninstall_cmds=$lt_old_postuninstall_cmds
15088
15089# Create an old-style archive from a shared archive.
15090old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15091
15092# Create a temporary old-style archive to link instead of a shared archive.
15093old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15094
15095# Commands used to build and install a shared archive.
15096archive_cmds=$lt_archive_cmds_F77
15097archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15098postinstall_cmds=$lt_postinstall_cmds
15099postuninstall_cmds=$lt_postuninstall_cmds
15100
15101# Commands used to build a loadable module (assumed same as above if empty)
15102module_cmds=$lt_module_cmds_F77
15103module_expsym_cmds=$lt_module_expsym_cmds_F77
15104
15105# Commands to strip libraries.
15106old_striplib=$lt_old_striplib
15107striplib=$lt_striplib
15108
15109# Dependencies to place before the objects being linked to create a
15110# shared library.
15111predep_objects=$lt_predep_objects_F77
15112
15113# Dependencies to place after the objects being linked to create a
15114# shared library.
15115postdep_objects=$lt_postdep_objects_F77
15116
15117# Dependencies to place before the objects being linked to create a
15118# shared library.
15119predeps=$lt_predeps_F77
15120
15121# Dependencies to place after the objects being linked to create a
15122# shared library.
15123postdeps=$lt_postdeps_F77
15124
15125# The library search path used internally by the compiler when linking
15126# a shared library.
15127compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15128
15129# Method to check whether dependent libraries are shared objects.
15130deplibs_check_method=$lt_deplibs_check_method
15131
15132# Command to use when deplibs_check_method == file_magic.
15133file_magic_cmd=$lt_file_magic_cmd
15134
15135# Flag that allows shared libraries with undefined symbols to be built.
15136allow_undefined_flag=$lt_allow_undefined_flag_F77
15137
15138# Flag that forces no undefined symbols.
15139no_undefined_flag=$lt_no_undefined_flag_F77
15140
15141# Commands used to finish a libtool library installation in a directory.
15142finish_cmds=$lt_finish_cmds
15143
15144# Same as above, but a single script fragment to be evaled but not shown.
15145finish_eval=$lt_finish_eval
15146
15147# Take the output of nm and produce a listing of raw symbols and C names.
15148global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15149
15150# Transform the output of nm in a proper C declaration
15151global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15152
15153# Transform the output of nm in a C name address pair
15154global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15155
15156# This is the shared library runtime path variable.
15157runpath_var=$runpath_var
15158
15159# This is the shared library path variable.
15160shlibpath_var=$shlibpath_var
15161
15162# Is shlibpath searched before the hard-coded library search path?
15163shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15164
15165# How to hardcode a shared library path into an executable.
15166hardcode_action=$hardcode_action_F77
15167
15168# Whether we should hardcode library paths into libraries.
15169hardcode_into_libs=$hardcode_into_libs
15170
15171# Flag to hardcode \$libdir into a binary during linking.
15172# This must work even if \$libdir does not exist.
15173hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15174
15175# If ld is used when linking, flag to hardcode \$libdir into
15176# a binary during linking. This must work even if \$libdir does
15177# not exist.
15178hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15179
15180# Whether we need a single -rpath flag with a separated argument.
15181hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15182
15183# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15184# resulting binary.
15185hardcode_direct=$hardcode_direct_F77
15186
15187# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15188# resulting binary.
15189hardcode_minus_L=$hardcode_minus_L_F77
15190
15191# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15192# the resulting binary.
15193hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15194
15195# Set to yes if building a shared library automatically hardcodes DIR into the library
15196# and all subsequent libraries and executables linked against it.
15197hardcode_automatic=$hardcode_automatic_F77
15198
15199# Variables whose values should be saved in libtool wrapper scripts and
15200# restored at relink time.
15201variables_saved_for_relink="$variables_saved_for_relink"
15202
15203# Whether libtool must link a program against all its dependency libraries.
15204link_all_deplibs=$link_all_deplibs_F77
15205
15206# Compile-time system search path for libraries
15207sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15208
15209# Run-time system search path for libraries
15210sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15211
15212# Fix the shell variable \$srcfile for the compiler.
15213fix_srcfile_path="$fix_srcfile_path_F77"
15214
15215# Set to yes if exported symbols are required.
15216always_export_symbols=$always_export_symbols_F77
15217
15218# The commands to list exported symbols.
15219export_symbols_cmds=$lt_export_symbols_cmds_F77
15220
15221# The commands to extract the exported symbol list from a shared archive.
15222extract_expsyms_cmds=$lt_extract_expsyms_cmds
15223
15224# Symbols that should not be listed in the preloaded symbols.
15225exclude_expsyms=$lt_exclude_expsyms_F77
15226
15227# Symbols that must always be exported.
15228include_expsyms=$lt_include_expsyms_F77
15229
15230# ### END LIBTOOL TAG CONFIG: $tagname
15231
15232__EOF__
15233
15234
15235else
15236 # If there is no Makefile yet, we rely on a make rule to execute
15237 # `config.status --recheck' to rerun these tests and create the
15238 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015239 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15240 if test -f "$ltmain_in"; then
15241 test -f Makefile && make "$ltmain"
15242 fi
John Criswell47fdd832003-07-14 16:52:07 +000015243fi
15244
15245
15246ac_ext=c
15247ac_cpp='$CPP $CPPFLAGS'
15248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15250ac_compiler_gnu=$ac_cv_c_compiler_gnu
15251
15252CC="$lt_save_CC"
15253
15254 else
15255 tagname=""
15256 fi
15257 ;;
15258
15259 GCJ)
15260 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015261 ac_ext=c
15262ac_cpp='$CPP $CPPFLAGS'
15263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15265ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000015266
15267
15268# Source file extension for Java test sources.
15269ac_ext=java
15270
15271# Object file extension for compiled Java test sources.
15272objext=o
15273objext_GCJ=$objext
15274
15275# Code to be used in simple compile tests
15276lt_simple_compile_test_code="class foo {}\n"
15277
15278# Code to be used in simple link tests
15279lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15280
15281# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15282
15283# If no C compiler was specified, use CC.
15284LTCC=${LTCC-"$CC"}
15285
15286# Allow CC to be a program name with arguments.
15287compiler=$CC
15288
15289
15290# Allow CC to be a program name with arguments.
15291lt_save_CC="$CC"
15292CC=${GCJ-"gcj"}
15293compiler=$CC
15294compiler_GCJ=$CC
15295
15296# GCJ did not exist at the time GCC didn't implicitly link libc in.
15297archive_cmds_need_lc_GCJ=no
15298
John Criswell47fdd832003-07-14 16:52:07 +000015299
15300lt_prog_compiler_no_builtin_flag_GCJ=
15301
15302if test "$GCC" = yes; then
15303 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15304
Reid Spencer2706f8c2004-09-19 23:53:36 +000015305
15306echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015307echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15308if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15309 echo $ECHO_N "(cached) $ECHO_C" >&6
15310else
15311 lt_cv_prog_compiler_rtti_exceptions=no
15312 ac_outfile=conftest.$ac_objext
15313 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15314 lt_compiler_flag="-fno-rtti -fno-exceptions"
15315 # Insert the option either (1) after the last *FLAGS variable, or
15316 # (2) before a word containing "conftest.", or (3) at the end.
15317 # Note that $ac_compile itself does not contain backslashes and begins
15318 # with a dollar sign (not a hyphen), so the echo should work correctly.
15319 # The option is referenced via a variable to avoid confusing sed.
15320 lt_compile=`echo "$ac_compile" | $SED \
15321 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15322 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15323 -e 's:$: $lt_compiler_flag:'`
John Criswell5fbb1f82004-09-24 13:28:51 +000015324 (eval echo "\"\$as_me:15324: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015325 (eval "$lt_compile" 2>conftest.err)
15326 ac_status=$?
15327 cat conftest.err >&5
John Criswell5fbb1f82004-09-24 13:28:51 +000015328 echo "$as_me:15328: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015329 if (exit $ac_status) && test -s "$ac_outfile"; then
15330 # The compiler can only warn and ignore the option if not recognized
15331 # So say no if there are warnings
15332 if test ! -s conftest.err; then
15333 lt_cv_prog_compiler_rtti_exceptions=yes
15334 fi
15335 fi
15336 $rm conftest*
15337
15338fi
15339echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15340echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15341
15342if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15343 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15344else
15345 :
15346fi
15347
15348fi
15349
15350lt_prog_compiler_wl_GCJ=
15351lt_prog_compiler_pic_GCJ=
15352lt_prog_compiler_static_GCJ=
15353
15354echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15355echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15356
15357 if test "$GCC" = yes; then
15358 lt_prog_compiler_wl_GCJ='-Wl,'
15359 lt_prog_compiler_static_GCJ='-static'
15360
15361 case $host_os in
15362 aix*)
15363 # All AIX code is PIC.
15364 if test "$host_cpu" = ia64; then
15365 # AIX 5 now supports IA64 processor
15366 lt_prog_compiler_static_GCJ='-Bstatic'
15367 fi
15368 ;;
15369
15370 amigaos*)
15371 # FIXME: we need at least 68020 code to build shared libraries, but
15372 # adding the `-m68020' flag to GCC prevents building anything better,
15373 # like `-m68040'.
15374 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15375 ;;
15376
15377 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15378 # PIC is the default for these OSes.
15379 ;;
15380
15381 mingw* | pw32* | os2*)
15382 # This hack is so that the source file can tell whether it is being
15383 # built for inclusion in a dll (and should export symbols for example).
15384 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15385 ;;
15386
15387 darwin* | rhapsody*)
15388 # PIC is the default on this platform
15389 # Common symbols not allowed in MH_DYLIB files
15390 lt_prog_compiler_pic_GCJ='-fno-common'
15391 ;;
15392
15393 msdosdjgpp*)
15394 # Just because we use GCC doesn't mean we suddenly get shared libraries
15395 # on systems that don't support them.
15396 lt_prog_compiler_can_build_shared_GCJ=no
15397 enable_shared=no
15398 ;;
15399
15400 sysv4*MP*)
15401 if test -d /usr/nec; then
15402 lt_prog_compiler_pic_GCJ=-Kconform_pic
15403 fi
15404 ;;
15405
15406 hpux*)
15407 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15408 # not for PA HP-UX.
15409 case "$host_cpu" in
15410 hppa*64*|ia64*)
15411 # +Z the default
15412 ;;
15413 *)
15414 lt_prog_compiler_pic_GCJ='-fPIC'
15415 ;;
15416 esac
15417 ;;
15418
15419 *)
15420 lt_prog_compiler_pic_GCJ='-fPIC'
15421 ;;
15422 esac
15423 else
15424 # PORTME Check for flag to pass linker flags through the system compiler.
15425 case $host_os in
15426 aix*)
15427 lt_prog_compiler_wl_GCJ='-Wl,'
15428 if test "$host_cpu" = ia64; then
15429 # AIX 5 now supports IA64 processor
15430 lt_prog_compiler_static_GCJ='-Bstatic'
15431 else
15432 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15433 fi
15434 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015435 darwin*)
15436 # PIC is the default on this platform
15437 # Common symbols not allowed in MH_DYLIB files
15438 case "$cc_basename" in
15439 xlc*)
15440 lt_prog_compiler_pic_GCJ='-qnocommon'
15441 lt_prog_compiler_wl_GCJ='-Wl,'
15442 ;;
15443 esac
15444 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015445
15446 mingw* | pw32* | os2*)
15447 # This hack is so that the source file can tell whether it is being
15448 # built for inclusion in a dll (and should export symbols for example).
15449 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15450 ;;
15451
15452 hpux9* | hpux10* | hpux11*)
15453 lt_prog_compiler_wl_GCJ='-Wl,'
15454 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15455 # not for PA HP-UX.
15456 case "$host_cpu" in
15457 hppa*64*|ia64*)
15458 # +Z the default
15459 ;;
15460 *)
15461 lt_prog_compiler_pic_GCJ='+Z'
15462 ;;
15463 esac
15464 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15465 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15466 ;;
15467
15468 irix5* | irix6* | nonstopux*)
15469 lt_prog_compiler_wl_GCJ='-Wl,'
15470 # PIC (with -KPIC) is the default.
15471 lt_prog_compiler_static_GCJ='-non_shared'
15472 ;;
15473
15474 newsos6)
15475 lt_prog_compiler_pic_GCJ='-KPIC'
15476 lt_prog_compiler_static_GCJ='-Bstatic'
15477 ;;
15478
15479 linux*)
15480 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015481 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015482 lt_prog_compiler_wl_GCJ='-Wl,'
15483 lt_prog_compiler_pic_GCJ='-KPIC'
15484 lt_prog_compiler_static_GCJ='-static'
15485 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015486 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015487 lt_prog_compiler_wl_GCJ='-Wl,'
15488 # All Alpha code is PIC.
15489 lt_prog_compiler_static_GCJ='-non_shared'
15490 ;;
15491 esac
15492 ;;
15493
15494 osf3* | osf4* | osf5*)
15495 lt_prog_compiler_wl_GCJ='-Wl,'
15496 # All OSF/1 code is PIC.
15497 lt_prog_compiler_static_GCJ='-non_shared'
15498 ;;
15499
15500 sco3.2v5*)
15501 lt_prog_compiler_pic_GCJ='-Kpic'
15502 lt_prog_compiler_static_GCJ='-dn'
15503 ;;
15504
15505 solaris*)
15506 lt_prog_compiler_wl_GCJ='-Wl,'
15507 lt_prog_compiler_pic_GCJ='-KPIC'
15508 lt_prog_compiler_static_GCJ='-Bstatic'
15509 ;;
15510
15511 sunos4*)
15512 lt_prog_compiler_wl_GCJ='-Qoption ld '
15513 lt_prog_compiler_pic_GCJ='-PIC'
15514 lt_prog_compiler_static_GCJ='-Bstatic'
15515 ;;
15516
15517 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15518 lt_prog_compiler_wl_GCJ='-Wl,'
15519 lt_prog_compiler_pic_GCJ='-KPIC'
15520 lt_prog_compiler_static_GCJ='-Bstatic'
15521 ;;
15522
15523 sysv4*MP*)
15524 if test -d /usr/nec ;then
15525 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15526 lt_prog_compiler_static_GCJ='-Bstatic'
15527 fi
15528 ;;
15529
15530 uts4*)
15531 lt_prog_compiler_pic_GCJ='-pic'
15532 lt_prog_compiler_static_GCJ='-Bstatic'
15533 ;;
15534
15535 *)
15536 lt_prog_compiler_can_build_shared_GCJ=no
15537 ;;
15538 esac
15539 fi
15540
15541echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15542echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15543
15544#
15545# Check to make sure the PIC flag actually works.
15546#
15547if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015548
15549echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015550echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15551if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15553else
15554 lt_prog_compiler_pic_works_GCJ=no
15555 ac_outfile=conftest.$ac_objext
15556 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15557 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15558 # Insert the option either (1) after the last *FLAGS variable, or
15559 # (2) before a word containing "conftest.", or (3) at the end.
15560 # Note that $ac_compile itself does not contain backslashes and begins
15561 # with a dollar sign (not a hyphen), so the echo should work correctly.
15562 # The option is referenced via a variable to avoid confusing sed.
15563 lt_compile=`echo "$ac_compile" | $SED \
15564 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15565 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15566 -e 's:$: $lt_compiler_flag:'`
John Criswell5fbb1f82004-09-24 13:28:51 +000015567 (eval echo "\"\$as_me:15567: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015568 (eval "$lt_compile" 2>conftest.err)
15569 ac_status=$?
15570 cat conftest.err >&5
John Criswell5fbb1f82004-09-24 13:28:51 +000015571 echo "$as_me:15571: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015572 if (exit $ac_status) && test -s "$ac_outfile"; then
15573 # The compiler can only warn and ignore the option if not recognized
15574 # So say no if there are warnings
15575 if test ! -s conftest.err; then
15576 lt_prog_compiler_pic_works_GCJ=yes
15577 fi
15578 fi
15579 $rm conftest*
15580
15581fi
15582echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15583echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15584
15585if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15586 case $lt_prog_compiler_pic_GCJ in
15587 "" | " "*) ;;
15588 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15589 esac
15590else
15591 lt_prog_compiler_pic_GCJ=
15592 lt_prog_compiler_can_build_shared_GCJ=no
15593fi
15594
15595fi
15596case "$host_os" in
15597 # For platforms which do not support PIC, -DPIC is meaningless:
15598 *djgpp*)
15599 lt_prog_compiler_pic_GCJ=
15600 ;;
15601 *)
15602 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15603 ;;
15604esac
15605
15606echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15607echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15608if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15609 echo $ECHO_N "(cached) $ECHO_C" >&6
15610else
15611 lt_cv_prog_compiler_c_o_GCJ=no
15612 $rm -r conftest 2>/dev/null
15613 mkdir conftest
15614 cd conftest
15615 mkdir out
15616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15617
John Criswell47fdd832003-07-14 16:52:07 +000015618 lt_compiler_flag="-o out/conftest2.$ac_objext"
15619 # Insert the option either (1) after the last *FLAGS variable, or
15620 # (2) before a word containing "conftest.", or (3) at the end.
15621 # Note that $ac_compile itself does not contain backslashes and begins
15622 # with a dollar sign (not a hyphen), so the echo should work correctly.
15623 lt_compile=`echo "$ac_compile" | $SED \
15624 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15626 -e 's:$: $lt_compiler_flag:'`
John Criswell5fbb1f82004-09-24 13:28:51 +000015627 (eval echo "\"\$as_me:15627: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015628 (eval "$lt_compile" 2>out/conftest.err)
15629 ac_status=$?
15630 cat out/conftest.err >&5
John Criswell5fbb1f82004-09-24 13:28:51 +000015631 echo "$as_me:15631: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015632 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15633 then
15634 # The compiler can only warn and ignore the option if not recognized
15635 # So say no if there are warnings
15636 if test ! -s out/conftest.err; then
15637 lt_cv_prog_compiler_c_o_GCJ=yes
15638 fi
15639 fi
15640 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000015641 $rm conftest*
15642 # SGI C++ compiler will create directory out/ii_files/ for
15643 # template instantiation
15644 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15645 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015646 cd ..
15647 rmdir conftest
15648 $rm conftest*
15649
15650fi
15651echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15652echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15653
15654
15655hard_links="nottested"
15656if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15657 # do not overwrite the value of need_locks provided by the user
15658 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15659echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15660 hard_links=yes
15661 $rm conftest*
15662 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15663 touch conftest.a
15664 ln conftest.a conftest.b 2>&5 || hard_links=no
15665 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15666 echo "$as_me:$LINENO: result: $hard_links" >&5
15667echo "${ECHO_T}$hard_links" >&6
15668 if test "$hard_links" = no; then
15669 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15670echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15671 need_locks=warn
15672 fi
15673else
15674 need_locks=no
15675fi
15676
15677echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15678echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15679
15680 runpath_var=
15681 allow_undefined_flag_GCJ=
15682 enable_shared_with_static_runtimes_GCJ=no
15683 archive_cmds_GCJ=
15684 archive_expsym_cmds_GCJ=
15685 old_archive_From_new_cmds_GCJ=
15686 old_archive_from_expsyms_cmds_GCJ=
15687 export_dynamic_flag_spec_GCJ=
15688 whole_archive_flag_spec_GCJ=
15689 thread_safe_flag_spec_GCJ=
15690 hardcode_libdir_flag_spec_GCJ=
15691 hardcode_libdir_flag_spec_ld_GCJ=
15692 hardcode_libdir_separator_GCJ=
15693 hardcode_direct_GCJ=no
15694 hardcode_minus_L_GCJ=no
15695 hardcode_shlibpath_var_GCJ=unsupported
15696 link_all_deplibs_GCJ=unknown
15697 hardcode_automatic_GCJ=no
15698 module_cmds_GCJ=
15699 module_expsym_cmds_GCJ=
15700 always_export_symbols_GCJ=no
15701 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15702 # include_expsyms should be a list of space-separated symbols to be *always*
15703 # included in the symbol list
15704 include_expsyms_GCJ=
15705 # exclude_expsyms can be an extended regexp of symbols to exclude
15706 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15707 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15708 # as well as any symbol that contains `d'.
15709 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15710 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15711 # platforms (ab)use it in PIC code, but their linkers get confused if
15712 # the symbol is explicitly referenced. Since portable code cannot
15713 # rely on this symbol name, it's probably fine to never include it in
15714 # preloaded symbol tables.
15715 extract_expsyms_cmds=
15716
15717 case $host_os in
15718 cygwin* | mingw* | pw32*)
15719 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15720 # When not using gcc, we currently assume that we are using
15721 # Microsoft Visual C++.
15722 if test "$GCC" != yes; then
15723 with_gnu_ld=no
15724 fi
15725 ;;
15726 openbsd*)
15727 with_gnu_ld=no
15728 ;;
15729 esac
15730
15731 ld_shlibs_GCJ=yes
15732 if test "$with_gnu_ld" = yes; then
15733 # If archive_cmds runs LD, not CC, wlarc should be empty
15734 wlarc='${wl}'
15735
15736 # See if GNU ld supports shared libraries.
15737 case $host_os in
15738 aix3* | aix4* | aix5*)
15739 # On AIX/PPC, the GNU linker is very broken
15740 if test "$host_cpu" != ia64; then
15741 ld_shlibs_GCJ=no
15742 cat <<EOF 1>&2
15743
15744*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15745*** to be unable to reliably create shared libraries on AIX.
15746*** Therefore, libtool is disabling shared libraries support. If you
15747*** really care for shared libraries, you may want to modify your PATH
15748*** so that a non-GNU linker is found, and then restart.
15749
15750EOF
15751 fi
15752 ;;
15753
15754 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015755 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 +000015756 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15757 hardcode_minus_L_GCJ=yes
15758
15759 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15760 # that the semantics of dynamic libraries on AmigaOS, at least up
15761 # to version 4, is to share data among multiple programs linked
15762 # with the same dynamic library. Since this doesn't match the
15763 # behavior of shared libraries on other platforms, we can't use
15764 # them.
15765 ld_shlibs_GCJ=no
15766 ;;
15767
15768 beos*)
15769 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15770 allow_undefined_flag_GCJ=unsupported
15771 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15772 # support --undefined. This deserves some investigation. FIXME
15773 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15774 else
15775 ld_shlibs_GCJ=no
15776 fi
15777 ;;
15778
15779 cygwin* | mingw* | pw32*)
15780 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15781 # as there is no search path for DLLs.
15782 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15783 allow_undefined_flag_GCJ=unsupported
15784 always_export_symbols_GCJ=no
15785 enable_shared_with_static_runtimes_GCJ=yes
15786 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15787
15788 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15789 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15790 # If the export-symbols file already is a .def file (1st line
15791 # is EXPORTS), use it as is; otherwise, prepend...
15792 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15793 cp $export_symbols $output_objdir/$soname.def;
15794 else
15795 echo EXPORTS > $output_objdir/$soname.def;
15796 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015797 fi;$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 +000015798 else
15799 ld_shlibs=no
15800 fi
15801 ;;
15802
15803 netbsd*)
15804 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15805 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15806 wlarc=
15807 else
15808 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15809 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15810 fi
15811 ;;
15812
15813 solaris* | sysv5*)
15814 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15815 ld_shlibs_GCJ=no
15816 cat <<EOF 1>&2
15817
15818*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15819*** create shared libraries on Solaris systems. Therefore, libtool
15820*** is disabling shared libraries support. We urge you to upgrade GNU
15821*** binutils to release 2.9.1 or newer. Another option is to modify
15822*** your PATH or compiler configuration so that the native linker is
15823*** used, and then restart.
15824
15825EOF
15826 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15827 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15828 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15829 else
15830 ld_shlibs_GCJ=no
15831 fi
15832 ;;
15833
15834 sunos4*)
15835 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15836 wlarc=
15837 hardcode_direct_GCJ=yes
15838 hardcode_shlibpath_var_GCJ=no
15839 ;;
15840
Reid Spencer2706f8c2004-09-19 23:53:36 +000015841 linux*)
15842 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15843 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15844 archive_cmds_GCJ="$tmp_archive_cmds"
15845 supports_anon_versioning=no
15846 case `$LD -v 2>/dev/null` in
15847 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15848 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15849 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15850 *\ 2.11.*) ;; # other 2.11 versions
15851 *) supports_anon_versioning=yes ;;
15852 esac
15853 if test $supports_anon_versioning = yes; then
15854 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver;cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver; $echo "local: *; };" >> $output_objdir/$libname.ver;
15855 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15856 else
15857 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15858 fi
15859 else
15860 ld_shlibs_GCJ=no
15861 fi
15862 ;;
15863
John Criswell47fdd832003-07-14 16:52:07 +000015864 *)
15865 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15866 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15867 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15868 else
15869 ld_shlibs_GCJ=no
15870 fi
15871 ;;
15872 esac
15873
15874 if test "$ld_shlibs_GCJ" = yes; then
15875 runpath_var=LD_RUN_PATH
15876 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15877 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15878 # ancient GNU ld didn't support --whole-archive et. al.
15879 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15880 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15881 else
15882 whole_archive_flag_spec_GCJ=
15883 fi
15884 fi
15885 else
15886 # PORTME fill in a description of your system's linker (not GNU ld)
15887 case $host_os in
15888 aix3*)
15889 allow_undefined_flag_GCJ=unsupported
15890 always_export_symbols_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015891 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 +000015892 # Note: this linker hardcodes the directories in LIBPATH if there
15893 # are no directories specified by -L.
15894 hardcode_minus_L_GCJ=yes
15895 if test "$GCC" = yes && test -z "$link_static_flag"; then
15896 # Neither direct hardcoding nor static linking is supported with a
15897 # broken collect2.
15898 hardcode_direct_GCJ=unsupported
15899 fi
15900 ;;
15901
15902 aix4* | aix5*)
15903 if test "$host_cpu" = ia64; then
15904 # On IA64, the linker does run time linking by default, so we don't
15905 # have to do anything special.
15906 aix_use_runtimelinking=no
15907 exp_sym_flag='-Bexport'
15908 no_entry_flag=""
15909 else
15910 # If we're using GNU nm, then we don't want the "-C" option.
15911 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15912 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15913 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'
15914 else
15915 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'
15916 fi
15917 aix_use_runtimelinking=no
15918
15919 # Test if we are trying to use run time linking or normal
15920 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15921 # need to do runtime linking.
15922 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15923 for ld_flag in $LDFLAGS; do
15924 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15925 aix_use_runtimelinking=yes
15926 break
15927 fi
15928 done
15929 esac
15930
15931 exp_sym_flag='-bexport'
15932 no_entry_flag='-bnoentry'
15933 fi
15934
15935 # When large executables or shared objects are built, AIX ld can
15936 # have problems creating the table of contents. If linking a library
15937 # or program results in "error TOC overflow" add -mminimal-toc to
15938 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15939 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15940
15941 archive_cmds_GCJ=''
15942 hardcode_direct_GCJ=yes
15943 hardcode_libdir_separator_GCJ=':'
15944 link_all_deplibs_GCJ=yes
15945
15946 if test "$GCC" = yes; then
15947 case $host_os in aix4.012|aix4.012.*)
15948 # We only want to do this on AIX 4.2 and lower, the check
15949 # below for broken collect2 doesn't work under 4.3+
15950 collect2name=`${CC} -print-prog-name=collect2`
15951 if test -f "$collect2name" && \
15952 strings "$collect2name" | grep resolve_lib_name >/dev/null
15953 then
15954 # We have reworked collect2
15955 hardcode_direct_GCJ=yes
15956 else
15957 # We have old collect2
15958 hardcode_direct_GCJ=unsupported
15959 # It fails to find uninstalled libraries when the uninstalled
15960 # path is not listed in the libpath. Setting hardcode_minus_L
15961 # to unsupported forces relinking
15962 hardcode_minus_L_GCJ=yes
15963 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15964 hardcode_libdir_separator_GCJ=
15965 fi
15966 esac
15967 shared_flag='-shared'
15968 else
15969 # not using gcc
15970 if test "$host_cpu" = ia64; then
15971 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15972 # chokes on -Wl,-G. The following line is correct:
15973 shared_flag='-G'
15974 else
15975 if test "$aix_use_runtimelinking" = yes; then
15976 shared_flag='${wl}-G'
15977 else
15978 shared_flag='${wl}-bM:SRE'
15979 fi
15980 fi
15981 fi
15982
15983 # It seems that -bexpall does not export symbols beginning with
15984 # underscore (_), so it is better to generate a list of symbols to export.
15985 always_export_symbols_GCJ=yes
15986 if test "$aix_use_runtimelinking" = yes; then
15987 # Warning - without using the other runtime loading flags (-brtl),
15988 # -berok will link without error, but may produce a broken library.
15989 allow_undefined_flag_GCJ='-berok'
15990 # Determine the default libpath from the value encoded in an empty executable.
15991 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015992/* confdefs.h. */
15993_ACEOF
15994cat confdefs.h >>conftest.$ac_ext
15995cat >>conftest.$ac_ext <<_ACEOF
15996/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015997
John Criswell47fdd832003-07-14 16:52:07 +000015998int
15999main ()
16000{
16001
16002 ;
16003 return 0;
16004}
16005_ACEOF
16006rm -f conftest.$ac_objext conftest$ac_exeext
16007if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016008 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016009 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016010 grep -v '^ *+' conftest.er1 >conftest.err
16011 rm -f conftest.er1
16012 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16014 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016015 { ac_try='test -z "$ac_c_werror_flag"
16016 || test ! -s conftest.err'
16017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16018 (eval $ac_try) 2>&5
16019 ac_status=$?
16020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16021 (exit $ac_status); }; } &&
16022 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16024 (eval $ac_try) 2>&5
16025 ac_status=$?
16026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16027 (exit $ac_status); }; }; then
16028
16029aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16030}'`
16031# Check for a 64-bit object if we didn't find anything.
16032if 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; }
16033}'`; fi
16034else
16035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016036sed 's/^/| /' conftest.$ac_ext >&5
16037
John Criswell47fdd832003-07-14 16:52:07 +000016038fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016039rm -f conftest.err conftest.$ac_objext \
16040 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016041if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16042
16043 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16044 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"
16045 else
16046 if test "$host_cpu" = ia64; then
16047 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16048 allow_undefined_flag_GCJ="-z nodefs"
16049 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"
16050 else
16051 # Determine the default libpath from the value encoded in an empty executable.
16052 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016053/* confdefs.h. */
16054_ACEOF
16055cat confdefs.h >>conftest.$ac_ext
16056cat >>conftest.$ac_ext <<_ACEOF
16057/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016058
John Criswell47fdd832003-07-14 16:52:07 +000016059int
16060main ()
16061{
16062
16063 ;
16064 return 0;
16065}
16066_ACEOF
16067rm -f conftest.$ac_objext conftest$ac_exeext
16068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016069 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016070 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016071 grep -v '^ *+' conftest.er1 >conftest.err
16072 rm -f conftest.er1
16073 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016076 { ac_try='test -z "$ac_c_werror_flag"
16077 || test ! -s conftest.err'
16078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16079 (eval $ac_try) 2>&5
16080 ac_status=$?
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); }; } &&
16083 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16085 (eval $ac_try) 2>&5
16086 ac_status=$?
16087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16088 (exit $ac_status); }; }; then
16089
16090aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16091}'`
16092# Check for a 64-bit object if we didn't find anything.
16093if 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; }
16094}'`; fi
16095else
16096 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016097sed 's/^/| /' conftest.$ac_ext >&5
16098
John Criswell47fdd832003-07-14 16:52:07 +000016099fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016100rm -f conftest.err conftest.$ac_objext \
16101 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016102if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16103
16104 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16105 # Warning - without using the other run time loading flags,
16106 # -berok will link without error, but may produce a broken library.
16107 no_undefined_flag_GCJ=' ${wl}-bernotok'
16108 allow_undefined_flag_GCJ=' ${wl}-berok'
16109 # -bexpall does not export symbols beginning with underscore (_)
16110 always_export_symbols_GCJ=yes
16111 # Exported symbols can be pulled into shared objects from archives
16112 whole_archive_flag_spec_GCJ=' '
16113 archive_cmds_need_lc_GCJ=yes
16114 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016115 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 +000016116 fi
16117 fi
16118 ;;
16119
16120 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016121 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 +000016122 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16123 hardcode_minus_L_GCJ=yes
16124 # see comment about different semantics on the GNU ld section
16125 ld_shlibs_GCJ=no
16126 ;;
16127
Reid Spencer2706f8c2004-09-19 23:53:36 +000016128 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016129 export_dynamic_flag_spec_GCJ=-rdynamic
16130 ;;
16131
16132 cygwin* | mingw* | pw32*)
16133 # When not using gcc, we currently assume that we are using
16134 # Microsoft Visual C++.
16135 # hardcode_libdir_flag_spec is actually meaningless, as there is
16136 # no search path for DLLs.
16137 hardcode_libdir_flag_spec_GCJ=' '
16138 allow_undefined_flag_GCJ=unsupported
16139 # Tell ltmain to make .lib files, not .a files.
16140 libext=lib
16141 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016142 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016143 # FIXME: Setting linknames here is a bad hack.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016144 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 +000016145 # The linker will automatically build a .lib file if we build a DLL.
16146 old_archive_From_new_cmds_GCJ='true'
16147 # FIXME: Should let the user specify the lib program.
16148 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16149 fix_srcfile_path='`cygpath -w "$srcfile"`'
16150 enable_shared_with_static_runtimes_GCJ=yes
16151 ;;
16152
16153 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000016154 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016155 rhapsody* | darwin1.[012])
16156 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16157 ;;
16158 *) # Darwin 1.3 on
16159 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16160 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16161 else
16162 case ${MACOSX_DEPLOYMENT_TARGET} in
16163 10.[012])
16164 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16165 ;;
16166 10.*)
16167 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16168 ;;
16169 esac
16170 fi
16171 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016172 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000016173 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000016174 hardcode_direct_GCJ=no
16175 hardcode_automatic_GCJ=yes
16176 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000016177 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000016178 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016179 if test "$GCC" = yes ; then
16180 output_verbose_link_cmd='echo'
16181 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16182 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16183 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16184 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}'
16185 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}'
16186 else
16187 case "$cc_basename" in
16188 xlc*)
16189 output_verbose_link_cmd='echo'
16190 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16191 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16192 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16193 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}'
16194 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}'
16195 ;;
16196 *)
16197 ld_shlibs_GCJ=no
16198 ;;
16199 esac
John Criswell47fdd832003-07-14 16:52:07 +000016200 fi
16201 ;;
16202
16203 dgux*)
16204 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16205 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16206 hardcode_shlibpath_var_GCJ=no
16207 ;;
16208
16209 freebsd1*)
16210 ld_shlibs_GCJ=no
16211 ;;
16212
16213 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16214 # support. Future versions do this automatically, but an explicit c++rt0.o
16215 # does not break anything, and helps significantly (at the cost of a little
16216 # extra space).
16217 freebsd2.2*)
16218 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16219 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16220 hardcode_direct_GCJ=yes
16221 hardcode_shlibpath_var_GCJ=no
16222 ;;
16223
16224 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16225 freebsd2*)
16226 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16227 hardcode_direct_GCJ=yes
16228 hardcode_minus_L_GCJ=yes
16229 hardcode_shlibpath_var_GCJ=no
16230 ;;
16231
16232 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016233 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016234 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16235 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16236 hardcode_direct_GCJ=yes
16237 hardcode_shlibpath_var_GCJ=no
16238 ;;
16239
16240 hpux9*)
16241 if test "$GCC" = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016242 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 +000016243 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016244 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 +000016245 fi
16246 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16247 hardcode_libdir_separator_GCJ=:
16248 hardcode_direct_GCJ=yes
16249
16250 # hardcode_minus_L: Not really in the search PATH,
16251 # but as the default location of the library.
16252 hardcode_minus_L_GCJ=yes
16253 export_dynamic_flag_spec_GCJ='${wl}-E'
16254 ;;
16255
16256 hpux10* | hpux11*)
16257 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16258 case "$host_cpu" in
16259 hppa*64*|ia64*)
16260 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16261 ;;
16262 *)
16263 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16264 ;;
16265 esac
16266 else
16267 case "$host_cpu" in
16268 hppa*64*|ia64*)
16269 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16270 ;;
16271 *)
16272 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16273 ;;
16274 esac
16275 fi
16276 if test "$with_gnu_ld" = no; then
16277 case "$host_cpu" in
16278 hppa*64*)
16279 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16280 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16281 hardcode_libdir_separator_GCJ=:
16282 hardcode_direct_GCJ=no
16283 hardcode_shlibpath_var_GCJ=no
16284 ;;
16285 ia64*)
16286 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16287 hardcode_direct_GCJ=no
16288 hardcode_shlibpath_var_GCJ=no
16289
16290 # hardcode_minus_L: Not really in the search PATH,
16291 # but as the default location of the library.
16292 hardcode_minus_L_GCJ=yes
16293 ;;
16294 *)
16295 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16296 hardcode_libdir_separator_GCJ=:
16297 hardcode_direct_GCJ=yes
16298 export_dynamic_flag_spec_GCJ='${wl}-E'
16299
16300 # hardcode_minus_L: Not really in the search PATH,
16301 # but as the default location of the library.
16302 hardcode_minus_L_GCJ=yes
16303 ;;
16304 esac
16305 fi
16306 ;;
16307
16308 irix5* | irix6* | nonstopux*)
16309 if test "$GCC" = yes; then
16310 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'
16311 else
16312 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'
16313 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16314 fi
16315 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16316 hardcode_libdir_separator_GCJ=:
16317 link_all_deplibs_GCJ=yes
16318 ;;
16319
16320 netbsd*)
16321 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16322 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16323 else
16324 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16325 fi
16326 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16327 hardcode_direct_GCJ=yes
16328 hardcode_shlibpath_var_GCJ=no
16329 ;;
16330
16331 newsos6)
16332 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16333 hardcode_direct_GCJ=yes
16334 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16335 hardcode_libdir_separator_GCJ=:
16336 hardcode_shlibpath_var_GCJ=no
16337 ;;
16338
16339 openbsd*)
16340 hardcode_direct_GCJ=yes
16341 hardcode_shlibpath_var_GCJ=no
16342 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16343 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016344 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 +000016345 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16346 export_dynamic_flag_spec_GCJ='${wl}-E'
16347 else
16348 case $host_os in
16349 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16350 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16351 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16352 ;;
16353 *)
16354 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16355 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16356 ;;
16357 esac
16358 fi
16359 ;;
16360
16361 os2*)
16362 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16363 hardcode_minus_L_GCJ=yes
16364 allow_undefined_flag_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000016365 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 +000016366 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16367 ;;
16368
16369 osf3*)
16370 if test "$GCC" = yes; then
16371 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16372 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'
16373 else
16374 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16375 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'
16376 fi
16377 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16378 hardcode_libdir_separator_GCJ=:
16379 ;;
16380
16381 osf4* | osf5*) # as osf3* with the addition of -msym flag
16382 if test "$GCC" = yes; then
16383 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16384 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'
16385 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16386 else
16387 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16388 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 Spencer2706f8c2004-09-19 23:53:36 +000016389 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; $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'
John Criswell47fdd832003-07-14 16:52:07 +000016390 # Both c and cxx compiler support -rpath directly
16391 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16392 fi
16393 hardcode_libdir_separator_GCJ=:
16394 ;;
16395
16396 sco3.2v5*)
16397 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16398 hardcode_shlibpath_var_GCJ=no
16399 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16400 runpath_var=LD_RUN_PATH
16401 hardcode_runpath_var=yes
16402 ;;
16403
16404 solaris*)
16405 no_undefined_flag_GCJ=' -z text'
16406 if test "$GCC" = yes; then
16407 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016408 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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 +000016409 else
16410 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016411 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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 +000016412 fi
16413 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16414 hardcode_shlibpath_var_GCJ=no
16415 case $host_os in
16416 solaris2.[0-5] | solaris2.[0-5].*) ;;
16417 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16418 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16419 esac
16420 link_all_deplibs_GCJ=yes
16421 ;;
16422
16423 sunos4*)
16424 if test "x$host_vendor" = xsequent; then
16425 # Use $CC to link under sequent, because it throws in some extra .o
16426 # files that make .init and .fini sections work.
16427 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16428 else
16429 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16430 fi
16431 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16432 hardcode_direct_GCJ=yes
16433 hardcode_minus_L_GCJ=yes
16434 hardcode_shlibpath_var_GCJ=no
16435 ;;
16436
16437 sysv4)
16438 case $host_vendor in
16439 sni)
16440 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16441 hardcode_direct_GCJ=yes # is this really true???
16442 ;;
16443 siemens)
16444 ## LD is ld it makes a PLAMLIB
16445 ## CC just makes a GrossModule.
16446 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16447 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16448 hardcode_direct_GCJ=no
16449 ;;
16450 motorola)
16451 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16452 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16453 ;;
16454 esac
16455 runpath_var='LD_RUN_PATH'
16456 hardcode_shlibpath_var_GCJ=no
16457 ;;
16458
16459 sysv4.3*)
16460 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16461 hardcode_shlibpath_var_GCJ=no
16462 export_dynamic_flag_spec_GCJ='-Bexport'
16463 ;;
16464
16465 sysv4*MP*)
16466 if test -d /usr/nec; then
16467 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16468 hardcode_shlibpath_var_GCJ=no
16469 runpath_var=LD_RUN_PATH
16470 hardcode_runpath_var=yes
16471 ld_shlibs_GCJ=yes
16472 fi
16473 ;;
16474
16475 sysv4.2uw2*)
16476 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16477 hardcode_direct_GCJ=yes
16478 hardcode_minus_L_GCJ=no
16479 hardcode_shlibpath_var_GCJ=no
16480 hardcode_runpath_var=yes
16481 runpath_var=LD_RUN_PATH
16482 ;;
16483
16484 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16485 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16486 if test "$GCC" = yes; then
16487 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16488 else
16489 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16490 fi
16491 runpath_var='LD_RUN_PATH'
16492 hardcode_shlibpath_var_GCJ=no
16493 ;;
16494
16495 sysv5*)
16496 no_undefined_flag_GCJ=' -z text'
16497 # $CC -shared without GNU ld will not create a library from C++
16498 # object files and a static libstdc++, better avoid it by now
16499 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016500 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp; $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 +000016501 hardcode_libdir_flag_spec_GCJ=
16502 hardcode_shlibpath_var_GCJ=no
16503 runpath_var='LD_RUN_PATH'
16504 ;;
16505
16506 uts4*)
16507 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16508 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16509 hardcode_shlibpath_var_GCJ=no
16510 ;;
16511
16512 *)
16513 ld_shlibs_GCJ=no
16514 ;;
16515 esac
16516 fi
16517
16518echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16519echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16520test "$ld_shlibs_GCJ" = no && can_build_shared=no
16521
16522variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16523if test "$GCC" = yes; then
16524 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16525fi
16526
16527#
16528# Do we need to explicitly link libc?
16529#
16530case "x$archive_cmds_need_lc_GCJ" in
16531x|xyes)
16532 # Assume -lc should be added
16533 archive_cmds_need_lc_GCJ=yes
16534
16535 if test "$enable_shared" = yes && test "$GCC" = yes; then
16536 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016537 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016538 # FIXME: we may have to deal with multi-command sequences.
16539 ;;
16540 '$CC '*)
16541 # Test whether the compiler implicitly links with -lc since on some
16542 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16543 # to ld, don't add -lc before -lgcc.
16544 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16545echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16546 $rm conftest*
16547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16548
16549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16550 (eval $ac_compile) 2>&5
16551 ac_status=$?
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } 2>conftest.err; then
16554 soname=conftest
16555 lib=conftest
16556 libobjs=conftest.$ac_objext
16557 deplibs=
16558 wl=$lt_prog_compiler_wl_GCJ
16559 compiler_flags=-v
16560 linker_flags=-v
16561 verstring=
16562 output_objdir=.
16563 libname=conftest
16564 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16565 allow_undefined_flag_GCJ=
16566 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16567 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16568 ac_status=$?
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }
16571 then
16572 archive_cmds_need_lc_GCJ=no
16573 else
16574 archive_cmds_need_lc_GCJ=yes
16575 fi
16576 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16577 else
16578 cat conftest.err 1>&5
16579 fi
16580 $rm conftest*
16581 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16582echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16583 ;;
16584 esac
16585 fi
16586 ;;
16587esac
16588
John Criswell47fdd832003-07-14 16:52:07 +000016589echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16590echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16591library_names_spec=
16592libname_spec='lib$name'
16593soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016594shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016595postinstall_cmds=
16596postuninstall_cmds=
16597finish_cmds=
16598finish_eval=
16599shlibpath_var=
16600shlibpath_overrides_runpath=unknown
16601version_type=none
16602dynamic_linker="$host_os ld.so"
16603sys_lib_dlsearch_path_spec="/lib /usr/lib"
16604if test "$GCC" = yes; then
16605 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16606 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16607 # if the path contains ";" then we assume it to be the separator
16608 # otherwise default to the standard path separator (i.e. ":") - it is
16609 # assumed that no part of a normal pathname contains ";" but that should
16610 # okay in the real world where ";" in dirpaths is itself problematic.
16611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16612 else
16613 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16614 fi
16615else
16616 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16617fi
16618need_lib_prefix=unknown
16619hardcode_into_libs=no
16620
16621# when you set need_version to no, make sure it does not cause -set_version
16622# flags to be left without arguments
16623need_version=unknown
16624
16625case $host_os in
16626aix3*)
16627 version_type=linux
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16629 shlibpath_var=LIBPATH
16630
16631 # AIX 3 has no versioning support, so we append a major version to the name.
16632 soname_spec='${libname}${release}${shared_ext}$major'
16633 ;;
16634
16635aix4* | aix5*)
16636 version_type=linux
16637 need_lib_prefix=no
16638 need_version=no
16639 hardcode_into_libs=yes
16640 if test "$host_cpu" = ia64; then
16641 # AIX 5 supports IA64
16642 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16643 shlibpath_var=LD_LIBRARY_PATH
16644 else
16645 # With GCC up to 2.95.x, collect2 would create an import file
16646 # for dependence libraries. The import file would start with
16647 # the line `#! .'. This would cause the generated library to
16648 # depend on `.', always an invalid library. This was fixed in
16649 # development snapshots of GCC prior to 3.0.
16650 case $host_os in
16651 aix4 | aix4.[01] | aix4.[01].*)
16652 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16653 echo ' yes '
16654 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16655 :
16656 else
16657 can_build_shared=no
16658 fi
16659 ;;
16660 esac
16661 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16662 # soname into executable. Probably we can add versioning support to
16663 # collect2, so additional links can be useful in future.
16664 if test "$aix_use_runtimelinking" = yes; then
16665 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16666 # instead of lib<name>.a to let people know that these are not
16667 # typical AIX shared libraries.
16668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16669 else
16670 # We preserve .a as extension for shared libraries through AIX4.2
16671 # and later when we are not doing run time linking.
16672 library_names_spec='${libname}${release}.a $libname.a'
16673 soname_spec='${libname}${release}${shared_ext}$major'
16674 fi
16675 shlibpath_var=LIBPATH
16676 fi
16677 ;;
16678
16679amigaos*)
16680 library_names_spec='$libname.ixlibrary $libname.a'
16681 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016682 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 +000016683 ;;
16684
16685beos*)
16686 library_names_spec='${libname}${shared_ext}'
16687 dynamic_linker="$host_os ld.so"
16688 shlibpath_var=LIBRARY_PATH
16689 ;;
16690
Reid Spencer2706f8c2004-09-19 23:53:36 +000016691bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016692 version_type=linux
16693 need_version=no
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695 soname_spec='${libname}${release}${shared_ext}$major'
16696 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16697 shlibpath_var=LD_LIBRARY_PATH
16698 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16699 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16700 # the default ld.so.conf also contains /usr/contrib/lib and
16701 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16702 # libtool to hard-code these into programs
16703 ;;
16704
16705cygwin* | mingw* | pw32*)
16706 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016707 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016708 need_version=no
16709 need_lib_prefix=no
16710
16711 case $GCC,$host_os in
16712 yes,cygwin* | yes,mingw* | yes,pw32*)
16713 library_names_spec='$libname.dll.a'
16714 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer2706f8c2004-09-19 23:53:36 +000016715 postinstall_cmds='base_file=`basename \${file}`;
16716 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
16717 dldir=$destdir/`dirname \$dlpath`;
16718 test -d \$dldir || mkdir -p \$dldir;
John Criswell47fdd832003-07-14 16:52:07 +000016719 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016720 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
16721 dlpath=$dir/\$dldll;
John Criswell47fdd832003-07-14 16:52:07 +000016722 $rm \$dlpath'
16723 shlibpath_overrides_runpath=yes
16724
16725 case $host_os in
16726 cygwin*)
16727 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16728 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 +000016729 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016730 ;;
16731 mingw*)
16732 # MinGW DLLs use traditional 'lib' prefix
16733 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16734 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16735 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16736 # It is most probably a Windows format PATH printed by
16737 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16738 # path with ; separators, and with drive letters. We can handle the
16739 # drive letters (cygwin fileutils understands them), so leave them,
16740 # especially as we might pass files found there to a mingw objdump,
16741 # which wouldn't understand a cygwinified path. Ahh.
16742 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16743 else
16744 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16745 fi
16746 ;;
16747 pw32*)
16748 # pw32 DLLs use 'pw' prefix rather than 'lib'
16749 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16750 ;;
16751 esac
16752 ;;
16753
16754 *)
16755 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16756 ;;
16757 esac
16758 dynamic_linker='Win32 ld.exe'
16759 # FIXME: first we should search . and the directory the executable is in
16760 shlibpath_var=PATH
16761 ;;
16762
16763darwin* | rhapsody*)
16764 dynamic_linker="$host_os dyld"
16765 version_type=darwin
16766 need_lib_prefix=no
16767 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016768 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016769 soname_spec='${libname}${release}${major}$shared_ext'
16770 shlibpath_overrides_runpath=yes
16771 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016772 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016773 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016774 if test "$GCC" = yes; then
16775 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"`
16776 else
16777 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016778 fi
16779 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16780 ;;
16781
16782dgux*)
16783 version_type=linux
16784 need_lib_prefix=no
16785 need_version=no
16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16787 soname_spec='${libname}${release}${shared_ext}$major'
16788 shlibpath_var=LD_LIBRARY_PATH
16789 ;;
16790
16791freebsd1*)
16792 dynamic_linker=no
16793 ;;
16794
Reid Spencer2706f8c2004-09-19 23:53:36 +000016795kfreebsd*-gnu)
16796 version_type=linux
16797 need_lib_prefix=no
16798 need_version=no
16799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16800 soname_spec='${libname}${release}${shared_ext}$major'
16801 shlibpath_var=LD_LIBRARY_PATH
16802 shlibpath_overrides_runpath=no
16803 hardcode_into_libs=yes
16804 dynamic_linker='GNU ld.so'
16805 ;;
16806
John Criswell47fdd832003-07-14 16:52:07 +000016807freebsd*)
16808 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16809 version_type=freebsd-$objformat
16810 case $version_type in
16811 freebsd-elf*)
16812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16813 need_version=no
16814 need_lib_prefix=no
16815 ;;
16816 freebsd-*)
16817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16818 need_version=yes
16819 ;;
16820 esac
16821 shlibpath_var=LD_LIBRARY_PATH
16822 case $host_os in
16823 freebsd2*)
16824 shlibpath_overrides_runpath=yes
16825 ;;
16826 freebsd3.01* | freebsdelf3.01*)
16827 shlibpath_overrides_runpath=yes
16828 hardcode_into_libs=yes
16829 ;;
16830 *) # from 3.2 on
16831 shlibpath_overrides_runpath=no
16832 hardcode_into_libs=yes
16833 ;;
16834 esac
16835 ;;
16836
16837gnu*)
16838 version_type=linux
16839 need_lib_prefix=no
16840 need_version=no
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16842 soname_spec='${libname}${release}${shared_ext}$major'
16843 shlibpath_var=LD_LIBRARY_PATH
16844 hardcode_into_libs=yes
16845 ;;
16846
16847hpux9* | hpux10* | hpux11*)
16848 # Give a soname corresponding to the major version so that dld.sl refuses to
16849 # link against other versions.
16850 version_type=sunos
16851 need_lib_prefix=no
16852 need_version=no
16853 case "$host_cpu" in
16854 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016855 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016856 hardcode_into_libs=yes
16857 dynamic_linker="$host_os dld.so"
16858 shlibpath_var=LD_LIBRARY_PATH
16859 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16861 soname_spec='${libname}${release}${shared_ext}$major'
16862 if test "X$HPUX_IA64_MODE" = X32; then
16863 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16864 else
16865 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16866 fi
16867 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16868 ;;
16869 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016870 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016871 hardcode_into_libs=yes
16872 dynamic_linker="$host_os dld.sl"
16873 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16874 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16876 soname_spec='${libname}${release}${shared_ext}$major'
16877 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16878 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16879 ;;
16880 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016881 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016882 dynamic_linker="$host_os dld.sl"
16883 shlibpath_var=SHLIB_PATH
16884 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886 soname_spec='${libname}${release}${shared_ext}$major'
16887 ;;
16888 esac
16889 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16890 postinstall_cmds='chmod 555 $lib'
16891 ;;
16892
16893irix5* | irix6* | nonstopux*)
16894 case $host_os in
16895 nonstopux*) version_type=nonstopux ;;
16896 *)
16897 if test "$lt_cv_prog_gnu_ld" = yes; then
16898 version_type=linux
16899 else
16900 version_type=irix
16901 fi ;;
16902 esac
16903 need_lib_prefix=no
16904 need_version=no
16905 soname_spec='${libname}${release}${shared_ext}$major'
16906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16907 case $host_os in
16908 irix5* | nonstopux*)
16909 libsuff= shlibsuff=
16910 ;;
16911 *)
16912 case $LD in # libtool.m4 will add one of these switches to LD
16913 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16914 libsuff= shlibsuff= libmagic=32-bit;;
16915 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16916 libsuff=32 shlibsuff=N32 libmagic=N32;;
16917 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16918 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16919 *) libsuff= shlibsuff= libmagic=never-match;;
16920 esac
16921 ;;
16922 esac
16923 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16924 shlibpath_overrides_runpath=no
16925 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16926 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16927 hardcode_into_libs=yes
16928 ;;
16929
16930# No shared lib support for Linux oldld, aout, or coff.
16931linux*oldld* | linux*aout* | linux*coff*)
16932 dynamic_linker=no
16933 ;;
16934
16935# This must be Linux ELF.
16936linux*)
16937 version_type=linux
16938 need_lib_prefix=no
16939 need_version=no
16940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16941 soname_spec='${libname}${release}${shared_ext}$major'
16942 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16943 shlibpath_var=LD_LIBRARY_PATH
16944 shlibpath_overrides_runpath=no
16945 # This implies no fast_install, which is unacceptable.
16946 # Some rework will be needed to allow for fast_install
16947 # before this can be enabled.
16948 hardcode_into_libs=yes
16949
Reid Spencer2706f8c2004-09-19 23:53:36 +000016950 # Append ld.so.conf contents to the search path
16951 if test -f /etc/ld.so.conf; then
16952 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16953 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16954 fi
16955
John Criswell47fdd832003-07-14 16:52:07 +000016956 # We used to test for /lib/ld.so.1 and disable shared libraries on
16957 # powerpc, because MkLinux only supported shared libraries with the
16958 # GNU dynamic linker. Since this was broken with cross compilers,
16959 # most powerpc-linux boxes support dynamic linking these days and
16960 # people can always --disable-shared, the test was removed, and we
16961 # assume the GNU/Linux dynamic linker is in use.
16962 dynamic_linker='GNU/Linux ld.so'
16963 ;;
16964
Reid Spencer2706f8c2004-09-19 23:53:36 +000016965knetbsd*-gnu)
16966 version_type=linux
16967 need_lib_prefix=no
16968 need_version=no
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16970 soname_spec='${libname}${release}${shared_ext}$major'
16971 shlibpath_var=LD_LIBRARY_PATH
16972 shlibpath_overrides_runpath=no
16973 hardcode_into_libs=yes
16974 dynamic_linker='GNU ld.so'
16975 ;;
16976
John Criswell47fdd832003-07-14 16:52:07 +000016977netbsd*)
16978 version_type=sunos
16979 need_lib_prefix=no
16980 need_version=no
16981 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16983 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16984 dynamic_linker='NetBSD (a.out) ld.so'
16985 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016987 soname_spec='${libname}${release}${shared_ext}$major'
16988 dynamic_linker='NetBSD ld.elf_so'
16989 fi
16990 shlibpath_var=LD_LIBRARY_PATH
16991 shlibpath_overrides_runpath=yes
16992 hardcode_into_libs=yes
16993 ;;
16994
16995newsos6)
16996 version_type=linux
16997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16998 shlibpath_var=LD_LIBRARY_PATH
16999 shlibpath_overrides_runpath=yes
17000 ;;
17001
Reid Spencer2706f8c2004-09-19 23:53:36 +000017002nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017003 version_type=linux
17004 need_lib_prefix=no
17005 need_version=no
17006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17007 soname_spec='${libname}${release}${shared_ext}$major'
17008 shlibpath_var=LD_LIBRARY_PATH
17009 shlibpath_overrides_runpath=yes
17010 ;;
17011
17012openbsd*)
17013 version_type=sunos
17014 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017015 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17018 shlibpath_var=LD_LIBRARY_PATH
17019 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17020 case $host_os in
17021 openbsd2.[89] | openbsd2.[89].*)
17022 shlibpath_overrides_runpath=no
17023 ;;
17024 *)
17025 shlibpath_overrides_runpath=yes
17026 ;;
17027 esac
17028 else
17029 shlibpath_overrides_runpath=yes
17030 fi
17031 ;;
17032
17033os2*)
17034 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017035 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017036 need_lib_prefix=no
17037 library_names_spec='$libname${shared_ext} $libname.a'
17038 dynamic_linker='OS/2 ld.exe'
17039 shlibpath_var=LIBPATH
17040 ;;
17041
17042osf3* | osf4* | osf5*)
17043 version_type=osf
17044 need_lib_prefix=no
17045 need_version=no
17046 soname_spec='${libname}${release}${shared_ext}$major'
17047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17048 shlibpath_var=LD_LIBRARY_PATH
17049 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17050 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17051 ;;
17052
17053sco3.2v5*)
17054 version_type=osf
17055 soname_spec='${libname}${release}${shared_ext}$major'
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17057 shlibpath_var=LD_LIBRARY_PATH
17058 ;;
17059
17060solaris*)
17061 version_type=linux
17062 need_lib_prefix=no
17063 need_version=no
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17065 soname_spec='${libname}${release}${shared_ext}$major'
17066 shlibpath_var=LD_LIBRARY_PATH
17067 shlibpath_overrides_runpath=yes
17068 hardcode_into_libs=yes
17069 # ldd complains unless libraries are executable
17070 postinstall_cmds='chmod +x $lib'
17071 ;;
17072
17073sunos4*)
17074 version_type=sunos
17075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17076 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17077 shlibpath_var=LD_LIBRARY_PATH
17078 shlibpath_overrides_runpath=yes
17079 if test "$with_gnu_ld" = yes; then
17080 need_lib_prefix=no
17081 fi
17082 need_version=yes
17083 ;;
17084
17085sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17086 version_type=linux
17087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17088 soname_spec='${libname}${release}${shared_ext}$major'
17089 shlibpath_var=LD_LIBRARY_PATH
17090 case $host_vendor in
17091 sni)
17092 shlibpath_overrides_runpath=no
17093 need_lib_prefix=no
17094 export_dynamic_flag_spec='${wl}-Blargedynsym'
17095 runpath_var=LD_RUN_PATH
17096 ;;
17097 siemens)
17098 need_lib_prefix=no
17099 ;;
17100 motorola)
17101 need_lib_prefix=no
17102 need_version=no
17103 shlibpath_overrides_runpath=no
17104 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17105 ;;
17106 esac
17107 ;;
17108
17109sysv4*MP*)
17110 if test -d /usr/nec ;then
17111 version_type=linux
17112 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17113 soname_spec='$libname${shared_ext}.$major'
17114 shlibpath_var=LD_LIBRARY_PATH
17115 fi
17116 ;;
17117
17118uts4*)
17119 version_type=linux
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17121 soname_spec='${libname}${release}${shared_ext}$major'
17122 shlibpath_var=LD_LIBRARY_PATH
17123 ;;
17124
17125*)
17126 dynamic_linker=no
17127 ;;
17128esac
17129echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17130echo "${ECHO_T}$dynamic_linker" >&6
17131test "$dynamic_linker" = no && can_build_shared=no
17132
Reid Spencer2706f8c2004-09-19 23:53:36 +000017133echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17134echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17135hardcode_action_GCJ=
17136if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17137 test -n "$runpath_var_GCJ" || \
17138 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17139
17140 # We can hardcode non-existant directories.
17141 if test "$hardcode_direct_GCJ" != no &&
17142 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17143 # have to relink, otherwise we might link with an installed library
17144 # when we should be linking with a yet-to-be-installed one
17145 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17146 test "$hardcode_minus_L_GCJ" != no; then
17147 # Linking always hardcodes the temporary library directory.
17148 hardcode_action_GCJ=relink
17149 else
17150 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17151 hardcode_action_GCJ=immediate
17152 fi
17153else
17154 # We cannot hardcode anything, or else we can only hardcode existing
17155 # directories.
17156 hardcode_action_GCJ=unsupported
17157fi
17158echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17159echo "${ECHO_T}$hardcode_action_GCJ" >&6
17160
17161if test "$hardcode_action_GCJ" = relink; then
17162 # Fast installation is not supported
17163 enable_fast_install=no
17164elif test "$shlibpath_overrides_runpath" = yes ||
17165 test "$enable_shared" = no; then
17166 # Fast installation is not necessary
17167 enable_fast_install=needless
17168fi
17169
17170striplib=
17171old_striplib=
17172echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17173echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17174if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17175 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17176 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17177 echo "$as_me:$LINENO: result: yes" >&5
17178echo "${ECHO_T}yes" >&6
17179else
17180# FIXME - insert some real tests, host_os isn't really good enough
17181 case $host_os in
17182 darwin*)
17183 if test -n "$STRIP" ; then
17184 striplib="$STRIP -x"
17185 echo "$as_me:$LINENO: result: yes" >&5
17186echo "${ECHO_T}yes" >&6
17187 else
17188 echo "$as_me:$LINENO: result: no" >&5
17189echo "${ECHO_T}no" >&6
17190fi
17191 ;;
17192 *)
17193 echo "$as_me:$LINENO: result: no" >&5
17194echo "${ECHO_T}no" >&6
17195 ;;
17196 esac
17197fi
17198
John Criswell47fdd832003-07-14 16:52:07 +000017199if test "x$enable_dlopen" != xyes; then
17200 enable_dlopen=unknown
17201 enable_dlopen_self=unknown
17202 enable_dlopen_self_static=unknown
17203else
17204 lt_cv_dlopen=no
17205 lt_cv_dlopen_libs=
17206
17207 case $host_os in
17208 beos*)
17209 lt_cv_dlopen="load_add_on"
17210 lt_cv_dlopen_libs=
17211 lt_cv_dlopen_self=yes
17212 ;;
17213
17214 mingw* | pw32*)
17215 lt_cv_dlopen="LoadLibrary"
17216 lt_cv_dlopen_libs=
17217 ;;
17218
17219 cygwin*)
17220 lt_cv_dlopen="dlopen"
17221 lt_cv_dlopen_libs=
17222 ;;
17223
17224 darwin*)
17225 # if libdl is installed we need to link against it
17226 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17227echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17228if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17230else
17231 ac_check_lib_save_LIBS=$LIBS
17232LIBS="-ldl $LIBS"
17233cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017234/* confdefs.h. */
17235_ACEOF
17236cat confdefs.h >>conftest.$ac_ext
17237cat >>conftest.$ac_ext <<_ACEOF
17238/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017239
17240/* Override any gcc2 internal prototype to avoid an error. */
17241#ifdef __cplusplus
17242extern "C"
17243#endif
17244/* We use char because int might match the return type of a gcc2
17245 builtin and then its argument prototype would still apply. */
17246char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017247int
17248main ()
17249{
17250dlopen ();
17251 ;
17252 return 0;
17253}
17254_ACEOF
17255rm -f conftest.$ac_objext conftest$ac_exeext
17256if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017257 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017258 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017264 { ac_try='test -z "$ac_c_werror_flag"
17265 || test ! -s conftest.err'
17266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17267 (eval $ac_try) 2>&5
17268 ac_status=$?
17269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17270 (exit $ac_status); }; } &&
17271 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17273 (eval $ac_try) 2>&5
17274 ac_status=$?
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 ac_cv_lib_dl_dlopen=yes
17278else
17279 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017280sed 's/^/| /' conftest.$ac_ext >&5
17281
John Criswell47fdd832003-07-14 16:52:07 +000017282ac_cv_lib_dl_dlopen=no
17283fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017284rm -f conftest.err conftest.$ac_objext \
17285 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017286LIBS=$ac_check_lib_save_LIBS
17287fi
17288echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17289echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17290if test $ac_cv_lib_dl_dlopen = yes; then
17291 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17292else
17293
17294 lt_cv_dlopen="dyld"
17295 lt_cv_dlopen_libs=
17296 lt_cv_dlopen_self=yes
17297
17298fi
17299
17300 ;;
17301
17302 *)
17303 echo "$as_me:$LINENO: checking for shl_load" >&5
17304echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17305if test "${ac_cv_func_shl_load+set}" = set; then
17306 echo $ECHO_N "(cached) $ECHO_C" >&6
17307else
17308 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017309/* confdefs.h. */
17310_ACEOF
17311cat confdefs.h >>conftest.$ac_ext
17312cat >>conftest.$ac_ext <<_ACEOF
17313/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017314/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17316#define shl_load innocuous_shl_load
17317
John Criswell47fdd832003-07-14 16:52:07 +000017318/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017319 which can conflict with char shl_load (); below.
17320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17321 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017322
John Criswell0c38eaf2003-09-10 15:17:25 +000017323#ifdef __STDC__
17324# include <limits.h>
17325#else
17326# include <assert.h>
17327#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017328
17329#undef shl_load
17330
John Criswell47fdd832003-07-14 16:52:07 +000017331/* Override any gcc2 internal prototype to avoid an error. */
17332#ifdef __cplusplus
17333extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017334{
John Criswell47fdd832003-07-14 16:52:07 +000017335#endif
17336/* We use char because int might match the return type of a gcc2
17337 builtin and then its argument prototype would still apply. */
17338char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017339/* The GNU C library defines this for functions which it implements
17340 to always fail with ENOSYS. Some functions are actually named
17341 something starting with __ and the normal name is an alias. */
17342#if defined (__stub_shl_load) || defined (__stub___shl_load)
17343choke me
17344#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017345char (*f) () = shl_load;
17346#endif
17347#ifdef __cplusplus
17348}
John Criswell47fdd832003-07-14 16:52:07 +000017349#endif
17350
John Criswell0c38eaf2003-09-10 15:17:25 +000017351int
17352main ()
17353{
17354return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017355 ;
17356 return 0;
17357}
17358_ACEOF
17359rm -f conftest.$ac_objext conftest$ac_exeext
17360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017361 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017362 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017363 grep -v '^ *+' conftest.er1 >conftest.err
17364 rm -f conftest.er1
17365 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017368 { ac_try='test -z "$ac_c_werror_flag"
17369 || test ! -s conftest.err'
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17372 ac_status=$?
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; } &&
17375 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17377 (eval $ac_try) 2>&5
17378 ac_status=$?
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 ac_cv_func_shl_load=yes
17382else
17383 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017384sed 's/^/| /' conftest.$ac_ext >&5
17385
John Criswell47fdd832003-07-14 16:52:07 +000017386ac_cv_func_shl_load=no
17387fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017388rm -f conftest.err conftest.$ac_objext \
17389 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017390fi
17391echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17392echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17393if test $ac_cv_func_shl_load = yes; then
17394 lt_cv_dlopen="shl_load"
17395else
17396 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17397echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17398if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17400else
17401 ac_check_lib_save_LIBS=$LIBS
17402LIBS="-ldld $LIBS"
17403cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017404/* confdefs.h. */
17405_ACEOF
17406cat confdefs.h >>conftest.$ac_ext
17407cat >>conftest.$ac_ext <<_ACEOF
17408/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017409
17410/* Override any gcc2 internal prototype to avoid an error. */
17411#ifdef __cplusplus
17412extern "C"
17413#endif
17414/* We use char because int might match the return type of a gcc2
17415 builtin and then its argument prototype would still apply. */
17416char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017417int
17418main ()
17419{
17420shl_load ();
17421 ;
17422 return 0;
17423}
17424_ACEOF
17425rm -f conftest.$ac_objext conftest$ac_exeext
17426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017427 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017428 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017429 grep -v '^ *+' conftest.er1 >conftest.err
17430 rm -f conftest.er1
17431 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17433 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017434 { ac_try='test -z "$ac_c_werror_flag"
17435 || test ! -s conftest.err'
17436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17437 (eval $ac_try) 2>&5
17438 ac_status=$?
17439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440 (exit $ac_status); }; } &&
17441 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17443 (eval $ac_try) 2>&5
17444 ac_status=$?
17445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17446 (exit $ac_status); }; }; then
17447 ac_cv_lib_dld_shl_load=yes
17448else
17449 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017450sed 's/^/| /' conftest.$ac_ext >&5
17451
John Criswell47fdd832003-07-14 16:52:07 +000017452ac_cv_lib_dld_shl_load=no
17453fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017454rm -f conftest.err conftest.$ac_objext \
17455 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017456LIBS=$ac_check_lib_save_LIBS
17457fi
17458echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17459echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17460if test $ac_cv_lib_dld_shl_load = yes; then
17461 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17462else
17463 echo "$as_me:$LINENO: checking for dlopen" >&5
17464echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17465if test "${ac_cv_func_dlopen+set}" = set; then
17466 echo $ECHO_N "(cached) $ECHO_C" >&6
17467else
17468 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017469/* confdefs.h. */
17470_ACEOF
17471cat confdefs.h >>conftest.$ac_ext
17472cat >>conftest.$ac_ext <<_ACEOF
17473/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017474/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17476#define dlopen innocuous_dlopen
17477
John Criswell47fdd832003-07-14 16:52:07 +000017478/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017479 which can conflict with char dlopen (); below.
17480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17481 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017482
John Criswell0c38eaf2003-09-10 15:17:25 +000017483#ifdef __STDC__
17484# include <limits.h>
17485#else
17486# include <assert.h>
17487#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017488
17489#undef dlopen
17490
John Criswell47fdd832003-07-14 16:52:07 +000017491/* Override any gcc2 internal prototype to avoid an error. */
17492#ifdef __cplusplus
17493extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017494{
John Criswell47fdd832003-07-14 16:52:07 +000017495#endif
17496/* We use char because int might match the return type of a gcc2
17497 builtin and then its argument prototype would still apply. */
17498char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017499/* The GNU C library defines this for functions which it implements
17500 to always fail with ENOSYS. Some functions are actually named
17501 something starting with __ and the normal name is an alias. */
17502#if defined (__stub_dlopen) || defined (__stub___dlopen)
17503choke me
17504#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017505char (*f) () = dlopen;
17506#endif
17507#ifdef __cplusplus
17508}
John Criswell47fdd832003-07-14 16:52:07 +000017509#endif
17510
John Criswell0c38eaf2003-09-10 15:17:25 +000017511int
17512main ()
17513{
17514return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017515 ;
17516 return 0;
17517}
17518_ACEOF
17519rm -f conftest.$ac_objext conftest$ac_exeext
17520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017521 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017522 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017523 grep -v '^ *+' conftest.er1 >conftest.err
17524 rm -f conftest.er1
17525 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17527 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017528 { ac_try='test -z "$ac_c_werror_flag"
17529 || test ! -s conftest.err'
17530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17531 (eval $ac_try) 2>&5
17532 ac_status=$?
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); }; } &&
17535 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17537 (eval $ac_try) 2>&5
17538 ac_status=$?
17539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17540 (exit $ac_status); }; }; then
17541 ac_cv_func_dlopen=yes
17542else
17543 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017544sed 's/^/| /' conftest.$ac_ext >&5
17545
John Criswell47fdd832003-07-14 16:52:07 +000017546ac_cv_func_dlopen=no
17547fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017548rm -f conftest.err conftest.$ac_objext \
17549 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017550fi
17551echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17552echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17553if test $ac_cv_func_dlopen = yes; then
17554 lt_cv_dlopen="dlopen"
17555else
17556 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17557echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17558if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17560else
17561 ac_check_lib_save_LIBS=$LIBS
17562LIBS="-ldl $LIBS"
17563cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017564/* confdefs.h. */
17565_ACEOF
17566cat confdefs.h >>conftest.$ac_ext
17567cat >>conftest.$ac_ext <<_ACEOF
17568/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017569
17570/* Override any gcc2 internal prototype to avoid an error. */
17571#ifdef __cplusplus
17572extern "C"
17573#endif
17574/* We use char because int might match the return type of a gcc2
17575 builtin and then its argument prototype would still apply. */
17576char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017577int
17578main ()
17579{
17580dlopen ();
17581 ;
17582 return 0;
17583}
17584_ACEOF
17585rm -f conftest.$ac_objext conftest$ac_exeext
17586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017587 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017588 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017589 grep -v '^ *+' conftest.er1 >conftest.err
17590 rm -f conftest.er1
17591 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017594 { ac_try='test -z "$ac_c_werror_flag"
17595 || test ! -s conftest.err'
17596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17597 (eval $ac_try) 2>&5
17598 ac_status=$?
17599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17600 (exit $ac_status); }; } &&
17601 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17603 (eval $ac_try) 2>&5
17604 ac_status=$?
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; }; then
17607 ac_cv_lib_dl_dlopen=yes
17608else
17609 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017610sed 's/^/| /' conftest.$ac_ext >&5
17611
John Criswell47fdd832003-07-14 16:52:07 +000017612ac_cv_lib_dl_dlopen=no
17613fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017614rm -f conftest.err conftest.$ac_objext \
17615 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017616LIBS=$ac_check_lib_save_LIBS
17617fi
17618echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17619echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17620if test $ac_cv_lib_dl_dlopen = yes; then
17621 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17622else
17623 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17624echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17625if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17626 echo $ECHO_N "(cached) $ECHO_C" >&6
17627else
17628 ac_check_lib_save_LIBS=$LIBS
17629LIBS="-lsvld $LIBS"
17630cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017631/* confdefs.h. */
17632_ACEOF
17633cat confdefs.h >>conftest.$ac_ext
17634cat >>conftest.$ac_ext <<_ACEOF
17635/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017636
17637/* Override any gcc2 internal prototype to avoid an error. */
17638#ifdef __cplusplus
17639extern "C"
17640#endif
17641/* We use char because int might match the return type of a gcc2
17642 builtin and then its argument prototype would still apply. */
17643char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017644int
17645main ()
17646{
17647dlopen ();
17648 ;
17649 return 0;
17650}
17651_ACEOF
17652rm -f conftest.$ac_objext conftest$ac_exeext
17653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017654 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017655 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017656 grep -v '^ *+' conftest.er1 >conftest.err
17657 rm -f conftest.er1
17658 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17660 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017661 { ac_try='test -z "$ac_c_werror_flag"
17662 || test ! -s conftest.err'
17663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17664 (eval $ac_try) 2>&5
17665 ac_status=$?
17666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17667 (exit $ac_status); }; } &&
17668 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17670 (eval $ac_try) 2>&5
17671 ac_status=$?
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_lib_svld_dlopen=yes
17675else
17676 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017677sed 's/^/| /' conftest.$ac_ext >&5
17678
John Criswell47fdd832003-07-14 16:52:07 +000017679ac_cv_lib_svld_dlopen=no
17680fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017681rm -f conftest.err conftest.$ac_objext \
17682 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017683LIBS=$ac_check_lib_save_LIBS
17684fi
17685echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17686echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17687if test $ac_cv_lib_svld_dlopen = yes; then
17688 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17689else
17690 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17691echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17692if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17693 echo $ECHO_N "(cached) $ECHO_C" >&6
17694else
17695 ac_check_lib_save_LIBS=$LIBS
17696LIBS="-ldld $LIBS"
17697cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017698/* confdefs.h. */
17699_ACEOF
17700cat confdefs.h >>conftest.$ac_ext
17701cat >>conftest.$ac_ext <<_ACEOF
17702/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017703
17704/* Override any gcc2 internal prototype to avoid an error. */
17705#ifdef __cplusplus
17706extern "C"
17707#endif
17708/* We use char because int might match the return type of a gcc2
17709 builtin and then its argument prototype would still apply. */
17710char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017711int
17712main ()
17713{
17714dld_link ();
17715 ;
17716 return 0;
17717}
17718_ACEOF
17719rm -f conftest.$ac_objext conftest$ac_exeext
17720if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017721 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017722 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017723 grep -v '^ *+' conftest.er1 >conftest.err
17724 rm -f conftest.er1
17725 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017728 { ac_try='test -z "$ac_c_werror_flag"
17729 || test ! -s conftest.err'
17730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17731 (eval $ac_try) 2>&5
17732 ac_status=$?
17733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734 (exit $ac_status); }; } &&
17735 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017736 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17737 (eval $ac_try) 2>&5
17738 ac_status=$?
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
17741 ac_cv_lib_dld_dld_link=yes
17742else
17743 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017744sed 's/^/| /' conftest.$ac_ext >&5
17745
John Criswell47fdd832003-07-14 16:52:07 +000017746ac_cv_lib_dld_dld_link=no
17747fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017748rm -f conftest.err conftest.$ac_objext \
17749 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017750LIBS=$ac_check_lib_save_LIBS
17751fi
17752echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17753echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17754if test $ac_cv_lib_dld_dld_link = yes; then
17755 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17756fi
17757
17758
17759fi
17760
17761
17762fi
17763
17764
17765fi
17766
17767
17768fi
17769
17770
17771fi
17772
17773 ;;
17774 esac
17775
17776 if test "x$lt_cv_dlopen" != xno; then
17777 enable_dlopen=yes
17778 else
17779 enable_dlopen=no
17780 fi
17781
17782 case $lt_cv_dlopen in
17783 dlopen)
17784 save_CPPFLAGS="$CPPFLAGS"
17785 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17786
17787 save_LDFLAGS="$LDFLAGS"
17788 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17789
17790 save_LIBS="$LIBS"
17791 LIBS="$lt_cv_dlopen_libs $LIBS"
17792
17793 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17794echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17795if test "${lt_cv_dlopen_self+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
17797else
17798 if test "$cross_compiling" = yes; then :
17799 lt_cv_dlopen_self=cross
17800else
17801 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17802 lt_status=$lt_dlunknown
17803 cat > conftest.$ac_ext <<EOF
John Criswell5fbb1f82004-09-24 13:28:51 +000017804#line 17804 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017805#include "confdefs.h"
17806
17807#if HAVE_DLFCN_H
17808#include <dlfcn.h>
17809#endif
17810
17811#include <stdio.h>
17812
17813#ifdef RTLD_GLOBAL
17814# define LT_DLGLOBAL RTLD_GLOBAL
17815#else
17816# ifdef DL_GLOBAL
17817# define LT_DLGLOBAL DL_GLOBAL
17818# else
17819# define LT_DLGLOBAL 0
17820# endif
17821#endif
17822
17823/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17824 find out it does not work in some platform. */
17825#ifndef LT_DLLAZY_OR_NOW
17826# ifdef RTLD_LAZY
17827# define LT_DLLAZY_OR_NOW RTLD_LAZY
17828# else
17829# ifdef DL_LAZY
17830# define LT_DLLAZY_OR_NOW DL_LAZY
17831# else
17832# ifdef RTLD_NOW
17833# define LT_DLLAZY_OR_NOW RTLD_NOW
17834# else
17835# ifdef DL_NOW
17836# define LT_DLLAZY_OR_NOW DL_NOW
17837# else
17838# define LT_DLLAZY_OR_NOW 0
17839# endif
17840# endif
17841# endif
17842# endif
17843#endif
17844
17845#ifdef __cplusplus
17846extern "C" void exit (int);
17847#endif
17848
17849void fnord() { int i=42;}
17850int main ()
17851{
17852 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17853 int status = $lt_dlunknown;
17854
17855 if (self)
17856 {
17857 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17858 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17859 /* dlclose (self); */
17860 }
17861
17862 exit (status);
17863}
17864EOF
17865 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17866 (eval $ac_link) 2>&5
17867 ac_status=$?
17868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17869 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17870 (./conftest; exit; ) 2>/dev/null
17871 lt_status=$?
17872 case x$lt_status in
17873 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17874 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17875 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17876 esac
17877 else :
17878 # compilation failed
17879 lt_cv_dlopen_self=no
17880 fi
17881fi
17882rm -fr conftest*
17883
17884
17885fi
17886echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17887echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17888
17889 if test "x$lt_cv_dlopen_self" = xyes; then
17890 LDFLAGS="$LDFLAGS $link_static_flag"
17891 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17892echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17893if test "${lt_cv_dlopen_self_static+set}" = set; then
17894 echo $ECHO_N "(cached) $ECHO_C" >&6
17895else
17896 if test "$cross_compiling" = yes; then :
17897 lt_cv_dlopen_self_static=cross
17898else
17899 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17900 lt_status=$lt_dlunknown
17901 cat > conftest.$ac_ext <<EOF
John Criswell5fbb1f82004-09-24 13:28:51 +000017902#line 17902 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017903#include "confdefs.h"
17904
17905#if HAVE_DLFCN_H
17906#include <dlfcn.h>
17907#endif
17908
17909#include <stdio.h>
17910
17911#ifdef RTLD_GLOBAL
17912# define LT_DLGLOBAL RTLD_GLOBAL
17913#else
17914# ifdef DL_GLOBAL
17915# define LT_DLGLOBAL DL_GLOBAL
17916# else
17917# define LT_DLGLOBAL 0
17918# endif
17919#endif
17920
17921/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17922 find out it does not work in some platform. */
17923#ifndef LT_DLLAZY_OR_NOW
17924# ifdef RTLD_LAZY
17925# define LT_DLLAZY_OR_NOW RTLD_LAZY
17926# else
17927# ifdef DL_LAZY
17928# define LT_DLLAZY_OR_NOW DL_LAZY
17929# else
17930# ifdef RTLD_NOW
17931# define LT_DLLAZY_OR_NOW RTLD_NOW
17932# else
17933# ifdef DL_NOW
17934# define LT_DLLAZY_OR_NOW DL_NOW
17935# else
17936# define LT_DLLAZY_OR_NOW 0
17937# endif
17938# endif
17939# endif
17940# endif
17941#endif
17942
17943#ifdef __cplusplus
17944extern "C" void exit (int);
17945#endif
17946
17947void fnord() { int i=42;}
17948int main ()
17949{
17950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17951 int status = $lt_dlunknown;
17952
17953 if (self)
17954 {
17955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17956 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17957 /* dlclose (self); */
17958 }
17959
17960 exit (status);
17961}
17962EOF
17963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17964 (eval $ac_link) 2>&5
17965 ac_status=$?
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17968 (./conftest; exit; ) 2>/dev/null
17969 lt_status=$?
17970 case x$lt_status in
17971 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17972 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17973 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17974 esac
17975 else :
17976 # compilation failed
17977 lt_cv_dlopen_self_static=no
17978 fi
17979fi
17980rm -fr conftest*
17981
17982
17983fi
17984echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17985echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17986 fi
17987
17988 CPPFLAGS="$save_CPPFLAGS"
17989 LDFLAGS="$save_LDFLAGS"
17990 LIBS="$save_LIBS"
17991 ;;
17992 esac
17993
17994 case $lt_cv_dlopen_self in
17995 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17996 *) enable_dlopen_self=unknown ;;
17997 esac
17998
17999 case $lt_cv_dlopen_self_static in
18000 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18001 *) enable_dlopen_self_static=unknown ;;
18002 esac
18003fi
18004
18005
18006# The else clause should only fire when bootstrapping the
18007# libtool distribution, otherwise you forgot to ship ltmain.sh
18008# with your package, and you will get complaints that there are
18009# no rules to generate ltmain.sh.
18010if test -f "$ltmain"; then
18011 # See if we are running on zsh, and set the options which allow our commands through
18012 # without removal of \ escapes.
18013 if test -n "${ZSH_VERSION+set}" ; then
18014 setopt NO_GLOB_SUBST
18015 fi
18016 # Now quote all the things that may contain metacharacters while being
18017 # careful not to overquote the AC_SUBSTed values. We take copies of the
18018 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018019 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18020 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018021 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18022 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18023 deplibs_check_method reload_flag reload_cmds need_locks \
18024 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18025 lt_cv_sys_global_symbol_to_c_name_address \
18026 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18027 old_postinstall_cmds old_postuninstall_cmds \
18028 compiler_GCJ \
18029 CC_GCJ \
18030 LD_GCJ \
18031 lt_prog_compiler_wl_GCJ \
18032 lt_prog_compiler_pic_GCJ \
18033 lt_prog_compiler_static_GCJ \
18034 lt_prog_compiler_no_builtin_flag_GCJ \
18035 export_dynamic_flag_spec_GCJ \
18036 thread_safe_flag_spec_GCJ \
18037 whole_archive_flag_spec_GCJ \
18038 enable_shared_with_static_runtimes_GCJ \
18039 old_archive_cmds_GCJ \
18040 old_archive_from_new_cmds_GCJ \
18041 predep_objects_GCJ \
18042 postdep_objects_GCJ \
18043 predeps_GCJ \
18044 postdeps_GCJ \
18045 compiler_lib_search_path_GCJ \
18046 archive_cmds_GCJ \
18047 archive_expsym_cmds_GCJ \
18048 postinstall_cmds_GCJ \
18049 postuninstall_cmds_GCJ \
18050 old_archive_from_expsyms_cmds_GCJ \
18051 allow_undefined_flag_GCJ \
18052 no_undefined_flag_GCJ \
18053 export_symbols_cmds_GCJ \
18054 hardcode_libdir_flag_spec_GCJ \
18055 hardcode_libdir_flag_spec_ld_GCJ \
18056 hardcode_libdir_separator_GCJ \
18057 hardcode_automatic_GCJ \
18058 module_cmds_GCJ \
18059 module_expsym_cmds_GCJ \
18060 lt_cv_prog_compiler_c_o_GCJ \
18061 exclude_expsyms_GCJ \
18062 include_expsyms_GCJ; do
18063
18064 case $var in
18065 old_archive_cmds_GCJ | \
18066 old_archive_from_new_cmds_GCJ | \
18067 archive_cmds_GCJ | \
18068 archive_expsym_cmds_GCJ | \
18069 module_cmds_GCJ | \
18070 module_expsym_cmds_GCJ | \
18071 old_archive_from_expsyms_cmds_GCJ | \
18072 export_symbols_cmds_GCJ | \
18073 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18074 postinstall_cmds | postuninstall_cmds | \
18075 old_postinstall_cmds | old_postuninstall_cmds | \
18076 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18077 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018078 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 +000018079 ;;
18080 *)
18081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18082 ;;
18083 esac
18084 done
18085
18086 case $lt_echo in
18087 *'\$0 --fallback-echo"')
18088 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18089 ;;
18090 esac
18091
18092cfgfile="$ofile"
18093
18094 cat <<__EOF__ >> "$cfgfile"
18095# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18096
18097# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18098
18099# Shell to use when invoking shell scripts.
18100SHELL=$lt_SHELL
18101
18102# Whether or not to build shared libraries.
18103build_libtool_libs=$enable_shared
18104
18105# Whether or not to build static libraries.
18106build_old_libs=$enable_static
18107
18108# Whether or not to add -lc for building shared libraries.
18109build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18110
18111# Whether or not to disallow shared libs when runtime libs are static
18112allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18113
18114# Whether or not to optimize for fast installation.
18115fast_install=$enable_fast_install
18116
18117# The host system.
18118host_alias=$host_alias
18119host=$host
18120
18121# An echo program that does not interpret backslashes.
18122echo=$lt_echo
18123
18124# The archiver.
18125AR=$lt_AR
18126AR_FLAGS=$lt_AR_FLAGS
18127
18128# A C compiler.
18129LTCC=$lt_LTCC
18130
18131# A language-specific compiler.
18132CC=$lt_compiler_GCJ
18133
18134# Is the compiler the GNU C compiler?
18135with_gcc=$GCC_GCJ
18136
18137# An ERE matcher.
18138EGREP=$lt_EGREP
18139
18140# The linker used to build libraries.
18141LD=$lt_LD_GCJ
18142
18143# Whether we need hard or soft links.
18144LN_S=$lt_LN_S
18145
18146# A BSD-compatible nm program.
18147NM=$lt_NM
18148
18149# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018150STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018151
18152# Used to examine libraries when file_magic_cmd begins "file"
18153MAGIC_CMD=$MAGIC_CMD
18154
18155# Used on cygwin: DLL creation program.
18156DLLTOOL="$DLLTOOL"
18157
18158# Used on cygwin: object dumper.
18159OBJDUMP="$OBJDUMP"
18160
18161# Used on cygwin: assembler.
18162AS="$AS"
18163
18164# The name of the directory that contains temporary libtool files.
18165objdir=$objdir
18166
18167# How to create reloadable object files.
18168reload_flag=$lt_reload_flag
18169reload_cmds=$lt_reload_cmds
18170
18171# How to pass a linker flag through the compiler.
18172wl=$lt_lt_prog_compiler_wl_GCJ
18173
18174# Object file suffix (normally "o").
18175objext="$ac_objext"
18176
18177# Old archive suffix (normally "a").
18178libext="$libext"
18179
18180# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018181shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018182
18183# Executable file suffix (normally "").
18184exeext="$exeext"
18185
18186# Additional compiler flags for building library objects.
18187pic_flag=$lt_lt_prog_compiler_pic_GCJ
18188pic_mode=$pic_mode
18189
18190# What is the maximum length of a command?
18191max_cmd_len=$lt_cv_sys_max_cmd_len
18192
18193# Does compiler simultaneously support -c and -o options?
18194compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18195
18196# Must we lock files when doing compilation ?
18197need_locks=$lt_need_locks
18198
18199# Do we need the lib prefix for modules?
18200need_lib_prefix=$need_lib_prefix
18201
18202# Do we need a version for libraries?
18203need_version=$need_version
18204
18205# Whether dlopen is supported.
18206dlopen_support=$enable_dlopen
18207
18208# Whether dlopen of programs is supported.
18209dlopen_self=$enable_dlopen_self
18210
18211# Whether dlopen of statically linked programs is supported.
18212dlopen_self_static=$enable_dlopen_self_static
18213
18214# Compiler flag to prevent dynamic linking.
18215link_static_flag=$lt_lt_prog_compiler_static_GCJ
18216
18217# Compiler flag to turn off builtin functions.
18218no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18219
18220# Compiler flag to allow reflexive dlopens.
18221export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18222
18223# Compiler flag to generate shared objects directly from archives.
18224whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18225
18226# Compiler flag to generate thread-safe objects.
18227thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18228
18229# Library versioning type.
18230version_type=$version_type
18231
18232# Format of library name prefix.
18233libname_spec=$lt_libname_spec
18234
18235# List of archive names. First name is the real one, the rest are links.
18236# The last name is the one that the linker finds with -lNAME.
18237library_names_spec=$lt_library_names_spec
18238
18239# The coded name of the library, if different from the real name.
18240soname_spec=$lt_soname_spec
18241
18242# Commands used to build and install an old-style archive.
18243RANLIB=$lt_RANLIB
18244old_archive_cmds=$lt_old_archive_cmds_GCJ
18245old_postinstall_cmds=$lt_old_postinstall_cmds
18246old_postuninstall_cmds=$lt_old_postuninstall_cmds
18247
18248# Create an old-style archive from a shared archive.
18249old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18250
18251# Create a temporary old-style archive to link instead of a shared archive.
18252old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18253
18254# Commands used to build and install a shared archive.
18255archive_cmds=$lt_archive_cmds_GCJ
18256archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18257postinstall_cmds=$lt_postinstall_cmds
18258postuninstall_cmds=$lt_postuninstall_cmds
18259
18260# Commands used to build a loadable module (assumed same as above if empty)
18261module_cmds=$lt_module_cmds_GCJ
18262module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18263
18264# Commands to strip libraries.
18265old_striplib=$lt_old_striplib
18266striplib=$lt_striplib
18267
18268# Dependencies to place before the objects being linked to create a
18269# shared library.
18270predep_objects=$lt_predep_objects_GCJ
18271
18272# Dependencies to place after the objects being linked to create a
18273# shared library.
18274postdep_objects=$lt_postdep_objects_GCJ
18275
18276# Dependencies to place before the objects being linked to create a
18277# shared library.
18278predeps=$lt_predeps_GCJ
18279
18280# Dependencies to place after the objects being linked to create a
18281# shared library.
18282postdeps=$lt_postdeps_GCJ
18283
18284# The library search path used internally by the compiler when linking
18285# a shared library.
18286compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18287
18288# Method to check whether dependent libraries are shared objects.
18289deplibs_check_method=$lt_deplibs_check_method
18290
18291# Command to use when deplibs_check_method == file_magic.
18292file_magic_cmd=$lt_file_magic_cmd
18293
18294# Flag that allows shared libraries with undefined symbols to be built.
18295allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18296
18297# Flag that forces no undefined symbols.
18298no_undefined_flag=$lt_no_undefined_flag_GCJ
18299
18300# Commands used to finish a libtool library installation in a directory.
18301finish_cmds=$lt_finish_cmds
18302
18303# Same as above, but a single script fragment to be evaled but not shown.
18304finish_eval=$lt_finish_eval
18305
18306# Take the output of nm and produce a listing of raw symbols and C names.
18307global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18308
18309# Transform the output of nm in a proper C declaration
18310global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18311
18312# Transform the output of nm in a C name address pair
18313global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18314
18315# This is the shared library runtime path variable.
18316runpath_var=$runpath_var
18317
18318# This is the shared library path variable.
18319shlibpath_var=$shlibpath_var
18320
18321# Is shlibpath searched before the hard-coded library search path?
18322shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18323
18324# How to hardcode a shared library path into an executable.
18325hardcode_action=$hardcode_action_GCJ
18326
18327# Whether we should hardcode library paths into libraries.
18328hardcode_into_libs=$hardcode_into_libs
18329
18330# Flag to hardcode \$libdir into a binary during linking.
18331# This must work even if \$libdir does not exist.
18332hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18333
18334# If ld is used when linking, flag to hardcode \$libdir into
18335# a binary during linking. This must work even if \$libdir does
18336# not exist.
18337hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18338
18339# Whether we need a single -rpath flag with a separated argument.
18340hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18341
18342# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18343# resulting binary.
18344hardcode_direct=$hardcode_direct_GCJ
18345
18346# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18347# resulting binary.
18348hardcode_minus_L=$hardcode_minus_L_GCJ
18349
18350# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18351# the resulting binary.
18352hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18353
18354# Set to yes if building a shared library automatically hardcodes DIR into the library
18355# and all subsequent libraries and executables linked against it.
18356hardcode_automatic=$hardcode_automatic_GCJ
18357
18358# Variables whose values should be saved in libtool wrapper scripts and
18359# restored at relink time.
18360variables_saved_for_relink="$variables_saved_for_relink"
18361
18362# Whether libtool must link a program against all its dependency libraries.
18363link_all_deplibs=$link_all_deplibs_GCJ
18364
18365# Compile-time system search path for libraries
18366sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18367
18368# Run-time system search path for libraries
18369sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18370
18371# Fix the shell variable \$srcfile for the compiler.
18372fix_srcfile_path="$fix_srcfile_path_GCJ"
18373
18374# Set to yes if exported symbols are required.
18375always_export_symbols=$always_export_symbols_GCJ
18376
18377# The commands to list exported symbols.
18378export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18379
18380# The commands to extract the exported symbol list from a shared archive.
18381extract_expsyms_cmds=$lt_extract_expsyms_cmds
18382
18383# Symbols that should not be listed in the preloaded symbols.
18384exclude_expsyms=$lt_exclude_expsyms_GCJ
18385
18386# Symbols that must always be exported.
18387include_expsyms=$lt_include_expsyms_GCJ
18388
18389# ### END LIBTOOL TAG CONFIG: $tagname
18390
18391__EOF__
18392
18393
18394else
18395 # If there is no Makefile yet, we rely on a make rule to execute
18396 # `config.status --recheck' to rerun these tests and create the
18397 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018398 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18399 if test -f "$ltmain_in"; then
18400 test -f Makefile && make "$ltmain"
18401 fi
John Criswell47fdd832003-07-14 16:52:07 +000018402fi
18403
18404
18405ac_ext=c
18406ac_cpp='$CPP $CPPFLAGS'
18407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18409ac_compiler_gnu=$ac_cv_c_compiler_gnu
18410
18411CC="$lt_save_CC"
18412
18413 else
18414 tagname=""
18415 fi
18416 ;;
18417
18418 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018419 ac_ext=c
18420ac_cpp='$CPP $CPPFLAGS'
18421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18423ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000018424
18425
18426# Source file extension for RC test sources.
18427ac_ext=rc
18428
18429# Object file extension for compiled RC test sources.
18430objext=o
18431objext_RC=$objext
18432
18433# Code to be used in simple compile tests
18434lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18435
18436# Code to be used in simple link tests
18437lt_simple_link_test_code="$lt_simple_compile_test_code"
18438
18439# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18440
18441# If no C compiler was specified, use CC.
18442LTCC=${LTCC-"$CC"}
18443
18444# Allow CC to be a program name with arguments.
18445compiler=$CC
18446
18447
18448# Allow CC to be a program name with arguments.
18449lt_save_CC="$CC"
18450CC=${RC-"windres"}
18451compiler=$CC
18452compiler_RC=$CC
18453lt_cv_prog_compiler_c_o_RC=yes
18454
18455# The else clause should only fire when bootstrapping the
18456# libtool distribution, otherwise you forgot to ship ltmain.sh
18457# with your package, and you will get complaints that there are
18458# no rules to generate ltmain.sh.
18459if test -f "$ltmain"; then
18460 # See if we are running on zsh, and set the options which allow our commands through
18461 # without removal of \ escapes.
18462 if test -n "${ZSH_VERSION+set}" ; then
18463 setopt NO_GLOB_SUBST
18464 fi
18465 # Now quote all the things that may contain metacharacters while being
18466 # careful not to overquote the AC_SUBSTed values. We take copies of the
18467 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018468 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18469 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018470 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18471 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18472 deplibs_check_method reload_flag reload_cmds need_locks \
18473 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18474 lt_cv_sys_global_symbol_to_c_name_address \
18475 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18476 old_postinstall_cmds old_postuninstall_cmds \
18477 compiler_RC \
18478 CC_RC \
18479 LD_RC \
18480 lt_prog_compiler_wl_RC \
18481 lt_prog_compiler_pic_RC \
18482 lt_prog_compiler_static_RC \
18483 lt_prog_compiler_no_builtin_flag_RC \
18484 export_dynamic_flag_spec_RC \
18485 thread_safe_flag_spec_RC \
18486 whole_archive_flag_spec_RC \
18487 enable_shared_with_static_runtimes_RC \
18488 old_archive_cmds_RC \
18489 old_archive_from_new_cmds_RC \
18490 predep_objects_RC \
18491 postdep_objects_RC \
18492 predeps_RC \
18493 postdeps_RC \
18494 compiler_lib_search_path_RC \
18495 archive_cmds_RC \
18496 archive_expsym_cmds_RC \
18497 postinstall_cmds_RC \
18498 postuninstall_cmds_RC \
18499 old_archive_from_expsyms_cmds_RC \
18500 allow_undefined_flag_RC \
18501 no_undefined_flag_RC \
18502 export_symbols_cmds_RC \
18503 hardcode_libdir_flag_spec_RC \
18504 hardcode_libdir_flag_spec_ld_RC \
18505 hardcode_libdir_separator_RC \
18506 hardcode_automatic_RC \
18507 module_cmds_RC \
18508 module_expsym_cmds_RC \
18509 lt_cv_prog_compiler_c_o_RC \
18510 exclude_expsyms_RC \
18511 include_expsyms_RC; do
18512
18513 case $var in
18514 old_archive_cmds_RC | \
18515 old_archive_from_new_cmds_RC | \
18516 archive_cmds_RC | \
18517 archive_expsym_cmds_RC | \
18518 module_cmds_RC | \
18519 module_expsym_cmds_RC | \
18520 old_archive_from_expsyms_cmds_RC | \
18521 export_symbols_cmds_RC | \
18522 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18523 postinstall_cmds | postuninstall_cmds | \
18524 old_postinstall_cmds | old_postuninstall_cmds | \
18525 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18526 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018527 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 +000018528 ;;
18529 *)
18530 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18531 ;;
18532 esac
18533 done
18534
18535 case $lt_echo in
18536 *'\$0 --fallback-echo"')
18537 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18538 ;;
18539 esac
18540
18541cfgfile="$ofile"
18542
18543 cat <<__EOF__ >> "$cfgfile"
18544# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18545
18546# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18547
18548# Shell to use when invoking shell scripts.
18549SHELL=$lt_SHELL
18550
18551# Whether or not to build shared libraries.
18552build_libtool_libs=$enable_shared
18553
18554# Whether or not to build static libraries.
18555build_old_libs=$enable_static
18556
18557# Whether or not to add -lc for building shared libraries.
18558build_libtool_need_lc=$archive_cmds_need_lc_RC
18559
18560# Whether or not to disallow shared libs when runtime libs are static
18561allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18562
18563# Whether or not to optimize for fast installation.
18564fast_install=$enable_fast_install
18565
18566# The host system.
18567host_alias=$host_alias
18568host=$host
18569
18570# An echo program that does not interpret backslashes.
18571echo=$lt_echo
18572
18573# The archiver.
18574AR=$lt_AR
18575AR_FLAGS=$lt_AR_FLAGS
18576
18577# A C compiler.
18578LTCC=$lt_LTCC
18579
18580# A language-specific compiler.
18581CC=$lt_compiler_RC
18582
18583# Is the compiler the GNU C compiler?
18584with_gcc=$GCC_RC
18585
18586# An ERE matcher.
18587EGREP=$lt_EGREP
18588
18589# The linker used to build libraries.
18590LD=$lt_LD_RC
18591
18592# Whether we need hard or soft links.
18593LN_S=$lt_LN_S
18594
18595# A BSD-compatible nm program.
18596NM=$lt_NM
18597
18598# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018599STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018600
18601# Used to examine libraries when file_magic_cmd begins "file"
18602MAGIC_CMD=$MAGIC_CMD
18603
18604# Used on cygwin: DLL creation program.
18605DLLTOOL="$DLLTOOL"
18606
18607# Used on cygwin: object dumper.
18608OBJDUMP="$OBJDUMP"
18609
18610# Used on cygwin: assembler.
18611AS="$AS"
18612
18613# The name of the directory that contains temporary libtool files.
18614objdir=$objdir
18615
18616# How to create reloadable object files.
18617reload_flag=$lt_reload_flag
18618reload_cmds=$lt_reload_cmds
18619
18620# How to pass a linker flag through the compiler.
18621wl=$lt_lt_prog_compiler_wl_RC
18622
18623# Object file suffix (normally "o").
18624objext="$ac_objext"
18625
18626# Old archive suffix (normally "a").
18627libext="$libext"
18628
18629# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018630shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018631
18632# Executable file suffix (normally "").
18633exeext="$exeext"
18634
18635# Additional compiler flags for building library objects.
18636pic_flag=$lt_lt_prog_compiler_pic_RC
18637pic_mode=$pic_mode
18638
18639# What is the maximum length of a command?
18640max_cmd_len=$lt_cv_sys_max_cmd_len
18641
18642# Does compiler simultaneously support -c and -o options?
18643compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18644
18645# Must we lock files when doing compilation ?
18646need_locks=$lt_need_locks
18647
18648# Do we need the lib prefix for modules?
18649need_lib_prefix=$need_lib_prefix
18650
18651# Do we need a version for libraries?
18652need_version=$need_version
18653
18654# Whether dlopen is supported.
18655dlopen_support=$enable_dlopen
18656
18657# Whether dlopen of programs is supported.
18658dlopen_self=$enable_dlopen_self
18659
18660# Whether dlopen of statically linked programs is supported.
18661dlopen_self_static=$enable_dlopen_self_static
18662
18663# Compiler flag to prevent dynamic linking.
18664link_static_flag=$lt_lt_prog_compiler_static_RC
18665
18666# Compiler flag to turn off builtin functions.
18667no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18668
18669# Compiler flag to allow reflexive dlopens.
18670export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18671
18672# Compiler flag to generate shared objects directly from archives.
18673whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18674
18675# Compiler flag to generate thread-safe objects.
18676thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18677
18678# Library versioning type.
18679version_type=$version_type
18680
18681# Format of library name prefix.
18682libname_spec=$lt_libname_spec
18683
18684# List of archive names. First name is the real one, the rest are links.
18685# The last name is the one that the linker finds with -lNAME.
18686library_names_spec=$lt_library_names_spec
18687
18688# The coded name of the library, if different from the real name.
18689soname_spec=$lt_soname_spec
18690
18691# Commands used to build and install an old-style archive.
18692RANLIB=$lt_RANLIB
18693old_archive_cmds=$lt_old_archive_cmds_RC
18694old_postinstall_cmds=$lt_old_postinstall_cmds
18695old_postuninstall_cmds=$lt_old_postuninstall_cmds
18696
18697# Create an old-style archive from a shared archive.
18698old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18699
18700# Create a temporary old-style archive to link instead of a shared archive.
18701old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18702
18703# Commands used to build and install a shared archive.
18704archive_cmds=$lt_archive_cmds_RC
18705archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18706postinstall_cmds=$lt_postinstall_cmds
18707postuninstall_cmds=$lt_postuninstall_cmds
18708
18709# Commands used to build a loadable module (assumed same as above if empty)
18710module_cmds=$lt_module_cmds_RC
18711module_expsym_cmds=$lt_module_expsym_cmds_RC
18712
18713# Commands to strip libraries.
18714old_striplib=$lt_old_striplib
18715striplib=$lt_striplib
18716
18717# Dependencies to place before the objects being linked to create a
18718# shared library.
18719predep_objects=$lt_predep_objects_RC
18720
18721# Dependencies to place after the objects being linked to create a
18722# shared library.
18723postdep_objects=$lt_postdep_objects_RC
18724
18725# Dependencies to place before the objects being linked to create a
18726# shared library.
18727predeps=$lt_predeps_RC
18728
18729# Dependencies to place after the objects being linked to create a
18730# shared library.
18731postdeps=$lt_postdeps_RC
18732
18733# The library search path used internally by the compiler when linking
18734# a shared library.
18735compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18736
18737# Method to check whether dependent libraries are shared objects.
18738deplibs_check_method=$lt_deplibs_check_method
18739
18740# Command to use when deplibs_check_method == file_magic.
18741file_magic_cmd=$lt_file_magic_cmd
18742
18743# Flag that allows shared libraries with undefined symbols to be built.
18744allow_undefined_flag=$lt_allow_undefined_flag_RC
18745
18746# Flag that forces no undefined symbols.
18747no_undefined_flag=$lt_no_undefined_flag_RC
18748
18749# Commands used to finish a libtool library installation in a directory.
18750finish_cmds=$lt_finish_cmds
18751
18752# Same as above, but a single script fragment to be evaled but not shown.
18753finish_eval=$lt_finish_eval
18754
18755# Take the output of nm and produce a listing of raw symbols and C names.
18756global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18757
18758# Transform the output of nm in a proper C declaration
18759global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18760
18761# Transform the output of nm in a C name address pair
18762global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18763
18764# This is the shared library runtime path variable.
18765runpath_var=$runpath_var
18766
18767# This is the shared library path variable.
18768shlibpath_var=$shlibpath_var
18769
18770# Is shlibpath searched before the hard-coded library search path?
18771shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18772
18773# How to hardcode a shared library path into an executable.
18774hardcode_action=$hardcode_action_RC
18775
18776# Whether we should hardcode library paths into libraries.
18777hardcode_into_libs=$hardcode_into_libs
18778
18779# Flag to hardcode \$libdir into a binary during linking.
18780# This must work even if \$libdir does not exist.
18781hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18782
18783# If ld is used when linking, flag to hardcode \$libdir into
18784# a binary during linking. This must work even if \$libdir does
18785# not exist.
18786hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18787
18788# Whether we need a single -rpath flag with a separated argument.
18789hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18790
18791# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18792# resulting binary.
18793hardcode_direct=$hardcode_direct_RC
18794
18795# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18796# resulting binary.
18797hardcode_minus_L=$hardcode_minus_L_RC
18798
18799# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18800# the resulting binary.
18801hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18802
18803# Set to yes if building a shared library automatically hardcodes DIR into the library
18804# and all subsequent libraries and executables linked against it.
18805hardcode_automatic=$hardcode_automatic_RC
18806
18807# Variables whose values should be saved in libtool wrapper scripts and
18808# restored at relink time.
18809variables_saved_for_relink="$variables_saved_for_relink"
18810
18811# Whether libtool must link a program against all its dependency libraries.
18812link_all_deplibs=$link_all_deplibs_RC
18813
18814# Compile-time system search path for libraries
18815sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18816
18817# Run-time system search path for libraries
18818sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18819
18820# Fix the shell variable \$srcfile for the compiler.
18821fix_srcfile_path="$fix_srcfile_path_RC"
18822
18823# Set to yes if exported symbols are required.
18824always_export_symbols=$always_export_symbols_RC
18825
18826# The commands to list exported symbols.
18827export_symbols_cmds=$lt_export_symbols_cmds_RC
18828
18829# The commands to extract the exported symbol list from a shared archive.
18830extract_expsyms_cmds=$lt_extract_expsyms_cmds
18831
18832# Symbols that should not be listed in the preloaded symbols.
18833exclude_expsyms=$lt_exclude_expsyms_RC
18834
18835# Symbols that must always be exported.
18836include_expsyms=$lt_include_expsyms_RC
18837
18838# ### END LIBTOOL TAG CONFIG: $tagname
18839
18840__EOF__
18841
18842
18843else
18844 # If there is no Makefile yet, we rely on a make rule to execute
18845 # `config.status --recheck' to rerun these tests and create the
18846 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018847 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18848 if test -f "$ltmain_in"; then
18849 test -f Makefile && make "$ltmain"
18850 fi
John Criswell47fdd832003-07-14 16:52:07 +000018851fi
18852
18853
18854ac_ext=c
18855ac_cpp='$CPP $CPPFLAGS'
18856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18858ac_compiler_gnu=$ac_cv_c_compiler_gnu
18859
18860CC="$lt_save_CC"
18861
18862 ;;
18863
18864 *)
18865 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18866echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18867 { (exit 1); exit 1; }; }
18868 ;;
18869 esac
18870
18871 # Append the new tag name to the list of available tags.
18872 if test -n "$tagname" ; then
18873 available_tags="$available_tags $tagname"
18874 fi
18875 fi
18876 done
18877 IFS="$lt_save_ifs"
18878
18879 # Now substitute the updated list of available tags.
18880 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18881 mv "${ofile}T" "$ofile"
18882 chmod +x "$ofile"
18883 else
18884 rm -f "${ofile}T"
18885 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18886echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18887 { (exit 1); exit 1; }; }
18888 fi
18889fi
John Criswell7a73b802003-06-30 21:59:07 +000018890
18891
18892
18893# This can be used to rebuild libtool when needed
18894LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18895
18896# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018897LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018898
18899# Prevent multiple expansion
18900
18901
18902
John Criswell47fdd832003-07-14 16:52:07 +000018903
18904
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
John Criswell7a73b802003-06-30 21:59:07 +000018921# Extract the first word of "dot", so it can be a program name with args.
18922set dummy dot; ac_word=$2
18923echo "$as_me:$LINENO: checking for $ac_word" >&5
18924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18925if test "${ac_cv_path_DOT+set}" = set; then
18926 echo $ECHO_N "(cached) $ECHO_C" >&6
18927else
18928 case $DOT in
18929 [\\/]* | ?:[\\/]*)
18930 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18931 ;;
18932 *)
18933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18934for as_dir in $PATH
18935do
18936 IFS=$as_save_IFS
18937 test -z "$as_dir" && as_dir=.
18938 for ac_exec_ext in '' $ac_executable_extensions; do
18939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18940 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18942 break 2
18943 fi
18944done
18945done
18946
Brian Gaeke26be9c52004-01-13 06:43:16 +000018947 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018948 ;;
18949esac
18950fi
18951DOT=$ac_cv_path_DOT
18952
18953if test -n "$DOT"; then
18954 echo "$as_me:$LINENO: result: $DOT" >&5
18955echo "${ECHO_T}$DOT" >&6
18956else
18957 echo "$as_me:$LINENO: result: no" >&5
18958echo "${ECHO_T}no" >&6
18959fi
18960
18961# Extract the first word of "etags", so it can be a program name with args.
18962set dummy etags; ac_word=$2
18963echo "$as_me:$LINENO: checking for $ac_word" >&5
18964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18965if test "${ac_cv_path_ETAGS+set}" = set; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18967else
18968 case $ETAGS in
18969 [\\/]* | ?:[\\/]*)
18970 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18971 ;;
18972 *)
18973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18974for as_dir in $PATH
18975do
18976 IFS=$as_save_IFS
18977 test -z "$as_dir" && as_dir=.
18978 for ac_exec_ext in '' $ac_executable_extensions; do
18979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18980 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18982 break 2
18983 fi
18984done
18985done
18986
Brian Gaeke26be9c52004-01-13 06:43:16 +000018987 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018988 ;;
18989esac
18990fi
18991ETAGS=$ac_cv_path_ETAGS
18992
18993if test -n "$ETAGS"; then
18994 echo "$as_me:$LINENO: result: $ETAGS" >&5
18995echo "${ECHO_T}$ETAGS" >&6
18996else
18997 echo "$as_me:$LINENO: result: no" >&5
18998echo "${ECHO_T}no" >&6
18999fi
19000
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000019001etags_version=`$ETAGS --version 2>&1`
19002case "$etags_version" in
19003 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19004 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19005 *) ETAGSFLAGS="" ;;
19006esac
19007ETAGSFLAGS=$ETAGSFLAGS
19008
John Criswellde00db22003-08-25 16:49:54 +000019009# Extract the first word of "python", so it can be a program name with args.
19010set dummy python; ac_word=$2
19011echo "$as_me:$LINENO: checking for $ac_word" >&5
19012echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19013if test "${ac_cv_path_PYTHON+set}" = set; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19015else
19016 case $PYTHON in
19017 [\\/]* | ?:[\\/]*)
19018 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19019 ;;
19020 *)
19021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19022for as_dir in $PATH
19023do
19024 IFS=$as_save_IFS
19025 test -z "$as_dir" && as_dir=.
19026 for ac_exec_ext in '' $ac_executable_extensions; do
19027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19028 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19030 break 2
19031 fi
19032done
19033done
19034
Brian Gaeke26be9c52004-01-13 06:43:16 +000019035 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000019036 ;;
19037esac
19038fi
19039PYTHON=$ac_cv_path_PYTHON
19040
19041if test -n "$PYTHON"; then
19042 echo "$as_me:$LINENO: result: $PYTHON" >&5
19043echo "${ECHO_T}$PYTHON" >&6
19044else
19045 echo "$as_me:$LINENO: result: no" >&5
19046echo "${ECHO_T}no" >&6
19047fi
19048
Brian Gaeke26be9c52004-01-13 06:43:16 +000019049if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000019050then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019051 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19052echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019053fi
John Criswellde00db22003-08-25 16:49:54 +000019054# Extract the first word of "qmtest", so it can be a program name with args.
19055set dummy qmtest; ac_word=$2
19056echo "$as_me:$LINENO: checking for $ac_word" >&5
19057echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19058if test "${ac_cv_path_QMTEST+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19060else
19061 case $QMTEST in
19062 [\\/]* | ?:[\\/]*)
19063 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19064 ;;
19065 *)
19066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19067for as_dir in $PATH
19068do
19069 IFS=$as_save_IFS
19070 test -z "$as_dir" && as_dir=.
19071 for ac_exec_ext in '' $ac_executable_extensions; do
19072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19073 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19075 break 2
19076 fi
19077done
19078done
19079
Brian Gaeke26be9c52004-01-13 06:43:16 +000019080 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000019081 ;;
19082esac
19083fi
19084QMTEST=$ac_cv_path_QMTEST
19085
19086if test -n "$QMTEST"; then
19087 echo "$as_me:$LINENO: result: $QMTEST" >&5
19088echo "${ECHO_T}$QMTEST" >&6
19089else
19090 echo "$as_me:$LINENO: result: no" >&5
19091echo "${ECHO_T}no" >&6
19092fi
19093
Brian Gaeke26be9c52004-01-13 06:43:16 +000019094if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000019095then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019096 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19097echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019098fi
John Criswellde00db22003-08-25 16:49:54 +000019099
19100pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19101pymajor=`echo $pyversion | cut -d. -f1`
19102pyminor=`echo $pyversion | cut -d. -f2`
19103
19104if test "$pymajor" -ge "2"
19105then
19106 if test "$pymajor" -eq "2"
19107 then
19108 if test "$pyminor" -lt "2"
19109 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019110 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19111echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019112 fi
19113 fi
19114else
Brian Gaeke26be9c52004-01-13 06:43:16 +000019115 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19116echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019117fi
John Criswell7a73b802003-06-30 21:59:07 +000019118
19119
John Criswell7a73b802003-06-30 21:59:07 +000019120echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19121echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19122if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19123 echo $ECHO_N "(cached) $ECHO_C" >&6
19124else
19125 ac_check_lib_save_LIBS=$LIBS
19126LIBS="-lelf $LIBS"
19127cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019128/* confdefs.h. */
19129_ACEOF
19130cat confdefs.h >>conftest.$ac_ext
19131cat >>conftest.$ac_ext <<_ACEOF
19132/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019133
19134/* Override any gcc2 internal prototype to avoid an error. */
19135#ifdef __cplusplus
19136extern "C"
19137#endif
19138/* We use char because int might match the return type of a gcc2
19139 builtin and then its argument prototype would still apply. */
19140char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019141int
19142main ()
19143{
19144elf_begin ();
19145 ;
19146 return 0;
19147}
19148_ACEOF
19149rm -f conftest.$ac_objext conftest$ac_exeext
19150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019151 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019152 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019153 grep -v '^ *+' conftest.er1 >conftest.err
19154 rm -f conftest.er1
19155 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019158 { ac_try='test -z "$ac_c_werror_flag"
19159 || test ! -s conftest.err'
19160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19161 (eval $ac_try) 2>&5
19162 ac_status=$?
19163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19164 (exit $ac_status); }; } &&
19165 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19167 (eval $ac_try) 2>&5
19168 ac_status=$?
19169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19170 (exit $ac_status); }; }; then
19171 ac_cv_lib_elf_elf_begin=yes
19172else
19173 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019174sed 's/^/| /' conftest.$ac_ext >&5
19175
John Criswell7a73b802003-06-30 21:59:07 +000019176ac_cv_lib_elf_elf_begin=no
19177fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019178rm -f conftest.err conftest.$ac_objext \
19179 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019180LIBS=$ac_check_lib_save_LIBS
19181fi
19182echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19183echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19184if test $ac_cv_lib_elf_elf_begin = yes; then
19185 cat >>confdefs.h <<_ACEOF
19186#define HAVE_LIBELF 1
19187_ACEOF
19188
19189 LIBS="-lelf $LIBS"
19190
19191fi
19192
19193
19194echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19195echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19196if test "${ac_cv_search_dlopen+set}" = set; then
19197 echo $ECHO_N "(cached) $ECHO_C" >&6
19198else
19199 ac_func_search_save_LIBS=$LIBS
19200ac_cv_search_dlopen=no
19201cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019202/* confdefs.h. */
19203_ACEOF
19204cat confdefs.h >>conftest.$ac_ext
19205cat >>conftest.$ac_ext <<_ACEOF
19206/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019207
19208/* Override any gcc2 internal prototype to avoid an error. */
19209#ifdef __cplusplus
19210extern "C"
19211#endif
19212/* We use char because int might match the return type of a gcc2
19213 builtin and then its argument prototype would still apply. */
19214char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019215int
19216main ()
19217{
19218dlopen ();
19219 ;
19220 return 0;
19221}
19222_ACEOF
19223rm -f conftest.$ac_objext conftest$ac_exeext
19224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019225 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019226 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019227 grep -v '^ *+' conftest.er1 >conftest.err
19228 rm -f conftest.er1
19229 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019232 { ac_try='test -z "$ac_c_werror_flag"
19233 || test ! -s conftest.err'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; } &&
19239 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; }; then
19245 ac_cv_search_dlopen="none required"
19246else
19247 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019248sed 's/^/| /' conftest.$ac_ext >&5
19249
John Criswell7a73b802003-06-30 21:59:07 +000019250fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019251rm -f conftest.err conftest.$ac_objext \
19252 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019253if test "$ac_cv_search_dlopen" = no; then
19254 for ac_lib in dl; do
19255 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19256 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019257/* confdefs.h. */
19258_ACEOF
19259cat confdefs.h >>conftest.$ac_ext
19260cat >>conftest.$ac_ext <<_ACEOF
19261/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019262
19263/* Override any gcc2 internal prototype to avoid an error. */
19264#ifdef __cplusplus
19265extern "C"
19266#endif
19267/* We use char because int might match the return type of a gcc2
19268 builtin and then its argument prototype would still apply. */
19269char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019270int
19271main ()
19272{
19273dlopen ();
19274 ;
19275 return 0;
19276}
19277_ACEOF
19278rm -f conftest.$ac_objext conftest$ac_exeext
19279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019280 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019281 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019282 grep -v '^ *+' conftest.er1 >conftest.err
19283 rm -f conftest.er1
19284 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019287 { ac_try='test -z "$ac_c_werror_flag"
19288 || test ! -s conftest.err'
19289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19290 (eval $ac_try) 2>&5
19291 ac_status=$?
19292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19293 (exit $ac_status); }; } &&
19294 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19296 (eval $ac_try) 2>&5
19297 ac_status=$?
19298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19299 (exit $ac_status); }; }; then
19300 ac_cv_search_dlopen="-l$ac_lib"
19301break
19302else
19303 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019304sed 's/^/| /' conftest.$ac_ext >&5
19305
John Criswell7a73b802003-06-30 21:59:07 +000019306fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019307rm -f conftest.err conftest.$ac_objext \
19308 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019309 done
19310fi
19311LIBS=$ac_func_search_save_LIBS
19312fi
19313echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19314echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19315if test "$ac_cv_search_dlopen" != no; then
19316 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019317
19318cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019319#define HAVE_DLOPEN 1
19320_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019321
19322else
Brian Gaekec45be042003-10-07 06:01:34 +000019323 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19324echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019325fi
19326
19327
19328echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19329echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19330if test "${ac_cv_search_mallinfo+set}" = set; then
19331 echo $ECHO_N "(cached) $ECHO_C" >&6
19332else
19333 ac_func_search_save_LIBS=$LIBS
19334ac_cv_search_mallinfo=no
19335cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019336/* confdefs.h. */
19337_ACEOF
19338cat confdefs.h >>conftest.$ac_ext
19339cat >>conftest.$ac_ext <<_ACEOF
19340/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019341
19342/* Override any gcc2 internal prototype to avoid an error. */
19343#ifdef __cplusplus
19344extern "C"
19345#endif
19346/* We use char because int might match the return type of a gcc2
19347 builtin and then its argument prototype would still apply. */
19348char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019349int
19350main ()
19351{
19352mallinfo ();
19353 ;
19354 return 0;
19355}
19356_ACEOF
19357rm -f conftest.$ac_objext conftest$ac_exeext
19358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019359 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019360 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019361 grep -v '^ *+' conftest.er1 >conftest.err
19362 rm -f conftest.er1
19363 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19365 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019366 { ac_try='test -z "$ac_c_werror_flag"
19367 || test ! -s conftest.err'
19368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19369 (eval $ac_try) 2>&5
19370 ac_status=$?
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }; } &&
19373 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19375 (eval $ac_try) 2>&5
19376 ac_status=$?
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_search_mallinfo="none required"
19380else
19381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019382sed 's/^/| /' conftest.$ac_ext >&5
19383
John Criswell7a73b802003-06-30 21:59:07 +000019384fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019385rm -f conftest.err conftest.$ac_objext \
19386 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019387if test "$ac_cv_search_mallinfo" = no; then
19388 for ac_lib in malloc; do
19389 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19390 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019391/* confdefs.h. */
19392_ACEOF
19393cat confdefs.h >>conftest.$ac_ext
19394cat >>conftest.$ac_ext <<_ACEOF
19395/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019396
19397/* Override any gcc2 internal prototype to avoid an error. */
19398#ifdef __cplusplus
19399extern "C"
19400#endif
19401/* We use char because int might match the return type of a gcc2
19402 builtin and then its argument prototype would still apply. */
19403char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019404int
19405main ()
19406{
19407mallinfo ();
19408 ;
19409 return 0;
19410}
19411_ACEOF
19412rm -f conftest.$ac_objext conftest$ac_exeext
19413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019414 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019415 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019416 grep -v '^ *+' conftest.er1 >conftest.err
19417 rm -f conftest.er1
19418 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19420 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019421 { ac_try='test -z "$ac_c_werror_flag"
19422 || test ! -s conftest.err'
19423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19424 (eval $ac_try) 2>&5
19425 ac_status=$?
19426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427 (exit $ac_status); }; } &&
19428 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19430 (eval $ac_try) 2>&5
19431 ac_status=$?
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; }; then
19434 ac_cv_search_mallinfo="-l$ac_lib"
19435break
19436else
19437 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019438sed 's/^/| /' conftest.$ac_ext >&5
19439
John Criswell7a73b802003-06-30 21:59:07 +000019440fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019441rm -f conftest.err conftest.$ac_objext \
19442 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019443 done
19444fi
19445LIBS=$ac_func_search_save_LIBS
19446fi
19447echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19448echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19449if test "$ac_cv_search_mallinfo" != no; then
19450 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019451
19452cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019453#define HAVE_MALLINFO 1
19454_ACEOF
19455
19456fi
19457
19458
Brian Gaeke5f268f72003-12-05 19:29:01 +000019459echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19460echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19461if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19463else
19464 ac_func_search_save_LIBS=$LIBS
19465ac_cv_search_pthread_mutex_lock=no
19466cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019467/* confdefs.h. */
19468_ACEOF
19469cat confdefs.h >>conftest.$ac_ext
19470cat >>conftest.$ac_ext <<_ACEOF
19471/* end confdefs.h. */
19472
19473/* Override any gcc2 internal prototype to avoid an error. */
19474#ifdef __cplusplus
19475extern "C"
19476#endif
19477/* We use char because int might match the return type of a gcc2
19478 builtin and then its argument prototype would still apply. */
19479char pthread_mutex_lock ();
19480int
19481main ()
19482{
19483pthread_mutex_lock ();
19484 ;
19485 return 0;
19486}
19487_ACEOF
19488rm -f conftest.$ac_objext conftest$ac_exeext
19489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019490 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019491 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019492 grep -v '^ *+' conftest.er1 >conftest.err
19493 rm -f conftest.er1
19494 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19496 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019497 { ac_try='test -z "$ac_c_werror_flag"
19498 || test ! -s conftest.err'
19499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19500 (eval $ac_try) 2>&5
19501 ac_status=$?
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); }; } &&
19504 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19506 (eval $ac_try) 2>&5
19507 ac_status=$?
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19510 ac_cv_search_pthread_mutex_lock="none required"
19511else
19512 echo "$as_me: failed program was:" >&5
19513sed 's/^/| /' conftest.$ac_ext >&5
19514
19515fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019516rm -f conftest.err conftest.$ac_objext \
19517 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019518if test "$ac_cv_search_pthread_mutex_lock" = no; then
19519 for ac_lib in pthread; do
19520 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19521 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019522/* confdefs.h. */
19523_ACEOF
19524cat confdefs.h >>conftest.$ac_ext
19525cat >>conftest.$ac_ext <<_ACEOF
19526/* end confdefs.h. */
19527
19528/* Override any gcc2 internal prototype to avoid an error. */
19529#ifdef __cplusplus
19530extern "C"
19531#endif
19532/* We use char because int might match the return type of a gcc2
19533 builtin and then its argument prototype would still apply. */
19534char pthread_mutex_lock ();
19535int
19536main ()
19537{
19538pthread_mutex_lock ();
19539 ;
19540 return 0;
19541}
19542_ACEOF
19543rm -f conftest.$ac_objext conftest$ac_exeext
19544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019545 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019546 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019547 grep -v '^ *+' conftest.er1 >conftest.err
19548 rm -f conftest.er1
19549 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019552 { ac_try='test -z "$ac_c_werror_flag"
19553 || test ! -s conftest.err'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19556 ac_status=$?
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; } &&
19559 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19561 (eval $ac_try) 2>&5
19562 ac_status=$?
19563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19564 (exit $ac_status); }; }; then
19565 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19566break
19567else
19568 echo "$as_me: failed program was:" >&5
19569sed 's/^/| /' conftest.$ac_ext >&5
19570
19571fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019572rm -f conftest.err conftest.$ac_objext \
19573 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019574 done
19575fi
19576LIBS=$ac_func_search_save_LIBS
19577fi
19578echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19579echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19580if test "$ac_cv_search_pthread_mutex_lock" != no; then
19581 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000019582 HAVE_PTHREAD_MUTEX_LOCK=1
19583else
19584 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000019585fi
19586
19587
Brian Gaekec9a410c2004-02-23 21:30:37 +000019588
John Criswell7a73b802003-06-30 21:59:07 +000019589echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19590echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19591if test "${ac_cv_header_stdc+set}" = set; then
19592 echo $ECHO_N "(cached) $ECHO_C" >&6
19593else
19594 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019595/* confdefs.h. */
19596_ACEOF
19597cat confdefs.h >>conftest.$ac_ext
19598cat >>conftest.$ac_ext <<_ACEOF
19599/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019600#include <stdlib.h>
19601#include <stdarg.h>
19602#include <string.h>
19603#include <float.h>
19604
John Criswell0c38eaf2003-09-10 15:17:25 +000019605int
19606main ()
19607{
19608
19609 ;
19610 return 0;
19611}
John Criswell7a73b802003-06-30 21:59:07 +000019612_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019613rm -f conftest.$ac_objext
19614if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019615 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019616 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019617 grep -v '^ *+' conftest.er1 >conftest.err
19618 rm -f conftest.er1
19619 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019621 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019622 { ac_try='test -z "$ac_c_werror_flag"
19623 || test ! -s conftest.err'
19624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19625 (eval $ac_try) 2>&5
19626 ac_status=$?
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); }; } &&
19629 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000019630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19631 (eval $ac_try) 2>&5
19632 ac_status=$?
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019635 ac_cv_header_stdc=yes
19636else
19637 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019638sed 's/^/| /' conftest.$ac_ext >&5
19639
19640ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019641fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019642rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019643
19644if test $ac_cv_header_stdc = yes; then
19645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19646 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019647/* confdefs.h. */
19648_ACEOF
19649cat confdefs.h >>conftest.$ac_ext
19650cat >>conftest.$ac_ext <<_ACEOF
19651/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019652#include <string.h>
19653
19654_ACEOF
19655if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019656 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019657 :
19658else
19659 ac_cv_header_stdc=no
19660fi
19661rm -f conftest*
19662
19663fi
19664
19665if test $ac_cv_header_stdc = yes; then
19666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19667 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019668/* confdefs.h. */
19669_ACEOF
19670cat confdefs.h >>conftest.$ac_ext
19671cat >>conftest.$ac_ext <<_ACEOF
19672/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019673#include <stdlib.h>
19674
19675_ACEOF
19676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019677 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019678 :
19679else
19680 ac_cv_header_stdc=no
19681fi
19682rm -f conftest*
19683
19684fi
19685
19686if test $ac_cv_header_stdc = yes; then
19687 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19688 if test "$cross_compiling" = yes; then
19689 :
19690else
19691 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019692/* confdefs.h. */
19693_ACEOF
19694cat confdefs.h >>conftest.$ac_ext
19695cat >>conftest.$ac_ext <<_ACEOF
19696/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019697#include <ctype.h>
19698#if ((' ' & 0x0FF) == 0x020)
19699# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19700# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19701#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019702# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000019703 (('a' <= (c) && (c) <= 'i') \
19704 || ('j' <= (c) && (c) <= 'r') \
19705 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000019706# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19707#endif
19708
19709#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19710int
19711main ()
19712{
19713 int i;
19714 for (i = 0; i < 256; i++)
19715 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000019716 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000019717 exit(2);
19718 exit (0);
19719}
19720_ACEOF
19721rm -f conftest$ac_exeext
19722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19723 (eval $ac_link) 2>&5
19724 ac_status=$?
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19728 (eval $ac_try) 2>&5
19729 ac_status=$?
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); }; }; then
19732 :
19733else
19734 echo "$as_me: program exited with status $ac_status" >&5
19735echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019736sed 's/^/| /' conftest.$ac_ext >&5
19737
John Criswell7a73b802003-06-30 21:59:07 +000019738( exit $ac_status )
19739ac_cv_header_stdc=no
19740fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019741rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019742fi
19743fi
19744fi
19745echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19746echo "${ECHO_T}$ac_cv_header_stdc" >&6
19747if test $ac_cv_header_stdc = yes; then
19748
19749cat >>confdefs.h <<\_ACEOF
19750#define STDC_HEADERS 1
19751_ACEOF
19752
19753fi
19754
19755echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19756echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19757if test "${ac_cv_header_sys_wait_h+set}" = set; then
19758 echo $ECHO_N "(cached) $ECHO_C" >&6
19759else
19760 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019761/* confdefs.h. */
19762_ACEOF
19763cat confdefs.h >>conftest.$ac_ext
19764cat >>conftest.$ac_ext <<_ACEOF
19765/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019766#include <sys/types.h>
19767#include <sys/wait.h>
19768#ifndef WEXITSTATUS
19769# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19770#endif
19771#ifndef WIFEXITED
19772# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19773#endif
19774
John Criswell7a73b802003-06-30 21:59:07 +000019775int
19776main ()
19777{
19778 int s;
19779 wait (&s);
19780 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19781 ;
19782 return 0;
19783}
19784_ACEOF
19785rm -f conftest.$ac_objext
19786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019787 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019788 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019794 { ac_try='test -z "$ac_c_werror_flag"
19795 || test ! -s conftest.err'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; } &&
19801 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 ac_cv_header_sys_wait_h=yes
19808else
19809 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019810sed 's/^/| /' conftest.$ac_ext >&5
19811
John Criswell7a73b802003-06-30 21:59:07 +000019812ac_cv_header_sys_wait_h=no
19813fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019815fi
19816echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19817echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19818if test $ac_cv_header_sys_wait_h = yes; then
19819
19820cat >>confdefs.h <<\_ACEOF
19821#define HAVE_SYS_WAIT_H 1
19822_ACEOF
19823
19824fi
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
Brian Gaeke26be9c52004-01-13 06:43:16 +000019835
Brian Gaekef5261472004-02-20 06:40:57 +000019836
John Criswellb2815e02004-05-27 20:40:39 +000019837
19838for 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 +000019839do
19840as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19841if eval "test \"\${$as_ac_Header+set}\" = set"; then
19842 echo "$as_me:$LINENO: checking for $ac_header" >&5
19843echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19844if eval "test \"\${$as_ac_Header+set}\" = set"; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846fi
19847echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19848echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19849else
19850 # Is the header compilable?
19851echo "$as_me:$LINENO: checking $ac_header usability" >&5
19852echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19853cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019854/* confdefs.h. */
19855_ACEOF
19856cat confdefs.h >>conftest.$ac_ext
19857cat >>conftest.$ac_ext <<_ACEOF
19858/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019859$ac_includes_default
19860#include <$ac_header>
19861_ACEOF
19862rm -f conftest.$ac_objext
19863if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019864 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019865 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019866 grep -v '^ *+' conftest.er1 >conftest.err
19867 rm -f conftest.er1
19868 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019871 { ac_try='test -z "$ac_c_werror_flag"
19872 || test ! -s conftest.err'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19875 ac_status=$?
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19881 ac_status=$?
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 ac_header_compiler=yes
19885else
19886 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019887sed 's/^/| /' conftest.$ac_ext >&5
19888
John Criswell7a73b802003-06-30 21:59:07 +000019889ac_header_compiler=no
19890fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019891rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019892echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19893echo "${ECHO_T}$ac_header_compiler" >&6
19894
19895# Is the header present?
19896echo "$as_me:$LINENO: checking $ac_header presence" >&5
19897echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19898cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019899/* confdefs.h. */
19900_ACEOF
19901cat confdefs.h >>conftest.$ac_ext
19902cat >>conftest.$ac_ext <<_ACEOF
19903/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019904#include <$ac_header>
19905_ACEOF
19906if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19907 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19908 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019909 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019910 rm -f conftest.er1
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913 (exit $ac_status); } >/dev/null; then
19914 if test -s conftest.err; then
19915 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000019916 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000019917 else
19918 ac_cpp_err=
19919 fi
19920else
19921 ac_cpp_err=yes
19922fi
19923if test -z "$ac_cpp_err"; then
19924 ac_header_preproc=yes
19925else
19926 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019927sed 's/^/| /' conftest.$ac_ext >&5
19928
John Criswell7a73b802003-06-30 21:59:07 +000019929 ac_header_preproc=no
19930fi
19931rm -f conftest.err conftest.$ac_ext
19932echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19933echo "${ECHO_T}$ac_header_preproc" >&6
19934
19935# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019936case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19937 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000019938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19939echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000019940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19941echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19942 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019943 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019944 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000019945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19946echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000019947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19948echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19950echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19952echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000019953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19954echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000019955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19956echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000019957 (
19958 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000019959## ----------------------------------- ##
19960## Report this to llvmbugs@cs.uiuc.edu ##
19961## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000019962_ASBOX
19963 ) |
19964 sed "s/^/$as_me: WARNING: /" >&2
19965 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019966esac
19967echo "$as_me:$LINENO: checking for $ac_header" >&5
19968echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19969if eval "test \"\${$as_ac_Header+set}\" = set"; then
19970 echo $ECHO_N "(cached) $ECHO_C" >&6
19971else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019972 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000019973fi
19974echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19975echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19976
19977fi
19978if test `eval echo '${'$as_ac_Header'}'` = yes; then
19979 cat >>confdefs.h <<_ACEOF
19980#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19981_ACEOF
19982
19983fi
19984
19985done
19986
19987
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019988if test "${ac_cv_header_sys_types_h+set}" = set; then
19989 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19990echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19991if test "${ac_cv_header_sys_types_h+set}" = set; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19993fi
19994echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19995echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19996else
19997 # Is the header compilable?
19998echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19999echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20000cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020001/* confdefs.h. */
20002_ACEOF
20003cat confdefs.h >>conftest.$ac_ext
20004cat >>conftest.$ac_ext <<_ACEOF
20005/* end confdefs.h. */
20006$ac_includes_default
20007#include <sys/types.h>
20008_ACEOF
20009rm -f conftest.$ac_objext
20010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020011 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020012 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020013 grep -v '^ *+' conftest.er1 >conftest.err
20014 rm -f conftest.er1
20015 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20017 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020018 { ac_try='test -z "$ac_c_werror_flag"
20019 || test ! -s conftest.err'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; } &&
20025 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20027 (eval $ac_try) 2>&5
20028 ac_status=$?
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; }; then
20031 ac_header_compiler=yes
20032else
20033 echo "$as_me: failed program was:" >&5
20034sed 's/^/| /' conftest.$ac_ext >&5
20035
20036ac_header_compiler=no
20037fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020039echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20040echo "${ECHO_T}$ac_header_compiler" >&6
20041
20042# Is the header present?
20043echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20044echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20045cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020046/* confdefs.h. */
20047_ACEOF
20048cat confdefs.h >>conftest.$ac_ext
20049cat >>conftest.$ac_ext <<_ACEOF
20050/* end confdefs.h. */
20051#include <sys/types.h>
20052_ACEOF
20053if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20054 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20055 ac_status=$?
20056 grep -v '^ *+' conftest.er1 >conftest.err
20057 rm -f conftest.er1
20058 cat conftest.err >&5
20059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } >/dev/null; then
20061 if test -s conftest.err; then
20062 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020063 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020064 else
20065 ac_cpp_err=
20066 fi
20067else
20068 ac_cpp_err=yes
20069fi
20070if test -z "$ac_cpp_err"; then
20071 ac_header_preproc=yes
20072else
20073 echo "$as_me: failed program was:" >&5
20074sed 's/^/| /' conftest.$ac_ext >&5
20075
20076 ac_header_preproc=no
20077fi
20078rm -f conftest.err conftest.$ac_ext
20079echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20080echo "${ECHO_T}$ac_header_preproc" >&6
20081
20082# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020083case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20084 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020085 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20086echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020087 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20088echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20089 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020090 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020091 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020092 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20093echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020094 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20095echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20096 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20097echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20098 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20099echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020100 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20101echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020102 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20103echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020104 (
20105 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020106## ----------------------------------- ##
20107## Report this to llvmbugs@cs.uiuc.edu ##
20108## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020109_ASBOX
20110 ) |
20111 sed "s/^/$as_me: WARNING: /" >&2
20112 ;;
20113esac
20114echo "$as_me:$LINENO: checking for sys/types.h" >&5
20115echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20116if test "${ac_cv_header_sys_types_h+set}" = set; then
20117 echo $ECHO_N "(cached) $ECHO_C" >&6
20118else
20119 ac_cv_header_sys_types_h=$ac_header_preproc
20120fi
20121echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20122echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20123
20124fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020125
20126
20127if test "${ac_cv_header_inttypes_h+set}" = set; then
20128 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20129echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20130if test "${ac_cv_header_inttypes_h+set}" = set; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20132fi
20133echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20134echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20135else
20136 # Is the header compilable?
20137echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20138echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20139cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020140/* confdefs.h. */
20141_ACEOF
20142cat confdefs.h >>conftest.$ac_ext
20143cat >>conftest.$ac_ext <<_ACEOF
20144/* end confdefs.h. */
20145$ac_includes_default
20146#include <inttypes.h>
20147_ACEOF
20148rm -f conftest.$ac_objext
20149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020150 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020151 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020152 grep -v '^ *+' conftest.er1 >conftest.err
20153 rm -f conftest.er1
20154 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020157 { ac_try='test -z "$ac_c_werror_flag"
20158 || test ! -s conftest.err'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20161 ac_status=$?
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; } &&
20164 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20167 ac_status=$?
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; }; then
20170 ac_header_compiler=yes
20171else
20172 echo "$as_me: failed program was:" >&5
20173sed 's/^/| /' conftest.$ac_ext >&5
20174
20175ac_header_compiler=no
20176fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020178echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20179echo "${ECHO_T}$ac_header_compiler" >&6
20180
20181# Is the header present?
20182echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20183echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20184cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020185/* confdefs.h. */
20186_ACEOF
20187cat confdefs.h >>conftest.$ac_ext
20188cat >>conftest.$ac_ext <<_ACEOF
20189/* end confdefs.h. */
20190#include <inttypes.h>
20191_ACEOF
20192if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20193 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20194 ac_status=$?
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } >/dev/null; then
20200 if test -s conftest.err; then
20201 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020203 else
20204 ac_cpp_err=
20205 fi
20206else
20207 ac_cpp_err=yes
20208fi
20209if test -z "$ac_cpp_err"; then
20210 ac_header_preproc=yes
20211else
20212 echo "$as_me: failed program was:" >&5
20213sed 's/^/| /' conftest.$ac_ext >&5
20214
20215 ac_header_preproc=no
20216fi
20217rm -f conftest.err conftest.$ac_ext
20218echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20219echo "${ECHO_T}$ac_header_preproc" >&6
20220
20221# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20223 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020224 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20225echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020226 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20227echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20228 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020229 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020230 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020231 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20232echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020233 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20234echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20235 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20236echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20237 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20238echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020239 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20240echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020241 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20242echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020243 (
20244 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020245## ----------------------------------- ##
20246## Report this to llvmbugs@cs.uiuc.edu ##
20247## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020248_ASBOX
20249 ) |
20250 sed "s/^/$as_me: WARNING: /" >&2
20251 ;;
20252esac
20253echo "$as_me:$LINENO: checking for inttypes.h" >&5
20254echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20255if test "${ac_cv_header_inttypes_h+set}" = set; then
20256 echo $ECHO_N "(cached) $ECHO_C" >&6
20257else
20258 ac_cv_header_inttypes_h=$ac_header_preproc
20259fi
20260echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20261echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20262
20263fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020264
20265
John Criswell7ed43ad2004-07-19 16:12:29 +000020266if test "${ac_cv_header_stdint_h+set}" = set; then
20267 echo "$as_me:$LINENO: checking for stdint.h" >&5
20268echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20269if test "${ac_cv_header_stdint_h+set}" = set; then
20270 echo $ECHO_N "(cached) $ECHO_C" >&6
20271fi
20272echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20273echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20274else
20275 # Is the header compilable?
20276echo "$as_me:$LINENO: checking stdint.h usability" >&5
20277echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20278cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020279/* confdefs.h. */
20280_ACEOF
20281cat confdefs.h >>conftest.$ac_ext
20282cat >>conftest.$ac_ext <<_ACEOF
20283/* end confdefs.h. */
20284$ac_includes_default
20285#include <stdint.h>
20286_ACEOF
20287rm -f conftest.$ac_objext
20288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020289 (eval $ac_compile) 2>conftest.er1
John Criswell7ed43ad2004-07-19 16:12:29 +000020290 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020291 grep -v '^ *+' conftest.er1 >conftest.err
20292 rm -f conftest.er1
20293 cat conftest.err >&5
John Criswell7ed43ad2004-07-19 16:12:29 +000020294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20295 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020296 { ac_try='test -z "$ac_c_werror_flag"
20297 || test ! -s conftest.err'
20298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20299 (eval $ac_try) 2>&5
20300 ac_status=$?
20301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302 (exit $ac_status); }; } &&
20303 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000020304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20305 (eval $ac_try) 2>&5
20306 ac_status=$?
20307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20308 (exit $ac_status); }; }; then
20309 ac_header_compiler=yes
20310else
20311 echo "$as_me: failed program was:" >&5
20312sed 's/^/| /' conftest.$ac_ext >&5
20313
20314ac_header_compiler=no
20315fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020316rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000020317echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20318echo "${ECHO_T}$ac_header_compiler" >&6
20319
20320# Is the header present?
20321echo "$as_me:$LINENO: checking stdint.h presence" >&5
20322echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20323cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020324/* confdefs.h. */
20325_ACEOF
20326cat confdefs.h >>conftest.$ac_ext
20327cat >>conftest.$ac_ext <<_ACEOF
20328/* end confdefs.h. */
20329#include <stdint.h>
20330_ACEOF
20331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20332 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20333 ac_status=$?
20334 grep -v '^ *+' conftest.er1 >conftest.err
20335 rm -f conftest.er1
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } >/dev/null; then
20339 if test -s conftest.err; then
20340 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020341 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7ed43ad2004-07-19 16:12:29 +000020342 else
20343 ac_cpp_err=
20344 fi
20345else
20346 ac_cpp_err=yes
20347fi
20348if test -z "$ac_cpp_err"; then
20349 ac_header_preproc=yes
20350else
20351 echo "$as_me: failed program was:" >&5
20352sed 's/^/| /' conftest.$ac_ext >&5
20353
20354 ac_header_preproc=no
20355fi
20356rm -f conftest.err conftest.$ac_ext
20357echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20358echo "${ECHO_T}$ac_header_preproc" >&6
20359
20360# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020361case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20362 yes:no: )
John Criswell7ed43ad2004-07-19 16:12:29 +000020363 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20364echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020365 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20366echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20367 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020368 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020369 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020370 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20371echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020372 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20373echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20374 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20375echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20376 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20377echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020378 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20379echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020380 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20381echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020382 (
20383 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020384## ----------------------------------- ##
20385## Report this to llvmbugs@cs.uiuc.edu ##
20386## ----------------------------------- ##
John Criswell7ed43ad2004-07-19 16:12:29 +000020387_ASBOX
20388 ) |
20389 sed "s/^/$as_me: WARNING: /" >&2
20390 ;;
20391esac
20392echo "$as_me:$LINENO: checking for stdint.h" >&5
20393echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20394if test "${ac_cv_header_stdint_h+set}" = set; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20396else
20397 ac_cv_header_stdint_h=$ac_header_preproc
20398fi
20399echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20400echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20401
20402fi
John Criswell7ed43ad2004-07-19 16:12:29 +000020403
20404
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020405
John Criswell7a73b802003-06-30 21:59:07 +000020406echo "$as_me:$LINENO: checking for pid_t" >&5
20407echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20408if test "${ac_cv_type_pid_t+set}" = set; then
20409 echo $ECHO_N "(cached) $ECHO_C" >&6
20410else
20411 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020412/* confdefs.h. */
20413_ACEOF
20414cat confdefs.h >>conftest.$ac_ext
20415cat >>conftest.$ac_ext <<_ACEOF
20416/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020417$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020418int
20419main ()
20420{
20421if ((pid_t *) 0)
20422 return 0;
20423if (sizeof (pid_t))
20424 return 0;
20425 ;
20426 return 0;
20427}
20428_ACEOF
20429rm -f conftest.$ac_objext
20430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020431 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020433 grep -v '^ *+' conftest.er1 >conftest.err
20434 rm -f conftest.er1
20435 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20437 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020438 { ac_try='test -z "$ac_c_werror_flag"
20439 || test ! -s conftest.err'
20440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20441 (eval $ac_try) 2>&5
20442 ac_status=$?
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); }; } &&
20445 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; }; then
20451 ac_cv_type_pid_t=yes
20452else
20453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020454sed 's/^/| /' conftest.$ac_ext >&5
20455
John Criswell7a73b802003-06-30 21:59:07 +000020456ac_cv_type_pid_t=no
20457fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020458rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020459fi
20460echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20461echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20462if test $ac_cv_type_pid_t = yes; then
20463 :
20464else
20465
20466cat >>confdefs.h <<_ACEOF
20467#define pid_t int
20468_ACEOF
20469
20470fi
20471
20472echo "$as_me:$LINENO: checking for size_t" >&5
20473echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20474if test "${ac_cv_type_size_t+set}" = set; then
20475 echo $ECHO_N "(cached) $ECHO_C" >&6
20476else
20477 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020478/* confdefs.h. */
20479_ACEOF
20480cat confdefs.h >>conftest.$ac_ext
20481cat >>conftest.$ac_ext <<_ACEOF
20482/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020483$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020484int
20485main ()
20486{
20487if ((size_t *) 0)
20488 return 0;
20489if (sizeof (size_t))
20490 return 0;
20491 ;
20492 return 0;
20493}
20494_ACEOF
20495rm -f conftest.$ac_objext
20496if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020497 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020498 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020499 grep -v '^ *+' conftest.er1 >conftest.err
20500 rm -f conftest.er1
20501 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020504 { ac_try='test -z "$ac_c_werror_flag"
20505 || test ! -s conftest.err'
20506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20507 (eval $ac_try) 2>&5
20508 ac_status=$?
20509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20510 (exit $ac_status); }; } &&
20511 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20514 ac_status=$?
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20517 ac_cv_type_size_t=yes
20518else
20519 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020520sed 's/^/| /' conftest.$ac_ext >&5
20521
John Criswell7a73b802003-06-30 21:59:07 +000020522ac_cv_type_size_t=no
20523fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020525fi
20526echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20527echo "${ECHO_T}$ac_cv_type_size_t" >&6
20528if test $ac_cv_type_size_t = yes; then
20529 :
20530else
20531
20532cat >>confdefs.h <<_ACEOF
20533#define size_t unsigned
20534_ACEOF
20535
20536fi
20537
20538echo "$as_me:$LINENO: checking for int64_t" >&5
20539echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20540if test "${ac_cv_type_int64_t+set}" = set; then
20541 echo $ECHO_N "(cached) $ECHO_C" >&6
20542else
20543 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020544/* confdefs.h. */
20545_ACEOF
20546cat confdefs.h >>conftest.$ac_ext
20547cat >>conftest.$ac_ext <<_ACEOF
20548/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020549$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020550int
20551main ()
20552{
20553if ((int64_t *) 0)
20554 return 0;
20555if (sizeof (int64_t))
20556 return 0;
20557 ;
20558 return 0;
20559}
20560_ACEOF
20561rm -f conftest.$ac_objext
20562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020563 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020564 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020565 grep -v '^ *+' conftest.er1 >conftest.err
20566 rm -f conftest.er1
20567 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020570 { ac_try='test -z "$ac_c_werror_flag"
20571 || test ! -s conftest.err'
20572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20573 (eval $ac_try) 2>&5
20574 ac_status=$?
20575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; } &&
20577 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20579 (eval $ac_try) 2>&5
20580 ac_status=$?
20581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20582 (exit $ac_status); }; }; then
20583 ac_cv_type_int64_t=yes
20584else
20585 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020586sed 's/^/| /' conftest.$ac_ext >&5
20587
John Criswell7a73b802003-06-30 21:59:07 +000020588ac_cv_type_int64_t=no
20589fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020590rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020591fi
20592echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20593echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20594if test $ac_cv_type_int64_t = yes; then
20595
20596cat >>confdefs.h <<_ACEOF
20597#define HAVE_INT64_T 1
20598_ACEOF
20599
20600
20601else
20602 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20603echo "$as_me: error: Type int64_t required but not found" >&2;}
20604 { (exit 1); exit 1; }; }
20605fi
20606
20607echo "$as_me:$LINENO: checking for uint64_t" >&5
20608echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20609if test "${ac_cv_type_uint64_t+set}" = set; then
20610 echo $ECHO_N "(cached) $ECHO_C" >&6
20611else
20612 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020613/* confdefs.h. */
20614_ACEOF
20615cat confdefs.h >>conftest.$ac_ext
20616cat >>conftest.$ac_ext <<_ACEOF
20617/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020618$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020619int
20620main ()
20621{
20622if ((uint64_t *) 0)
20623 return 0;
20624if (sizeof (uint64_t))
20625 return 0;
20626 ;
20627 return 0;
20628}
20629_ACEOF
20630rm -f conftest.$ac_objext
20631if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020632 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020633 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020634 grep -v '^ *+' conftest.er1 >conftest.err
20635 rm -f conftest.er1
20636 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20638 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020639 { ac_try='test -z "$ac_c_werror_flag"
20640 || test ! -s conftest.err'
20641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20642 (eval $ac_try) 2>&5
20643 ac_status=$?
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); }; } &&
20646 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20649 ac_status=$?
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; }; then
20652 ac_cv_type_uint64_t=yes
20653else
20654 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020655sed 's/^/| /' conftest.$ac_ext >&5
20656
John Criswell7a73b802003-06-30 21:59:07 +000020657ac_cv_type_uint64_t=no
20658fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020659rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020660fi
20661echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20662echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20663if test $ac_cv_type_uint64_t = yes; then
20664
20665cat >>confdefs.h <<_ACEOF
20666#define HAVE_UINT64_T 1
20667_ACEOF
20668
20669
20670else
Misha Brukmanceca9042004-09-02 23:02:30 +000020671 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000020672echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20673if test "${ac_cv_type_u_int64_t+set}" = set; then
20674 echo $ECHO_N "(cached) $ECHO_C" >&6
20675else
20676 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000020677/* confdefs.h. */
20678_ACEOF
20679cat confdefs.h >>conftest.$ac_ext
20680cat >>conftest.$ac_ext <<_ACEOF
20681/* end confdefs.h. */
20682$ac_includes_default
20683int
20684main ()
20685{
20686if ((u_int64_t *) 0)
20687 return 0;
20688if (sizeof (u_int64_t))
20689 return 0;
20690 ;
20691 return 0;
20692}
20693_ACEOF
20694rm -f conftest.$ac_objext
20695if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020696 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000020697 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000020701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020703 { ac_try='test -z "$ac_c_werror_flag"
20704 || test ! -s conftest.err'
20705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20706 (eval $ac_try) 2>&5
20707 ac_status=$?
20708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20709 (exit $ac_status); }; } &&
20710 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000020711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20712 (eval $ac_try) 2>&5
20713 ac_status=$?
20714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715 (exit $ac_status); }; }; then
20716 ac_cv_type_u_int64_t=yes
20717else
20718 echo "$as_me: failed program was:" >&5
20719sed 's/^/| /' conftest.$ac_ext >&5
20720
20721ac_cv_type_u_int64_t=no
20722fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000020724fi
20725echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20726echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20727if test $ac_cv_type_u_int64_t = yes; then
20728
20729cat >>confdefs.h <<_ACEOF
20730#define HAVE_U_INT64_T 1
20731_ACEOF
20732
20733
Misha Brukmanceca9042004-09-02 23:02:30 +000020734else
20735 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20736echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20737 { (exit 1); exit 1; }; }
20738fi
20739
John Criswell679ff312004-09-02 18:44:44 +000020740fi
20741
John Criswell7a73b802003-06-30 21:59:07 +000020742echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20743echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20744if test "${ac_cv_header_time+set}" = set; then
20745 echo $ECHO_N "(cached) $ECHO_C" >&6
20746else
20747 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020748/* confdefs.h. */
20749_ACEOF
20750cat confdefs.h >>conftest.$ac_ext
20751cat >>conftest.$ac_ext <<_ACEOF
20752/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020753#include <sys/types.h>
20754#include <sys/time.h>
20755#include <time.h>
20756
John Criswell7a73b802003-06-30 21:59:07 +000020757int
20758main ()
20759{
20760if ((struct tm *) 0)
20761return 0;
20762 ;
20763 return 0;
20764}
20765_ACEOF
20766rm -f conftest.$ac_objext
20767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020768 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020769 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020770 grep -v '^ *+' conftest.er1 >conftest.err
20771 rm -f conftest.er1
20772 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20774 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020775 { ac_try='test -z "$ac_c_werror_flag"
20776 || test ! -s conftest.err'
20777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20778 (eval $ac_try) 2>&5
20779 ac_status=$?
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; } &&
20782 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20785 ac_status=$?
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; }; then
20788 ac_cv_header_time=yes
20789else
20790 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020791sed 's/^/| /' conftest.$ac_ext >&5
20792
John Criswell7a73b802003-06-30 21:59:07 +000020793ac_cv_header_time=no
20794fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020795rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020796fi
20797echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20798echo "${ECHO_T}$ac_cv_header_time" >&6
20799if test $ac_cv_header_time = yes; then
20800
20801cat >>confdefs.h <<\_ACEOF
20802#define TIME_WITH_SYS_TIME 1
20803_ACEOF
20804
20805fi
20806
20807echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20808echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20809if test "${ac_cv_struct_tm+set}" = set; then
20810 echo $ECHO_N "(cached) $ECHO_C" >&6
20811else
20812 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020813/* confdefs.h. */
20814_ACEOF
20815cat confdefs.h >>conftest.$ac_ext
20816cat >>conftest.$ac_ext <<_ACEOF
20817/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020818#include <sys/types.h>
20819#include <time.h>
20820
John Criswell7a73b802003-06-30 21:59:07 +000020821int
20822main ()
20823{
20824struct tm *tp; tp->tm_sec;
20825 ;
20826 return 0;
20827}
20828_ACEOF
20829rm -f conftest.$ac_objext
20830if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020831 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020832 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020833 grep -v '^ *+' conftest.er1 >conftest.err
20834 rm -f conftest.er1
20835 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20837 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020838 { ac_try='test -z "$ac_c_werror_flag"
20839 || test ! -s conftest.err'
20840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20841 (eval $ac_try) 2>&5
20842 ac_status=$?
20843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20844 (exit $ac_status); }; } &&
20845 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20847 (eval $ac_try) 2>&5
20848 ac_status=$?
20849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); }; }; then
20851 ac_cv_struct_tm=time.h
20852else
20853 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020854sed 's/^/| /' conftest.$ac_ext >&5
20855
John Criswell7a73b802003-06-30 21:59:07 +000020856ac_cv_struct_tm=sys/time.h
20857fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020859fi
20860echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20861echo "${ECHO_T}$ac_cv_struct_tm" >&6
20862if test $ac_cv_struct_tm = sys/time.h; then
20863
20864cat >>confdefs.h <<\_ACEOF
20865#define TM_IN_SYS_TIME 1
20866_ACEOF
20867
20868fi
20869
20870
John Criswella0137d32003-10-13 16:22:01 +000020871
Reid Spencer2706f8c2004-09-19 23:53:36 +000020872 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020873echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
Reid Spencer2706f8c2004-09-19 23:53:36 +000020874 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000020875ac_cpp='$CPP $CPPFLAGS'
20876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20878ac_compiler_gnu=$ac_cv_c_compiler_gnu
20879
Reid Spencer2706f8c2004-09-19 23:53:36 +000020880 if test "$cross_compiling" = yes; then
20881 ac_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000020882else
20883 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000020884
20885 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000020886_ACEOF
20887cat confdefs.h >>conftest.$ac_ext
20888cat >>conftest.$ac_ext <<_ACEOF
20889/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000020890
John Criswella0137d32003-10-13 16:22:01 +000020891#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000020892#include <stdlib.h>
20893
John Criswella0137d32003-10-13 16:22:01 +000020894int
20895main ()
20896{
20897
Reid Spencer2706f8c2004-09-19 23:53:36 +000020898volatile double A, B;
20899char Buffer[100];
20900A = 1;
20901A /= 10.0;
20902sprintf(Buffer, "%a", A);
20903B = atof(Buffer);
20904if (A != B)
20905 return (1);
20906if (A != 0x1.999999999999ap-4)
20907 return (1);
20908return (0);
John Criswella0137d32003-10-13 16:22:01 +000020909 ;
20910 return 0;
20911}
20912_ACEOF
20913rm -f conftest$ac_exeext
20914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20915 (eval $ac_link) 2>&5
20916 ac_status=$?
20917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20918 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920 (eval $ac_try) 2>&5
20921 ac_status=$?
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); }; }; then
20924 ac_c_printf_a=yes
20925else
20926 echo "$as_me: program exited with status $ac_status" >&5
20927echo "$as_me: failed program was:" >&5
20928sed 's/^/| /' conftest.$ac_ext >&5
20929
20930( exit $ac_status )
20931ac_c_printf_a=no
20932fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020933rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000020934fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020935 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000020936ac_cpp='$CPP $CPPFLAGS'
20937ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20938ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20939ac_compiler_gnu=$ac_cv_c_compiler_gnu
20940
Reid Spencer2706f8c2004-09-19 23:53:36 +000020941 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020942echo "${ECHO_T}$ac_c_printf_a" >&6
Reid Spencer2706f8c2004-09-19 23:53:36 +000020943 if test "$ac_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000020944
20945cat >>confdefs.h <<\_ACEOF
20946#define HAVE_PRINTF_A 1
20947_ACEOF
20948
Reid Spencer2706f8c2004-09-19 23:53:36 +000020949 fi
John Criswella0137d32003-10-13 16:22:01 +000020950
20951
John Criswell0021c312004-02-13 21:57:29 +000020952echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20953echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20954if test "${ac_cv_c_bigendian+set}" = set; then
20955 echo $ECHO_N "(cached) $ECHO_C" >&6
20956else
20957 # See if sys/param.h defines the BYTE_ORDER macro.
20958cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020959/* confdefs.h. */
20960_ACEOF
20961cat confdefs.h >>conftest.$ac_ext
20962cat >>conftest.$ac_ext <<_ACEOF
20963/* end confdefs.h. */
20964#include <sys/types.h>
20965#include <sys/param.h>
20966
20967int
20968main ()
20969{
20970#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20971 bogus endian macros
20972#endif
20973
20974 ;
20975 return 0;
20976}
20977_ACEOF
20978rm -f conftest.$ac_objext
20979if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020980 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020981 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020982 grep -v '^ *+' conftest.er1 >conftest.err
20983 rm -f conftest.er1
20984 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020987 { ac_try='test -z "$ac_c_werror_flag"
20988 || test ! -s conftest.err'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; } &&
20994 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20996 (eval $ac_try) 2>&5
20997 ac_status=$?
20998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20999 (exit $ac_status); }; }; then
21000 # It does; now see whether it defined to BIG_ENDIAN or not.
21001cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021002/* confdefs.h. */
21003_ACEOF
21004cat confdefs.h >>conftest.$ac_ext
21005cat >>conftest.$ac_ext <<_ACEOF
21006/* end confdefs.h. */
21007#include <sys/types.h>
21008#include <sys/param.h>
21009
21010int
21011main ()
21012{
21013#if BYTE_ORDER != BIG_ENDIAN
21014 not big endian
21015#endif
21016
21017 ;
21018 return 0;
21019}
21020_ACEOF
21021rm -f conftest.$ac_objext
21022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021023 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021024 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021025 grep -v '^ *+' conftest.er1 >conftest.err
21026 rm -f conftest.er1
21027 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021030 { ac_try='test -z "$ac_c_werror_flag"
21031 || test ! -s conftest.err'
21032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21033 (eval $ac_try) 2>&5
21034 ac_status=$?
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); }; } &&
21037 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21039 (eval $ac_try) 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); }; }; then
21043 ac_cv_c_bigendian=yes
21044else
21045 echo "$as_me: failed program was:" >&5
21046sed 's/^/| /' conftest.$ac_ext >&5
21047
21048ac_cv_c_bigendian=no
21049fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021050rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021051else
21052 echo "$as_me: failed program was:" >&5
21053sed 's/^/| /' conftest.$ac_ext >&5
21054
21055# It does not; compile a test program.
21056if test "$cross_compiling" = yes; then
21057 # try to guess the endianness by grepping values into an object file
21058 ac_cv_c_bigendian=unknown
21059 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021060/* confdefs.h. */
21061_ACEOF
21062cat confdefs.h >>conftest.$ac_ext
21063cat >>conftest.$ac_ext <<_ACEOF
21064/* end confdefs.h. */
21065short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21066short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21067void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21068short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21069short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21070void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21071int
21072main ()
21073{
21074 _ascii (); _ebcdic ();
21075 ;
21076 return 0;
21077}
21078_ACEOF
21079rm -f conftest.$ac_objext
21080if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021081 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021082 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021083 grep -v '^ *+' conftest.er1 >conftest.err
21084 rm -f conftest.er1
21085 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021088 { ac_try='test -z "$ac_c_werror_flag"
21089 || test ! -s conftest.err'
21090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21091 (eval $ac_try) 2>&5
21092 ac_status=$?
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); }; } &&
21095 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21097 (eval $ac_try) 2>&5
21098 ac_status=$?
21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21100 (exit $ac_status); }; }; then
21101 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21102 ac_cv_c_bigendian=yes
21103fi
21104if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21105 if test "$ac_cv_c_bigendian" = unknown; then
21106 ac_cv_c_bigendian=no
21107 else
21108 # finding both strings is unlikely to happen, but who knows?
21109 ac_cv_c_bigendian=unknown
21110 fi
21111fi
21112else
21113 echo "$as_me: failed program was:" >&5
21114sed 's/^/| /' conftest.$ac_ext >&5
21115
21116fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021117rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021118else
21119 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021120/* confdefs.h. */
21121_ACEOF
21122cat confdefs.h >>conftest.$ac_ext
21123cat >>conftest.$ac_ext <<_ACEOF
21124/* end confdefs.h. */
21125int
21126main ()
21127{
21128 /* Are we little or big endian? From Harbison&Steele. */
21129 union
21130 {
21131 long l;
21132 char c[sizeof (long)];
21133 } u;
21134 u.l = 1;
21135 exit (u.c[sizeof (long) - 1] == 1);
21136}
21137_ACEOF
21138rm -f conftest$ac_exeext
21139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21140 (eval $ac_link) 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21145 (eval $ac_try) 2>&5
21146 ac_status=$?
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); }; }; then
21149 ac_cv_c_bigendian=no
21150else
21151 echo "$as_me: program exited with status $ac_status" >&5
21152echo "$as_me: failed program was:" >&5
21153sed 's/^/| /' conftest.$ac_ext >&5
21154
21155( exit $ac_status )
21156ac_cv_c_bigendian=yes
21157fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021158rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021159fi
21160fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021161rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021162fi
21163echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21164echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21165case $ac_cv_c_bigendian in
21166 yes)
21167 ENDIAN=big
21168 ;;
21169 no)
21170 ENDIAN=little
21171 ;;
21172 *)
21173 { { echo "$as_me:$LINENO: error: unknown endianness
21174presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21175echo "$as_me: error: unknown endianness
21176presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21177 { (exit 1); exit 1; }; } ;;
21178esac
21179
21180
John Criswell7a73b802003-06-30 21:59:07 +000021181echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21182echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21183if test "${ac_cv_cxx_namespaces+set}" = set; then
21184 echo $ECHO_N "(cached) $ECHO_C" >&6
21185else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021186 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000021187ac_cpp='$CXXCPP $CPPFLAGS'
21188ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21189ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21190ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21191
21192 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021193/* confdefs.h. */
21194_ACEOF
21195cat confdefs.h >>conftest.$ac_ext
21196cat >>conftest.$ac_ext <<_ACEOF
21197/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021198namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000021199int
21200main ()
21201{
21202using namespace Outer::Inner; return i;
21203 ;
21204 return 0;
21205}
21206_ACEOF
21207rm -f conftest.$ac_objext
21208if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021209 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021210 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021211 grep -v '^ *+' conftest.er1 >conftest.err
21212 rm -f conftest.er1
21213 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21215 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021216 { ac_try='test -z "$ac_cxx_werror_flag"
21217 || test ! -s conftest.err'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21220 ac_status=$?
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; } &&
21223 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21226 ac_status=$?
21227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; }; then
21229 ac_cv_cxx_namespaces=yes
21230else
21231 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021232sed 's/^/| /' conftest.$ac_ext >&5
21233
John Criswell7a73b802003-06-30 21:59:07 +000021234ac_cv_cxx_namespaces=no
21235fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021236rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021237 ac_ext=c
21238ac_cpp='$CPP $CPPFLAGS'
21239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21241ac_compiler_gnu=$ac_cv_c_compiler_gnu
21242
21243
21244fi
21245echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21246echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21247if test "$ac_cv_cxx_namespaces" = yes; then
21248
21249cat >>confdefs.h <<\_ACEOF
21250#define HAVE_NAMESPACES
21251_ACEOF
21252
21253fi
21254
Brian Gaeke90583492003-11-10 03:06:28 +000021255echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21256echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21257if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021258 echo $ECHO_N "(cached) $ECHO_C" >&6
21259else
21260
John Criswell7a73b802003-06-30 21:59:07 +000021261 ac_ext=cc
21262ac_cpp='$CXXCPP $CPPFLAGS'
21263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21266
21267 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021268/* confdefs.h. */
21269_ACEOF
21270cat confdefs.h >>conftest.$ac_ext
21271cat >>conftest.$ac_ext <<_ACEOF
21272/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021273#include <ext/hash_map>
21274#ifdef HAVE_NAMESPACES
21275using namespace std;
21276#endif
John Criswell7a73b802003-06-30 21:59:07 +000021277int
21278main ()
21279{
Brian Gaeke90583492003-11-10 03:06:28 +000021280hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021281 ;
21282 return 0;
21283}
21284_ACEOF
21285rm -f conftest.$ac_objext
21286if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021287 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021288 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021289 grep -v '^ *+' conftest.er1 >conftest.err
21290 rm -f conftest.er1
21291 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21293 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021294 { ac_try='test -z "$ac_cxx_werror_flag"
21295 || test ! -s conftest.err'
21296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21297 (eval $ac_try) 2>&5
21298 ac_status=$?
21299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21300 (exit $ac_status); }; } &&
21301 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21304 ac_status=$?
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021307 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000021308else
21309 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021310sed 's/^/| /' conftest.$ac_ext >&5
21311
Brian Gaeke90583492003-11-10 03:06:28 +000021312ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021313fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021314rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021315 ac_ext=c
21316ac_cpp='$CPP $CPPFLAGS'
21317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21319ac_compiler_gnu=$ac_cv_c_compiler_gnu
21320
John Criswell7a73b802003-06-30 21:59:07 +000021321fi
Brian Gaeke90583492003-11-10 03:06:28 +000021322echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21323echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021324 HAVE_STD_EXT_HASH_MAP=0
21325 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21326 then
21327 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021328 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021329
Brian Gaeke90583492003-11-10 03:06:28 +000021330 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21331echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21332if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21333 echo $ECHO_N "(cached) $ECHO_C" >&6
21334else
21335
Brian Gaeke90583492003-11-10 03:06:28 +000021336 ac_ext=cc
21337ac_cpp='$CXXCPP $CPPFLAGS'
21338ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21339ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21340ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21341
21342 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021343/* confdefs.h. */
21344_ACEOF
21345cat confdefs.h >>conftest.$ac_ext
21346cat >>conftest.$ac_ext <<_ACEOF
21347/* end confdefs.h. */
21348#include <ext/hash_map>
21349#ifdef HAVE_NAMESPACES
21350using namespace __gnu_cxx;
21351#endif
21352int
21353main ()
21354{
21355hash_map<int,int> t;
21356 ;
21357 return 0;
21358}
21359_ACEOF
21360rm -f conftest.$ac_objext
21361if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021362 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021363 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021364 grep -v '^ *+' conftest.er1 >conftest.err
21365 rm -f conftest.er1
21366 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021369 { ac_try='test -z "$ac_cxx_werror_flag"
21370 || test ! -s conftest.err'
21371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21372 (eval $ac_try) 2>&5
21373 ac_status=$?
21374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21375 (exit $ac_status); }; } &&
21376 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21379 ac_status=$?
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; }; then
21382 ac_cv_cxx_have_gnu_ext_hash_map=yes
21383else
21384 echo "$as_me: failed program was:" >&5
21385sed 's/^/| /' conftest.$ac_ext >&5
21386
21387ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021388fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021390 ac_ext=c
21391ac_cpp='$CPP $CPPFLAGS'
21392ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21393ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21394ac_compiler_gnu=$ac_cv_c_compiler_gnu
21395
21396fi
21397echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21398echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021399 HAVE_GNU_EXT_HASH_MAP=0
21400 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21401 then
21402 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021403 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021404
Brian Gaeke90583492003-11-10 03:06:28 +000021405 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21406echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21407if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21409else
John Criswell7a73b802003-06-30 21:59:07 +000021410
Brian Gaeke90583492003-11-10 03:06:28 +000021411 ac_ext=cc
21412ac_cpp='$CXXCPP $CPPFLAGS'
21413ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21414ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21415ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21416
21417 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021418/* confdefs.h. */
21419_ACEOF
21420cat confdefs.h >>conftest.$ac_ext
21421cat >>conftest.$ac_ext <<_ACEOF
21422/* end confdefs.h. */
21423#include <hash_map>
21424int
21425main ()
21426{
21427hash_map<int,int> t;
21428 ;
21429 return 0;
21430}
21431_ACEOF
21432rm -f conftest.$ac_objext
21433if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021434 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021435 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021436 grep -v '^ *+' conftest.er1 >conftest.err
21437 rm -f conftest.er1
21438 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21440 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021441 { ac_try='test -z "$ac_cxx_werror_flag"
21442 || test ! -s conftest.err'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21445 ac_status=$?
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; } &&
21448 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21451 ac_status=$?
21452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; }; then
21454 ac_cv_cxx_have_global_hash_map=yes
21455else
21456 echo "$as_me: failed program was:" >&5
21457sed 's/^/| /' conftest.$ac_ext >&5
21458
21459ac_cv_cxx_have_global_hash_map=no
21460fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021462 ac_ext=c
21463ac_cpp='$CPP $CPPFLAGS'
21464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21466ac_compiler_gnu=$ac_cv_c_compiler_gnu
21467
21468fi
21469echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21470echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021471 HAVE_GLOBAL_HASH_MAP=0
21472 if test "$ac_cv_cxx_have_global_hash_map" = yes
21473 then
21474 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021475 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021476
Brian Gaeke90583492003-11-10 03:06:28 +000021477echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21478echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21479if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021480 echo $ECHO_N "(cached) $ECHO_C" >&6
21481else
21482
John Criswell7a73b802003-06-30 21:59:07 +000021483 ac_ext=cc
21484ac_cpp='$CXXCPP $CPPFLAGS'
21485ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21486ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21487ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21488
21489 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021490/* confdefs.h. */
21491_ACEOF
21492cat confdefs.h >>conftest.$ac_ext
21493cat >>conftest.$ac_ext <<_ACEOF
21494/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021495#include <ext/hash_set>
21496#ifdef HAVE_NAMESPACES
21497using namespace std;
21498#endif
John Criswell7a73b802003-06-30 21:59:07 +000021499int
21500main ()
21501{
Brian Gaeke90583492003-11-10 03:06:28 +000021502hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021503 ;
21504 return 0;
21505}
21506_ACEOF
21507rm -f conftest.$ac_objext
21508if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021509 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021510 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021511 grep -v '^ *+' conftest.er1 >conftest.err
21512 rm -f conftest.er1
21513 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21515 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021516 { ac_try='test -z "$ac_cxx_werror_flag"
21517 || test ! -s conftest.err'
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21520 ac_status=$?
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; } &&
21523 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525 (eval $ac_try) 2>&5
21526 ac_status=$?
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021529 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021530else
21531 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021532sed 's/^/| /' conftest.$ac_ext >&5
21533
Brian Gaeke90583492003-11-10 03:06:28 +000021534ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021535fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021537 ac_ext=c
21538ac_cpp='$CPP $CPPFLAGS'
21539ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21540ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21541ac_compiler_gnu=$ac_cv_c_compiler_gnu
21542
21543fi
21544echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21545echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021546 HAVE_STD_EXT_HASH_SET=0
21547 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21548 then
21549 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021550 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021551
Brian Gaeke90583492003-11-10 03:06:28 +000021552 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21553echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21554if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21555 echo $ECHO_N "(cached) $ECHO_C" >&6
21556else
21557
Brian Gaeke90583492003-11-10 03:06:28 +000021558 ac_ext=cc
21559ac_cpp='$CXXCPP $CPPFLAGS'
21560ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21561ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21562ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21563
John Criswell7a73b802003-06-30 21:59:07 +000021564 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021565/* confdefs.h. */
21566_ACEOF
21567cat confdefs.h >>conftest.$ac_ext
21568cat >>conftest.$ac_ext <<_ACEOF
21569/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021570#include <ext/hash_set>
21571#ifdef HAVE_NAMESPACES
21572using namespace __gnu_cxx;
21573#endif
John Criswell7a73b802003-06-30 21:59:07 +000021574int
21575main ()
21576{
Brian Gaeke90583492003-11-10 03:06:28 +000021577hash_set<int> t;
21578 ;
21579 return 0;
21580}
21581_ACEOF
21582rm -f conftest.$ac_objext
21583if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021584 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021585 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021586 grep -v '^ *+' conftest.er1 >conftest.err
21587 rm -f conftest.er1
21588 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021591 { ac_try='test -z "$ac_cxx_werror_flag"
21592 || test ! -s conftest.err'
21593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21594 (eval $ac_try) 2>&5
21595 ac_status=$?
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); }; } &&
21598 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21600 (eval $ac_try) 2>&5
21601 ac_status=$?
21602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21603 (exit $ac_status); }; }; then
21604 ac_cv_cxx_have_gnu_ext_hash_set=yes
21605else
21606 echo "$as_me: failed program was:" >&5
21607sed 's/^/| /' conftest.$ac_ext >&5
21608
21609ac_cv_cxx_have_gnu_ext_hash_set=no
21610fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021612 ac_ext=c
21613ac_cpp='$CPP $CPPFLAGS'
21614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21616ac_compiler_gnu=$ac_cv_c_compiler_gnu
21617
21618fi
21619echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21620echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021621 HAVE_GNU_EXT_HASH_SET=0
21622 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21623 then
21624 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021625 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021626
Brian Gaeke90583492003-11-10 03:06:28 +000021627 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21628echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21629if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21630 echo $ECHO_N "(cached) $ECHO_C" >&6
21631else
21632
Brian Gaeke90583492003-11-10 03:06:28 +000021633 ac_ext=cc
21634ac_cpp='$CXXCPP $CPPFLAGS'
21635ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21636ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21637ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21638
21639 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021640/* confdefs.h. */
21641_ACEOF
21642cat confdefs.h >>conftest.$ac_ext
21643cat >>conftest.$ac_ext <<_ACEOF
21644/* end confdefs.h. */
21645#include <hash_set>
21646int
21647main ()
21648{
John Criswell7a73b802003-06-30 21:59:07 +000021649hash_set<int> t; return 0;
21650 ;
21651 return 0;
21652}
21653_ACEOF
21654rm -f conftest.$ac_objext
21655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021656 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021657 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021658 grep -v '^ *+' conftest.er1 >conftest.err
21659 rm -f conftest.er1
21660 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021663 { ac_try='test -z "$ac_cxx_werror_flag"
21664 || test ! -s conftest.err'
21665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21666 (eval $ac_try) 2>&5
21667 ac_status=$?
21668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21669 (exit $ac_status); }; } &&
21670 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21672 (eval $ac_try) 2>&5
21673 ac_status=$?
21674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021676 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021677else
21678 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021679sed 's/^/| /' conftest.$ac_ext >&5
21680
Brian Gaeke90583492003-11-10 03:06:28 +000021681ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021682fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021684 ac_ext=c
21685ac_cpp='$CPP $CPPFLAGS'
21686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21688ac_compiler_gnu=$ac_cv_c_compiler_gnu
21689
John Criswell7a73b802003-06-30 21:59:07 +000021690fi
Brian Gaeke90583492003-11-10 03:06:28 +000021691echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21692echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021693 HAVE_GLOBAL_HASH_SET=0
21694 if test "$ac_cv_cxx_have_global_hash_set" = yes
21695 then
21696 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021697 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021698
John Criswell7a73b802003-06-30 21:59:07 +000021699echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21700echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21701if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21702 echo $ECHO_N "(cached) $ECHO_C" >&6
21703else
21704
John Criswell7a73b802003-06-30 21:59:07 +000021705 ac_ext=cc
21706ac_cpp='$CXXCPP $CPPFLAGS'
21707ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21708ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21709ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21710
21711 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021712/* confdefs.h. */
21713_ACEOF
21714cat confdefs.h >>conftest.$ac_ext
21715cat >>conftest.$ac_ext <<_ACEOF
21716/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021717#include <iterator>
21718#ifdef HAVE_NAMESPACES
21719using namespace std;
21720#endif
John Criswell7a73b802003-06-30 21:59:07 +000021721int
21722main ()
21723{
21724iterator<int,int,int> t; return 0;
21725 ;
21726 return 0;
21727}
21728_ACEOF
21729rm -f conftest.$ac_objext
21730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021731 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021732 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021733 grep -v '^ *+' conftest.er1 >conftest.err
21734 rm -f conftest.er1
21735 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021738 { ac_try='test -z "$ac_cxx_werror_flag"
21739 || test ! -s conftest.err'
21740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21741 (eval $ac_try) 2>&5
21742 ac_status=$?
21743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); }; } &&
21745 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21747 (eval $ac_try) 2>&5
21748 ac_status=$?
21749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21750 (exit $ac_status); }; }; then
21751 ac_cv_cxx_have_std_iterator=yes
21752else
21753 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021754sed 's/^/| /' conftest.$ac_ext >&5
21755
John Criswell7a73b802003-06-30 21:59:07 +000021756ac_cv_cxx_have_std_iterator=no
21757fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021759 ac_ext=c
21760ac_cpp='$CPP $CPPFLAGS'
21761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21763ac_compiler_gnu=$ac_cv_c_compiler_gnu
21764
21765
21766fi
21767echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21768echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021769HAVE_STD_ITERATOR=0
21770if test "$ac_cv_cxx_have_std_iterator" = yes
21771then
21772 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021773fi
21774
21775echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21776echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21777if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21779else
21780
John Criswell7a73b802003-06-30 21:59:07 +000021781 ac_ext=cc
21782ac_cpp='$CXXCPP $CPPFLAGS'
21783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21786
21787 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021788/* confdefs.h. */
21789_ACEOF
21790cat confdefs.h >>conftest.$ac_ext
21791cat >>conftest.$ac_ext <<_ACEOF
21792/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021793#include <iterator>
21794#ifdef HAVE_NAMESPACES
21795using namespace std;
21796#endif
John Criswell7a73b802003-06-30 21:59:07 +000021797int
21798main ()
21799{
John Criswellc78022e2003-07-29 19:11:58 +000021800bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021801 ;
21802 return 0;
21803}
21804_ACEOF
21805rm -f conftest.$ac_objext
21806if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021807 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021808 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021809 grep -v '^ *+' conftest.er1 >conftest.err
21810 rm -f conftest.er1
21811 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21813 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021814 { ac_try='test -z "$ac_cxx_werror_flag"
21815 || test ! -s conftest.err'
21816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21817 (eval $ac_try) 2>&5
21818 ac_status=$?
21819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); }; } &&
21821 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; }; then
21827 ac_cv_cxx_have_bi_iterator=yes
21828else
21829 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021830sed 's/^/| /' conftest.$ac_ext >&5
21831
John Criswell7a73b802003-06-30 21:59:07 +000021832ac_cv_cxx_have_bi_iterator=no
21833fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021834rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021835 ac_ext=c
21836ac_cpp='$CPP $CPPFLAGS'
21837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21839ac_compiler_gnu=$ac_cv_c_compiler_gnu
21840
21841
21842fi
21843echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21844echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021845HAVE_BI_ITERATOR=0
21846if test "$ac_cv_cxx_have_bi_iterator" = yes
21847then
21848 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021849fi
21850
21851echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21852echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21853if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21854 echo $ECHO_N "(cached) $ECHO_C" >&6
21855else
21856
John Criswell7a73b802003-06-30 21:59:07 +000021857 ac_ext=cc
21858ac_cpp='$CXXCPP $CPPFLAGS'
21859ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21860ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21861ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21862
21863 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021864/* confdefs.h. */
21865_ACEOF
21866cat confdefs.h >>conftest.$ac_ext
21867cat >>conftest.$ac_ext <<_ACEOF
21868/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021869#include <iterator>
21870#ifdef HAVE_NAMESPACES
21871using namespace std;
21872#endif
John Criswell7a73b802003-06-30 21:59:07 +000021873int
21874main ()
21875{
John Criswellc78022e2003-07-29 19:11:58 +000021876forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021877 ;
21878 return 0;
21879}
21880_ACEOF
21881rm -f conftest.$ac_objext
21882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021883 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021884 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021885 grep -v '^ *+' conftest.er1 >conftest.err
21886 rm -f conftest.er1
21887 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021890 { ac_try='test -z "$ac_cxx_werror_flag"
21891 || test ! -s conftest.err'
21892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893 (eval $ac_try) 2>&5
21894 ac_status=$?
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; } &&
21897 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21900 ac_status=$?
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; }; then
21903 ac_cv_cxx_have_fwd_iterator=yes
21904else
21905 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021906sed 's/^/| /' conftest.$ac_ext >&5
21907
John Criswell7a73b802003-06-30 21:59:07 +000021908ac_cv_cxx_have_fwd_iterator=no
21909fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021911 ac_ext=c
21912ac_cpp='$CPP $CPPFLAGS'
21913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21915ac_compiler_gnu=$ac_cv_c_compiler_gnu
21916
21917
21918fi
21919echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21920echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021921HAVE_FWD_ITERATOR=0
21922if test "$ac_cv_cxx_have_fwd_iterator" = yes
21923then
21924 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021925fi
21926
21927
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021928
21929echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21930echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21931if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21932 echo $ECHO_N "(cached) $ECHO_C" >&6
21933else
21934 ac_ext=cc
21935ac_cpp='$CXXCPP $CPPFLAGS'
21936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21939
21940 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021941/* confdefs.h. */
21942_ACEOF
21943cat confdefs.h >>conftest.$ac_ext
21944cat >>conftest.$ac_ext <<_ACEOF
21945/* end confdefs.h. */
21946#include <math.h>
21947 int foo(float f) {return isnan(f);}
21948_ACEOF
21949rm -f conftest.$ac_objext
21950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021951 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021952 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021953 grep -v '^ *+' conftest.er1 >conftest.err
21954 rm -f conftest.er1
21955 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021958 { ac_try='test -z "$ac_cxx_werror_flag"
21959 || test ! -s conftest.err'
21960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21961 (eval $ac_try) 2>&5
21962 ac_status=$?
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); }; } &&
21965 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21968 ac_status=$?
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; }; then
21971 ac_cv_func_isnan_in_math_h=yes
21972else
21973 echo "$as_me: failed program was:" >&5
21974sed 's/^/| /' conftest.$ac_ext >&5
21975
21976ac_cv_func_isnan_in_math_h=no
21977fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021979 ac_ext=c
21980ac_cpp='$CPP $CPPFLAGS'
21981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21983ac_compiler_gnu=$ac_cv_c_compiler_gnu
21984
21985fi
21986echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21987echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21988 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21989 then
21990
21991cat >>confdefs.h <<\_ACEOF
21992#define HAVE_ISNAN_IN_MATH_H 1
21993_ACEOF
21994
21995 fi
21996echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21997echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21998if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21999 echo $ECHO_N "(cached) $ECHO_C" >&6
22000else
22001 ac_ext=cc
22002ac_cpp='$CXXCPP $CPPFLAGS'
22003ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22004ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22005ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22006
22007 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022008/* confdefs.h. */
22009_ACEOF
22010cat confdefs.h >>conftest.$ac_ext
22011cat >>conftest.$ac_ext <<_ACEOF
22012/* end confdefs.h. */
22013#include <cmath>
22014 int foo(float f) {return isnan(f);}
22015_ACEOF
22016rm -f conftest.$ac_objext
22017if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022018 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022019 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022020 grep -v '^ *+' conftest.er1 >conftest.err
22021 rm -f conftest.er1
22022 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22024 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022025 { ac_try='test -z "$ac_cxx_werror_flag"
22026 || test ! -s conftest.err'
22027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028 (eval $ac_try) 2>&5
22029 ac_status=$?
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; } &&
22032 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22034 (eval $ac_try) 2>&5
22035 ac_status=$?
22036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22037 (exit $ac_status); }; }; then
22038 ac_cv_func_isnan_in_cmath=yes
22039else
22040 echo "$as_me: failed program was:" >&5
22041sed 's/^/| /' conftest.$ac_ext >&5
22042
22043ac_cv_func_isnan_in_cmath=no
22044fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022045rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022046 ac_ext=c
22047ac_cpp='$CPP $CPPFLAGS'
22048ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22049ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22050ac_compiler_gnu=$ac_cv_c_compiler_gnu
22051
22052fi
22053echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22054echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22055 if test "$ac_cv_func_isnan_in_cmath" = "yes"
22056 then
22057
22058cat >>confdefs.h <<\_ACEOF
22059#define HAVE_ISNAN_IN_CMATH 1
22060_ACEOF
22061
22062 fi
22063echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22064echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22065if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22066 echo $ECHO_N "(cached) $ECHO_C" >&6
22067else
22068 ac_ext=cc
22069ac_cpp='$CXXCPP $CPPFLAGS'
22070ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22071ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22072ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22073
22074 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022075/* confdefs.h. */
22076_ACEOF
22077cat confdefs.h >>conftest.$ac_ext
22078cat >>conftest.$ac_ext <<_ACEOF
22079/* end confdefs.h. */
22080#include <cmath>
22081 using std::isnan; int foo(float f) {return isnan(f);}
22082_ACEOF
22083rm -f conftest.$ac_objext
22084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022085 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022087 grep -v '^ *+' conftest.er1 >conftest.err
22088 rm -f conftest.er1
22089 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022092 { ac_try='test -z "$ac_cxx_werror_flag"
22093 || test ! -s conftest.err'
22094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22095 (eval $ac_try) 2>&5
22096 ac_status=$?
22097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22098 (exit $ac_status); }; } &&
22099 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22101 (eval $ac_try) 2>&5
22102 ac_status=$?
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); }; }; then
22105 ac_cv_func_std_isnan_in_cmath=yes
22106else
22107 echo "$as_me: failed program was:" >&5
22108sed 's/^/| /' conftest.$ac_ext >&5
22109
22110ac_cv_func_std_isnan_in_cmath=no
22111fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022113 ac_ext=c
22114ac_cpp='$CPP $CPPFLAGS'
22115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22117ac_compiler_gnu=$ac_cv_c_compiler_gnu
22118
22119fi
22120echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22121echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22122 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22123 then
22124
22125cat >>confdefs.h <<\_ACEOF
22126#define HAVE_STD_ISNAN_IN_CMATH 1
22127_ACEOF
22128
22129 fi
22130
22131
Brian Gaeke52a551d2004-07-21 03:14:12 +000022132echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22133echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22134if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22136else
22137 ac_ext=cc
22138ac_cpp='$CXXCPP $CPPFLAGS'
22139ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22140ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22141ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22142
22143 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022144/* confdefs.h. */
22145_ACEOF
22146cat confdefs.h >>conftest.$ac_ext
22147cat >>conftest.$ac_ext <<_ACEOF
22148/* end confdefs.h. */
22149#include <math.h>
22150 int foo(float f) {return isinf(f);}
22151_ACEOF
22152rm -f conftest.$ac_objext
22153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022154 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022155 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022156 grep -v '^ *+' conftest.er1 >conftest.err
22157 rm -f conftest.er1
22158 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022161 { ac_try='test -z "$ac_cxx_werror_flag"
22162 || test ! -s conftest.err'
22163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164 (eval $ac_try) 2>&5
22165 ac_status=$?
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; } &&
22168 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; }; then
22174 ac_cv_func_isinf_in_math_h=yes
22175else
22176 echo "$as_me: failed program was:" >&5
22177sed 's/^/| /' conftest.$ac_ext >&5
22178
22179ac_cv_func_isinf_in_math_h=no
22180fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022182 ac_ext=c
22183ac_cpp='$CPP $CPPFLAGS'
22184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22186ac_compiler_gnu=$ac_cv_c_compiler_gnu
22187
22188fi
22189echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22190echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22191 if test "$ac_cv_func_isinf_in_math_h" = "yes"
22192 then
22193
22194cat >>confdefs.h <<\_ACEOF
22195#define HAVE_ISINF_IN_MATH_H 1
22196_ACEOF
22197
22198 fi
22199echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22200echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22201if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22202 echo $ECHO_N "(cached) $ECHO_C" >&6
22203else
22204 ac_ext=cc
22205ac_cpp='$CXXCPP $CPPFLAGS'
22206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22209
22210 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022211/* confdefs.h. */
22212_ACEOF
22213cat confdefs.h >>conftest.$ac_ext
22214cat >>conftest.$ac_ext <<_ACEOF
22215/* end confdefs.h. */
22216#include <cmath>
22217 int foo(float f) {return isinf(f);}
22218_ACEOF
22219rm -f conftest.$ac_objext
22220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022221 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022222 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022223 grep -v '^ *+' conftest.er1 >conftest.err
22224 rm -f conftest.er1
22225 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22227 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022228 { ac_try='test -z "$ac_cxx_werror_flag"
22229 || test ! -s conftest.err'
22230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22231 (eval $ac_try) 2>&5
22232 ac_status=$?
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); }; } &&
22235 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22237 (eval $ac_try) 2>&5
22238 ac_status=$?
22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22240 (exit $ac_status); }; }; then
22241 ac_cv_func_isinf_in_cmath=yes
22242else
22243 echo "$as_me: failed program was:" >&5
22244sed 's/^/| /' conftest.$ac_ext >&5
22245
22246ac_cv_func_isinf_in_cmath=no
22247fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022249 ac_ext=c
22250ac_cpp='$CPP $CPPFLAGS'
22251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22253ac_compiler_gnu=$ac_cv_c_compiler_gnu
22254
22255fi
22256echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22257echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22258 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22259 then
22260
22261cat >>confdefs.h <<\_ACEOF
22262#define HAVE_ISINF_IN_CMATH 1
22263_ACEOF
22264
22265 fi
22266echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22267echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22268if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22269 echo $ECHO_N "(cached) $ECHO_C" >&6
22270else
22271 ac_ext=cc
22272ac_cpp='$CXXCPP $CPPFLAGS'
22273ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22274ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22275ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22276
22277 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022278/* confdefs.h. */
22279_ACEOF
22280cat confdefs.h >>conftest.$ac_ext
22281cat >>conftest.$ac_ext <<_ACEOF
22282/* end confdefs.h. */
22283#include <cmath>
22284 using std::isinf; int foo(float f) {return isinf(f);}
22285_ACEOF
22286rm -f conftest.$ac_objext
22287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022288 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022289 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022290 grep -v '^ *+' conftest.er1 >conftest.err
22291 rm -f conftest.er1
22292 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022295 { ac_try='test -z "$ac_cxx_werror_flag"
22296 || test ! -s conftest.err'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22299 ac_status=$?
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; } &&
22302 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 ac_cv_func_std_isinf_in_cmath=yes
22309else
22310 echo "$as_me: failed program was:" >&5
22311sed 's/^/| /' conftest.$ac_ext >&5
22312
22313ac_cv_func_std_isinf_in_cmath=no
22314fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022316 ac_ext=c
22317ac_cpp='$CPP $CPPFLAGS'
22318ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22319ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22320ac_compiler_gnu=$ac_cv_c_compiler_gnu
22321
22322fi
22323echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22324echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22325 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22326 then
22327
22328cat >>confdefs.h <<\_ACEOF
22329#define HAVE_STD_ISINF_IN_CMATH 1
22330_ACEOF
22331
22332 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000022333echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22334echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22335if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22336 echo $ECHO_N "(cached) $ECHO_C" >&6
22337else
22338 ac_ext=cc
22339ac_cpp='$CXXCPP $CPPFLAGS'
22340ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22341ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22342ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22343
22344 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000022345/* confdefs.h. */
22346_ACEOF
22347cat confdefs.h >>conftest.$ac_ext
22348cat >>conftest.$ac_ext <<_ACEOF
22349/* end confdefs.h. */
22350#include <ieeefp.h>
22351 int foo(float f) {return finite(f);}
22352_ACEOF
22353rm -f conftest.$ac_objext
22354if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022355 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000022356 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022357 grep -v '^ *+' conftest.er1 >conftest.err
22358 rm -f conftest.er1
22359 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000022360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22361 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022362 { ac_try='test -z "$ac_cxx_werror_flag"
22363 || test ! -s conftest.err'
22364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22365 (eval $ac_try) 2>&5
22366 ac_status=$?
22367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22368 (exit $ac_status); }; } &&
22369 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000022370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22371 (eval $ac_try) 2>&5
22372 ac_status=$?
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); }; }; then
22375 ac_cv_func_finite_in_ieeefp_h=yes
22376else
22377 echo "$as_me: failed program was:" >&5
22378sed 's/^/| /' conftest.$ac_ext >&5
22379
22380ac_cv_func_finite_in_ieeefp_h=no
22381fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeked59a6472004-07-21 03:33:58 +000022383 ac_ext=c
22384ac_cpp='$CPP $CPPFLAGS'
22385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22387ac_compiler_gnu=$ac_cv_c_compiler_gnu
22388
22389fi
22390echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22391echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22392 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22393 then
22394
22395cat >>confdefs.h <<\_ACEOF
22396#define HAVE_FINITE_IN_IEEEFP_H 1
22397_ACEOF
22398
22399 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000022400
22401
John Criswell7a73b802003-06-30 21:59:07 +000022402# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22403# for constant arguments. Useless!
22404echo "$as_me:$LINENO: checking for working alloca.h" >&5
22405echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22406if test "${ac_cv_working_alloca_h+set}" = set; then
22407 echo $ECHO_N "(cached) $ECHO_C" >&6
22408else
22409 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022410/* confdefs.h. */
22411_ACEOF
22412cat confdefs.h >>conftest.$ac_ext
22413cat >>conftest.$ac_ext <<_ACEOF
22414/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022415#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000022416int
22417main ()
22418{
22419char *p = (char *) alloca (2 * sizeof (int));
22420 ;
22421 return 0;
22422}
22423_ACEOF
22424rm -f conftest.$ac_objext conftest$ac_exeext
22425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022426 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022427 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022428 grep -v '^ *+' conftest.er1 >conftest.err
22429 rm -f conftest.er1
22430 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022433 { ac_try='test -z "$ac_c_werror_flag"
22434 || test ! -s conftest.err'
22435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22436 (eval $ac_try) 2>&5
22437 ac_status=$?
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); }; } &&
22440 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22442 (eval $ac_try) 2>&5
22443 ac_status=$?
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); }; }; then
22446 ac_cv_working_alloca_h=yes
22447else
22448 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022449sed 's/^/| /' conftest.$ac_ext >&5
22450
John Criswell7a73b802003-06-30 21:59:07 +000022451ac_cv_working_alloca_h=no
22452fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022453rm -f conftest.err conftest.$ac_objext \
22454 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022455fi
22456echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22457echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22458if test $ac_cv_working_alloca_h = yes; then
22459
22460cat >>confdefs.h <<\_ACEOF
22461#define HAVE_ALLOCA_H 1
22462_ACEOF
22463
22464fi
22465
22466echo "$as_me:$LINENO: checking for alloca" >&5
22467echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22468if test "${ac_cv_func_alloca_works+set}" = set; then
22469 echo $ECHO_N "(cached) $ECHO_C" >&6
22470else
22471 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022472/* confdefs.h. */
22473_ACEOF
22474cat confdefs.h >>conftest.$ac_ext
22475cat >>conftest.$ac_ext <<_ACEOF
22476/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022477#ifdef __GNUC__
22478# define alloca __builtin_alloca
22479#else
22480# ifdef _MSC_VER
22481# include <malloc.h>
22482# define alloca _alloca
22483# else
22484# if HAVE_ALLOCA_H
22485# include <alloca.h>
22486# else
22487# ifdef _AIX
22488 #pragma alloca
22489# else
22490# ifndef alloca /* predefined by HP cc +Olibcalls */
22491char *alloca ();
22492# endif
22493# endif
22494# endif
22495# endif
22496#endif
22497
John Criswell7a73b802003-06-30 21:59:07 +000022498int
22499main ()
22500{
22501char *p = (char *) alloca (1);
22502 ;
22503 return 0;
22504}
22505_ACEOF
22506rm -f conftest.$ac_objext conftest$ac_exeext
22507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022508 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022509 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022510 grep -v '^ *+' conftest.er1 >conftest.err
22511 rm -f conftest.er1
22512 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22514 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022515 { ac_try='test -z "$ac_c_werror_flag"
22516 || test ! -s conftest.err'
22517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518 (eval $ac_try) 2>&5
22519 ac_status=$?
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; } &&
22522 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22525 ac_status=$?
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 ac_cv_func_alloca_works=yes
22529else
22530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022531sed 's/^/| /' conftest.$ac_ext >&5
22532
John Criswell7a73b802003-06-30 21:59:07 +000022533ac_cv_func_alloca_works=no
22534fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022535rm -f conftest.err conftest.$ac_objext \
22536 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022537fi
22538echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22539echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22540
22541if test $ac_cv_func_alloca_works = yes; then
22542
22543cat >>confdefs.h <<\_ACEOF
22544#define HAVE_ALLOCA 1
22545_ACEOF
22546
22547else
22548 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22549# that cause trouble. Some versions do not even contain alloca or
22550# contain a buggy version. If you still want to use their alloca,
22551# use ar to extract alloca.o from them instead of compiling alloca.c.
22552
22553ALLOCA=alloca.$ac_objext
22554
22555cat >>confdefs.h <<\_ACEOF
22556#define C_ALLOCA 1
22557_ACEOF
22558
22559
22560echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22561echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22562if test "${ac_cv_os_cray+set}" = set; then
22563 echo $ECHO_N "(cached) $ECHO_C" >&6
22564else
22565 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022566/* confdefs.h. */
22567_ACEOF
22568cat confdefs.h >>conftest.$ac_ext
22569cat >>conftest.$ac_ext <<_ACEOF
22570/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022571#if defined(CRAY) && ! defined(CRAY2)
22572webecray
22573#else
22574wenotbecray
22575#endif
22576
22577_ACEOF
22578if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000022579 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022580 ac_cv_os_cray=yes
22581else
22582 ac_cv_os_cray=no
22583fi
22584rm -f conftest*
22585
22586fi
22587echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22588echo "${ECHO_T}$ac_cv_os_cray" >&6
22589if test $ac_cv_os_cray = yes; then
22590 for ac_func in _getb67 GETB67 getb67; do
22591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22592echo "$as_me:$LINENO: checking for $ac_func" >&5
22593echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22594if eval "test \"\${$as_ac_var+set}\" = set"; then
22595 echo $ECHO_N "(cached) $ECHO_C" >&6
22596else
22597 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022598/* confdefs.h. */
22599_ACEOF
22600cat confdefs.h >>conftest.$ac_ext
22601cat >>conftest.$ac_ext <<_ACEOF
22602/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022603/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22605#define $ac_func innocuous_$ac_func
22606
John Criswell7a73b802003-06-30 21:59:07 +000022607/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022608 which can conflict with char $ac_func (); below.
22609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22610 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022611
John Criswell0c38eaf2003-09-10 15:17:25 +000022612#ifdef __STDC__
22613# include <limits.h>
22614#else
22615# include <assert.h>
22616#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022617
22618#undef $ac_func
22619
John Criswell7a73b802003-06-30 21:59:07 +000022620/* Override any gcc2 internal prototype to avoid an error. */
22621#ifdef __cplusplus
22622extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022623{
John Criswell7a73b802003-06-30 21:59:07 +000022624#endif
22625/* We use char because int might match the return type of a gcc2
22626 builtin and then its argument prototype would still apply. */
22627char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022628/* The GNU C library defines this for functions which it implements
22629 to always fail with ENOSYS. Some functions are actually named
22630 something starting with __ and the normal name is an alias. */
22631#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22632choke me
22633#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022634char (*f) () = $ac_func;
22635#endif
22636#ifdef __cplusplus
22637}
John Criswell7a73b802003-06-30 21:59:07 +000022638#endif
22639
John Criswell0c38eaf2003-09-10 15:17:25 +000022640int
22641main ()
22642{
22643return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022644 ;
22645 return 0;
22646}
22647_ACEOF
22648rm -f conftest.$ac_objext conftest$ac_exeext
22649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022650 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022651 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022652 grep -v '^ *+' conftest.er1 >conftest.err
22653 rm -f conftest.er1
22654 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22656 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022657 { ac_try='test -z "$ac_c_werror_flag"
22658 || test ! -s conftest.err'
22659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22660 (eval $ac_try) 2>&5
22661 ac_status=$?
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); }; } &&
22664 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666 (eval $ac_try) 2>&5
22667 ac_status=$?
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; }; then
22670 eval "$as_ac_var=yes"
22671else
22672 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022673sed 's/^/| /' conftest.$ac_ext >&5
22674
John Criswell7a73b802003-06-30 21:59:07 +000022675eval "$as_ac_var=no"
22676fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022677rm -f conftest.err conftest.$ac_objext \
22678 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022679fi
22680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22681echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22682if test `eval echo '${'$as_ac_var'}'` = yes; then
22683
22684cat >>confdefs.h <<_ACEOF
22685#define CRAY_STACKSEG_END $ac_func
22686_ACEOF
22687
22688 break
22689fi
22690
22691 done
22692fi
22693
22694echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22695echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22696if test "${ac_cv_c_stack_direction+set}" = set; then
22697 echo $ECHO_N "(cached) $ECHO_C" >&6
22698else
22699 if test "$cross_compiling" = yes; then
22700 ac_cv_c_stack_direction=0
22701else
22702 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022703/* confdefs.h. */
22704_ACEOF
22705cat confdefs.h >>conftest.$ac_ext
22706cat >>conftest.$ac_ext <<_ACEOF
22707/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022708int
22709find_stack_direction ()
22710{
22711 static char *addr = 0;
22712 auto char dummy;
22713 if (addr == 0)
22714 {
22715 addr = &dummy;
22716 return find_stack_direction ();
22717 }
22718 else
22719 return (&dummy > addr) ? 1 : -1;
22720}
22721
22722int
22723main ()
22724{
22725 exit (find_stack_direction () < 0);
22726}
22727_ACEOF
22728rm -f conftest$ac_exeext
22729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22730 (eval $ac_link) 2>&5
22731 ac_status=$?
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22735 (eval $ac_try) 2>&5
22736 ac_status=$?
22737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); }; }; then
22739 ac_cv_c_stack_direction=1
22740else
22741 echo "$as_me: program exited with status $ac_status" >&5
22742echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022743sed 's/^/| /' conftest.$ac_ext >&5
22744
John Criswell7a73b802003-06-30 21:59:07 +000022745( exit $ac_status )
22746ac_cv_c_stack_direction=-1
22747fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022748rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022749fi
22750fi
22751echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22752echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22753
22754cat >>confdefs.h <<_ACEOF
22755#define STACK_DIRECTION $ac_cv_c_stack_direction
22756_ACEOF
22757
22758
22759fi
22760
John Criswell7a73b802003-06-30 21:59:07 +000022761
22762
22763for ac_header in stdlib.h unistd.h
22764do
22765as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22766if eval "test \"\${$as_ac_Header+set}\" = set"; then
22767 echo "$as_me:$LINENO: checking for $ac_header" >&5
22768echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22769if eval "test \"\${$as_ac_Header+set}\" = set"; then
22770 echo $ECHO_N "(cached) $ECHO_C" >&6
22771fi
22772echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22773echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22774else
22775 # Is the header compilable?
22776echo "$as_me:$LINENO: checking $ac_header usability" >&5
22777echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22778cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022779/* confdefs.h. */
22780_ACEOF
22781cat confdefs.h >>conftest.$ac_ext
22782cat >>conftest.$ac_ext <<_ACEOF
22783/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022784$ac_includes_default
22785#include <$ac_header>
22786_ACEOF
22787rm -f conftest.$ac_objext
22788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022789 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022790 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022791 grep -v '^ *+' conftest.er1 >conftest.err
22792 rm -f conftest.er1
22793 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22795 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022796 { ac_try='test -z "$ac_c_werror_flag"
22797 || test ! -s conftest.err'
22798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22799 (eval $ac_try) 2>&5
22800 ac_status=$?
22801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); }; } &&
22803 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22805 (eval $ac_try) 2>&5
22806 ac_status=$?
22807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); }; }; then
22809 ac_header_compiler=yes
22810else
22811 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022812sed 's/^/| /' conftest.$ac_ext >&5
22813
John Criswell7a73b802003-06-30 21:59:07 +000022814ac_header_compiler=no
22815fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022817echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22818echo "${ECHO_T}$ac_header_compiler" >&6
22819
22820# Is the header present?
22821echo "$as_me:$LINENO: checking $ac_header presence" >&5
22822echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22823cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022824/* confdefs.h. */
22825_ACEOF
22826cat confdefs.h >>conftest.$ac_ext
22827cat >>conftest.$ac_ext <<_ACEOF
22828/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022829#include <$ac_header>
22830_ACEOF
22831if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22832 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22833 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000022834 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000022835 rm -f conftest.er1
22836 cat conftest.err >&5
22837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } >/dev/null; then
22839 if test -s conftest.err; then
22840 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000022841 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000022842 else
22843 ac_cpp_err=
22844 fi
22845else
22846 ac_cpp_err=yes
22847fi
22848if test -z "$ac_cpp_err"; then
22849 ac_header_preproc=yes
22850else
22851 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022852sed 's/^/| /' conftest.$ac_ext >&5
22853
John Criswell7a73b802003-06-30 21:59:07 +000022854 ac_header_preproc=no
22855fi
22856rm -f conftest.err conftest.$ac_ext
22857echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22858echo "${ECHO_T}$ac_header_preproc" >&6
22859
22860# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022861case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22862 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000022863 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22864echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000022865 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22866echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22867 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000022868 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022869 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000022870 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22871echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000022872 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22873echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22874 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22875echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22876 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22877echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000022878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22879echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000022880 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22881echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000022882 (
22883 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000022884## ----------------------------------- ##
22885## Report this to llvmbugs@cs.uiuc.edu ##
22886## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000022887_ASBOX
22888 ) |
22889 sed "s/^/$as_me: WARNING: /" >&2
22890 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022891esac
22892echo "$as_me:$LINENO: checking for $ac_header" >&5
22893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22894if eval "test \"\${$as_ac_Header+set}\" = set"; then
22895 echo $ECHO_N "(cached) $ECHO_C" >&6
22896else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022897 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000022898fi
22899echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22900echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22901
22902fi
22903if test `eval echo '${'$as_ac_Header'}'` = yes; then
22904 cat >>confdefs.h <<_ACEOF
22905#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22906_ACEOF
22907
22908fi
22909
22910done
22911
22912
22913for ac_func in getpagesize
22914do
22915as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22916echo "$as_me:$LINENO: checking for $ac_func" >&5
22917echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22918if eval "test \"\${$as_ac_var+set}\" = set"; then
22919 echo $ECHO_N "(cached) $ECHO_C" >&6
22920else
22921 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022922/* confdefs.h. */
22923_ACEOF
22924cat confdefs.h >>conftest.$ac_ext
22925cat >>conftest.$ac_ext <<_ACEOF
22926/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022927/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22929#define $ac_func innocuous_$ac_func
22930
John Criswell7a73b802003-06-30 21:59:07 +000022931/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022932 which can conflict with char $ac_func (); below.
22933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22934 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022935
John Criswell0c38eaf2003-09-10 15:17:25 +000022936#ifdef __STDC__
22937# include <limits.h>
22938#else
22939# include <assert.h>
22940#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022941
22942#undef $ac_func
22943
John Criswell7a73b802003-06-30 21:59:07 +000022944/* Override any gcc2 internal prototype to avoid an error. */
22945#ifdef __cplusplus
22946extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022947{
John Criswell7a73b802003-06-30 21:59:07 +000022948#endif
22949/* We use char because int might match the return type of a gcc2
22950 builtin and then its argument prototype would still apply. */
22951char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022952/* The GNU C library defines this for functions which it implements
22953 to always fail with ENOSYS. Some functions are actually named
22954 something starting with __ and the normal name is an alias. */
22955#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22956choke me
22957#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022958char (*f) () = $ac_func;
22959#endif
22960#ifdef __cplusplus
22961}
John Criswell7a73b802003-06-30 21:59:07 +000022962#endif
22963
John Criswell0c38eaf2003-09-10 15:17:25 +000022964int
22965main ()
22966{
22967return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022968 ;
22969 return 0;
22970}
22971_ACEOF
22972rm -f conftest.$ac_objext conftest$ac_exeext
22973if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022974 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022975 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022976 grep -v '^ *+' conftest.er1 >conftest.err
22977 rm -f conftest.er1
22978 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022981 { ac_try='test -z "$ac_c_werror_flag"
22982 || test ! -s conftest.err'
22983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22984 (eval $ac_try) 2>&5
22985 ac_status=$?
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); }; } &&
22988 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22990 (eval $ac_try) 2>&5
22991 ac_status=$?
22992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22993 (exit $ac_status); }; }; then
22994 eval "$as_ac_var=yes"
22995else
22996 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022997sed 's/^/| /' conftest.$ac_ext >&5
22998
John Criswell7a73b802003-06-30 21:59:07 +000022999eval "$as_ac_var=no"
23000fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023001rm -f conftest.err conftest.$ac_objext \
23002 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023003fi
23004echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23005echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23006if test `eval echo '${'$as_ac_var'}'` = yes; then
23007 cat >>confdefs.h <<_ACEOF
23008#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23009_ACEOF
23010
23011fi
23012done
23013
23014echo "$as_me:$LINENO: checking for working mmap" >&5
23015echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23016if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23017 echo $ECHO_N "(cached) $ECHO_C" >&6
23018else
23019 if test "$cross_compiling" = yes; then
23020 ac_cv_func_mmap_fixed_mapped=no
23021else
23022 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023023/* confdefs.h. */
23024_ACEOF
23025cat confdefs.h >>conftest.$ac_ext
23026cat >>conftest.$ac_ext <<_ACEOF
23027/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023028$ac_includes_default
23029/* malloc might have been renamed as rpl_malloc. */
23030#undef malloc
23031
23032/* Thanks to Mike Haertel and Jim Avera for this test.
23033 Here is a matrix of mmap possibilities:
23034 mmap private not fixed
23035 mmap private fixed at somewhere currently unmapped
23036 mmap private fixed at somewhere already mapped
23037 mmap shared not fixed
23038 mmap shared fixed at somewhere currently unmapped
23039 mmap shared fixed at somewhere already mapped
23040 For private mappings, we should verify that changes cannot be read()
23041 back from the file, nor mmap's back from the file at a different
23042 address. (There have been systems where private was not correctly
23043 implemented like the infamous i386 svr4.0, and systems where the
23044 VM page cache was not coherent with the file system buffer cache
23045 like early versions of FreeBSD and possibly contemporary NetBSD.)
23046 For shared mappings, we should conversely verify that changes get
23047 propagated back to all the places they're supposed to be.
23048
23049 Grep wants private fixed already mapped.
23050 The main things grep needs to know about mmap are:
23051 * does it exist and is it safe to write into the mmap'd area
23052 * how to use it (BSD variants) */
23053
23054#include <fcntl.h>
23055#include <sys/mman.h>
23056
23057#if !STDC_HEADERS && !HAVE_STDLIB_H
23058char *malloc ();
23059#endif
23060
23061/* This mess was copied from the GNU getpagesize.h. */
23062#if !HAVE_GETPAGESIZE
23063/* Assume that all systems that can run configure have sys/param.h. */
23064# if !HAVE_SYS_PARAM_H
23065# define HAVE_SYS_PARAM_H 1
23066# endif
23067
23068# ifdef _SC_PAGESIZE
23069# define getpagesize() sysconf(_SC_PAGESIZE)
23070# else /* no _SC_PAGESIZE */
23071# if HAVE_SYS_PARAM_H
23072# include <sys/param.h>
23073# ifdef EXEC_PAGESIZE
23074# define getpagesize() EXEC_PAGESIZE
23075# else /* no EXEC_PAGESIZE */
23076# ifdef NBPG
23077# define getpagesize() NBPG * CLSIZE
23078# ifndef CLSIZE
23079# define CLSIZE 1
23080# endif /* no CLSIZE */
23081# else /* no NBPG */
23082# ifdef NBPC
23083# define getpagesize() NBPC
23084# else /* no NBPC */
23085# ifdef PAGESIZE
23086# define getpagesize() PAGESIZE
23087# endif /* PAGESIZE */
23088# endif /* no NBPC */
23089# endif /* no NBPG */
23090# endif /* no EXEC_PAGESIZE */
23091# else /* no HAVE_SYS_PARAM_H */
23092# define getpagesize() 8192 /* punt totally */
23093# endif /* no HAVE_SYS_PARAM_H */
23094# endif /* no _SC_PAGESIZE */
23095
23096#endif /* no HAVE_GETPAGESIZE */
23097
23098int
23099main ()
23100{
23101 char *data, *data2, *data3;
23102 int i, pagesize;
23103 int fd;
23104
23105 pagesize = getpagesize ();
23106
23107 /* First, make a file with some known garbage in it. */
23108 data = (char *) malloc (pagesize);
23109 if (!data)
23110 exit (1);
23111 for (i = 0; i < pagesize; ++i)
23112 *(data + i) = rand ();
23113 umask (0);
23114 fd = creat ("conftest.mmap", 0600);
23115 if (fd < 0)
23116 exit (1);
23117 if (write (fd, data, pagesize) != pagesize)
23118 exit (1);
23119 close (fd);
23120
23121 /* Next, try to mmap the file at a fixed address which already has
23122 something else allocated at it. If we can, also make sure that
23123 we see the same garbage. */
23124 fd = open ("conftest.mmap", O_RDWR);
23125 if (fd < 0)
23126 exit (1);
23127 data2 = (char *) malloc (2 * pagesize);
23128 if (!data2)
23129 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000023130 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000023131 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000023132 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000023133 exit (1);
23134 for (i = 0; i < pagesize; ++i)
23135 if (*(data + i) != *(data2 + i))
23136 exit (1);
23137
23138 /* Finally, make sure that changes to the mapped area do not
23139 percolate back to the file as seen by read(). (This is a bug on
23140 some variants of i386 svr4.0.) */
23141 for (i = 0; i < pagesize; ++i)
23142 *(data2 + i) = *(data2 + i) + 1;
23143 data3 = (char *) malloc (pagesize);
23144 if (!data3)
23145 exit (1);
23146 if (read (fd, data3, pagesize) != pagesize)
23147 exit (1);
23148 for (i = 0; i < pagesize; ++i)
23149 if (*(data + i) != *(data3 + i))
23150 exit (1);
23151 close (fd);
23152 exit (0);
23153}
23154_ACEOF
23155rm -f conftest$ac_exeext
23156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23157 (eval $ac_link) 2>&5
23158 ac_status=$?
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23162 (eval $ac_try) 2>&5
23163 ac_status=$?
23164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23165 (exit $ac_status); }; }; then
23166 ac_cv_func_mmap_fixed_mapped=yes
23167else
23168 echo "$as_me: program exited with status $ac_status" >&5
23169echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023170sed 's/^/| /' conftest.$ac_ext >&5
23171
John Criswell7a73b802003-06-30 21:59:07 +000023172( exit $ac_status )
23173ac_cv_func_mmap_fixed_mapped=no
23174fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023175rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023176fi
23177fi
23178echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23179echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23180if test $ac_cv_func_mmap_fixed_mapped = yes; then
23181
23182cat >>confdefs.h <<\_ACEOF
23183#define HAVE_MMAP 1
23184_ACEOF
23185
23186fi
23187rm -f conftest.mmap
23188
Brian Gaeke26be9c52004-01-13 06:43:16 +000023189if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23190then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023191 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23192echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000023193fi
John Criswell7a73b802003-06-30 21:59:07 +000023194echo "$as_me:$LINENO: checking for mmap of files" >&5
23195echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23196if test "${ac_cv_func_mmap_file+set}" = set; then
23197 echo $ECHO_N "(cached) $ECHO_C" >&6
23198else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023199 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000023200ac_cpp='$CPP $CPPFLAGS'
23201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23203ac_compiler_gnu=$ac_cv_c_compiler_gnu
23204
23205 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000023206 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000023207else
23208 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023209
Reid Spencer777ce172004-09-20 04:09:56 +000023210 /* confdefs.h. */
23211_ACEOF
23212cat confdefs.h >>conftest.$ac_ext
23213cat >>conftest.$ac_ext <<_ACEOF
23214/* end confdefs.h. */
23215
John Criswell7a73b802003-06-30 21:59:07 +000023216#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000023217#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000023218#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000023219
23220int
23221main ()
23222{
John Criswell7a73b802003-06-30 21:59:07 +000023223
23224 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000023225 fd = creat ("foo",0777);
23226 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23227 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000023228 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000023229 ;
23230 return 0;
23231}
John Criswell7a73b802003-06-30 21:59:07 +000023232_ACEOF
23233rm -f conftest$ac_exeext
23234if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23235 (eval $ac_link) 2>&5
23236 ac_status=$?
23237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23238 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240 (eval $ac_try) 2>&5
23241 ac_status=$?
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); }; }; then
23244 ac_cv_func_mmap_file=yes
23245else
23246 echo "$as_me: program exited with status $ac_status" >&5
23247echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023248sed 's/^/| /' conftest.$ac_ext >&5
23249
John Criswell7a73b802003-06-30 21:59:07 +000023250( exit $ac_status )
23251ac_cv_func_mmap_file=no
23252fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023253rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023254fi
23255 ac_ext=c
23256ac_cpp='$CPP $CPPFLAGS'
23257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23259ac_compiler_gnu=$ac_cv_c_compiler_gnu
23260
23261
23262fi
23263echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23264echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23265if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023266
23267cat >>confdefs.h <<\_ACEOF
23268#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000023269_ACEOF
23270
23271 MMAP_FILE=yes
23272
23273fi
23274
Brian Gaeke26be9c52004-01-13 06:43:16 +000023275if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000023276then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023277 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23278echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023279fi
23280echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23281echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23282if test "${ac_cv_header_mmap_anon+set}" = set; then
23283 echo $ECHO_N "(cached) $ECHO_C" >&6
23284else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023285 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000023286ac_cpp='$CPP $CPPFLAGS'
23287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23289ac_compiler_gnu=$ac_cv_c_compiler_gnu
23290
23291 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023292/* confdefs.h. */
23293_ACEOF
23294cat confdefs.h >>conftest.$ac_ext
23295cat >>conftest.$ac_ext <<_ACEOF
23296/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023297#include <sys/mman.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000023298#include <unistd.h>
23299#include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000023300int
23301main ()
23302{
23303mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23304 ;
23305 return 0;
23306}
23307_ACEOF
23308rm -f conftest.$ac_objext
23309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023310 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023311 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023312 grep -v '^ *+' conftest.er1 >conftest.err
23313 rm -f conftest.er1
23314 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23316 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023317 { ac_try='test -z "$ac_c_werror_flag"
23318 || test ! -s conftest.err'
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); }; } &&
23324 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23326 (eval $ac_try) 2>&5
23327 ac_status=$?
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); }; }; then
23330 ac_cv_header_mmap_anon=yes
23331else
23332 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023333sed 's/^/| /' conftest.$ac_ext >&5
23334
John Criswell7a73b802003-06-30 21:59:07 +000023335ac_cv_header_mmap_anon=no
23336fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023337rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023338 ac_ext=c
23339ac_cpp='$CPP $CPPFLAGS'
23340ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23341ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23342ac_compiler_gnu=$ac_cv_c_compiler_gnu
23343
23344
23345fi
23346echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23347echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23348if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023349
23350cat >>confdefs.h <<\_ACEOF
23351#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000023352_ACEOF
23353
23354fi
23355
23356echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23357echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23358if test "${ac_cv_type_signal+set}" = set; then
23359 echo $ECHO_N "(cached) $ECHO_C" >&6
23360else
23361 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023362/* confdefs.h. */
23363_ACEOF
23364cat confdefs.h >>conftest.$ac_ext
23365cat >>conftest.$ac_ext <<_ACEOF
23366/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023367#include <sys/types.h>
23368#include <signal.h>
23369#ifdef signal
23370# undef signal
23371#endif
23372#ifdef __cplusplus
23373extern "C" void (*signal (int, void (*)(int)))(int);
23374#else
23375void (*signal ()) ();
23376#endif
23377
John Criswell7a73b802003-06-30 21:59:07 +000023378int
23379main ()
23380{
23381int i;
23382 ;
23383 return 0;
23384}
23385_ACEOF
23386rm -f conftest.$ac_objext
23387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023388 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023389 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023390 grep -v '^ *+' conftest.er1 >conftest.err
23391 rm -f conftest.er1
23392 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023395 { ac_try='test -z "$ac_c_werror_flag"
23396 || test ! -s conftest.err'
23397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23398 (eval $ac_try) 2>&5
23399 ac_status=$?
23400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401 (exit $ac_status); }; } &&
23402 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23404 (eval $ac_try) 2>&5
23405 ac_status=$?
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); }; }; then
23408 ac_cv_type_signal=void
23409else
23410 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023411sed 's/^/| /' conftest.$ac_ext >&5
23412
John Criswell7a73b802003-06-30 21:59:07 +000023413ac_cv_type_signal=int
23414fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023416fi
23417echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23418echo "${ECHO_T}$ac_cv_type_signal" >&6
23419
23420cat >>confdefs.h <<_ACEOF
23421#define RETSIGTYPE $ac_cv_type_signal
23422_ACEOF
23423
23424
23425
23426
23427
23428
23429
Brian Gaekef5261472004-02-20 06:40:57 +000023430
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000023431
John Criswelld6621562004-06-07 14:26:24 +000023432
23433
John Criswell7ed43ad2004-07-19 16:12:29 +000023434for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000023435do
23436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23437echo "$as_me:$LINENO: checking for $ac_func" >&5
23438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23439if eval "test \"\${$as_ac_var+set}\" = set"; then
23440 echo $ECHO_N "(cached) $ECHO_C" >&6
23441else
23442 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023443/* confdefs.h. */
23444_ACEOF
23445cat confdefs.h >>conftest.$ac_ext
23446cat >>conftest.$ac_ext <<_ACEOF
23447/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023448/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23450#define $ac_func innocuous_$ac_func
23451
John Criswell7a73b802003-06-30 21:59:07 +000023452/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023453 which can conflict with char $ac_func (); below.
23454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23455 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023456
John Criswell0c38eaf2003-09-10 15:17:25 +000023457#ifdef __STDC__
23458# include <limits.h>
23459#else
23460# include <assert.h>
23461#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023462
23463#undef $ac_func
23464
John Criswell7a73b802003-06-30 21:59:07 +000023465/* Override any gcc2 internal prototype to avoid an error. */
23466#ifdef __cplusplus
23467extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023468{
John Criswell7a73b802003-06-30 21:59:07 +000023469#endif
23470/* We use char because int might match the return type of a gcc2
23471 builtin and then its argument prototype would still apply. */
23472char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023473/* The GNU C library defines this for functions which it implements
23474 to always fail with ENOSYS. Some functions are actually named
23475 something starting with __ and the normal name is an alias. */
23476#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23477choke me
23478#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023479char (*f) () = $ac_func;
23480#endif
23481#ifdef __cplusplus
23482}
John Criswell7a73b802003-06-30 21:59:07 +000023483#endif
23484
John Criswell0c38eaf2003-09-10 15:17:25 +000023485int
23486main ()
23487{
23488return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023489 ;
23490 return 0;
23491}
23492_ACEOF
23493rm -f conftest.$ac_objext conftest$ac_exeext
23494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023495 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023496 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023497 grep -v '^ *+' conftest.er1 >conftest.err
23498 rm -f conftest.er1
23499 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23501 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023502 { ac_try='test -z "$ac_c_werror_flag"
23503 || test ! -s conftest.err'
23504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23505 (eval $ac_try) 2>&5
23506 ac_status=$?
23507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); }; } &&
23509 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511 (eval $ac_try) 2>&5
23512 ac_status=$?
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); }; }; then
23515 eval "$as_ac_var=yes"
23516else
23517 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023518sed 's/^/| /' conftest.$ac_ext >&5
23519
John Criswell7a73b802003-06-30 21:59:07 +000023520eval "$as_ac_var=no"
23521fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023522rm -f conftest.err conftest.$ac_objext \
23523 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023524fi
23525echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23526echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23527if test `eval echo '${'$as_ac_var'}'` = yes; then
23528 cat >>confdefs.h <<_ACEOF
23529#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23530_ACEOF
23531
23532fi
23533done
23534
John Criswell7a73b802003-06-30 21:59:07 +000023535echo "$as_me:$LINENO: checking for mprotect" >&5
23536echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23537if test "${ac_cv_func_mprotect+set}" = set; then
23538 echo $ECHO_N "(cached) $ECHO_C" >&6
23539else
23540 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023541/* confdefs.h. */
23542_ACEOF
23543cat confdefs.h >>conftest.$ac_ext
23544cat >>conftest.$ac_ext <<_ACEOF
23545/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023546/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23547 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23548#define mprotect innocuous_mprotect
23549
John Criswell7a73b802003-06-30 21:59:07 +000023550/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023551 which can conflict with char mprotect (); below.
23552 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23553 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023554
John Criswell0c38eaf2003-09-10 15:17:25 +000023555#ifdef __STDC__
23556# include <limits.h>
23557#else
23558# include <assert.h>
23559#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023560
23561#undef mprotect
23562
John Criswell7a73b802003-06-30 21:59:07 +000023563/* Override any gcc2 internal prototype to avoid an error. */
23564#ifdef __cplusplus
23565extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023566{
John Criswell7a73b802003-06-30 21:59:07 +000023567#endif
23568/* We use char because int might match the return type of a gcc2
23569 builtin and then its argument prototype would still apply. */
23570char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000023571/* The GNU C library defines this for functions which it implements
23572 to always fail with ENOSYS. Some functions are actually named
23573 something starting with __ and the normal name is an alias. */
23574#if defined (__stub_mprotect) || defined (__stub___mprotect)
23575choke me
23576#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023577char (*f) () = mprotect;
23578#endif
23579#ifdef __cplusplus
23580}
John Criswell7a73b802003-06-30 21:59:07 +000023581#endif
23582
John Criswell0c38eaf2003-09-10 15:17:25 +000023583int
23584main ()
23585{
23586return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000023587 ;
23588 return 0;
23589}
23590_ACEOF
23591rm -f conftest.$ac_objext conftest$ac_exeext
23592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023593 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023594 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023595 grep -v '^ *+' conftest.er1 >conftest.err
23596 rm -f conftest.er1
23597 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023600 { ac_try='test -z "$ac_c_werror_flag"
23601 || test ! -s conftest.err'
23602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23603 (eval $ac_try) 2>&5
23604 ac_status=$?
23605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23606 (exit $ac_status); }; } &&
23607 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23609 (eval $ac_try) 2>&5
23610 ac_status=$?
23611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23612 (exit $ac_status); }; }; then
23613 ac_cv_func_mprotect=yes
23614else
23615 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023616sed 's/^/| /' conftest.$ac_ext >&5
23617
John Criswell7a73b802003-06-30 21:59:07 +000023618ac_cv_func_mprotect=no
23619fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023620rm -f conftest.err conftest.$ac_objext \
23621 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023622fi
23623echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23624echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23625if test $ac_cv_func_mprotect = yes; then
23626 :
23627else
23628 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23629echo "$as_me: error: Function mprotect() required but not found" >&2;}
23630 { (exit 1); exit 1; }; }
23631fi
23632
23633
John Criswellb13092b2003-07-22 21:00:24 +000023634
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023635 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23636echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000023637 ac_ext=c
23638ac_cpp='$CPP $CPPFLAGS'
23639ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23640ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23641ac_compiler_gnu=$ac_cv_c_compiler_gnu
23642
Brian Gaekef91a15c2003-11-18 06:20:41 +000023643 oldcflags="$CFLAGS"
23644 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000023645 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000023646/* confdefs.h. */
23647_ACEOF
23648cat confdefs.h >>conftest.$ac_ext
23649cat >>conftest.$ac_ext <<_ACEOF
23650/* end confdefs.h. */
23651
23652int
23653main ()
23654{
Brian Gaekef91a15c2003-11-18 06:20:41 +000023655int main() { return 0; }
Reid Spencer777ce172004-09-20 04:09:56 +000023656 ;
23657 return 0;
23658}
John Criswellcb7a1eb2003-11-17 19:46:02 +000023659_ACEOF
23660rm -f conftest.$ac_objext conftest$ac_exeext
23661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023662 (eval $ac_link) 2>conftest.er1
John Criswellcb7a1eb2003-11-17 19:46:02 +000023663 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023664 grep -v '^ *+' conftest.er1 >conftest.err
23665 rm -f conftest.er1
23666 cat conftest.err >&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000023667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23668 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023669 { ac_try='test -z "$ac_c_werror_flag"
23670 || test ! -s conftest.err'
23671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23672 (eval $ac_try) 2>&5
23673 ac_status=$?
23674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23675 (exit $ac_status); }; } &&
23676 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000023677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23678 (eval $ac_try) 2>&5
23679 ac_status=$?
23680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23681 (exit $ac_status); }; }; then
23682 ac_cv_link_use_r=yes
23683else
23684 echo "$as_me: failed program was:" >&5
23685sed 's/^/| /' conftest.$ac_ext >&5
23686
Brian Gaekef91a15c2003-11-18 06:20:41 +000023687ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000023688fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023689rm -f conftest.err conftest.$ac_objext \
23690 conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000023691 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000023692 ac_ext=c
23693ac_cpp='$CPP $CPPFLAGS'
23694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23696ac_compiler_gnu=$ac_cv_c_compiler_gnu
23697
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023698 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23699echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000023700 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000023701 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000023702
23703cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000023704#define HAVE_LINK_R 1
23705_ACEOF
23706
23707 fi
23708
23709
John Criswell7a73b802003-06-30 21:59:07 +000023710# Check whether --enable-optimized or --disable-optimized was given.
23711if test "${enable_optimized+set}" = set; then
23712 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000023713
23714else
John Criswellb13092b2003-07-22 21:00:24 +000023715 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023716fi;
John Criswellb13092b2003-07-22 21:00:24 +000023717if test ${enableval} = "no"
23718then
23719 ENABLE_OPTIMIZED=
23720
23721else
23722 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23723
23724fi
23725
John Criswellb13092b2003-07-22 21:00:24 +000023726# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000023727if test "${enable_jit+set}" = set; then
23728 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000023729
23730else
John Criswellc78022e2003-07-29 19:11:58 +000023731 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000023732fi;
John Criswellb13092b2003-07-22 21:00:24 +000023733if test ${enableval} = "no"
23734then
23735 JIT=
23736
23737else
John Criswellc78022e2003-07-29 19:11:58 +000023738 case $target in
23739 *i*86*)
23740 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000023741
John Criswellc78022e2003-07-29 19:11:58 +000023742 ;;
23743 *sparc*)
23744 JIT=TARGET_HAS_JIT=1
23745
23746 ;;
23747 *)
23748 JIT=
23749
23750 ;;
23751 esac
John Criswellb13092b2003-07-22 21:00:24 +000023752fi
John Criswell7a73b802003-06-30 21:59:07 +000023753
23754
John Criswell7a73b802003-06-30 21:59:07 +000023755# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23756if test "${with_llvmgccdir+set}" = set; then
23757 withval="$with_llvmgccdir"
23758 LLVMGCCDIR=$withval
23759
23760fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000023761echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23762echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23763LLVM_GCC_CHECK=no
23764if test -d "$LLVMGCCDIR"
23765then
23766 if test -x "$LLVMGCCDIR/bin/gcc"
23767 then
23768 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23769 fi
23770fi
23771llvmgccwarn=no
23772echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23773echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23774if test "$LLVM_GCC_CHECK" = "no"
23775then
23776 llvmgccwarn=yes
23777fi
Brian Gaekef3b24102003-11-16 18:38:14 +000023778echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23779echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23780LLVM_GCC_SANE=no
23781if test -x "$LLVM_GCC_CHECK"
23782then
23783 cp /dev/null conftest.c
23784 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23785 if test $? -eq 0
23786 then
23787 LLVM_GCC_SANE=yes
23788 fi
23789 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000023790 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000023791 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000023792
23793 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000023794 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000023795
Brian Gaekef3b24102003-11-16 18:38:14 +000023796fi
23797echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23798echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23799if test "$LLVM_GCC_SANE" = "no"
23800then
23801 llvmgccwarn=yes
23802fi
23803
Brian Gaeke554831c2004-01-21 19:39:29 +000023804echo "$as_me:$LINENO: checking for shared library suffix" >&5
23805echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
Reid Spencer2e89ae22004-09-20 03:06:28 +000023806eval "SHLIBEXT=$shrext_cmds"
Brian Gaeke554831c2004-01-21 19:39:29 +000023807echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23808echo "${ECHO_T}$SHLIBEXT" >&6
23809SHLIBEXT=$SHLIBEXT
23810
23811
23812cat >>confdefs.h <<_ACEOF
23813#define SHLIBEXT "$SHLIBEXT"
23814_ACEOF
23815
23816
Reid Spencere9de0912004-08-20 09:03:57 +000023817# Translate the various configuration directories and other basic
23818# information into substitutions that will end up in config.h.in so
23819# that these configured values can be hard-wired into a program.
23820eval LLVM_PREFIX="${prefix}";
23821eval LLVM_BINDIR="${prefix}/bin";
23822eval LLVM_LIBDIR="${prefix}/lib";
23823eval LLVM_DATADIR="${prefix}/data";
23824eval LLVM_DOCSDIR="${prefix}/docs";
23825eval LLVM_ETCDIR="${prefix}/etc";
23826eval LLVM_INCLUDEDIR="${prefix}/include";
23827eval LLVM_INFODIR="${prefix}/info";
23828eval LLVM_MANDIR="${prefix}/man";
23829LLVM_CONFIGTIME=`date`
23830
23831
23832
23833
23834
23835
23836
23837
23838
23839
23840
23841cat >>confdefs.h <<_ACEOF
23842#define LLVM_PREFIX "$LLVM_PREFIX"
23843_ACEOF
23844
23845
23846cat >>confdefs.h <<_ACEOF
23847#define LLVM_BINDIR "$LLVM_BINDIR"
23848_ACEOF
23849
23850
23851cat >>confdefs.h <<_ACEOF
23852#define LLVM_LIBDIR "$LLVM_LIBDIR"
23853_ACEOF
23854
23855
23856cat >>confdefs.h <<_ACEOF
23857#define LLVM_DATADIR "$LLVM_DATADIR"
23858_ACEOF
23859
23860
23861cat >>confdefs.h <<_ACEOF
23862#define LLVM_DATADIR "$LLVM_DOCSDIR"
23863_ACEOF
23864
23865
23866cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000023867#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000023868_ACEOF
23869
23870
23871cat >>confdefs.h <<_ACEOF
23872#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23873_ACEOF
23874
23875
23876cat >>confdefs.h <<_ACEOF
23877#define LLVM_INFODIR "$LLVM_INFODIR"
23878_ACEOF
23879
23880
23881cat >>confdefs.h <<_ACEOF
23882#define LLVM_MANDIR "$LLVM_MANDIR"
23883_ACEOF
23884
23885
23886cat >>confdefs.h <<_ACEOF
23887#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23888_ACEOF
23889
23890
John Criswell7a73b802003-06-30 21:59:07 +000023891cat >confcache <<\_ACEOF
23892# This file is a shell script that caches the results of configure
23893# tests run on this system so they can be shared between configure
23894# scripts and configure runs, see configure's option --config-cache.
23895# It is not useful on other systems. If it contains results you don't
23896# want to keep, you may remove or edit it.
23897#
23898# config.status only pays attention to the cache file if you give it
23899# the --recheck option to rerun configure.
23900#
John Criswell0c38eaf2003-09-10 15:17:25 +000023901# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000023902# loading this file, other *unset* `ac_cv_foo' will be assigned the
23903# following values.
23904
23905_ACEOF
23906
23907# The following way of writing the cache mishandles newlines in values,
23908# but we know of no workaround that is simple, portable, and efficient.
23909# So, don't put newlines in cache variables' values.
23910# Ultrix sh set writes to stderr and can't be redirected directly,
23911# and sets the high bit in the cache file unless we assign to the vars.
23912{
23913 (set) 2>&1 |
23914 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23915 *ac_space=\ *)
23916 # `set' does not quote correctly, so add quotes (double-quote
23917 # substitution turns \\\\ into \\, and sed turns \\ into \).
23918 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023919 "s/'/'\\\\''/g;
23920 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000023921 ;;
23922 *)
23923 # `set' quotes correctly as required by POSIX, so do not add quotes.
23924 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023925 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000023926 ;;
23927 esac;
23928} |
23929 sed '
23930 t clear
23931 : clear
23932 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23933 t end
23934 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23935 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000023936if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000023937 if test -w $cache_file; then
23938 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23939 cat confcache >$cache_file
23940 else
23941 echo "not updating unwritable cache $cache_file"
23942 fi
23943fi
23944rm -f confcache
23945
23946test "x$prefix" = xNONE && prefix=$ac_default_prefix
23947# Let make expand exec_prefix.
23948test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23949
23950# VPATH may cause trouble with some makes, so we remove $(srcdir),
23951# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23952# trailing colons and then remove the whole line if VPATH becomes empty
23953# (actually we leave an empty line to preserve line numbers).
23954if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000023955 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000023956s/:*\$(srcdir):*/:/;
23957s/:*\${srcdir}:*/:/;
23958s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023959s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000023960s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000023961s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000023962}'
23963fi
23964
23965DEFS=-DHAVE_CONFIG_H
23966
John Criswell0c38eaf2003-09-10 15:17:25 +000023967ac_libobjs=
23968ac_ltlibobjs=
23969for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23970 # 1. Remove the extension, and $U if already installed.
23971 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000023972 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023973 # 2. Add them.
23974 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23975 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23976done
23977LIBOBJS=$ac_libobjs
23978
23979LTLIBOBJS=$ac_ltlibobjs
23980
23981
John Criswell7a73b802003-06-30 21:59:07 +000023982
23983: ${CONFIG_STATUS=./config.status}
23984ac_clean_files_save=$ac_clean_files
23985ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23986{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23987echo "$as_me: creating $CONFIG_STATUS" >&6;}
23988cat >$CONFIG_STATUS <<_ACEOF
23989#! $SHELL
23990# Generated by $as_me.
23991# Run this file to recreate the current configuration.
23992# Compiler output produced by configure, useful for debugging
23993# configure, is in config.log if it exists.
23994
23995debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023996ac_cs_recheck=false
23997ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023998SHELL=\${CONFIG_SHELL-$SHELL}
23999_ACEOF
24000
24001cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024002## --------------------- ##
24003## M4sh Initialization. ##
24004## --------------------- ##
24005
24006# Be Bourne compatible
24007if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24008 emulate sh
24009 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024010 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24011 # is contrary to our usage. Disable this feature.
24012 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000024013elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24014 set -o posix
24015fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024016DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000024017
John Criswell7a73b802003-06-30 21:59:07 +000024018# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024019if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024020 as_unset=unset
24021else
24022 as_unset=false
24023fi
24024
John Criswell0c38eaf2003-09-10 15:17:25 +000024025
24026# Work around bugs in pre-3.0 UWIN ksh.
24027$as_unset ENV MAIL MAILPATH
24028PS1='$ '
24029PS2='> '
24030PS4='+ '
24031
24032# NLS nuisances.
24033for as_var in \
24034 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24035 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24036 LC_TELEPHONE LC_TIME
24037do
Reid Spencer2706f8c2004-09-19 23:53:36 +000024038 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000024039 eval $as_var=C; export $as_var
24040 else
24041 $as_unset $as_var
24042 fi
24043done
24044
24045# Required to use basename.
24046if expr a : '\(a\)' >/dev/null 2>&1; then
24047 as_expr=expr
24048else
24049 as_expr=false
24050fi
24051
24052if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24053 as_basename=basename
24054else
24055 as_basename=false
24056fi
John Criswell7a73b802003-06-30 21:59:07 +000024057
24058
24059# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000024060as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000024061$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24062 X"$0" : 'X\(//\)$' \| \
24063 X"$0" : 'X\(/\)$' \| \
24064 . : '\(.\)' 2>/dev/null ||
24065echo X/"$0" |
24066 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24067 /^X\/\(\/\/\)$/{ s//\1/; q; }
24068 /^X\/\(\/\).*/{ s//\1/; q; }
24069 s/.*/./; q'`
24070
John Criswell0c38eaf2003-09-10 15:17:25 +000024071
John Criswell7a73b802003-06-30 21:59:07 +000024072# PATH needs CR, and LINENO needs CR and PATH.
24073# Avoid depending upon Character Ranges.
24074as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24075as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24076as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24077as_cr_digits='0123456789'
24078as_cr_alnum=$as_cr_Letters$as_cr_digits
24079
24080# The user is always right.
24081if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024082 echo "#! /bin/sh" >conf$$.sh
24083 echo "exit 0" >>conf$$.sh
24084 chmod +x conf$$.sh
24085 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024086 PATH_SEPARATOR=';'
24087 else
24088 PATH_SEPARATOR=:
24089 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000024090 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000024091fi
24092
24093
24094 as_lineno_1=$LINENO
24095 as_lineno_2=$LINENO
24096 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24097 test "x$as_lineno_1" != "x$as_lineno_2" &&
24098 test "x$as_lineno_3" = "x$as_lineno_2" || {
24099 # Find who we are. Look in the path if we contain no path at all
24100 # relative or not.
24101 case $0 in
24102 *[\\/]* ) as_myself=$0 ;;
24103 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24104for as_dir in $PATH
24105do
24106 IFS=$as_save_IFS
24107 test -z "$as_dir" && as_dir=.
24108 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24109done
24110
24111 ;;
24112 esac
24113 # We did not find ourselves, most probably we were run as `sh COMMAND'
24114 # in which case we are not to be found in the path.
24115 if test "x$as_myself" = x; then
24116 as_myself=$0
24117 fi
24118 if test ! -f "$as_myself"; then
24119 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24120echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24121 { (exit 1); exit 1; }; }
24122 fi
24123 case $CONFIG_SHELL in
24124 '')
24125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24126for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24127do
24128 IFS=$as_save_IFS
24129 test -z "$as_dir" && as_dir=.
24130 for as_base in sh bash ksh sh5; do
24131 case $as_dir in
24132 /*)
24133 if ("$as_dir/$as_base" -c '
24134 as_lineno_1=$LINENO
24135 as_lineno_2=$LINENO
24136 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24137 test "x$as_lineno_1" != "x$as_lineno_2" &&
24138 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024139 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24140 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000024141 CONFIG_SHELL=$as_dir/$as_base
24142 export CONFIG_SHELL
24143 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24144 fi;;
24145 esac
24146 done
24147done
24148;;
24149 esac
24150
24151 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24152 # uniformly replaced by the line number. The first 'sed' inserts a
24153 # line-number line before each line; the second 'sed' does the real
24154 # work. The second script uses 'N' to pair each line-number line
24155 # with the numbered line, and appends trailing '-' during
24156 # substitution so that $LINENO is not a special case at line end.
24157 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24158 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24159 sed '=' <$as_myself |
24160 sed '
24161 N
24162 s,$,-,
24163 : loop
24164 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24165 t loop
24166 s,-$,,
24167 s,^['$as_cr_digits']*\n,,
24168 ' >$as_me.lineno &&
24169 chmod +x $as_me.lineno ||
24170 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24171echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24172 { (exit 1); exit 1; }; }
24173
24174 # Don't try to exec as it changes $[0], causing all sort of problems
24175 # (the dirname of $[0] is not the place where we might find the
24176 # original and so on. Autoconf is especially sensible to this).
24177 . ./$as_me.lineno
24178 # Exit status is that of the last command.
24179 exit
24180}
24181
24182
24183case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24184 *c*,-n*) ECHO_N= ECHO_C='
24185' ECHO_T=' ' ;;
24186 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24187 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24188esac
24189
24190if expr a : '\(a\)' >/dev/null 2>&1; then
24191 as_expr=expr
24192else
24193 as_expr=false
24194fi
24195
24196rm -f conf$$ conf$$.exe conf$$.file
24197echo >conf$$.file
24198if ln -s conf$$.file conf$$ 2>/dev/null; then
24199 # We could just check for DJGPP; but this test a) works b) is more generic
24200 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24201 if test -f conf$$.exe; then
24202 # Don't use ln at all; we don't have any links
24203 as_ln_s='cp -p'
24204 else
24205 as_ln_s='ln -s'
24206 fi
24207elif ln conf$$.file conf$$ 2>/dev/null; then
24208 as_ln_s=ln
24209else
24210 as_ln_s='cp -p'
24211fi
24212rm -f conf$$ conf$$.exe conf$$.file
24213
John Criswell0c38eaf2003-09-10 15:17:25 +000024214if mkdir -p . 2>/dev/null; then
24215 as_mkdir_p=:
24216else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024217 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000024218 as_mkdir_p=false
24219fi
24220
John Criswell7a73b802003-06-30 21:59:07 +000024221as_executable_p="test -f"
24222
24223# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024224as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024225
24226# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024227as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024228
24229
24230# IFS
24231# We need space, tab and new line, in precisely that order.
24232as_nl='
24233'
24234IFS=" $as_nl"
24235
24236# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000024237$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000024238
24239exec 6>&1
24240
24241# Open the log real soon, to keep \$[0] and so on meaningful, and to
24242# report actual input values of CONFIG_FILES etc. instead of their
24243# values after options handling. Logging --version etc. is OK.
24244exec 5>>config.log
24245{
24246 echo
24247 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24248## Running $as_me. ##
24249_ASBOX
24250} >&5
24251cat >&5 <<_CSEOF
24252
Reid Spencere9de0912004-08-20 09:03:57 +000024253This file was extended by LLVM $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000024254generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000024255
24256 CONFIG_FILES = $CONFIG_FILES
24257 CONFIG_HEADERS = $CONFIG_HEADERS
24258 CONFIG_LINKS = $CONFIG_LINKS
24259 CONFIG_COMMANDS = $CONFIG_COMMANDS
24260 $ $0 $@
24261
24262_CSEOF
24263echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24264echo >&5
24265_ACEOF
24266
24267# Files that config.status was made for.
24268if test -n "$ac_config_files"; then
24269 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24270fi
24271
24272if test -n "$ac_config_headers"; then
24273 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24274fi
24275
24276if test -n "$ac_config_links"; then
24277 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24278fi
24279
24280if test -n "$ac_config_commands"; then
24281 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24282fi
24283
24284cat >>$CONFIG_STATUS <<\_ACEOF
24285
24286ac_cs_usage="\
24287\`$as_me' instantiates files from templates according to the
24288current configuration.
24289
24290Usage: $0 [OPTIONS] [FILE]...
24291
24292 -h, --help print this help, then exit
24293 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000024294 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000024295 -d, --debug don't remove temporary files
24296 --recheck update $as_me by reconfiguring in the same conditions
24297 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000024298 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000024299 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000024300 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000024301
24302Configuration files:
24303$config_files
24304
24305Configuration headers:
24306$config_headers
24307
Reid Spencerde8c47f2004-08-29 19:35:28 +000024308Configuration links:
24309$config_links
24310
John Criswellc764fbc2003-09-06 15:17:13 +000024311Configuration commands:
24312$config_commands
24313
John Criswell7a73b802003-06-30 21:59:07 +000024314Report bugs to <bug-autoconf@gnu.org>."
24315_ACEOF
24316
24317cat >>$CONFIG_STATUS <<_ACEOF
24318ac_cs_version="\\
Reid Spencere9de0912004-08-20 09:03:57 +000024319LLVM config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000024320configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000024321 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24322
Reid Spencer2706f8c2004-09-19 23:53:36 +000024323Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000024324This config.status script is free software; the Free Software Foundation
24325gives unlimited permission to copy, distribute and modify it."
24326srcdir=$srcdir
24327INSTALL="$INSTALL"
24328_ACEOF
24329
24330cat >>$CONFIG_STATUS <<\_ACEOF
24331# If no file are specified by the user, then we need to provide default
24332# value. By we need to know if files were specified by the user.
24333ac_need_defaults=:
24334while test $# != 0
24335do
24336 case $1 in
24337 --*=*)
24338 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24339 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024340 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000024341 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024342 -*)
24343 ac_option=$1
24344 ac_optarg=$2
24345 ac_shift=shift
24346 ;;
John Criswell7a73b802003-06-30 21:59:07 +000024347 *) # This is not an option, so the user has probably given explicit
24348 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000024349 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000024350 ac_need_defaults=false;;
24351 esac
24352
John Criswell0c38eaf2003-09-10 15:17:25 +000024353 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000024354 # Handling of the options.
24355_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000024356cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024357 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24358 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024359 --version | --vers* | -V )
24360 echo "$ac_cs_version"; exit 0 ;;
24361 --he | --h)
24362 # Conflict between --help and --header
24363 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24364Try \`$0 --help' for more information." >&5
24365echo "$as_me: error: ambiguous option: $1
24366Try \`$0 --help' for more information." >&2;}
24367 { (exit 1); exit 1; }; };;
24368 --help | --hel | -h )
24369 echo "$ac_cs_usage"; exit 0 ;;
24370 --debug | --d* | -d )
24371 debug=: ;;
24372 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000024373 $ac_shift
24374 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024375 ac_need_defaults=false;;
24376 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000024377 $ac_shift
24378 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024379 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024380 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24381 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24382 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024383
24384 # This is an error.
24385 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24386Try \`$0 --help' for more information." >&5
24387echo "$as_me: error: unrecognized option: $1
24388Try \`$0 --help' for more information." >&2;}
24389 { (exit 1); exit 1; }; } ;;
24390
24391 *) ac_config_targets="$ac_config_targets $1" ;;
24392
24393 esac
24394 shift
24395done
24396
John Criswell0c38eaf2003-09-10 15:17:25 +000024397ac_configure_extra_args=
24398
24399if $ac_cs_silent; then
24400 exec 6>/dev/null
24401 ac_configure_extra_args="$ac_configure_extra_args --silent"
24402fi
24403
24404_ACEOF
24405cat >>$CONFIG_STATUS <<_ACEOF
24406if \$ac_cs_recheck; then
24407 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24408 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24409fi
24410
John Criswell7a73b802003-06-30 21:59:07 +000024411_ACEOF
24412
John Criswellc764fbc2003-09-06 15:17:13 +000024413cat >>$CONFIG_STATUS <<_ACEOF
24414#
24415# INIT-COMMANDS section.
24416#
John Criswell7a73b802003-06-30 21:59:07 +000024417
John Criswellc764fbc2003-09-06 15:17:13 +000024418${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24419${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000024420${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024421${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024422${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024423${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24424${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000024425${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24426${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000024427${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000024428${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024429${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024430
24431_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024432
24433
24434
24435cat >>$CONFIG_STATUS <<\_ACEOF
24436for ac_config_target in $ac_config_targets
24437do
24438 case "$ac_config_target" in
24439 # Handling of arguments.
24440 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000024441 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24442 "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
24443 "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
24444 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +000024445 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024446 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24447 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000024448 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024449 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024450 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024451 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24452 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000024453 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24454 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024455 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024456 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024457 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000024458 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000024459 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell7a73b802003-06-30 21:59:07 +000024460 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24461echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24462 { (exit 1); exit 1; }; };;
24463 esac
24464done
24465
24466# If the user did not use the arguments to specify the items to instantiate,
24467# then the envvar interface is used. Set only those that are not.
24468# We use the long form for the default assignment because of an extremely
24469# bizarre bug on SunOS 4.1.3.
24470if $ac_need_defaults; then
24471 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24472 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000024473 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000024474 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000024475fi
24476
John Criswell0c38eaf2003-09-10 15:17:25 +000024477# Have a temporary directory for convenience. Make it in the build tree
24478# simply because there is no reason to put it here, and in addition,
24479# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000024480# Create a temporary directory, and hook for its removal unless debugging.
24481$debug ||
24482{
24483 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24484 trap '{ (exit 1); exit 1; }' 1 2 13 15
24485}
24486
24487# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000024488
John Criswell7a73b802003-06-30 21:59:07 +000024489{
John Criswell0c38eaf2003-09-10 15:17:25 +000024490 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000024491 test -n "$tmp" && test -d "$tmp"
24492} ||
24493{
John Criswell0c38eaf2003-09-10 15:17:25 +000024494 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000024495 (umask 077 && mkdir $tmp)
24496} ||
24497{
John Criswell0c38eaf2003-09-10 15:17:25 +000024498 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000024499 { (exit 1); exit 1; }
24500}
24501
24502_ACEOF
24503
24504cat >>$CONFIG_STATUS <<_ACEOF
24505
24506#
24507# CONFIG_FILES section.
24508#
24509
24510# No need to generate the scripts if there are no CONFIG_FILES.
24511# This happens for instance when ./config.status config.h
24512if test -n "\$CONFIG_FILES"; then
24513 # Protect against being on the right side of a sed subst in config.status.
24514 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24515 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24516s,@SHELL@,$SHELL,;t t
24517s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24518s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24519s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24520s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24521s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24522s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24523s,@exec_prefix@,$exec_prefix,;t t
24524s,@prefix@,$prefix,;t t
24525s,@program_transform_name@,$program_transform_name,;t t
24526s,@bindir@,$bindir,;t t
24527s,@sbindir@,$sbindir,;t t
24528s,@libexecdir@,$libexecdir,;t t
24529s,@datadir@,$datadir,;t t
24530s,@sysconfdir@,$sysconfdir,;t t
24531s,@sharedstatedir@,$sharedstatedir,;t t
24532s,@localstatedir@,$localstatedir,;t t
24533s,@libdir@,$libdir,;t t
24534s,@includedir@,$includedir,;t t
24535s,@oldincludedir@,$oldincludedir,;t t
24536s,@infodir@,$infodir,;t t
24537s,@mandir@,$mandir,;t t
24538s,@build_alias@,$build_alias,;t t
24539s,@host_alias@,$host_alias,;t t
24540s,@target_alias@,$target_alias,;t t
24541s,@DEFS@,$DEFS,;t t
24542s,@ECHO_C@,$ECHO_C,;t t
24543s,@ECHO_N@,$ECHO_N,;t t
24544s,@ECHO_T@,$ECHO_T,;t t
24545s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000024546s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024547s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24548s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24549s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24550s,@build@,$build,;t t
24551s,@build_cpu@,$build_cpu,;t t
24552s,@build_vendor@,$build_vendor,;t t
24553s,@build_os@,$build_os,;t t
24554s,@host@,$host,;t t
24555s,@host_cpu@,$host_cpu,;t t
24556s,@host_vendor@,$host_vendor,;t t
24557s,@host_os@,$host_os,;t t
24558s,@target@,$target,;t t
24559s,@target_cpu@,$target_cpu,;t t
24560s,@target_vendor@,$target_vendor,;t t
24561s,@target_os@,$target_os,;t t
24562s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024563s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000024564s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024565s,@CXX@,$CXX,;t t
24566s,@CXXFLAGS@,$CXXFLAGS,;t t
24567s,@LDFLAGS@,$LDFLAGS,;t t
24568s,@CPPFLAGS@,$CPPFLAGS,;t t
24569s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24570s,@EXEEXT@,$EXEEXT,;t t
24571s,@OBJEXT@,$OBJEXT,;t t
24572s,@CC@,$CC,;t t
24573s,@CFLAGS@,$CFLAGS,;t t
24574s,@ac_ct_CC@,$ac_ct_CC,;t t
24575s,@CPP@,$CPP,;t t
24576s,@ifGNUmake@,$ifGNUmake,;t t
24577s,@LEX@,$LEX,;t t
24578s,@LEXLIB@,$LEXLIB,;t t
24579s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000024580s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024581s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000024582s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024583s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024584s,@LN_S@,$LN_S,;t t
24585s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024586s,@AR@,$AR,;t t
24587s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024588s,@RANLIB@,$RANLIB,;t t
24589s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24590s,@STRIP@,$STRIP,;t t
24591s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024592s,@CXXCPP@,$CXXCPP,;t t
24593s,@F77@,$F77,;t t
24594s,@FFLAGS@,$FFLAGS,;t t
24595s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024596s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024597s,@DOT@,$DOT,;t t
24598s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000024599s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000024600s,@PYTHON@,$PYTHON,;t t
24601s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000024602s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
John Criswell0021c312004-02-13 21:57:29 +000024603s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000024604s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24605s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24606s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24607s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24608s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24609s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000024610s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24611s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24612s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024613s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024614s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024615s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024616s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000024617s,@LLVMCC1@,$LLVMCC1,;t t
24618s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000024619s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000024620s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24621s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24622s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24623s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24624s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24625s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24626s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24627s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24628s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24629s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000024630s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000024631s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024632CEOF
24633
24634_ACEOF
24635
24636 cat >>$CONFIG_STATUS <<\_ACEOF
24637 # Split the substitutions into bite-sized pieces for seds with
24638 # small command number limits, like on Digital OSF/1 and HP-UX.
24639 ac_max_sed_lines=48
24640 ac_sed_frag=1 # Number of current file.
24641 ac_beg=1 # First line for current file.
24642 ac_end=$ac_max_sed_lines # Line after last line for current file.
24643 ac_more_lines=:
24644 ac_sed_cmds=
24645 while $ac_more_lines; do
24646 if test $ac_beg -gt 1; then
24647 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24648 else
24649 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24650 fi
24651 if test ! -s $tmp/subs.frag; then
24652 ac_more_lines=false
24653 else
24654 # The purpose of the label and of the branching condition is to
24655 # speed up the sed processing (if there are no `@' at all, there
24656 # is no need to browse any of the substitutions).
24657 # These are the two extra sed commands mentioned above.
24658 (echo ':t
24659 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24660 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024661 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024662 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024663 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024664 fi
24665 ac_sed_frag=`expr $ac_sed_frag + 1`
24666 ac_beg=$ac_end
24667 ac_end=`expr $ac_end + $ac_max_sed_lines`
24668 fi
24669 done
24670 if test -z "$ac_sed_cmds"; then
24671 ac_sed_cmds=cat
24672 fi
24673fi # test -n "$CONFIG_FILES"
24674
24675_ACEOF
24676cat >>$CONFIG_STATUS <<\_ACEOF
24677for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24678 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24679 case $ac_file in
24680 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000024681 cat >$tmp/stdin
24682 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24683 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024684 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000024685 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024686 * ) ac_file_in=$ac_file.in ;;
24687 esac
24688
24689 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24690 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24691$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024692 X"$ac_file" : 'X\(//\)[^/]' \| \
24693 X"$ac_file" : 'X\(//\)$' \| \
24694 X"$ac_file" : 'X\(/\)' \| \
24695 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000024696echo X"$ac_file" |
24697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24698 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24699 /^X\(\/\/\)$/{ s//\1/; q; }
24700 /^X\(\/\).*/{ s//\1/; q; }
24701 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024702 { if $as_mkdir_p; then
24703 mkdir -p "$ac_dir"
24704 else
24705 as_dir="$ac_dir"
24706 as_dirs=
24707 while test ! -d "$as_dir"; do
24708 as_dirs="$as_dir $as_dirs"
24709 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24710$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024711 X"$as_dir" : 'X\(//\)[^/]' \| \
24712 X"$as_dir" : 'X\(//\)$' \| \
24713 X"$as_dir" : 'X\(/\)' \| \
24714 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000024715echo X"$as_dir" |
24716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24718 /^X\(\/\/\)$/{ s//\1/; q; }
24719 /^X\(\/\).*/{ s//\1/; q; }
24720 s/.*/./; q'`
24721 done
24722 test ! -n "$as_dirs" || mkdir $as_dirs
24723 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24724echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24725 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024726
24727 ac_builddir=.
24728
24729if test "$ac_dir" != .; then
24730 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24731 # A "../" for each directory in $ac_dir_suffix.
24732 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24733else
24734 ac_dir_suffix= ac_top_builddir=
24735fi
24736
24737case $srcdir in
24738 .) # No --srcdir option. We are building in place.
24739 ac_srcdir=.
24740 if test -z "$ac_top_builddir"; then
24741 ac_top_srcdir=.
24742 else
24743 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24744 fi ;;
24745 [\\/]* | ?:[\\/]* ) # Absolute path.
24746 ac_srcdir=$srcdir$ac_dir_suffix;
24747 ac_top_srcdir=$srcdir ;;
24748 *) # Relative path.
24749 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24750 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24751esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024752
24753# Do not use `cd foo && pwd` to compute absolute paths, because
24754# the directories may not exist.
24755case `pwd` in
24756.) ac_abs_builddir="$ac_dir";;
24757*)
24758 case "$ac_dir" in
24759 .) ac_abs_builddir=`pwd`;;
24760 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24761 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24762 esac;;
24763esac
24764case $ac_abs_builddir in
24765.) ac_abs_top_builddir=${ac_top_builddir}.;;
24766*)
24767 case ${ac_top_builddir}. in
24768 .) ac_abs_top_builddir=$ac_abs_builddir;;
24769 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24770 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24771 esac;;
24772esac
24773case $ac_abs_builddir in
24774.) ac_abs_srcdir=$ac_srcdir;;
24775*)
24776 case $ac_srcdir in
24777 .) ac_abs_srcdir=$ac_abs_builddir;;
24778 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24779 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24780 esac;;
24781esac
24782case $ac_abs_builddir in
24783.) ac_abs_top_srcdir=$ac_top_srcdir;;
24784*)
24785 case $ac_top_srcdir in
24786 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24787 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24788 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24789 esac;;
24790esac
John Criswell7a73b802003-06-30 21:59:07 +000024791
24792
24793 case $INSTALL in
24794 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24795 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24796 esac
24797
24798 if test x"$ac_file" != x-; then
24799 { echo "$as_me:$LINENO: creating $ac_file" >&5
24800echo "$as_me: creating $ac_file" >&6;}
24801 rm -f "$ac_file"
24802 fi
24803 # Let's still pretend it is `configure' which instantiates (i.e., don't
24804 # use $as_me), people would be surprised to read:
24805 # /* config.h. Generated by config.status. */
24806 if test x"$ac_file" = x-; then
24807 configure_input=
24808 else
24809 configure_input="$ac_file. "
24810 fi
24811 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000024812 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000024813
24814 # First look for the input files in the build tree, otherwise in the
24815 # src tree.
24816 ac_file_inputs=`IFS=:
24817 for f in $ac_file_in; do
24818 case $f in
24819 -) echo $tmp/stdin ;;
24820 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024821 # Absolute (can't be DOS-style, as IFS=:)
24822 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024823echo "$as_me: error: cannot find input file: $f" >&2;}
24824 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024825 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024826 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000024827 if test -f "$f"; then
24828 # Build tree
24829 echo "$f"
24830 elif test -f "$srcdir/$f"; then
24831 # Source tree
24832 echo "$srcdir/$f"
24833 else
24834 # /dev/null tree
24835 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024836echo "$as_me: error: cannot find input file: $f" >&2;}
24837 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024838 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024839 esac
24840 done` || { (exit 1); exit 1; }
24841_ACEOF
24842cat >>$CONFIG_STATUS <<_ACEOF
24843 sed "$ac_vpsub
24844$extrasub
24845_ACEOF
24846cat >>$CONFIG_STATUS <<\_ACEOF
24847:t
24848/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24849s,@configure_input@,$configure_input,;t t
24850s,@srcdir@,$ac_srcdir,;t t
24851s,@abs_srcdir@,$ac_abs_srcdir,;t t
24852s,@top_srcdir@,$ac_top_srcdir,;t t
24853s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24854s,@builddir@,$ac_builddir,;t t
24855s,@abs_builddir@,$ac_abs_builddir,;t t
24856s,@top_builddir@,$ac_top_builddir,;t t
24857s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24858s,@INSTALL@,$ac_INSTALL,;t t
24859" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24860 rm -f $tmp/stdin
24861 if test x"$ac_file" != x-; then
24862 mv $tmp/out $ac_file
24863 else
24864 cat $tmp/out
24865 rm -f $tmp/out
24866 fi
24867
24868done
24869_ACEOF
24870cat >>$CONFIG_STATUS <<\_ACEOF
24871
24872#
24873# CONFIG_HEADER section.
24874#
24875
24876# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24877# NAME is the cpp macro being defined and VALUE is the value it is being given.
24878#
24879# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024880ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24881ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000024882ac_dC=' '
24883ac_dD=',;t'
24884# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000024885ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000024886ac_uB='$,\1#\2define\3'
24887ac_uC=' '
24888ac_uD=',;t'
24889
24890for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24891 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24892 case $ac_file in
24893 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000024894 cat >$tmp/stdin
24895 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24896 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024897 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000024898 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024899 * ) ac_file_in=$ac_file.in ;;
24900 esac
24901
24902 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24903echo "$as_me: creating $ac_file" >&6;}
24904
24905 # First look for the input files in the build tree, otherwise in the
24906 # src tree.
24907 ac_file_inputs=`IFS=:
24908 for f in $ac_file_in; do
24909 case $f in
24910 -) echo $tmp/stdin ;;
24911 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024912 # Absolute (can't be DOS-style, as IFS=:)
24913 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024914echo "$as_me: error: cannot find input file: $f" >&2;}
24915 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024916 # Do quote $f, to prevent DOS paths from being IFS'd.
24917 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024918 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000024919 if test -f "$f"; then
24920 # Build tree
24921 echo "$f"
24922 elif test -f "$srcdir/$f"; then
24923 # Source tree
24924 echo "$srcdir/$f"
24925 else
24926 # /dev/null tree
24927 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024928echo "$as_me: error: cannot find input file: $f" >&2;}
24929 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024930 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024931 esac
24932 done` || { (exit 1); exit 1; }
24933 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024934 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000024935
24936_ACEOF
24937
24938# Transform confdefs.h into two sed scripts, `conftest.defines' and
24939# `conftest.undefs', that substitutes the proper values into
24940# config.h.in to produce config.h. The first handles `#define'
24941# templates, and the second `#undef' templates.
24942# And first: Protect against being on the right side of a sed subst in
24943# config.status. Protect against being in an unquoted here document
24944# in config.status.
24945rm -f conftest.defines conftest.undefs
24946# Using a here document instead of a string reduces the quoting nightmare.
24947# Putting comments in sed scripts is not portable.
24948#
24949# `end' is used to avoid that the second main sed command (meant for
24950# 0-ary CPP macros) applies to n-ary macro definitions.
24951# See the Autoconf documentation for `clear'.
24952cat >confdef2sed.sed <<\_ACEOF
24953s/[\\&,]/\\&/g
24954s,[\\$`],\\&,g
24955t clear
24956: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000024957s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024958t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000024959s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024960: end
24961_ACEOF
24962# If some macros were called several times there might be several times
24963# the same #defines, which is useless. Nevertheless, we may not want to
24964# sort them, since we want the *last* AC-DEFINE to be honored.
24965uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24966sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24967rm -f confdef2sed.sed
24968
24969# This sed command replaces #undef with comments. This is necessary, for
24970# example, in the case of _POSIX_SOURCE, which is predefined and required
24971# on some systems where configure will not decide to define it.
24972cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000024973s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000024974_ACEOF
24975
24976# Break up conftest.defines because some shells have a limit on the size
24977# of here documents, and old seds have small limits too (100 cmds).
24978echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000024979echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024980echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24981echo ' :' >>$CONFIG_STATUS
24982rm -f conftest.tail
24983while grep . conftest.defines >/dev/null
24984do
24985 # Write a limited-size here document to $tmp/defines.sed.
24986 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24987 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024988 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024989 # Work around the forget-to-reset-the-flag bug.
24990 echo 't clr' >>$CONFIG_STATUS
24991 echo ': clr' >>$CONFIG_STATUS
24992 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24993 echo 'CEOF
24994 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24995 rm -f $tmp/in
24996 mv $tmp/out $tmp/in
24997' >>$CONFIG_STATUS
24998 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24999 rm -f conftest.defines
25000 mv conftest.tail conftest.defines
25001done
25002rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000025003echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025004echo >>$CONFIG_STATUS
25005
25006# Break up conftest.undefs because some shells have a limit on the size
25007# of here documents, and old seds have small limits too (100 cmds).
25008echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25009rm -f conftest.tail
25010while grep . conftest.undefs >/dev/null
25011do
25012 # Write a limited-size here document to $tmp/undefs.sed.
25013 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25014 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025015 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025016 # Work around the forget-to-reset-the-flag bug.
25017 echo 't clr' >>$CONFIG_STATUS
25018 echo ': clr' >>$CONFIG_STATUS
25019 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25020 echo 'CEOF
25021 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25022 rm -f $tmp/in
25023 mv $tmp/out $tmp/in
25024' >>$CONFIG_STATUS
25025 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25026 rm -f conftest.undefs
25027 mv conftest.tail conftest.undefs
25028done
25029rm -f conftest.undefs
25030
25031cat >>$CONFIG_STATUS <<\_ACEOF
25032 # Let's still pretend it is `configure' which instantiates (i.e., don't
25033 # use $as_me), people would be surprised to read:
25034 # /* config.h. Generated by config.status. */
25035 if test x"$ac_file" = x-; then
25036 echo "/* Generated by configure. */" >$tmp/config.h
25037 else
25038 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25039 fi
25040 cat $tmp/in >>$tmp/config.h
25041 rm -f $tmp/in
25042 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000025043 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025044 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25045echo "$as_me: $ac_file is unchanged" >&6;}
25046 else
25047 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25048$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025049 X"$ac_file" : 'X\(//\)[^/]' \| \
25050 X"$ac_file" : 'X\(//\)$' \| \
25051 X"$ac_file" : 'X\(/\)' \| \
25052 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025053echo X"$ac_file" |
25054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25055 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25056 /^X\(\/\/\)$/{ s//\1/; q; }
25057 /^X\(\/\).*/{ s//\1/; q; }
25058 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025059 { if $as_mkdir_p; then
25060 mkdir -p "$ac_dir"
25061 else
25062 as_dir="$ac_dir"
25063 as_dirs=
25064 while test ! -d "$as_dir"; do
25065 as_dirs="$as_dir $as_dirs"
25066 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25067$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025068 X"$as_dir" : 'X\(//\)[^/]' \| \
25069 X"$as_dir" : 'X\(//\)$' \| \
25070 X"$as_dir" : 'X\(/\)' \| \
25071 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025072echo X"$as_dir" |
25073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25074 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25075 /^X\(\/\/\)$/{ s//\1/; q; }
25076 /^X\(\/\).*/{ s//\1/; q; }
25077 s/.*/./; q'`
25078 done
25079 test ! -n "$as_dirs" || mkdir $as_dirs
25080 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25081echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25082 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025083
25084 rm -f $ac_file
25085 mv $tmp/config.h $ac_file
25086 fi
25087 else
25088 cat $tmp/config.h
25089 rm -f $tmp/config.h
25090 fi
25091done
25092_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000025093cat >>$CONFIG_STATUS <<\_ACEOF
25094
25095#
Reid Spencerde8c47f2004-08-29 19:35:28 +000025096# CONFIG_LINKS section.
25097#
25098
25099for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25100 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25101 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25102
25103 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25104echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25105
25106 if test ! -r $srcdir/$ac_source; then
25107 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25108echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25109 { (exit 1); exit 1; }; }
25110 fi
25111 rm -f $ac_dest
25112
25113 # Make relative symlinks.
25114 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25115$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025116 X"$ac_dest" : 'X\(//\)[^/]' \| \
25117 X"$ac_dest" : 'X\(//\)$' \| \
25118 X"$ac_dest" : 'X\(/\)' \| \
25119 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025120echo X"$ac_dest" |
25121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25122 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25123 /^X\(\/\/\)$/{ s//\1/; q; }
25124 /^X\(\/\).*/{ s//\1/; q; }
25125 s/.*/./; q'`
25126 { if $as_mkdir_p; then
25127 mkdir -p "$ac_dest_dir"
25128 else
25129 as_dir="$ac_dest_dir"
25130 as_dirs=
25131 while test ! -d "$as_dir"; do
25132 as_dirs="$as_dir $as_dirs"
25133 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25134$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025135 X"$as_dir" : 'X\(//\)[^/]' \| \
25136 X"$as_dir" : 'X\(//\)$' \| \
25137 X"$as_dir" : 'X\(/\)' \| \
25138 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025139echo X"$as_dir" |
25140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25141 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25142 /^X\(\/\/\)$/{ s//\1/; q; }
25143 /^X\(\/\).*/{ s//\1/; q; }
25144 s/.*/./; q'`
25145 done
25146 test ! -n "$as_dirs" || mkdir $as_dirs
25147 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25148echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25149 { (exit 1); exit 1; }; }; }
25150
25151 ac_builddir=.
25152
25153if test "$ac_dest_dir" != .; then
25154 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25155 # A "../" for each directory in $ac_dir_suffix.
25156 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25157else
25158 ac_dir_suffix= ac_top_builddir=
25159fi
25160
25161case $srcdir in
25162 .) # No --srcdir option. We are building in place.
25163 ac_srcdir=.
25164 if test -z "$ac_top_builddir"; then
25165 ac_top_srcdir=.
25166 else
25167 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25168 fi ;;
25169 [\\/]* | ?:[\\/]* ) # Absolute path.
25170 ac_srcdir=$srcdir$ac_dir_suffix;
25171 ac_top_srcdir=$srcdir ;;
25172 *) # Relative path.
25173 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25174 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25175esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025176
25177# Do not use `cd foo && pwd` to compute absolute paths, because
25178# the directories may not exist.
25179case `pwd` in
25180.) ac_abs_builddir="$ac_dest_dir";;
25181*)
25182 case "$ac_dest_dir" in
25183 .) ac_abs_builddir=`pwd`;;
25184 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25185 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25186 esac;;
25187esac
25188case $ac_abs_builddir in
25189.) ac_abs_top_builddir=${ac_top_builddir}.;;
25190*)
25191 case ${ac_top_builddir}. in
25192 .) ac_abs_top_builddir=$ac_abs_builddir;;
25193 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25194 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25195 esac;;
25196esac
25197case $ac_abs_builddir in
25198.) ac_abs_srcdir=$ac_srcdir;;
25199*)
25200 case $ac_srcdir in
25201 .) ac_abs_srcdir=$ac_abs_builddir;;
25202 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25203 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25204 esac;;
25205esac
25206case $ac_abs_builddir in
25207.) ac_abs_top_srcdir=$ac_top_srcdir;;
25208*)
25209 case $ac_top_srcdir in
25210 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25211 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25212 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25213 esac;;
25214esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000025215
25216
25217 case $srcdir in
25218 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25219 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25220 esac
25221
25222 # Try a symlink, then a hard link, then a copy.
25223 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25224 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25225 cp -p $srcdir/$ac_source $ac_dest ||
25226 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25227echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25228 { (exit 1); exit 1; }; }
25229done
25230_ACEOF
25231cat >>$CONFIG_STATUS <<\_ACEOF
25232
25233#
John Criswellc764fbc2003-09-06 15:17:13 +000025234# CONFIG_COMMANDS section.
25235#
25236for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25237 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25238 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25239 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25240$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025241 X"$ac_dest" : 'X\(//\)[^/]' \| \
25242 X"$ac_dest" : 'X\(//\)$' \| \
25243 X"$ac_dest" : 'X\(/\)' \| \
25244 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000025245echo X"$ac_dest" |
25246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25247 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25248 /^X\(\/\/\)$/{ s//\1/; q; }
25249 /^X\(\/\).*/{ s//\1/; q; }
25250 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025251 { if $as_mkdir_p; then
25252 mkdir -p "$ac_dir"
25253 else
25254 as_dir="$ac_dir"
25255 as_dirs=
25256 while test ! -d "$as_dir"; do
25257 as_dirs="$as_dir $as_dirs"
25258 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25259$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25260 X"$as_dir" : 'X\(//\)[^/]' \| \
25261 X"$as_dir" : 'X\(//\)$' \| \
25262 X"$as_dir" : 'X\(/\)' \| \
25263 . : '\(.\)' 2>/dev/null ||
25264echo X"$as_dir" |
25265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25266 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25267 /^X\(\/\/\)$/{ s//\1/; q; }
25268 /^X\(\/\).*/{ s//\1/; q; }
25269 s/.*/./; q'`
25270 done
25271 test ! -n "$as_dirs" || mkdir $as_dirs
25272 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25273echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25274 { (exit 1); exit 1; }; }; }
25275
John Criswellc764fbc2003-09-06 15:17:13 +000025276 ac_builddir=.
25277
25278if test "$ac_dir" != .; then
25279 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25280 # A "../" for each directory in $ac_dir_suffix.
25281 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25282else
25283 ac_dir_suffix= ac_top_builddir=
25284fi
25285
25286case $srcdir in
25287 .) # No --srcdir option. We are building in place.
25288 ac_srcdir=.
25289 if test -z "$ac_top_builddir"; then
25290 ac_top_srcdir=.
25291 else
25292 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25293 fi ;;
25294 [\\/]* | ?:[\\/]* ) # Absolute path.
25295 ac_srcdir=$srcdir$ac_dir_suffix;
25296 ac_top_srcdir=$srcdir ;;
25297 *) # Relative path.
25298 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25299 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25300esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025301
25302# Do not use `cd foo && pwd` to compute absolute paths, because
25303# the directories may not exist.
25304case `pwd` in
25305.) ac_abs_builddir="$ac_dir";;
25306*)
25307 case "$ac_dir" in
25308 .) ac_abs_builddir=`pwd`;;
25309 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25310 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25311 esac;;
25312esac
25313case $ac_abs_builddir in
25314.) ac_abs_top_builddir=${ac_top_builddir}.;;
25315*)
25316 case ${ac_top_builddir}. in
25317 .) ac_abs_top_builddir=$ac_abs_builddir;;
25318 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25319 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25320 esac;;
25321esac
25322case $ac_abs_builddir in
25323.) ac_abs_srcdir=$ac_srcdir;;
25324*)
25325 case $ac_srcdir in
25326 .) ac_abs_srcdir=$ac_abs_builddir;;
25327 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25328 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25329 esac;;
25330esac
25331case $ac_abs_builddir in
25332.) ac_abs_top_srcdir=$ac_top_srcdir;;
25333*)
25334 case $ac_top_srcdir in
25335 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25336 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25337 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25338 esac;;
25339esac
John Criswellc764fbc2003-09-06 15:17:13 +000025340
25341
25342 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25343echo "$as_me: executing $ac_dest commands" >&6;}
25344 case $ac_dest in
25345 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25346 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025347 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025348 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025349 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025350 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25351 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000025352 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25353 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 +000025354 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025355 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025356 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025357 esac
25358done
25359_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025360
25361cat >>$CONFIG_STATUS <<\_ACEOF
25362
25363{ (exit 0); exit 0; }
25364_ACEOF
25365chmod +x $CONFIG_STATUS
25366ac_clean_files=$ac_clean_files_save
25367
25368
25369# configure is writing to config.log, and then calls config.status.
25370# config.status does its own redirection, appending to config.log.
25371# Unfortunately, on DOS this fails, as config.log is still kept open
25372# by configure, so config.status won't be able to write to it; its
25373# output is simply discarded. So we exec the FD to /dev/null,
25374# effectively closing config.log, so it can be properly (re)opened and
25375# appended to by config.status. When coming back to configure, we
25376# need to make the FD available again.
25377if test "$no_create" != yes; then
25378 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000025379 ac_config_status_args=
25380 test "$silent" = yes &&
25381 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000025382 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000025383 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000025384 exec 5>>config.log
25385 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25386 # would make configure fail if this is the last instruction.
25387 $ac_cs_success || { (exit 1); exit 1; }
25388fi
25389
John Criswell12399a12003-09-30 15:55:44 +000025390#
25391# CONFIG_SUBDIRS section.
25392#
25393if test "$no_recursion" != yes; then
25394
25395 # Remove --cache-file and --srcdir arguments so they do not pile up.
25396 ac_sub_configure_args=
25397 ac_prev=
25398 for ac_arg in $ac_configure_args; do
25399 if test -n "$ac_prev"; then
25400 ac_prev=
25401 continue
25402 fi
25403 case $ac_arg in
25404 -cache-file | --cache-file | --cache-fil | --cache-fi \
25405 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25406 ac_prev=cache_file ;;
25407 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25408 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25409 | --c=*)
25410 ;;
25411 --config-cache | -C)
25412 ;;
25413 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25414 ac_prev=srcdir ;;
25415 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25416 ;;
25417 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25418 ac_prev=prefix ;;
25419 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25420 ;;
25421 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25422 esac
25423 done
25424
25425 # Always prepend --prefix to ensure using the same prefix
25426 # in subdir configurations.
25427 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25428
25429 ac_popdir=`pwd`
25430 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25431
25432 # Do not complain, so a configure script can configure whichever
25433 # parts of a large source tree are present.
25434 test -d $srcdir/$ac_dir || continue
25435
25436 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25437echo "$as_me: configuring in $ac_dir" >&6;}
25438 { if $as_mkdir_p; then
25439 mkdir -p "$ac_dir"
25440 else
25441 as_dir="$ac_dir"
25442 as_dirs=
25443 while test ! -d "$as_dir"; do
25444 as_dirs="$as_dir $as_dirs"
25445 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25446$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025447 X"$as_dir" : 'X\(//\)[^/]' \| \
25448 X"$as_dir" : 'X\(//\)$' \| \
25449 X"$as_dir" : 'X\(/\)' \| \
25450 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000025451echo X"$as_dir" |
25452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25453 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25454 /^X\(\/\/\)$/{ s//\1/; q; }
25455 /^X\(\/\).*/{ s//\1/; q; }
25456 s/.*/./; q'`
25457 done
25458 test ! -n "$as_dirs" || mkdir $as_dirs
25459 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25460echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25461 { (exit 1); exit 1; }; }; }
25462
25463 ac_builddir=.
25464
25465if test "$ac_dir" != .; then
25466 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25467 # A "../" for each directory in $ac_dir_suffix.
25468 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25469else
25470 ac_dir_suffix= ac_top_builddir=
25471fi
25472
25473case $srcdir in
25474 .) # No --srcdir option. We are building in place.
25475 ac_srcdir=.
25476 if test -z "$ac_top_builddir"; then
25477 ac_top_srcdir=.
25478 else
25479 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25480 fi ;;
25481 [\\/]* | ?:[\\/]* ) # Absolute path.
25482 ac_srcdir=$srcdir$ac_dir_suffix;
25483 ac_top_srcdir=$srcdir ;;
25484 *) # Relative path.
25485 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25486 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25487esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025488
25489# Do not use `cd foo && pwd` to compute absolute paths, because
25490# the directories may not exist.
25491case `pwd` in
25492.) ac_abs_builddir="$ac_dir";;
25493*)
25494 case "$ac_dir" in
25495 .) ac_abs_builddir=`pwd`;;
25496 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25497 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25498 esac;;
25499esac
25500case $ac_abs_builddir in
25501.) ac_abs_top_builddir=${ac_top_builddir}.;;
25502*)
25503 case ${ac_top_builddir}. in
25504 .) ac_abs_top_builddir=$ac_abs_builddir;;
25505 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25506 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25507 esac;;
25508esac
25509case $ac_abs_builddir in
25510.) ac_abs_srcdir=$ac_srcdir;;
25511*)
25512 case $ac_srcdir in
25513 .) ac_abs_srcdir=$ac_abs_builddir;;
25514 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25515 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25516 esac;;
25517esac
25518case $ac_abs_builddir in
25519.) ac_abs_top_srcdir=$ac_top_srcdir;;
25520*)
25521 case $ac_top_srcdir in
25522 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25523 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25524 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25525 esac;;
25526esac
John Criswell12399a12003-09-30 15:55:44 +000025527
25528
25529 cd $ac_dir
25530
25531 # Check for guested configure; otherwise get Cygnus style configure.
25532 if test -f $ac_srcdir/configure.gnu; then
25533 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25534 elif test -f $ac_srcdir/configure; then
25535 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25536 elif test -f $ac_srcdir/configure.in; then
25537 ac_sub_configure=$ac_configure
25538 else
25539 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25540echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25541 ac_sub_configure=
25542 fi
25543
25544 # The recursion is here.
25545 if test -n "$ac_sub_configure"; then
25546 # Make the cache file name correct relative to the subdirectory.
25547 case $cache_file in
25548 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25549 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025550 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000025551 esac
25552
25553 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25554echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25555 # The eval makes quoting arguments work.
25556 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025557 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25558 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000025559echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25560 { (exit 1); exit 1; }; }
25561 fi
25562
25563 cd $ac_popdir
25564 done
25565fi
25566
Brian Gaekef3b24102003-11-16 18:38:14 +000025567
25568if test $llvmgccwarn = yes
25569then
25570 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25571echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25572 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25573echo "$as_me: WARNING: ***** appear to be working." >&2;}
25574 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25575echo "$as_me: WARNING: ***** " >&2;}
25576 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25577echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25578 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25579echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25580 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25581echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25582fi
Brian Gaeke554831c2004-01-21 19:39:29 +000025583