blob: 33dda9462f54babc0c6085c858f3338c43ed5c26 [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 Criswell9f011862004-09-24 18:28:00 +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_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 Criswell9f011862004-09-24 18:28:00 +00001601 ac_config_files="$ac_config_files Makefile.config include/llvm/Support/ThreadSupport.h include/llvm/ADT/iterator"
John Criswell5fbb1f82004-09-24 13:28:51 +00001602
1603 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
John Criswelldc76e322004-07-23 15:40:57 +00001604
John Criswell9f011862004-09-24 18:28:00 +00001605 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_map"
1606
1607 ac_config_headers="$ac_config_headers include/llvm/ADT/hash_set"
1608
John Criswelldc76e322004-07-23 15:40:57 +00001609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
John Criswell0c38eaf2003-09-10 15:17:25 +00001613 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001614
1615
Reid Spencer5f285392004-08-24 16:32:21 +00001616 ac_config_commands="$ac_config_commands examples/Makefile"
1617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001623
1624
John Criswell0c38eaf2003-09-10 15:17:25 +00001625 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswell0c38eaf2003-09-10 15:17:25 +00001628 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001629
1630
John Criswellf424d742003-10-07 21:13:47 +00001631 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1632
1633
1634 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001635
1636
John Criswell0c38eaf2003-09-10 15:17:25 +00001637 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001638
1639
Brian Gaekec45be042003-10-07 06:01:34 +00001640 ac_config_commands="$ac_config_commands utils/Makefile"
1641
1642
John Criswell0c38eaf2003-09-10 15:17:25 +00001643 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001644
1645
John Criswell392aaa32003-07-22 19:18:09 +00001646
John Criswell7a73b802003-06-30 21:59:07 +00001647# Find a good install program. We prefer a C program (faster),
1648# so one script is as good as another. But avoid the broken or
1649# incompatible versions:
1650# SysV /etc/install, /usr/sbin/install
1651# SunOS /usr/etc/install
1652# IRIX /sbin/install
1653# AIX /bin/install
1654# AmigaOS /C/install, which installs bootblocks on floppy discs
1655# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1656# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1657# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Reid Spencer2706f8c2004-09-19 23:53:36 +00001658# OS/2's system install, which has a completely different semantic
John Criswell7a73b802003-06-30 21:59:07 +00001659# ./install, which can be erroneously created by make from ./install.sh.
1660echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1661echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1662if test -z "$INSTALL"; then
1663if test "${ac_cv_path_install+set}" = set; then
1664 echo $ECHO_N "(cached) $ECHO_C" >&6
1665else
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667for as_dir in $PATH
1668do
1669 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=.
1671 # Account for people who put trailing slashes in PATH elements.
1672case $as_dir/ in
1673 ./ | .// | /cC/* | \
1674 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Reid Spencer2706f8c2004-09-19 23:53:36 +00001675 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
John Criswell7a73b802003-06-30 21:59:07 +00001676 /usr/ucb/* ) ;;
1677 *)
1678 # OSF1 and SCO ODT 3.0 have their own names for install.
1679 # Don't use installbsd from OSF since it installs stuff as root
1680 # by default.
1681 for ac_prog in ginstall scoinst install; do
1682 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencer2706f8c2004-09-19 23:53:36 +00001683 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1684 if test $ac_prog = install &&
1685 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1686 # AIX install. It has an incompatible calling convention.
1687 :
1688 elif test $ac_prog = install &&
1689 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690 # program-specific install script used by HP pwplus--don't use.
1691 :
1692 else
1693 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1694 break 3
1695 fi
1696 fi
John Criswell7a73b802003-06-30 21:59:07 +00001697 done
1698 done
1699 ;;
1700esac
1701done
1702
1703
1704fi
1705 if test "${ac_cv_path_install+set}" = set; then
1706 INSTALL=$ac_cv_path_install
1707 else
1708 # As a last resort, use the slow shell script. We don't cache a
1709 # path for INSTALL within a source directory, because that will
1710 # break other packages using the cache if that directory is
1711 # removed, or if the path is relative.
1712 INSTALL=$ac_install_sh
1713 fi
1714fi
1715echo "$as_me:$LINENO: result: $INSTALL" >&5
1716echo "${ECHO_T}$INSTALL" >&6
1717
1718# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1719# It thinks the first close brace ends the variable substitution.
1720test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1721
1722test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1723
1724test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1725
1726
1727# Make sure we can run config.sub.
1728$ac_config_sub sun4 >/dev/null 2>&1 ||
1729 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1730echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1731 { (exit 1); exit 1; }; }
1732
1733echo "$as_me:$LINENO: checking build system type" >&5
1734echo $ECHO_N "checking build system type... $ECHO_C" >&6
1735if test "${ac_cv_build+set}" = set; then
1736 echo $ECHO_N "(cached) $ECHO_C" >&6
1737else
1738 ac_cv_build_alias=$build_alias
1739test -z "$ac_cv_build_alias" &&
1740 ac_cv_build_alias=`$ac_config_guess`
1741test -z "$ac_cv_build_alias" &&
1742 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1743echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1744 { (exit 1); exit 1; }; }
1745ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1746 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1747echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1748 { (exit 1); exit 1; }; }
1749
1750fi
1751echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1752echo "${ECHO_T}$ac_cv_build" >&6
1753build=$ac_cv_build
1754build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1755build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1756build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1757
1758
1759echo "$as_me:$LINENO: checking host system type" >&5
1760echo $ECHO_N "checking host system type... $ECHO_C" >&6
1761if test "${ac_cv_host+set}" = set; then
1762 echo $ECHO_N "(cached) $ECHO_C" >&6
1763else
1764 ac_cv_host_alias=$host_alias
1765test -z "$ac_cv_host_alias" &&
1766 ac_cv_host_alias=$ac_cv_build_alias
1767ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1768 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1769echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1770 { (exit 1); exit 1; }; }
1771
1772fi
1773echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1774echo "${ECHO_T}$ac_cv_host" >&6
1775host=$ac_cv_host
1776host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1777host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1778host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1779
1780
1781echo "$as_me:$LINENO: checking target system type" >&5
1782echo $ECHO_N "checking target system type... $ECHO_C" >&6
1783if test "${ac_cv_target+set}" = set; then
1784 echo $ECHO_N "(cached) $ECHO_C" >&6
1785else
1786 ac_cv_target_alias=$target_alias
1787test "x$ac_cv_target_alias" = "x" &&
1788 ac_cv_target_alias=$ac_cv_host_alias
1789ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1790 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1791echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1792 { (exit 1); exit 1; }; }
1793
1794fi
1795echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1796echo "${ECHO_T}$ac_cv_target" >&6
1797target=$ac_cv_target
1798target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1799target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1800target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1801
1802
1803# The aliases save the names the user supplied, while $host etc.
1804# will get canonicalized.
1805test -n "$target_alias" &&
1806 test "$program_prefix$program_suffix$program_transform_name" = \
1807 NONENONEs,x,x, &&
1808 program_prefix=${target_alias}-
1809
Reid Spencer73fb5482004-08-31 14:20:36 +00001810
1811echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1812echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001813case $build in
Reid Spencer73fb5482004-08-31 14:20:36 +00001814 *-*-aix*)
1815 OS=AIX
1816
1817 platform_type="AIX"
1818 ;;
1819 *-*-cygwin*)
1820 OS=Cygwin
1821
1822 platform_type="Cygwin"
1823 ;;
1824 *-*-darwin*)
1825 OS=Darwin
1826
1827 platform_type="Darwin"
1828 ;;
1829 *-*-freebsd*)
1830 OS=Linux
1831
Reid Spencera11e4db2004-08-31 18:03:23 +00001832 platform_type="FreeBSD"
Reid Spencer73fb5482004-08-31 14:20:36 +00001833 ;;
1834 *-*-interix*)
1835 OS=SunOS
1836
Reid Spencera11e4db2004-08-31 18:03:23 +00001837 platform_type="Interix"
Reid Spencer73fb5482004-08-31 14:20:36 +00001838 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001839 *-*-linux*)
1840 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001841
Reid Spencerde8c47f2004-08-29 19:35:28 +00001842 platform_type="Linux"
1843 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1844 then
1845 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001846
Reid Spencerde8c47f2004-08-29 19:35:28 +00001847 fi
1848 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001849 *-*-solaris*)
1850 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001851
Reid Spencerde8c47f2004-08-29 19:35:28 +00001852 platform_type="SunOS"
1853 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1854 then
1855 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001856
Reid Spencerde8c47f2004-08-29 19:35:28 +00001857 fi
1858 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001859 *-*-win32*)
1860 OS=Win32
John Criswell7a73b802003-06-30 21:59:07 +00001861
Reid Spencerde8c47f2004-08-29 19:35:28 +00001862 platform_type="Win32"
1863 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +00001864 *-*-mingw*)
1865 OS=Win32
1866
1867 platform_type="Win32"
1868 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001869 *)
1870 OS=Unknown
1871
1872 platform_type="Unknown"
1873 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001874esac
1875
Reid Spencer73fb5482004-08-31 14:20:36 +00001876if test "$platform_type" = "Unknown" ; then
Reid Spencer886e9512004-08-31 01:34:10 +00001877 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1878echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1879 { (exit 1); exit 1; }; }
1880fi
1881
Reid Spencerde8c47f2004-08-29 19:35:28 +00001882 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1883
1884
Reid Spencer73fb5482004-08-31 14:20:36 +00001885
1886echo "$as_me:$LINENO: checking target architecture" >&5
1887echo $ECHO_N "checking target architecture... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001888case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001889 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001890
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001891 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001892esac
1893
John Criswell76595452003-07-01 22:07:39 +00001894case $target in
Reid Spencer73fb5482004-08-31 14:20:36 +00001895 i*86-*)
1896 ARCH="x86"
1897 ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001898
Reid Spencer73fb5482004-08-31 14:20:36 +00001899 ;;
1900 sparc*-*)
1901 ARCH="Sparc"
1902 ARCH=Sparc
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001903
Reid Spencer73fb5482004-08-31 14:20:36 +00001904 ;;
1905 powerpc*-*)
1906 ARCH="PowerPC"
1907 ARCH=PowerPC
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001908
Reid Spencer73fb5482004-08-31 14:20:36 +00001909 ;;
1910 *)
1911 ARCH="Unknown"
1912 ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001913
Reid Spencer73fb5482004-08-31 14:20:36 +00001914 ;;
John Criswell76595452003-07-01 22:07:39 +00001915esac
1916
Reid Spencer73fb5482004-08-31 14:20:36 +00001917echo "$as_me:$LINENO: result: $ARCH" >&5
1918echo "${ECHO_T}$ARCH" >&6
1919
John Criswell7a73b802003-06-30 21:59:07 +00001920ac_ext=cc
1921ac_cpp='$CXXCPP $CPPFLAGS'
1922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1925if test -n "$ac_tool_prefix"; then
1926 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1927 do
1928 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1929set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1930echo "$as_me:$LINENO: checking for $ac_word" >&5
1931echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932if test "${ac_cv_prog_CXX+set}" = set; then
1933 echo $ECHO_N "(cached) $ECHO_C" >&6
1934else
1935 if test -n "$CXX"; then
1936 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1937else
1938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939for as_dir in $PATH
1940do
1941 IFS=$as_save_IFS
1942 test -z "$as_dir" && as_dir=.
1943 for ac_exec_ext in '' $ac_executable_extensions; do
1944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947 break 2
1948 fi
1949done
1950done
1951
1952fi
1953fi
1954CXX=$ac_cv_prog_CXX
1955if test -n "$CXX"; then
1956 echo "$as_me:$LINENO: result: $CXX" >&5
1957echo "${ECHO_T}$CXX" >&6
1958else
1959 echo "$as_me:$LINENO: result: no" >&5
1960echo "${ECHO_T}no" >&6
1961fi
1962
1963 test -n "$CXX" && break
1964 done
1965fi
1966if test -z "$CXX"; then
1967 ac_ct_CXX=$CXX
1968 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1969do
1970 # Extract the first word of "$ac_prog", so it can be a program name with args.
1971set dummy $ac_prog; ac_word=$2
1972echo "$as_me:$LINENO: checking for $ac_word" >&5
1973echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976else
1977 if test -n "$ac_ct_CXX"; then
1978 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1979else
1980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981for as_dir in $PATH
1982do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987 ac_cv_prog_ac_ct_CXX="$ac_prog"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 break 2
1990 fi
1991done
1992done
1993
1994fi
1995fi
1996ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1997if test -n "$ac_ct_CXX"; then
1998 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1999echo "${ECHO_T}$ac_ct_CXX" >&6
2000else
2001 echo "$as_me:$LINENO: result: no" >&5
2002echo "${ECHO_T}no" >&6
2003fi
2004
2005 test -n "$ac_ct_CXX" && break
2006done
2007test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2008
2009 CXX=$ac_ct_CXX
2010fi
2011
2012
2013# Provide some information about the compiler.
2014echo "$as_me:$LINENO:" \
2015 "checking for C++ compiler version" >&5
2016ac_compiler=`set X $ac_compile; echo $2`
2017{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2018 (eval $ac_compiler --version </dev/null >&5) 2>&5
2019 ac_status=$?
2020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2021 (exit $ac_status); }
2022{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2023 (eval $ac_compiler -v </dev/null >&5) 2>&5
2024 ac_status=$?
2025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2026 (exit $ac_status); }
2027{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2028 (eval $ac_compiler -V </dev/null >&5) 2>&5
2029 ac_status=$?
2030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2031 (exit $ac_status); }
2032
2033cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002034/* confdefs.h. */
2035_ACEOF
2036cat confdefs.h >>conftest.$ac_ext
2037cat >>conftest.$ac_ext <<_ACEOF
2038/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002039
John Criswell7a73b802003-06-30 21:59:07 +00002040int
2041main ()
2042{
2043
2044 ;
2045 return 0;
2046}
2047_ACEOF
2048ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002049ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002050# Try to create an executable without -o first, disregard a.out.
2051# It will help us diagnose broken compilers, and finding out an intuition
2052# of exeext.
Reid Spencer2706f8c2004-09-19 23:53:36 +00002053echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2054echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002055ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2056if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2057 (eval $ac_link_default) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }; then
2061 # Find the output, starting from the most likely. This scheme is
2062# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2063# resort.
2064
2065# Be careful to initialize this variable, since it used to be cached.
2066# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2067ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002068# b.out is created by i960 compilers.
2069for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2070do
2071 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002072 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002073 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002074 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002075 conftest.$ac_ext )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002076 # This is the source file.
2077 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002078 [ab].out )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002079 # We found the default executable, but exeext='' is most
2080 # certainly right.
2081 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002082 *.* )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002083 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2084 # FIXME: I believe we export ac_cv_exeext for Libtool,
2085 # but it would be cool to find out if it's true. Does anybody
2086 # maintain Libtool? --akim.
2087 export ac_cv_exeext
2088 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002089 * )
Reid Spencer2706f8c2004-09-19 23:53:36 +00002090 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002091 esac
2092done
2093else
2094 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002095sed 's/^/| /' conftest.$ac_ext >&5
2096
2097{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2098See \`config.log' for more details." >&5
2099echo "$as_me: error: C++ compiler cannot create executables
2100See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002101 { (exit 77); exit 77; }; }
2102fi
2103
2104ac_exeext=$ac_cv_exeext
2105echo "$as_me:$LINENO: result: $ac_file" >&5
2106echo "${ECHO_T}$ac_file" >&6
2107
2108# Check the compiler produces executables we can run. If not, either
2109# the compiler is broken, or we cross compile.
2110echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2111echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2112# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2113# If not cross compiling, check that we can run a simple program.
2114if test "$cross_compiling" != yes; then
2115 if { ac_try='./$ac_file'
2116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2117 (eval $ac_try) 2>&5
2118 ac_status=$?
2119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2120 (exit $ac_status); }; }; then
2121 cross_compiling=no
2122 else
2123 if test "$cross_compiling" = maybe; then
2124 cross_compiling=yes
2125 else
2126 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002127If you meant to cross compile, use \`--host'.
2128See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002129echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002130If you meant to cross compile, use \`--host'.
2131See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002132 { (exit 1); exit 1; }; }
2133 fi
2134 fi
2135fi
2136echo "$as_me:$LINENO: result: yes" >&5
2137echo "${ECHO_T}yes" >&6
2138
John Criswell0c38eaf2003-09-10 15:17:25 +00002139rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002140ac_clean_files=$ac_clean_files_save
2141# Check the compiler produces executables we can run. If not, either
2142# the compiler is broken, or we cross compile.
2143echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2144echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2145echo "$as_me:$LINENO: result: $cross_compiling" >&5
2146echo "${ECHO_T}$cross_compiling" >&6
2147
2148echo "$as_me:$LINENO: checking for suffix of executables" >&5
2149echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2150if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2151 (eval $ac_link) 2>&5
2152 ac_status=$?
2153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2154 (exit $ac_status); }; then
2155 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2156# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2157# work properly (i.e., refer to `conftest.exe'), while it won't with
2158# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002159for ac_file in conftest.exe conftest conftest.*; do
2160 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002161 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002163 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2706f8c2004-09-19 23:53:36 +00002164 export ac_cv_exeext
2165 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002166 * ) break;;
2167 esac
2168done
2169else
John Criswell0c38eaf2003-09-10 15:17:25 +00002170 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2171See \`config.log' for more details." >&5
2172echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2173See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002174 { (exit 1); exit 1; }; }
2175fi
2176
2177rm -f conftest$ac_cv_exeext
2178echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2179echo "${ECHO_T}$ac_cv_exeext" >&6
2180
2181rm -f conftest.$ac_ext
2182EXEEXT=$ac_cv_exeext
2183ac_exeext=$EXEEXT
2184echo "$as_me:$LINENO: checking for suffix of object files" >&5
2185echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2186if test "${ac_cv_objext+set}" = set; then
2187 echo $ECHO_N "(cached) $ECHO_C" >&6
2188else
2189 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002190/* confdefs.h. */
2191_ACEOF
2192cat confdefs.h >>conftest.$ac_ext
2193cat >>conftest.$ac_ext <<_ACEOF
2194/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002195
John Criswell7a73b802003-06-30 21:59:07 +00002196int
2197main ()
2198{
2199
2200 ;
2201 return 0;
2202}
2203_ACEOF
2204rm -f conftest.o conftest.obj
2205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2206 (eval $ac_compile) 2>&5
2207 ac_status=$?
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; then
2210 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2211 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002212 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002213 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2214 break;;
2215 esac
2216done
2217else
2218 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002219sed 's/^/| /' conftest.$ac_ext >&5
2220
2221{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2222See \`config.log' for more details." >&5
2223echo "$as_me: error: cannot compute suffix of object files: cannot compile
2224See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002225 { (exit 1); exit 1; }; }
2226fi
2227
2228rm -f conftest.$ac_cv_objext conftest.$ac_ext
2229fi
2230echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2231echo "${ECHO_T}$ac_cv_objext" >&6
2232OBJEXT=$ac_cv_objext
2233ac_objext=$OBJEXT
2234echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2235echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2236if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2238else
2239 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002240/* confdefs.h. */
2241_ACEOF
2242cat confdefs.h >>conftest.$ac_ext
2243cat >>conftest.$ac_ext <<_ACEOF
2244/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002245
John Criswell7a73b802003-06-30 21:59:07 +00002246int
2247main ()
2248{
2249#ifndef __GNUC__
2250 choke me
2251#endif
2252
2253 ;
2254 return 0;
2255}
2256_ACEOF
2257rm -f conftest.$ac_objext
2258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002259 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002260 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002261 grep -v '^ *+' conftest.er1 >conftest.err
2262 rm -f conftest.er1
2263 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002266 { ac_try='test -z "$ac_cxx_werror_flag"
2267 || test ! -s conftest.err'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2269 (eval $ac_try) 2>&5
2270 ac_status=$?
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; } &&
2273 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2275 (eval $ac_try) 2>&5
2276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); }; }; then
2279 ac_compiler_gnu=yes
2280else
2281 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002282sed 's/^/| /' conftest.$ac_ext >&5
2283
John Criswell7a73b802003-06-30 21:59:07 +00002284ac_compiler_gnu=no
2285fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002287ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2288
2289fi
2290echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2291echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2292GXX=`test $ac_compiler_gnu = yes && echo yes`
2293ac_test_CXXFLAGS=${CXXFLAGS+set}
2294ac_save_CXXFLAGS=$CXXFLAGS
2295CXXFLAGS="-g"
2296echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2297echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2298if test "${ac_cv_prog_cxx_g+set}" = set; then
2299 echo $ECHO_N "(cached) $ECHO_C" >&6
2300else
2301 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002302/* confdefs.h. */
2303_ACEOF
2304cat confdefs.h >>conftest.$ac_ext
2305cat >>conftest.$ac_ext <<_ACEOF
2306/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002307
John Criswell7a73b802003-06-30 21:59:07 +00002308int
2309main ()
2310{
2311
2312 ;
2313 return 0;
2314}
2315_ACEOF
2316rm -f conftest.$ac_objext
2317if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002318 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002319 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002320 grep -v '^ *+' conftest.er1 >conftest.err
2321 rm -f conftest.er1
2322 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002325 { ac_try='test -z "$ac_cxx_werror_flag"
2326 || test ! -s conftest.err'
2327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2328 (eval $ac_try) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); }; } &&
2332 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; }; then
2338 ac_cv_prog_cxx_g=yes
2339else
2340 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002341sed 's/^/| /' conftest.$ac_ext >&5
2342
John Criswell7a73b802003-06-30 21:59:07 +00002343ac_cv_prog_cxx_g=no
2344fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002346fi
2347echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2348echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2349if test "$ac_test_CXXFLAGS" = set; then
2350 CXXFLAGS=$ac_save_CXXFLAGS
2351elif test $ac_cv_prog_cxx_g = yes; then
2352 if test "$GXX" = yes; then
2353 CXXFLAGS="-g -O2"
2354 else
2355 CXXFLAGS="-g"
2356 fi
2357else
2358 if test "$GXX" = yes; then
2359 CXXFLAGS="-O2"
2360 else
2361 CXXFLAGS=
2362 fi
2363fi
2364for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002365 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002366 'extern "C" void std::exit (int) throw (); using std::exit;' \
2367 'extern "C" void std::exit (int); using std::exit;' \
2368 'extern "C" void exit (int) throw ();' \
2369 'extern "C" void exit (int);' \
2370 'void exit (int);'
2371do
2372 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002373/* confdefs.h. */
2374_ACEOF
2375cat confdefs.h >>conftest.$ac_ext
2376cat >>conftest.$ac_ext <<_ACEOF
2377/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002378$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002379#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002380int
2381main ()
2382{
2383exit (42);
2384 ;
2385 return 0;
2386}
2387_ACEOF
2388rm -f conftest.$ac_objext
2389if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002390 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002391 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002392 grep -v '^ *+' conftest.er1 >conftest.err
2393 rm -f conftest.er1
2394 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002397 { ac_try='test -z "$ac_cxx_werror_flag"
2398 || test ! -s conftest.err'
2399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2400 (eval $ac_try) 2>&5
2401 ac_status=$?
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); }; } &&
2404 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2406 (eval $ac_try) 2>&5
2407 ac_status=$?
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2410 :
2411else
2412 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002413sed 's/^/| /' conftest.$ac_ext >&5
2414
John Criswell7a73b802003-06-30 21:59:07 +00002415continue
2416fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002417rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002418 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002419/* confdefs.h. */
2420_ACEOF
2421cat confdefs.h >>conftest.$ac_ext
2422cat >>conftest.$ac_ext <<_ACEOF
2423/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002424$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002425int
2426main ()
2427{
2428exit (42);
2429 ;
2430 return 0;
2431}
2432_ACEOF
2433rm -f conftest.$ac_objext
2434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002435 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002436 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002437 grep -v '^ *+' conftest.er1 >conftest.err
2438 rm -f conftest.er1
2439 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002442 { ac_try='test -z "$ac_cxx_werror_flag"
2443 || test ! -s conftest.err'
2444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2445 (eval $ac_try) 2>&5
2446 ac_status=$?
2447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2448 (exit $ac_status); }; } &&
2449 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2451 (eval $ac_try) 2>&5
2452 ac_status=$?
2453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2454 (exit $ac_status); }; }; then
2455 break
2456else
2457 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002458sed 's/^/| /' conftest.$ac_ext >&5
2459
John Criswell7a73b802003-06-30 21:59:07 +00002460fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002461rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002462done
2463rm -f conftest*
2464if test -n "$ac_declaration"; then
2465 echo '#ifdef __cplusplus' >>confdefs.h
2466 echo $ac_declaration >>confdefs.h
2467 echo '#endif' >>confdefs.h
2468fi
2469
2470ac_ext=c
2471ac_cpp='$CPP $CPPFLAGS'
2472ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474ac_compiler_gnu=$ac_cv_c_compiler_gnu
2475
2476ac_ext=c
2477ac_cpp='$CPP $CPPFLAGS'
2478ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2479ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2480ac_compiler_gnu=$ac_cv_c_compiler_gnu
2481if test -n "$ac_tool_prefix"; then
2482 for ac_prog in gcc
2483 do
2484 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2485set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2486echo "$as_me:$LINENO: checking for $ac_word" >&5
2487echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2488if test "${ac_cv_prog_CC+set}" = set; then
2489 echo $ECHO_N "(cached) $ECHO_C" >&6
2490else
2491 if test -n "$CC"; then
2492 ac_cv_prog_CC="$CC" # Let the user override the test.
2493else
2494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2495for as_dir in $PATH
2496do
2497 IFS=$as_save_IFS
2498 test -z "$as_dir" && as_dir=.
2499 for ac_exec_ext in '' $ac_executable_extensions; do
2500 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2501 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 break 2
2504 fi
2505done
2506done
2507
2508fi
2509fi
2510CC=$ac_cv_prog_CC
2511if test -n "$CC"; then
2512 echo "$as_me:$LINENO: result: $CC" >&5
2513echo "${ECHO_T}$CC" >&6
2514else
2515 echo "$as_me:$LINENO: result: no" >&5
2516echo "${ECHO_T}no" >&6
2517fi
2518
2519 test -n "$CC" && break
2520 done
2521fi
2522if test -z "$CC"; then
2523 ac_ct_CC=$CC
2524 for ac_prog in gcc
2525do
2526 # Extract the first word of "$ac_prog", so it can be a program name with args.
2527set dummy $ac_prog; ac_word=$2
2528echo "$as_me:$LINENO: checking for $ac_word" >&5
2529echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2530if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2531 echo $ECHO_N "(cached) $ECHO_C" >&6
2532else
2533 if test -n "$ac_ct_CC"; then
2534 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2535else
2536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2537for as_dir in $PATH
2538do
2539 IFS=$as_save_IFS
2540 test -z "$as_dir" && as_dir=.
2541 for ac_exec_ext in '' $ac_executable_extensions; do
2542 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2543 ac_cv_prog_ac_ct_CC="$ac_prog"
2544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2545 break 2
2546 fi
2547done
2548done
2549
2550fi
2551fi
2552ac_ct_CC=$ac_cv_prog_ac_ct_CC
2553if test -n "$ac_ct_CC"; then
2554 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2555echo "${ECHO_T}$ac_ct_CC" >&6
2556else
2557 echo "$as_me:$LINENO: result: no" >&5
2558echo "${ECHO_T}no" >&6
2559fi
2560
2561 test -n "$ac_ct_CC" && break
2562done
2563
2564 CC=$ac_ct_CC
2565fi
2566
2567
John Criswell0c38eaf2003-09-10 15:17:25 +00002568test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2569See \`config.log' for more details." >&5
2570echo "$as_me: error: no acceptable C compiler found in \$PATH
2571See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002572 { (exit 1); exit 1; }; }
2573
2574# Provide some information about the compiler.
2575echo "$as_me:$LINENO:" \
2576 "checking for C compiler version" >&5
2577ac_compiler=`set X $ac_compile; echo $2`
2578{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2579 (eval $ac_compiler --version </dev/null >&5) 2>&5
2580 ac_status=$?
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }
2583{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2584 (eval $ac_compiler -v </dev/null >&5) 2>&5
2585 ac_status=$?
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }
2588{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2589 (eval $ac_compiler -V </dev/null >&5) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }
2593
2594echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2595echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2596if test "${ac_cv_c_compiler_gnu+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2598else
2599 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002600/* confdefs.h. */
2601_ACEOF
2602cat confdefs.h >>conftest.$ac_ext
2603cat >>conftest.$ac_ext <<_ACEOF
2604/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002605
John Criswell7a73b802003-06-30 21:59:07 +00002606int
2607main ()
2608{
2609#ifndef __GNUC__
2610 choke me
2611#endif
2612
2613 ;
2614 return 0;
2615}
2616_ACEOF
2617rm -f conftest.$ac_objext
2618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002619 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002620 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002621 grep -v '^ *+' conftest.er1 >conftest.err
2622 rm -f conftest.er1
2623 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002626 { ac_try='test -z "$ac_c_werror_flag"
2627 || test ! -s conftest.err'
2628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2629 (eval $ac_try) 2>&5
2630 ac_status=$?
2631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2632 (exit $ac_status); }; } &&
2633 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2635 (eval $ac_try) 2>&5
2636 ac_status=$?
2637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638 (exit $ac_status); }; }; then
2639 ac_compiler_gnu=yes
2640else
2641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002642sed 's/^/| /' conftest.$ac_ext >&5
2643
John Criswell7a73b802003-06-30 21:59:07 +00002644ac_compiler_gnu=no
2645fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002647ac_cv_c_compiler_gnu=$ac_compiler_gnu
2648
2649fi
2650echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2651echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2652GCC=`test $ac_compiler_gnu = yes && echo yes`
2653ac_test_CFLAGS=${CFLAGS+set}
2654ac_save_CFLAGS=$CFLAGS
2655CFLAGS="-g"
2656echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2657echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2658if test "${ac_cv_prog_cc_g+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2660else
2661 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002662/* confdefs.h. */
2663_ACEOF
2664cat confdefs.h >>conftest.$ac_ext
2665cat >>conftest.$ac_ext <<_ACEOF
2666/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002667
John Criswell7a73b802003-06-30 21:59:07 +00002668int
2669main ()
2670{
2671
2672 ;
2673 return 0;
2674}
2675_ACEOF
2676rm -f conftest.$ac_objext
2677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002678 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002679 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002680 grep -v '^ *+' conftest.er1 >conftest.err
2681 rm -f conftest.er1
2682 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2684 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002685 { ac_try='test -z "$ac_c_werror_flag"
2686 || test ! -s conftest.err'
2687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2688 (eval $ac_try) 2>&5
2689 ac_status=$?
2690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2691 (exit $ac_status); }; } &&
2692 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2694 (eval $ac_try) 2>&5
2695 ac_status=$?
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; }; then
2698 ac_cv_prog_cc_g=yes
2699else
2700 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002701sed 's/^/| /' conftest.$ac_ext >&5
2702
John Criswell7a73b802003-06-30 21:59:07 +00002703ac_cv_prog_cc_g=no
2704fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002706fi
2707echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2708echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2709if test "$ac_test_CFLAGS" = set; then
2710 CFLAGS=$ac_save_CFLAGS
2711elif test $ac_cv_prog_cc_g = yes; then
2712 if test "$GCC" = yes; then
2713 CFLAGS="-g -O2"
2714 else
2715 CFLAGS="-g"
2716 fi
2717else
2718 if test "$GCC" = yes; then
2719 CFLAGS="-O2"
2720 else
2721 CFLAGS=
2722 fi
2723fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002724echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2725echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2726if test "${ac_cv_prog_cc_stdc+set}" = set; then
2727 echo $ECHO_N "(cached) $ECHO_C" >&6
2728else
2729 ac_cv_prog_cc_stdc=no
2730ac_save_CC=$CC
2731cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002732/* confdefs.h. */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h. */
2737#include <stdarg.h>
2738#include <stdio.h>
2739#include <sys/types.h>
2740#include <sys/stat.h>
2741/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2742struct buf { int x; };
2743FILE * (*rcsopen) (struct buf *, struct stat *, int);
2744static char *e (p, i)
2745 char **p;
2746 int i;
2747{
2748 return p[i];
2749}
2750static char *f (char * (*g) (char **, int), char **p, ...)
2751{
2752 char *s;
2753 va_list v;
2754 va_start (v,p);
2755 s = g (p, va_arg (v,int));
2756 va_end (v);
2757 return s;
2758}
Reid Spencer2706f8c2004-09-19 23:53:36 +00002759
2760/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2761 function prototypes and stuff, but not '\xHH' hex character constants.
2762 These don't provoke an error unfortunately, instead are silently treated
2763 as 'x'. The following induces an error, until -std1 is added to get
2764 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2765 array size at least. It's necessary to write '\x00'==0 to get something
2766 that's true only with -std1. */
2767int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2768
John Criswell0c38eaf2003-09-10 15:17:25 +00002769int test (int i, double x);
2770struct s1 {int (*f) (int a);};
2771struct s2 {int (*f) (double a);};
2772int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2773int argc;
2774char **argv;
2775int
2776main ()
2777{
2778return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2779 ;
2780 return 0;
2781}
2782_ACEOF
2783# Don't try gcc -ansi; that turns off useful extensions and
2784# breaks some systems' header files.
2785# AIX -qlanglvl=ansi
2786# Ultrix and OSF/1 -std1
2787# HP-UX 10.20 and later -Ae
2788# HP-UX older versions -Aa -D_HPUX_SOURCE
2789# SVR4 -Xc -D__EXTENSIONS__
2790for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2791do
2792 CC="$ac_save_CC $ac_arg"
2793 rm -f conftest.$ac_objext
2794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002795 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00002796 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002797 grep -v '^ *+' conftest.er1 >conftest.err
2798 rm -f conftest.er1
2799 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002802 { ac_try='test -z "$ac_c_werror_flag"
2803 || test ! -s conftest.err'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; } &&
2809 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00002810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811 (eval $ac_try) 2>&5
2812 ac_status=$?
2813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814 (exit $ac_status); }; }; then
2815 ac_cv_prog_cc_stdc=$ac_arg
2816break
2817else
2818 echo "$as_me: failed program was:" >&5
2819sed 's/^/| /' conftest.$ac_ext >&5
2820
2821fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002822rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00002823done
2824rm -f conftest.$ac_ext conftest.$ac_objext
2825CC=$ac_save_CC
2826
2827fi
2828
2829case "x$ac_cv_prog_cc_stdc" in
2830 x|xno)
2831 echo "$as_me:$LINENO: result: none needed" >&5
2832echo "${ECHO_T}none needed" >&6 ;;
2833 *)
2834 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2835echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2836 CC="$CC $ac_cv_prog_cc_stdc" ;;
2837esac
2838
John Criswell7a73b802003-06-30 21:59:07 +00002839# Some people use a C++ compiler to compile C. Since we use `exit',
2840# in C++ we need to declare it. In case someone uses the same compiler
2841# for both compiling C and C++ we need to have the C++ compiler decide
2842# the declaration of exit, since it's the most demanding environment.
2843cat >conftest.$ac_ext <<_ACEOF
2844#ifndef __cplusplus
2845 choke me
2846#endif
2847_ACEOF
2848rm -f conftest.$ac_objext
2849if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002850 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002851 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002852 grep -v '^ *+' conftest.er1 >conftest.err
2853 rm -f conftest.er1
2854 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2856 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002857 { ac_try='test -z "$ac_c_werror_flag"
2858 || test ! -s conftest.err'
2859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2860 (eval $ac_try) 2>&5
2861 ac_status=$?
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); }; } &&
2864 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2866 (eval $ac_try) 2>&5
2867 ac_status=$?
2868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869 (exit $ac_status); }; }; then
2870 for ac_declaration in \
Reid Spencer2706f8c2004-09-19 23:53:36 +00002871 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002872 'extern "C" void std::exit (int) throw (); using std::exit;' \
2873 'extern "C" void std::exit (int); using std::exit;' \
2874 'extern "C" void exit (int) throw ();' \
2875 'extern "C" void exit (int);' \
2876 'void exit (int);'
2877do
2878 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002879/* confdefs.h. */
2880_ACEOF
2881cat confdefs.h >>conftest.$ac_ext
2882cat >>conftest.$ac_ext <<_ACEOF
2883/* end confdefs.h. */
Brian Gaeke0a621332004-09-08 20:38:05 +00002884$ac_declaration
Reid Spencer2706f8c2004-09-19 23:53:36 +00002885#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002886int
2887main ()
2888{
2889exit (42);
2890 ;
2891 return 0;
2892}
2893_ACEOF
2894rm -f conftest.$ac_objext
2895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002896 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002897 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002898 grep -v '^ *+' conftest.er1 >conftest.err
2899 rm -f conftest.er1
2900 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002903 { ac_try='test -z "$ac_c_werror_flag"
2904 || test ! -s conftest.err'
2905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2906 (eval $ac_try) 2>&5
2907 ac_status=$?
2908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); }; } &&
2910 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 (eval $ac_try) 2>&5
2913 ac_status=$?
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }; }; then
2916 :
2917else
2918 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002919sed 's/^/| /' conftest.$ac_ext >&5
2920
John Criswell7a73b802003-06-30 21:59:07 +00002921continue
2922fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002924 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002925/* confdefs.h. */
2926_ACEOF
2927cat confdefs.h >>conftest.$ac_ext
2928cat >>conftest.$ac_ext <<_ACEOF
2929/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002930$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002931int
2932main ()
2933{
2934exit (42);
2935 ;
2936 return 0;
2937}
2938_ACEOF
2939rm -f conftest.$ac_objext
2940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00002941 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002942 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00002943 grep -v '^ *+' conftest.er1 >conftest.err
2944 rm -f conftest.er1
2945 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00002948 { ac_try='test -z "$ac_c_werror_flag"
2949 || test ! -s conftest.err'
2950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951 (eval $ac_try) 2>&5
2952 ac_status=$?
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); }; } &&
2955 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957 (eval $ac_try) 2>&5
2958 ac_status=$?
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; }; then
2961 break
2962else
2963 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002964sed 's/^/| /' conftest.$ac_ext >&5
2965
John Criswell7a73b802003-06-30 21:59:07 +00002966fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002967rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002968done
2969rm -f conftest*
2970if test -n "$ac_declaration"; then
2971 echo '#ifdef __cplusplus' >>confdefs.h
2972 echo $ac_declaration >>confdefs.h
2973 echo '#endif' >>confdefs.h
2974fi
2975
2976else
2977 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002978sed 's/^/| /' conftest.$ac_ext >&5
2979
John Criswell7a73b802003-06-30 21:59:07 +00002980fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00002981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002982ac_ext=c
2983ac_cpp='$CPP $CPPFLAGS'
2984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2986ac_compiler_gnu=$ac_cv_c_compiler_gnu
2987
Reid Spencer2706f8c2004-09-19 23:53:36 +00002988if test "$GCC" != "yes"
2989then
2990 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
2991echo "$as_me: error: gcc required but not found" >&2;}
2992 { (exit 1); exit 1; }; }
2993fi
John Criswell7a73b802003-06-30 21:59:07 +00002994ac_ext=c
2995ac_cpp='$CPP $CPPFLAGS'
2996ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2997ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2998ac_compiler_gnu=$ac_cv_c_compiler_gnu
2999echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3000echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3001# On Suns, sometimes $CPP names a directory.
3002if test -n "$CPP" && test -d "$CPP"; then
3003 CPP=
3004fi
3005if test -z "$CPP"; then
3006 if test "${ac_cv_prog_CPP+set}" = set; then
3007 echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009 # Double quotes because CPP needs to be expanded
3010 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3011 do
3012 ac_preproc_ok=false
3013for ac_c_preproc_warn_flag in '' yes
3014do
3015 # Use a header file that comes with gcc, so configuring glibc
3016 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3018 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003019 # On the NeXT, cc -E runs the code through the compiler's parser,
3020 # not just through cpp. "Syntax error" is here to catch this case.
3021 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003022/* confdefs.h. */
3023_ACEOF
3024cat confdefs.h >>conftest.$ac_ext
3025cat >>conftest.$ac_ext <<_ACEOF
3026/* end confdefs.h. */
3027#ifdef __STDC__
3028# include <limits.h>
3029#else
3030# include <assert.h>
3031#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00003032 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003033_ACEOF
3034if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3035 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3036 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003037 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } >/dev/null; then
3042 if test -s conftest.err; then
3043 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003044 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003045 else
3046 ac_cpp_err=
3047 fi
3048else
3049 ac_cpp_err=yes
3050fi
3051if test -z "$ac_cpp_err"; then
3052 :
3053else
3054 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003055sed 's/^/| /' conftest.$ac_ext >&5
3056
John Criswell7a73b802003-06-30 21:59:07 +00003057 # Broken: fails on valid input.
3058continue
3059fi
3060rm -f conftest.err conftest.$ac_ext
3061
3062 # OK, works on sane cases. Now check whether non-existent headers
3063 # can be detected and how.
3064 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003065/* confdefs.h. */
3066_ACEOF
3067cat confdefs.h >>conftest.$ac_ext
3068cat >>conftest.$ac_ext <<_ACEOF
3069/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003070#include <ac_nonexistent.h>
3071_ACEOF
3072if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3073 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3074 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003075 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003076 rm -f conftest.er1
3077 cat conftest.err >&5
3078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079 (exit $ac_status); } >/dev/null; then
3080 if test -s conftest.err; then
3081 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003082 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003083 else
3084 ac_cpp_err=
3085 fi
3086else
3087 ac_cpp_err=yes
3088fi
3089if test -z "$ac_cpp_err"; then
3090 # Broken: success on invalid input.
3091continue
3092else
3093 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003094sed 's/^/| /' conftest.$ac_ext >&5
3095
John Criswell7a73b802003-06-30 21:59:07 +00003096 # Passes both tests.
3097ac_preproc_ok=:
3098break
3099fi
3100rm -f conftest.err conftest.$ac_ext
3101
3102done
3103# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3104rm -f conftest.err conftest.$ac_ext
3105if $ac_preproc_ok; then
3106 break
3107fi
3108
3109 done
3110 ac_cv_prog_CPP=$CPP
3111
3112fi
3113 CPP=$ac_cv_prog_CPP
3114else
3115 ac_cv_prog_CPP=$CPP
3116fi
3117echo "$as_me:$LINENO: result: $CPP" >&5
3118echo "${ECHO_T}$CPP" >&6
3119ac_preproc_ok=false
3120for ac_c_preproc_warn_flag in '' yes
3121do
3122 # Use a header file that comes with gcc, so configuring glibc
3123 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003124 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3125 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003126 # On the NeXT, cc -E runs the code through the compiler's parser,
3127 # not just through cpp. "Syntax error" is here to catch this case.
3128 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003129/* confdefs.h. */
3130_ACEOF
3131cat confdefs.h >>conftest.$ac_ext
3132cat >>conftest.$ac_ext <<_ACEOF
3133/* end confdefs.h. */
3134#ifdef __STDC__
3135# include <limits.h>
3136#else
3137# include <assert.h>
3138#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00003139 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003140_ACEOF
3141if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3142 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3143 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003144 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } >/dev/null; then
3149 if test -s conftest.err; then
3150 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003151 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003152 else
3153 ac_cpp_err=
3154 fi
3155else
3156 ac_cpp_err=yes
3157fi
3158if test -z "$ac_cpp_err"; then
3159 :
3160else
3161 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003162sed 's/^/| /' conftest.$ac_ext >&5
3163
John Criswell7a73b802003-06-30 21:59:07 +00003164 # Broken: fails on valid input.
3165continue
3166fi
3167rm -f conftest.err conftest.$ac_ext
3168
3169 # OK, works on sane cases. Now check whether non-existent headers
3170 # can be detected and how.
3171 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003172/* confdefs.h. */
3173_ACEOF
3174cat confdefs.h >>conftest.$ac_ext
3175cat >>conftest.$ac_ext <<_ACEOF
3176/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003177#include <ac_nonexistent.h>
3178_ACEOF
3179if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3180 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3181 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003182 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003183 rm -f conftest.er1
3184 cat conftest.err >&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); } >/dev/null; then
3187 if test -s conftest.err; then
3188 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00003189 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003190 else
3191 ac_cpp_err=
3192 fi
3193else
3194 ac_cpp_err=yes
3195fi
3196if test -z "$ac_cpp_err"; then
3197 # Broken: success on invalid input.
3198continue
3199else
3200 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003201sed 's/^/| /' conftest.$ac_ext >&5
3202
John Criswell7a73b802003-06-30 21:59:07 +00003203 # Passes both tests.
3204ac_preproc_ok=:
3205break
3206fi
3207rm -f conftest.err conftest.$ac_ext
3208
3209done
3210# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3211rm -f conftest.err conftest.$ac_ext
3212if $ac_preproc_ok; then
3213 :
3214else
John Criswell0c38eaf2003-09-10 15:17:25 +00003215 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3216See \`config.log' for more details." >&5
3217echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3218See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003219 { (exit 1); exit 1; }; }
3220fi
3221
3222ac_ext=c
3223ac_cpp='$CPP $CPPFLAGS'
3224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227
John Criswell7a73b802003-06-30 21:59:07 +00003228if test "$GXX" != "yes"
3229then
3230 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3231echo "$as_me: error: g++ required but not found" >&2;}
3232 { (exit 1); exit 1; }; }
3233fi
3234
John Criswellde00db22003-08-25 16:49:54 +00003235gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3236if test "$gccmajor" -lt "3"
3237then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003238 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3239echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003240 { (exit 1); exit 1; }; }
3241fi
3242
John Criswell7a73b802003-06-30 21:59:07 +00003243 echo "$as_me:$LINENO: checking for GNU make" >&5
3244echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3245if test "${_cv_gnu_make_command+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3247else
3248 _cv_gnu_make_command='' ;
3249 for a in "$MAKE" make gmake gnumake ; do
3250 if test -z "$a" ; then continue ; fi ;
3251 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3252 _cv_gnu_make_command=$a ;
3253 break;
3254 fi
3255 done ;
3256
3257fi
3258echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3259echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3260 if test "x$_cv_gnu_make_command" != "x" ; then
3261 ifGNUmake='' ;
3262 else
3263 ifGNUmake='#' ;
3264 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3265echo "${ECHO_T}\"Not found\"" >&6;
3266 fi
3267
3268
3269if test -z "$_cv_gnu_make_command"
3270then
3271 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3272echo "$as_me: error: GNU Make required but not found" >&2;}
3273 { (exit 1); exit 1; }; }
3274fi
3275
3276
3277echo "$as_me:$LINENO: checking " >&5
3278echo $ECHO_N "checking ... $ECHO_C" >&6
3279if test "${ac_cv_has_flex+set}" = set; then
3280 echo $ECHO_N "(cached) $ECHO_C" >&6
3281else
3282 for ac_prog in flex lex
3283do
3284 # Extract the first word of "$ac_prog", so it can be a program name with args.
3285set dummy $ac_prog; ac_word=$2
3286echo "$as_me:$LINENO: checking for $ac_word" >&5
3287echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3288if test "${ac_cv_prog_LEX+set}" = set; then
3289 echo $ECHO_N "(cached) $ECHO_C" >&6
3290else
3291 if test -n "$LEX"; then
3292 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3293else
3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3295for as_dir in $PATH
3296do
3297 IFS=$as_save_IFS
3298 test -z "$as_dir" && as_dir=.
3299 for ac_exec_ext in '' $ac_executable_extensions; do
3300 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3301 ac_cv_prog_LEX="$ac_prog"
3302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 break 2
3304 fi
3305done
3306done
3307
3308fi
3309fi
3310LEX=$ac_cv_prog_LEX
3311if test -n "$LEX"; then
3312 echo "$as_me:$LINENO: result: $LEX" >&5
3313echo "${ECHO_T}$LEX" >&6
3314else
3315 echo "$as_me:$LINENO: result: no" >&5
3316echo "${ECHO_T}no" >&6
3317fi
3318
3319 test -n "$LEX" && break
3320done
3321test -n "$LEX" || LEX=":"
3322
3323if test -z "$LEXLIB"
3324then
3325 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3326echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3327if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3328 echo $ECHO_N "(cached) $ECHO_C" >&6
3329else
3330 ac_check_lib_save_LIBS=$LIBS
3331LIBS="-lfl $LIBS"
3332cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003333/* confdefs.h. */
3334_ACEOF
3335cat confdefs.h >>conftest.$ac_ext
3336cat >>conftest.$ac_ext <<_ACEOF
3337/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003338
3339/* Override any gcc2 internal prototype to avoid an error. */
3340#ifdef __cplusplus
3341extern "C"
3342#endif
3343/* We use char because int might match the return type of a gcc2
3344 builtin and then its argument prototype would still apply. */
3345char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003346int
3347main ()
3348{
3349yywrap ();
3350 ;
3351 return 0;
3352}
3353_ACEOF
3354rm -f conftest.$ac_objext conftest$ac_exeext
3355if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003356 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003357 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003358 grep -v '^ *+' conftest.er1 >conftest.err
3359 rm -f conftest.er1
3360 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003363 { ac_try='test -z "$ac_c_werror_flag"
3364 || test ! -s conftest.err'
3365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 (eval $ac_try) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; } &&
3370 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3372 (eval $ac_try) 2>&5
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }; }; then
3376 ac_cv_lib_fl_yywrap=yes
3377else
3378 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003379sed 's/^/| /' conftest.$ac_ext >&5
3380
John Criswell7a73b802003-06-30 21:59:07 +00003381ac_cv_lib_fl_yywrap=no
3382fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003383rm -f conftest.err conftest.$ac_objext \
3384 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003385LIBS=$ac_check_lib_save_LIBS
3386fi
3387echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3388echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3389if test $ac_cv_lib_fl_yywrap = yes; then
3390 LEXLIB="-lfl"
3391else
3392 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3393echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3394if test "${ac_cv_lib_l_yywrap+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396else
3397 ac_check_lib_save_LIBS=$LIBS
3398LIBS="-ll $LIBS"
3399cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003400/* confdefs.h. */
3401_ACEOF
3402cat confdefs.h >>conftest.$ac_ext
3403cat >>conftest.$ac_ext <<_ACEOF
3404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003405
3406/* Override any gcc2 internal prototype to avoid an error. */
3407#ifdef __cplusplus
3408extern "C"
3409#endif
3410/* We use char because int might match the return type of a gcc2
3411 builtin and then its argument prototype would still apply. */
3412char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003413int
3414main ()
3415{
3416yywrap ();
3417 ;
3418 return 0;
3419}
3420_ACEOF
3421rm -f conftest.$ac_objext conftest$ac_exeext
3422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003423 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003424 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003425 grep -v '^ *+' conftest.er1 >conftest.err
3426 rm -f conftest.er1
3427 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003430 { ac_try='test -z "$ac_c_werror_flag"
3431 || test ! -s conftest.err'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433 (eval $ac_try) 2>&5
3434 ac_status=$?
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; } &&
3437 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3439 (eval $ac_try) 2>&5
3440 ac_status=$?
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); }; }; then
3443 ac_cv_lib_l_yywrap=yes
3444else
3445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003446sed 's/^/| /' conftest.$ac_ext >&5
3447
John Criswell7a73b802003-06-30 21:59:07 +00003448ac_cv_lib_l_yywrap=no
3449fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003450rm -f conftest.err conftest.$ac_objext \
3451 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003452LIBS=$ac_check_lib_save_LIBS
3453fi
3454echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3455echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3456if test $ac_cv_lib_l_yywrap = yes; then
3457 LEXLIB="-ll"
3458fi
3459
3460fi
3461
3462fi
3463
3464if test "x$LEX" != "x:"; then
3465 echo "$as_me:$LINENO: checking lex output file root" >&5
3466echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3467if test "${ac_cv_prog_lex_root+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3469else
3470 # The minimal lex program is just a single line: %%. But some broken lexes
3471# (Solaris, I think it was) want two %% lines, so accommodate them.
3472cat >conftest.l <<_ACEOF
3473%%
3474%%
3475_ACEOF
3476{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3477 (eval $LEX conftest.l) 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }
3481if test -f lex.yy.c; then
3482 ac_cv_prog_lex_root=lex.yy
3483elif test -f lexyy.c; then
3484 ac_cv_prog_lex_root=lexyy
3485else
3486 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3487echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3488 { (exit 1); exit 1; }; }
3489fi
3490fi
3491echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3492echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3493rm -f conftest.l
3494LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3495
3496echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3497echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3498if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3499 echo $ECHO_N "(cached) $ECHO_C" >&6
3500else
3501 # POSIX says lex can declare yytext either as a pointer or an array; the
3502# default is implementation-dependent. Figure out which it is, since
3503# not all implementations provide the %pointer and %array declarations.
3504ac_cv_prog_lex_yytext_pointer=no
3505echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3506ac_save_LIBS=$LIBS
3507LIBS="$LIBS $LEXLIB"
3508cat >conftest.$ac_ext <<_ACEOF
3509`cat $LEX_OUTPUT_ROOT.c`
3510_ACEOF
3511rm -f conftest.$ac_objext conftest$ac_exeext
3512if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00003513 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003514 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00003515 grep -v '^ *+' conftest.er1 >conftest.err
3516 rm -f conftest.er1
3517 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00003520 { ac_try='test -z "$ac_c_werror_flag"
3521 || test ! -s conftest.err'
3522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523 (eval $ac_try) 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }; } &&
3527 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529 (eval $ac_try) 2>&5
3530 ac_status=$?
3531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532 (exit $ac_status); }; }; then
3533 ac_cv_prog_lex_yytext_pointer=yes
3534else
3535 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003536sed 's/^/| /' conftest.$ac_ext >&5
3537
John Criswell7a73b802003-06-30 21:59:07 +00003538fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00003539rm -f conftest.err conftest.$ac_objext \
3540 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003541LIBS=$ac_save_LIBS
3542rm -f "${LEX_OUTPUT_ROOT}.c"
3543
3544fi
3545echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3546echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3547if test $ac_cv_prog_lex_yytext_pointer = yes; then
3548
3549cat >>confdefs.h <<\_ACEOF
3550#define YYTEXT_POINTER 1
3551_ACEOF
3552
3553fi
3554
3555fi
3556
3557fi
3558echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3559echo "${ECHO_T}$ac_cv_has_flex" >&6
3560if test "$LEX" != "flex"; then
3561 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3562echo "$as_me: error: flex not found but required" >&2;}
3563 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00003564else
3565 FLEX=flex
3566
John Criswell7a73b802003-06-30 21:59:07 +00003567fi
3568
3569echo "$as_me:$LINENO: checking " >&5
3570echo $ECHO_N "checking ... $ECHO_C" >&6
3571if test "${ac_cv_has_bison+set}" = set; then
3572 echo $ECHO_N "(cached) $ECHO_C" >&6
3573else
3574 for ac_prog in 'bison -y' byacc
3575do
3576 # Extract the first word of "$ac_prog", so it can be a program name with args.
3577set dummy $ac_prog; ac_word=$2
3578echo "$as_me:$LINENO: checking for $ac_word" >&5
3579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3580if test "${ac_cv_prog_YACC+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582else
3583 if test -n "$YACC"; then
3584 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3585else
3586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587for as_dir in $PATH
3588do
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3593 ac_cv_prog_YACC="$ac_prog"
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 break 2
3596 fi
3597done
3598done
3599
3600fi
3601fi
3602YACC=$ac_cv_prog_YACC
3603if test -n "$YACC"; then
3604 echo "$as_me:$LINENO: result: $YACC" >&5
3605echo "${ECHO_T}$YACC" >&6
3606else
3607 echo "$as_me:$LINENO: result: no" >&5
3608echo "${ECHO_T}no" >&6
3609fi
3610
3611 test -n "$YACC" && break
3612done
3613test -n "$YACC" || YACC="yacc"
3614
3615
3616fi
3617echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3618echo "${ECHO_T}$ac_cv_has_bison" >&6
3619if test "$YACC" != "bison -y"; then
3620 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3621echo "$as_me: error: bison not found but required" >&2;}
3622 { (exit 1); exit 1; }; }
3623else
Brian Gaeke12810632004-01-13 06:52:10 +00003624 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003625
3626fi
3627
John Criswell7a73b802003-06-30 21:59:07 +00003628# Check whether --enable-shared or --disable-shared was given.
3629if test "${enable_shared+set}" = set; then
3630 enableval="$enable_shared"
3631 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003632 case $enableval in
3633 yes) enable_shared=yes ;;
3634 no) enable_shared=no ;;
3635 *)
3636 enable_shared=no
3637 # Look at the argument we got. We use all the common list separators.
3638 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3639 for pkg in $enableval; do
3640 IFS="$lt_save_ifs"
3641 if test "X$pkg" = "X$p"; then
3642 enable_shared=yes
3643 fi
3644 done
3645 IFS="$lt_save_ifs"
3646 ;;
3647 esac
John Criswell7a73b802003-06-30 21:59:07 +00003648else
3649 enable_shared=yes
3650fi;
John Criswell47fdd832003-07-14 16:52:07 +00003651
John Criswell7a73b802003-06-30 21:59:07 +00003652# Check whether --enable-static or --disable-static was given.
3653if test "${enable_static+set}" = set; then
3654 enableval="$enable_static"
3655 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003656 case $enableval in
3657 yes) enable_static=yes ;;
3658 no) enable_static=no ;;
3659 *)
3660 enable_static=no
3661 # Look at the argument we got. We use all the common list separators.
3662 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3663 for pkg in $enableval; do
3664 IFS="$lt_save_ifs"
3665 if test "X$pkg" = "X$p"; then
3666 enable_static=yes
3667 fi
3668 done
3669 IFS="$lt_save_ifs"
3670 ;;
3671 esac
John Criswell7a73b802003-06-30 21:59:07 +00003672else
3673 enable_static=yes
3674fi;
John Criswell47fdd832003-07-14 16:52:07 +00003675
John Criswell7a73b802003-06-30 21:59:07 +00003676# Check whether --enable-fast-install or --disable-fast-install was given.
3677if test "${enable_fast_install+set}" = set; then
3678 enableval="$enable_fast_install"
3679 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003680 case $enableval in
3681 yes) enable_fast_install=yes ;;
3682 no) enable_fast_install=no ;;
3683 *)
3684 enable_fast_install=no
3685 # Look at the argument we got. We use all the common list separators.
3686 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3687 for pkg in $enableval; do
3688 IFS="$lt_save_ifs"
3689 if test "X$pkg" = "X$p"; then
3690 enable_fast_install=yes
3691 fi
3692 done
3693 IFS="$lt_save_ifs"
3694 ;;
3695 esac
John Criswell7a73b802003-06-30 21:59:07 +00003696else
3697 enable_fast_install=yes
3698fi;
John Criswell47fdd832003-07-14 16:52:07 +00003699
3700echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3701echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3702if test "${lt_cv_path_SED+set}" = set; then
3703 echo $ECHO_N "(cached) $ECHO_C" >&6
3704else
3705 # Loop through the user's path and test for sed and gsed.
3706# Then use that list of sed's as ones to test for truncation.
3707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3708for as_dir in $PATH
3709do
3710 IFS=$as_save_IFS
3711 test -z "$as_dir" && as_dir=.
3712 for lt_ac_prog in sed gsed; do
3713 for ac_exec_ext in '' $ac_executable_extensions; do
3714 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3715 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3716 fi
3717 done
3718 done
3719done
3720lt_ac_max=0
3721lt_ac_count=0
3722# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3723# along with /bin/sed that truncates output.
3724for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3725 test ! -f $lt_ac_sed && break
3726 cat /dev/null > conftest.in
3727 lt_ac_count=0
3728 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3729 # Check for GNU sed and select it if it is found.
3730 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3731 lt_cv_path_SED=$lt_ac_sed
3732 break
3733 fi
3734 while true; do
3735 cat conftest.in conftest.in >conftest.tmp
3736 mv conftest.tmp conftest.in
3737 cp conftest.in conftest.nl
3738 echo >>conftest.nl
3739 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3740 cmp -s conftest.out conftest.nl || break
3741 # 10000 chars as input seems more than enough
3742 test $lt_ac_count -gt 10 && break
3743 lt_ac_count=`expr $lt_ac_count + 1`
3744 if test $lt_ac_count -gt $lt_ac_max; then
3745 lt_ac_max=$lt_ac_count
3746 lt_cv_path_SED=$lt_ac_sed
3747 fi
3748 done
3749done
John Criswell47fdd832003-07-14 16:52:07 +00003750
John Criswell7a73b802003-06-30 21:59:07 +00003751fi
3752
Reid Spencer2706f8c2004-09-19 23:53:36 +00003753SED=$lt_cv_path_SED
John Criswell47fdd832003-07-14 16:52:07 +00003754echo "$as_me:$LINENO: result: $SED" >&5
3755echo "${ECHO_T}$SED" >&6
3756
3757echo "$as_me:$LINENO: checking for egrep" >&5
3758echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3759if test "${ac_cv_prog_egrep+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
3761else
3762 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3763 then ac_cv_prog_egrep='grep -E'
3764 else ac_cv_prog_egrep='egrep'
3765 fi
3766fi
3767echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3768echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3769 EGREP=$ac_cv_prog_egrep
3770
3771
John Criswell7a73b802003-06-30 21:59:07 +00003772
3773# Check whether --with-gnu-ld or --without-gnu-ld was given.
3774if test "${with_gnu_ld+set}" = set; then
3775 withval="$with_gnu_ld"
3776 test "$withval" = no || with_gnu_ld=yes
3777else
3778 with_gnu_ld=no
3779fi;
3780ac_prog=ld
3781if test "$GCC" = yes; then
3782 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003783 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3784echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003785 case $host in
3786 *-*-mingw*)
3787 # gcc leaves a trailing carriage return which upsets mingw
3788 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3789 *)
3790 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3791 esac
3792 case $ac_prog in
3793 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003794 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003795 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +00003796 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00003797 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003798 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003799 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003800 done
3801 test -z "$LD" && LD="$ac_prog"
3802 ;;
3803 "")
3804 # If it fails, then pretend we aren't using GCC.
3805 ac_prog=ld
3806 ;;
3807 *)
3808 # If it is relative, then search for the first ld in PATH.
3809 with_gnu_ld=unknown
3810 ;;
3811 esac
3812elif test "$with_gnu_ld" = yes; then
3813 echo "$as_me:$LINENO: checking for GNU ld" >&5
3814echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3815else
3816 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3817echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3818fi
3819if test "${lt_cv_path_LD+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821else
3822 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003823 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003824 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003825 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003826 test -z "$ac_dir" && ac_dir=.
3827 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3828 lt_cv_path_LD="$ac_dir/$ac_prog"
3829 # Check to see if the program is GNU ld. I'd rather use --version,
3830 # but apparently some GNU ld's only accept -v.
3831 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003832 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3833 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003834 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003835 ;;
3836 *)
John Criswell7a73b802003-06-30 21:59:07 +00003837 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003838 ;;
3839 esac
John Criswell7a73b802003-06-30 21:59:07 +00003840 fi
3841 done
John Criswell47fdd832003-07-14 16:52:07 +00003842 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003843else
3844 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3845fi
3846fi
3847
3848LD="$lt_cv_path_LD"
3849if test -n "$LD"; then
3850 echo "$as_me:$LINENO: result: $LD" >&5
3851echo "${ECHO_T}$LD" >&6
3852else
3853 echo "$as_me:$LINENO: result: no" >&5
3854echo "${ECHO_T}no" >&6
3855fi
3856test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3857echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3858 { (exit 1); exit 1; }; }
3859echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3860echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3861if test "${lt_cv_prog_gnu_ld+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863else
3864 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +00003865case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00003866*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003867 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003868 ;;
3869*)
John Criswell7a73b802003-06-30 21:59:07 +00003870 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003871 ;;
3872esac
John Criswell7a73b802003-06-30 21:59:07 +00003873fi
3874echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3875echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3876with_gnu_ld=$lt_cv_prog_gnu_ld
3877
3878
3879echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3880echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3881if test "${lt_cv_ld_reload_flag+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3883else
3884 lt_cv_ld_reload_flag='-r'
3885fi
3886echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3887echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3888reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003889case $reload_flag in
3890"" | " "*) ;;
3891*) reload_flag=" $reload_flag" ;;
3892esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00003893reload_cmds='$LD$reload_flag -o $output$reload_objs'
3894case $host_os in
3895 darwin*)
3896 if test "$GCC" = yes; then
3897 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
3898 else
3899 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3900 fi
3901 ;;
3902esac
John Criswell7a73b802003-06-30 21:59:07 +00003903
3904echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3905echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3906if test "${lt_cv_path_NM+set}" = set; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908else
3909 if test -n "$NM"; then
3910 # Let the user override the test.
3911 lt_cv_path_NM="$NM"
3912else
John Criswell47fdd832003-07-14 16:52:07 +00003913 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003914 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003915 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003916 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003917 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3918 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003919 # Check to see if the nm accepts a BSD-compat flag.
3920 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3921 # nm: unknown option "B" ignored
3922 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003923 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3924 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003925 lt_cv_path_NM="$tmp_nm -B"
3926 break
John Criswell47fdd832003-07-14 16:52:07 +00003927 ;;
3928 *)
3929 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3930 */dev/null*)
3931 lt_cv_path_NM="$tmp_nm -p"
3932 break
3933 ;;
3934 *)
3935 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3936 continue # so that we can try to find one that supports BSD flags
3937 ;;
3938 esac
3939 esac
John Criswell7a73b802003-06-30 21:59:07 +00003940 fi
3941 done
John Criswell47fdd832003-07-14 16:52:07 +00003942 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003943 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3944fi
3945fi
John Criswell47fdd832003-07-14 16:52:07 +00003946echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3947echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003948NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003949
3950echo "$as_me:$LINENO: checking whether ln -s works" >&5
3951echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3952LN_S=$as_ln_s
3953if test "$LN_S" = "ln -s"; then
3954 echo "$as_me:$LINENO: result: yes" >&5
3955echo "${ECHO_T}yes" >&6
3956else
3957 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3958echo "${ECHO_T}no, using $LN_S" >&6
3959fi
3960
John Criswell47fdd832003-07-14 16:52:07 +00003961echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3962echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003963if test "${lt_cv_deplibs_check_method+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965else
3966 lt_cv_file_magic_cmd='$MAGIC_CMD'
3967lt_cv_file_magic_test_file=
3968lt_cv_deplibs_check_method='unknown'
3969# Need to set the preceding variable on all platforms that support
3970# interlibrary dependencies.
3971# 'none' -- dependencies not supported.
3972# `unknown' -- same as none, but documents that we really don't know.
3973# 'pass_all' -- all dependencies passed with no checks.
3974# 'test_compile' -- check by making test program.
3975# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003976# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003977# If you have `file' or equivalent on your system and you're not sure
3978# whether `pass_all' will *always* work, you probably want this one.
3979
3980case $host_os in
3981aix4* | aix5*)
3982 lt_cv_deplibs_check_method=pass_all
3983 ;;
3984
3985beos*)
3986 lt_cv_deplibs_check_method=pass_all
3987 ;;
3988
Reid Spencer2706f8c2004-09-19 23:53:36 +00003989bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00003990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3991 lt_cv_file_magic_cmd='/usr/bin/file -L'
3992 lt_cv_file_magic_test_file=/shlib/libc.so
3993 ;;
3994
Reid Spencer2706f8c2004-09-19 23:53:36 +00003995cygwin*)
3996 # func_win32_libid is a shell function defined in ltmain.sh
John Criswell47fdd832003-07-14 16:52:07 +00003997 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
Reid Spencer2706f8c2004-09-19 23:53:36 +00003998 lt_cv_file_magic_cmd='func_win32_libid'
3999 ;;
4000
4001mingw* | pw32*)
4002 # Base MSYS/MinGW do not provide the 'file' command needed by
4003 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4004 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4005 lt_cv_file_magic_cmd='$OBJDUMP -f'
John Criswell7a73b802003-06-30 21:59:07 +00004006 ;;
4007
4008darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004009 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004010 ;;
4011
Reid Spencer2706f8c2004-09-19 23:53:36 +00004012freebsd* | kfreebsd*-gnu)
John Criswell7a73b802003-06-30 21:59:07 +00004013 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4014 case $host_cpu in
4015 i*86 )
4016 # Not sure whether the presence of OpenBSD here was a mistake.
4017 # Let's accept both of them until this is cleared up.
4018 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4019 lt_cv_file_magic_cmd=/usr/bin/file
4020 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4021 ;;
4022 esac
4023 else
4024 lt_cv_deplibs_check_method=pass_all
4025 fi
4026 ;;
4027
4028gnu*)
4029 lt_cv_deplibs_check_method=pass_all
4030 ;;
4031
John Criswell47fdd832003-07-14 16:52:07 +00004032hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004033 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004034 case "$host_cpu" in
4035 ia64*)
4036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4037 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4038 ;;
4039 hppa*64*)
4040 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]'
4041 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4042 ;;
4043 *)
4044 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4045 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4046 ;;
4047 esac
John Criswell7a73b802003-06-30 21:59:07 +00004048 ;;
4049
John Criswell47fdd832003-07-14 16:52:07 +00004050irix5* | irix6* | nonstopux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004051 case $LD in
4052 *-32|*"-32 ") libmagic=32-bit;;
4053 *-n32|*"-n32 ") libmagic=N32;;
4054 *-64|*"-64 ") libmagic=64-bit;;
4055 *) libmagic=never-match;;
John Criswell7a73b802003-06-30 21:59:07 +00004056 esac
John Criswell7a73b802003-06-30 21:59:07 +00004057 lt_cv_deplibs_check_method=pass_all
4058 ;;
4059
4060# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004061linux*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00004062 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004063 ;;
4064
4065netbsd*)
4066 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004067 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004068 else
John Criswell47fdd832003-07-14 16:52:07 +00004069 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004070 fi
4071 ;;
4072
4073newos6*)
4074 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4075 lt_cv_file_magic_cmd=/usr/bin/file
4076 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4077 ;;
4078
Reid Spencer2706f8c2004-09-19 23:53:36 +00004079nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00004080 lt_cv_deplibs_check_method=unknown
4081 ;;
4082
John Criswell7a73b802003-06-30 21:59:07 +00004083openbsd*)
John Criswell7a73b802003-06-30 21:59:07 +00004084 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 +00004085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004086 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00004087 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004088 fi
4089 ;;
4090
4091osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00004092 lt_cv_deplibs_check_method=pass_all
4093 ;;
4094
4095sco3.2v5*)
4096 lt_cv_deplibs_check_method=pass_all
4097 ;;
4098
4099solaris*)
4100 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004101 ;;
4102
John Criswell7a73b802003-06-30 21:59:07 +00004103sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4104 case $host_vendor in
4105 motorola)
4106 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]'
4107 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4108 ;;
4109 ncr)
4110 lt_cv_deplibs_check_method=pass_all
4111 ;;
4112 sequent)
4113 lt_cv_file_magic_cmd='/bin/file'
4114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4115 ;;
4116 sni)
4117 lt_cv_file_magic_cmd='/bin/file'
4118 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4119 lt_cv_file_magic_test_file=/lib/libc.so
4120 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004121 siemens)
4122 lt_cv_deplibs_check_method=pass_all
4123 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004124 esac
4125 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004126
4127sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4128 lt_cv_deplibs_check_method=pass_all
4129 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004130esac
4131
4132fi
4133echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4134echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4135file_magic_cmd=$lt_cv_file_magic_cmd
4136deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004137test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004138
4139
4140
4141
John Criswell47fdd832003-07-14 16:52:07 +00004142# If no C compiler was specified, use CC.
4143LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004144
John Criswell47fdd832003-07-14 16:52:07 +00004145# Allow CC to be a program name with arguments.
4146compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004147
John Criswell47fdd832003-07-14 16:52:07 +00004148# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4149if test "${enable_libtool_lock+set}" = set; then
4150 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004151
John Criswell47fdd832003-07-14 16:52:07 +00004152fi;
4153test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004154
John Criswell47fdd832003-07-14 16:52:07 +00004155# Some flags need to be propagated to the compiler or linker for good
4156# libtool support.
4157case $host in
4158ia64-*-hpux*)
4159 # Find out which ABI we are using.
4160 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4162 (eval $ac_compile) 2>&5
4163 ac_status=$?
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004166 case `/usr/bin/file conftest.$ac_objext` in
4167 *ELF-32*)
4168 HPUX_IA64_MODE="32"
4169 ;;
4170 *ELF-64*)
4171 HPUX_IA64_MODE="64"
4172 ;;
4173 esac
4174 fi
4175 rm -rf conftest*
4176 ;;
4177*-*-irix6*)
4178 # Find out which ABI we are using.
John Criswell9f011862004-09-24 18:28:00 +00004179 echo '#line 4179 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004184 (exit $ac_status); }; then
4185 if test "$lt_cv_prog_gnu_ld" = yes; then
4186 case `/usr/bin/file conftest.$ac_objext` in
4187 *32-bit*)
4188 LD="${LD-ld} -melf32bsmip"
4189 ;;
4190 *N32*)
4191 LD="${LD-ld} -melf32bmipn32"
4192 ;;
4193 *64-bit*)
4194 LD="${LD-ld} -melf64bmip"
4195 ;;
4196 esac
4197 else
4198 case `/usr/bin/file conftest.$ac_objext` in
4199 *32-bit*)
4200 LD="${LD-ld} -32"
4201 ;;
4202 *N32*)
4203 LD="${LD-ld} -n32"
4204 ;;
4205 *64-bit*)
4206 LD="${LD-ld} -64"
4207 ;;
4208 esac
4209 fi
4210 fi
4211 rm -rf conftest*
4212 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004213
John Criswell47fdd832003-07-14 16:52:07 +00004214x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4215 # Find out which ABI we are using.
4216 echo 'int i;' > conftest.$ac_ext
4217 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4218 (eval $ac_compile) 2>&5
4219 ac_status=$?
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; then
4222 case "`/usr/bin/file conftest.o`" in
4223 *32-bit*)
4224 case $host in
4225 x86_64-*linux*)
4226 LD="${LD-ld} -m elf_i386"
4227 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00004228 ppc64-*linux*|powerpc64-*linux*)
John Criswell47fdd832003-07-14 16:52:07 +00004229 LD="${LD-ld} -m elf32ppclinux"
4230 ;;
4231 s390x-*linux*)
4232 LD="${LD-ld} -m elf_s390"
4233 ;;
4234 sparc64-*linux*)
4235 LD="${LD-ld} -m elf32_sparc"
4236 ;;
4237 esac
4238 ;;
4239 *64-bit*)
4240 case $host in
4241 x86_64-*linux*)
4242 LD="${LD-ld} -m elf_x86_64"
4243 ;;
4244 ppc*-*linux*|powerpc*-*linux*)
4245 LD="${LD-ld} -m elf64ppc"
4246 ;;
4247 s390*-*linux*)
4248 LD="${LD-ld} -m elf64_s390"
4249 ;;
4250 sparc*-*linux*)
4251 LD="${LD-ld} -m elf64_sparc"
4252 ;;
4253 esac
4254 ;;
4255 esac
4256 fi
4257 rm -rf conftest*
4258 ;;
4259
4260*-*-sco3.2v5*)
4261 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4262 SAVE_CFLAGS="$CFLAGS"
4263 CFLAGS="$CFLAGS -belf"
4264 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4265echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4266if test "${lt_cv_cc_needs_belf+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268else
4269 ac_ext=c
4270ac_cpp='$CPP $CPPFLAGS'
4271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4273ac_compiler_gnu=$ac_cv_c_compiler_gnu
4274
4275 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004276/* confdefs.h. */
4277_ACEOF
4278cat confdefs.h >>conftest.$ac_ext
4279cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004281
John Criswell47fdd832003-07-14 16:52:07 +00004282int
4283main ()
John Criswell7a73b802003-06-30 21:59:07 +00004284{
John Criswell7a73b802003-06-30 21:59:07 +00004285
John Criswell47fdd832003-07-14 16:52:07 +00004286 ;
4287 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004288}
John Criswell47fdd832003-07-14 16:52:07 +00004289_ACEOF
4290rm -f conftest.$ac_objext conftest$ac_exeext
4291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004292 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004293 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004294 grep -v '^ *+' conftest.er1 >conftest.err
4295 rm -f conftest.er1
4296 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004298 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004299 { ac_try='test -z "$ac_c_werror_flag"
4300 || test ! -s conftest.err'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; } &&
4306 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00004307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4308 (eval $ac_try) 2>&5
4309 ac_status=$?
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4312 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004313else
John Criswell47fdd832003-07-14 16:52:07 +00004314 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004315sed 's/^/| /' conftest.$ac_ext >&5
4316
John Criswell47fdd832003-07-14 16:52:07 +00004317lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004318fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004319rm -f conftest.err conftest.$ac_objext \
4320 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004321 ac_ext=c
4322ac_cpp='$CPP $CPPFLAGS'
4323ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326
John Criswell7a73b802003-06-30 21:59:07 +00004327fi
John Criswell47fdd832003-07-14 16:52:07 +00004328echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4329echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4330 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4331 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4332 CFLAGS="$SAVE_CFLAGS"
4333 fi
4334 ;;
4335
4336esac
4337
4338need_locks="$enable_libtool_lock"
4339
John Criswell7a73b802003-06-30 21:59:07 +00004340
4341
4342echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4343echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4344if test "${ac_cv_header_stdc+set}" = set; then
4345 echo $ECHO_N "(cached) $ECHO_C" >&6
4346else
4347 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004348/* confdefs.h. */
4349_ACEOF
4350cat confdefs.h >>conftest.$ac_ext
4351cat >>conftest.$ac_ext <<_ACEOF
4352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004353#include <stdlib.h>
4354#include <stdarg.h>
4355#include <string.h>
4356#include <float.h>
4357
John Criswell0c38eaf2003-09-10 15:17:25 +00004358int
4359main ()
4360{
4361
4362 ;
4363 return 0;
4364}
John Criswell7a73b802003-06-30 21:59:07 +00004365_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004366rm -f conftest.$ac_objext
4367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004368 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004369 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004370 grep -v '^ *+' conftest.er1 >conftest.err
4371 rm -f conftest.er1
4372 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004374 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004375 { ac_try='test -z "$ac_c_werror_flag"
4376 || test ! -s conftest.err'
4377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378 (eval $ac_try) 2>&5
4379 ac_status=$?
4380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381 (exit $ac_status); }; } &&
4382 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00004383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004388 ac_cv_header_stdc=yes
4389else
4390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004391sed 's/^/| /' conftest.$ac_ext >&5
4392
4393ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004394fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004396
4397if test $ac_cv_header_stdc = yes; then
4398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4399 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004400/* confdefs.h. */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004405#include <string.h>
4406
4407_ACEOF
4408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004409 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004410 :
4411else
4412 ac_cv_header_stdc=no
4413fi
4414rm -f conftest*
4415
4416fi
4417
4418if test $ac_cv_header_stdc = yes; then
4419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4420 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004421/* confdefs.h. */
4422_ACEOF
4423cat confdefs.h >>conftest.$ac_ext
4424cat >>conftest.$ac_ext <<_ACEOF
4425/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004426#include <stdlib.h>
4427
4428_ACEOF
4429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004430 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004431 :
4432else
4433 ac_cv_header_stdc=no
4434fi
4435rm -f conftest*
4436
4437fi
4438
4439if test $ac_cv_header_stdc = yes; then
4440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4441 if test "$cross_compiling" = yes; then
4442 :
4443else
4444 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004445/* confdefs.h. */
4446_ACEOF
4447cat confdefs.h >>conftest.$ac_ext
4448cat >>conftest.$ac_ext <<_ACEOF
4449/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004450#include <ctype.h>
4451#if ((' ' & 0x0FF) == 0x020)
4452# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4453# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4454#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004455# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004456 (('a' <= (c) && (c) <= 'i') \
4457 || ('j' <= (c) && (c) <= 'r') \
4458 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004459# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4460#endif
4461
4462#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4463int
4464main ()
4465{
4466 int i;
4467 for (i = 0; i < 256; i++)
4468 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +00004469 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00004470 exit(2);
4471 exit (0);
4472}
4473_ACEOF
4474rm -f conftest$ac_exeext
4475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4476 (eval $ac_link) 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; }; then
4485 :
4486else
4487 echo "$as_me: program exited with status $ac_status" >&5
4488echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004489sed 's/^/| /' conftest.$ac_ext >&5
4490
John Criswell7a73b802003-06-30 21:59:07 +00004491( exit $ac_status )
4492ac_cv_header_stdc=no
4493fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004494rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004495fi
4496fi
4497fi
4498echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4499echo "${ECHO_T}$ac_cv_header_stdc" >&6
4500if test $ac_cv_header_stdc = yes; then
4501
4502cat >>confdefs.h <<\_ACEOF
4503#define STDC_HEADERS 1
4504_ACEOF
4505
4506fi
4507
4508# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2706f8c2004-09-19 23:53:36 +00004519 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00004520do
4521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4522echo "$as_me:$LINENO: checking for $ac_header" >&5
4523echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4524if eval "test \"\${$as_ac_Header+set}\" = set"; then
4525 echo $ECHO_N "(cached) $ECHO_C" >&6
4526else
4527 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004528/* confdefs.h. */
4529_ACEOF
4530cat confdefs.h >>conftest.$ac_ext
4531cat >>conftest.$ac_ext <<_ACEOF
4532/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004533$ac_includes_default
4534
4535#include <$ac_header>
4536_ACEOF
4537rm -f conftest.$ac_objext
4538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004539 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004540 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004541 grep -v '^ *+' conftest.er1 >conftest.err
4542 rm -f conftest.er1
4543 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004546 { ac_try='test -z "$ac_c_werror_flag"
4547 || test ! -s conftest.err'
4548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4549 (eval $ac_try) 2>&5
4550 ac_status=$?
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; } &&
4553 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555 (eval $ac_try) 2>&5
4556 ac_status=$?
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); }; }; then
4559 eval "$as_ac_Header=yes"
4560else
4561 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004562sed 's/^/| /' conftest.$ac_ext >&5
4563
John Criswell7a73b802003-06-30 21:59:07 +00004564eval "$as_ac_Header=no"
4565fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004567fi
4568echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4569echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4570if test `eval echo '${'$as_ac_Header'}'` = yes; then
4571 cat >>confdefs.h <<_ACEOF
4572#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4573_ACEOF
4574
4575fi
4576
4577done
4578
4579
4580
4581for ac_header in dlfcn.h
4582do
4583as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00004584if eval "test \"\${$as_ac_Header+set}\" = set"; then
4585 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00004586echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4587if eval "test \"\${$as_ac_Header+set}\" = set"; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00004589fi
4590echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4591echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004592else
Brian Gaeke0a621332004-09-08 20:38:05 +00004593 # Is the header compilable?
4594echo "$as_me:$LINENO: checking $ac_header usability" >&5
4595echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4596cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004597/* confdefs.h. */
4598_ACEOF
4599cat confdefs.h >>conftest.$ac_ext
4600cat >>conftest.$ac_ext <<_ACEOF
4601/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004602$ac_includes_default
4603#include <$ac_header>
4604_ACEOF
4605rm -f conftest.$ac_objext
4606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00004607 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004608 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004609 grep -v '^ *+' conftest.er1 >conftest.err
4610 rm -f conftest.er1
4611 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00004614 { ac_try='test -z "$ac_c_werror_flag"
4615 || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 (eval $ac_try) 2>&5
4624 ac_status=$?
4625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4626 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00004627 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00004628else
4629 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004630sed 's/^/| /' conftest.$ac_ext >&5
4631
Brian Gaeke0a621332004-09-08 20:38:05 +00004632ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00004633fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00004634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00004635echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4636echo "${ECHO_T}$ac_header_compiler" >&6
4637
4638# Is the header present?
4639echo "$as_me:$LINENO: checking $ac_header presence" >&5
4640echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4641cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004642/* confdefs.h. */
4643_ACEOF
4644cat confdefs.h >>conftest.$ac_ext
4645cat >>conftest.$ac_ext <<_ACEOF
4646/* end confdefs.h. */
4647#include <$ac_header>
4648_ACEOF
4649if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4650 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4651 ac_status=$?
4652 grep -v '^ *+' conftest.er1 >conftest.err
4653 rm -f conftest.er1
4654 cat conftest.err >&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } >/dev/null; then
4657 if test -s conftest.err; then
4658 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004659 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke0a621332004-09-08 20:38:05 +00004660 else
4661 ac_cpp_err=
4662 fi
4663else
4664 ac_cpp_err=yes
4665fi
4666if test -z "$ac_cpp_err"; then
4667 ac_header_preproc=yes
4668else
4669 echo "$as_me: failed program was:" >&5
4670sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 ac_header_preproc=no
4673fi
4674rm -f conftest.err conftest.$ac_ext
4675echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4676echo "${ECHO_T}$ac_header_preproc" >&6
4677
4678# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +00004679case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4680 yes:no: )
Brian Gaeke0a621332004-09-08 20:38:05 +00004681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4682echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4684echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4685 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00004686 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00004687 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +00004688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4689echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4691echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4693echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4695echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00004696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4697echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +00004698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4699echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00004700 (
4701 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +00004702## ----------------------------------- ##
4703## Report this to llvmbugs@cs.uiuc.edu ##
4704## ----------------------------------- ##
Brian Gaeke0a621332004-09-08 20:38:05 +00004705_ASBOX
4706 ) |
4707 sed "s/^/$as_me: WARNING: /" >&2
4708 ;;
4709esac
4710echo "$as_me:$LINENO: checking for $ac_header" >&5
4711echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4712if eval "test \"\${$as_ac_Header+set}\" = set"; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4714else
Reid Spencer2706f8c2004-09-19 23:53:36 +00004715 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00004716fi
4717echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4718echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00004719
4720fi
John Criswell7a73b802003-06-30 21:59:07 +00004721if test `eval echo '${'$as_ac_Header'}'` = yes; then
4722 cat >>confdefs.h <<_ACEOF
4723#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4724_ACEOF
4725
4726fi
4727
4728done
4729
Reid Spencer2706f8c2004-09-19 23:53:36 +00004730
4731
4732if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4733 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4734 (test "X$CXX" != "Xg++"))) ; then
4735 ac_ext=cc
John Criswell47fdd832003-07-14 16:52:07 +00004736ac_cpp='$CXXCPP $CPPFLAGS'
4737ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4738ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4739ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4740echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4741echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4742if test -z "$CXXCPP"; then
4743 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004744 echo $ECHO_N "(cached) $ECHO_C" >&6
4745else
John Criswell47fdd832003-07-14 16:52:07 +00004746 # Double quotes because CXXCPP needs to be expanded
4747 for CXXCPP in "$CXX -E" "/lib/cpp"
4748 do
4749 ac_preproc_ok=false
4750for ac_cxx_preproc_warn_flag in '' yes
4751do
4752 # Use a header file that comes with gcc, so configuring glibc
4753 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004756 # On the NeXT, cc -E runs the code through the compiler's parser,
4757 # not just through cpp. "Syntax error" is here to catch this case.
4758 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004759/* confdefs.h. */
4760_ACEOF
4761cat confdefs.h >>conftest.$ac_ext
4762cat >>conftest.$ac_ext <<_ACEOF
4763/* end confdefs.h. */
4764#ifdef __STDC__
4765# include <limits.h>
4766#else
4767# include <assert.h>
4768#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00004769 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004770_ACEOF
4771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4773 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004774 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004775 rm -f conftest.er1
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } >/dev/null; then
4779 if test -s conftest.err; then
4780 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004781 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004782 else
John Criswell47fdd832003-07-14 16:52:07 +00004783 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004784 fi
John Criswell47fdd832003-07-14 16:52:07 +00004785else
4786 ac_cpp_err=yes
4787fi
4788if test -z "$ac_cpp_err"; then
4789 :
4790else
4791 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004792sed 's/^/| /' conftest.$ac_ext >&5
4793
John Criswell47fdd832003-07-14 16:52:07 +00004794 # Broken: fails on valid input.
4795continue
4796fi
4797rm -f conftest.err conftest.$ac_ext
4798
4799 # OK, works on sane cases. Now check whether non-existent headers
4800 # can be detected and how.
4801 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004802/* confdefs.h. */
4803_ACEOF
4804cat confdefs.h >>conftest.$ac_ext
4805cat >>conftest.$ac_ext <<_ACEOF
4806/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004807#include <ac_nonexistent.h>
4808_ACEOF
4809if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4811 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004812 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004813 rm -f conftest.er1
4814 cat conftest.err >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); } >/dev/null; then
4817 if test -s conftest.err; then
4818 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004819 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004820 else
4821 ac_cpp_err=
4822 fi
4823else
4824 ac_cpp_err=yes
4825fi
4826if test -z "$ac_cpp_err"; then
4827 # Broken: success on invalid input.
4828continue
4829else
4830 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004831sed 's/^/| /' conftest.$ac_ext >&5
4832
John Criswell47fdd832003-07-14 16:52:07 +00004833 # Passes both tests.
4834ac_preproc_ok=:
4835break
4836fi
4837rm -f conftest.err conftest.$ac_ext
4838
4839done
4840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4841rm -f conftest.err conftest.$ac_ext
4842if $ac_preproc_ok; then
4843 break
John Criswell7a73b802003-06-30 21:59:07 +00004844fi
4845
John Criswell47fdd832003-07-14 16:52:07 +00004846 done
4847 ac_cv_prog_CXXCPP=$CXXCPP
4848
4849fi
4850 CXXCPP=$ac_cv_prog_CXXCPP
4851else
4852 ac_cv_prog_CXXCPP=$CXXCPP
4853fi
4854echo "$as_me:$LINENO: result: $CXXCPP" >&5
4855echo "${ECHO_T}$CXXCPP" >&6
4856ac_preproc_ok=false
4857for ac_cxx_preproc_warn_flag in '' yes
4858do
4859 # Use a header file that comes with gcc, so configuring glibc
4860 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004863 # On the NeXT, cc -E runs the code through the compiler's parser,
4864 # not just through cpp. "Syntax error" is here to catch this case.
4865 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004866/* confdefs.h. */
4867_ACEOF
4868cat confdefs.h >>conftest.$ac_ext
4869cat >>conftest.$ac_ext <<_ACEOF
4870/* end confdefs.h. */
4871#ifdef __STDC__
4872# include <limits.h>
4873#else
4874# include <assert.h>
4875#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00004876 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004877_ACEOF
4878if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4879 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4880 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004881 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004882 rm -f conftest.er1
4883 cat conftest.err >&5
4884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4885 (exit $ac_status); } >/dev/null; then
4886 if test -s conftest.err; then
4887 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004888 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004889 else
4890 ac_cpp_err=
4891 fi
4892else
4893 ac_cpp_err=yes
4894fi
4895if test -z "$ac_cpp_err"; then
4896 :
4897else
4898 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004899sed 's/^/| /' conftest.$ac_ext >&5
4900
John Criswell47fdd832003-07-14 16:52:07 +00004901 # Broken: fails on valid input.
4902continue
4903fi
4904rm -f conftest.err conftest.$ac_ext
4905
4906 # OK, works on sane cases. Now check whether non-existent headers
4907 # can be detected and how.
4908 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004909/* confdefs.h. */
4910_ACEOF
4911cat confdefs.h >>conftest.$ac_ext
4912cat >>conftest.$ac_ext <<_ACEOF
4913/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004914#include <ac_nonexistent.h>
4915_ACEOF
4916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4918 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004919 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004920 rm -f conftest.er1
4921 cat conftest.err >&5
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); } >/dev/null; then
4924 if test -s conftest.err; then
4925 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +00004926 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004927 else
4928 ac_cpp_err=
4929 fi
4930else
4931 ac_cpp_err=yes
4932fi
4933if test -z "$ac_cpp_err"; then
4934 # Broken: success on invalid input.
4935continue
4936else
4937 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004938sed 's/^/| /' conftest.$ac_ext >&5
4939
John Criswell47fdd832003-07-14 16:52:07 +00004940 # Passes both tests.
4941ac_preproc_ok=:
4942break
4943fi
4944rm -f conftest.err conftest.$ac_ext
4945
4946done
4947# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4948rm -f conftest.err conftest.$ac_ext
4949if $ac_preproc_ok; then
4950 :
4951else
John Criswell0c38eaf2003-09-10 15:17:25 +00004952 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4953See \`config.log' for more details." >&5
4954echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4955See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004956 { (exit 1); exit 1; }; }
4957fi
4958
4959ac_ext=cc
4960ac_cpp='$CXXCPP $CPPFLAGS'
4961ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4964
Reid Spencer2706f8c2004-09-19 23:53:36 +00004965fi
4966
John Criswell47fdd832003-07-14 16:52:07 +00004967
4968ac_ext=f
4969ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4970ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4972if test -n "$ac_tool_prefix"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00004973 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
John Criswell47fdd832003-07-14 16:52:07 +00004974 do
4975 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4976set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4977echo "$as_me:$LINENO: checking for $ac_word" >&5
4978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4979if test "${ac_cv_prog_F77+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982 if test -n "$F77"; then
4983 ac_cv_prog_F77="$F77" # Let the user override the test.
4984else
4985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986for as_dir in $PATH
4987do
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4995 fi
4996done
4997done
4998
4999fi
5000fi
5001F77=$ac_cv_prog_F77
5002if test -n "$F77"; then
5003 echo "$as_me:$LINENO: result: $F77" >&5
5004echo "${ECHO_T}$F77" >&6
5005else
5006 echo "$as_me:$LINENO: result: no" >&5
5007echo "${ECHO_T}no" >&6
5008fi
5009
5010 test -n "$F77" && break
5011 done
5012fi
5013if test -z "$F77"; then
5014 ac_ct_F77=$F77
Reid Spencer2706f8c2004-09-19 23:53:36 +00005015 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
John Criswell47fdd832003-07-14 16:52:07 +00005016do
5017 # Extract the first word of "$ac_prog", so it can be a program name with args.
5018set dummy $ac_prog; ac_word=$2
5019echo "$as_me:$LINENO: checking for $ac_word" >&5
5020echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5021if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5022 echo $ECHO_N "(cached) $ECHO_C" >&6
5023else
5024 if test -n "$ac_ct_F77"; then
5025 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5026else
5027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5028for as_dir in $PATH
5029do
5030 IFS=$as_save_IFS
5031 test -z "$as_dir" && as_dir=.
5032 for ac_exec_ext in '' $ac_executable_extensions; do
5033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5034 ac_cv_prog_ac_ct_F77="$ac_prog"
5035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 break 2
5037 fi
5038done
5039done
5040
5041fi
5042fi
5043ac_ct_F77=$ac_cv_prog_ac_ct_F77
5044if test -n "$ac_ct_F77"; then
5045 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5046echo "${ECHO_T}$ac_ct_F77" >&6
5047else
5048 echo "$as_me:$LINENO: result: no" >&5
5049echo "${ECHO_T}no" >&6
5050fi
5051
5052 test -n "$ac_ct_F77" && break
5053done
5054
5055 F77=$ac_ct_F77
5056fi
5057
5058
5059# Provide some information about the compiler.
John Criswell9f011862004-09-24 18:28:00 +00005060echo "$as_me:5060:" \
John Criswell47fdd832003-07-14 16:52:07 +00005061 "checking for Fortran 77 compiler version" >&5
5062ac_compiler=`set X $ac_compile; echo $2`
5063{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5064 (eval $ac_compiler --version </dev/null >&5) 2>&5
5065 ac_status=$?
5066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067 (exit $ac_status); }
5068{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5069 (eval $ac_compiler -v </dev/null >&5) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }
5073{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5074 (eval $ac_compiler -V </dev/null >&5) 2>&5
5075 ac_status=$?
5076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); }
Reid Spencer2706f8c2004-09-19 23:53:36 +00005078rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00005079
5080# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2706f8c2004-09-19 23:53:36 +00005081# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00005082ac_save_ext=$ac_ext
5083ac_ext=F
5084echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5085echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5086if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5087 echo $ECHO_N "(cached) $ECHO_C" >&6
5088else
5089 cat >conftest.$ac_ext <<_ACEOF
5090 program main
5091#ifndef __GNUC__
5092 choke me
5093#endif
5094
5095 end
5096_ACEOF
5097rm -f conftest.$ac_objext
5098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005099 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005100 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005101 grep -v '^ *+' conftest.er1 >conftest.err
5102 rm -f conftest.er1
5103 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005106 { ac_try='test -z "$ac_f77_werror_flag"
5107 || test ! -s conftest.err'
5108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109 (eval $ac_try) 2>&5
5110 ac_status=$?
5111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112 (exit $ac_status); }; } &&
5113 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115 (eval $ac_try) 2>&5
5116 ac_status=$?
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; }; then
5119 ac_compiler_gnu=yes
5120else
5121 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005122sed 's/^/| /' conftest.$ac_ext >&5
5123
John Criswell47fdd832003-07-14 16:52:07 +00005124ac_compiler_gnu=no
5125fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005127ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5128
5129fi
5130echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5131echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5132ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005133ac_test_FFLAGS=${FFLAGS+set}
5134ac_save_FFLAGS=$FFLAGS
5135FFLAGS=
5136echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5137echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5138if test "${ac_cv_prog_f77_g+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140else
5141 FFLAGS=-g
5142cat >conftest.$ac_ext <<_ACEOF
5143 program main
5144
5145 end
5146_ACEOF
5147rm -f conftest.$ac_objext
5148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00005149 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005150 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00005151 grep -v '^ *+' conftest.er1 >conftest.err
5152 rm -f conftest.er1
5153 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5155 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00005156 { ac_try='test -z "$ac_f77_werror_flag"
5157 || test ! -s conftest.err'
5158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159 (eval $ac_try) 2>&5
5160 ac_status=$?
5161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162 (exit $ac_status); }; } &&
5163 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165 (eval $ac_try) 2>&5
5166 ac_status=$?
5167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168 (exit $ac_status); }; }; then
5169 ac_cv_prog_f77_g=yes
5170else
5171 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005172sed 's/^/| /' conftest.$ac_ext >&5
5173
John Criswell47fdd832003-07-14 16:52:07 +00005174ac_cv_prog_f77_g=no
5175fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005176rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005177
5178fi
5179echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5180echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5181if test "$ac_test_FFLAGS" = set; then
5182 FFLAGS=$ac_save_FFLAGS
5183elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00005184 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005185 FFLAGS="-g -O2"
5186 else
5187 FFLAGS="-g"
5188 fi
5189else
Reid Spencer2706f8c2004-09-19 23:53:36 +00005190 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005191 FFLAGS="-O2"
5192 else
5193 FFLAGS=
5194 fi
5195fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00005196
5197G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00005198ac_ext=c
5199ac_cpp='$CPP $CPPFLAGS'
5200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202ac_compiler_gnu=$ac_cv_c_compiler_gnu
5203
5204
5205
5206# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5207
5208# find the maximum length of command line arguments
5209echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5210echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5211if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5213else
5214 i=0
Reid Spencer2706f8c2004-09-19 23:53:36 +00005215 teststring="ABCD"
John Criswell47fdd832003-07-14 16:52:07 +00005216
5217 case $build_os in
5218 msdosdjgpp*)
5219 # On DJGPP, this test can blow up pretty badly due to problems in libc
5220 # (any single argument exceeding 2000 bytes causes a buffer overrun
5221 # during glob expansion). Even if it were fixed, the result of this
5222 # check would be larger than it should be.
5223 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5224 ;;
5225
5226 gnu*)
5227 # Under GNU Hurd, this test is not required because there is
5228 # no limit to the length of command line arguments.
5229 # Libtool will interpret -1 as no limit whatsoever
5230 lt_cv_sys_max_cmd_len=-1;
5231 ;;
5232
5233 cygwin* | mingw*)
5234 # On Win9x/ME, this test blows up -- it succeeds, but takes
5235 # about 5 minutes as the teststring grows exponentially.
5236 # Worse, since 9x/ME are not pre-emptively multitasking,
5237 # you end up with a "frozen" computer, even though with patience
5238 # the test eventually succeeds (with a max line length of 256k).
5239 # Instead, let's just punt: use the minimum linelength reported by
5240 # all of the supported platforms: 8192 (on NT/2K/XP).
5241 lt_cv_sys_max_cmd_len=8192;
5242 ;;
5243
Reid Spencer2706f8c2004-09-19 23:53:36 +00005244 amigaos*)
5245 # On AmigaOS with pdksh, this test takes hours, literally.
5246 # So we just punt and use a minimum line length of 8192.
5247 lt_cv_sys_max_cmd_len=8192;
5248 ;;
5249
5250 netbsd* | freebsd* | openbsd* | darwin* )
5251 # This has been around since 386BSD, at least. Likely further.
5252 if test -x /sbin/sysctl; then
5253 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5254 elif test -x /usr/sbin/sysctl; then
5255 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5256 else
5257 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
5258 fi
5259 # And add a safety zone
5260 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5261 ;;
5262
John Criswell47fdd832003-07-14 16:52:07 +00005263 *)
5264 # If test is not a shell built-in, we'll probably end up computing a
5265 # maximum length that is only half of the actual maximum length, but
5266 # we can't tell.
Reid Spencer2706f8c2004-09-19 23:53:36 +00005267 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5268 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5269 = "XX$teststring") >/dev/null 2>&1 &&
5270 new_result=`expr "X$teststring" : ".*" 2>&1` &&
John Criswell47fdd832003-07-14 16:52:07 +00005271 lt_cv_sys_max_cmd_len=$new_result &&
5272 test $i != 17 # 1/2 MB should be enough
5273 do
5274 i=`expr $i + 1`
Reid Spencer2706f8c2004-09-19 23:53:36 +00005275 teststring=$teststring$teststring
John Criswell47fdd832003-07-14 16:52:07 +00005276 done
Reid Spencer2706f8c2004-09-19 23:53:36 +00005277 teststring=
John Criswell47fdd832003-07-14 16:52:07 +00005278 # Add a significant safety factor because C++ compilers can tack on massive
5279 # amounts of additional arguments before passing them to the linker.
5280 # It appears as though 1/2 is a usable value.
5281 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5282 ;;
5283 esac
5284
5285fi
5286
5287if test -n $lt_cv_sys_max_cmd_len ; then
5288 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5289echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5290else
5291 echo "$as_me:$LINENO: result: none" >&5
5292echo "${ECHO_T}none" >&6
5293fi
5294
5295
5296
5297
5298# Check for command to grab the raw symbol name followed by C symbol from nm.
5299echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5300echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5301if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5302 echo $ECHO_N "(cached) $ECHO_C" >&6
5303else
5304
5305# These are sane defaults that work on at least a few old systems.
5306# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5307
5308# Character class describing NM global symbol codes.
5309symcode='[BCDEGRST]'
5310
5311# Regexp to match symbols that can be accessed directly from C.
5312sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5313
5314# Transform the above into a raw symbol and a C symbol.
5315symxfrm='\1 \2\3 \3'
5316
5317# Transform an extracted symbol line into a proper C declaration
5318lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5319
5320# Transform an extracted symbol line into symbol name and symbol address
5321lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5322
5323# Define system-specific variables.
5324case $host_os in
5325aix*)
5326 symcode='[BCDT]'
5327 ;;
5328cygwin* | mingw* | pw32*)
5329 symcode='[ABCDGISTW]'
5330 ;;
5331hpux*) # Its linker distinguishes data from code symbols
5332 if test "$host_cpu" = ia64; then
5333 symcode='[ABCDEGRST]'
5334 fi
5335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5336 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5337 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00005338linux*)
5339 if test "$host_cpu" = ia64; then
5340 symcode='[ABCDGIRSTW]'
5341 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5342 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5343 fi
5344 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005345irix* | nonstopux*)
5346 symcode='[BCDEGRST]'
5347 ;;
5348osf*)
5349 symcode='[BCDEGQRST]'
5350 ;;
5351solaris* | sysv5*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005352 symcode='[BDRT]'
John Criswell47fdd832003-07-14 16:52:07 +00005353 ;;
5354sysv4)
5355 symcode='[DFNSTU]'
5356 ;;
5357esac
5358
5359# Handle CRLF in mingw tool chain
5360opt_cr=
5361case $build_os in
5362mingw*)
5363 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5364 ;;
5365esac
5366
5367# If we're using GNU nm, then use its standard symbol codes.
5368case `$NM -V 2>&1` in
5369*GNU* | *'with BFD'*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005370 symcode='[ABCDGIRSTW]' ;;
John Criswell47fdd832003-07-14 16:52:07 +00005371esac
5372
5373# Try without a prefix undercore, then with it.
5374for ac_symprfx in "" "_"; do
5375
5376 # Write the raw and C identifiers.
5377 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5378
5379 # Check to see that the pipe works correctly.
5380 pipe_works=no
5381
5382 rm -f conftest*
5383 cat > conftest.$ac_ext <<EOF
5384#ifdef __cplusplus
5385extern "C" {
5386#endif
5387char nm_test_var;
5388void nm_test_func(){}
5389#ifdef __cplusplus
5390}
5391#endif
5392int main(){nm_test_var='a';nm_test_func();return(0);}
5393EOF
5394
5395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5396 (eval $ac_compile) 2>&5
5397 ac_status=$?
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); }; then
5400 # Now try to grab the symbols.
5401 nlist=conftest.nm
5402 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5403 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } && test -s "$nlist"; then
5407 # Try sorting and uniquifying the output.
5408 if sort "$nlist" | uniq > "$nlist"T; then
5409 mv -f "$nlist"T "$nlist"
5410 else
5411 rm -f "$nlist"T
5412 fi
5413
5414 # Make sure that we snagged all the symbols we need.
5415 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5416 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5417 cat <<EOF > conftest.$ac_ext
5418#ifdef __cplusplus
5419extern "C" {
5420#endif
5421
5422EOF
5423 # Now generate the symbol file.
5424 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5425
5426 cat <<EOF >> conftest.$ac_ext
5427#if defined (__STDC__) && __STDC__
5428# define lt_ptr_t void *
5429#else
5430# define lt_ptr_t char *
5431# define const
5432#endif
5433
5434/* The mapping between symbol names and symbols. */
5435const struct {
5436 const char *name;
5437 lt_ptr_t address;
5438}
5439lt_preloaded_symbols[] =
5440{
5441EOF
5442 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5443 cat <<\EOF >> conftest.$ac_ext
5444 {0, (lt_ptr_t) 0}
5445};
5446
5447#ifdef __cplusplus
5448}
5449#endif
5450EOF
5451 # Now try linking the two files.
5452 mv conftest.$ac_objext conftstm.$ac_objext
5453 lt_save_LIBS="$LIBS"
5454 lt_save_CFLAGS="$CFLAGS"
5455 LIBS="conftstm.$ac_objext"
5456 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5458 (eval $ac_link) 2>&5
5459 ac_status=$?
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5462 pipe_works=yes
5463 fi
5464 LIBS="$lt_save_LIBS"
5465 CFLAGS="$lt_save_CFLAGS"
5466 else
5467 echo "cannot find nm_test_func in $nlist" >&5
5468 fi
5469 else
5470 echo "cannot find nm_test_var in $nlist" >&5
5471 fi
5472 else
5473 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5474 fi
5475 else
5476 echo "$progname: failed program was:" >&5
5477 cat conftest.$ac_ext >&5
5478 fi
5479 rm -f conftest* conftst*
5480
5481 # Do not use the global_symbol_pipe unless it works.
5482 if test "$pipe_works" = yes; then
5483 break
5484 else
5485 lt_cv_sys_global_symbol_pipe=
5486 fi
5487done
5488
5489fi
5490
5491if test -z "$lt_cv_sys_global_symbol_pipe"; then
5492 lt_cv_sys_global_symbol_to_cdecl=
5493fi
5494if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5495 echo "$as_me:$LINENO: result: failed" >&5
5496echo "${ECHO_T}failed" >&6
5497else
5498 echo "$as_me:$LINENO: result: ok" >&5
5499echo "${ECHO_T}ok" >&6
5500fi
5501
5502echo "$as_me:$LINENO: checking for objdir" >&5
5503echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5504if test "${lt_cv_objdir+set}" = set; then
5505 echo $ECHO_N "(cached) $ECHO_C" >&6
5506else
5507 rm -f .libs 2>/dev/null
5508mkdir .libs 2>/dev/null
5509if test -d .libs; then
5510 lt_cv_objdir=.libs
5511else
5512 # MS-DOS does not allow filenames that begin with a dot.
5513 lt_cv_objdir=_libs
5514fi
5515rmdir .libs 2>/dev/null
5516fi
5517echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5518echo "${ECHO_T}$lt_cv_objdir" >&6
5519objdir=$lt_cv_objdir
5520
5521
5522
5523
5524
5525case $host_os in
5526aix3*)
5527 # AIX sometimes has problems with the GCC collect2 program. For some
5528 # reason, if we set the COLLECT_NAMES environment variable, the problems
5529 # vanish in a puff of smoke.
5530 if test "X${COLLECT_NAMES+set}" != Xset; then
5531 COLLECT_NAMES=
5532 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005533 fi
5534 ;;
5535esac
5536
John Criswell47fdd832003-07-14 16:52:07 +00005537# Sed substitution that helps us do robust quoting. It backslashifies
5538# metacharacters that are still active within double-quoted strings.
5539Xsed='sed -e s/^X//'
5540sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5541
5542# Same as above, but do not quote variable references.
5543double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5544
5545# Sed substitution to delay expansion of an escaped shell variable in a
5546# double_quote_subst'ed string.
5547delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5548
5549# Sed substitution to avoid accidental globbing in evaled expressions
5550no_glob_subst='s/\*/\\\*/g'
5551
5552# Constants:
5553rm="rm -f"
5554
5555# Global variables:
Reid Spencere4d18e42004-09-20 01:42:32 +00005556default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005557can_build_shared=yes
5558
5559# All known linkers require a `.a' archive for static linking (except M$VC,
5560# which needs '.lib').
5561libext=a
5562ltmain="$ac_aux_dir/ltmain.sh"
5563ofile="$default_ofile"
5564with_gnu_ld="$lt_cv_prog_gnu_ld"
5565
5566if test -n "$ac_tool_prefix"; then
5567 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5568set dummy ${ac_tool_prefix}ar; ac_word=$2
5569echo "$as_me:$LINENO: checking for $ac_word" >&5
5570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5571if test "${ac_cv_prog_AR+set}" = set; then
5572 echo $ECHO_N "(cached) $ECHO_C" >&6
5573else
5574 if test -n "$AR"; then
5575 ac_cv_prog_AR="$AR" # Let the user override the test.
5576else
5577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578for as_dir in $PATH
5579do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_AR="${ac_tool_prefix}ar"
5585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588done
5589done
5590
5591fi
5592fi
5593AR=$ac_cv_prog_AR
5594if test -n "$AR"; then
5595 echo "$as_me:$LINENO: result: $AR" >&5
5596echo "${ECHO_T}$AR" >&6
5597else
5598 echo "$as_me:$LINENO: result: no" >&5
5599echo "${ECHO_T}no" >&6
5600fi
5601
5602fi
5603if test -z "$ac_cv_prog_AR"; then
5604 ac_ct_AR=$AR
5605 # Extract the first word of "ar", so it can be a program name with args.
5606set dummy ar; ac_word=$2
5607echo "$as_me:$LINENO: checking for $ac_word" >&5
5608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5609if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611else
5612 if test -n "$ac_ct_AR"; then
5613 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5614else
5615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616for as_dir in $PATH
5617do
5618 IFS=$as_save_IFS
5619 test -z "$as_dir" && as_dir=.
5620 for ac_exec_ext in '' $ac_executable_extensions; do
5621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_prog_ac_ct_AR="ar"
5623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5624 break 2
5625 fi
5626done
5627done
5628
5629 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5630fi
5631fi
5632ac_ct_AR=$ac_cv_prog_ac_ct_AR
5633if test -n "$ac_ct_AR"; then
5634 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5635echo "${ECHO_T}$ac_ct_AR" >&6
5636else
5637 echo "$as_me:$LINENO: result: no" >&5
5638echo "${ECHO_T}no" >&6
5639fi
5640
5641 AR=$ac_ct_AR
5642else
5643 AR="$ac_cv_prog_AR"
5644fi
5645
John Criswell7a73b802003-06-30 21:59:07 +00005646if test -n "$ac_tool_prefix"; then
5647 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5648set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5649echo "$as_me:$LINENO: checking for $ac_word" >&5
5650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5651if test "${ac_cv_prog_RANLIB+set}" = set; then
5652 echo $ECHO_N "(cached) $ECHO_C" >&6
5653else
5654 if test -n "$RANLIB"; then
5655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5656else
5657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658for as_dir in $PATH
5659do
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5667 fi
5668done
5669done
5670
5671fi
5672fi
5673RANLIB=$ac_cv_prog_RANLIB
5674if test -n "$RANLIB"; then
5675 echo "$as_me:$LINENO: result: $RANLIB" >&5
5676echo "${ECHO_T}$RANLIB" >&6
5677else
5678 echo "$as_me:$LINENO: result: no" >&5
5679echo "${ECHO_T}no" >&6
5680fi
5681
5682fi
5683if test -z "$ac_cv_prog_RANLIB"; then
5684 ac_ct_RANLIB=$RANLIB
5685 # Extract the first word of "ranlib", so it can be a program name with args.
5686set dummy ranlib; ac_word=$2
5687echo "$as_me:$LINENO: checking for $ac_word" >&5
5688echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5689if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691else
5692 if test -n "$ac_ct_RANLIB"; then
5693 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5694else
5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696for as_dir in $PATH
5697do
5698 IFS=$as_save_IFS
5699 test -z "$as_dir" && as_dir=.
5700 for ac_exec_ext in '' $ac_executable_extensions; do
5701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5702 ac_cv_prog_ac_ct_RANLIB="ranlib"
5703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5704 break 2
5705 fi
5706done
5707done
5708
5709 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5710fi
5711fi
5712ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5713if test -n "$ac_ct_RANLIB"; then
5714 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5715echo "${ECHO_T}$ac_ct_RANLIB" >&6
5716else
5717 echo "$as_me:$LINENO: result: no" >&5
5718echo "${ECHO_T}no" >&6
5719fi
5720
5721 RANLIB=$ac_ct_RANLIB
5722else
5723 RANLIB="$ac_cv_prog_RANLIB"
5724fi
5725
5726if test -n "$ac_tool_prefix"; then
5727 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5728set dummy ${ac_tool_prefix}strip; ac_word=$2
5729echo "$as_me:$LINENO: checking for $ac_word" >&5
5730echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5731if test "${ac_cv_prog_STRIP+set}" = set; then
5732 echo $ECHO_N "(cached) $ECHO_C" >&6
5733else
5734 if test -n "$STRIP"; then
5735 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5736else
5737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738for as_dir in $PATH
5739do
5740 IFS=$as_save_IFS
5741 test -z "$as_dir" && as_dir=.
5742 for ac_exec_ext in '' $ac_executable_extensions; do
5743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5744 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 break 2
5747 fi
5748done
5749done
5750
5751fi
5752fi
5753STRIP=$ac_cv_prog_STRIP
5754if test -n "$STRIP"; then
5755 echo "$as_me:$LINENO: result: $STRIP" >&5
5756echo "${ECHO_T}$STRIP" >&6
5757else
5758 echo "$as_me:$LINENO: result: no" >&5
5759echo "${ECHO_T}no" >&6
5760fi
5761
5762fi
5763if test -z "$ac_cv_prog_STRIP"; then
5764 ac_ct_STRIP=$STRIP
5765 # Extract the first word of "strip", so it can be a program name with args.
5766set dummy strip; ac_word=$2
5767echo "$as_me:$LINENO: checking for $ac_word" >&5
5768echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5769if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5770 echo $ECHO_N "(cached) $ECHO_C" >&6
5771else
5772 if test -n "$ac_ct_STRIP"; then
5773 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5774else
5775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5776for as_dir in $PATH
5777do
5778 IFS=$as_save_IFS
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5782 ac_cv_prog_ac_ct_STRIP="strip"
5783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5784 break 2
5785 fi
5786done
5787done
5788
5789 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5790fi
5791fi
5792ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5793if test -n "$ac_ct_STRIP"; then
5794 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5795echo "${ECHO_T}$ac_ct_STRIP" >&6
5796else
5797 echo "$as_me:$LINENO: result: no" >&5
5798echo "${ECHO_T}no" >&6
5799fi
5800
5801 STRIP=$ac_ct_STRIP
5802else
5803 STRIP="$ac_cv_prog_STRIP"
5804fi
5805
5806
John Criswell7a73b802003-06-30 21:59:07 +00005807old_CC="$CC"
5808old_CFLAGS="$CFLAGS"
5809
5810# Set sane defaults for various variables
5811test -z "$AR" && AR=ar
5812test -z "$AR_FLAGS" && AR_FLAGS=cru
5813test -z "$AS" && AS=as
5814test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005815test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005816test -z "$DLLTOOL" && DLLTOOL=dlltool
5817test -z "$LD" && LD=ld
5818test -z "$LN_S" && LN_S="ln -s"
5819test -z "$MAGIC_CMD" && MAGIC_CMD=file
5820test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005821test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005822test -z "$OBJDUMP" && OBJDUMP=objdump
5823test -z "$RANLIB" && RANLIB=:
5824test -z "$STRIP" && STRIP=:
5825test -z "$ac_objext" && ac_objext=o
5826
John Criswell7a73b802003-06-30 21:59:07 +00005827# Determine commands to create old-style static archives.
5828old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5829old_postinstall_cmds='chmod 644 $oldlib'
5830old_postuninstall_cmds=
5831
5832if test -n "$RANLIB"; then
5833 case $host_os in
5834 openbsd*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005835 old_postinstall_cmds="\$RANLIB -t \$oldlib;$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00005836 ;;
5837 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +00005838 old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00005839 ;;
5840 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00005841 old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +00005842fi
5843
Reid Spencer2706f8c2004-09-19 23:53:36 +00005844cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5845
John Criswell47fdd832003-07-14 16:52:07 +00005846# Only perform the check for file, if the check method requires it
5847case $deplibs_check_method in
5848file_magic*)
5849 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5850 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5851echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5852if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005854else
John Criswell47fdd832003-07-14 16:52:07 +00005855 case $MAGIC_CMD in
5856[\\/*] | ?:[\\/]*)
5857 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5858 ;;
5859*)
5860 lt_save_MAGIC_CMD="$MAGIC_CMD"
5861 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5862 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5863 for ac_dir in $ac_dummy; do
5864 IFS="$lt_save_ifs"
5865 test -z "$ac_dir" && ac_dir=.
5866 if test -f $ac_dir/${ac_tool_prefix}file; then
5867 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5868 if test -n "$file_magic_test_file"; then
5869 case $deplibs_check_method in
5870 "file_magic "*)
5871 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5872 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5873 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5874 $EGREP "$file_magic_regex" > /dev/null; then
5875 :
5876 else
5877 cat <<EOF 1>&2
5878
5879*** Warning: the command libtool uses to detect shared libraries,
5880*** $file_magic_cmd, produces output that libtool cannot recognize.
5881*** The result is that libtool may fail to recognize shared libraries
5882*** as such. This will affect the creation of libtool libraries that
5883*** depend on shared libraries, but programs linked with such libtool
5884*** libraries will work regardless of this problem. Nevertheless, you
5885*** may want to report the problem to your system manager and/or to
5886*** bug-libtool@gnu.org
5887
5888EOF
5889 fi ;;
5890 esac
5891 fi
5892 break
5893 fi
5894 done
5895 IFS="$lt_save_ifs"
5896 MAGIC_CMD="$lt_save_MAGIC_CMD"
5897 ;;
5898esac
John Criswell7a73b802003-06-30 21:59:07 +00005899fi
John Criswell7a73b802003-06-30 21:59:07 +00005900
John Criswell47fdd832003-07-14 16:52:07 +00005901MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5902if test -n "$MAGIC_CMD"; then
5903 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5904echo "${ECHO_T}$MAGIC_CMD" >&6
5905else
5906 echo "$as_me:$LINENO: result: no" >&5
5907echo "${ECHO_T}no" >&6
5908fi
John Criswell7a73b802003-06-30 21:59:07 +00005909
John Criswell47fdd832003-07-14 16:52:07 +00005910if test -z "$lt_cv_path_MAGIC_CMD"; then
5911 if test -n "$ac_tool_prefix"; then
5912 echo "$as_me:$LINENO: checking for file" >&5
5913echo $ECHO_N "checking for file... $ECHO_C" >&6
5914if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5915 echo $ECHO_N "(cached) $ECHO_C" >&6
5916else
5917 case $MAGIC_CMD in
5918[\\/*] | ?:[\\/]*)
5919 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5920 ;;
5921*)
5922 lt_save_MAGIC_CMD="$MAGIC_CMD"
5923 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5924 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5925 for ac_dir in $ac_dummy; do
5926 IFS="$lt_save_ifs"
5927 test -z "$ac_dir" && ac_dir=.
5928 if test -f $ac_dir/file; then
5929 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5930 if test -n "$file_magic_test_file"; then
5931 case $deplibs_check_method in
5932 "file_magic "*)
5933 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5934 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5935 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5936 $EGREP "$file_magic_regex" > /dev/null; then
5937 :
5938 else
5939 cat <<EOF 1>&2
5940
5941*** Warning: the command libtool uses to detect shared libraries,
5942*** $file_magic_cmd, produces output that libtool cannot recognize.
5943*** The result is that libtool may fail to recognize shared libraries
5944*** as such. This will affect the creation of libtool libraries that
5945*** depend on shared libraries, but programs linked with such libtool
5946*** libraries will work regardless of this problem. Nevertheless, you
5947*** may want to report the problem to your system manager and/or to
5948*** bug-libtool@gnu.org
5949
5950EOF
5951 fi ;;
5952 esac
5953 fi
5954 break
5955 fi
5956 done
5957 IFS="$lt_save_ifs"
5958 MAGIC_CMD="$lt_save_MAGIC_CMD"
5959 ;;
5960esac
5961fi
5962
5963MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5964if test -n "$MAGIC_CMD"; then
5965 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5966echo "${ECHO_T}$MAGIC_CMD" >&6
5967else
5968 echo "$as_me:$LINENO: result: no" >&5
5969echo "${ECHO_T}no" >&6
5970fi
5971
5972 else
5973 MAGIC_CMD=:
5974 fi
5975fi
5976
5977 fi
5978 ;;
5979esac
5980
5981enable_dlopen=no
5982enable_win32_dll=no
5983
5984# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5985if test "${enable_libtool_lock+set}" = set; then
5986 enableval="$enable_libtool_lock"
5987
5988fi;
5989test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5990
John Criswell7a73b802003-06-30 21:59:07 +00005991
5992# Check whether --with-pic or --without-pic was given.
5993if test "${with_pic+set}" = set; then
5994 withval="$with_pic"
5995 pic_mode="$withval"
5996else
5997 pic_mode=default
5998fi;
5999test -z "$pic_mode" && pic_mode=default
6000
John Criswell47fdd832003-07-14 16:52:07 +00006001# Use C for the default configuration in the libtool script
6002tagname=
6003lt_save_CC="$CC"
6004ac_ext=c
6005ac_cpp='$CPP $CPPFLAGS'
6006ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6007ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6008ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009
6010
6011# Source file extension for C test sources.
6012ac_ext=c
6013
6014# Object file extension for compiled C test sources.
6015objext=o
6016objext=$objext
6017
6018# Code to be used in simple compile tests
6019lt_simple_compile_test_code="int some_variable = 0;\n"
6020
6021# Code to be used in simple link tests
6022lt_simple_link_test_code='int main(){return(0);}\n'
6023
6024
6025# If no C compiler was specified, use CC.
6026LTCC=${LTCC-"$CC"}
6027
6028# Allow CC to be a program name with arguments.
6029compiler=$CC
6030
6031
6032#
6033# Check for any special shared library compilation flags.
6034#
6035lt_prog_cc_shlib=
6036if test "$GCC" = no; then
6037 case $host_os in
6038 sco3.2v5*)
6039 lt_prog_cc_shlib='-belf'
6040 ;;
6041 esac
6042fi
6043if test -n "$lt_prog_cc_shlib"; then
6044 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6045echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6046 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6047 else
6048 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6049echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6050 lt_cv_prog_cc_can_build_shared=no
6051 fi
6052fi
6053
6054
6055#
6056# Check to make sure the static flag actually works.
6057#
6058echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6059echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6060if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006061 echo $ECHO_N "(cached) $ECHO_C" >&6
6062else
John Criswell47fdd832003-07-14 16:52:07 +00006063 lt_prog_compiler_static_works=no
6064 save_LDFLAGS="$LDFLAGS"
6065 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6066 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6068 # The compiler can only warn and ignore the option if not recognized
6069 # So say no if there are warnings
6070 if test -s conftest.err; then
6071 # Append any errors to the config.log.
6072 cat conftest.err 1>&5
6073 else
6074 lt_prog_compiler_static_works=yes
6075 fi
6076 fi
6077 $rm conftest*
6078 LDFLAGS="$save_LDFLAGS"
6079
6080fi
6081echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6082echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6083
6084if test x"$lt_prog_compiler_static_works" = xyes; then
6085 :
6086else
6087 lt_prog_compiler_static=
6088fi
6089
6090
6091
John Criswell47fdd832003-07-14 16:52:07 +00006092
6093lt_prog_compiler_no_builtin_flag=
6094
6095if test "$GCC" = yes; then
6096 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6097
Reid Spencer2706f8c2004-09-19 23:53:36 +00006098
6099echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006100echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6101if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6102 echo $ECHO_N "(cached) $ECHO_C" >&6
6103else
6104 lt_cv_prog_compiler_rtti_exceptions=no
6105 ac_outfile=conftest.$ac_objext
6106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6107 lt_compiler_flag="-fno-rtti -fno-exceptions"
6108 # Insert the option either (1) after the last *FLAGS variable, or
6109 # (2) before a word containing "conftest.", or (3) at the end.
6110 # Note that $ac_compile itself does not contain backslashes and begins
6111 # with a dollar sign (not a hyphen), so the echo should work correctly.
6112 # The option is referenced via a variable to avoid confusing sed.
6113 lt_compile=`echo "$ac_compile" | $SED \
6114 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6116 -e 's:$: $lt_compiler_flag:'`
John Criswell9f011862004-09-24 18:28:00 +00006117 (eval echo "\"\$as_me:6117: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006118 (eval "$lt_compile" 2>conftest.err)
6119 ac_status=$?
6120 cat conftest.err >&5
John Criswell9f011862004-09-24 18:28:00 +00006121 echo "$as_me:6121: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006122 if (exit $ac_status) && test -s "$ac_outfile"; then
6123 # The compiler can only warn and ignore the option if not recognized
6124 # So say no if there are warnings
6125 if test ! -s conftest.err; then
6126 lt_cv_prog_compiler_rtti_exceptions=yes
6127 fi
6128 fi
6129 $rm conftest*
6130
6131fi
6132echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6133echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6134
6135if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6136 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6137else
6138 :
6139fi
6140
6141fi
6142
6143lt_prog_compiler_wl=
6144lt_prog_compiler_pic=
6145lt_prog_compiler_static=
6146
6147echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6148echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006149
6150 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006151 lt_prog_compiler_wl='-Wl,'
6152 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006153
6154 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006155 aix*)
6156 # All AIX code is PIC.
6157 if test "$host_cpu" = ia64; then
6158 # AIX 5 now supports IA64 processor
6159 lt_prog_compiler_static='-Bstatic'
6160 fi
John Criswell7a73b802003-06-30 21:59:07 +00006161 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006162
John Criswell7a73b802003-06-30 21:59:07 +00006163 amigaos*)
6164 # FIXME: we need at least 68020 code to build shared libraries, but
6165 # adding the `-m68020' flag to GCC prevents building anything better,
6166 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006167 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006168 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006169
6170 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006171 # PIC is the default for these OSes.
6172 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006173
6174 mingw* | pw32* | os2*)
6175 # This hack is so that the source file can tell whether it is being
6176 # built for inclusion in a dll (and should export symbols for example).
6177 lt_prog_compiler_pic='-DDLL_EXPORT'
6178 ;;
6179
John Criswell7a73b802003-06-30 21:59:07 +00006180 darwin* | rhapsody*)
6181 # PIC is the default on this platform
6182 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006183 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006184 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006185
6186 msdosdjgpp*)
6187 # Just because we use GCC doesn't mean we suddenly get shared libraries
6188 # on systems that don't support them.
6189 lt_prog_compiler_can_build_shared=no
6190 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006191 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006192
John Criswell7a73b802003-06-30 21:59:07 +00006193 sysv4*MP*)
6194 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006195 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006196 fi
6197 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006198
6199 hpux*)
6200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6201 # not for PA HP-UX.
6202 case "$host_cpu" in
6203 hppa*64*|ia64*)
6204 # +Z the default
6205 ;;
6206 *)
6207 lt_prog_compiler_pic='-fPIC'
6208 ;;
6209 esac
6210 ;;
6211
John Criswell7a73b802003-06-30 21:59:07 +00006212 *)
John Criswell47fdd832003-07-14 16:52:07 +00006213 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006214 ;;
6215 esac
6216 else
John Criswell47fdd832003-07-14 16:52:07 +00006217 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006218 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006219 aix*)
6220 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006221 if test "$host_cpu" = ia64; then
6222 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006223 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006224 else
John Criswell47fdd832003-07-14 16:52:07 +00006225 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006226 fi
6227 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006228 darwin*)
6229 # PIC is the default on this platform
6230 # Common symbols not allowed in MH_DYLIB files
6231 case "$cc_basename" in
6232 xlc*)
6233 lt_prog_compiler_pic='-qnocommon'
6234 lt_prog_compiler_wl='-Wl,'
6235 ;;
6236 esac
6237 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006238
John Criswell47fdd832003-07-14 16:52:07 +00006239 mingw* | pw32* | os2*)
6240 # This hack is so that the source file can tell whether it is being
6241 # built for inclusion in a dll (and should export symbols for example).
6242 lt_prog_compiler_pic='-DDLL_EXPORT'
6243 ;;
6244
John Criswell7a73b802003-06-30 21:59:07 +00006245 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006246 lt_prog_compiler_wl='-Wl,'
6247 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6248 # not for PA HP-UX.
6249 case "$host_cpu" in
6250 hppa*64*|ia64*)
6251 # +Z the default
6252 ;;
6253 *)
6254 lt_prog_compiler_pic='+Z'
6255 ;;
6256 esac
6257 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6258 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006259 ;;
6260
John Criswell47fdd832003-07-14 16:52:07 +00006261 irix5* | irix6* | nonstopux*)
6262 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006263 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006264 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006265 ;;
6266
6267 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006268 lt_prog_compiler_pic='-KPIC'
6269 lt_prog_compiler_static='-Bstatic'
6270 ;;
6271
6272 linux*)
6273 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +00006274 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +00006275 lt_prog_compiler_wl='-Wl,'
6276 lt_prog_compiler_pic='-KPIC'
6277 lt_prog_compiler_static='-static'
6278 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006279 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +00006280 lt_prog_compiler_wl='-Wl,'
6281 # All Alpha code is PIC.
6282 lt_prog_compiler_static='-non_shared'
6283 ;;
6284 esac
John Criswell7a73b802003-06-30 21:59:07 +00006285 ;;
6286
6287 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006288 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006289 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006290 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006291 ;;
6292
6293 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006294 lt_prog_compiler_pic='-Kpic'
6295 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006296 ;;
6297
6298 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006299 lt_prog_compiler_wl='-Wl,'
6300 lt_prog_compiler_pic='-KPIC'
6301 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006302 ;;
6303
6304 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006305 lt_prog_compiler_wl='-Qoption ld '
6306 lt_prog_compiler_pic='-PIC'
6307 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006308 ;;
6309
6310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006311 lt_prog_compiler_wl='-Wl,'
6312 lt_prog_compiler_pic='-KPIC'
6313 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006314 ;;
6315
6316 sysv4*MP*)
6317 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006318 lt_prog_compiler_pic='-Kconform_pic'
6319 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006320 fi
6321 ;;
6322
John Criswell47fdd832003-07-14 16:52:07 +00006323 uts4*)
6324 lt_prog_compiler_pic='-pic'
6325 lt_prog_compiler_static='-Bstatic'
6326 ;;
6327
John Criswell7a73b802003-06-30 21:59:07 +00006328 *)
John Criswell47fdd832003-07-14 16:52:07 +00006329 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006330 ;;
6331 esac
6332 fi
6333
John Criswell47fdd832003-07-14 16:52:07 +00006334echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6335echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006336
John Criswell47fdd832003-07-14 16:52:07 +00006337#
6338# Check to make sure the PIC flag actually works.
6339#
6340if test -n "$lt_prog_compiler_pic"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00006341
6342echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006343echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6344if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006345 echo $ECHO_N "(cached) $ECHO_C" >&6
6346else
John Criswell47fdd832003-07-14 16:52:07 +00006347 lt_prog_compiler_pic_works=no
6348 ac_outfile=conftest.$ac_objext
6349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6350 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6351 # Insert the option either (1) after the last *FLAGS variable, or
6352 # (2) before a word containing "conftest.", or (3) at the end.
6353 # Note that $ac_compile itself does not contain backslashes and begins
6354 # with a dollar sign (not a hyphen), so the echo should work correctly.
6355 # The option is referenced via a variable to avoid confusing sed.
6356 lt_compile=`echo "$ac_compile" | $SED \
6357 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6359 -e 's:$: $lt_compiler_flag:'`
John Criswell9f011862004-09-24 18:28:00 +00006360 (eval echo "\"\$as_me:6360: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006361 (eval "$lt_compile" 2>conftest.err)
6362 ac_status=$?
6363 cat conftest.err >&5
John Criswell9f011862004-09-24 18:28:00 +00006364 echo "$as_me:6364: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006365 if (exit $ac_status) && test -s "$ac_outfile"; then
6366 # The compiler can only warn and ignore the option if not recognized
6367 # So say no if there are warnings
6368 if test ! -s conftest.err; then
6369 lt_prog_compiler_pic_works=yes
6370 fi
6371 fi
6372 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006373
John Criswell47fdd832003-07-14 16:52:07 +00006374fi
6375echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6376echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006377
John Criswell47fdd832003-07-14 16:52:07 +00006378if test x"$lt_prog_compiler_pic_works" = xyes; then
6379 case $lt_prog_compiler_pic in
6380 "" | " "*) ;;
6381 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6382 esac
John Criswell7a73b802003-06-30 21:59:07 +00006383else
John Criswell47fdd832003-07-14 16:52:07 +00006384 lt_prog_compiler_pic=
6385 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006386fi
6387
John Criswell7a73b802003-06-30 21:59:07 +00006388fi
John Criswell47fdd832003-07-14 16:52:07 +00006389case "$host_os" in
6390 # For platforms which do not support PIC, -DPIC is meaningless:
6391 *djgpp*)
6392 lt_prog_compiler_pic=
6393 ;;
6394 *)
6395 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6396 ;;
6397esac
John Criswell7a73b802003-06-30 21:59:07 +00006398
John Criswell7a73b802003-06-30 21:59:07 +00006399echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6400echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006401if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006402 echo $ECHO_N "(cached) $ECHO_C" >&6
6403else
John Criswell47fdd832003-07-14 16:52:07 +00006404 lt_cv_prog_compiler_c_o=no
6405 $rm -r conftest 2>/dev/null
6406 mkdir conftest
6407 cd conftest
6408 mkdir out
6409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006410
John Criswell47fdd832003-07-14 16:52:07 +00006411 lt_compiler_flag="-o out/conftest2.$ac_objext"
6412 # Insert the option either (1) after the last *FLAGS variable, or
6413 # (2) before a word containing "conftest.", or (3) at the end.
6414 # Note that $ac_compile itself does not contain backslashes and begins
6415 # with a dollar sign (not a hyphen), so the echo should work correctly.
6416 lt_compile=`echo "$ac_compile" | $SED \
6417 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6419 -e 's:$: $lt_compiler_flag:'`
John Criswell9f011862004-09-24 18:28:00 +00006420 (eval echo "\"\$as_me:6420: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006421 (eval "$lt_compile" 2>out/conftest.err)
6422 ac_status=$?
6423 cat out/conftest.err >&5
John Criswell9f011862004-09-24 18:28:00 +00006424 echo "$as_me:6424: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6426 then
6427 # The compiler can only warn and ignore the option if not recognized
6428 # So say no if there are warnings
6429 if test ! -s out/conftest.err; then
6430 lt_cv_prog_compiler_c_o=yes
6431 fi
6432 fi
6433 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +00006434 $rm conftest*
6435 # SGI C++ compiler will create directory out/ii_files/ for
6436 # template instantiation
6437 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6438 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +00006439 cd ..
6440 rmdir conftest
6441 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006442
6443fi
John Criswell47fdd832003-07-14 16:52:07 +00006444echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6445echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006446
John Criswell7a73b802003-06-30 21:59:07 +00006447
John Criswell7a73b802003-06-30 21:59:07 +00006448hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006449if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006450 # do not overwrite the value of need_locks provided by the user
6451 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6452echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6453 hard_links=yes
6454 $rm conftest*
6455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6456 touch conftest.a
6457 ln conftest.a conftest.b 2>&5 || hard_links=no
6458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6459 echo "$as_me:$LINENO: result: $hard_links" >&5
6460echo "${ECHO_T}$hard_links" >&6
6461 if test "$hard_links" = no; then
6462 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6463echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6464 need_locks=warn
6465 fi
6466else
6467 need_locks=no
6468fi
John Criswell7a73b802003-06-30 21:59:07 +00006469
John Criswell47fdd832003-07-14 16:52:07 +00006470echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6471echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6472
6473 runpath_var=
6474 allow_undefined_flag=
6475 enable_shared_with_static_runtimes=no
6476 archive_cmds=
6477 archive_expsym_cmds=
6478 old_archive_From_new_cmds=
6479 old_archive_from_expsyms_cmds=
6480 export_dynamic_flag_spec=
6481 whole_archive_flag_spec=
6482 thread_safe_flag_spec=
6483 hardcode_libdir_flag_spec=
6484 hardcode_libdir_flag_spec_ld=
6485 hardcode_libdir_separator=
6486 hardcode_direct=no
6487 hardcode_minus_L=no
6488 hardcode_shlibpath_var=unsupported
6489 link_all_deplibs=unknown
6490 hardcode_automatic=no
6491 module_cmds=
6492 module_expsym_cmds=
6493 always_export_symbols=no
6494 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6495 # include_expsyms should be a list of space-separated symbols to be *always*
6496 # included in the symbol list
6497 include_expsyms=
6498 # exclude_expsyms can be an extended regexp of symbols to exclude
6499 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6500 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6501 # as well as any symbol that contains `d'.
6502 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6503 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6504 # platforms (ab)use it in PIC code, but their linkers get confused if
6505 # the symbol is explicitly referenced. Since portable code cannot
6506 # rely on this symbol name, it's probably fine to never include it in
6507 # preloaded symbol tables.
6508 extract_expsyms_cmds=
6509
6510 case $host_os in
6511 cygwin* | mingw* | pw32*)
6512 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6513 # When not using gcc, we currently assume that we are using
6514 # Microsoft Visual C++.
6515 if test "$GCC" != yes; then
6516 with_gnu_ld=no
6517 fi
6518 ;;
6519 openbsd*)
6520 with_gnu_ld=no
6521 ;;
6522 esac
6523
6524 ld_shlibs=yes
6525 if test "$with_gnu_ld" = yes; then
6526 # If archive_cmds runs LD, not CC, wlarc should be empty
6527 wlarc='${wl}'
6528
6529 # See if GNU ld supports shared libraries.
6530 case $host_os in
6531 aix3* | aix4* | aix5*)
6532 # On AIX/PPC, the GNU linker is very broken
6533 if test "$host_cpu" != ia64; then
6534 ld_shlibs=no
6535 cat <<EOF 1>&2
6536
6537*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6538*** to be unable to reliably create shared libraries on AIX.
6539*** Therefore, libtool is disabling shared libraries support. If you
6540*** really care for shared libraries, you may want to modify your PATH
6541*** so that a non-GNU linker is found, and then restart.
6542
6543EOF
6544 fi
6545 ;;
6546
6547 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00006548 archive_cmds='$rm $output_objdir/a2ixlibrary.data;$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data;$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data;$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data;$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data;$AR $AR_FLAGS $lib $libobjs;$RANLIB $lib;(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +00006549 hardcode_libdir_flag_spec='-L$libdir'
6550 hardcode_minus_L=yes
6551
6552 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6553 # that the semantics of dynamic libraries on AmigaOS, at least up
6554 # to version 4, is to share data among multiple programs linked
6555 # with the same dynamic library. Since this doesn't match the
6556 # behavior of shared libraries on other platforms, we can't use
6557 # them.
6558 ld_shlibs=no
6559 ;;
6560
6561 beos*)
6562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6563 allow_undefined_flag=unsupported
6564 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6565 # support --undefined. This deserves some investigation. FIXME
6566 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6567 else
6568 ld_shlibs=no
6569 fi
6570 ;;
6571
6572 cygwin* | mingw* | pw32*)
6573 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6574 # as there is no search path for DLLs.
6575 hardcode_libdir_flag_spec='-L$libdir'
6576 allow_undefined_flag=unsupported
6577 always_export_symbols=no
6578 enable_shared_with_static_runtimes=yes
6579 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6580
6581 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6583 # If the export-symbols file already is a .def file (1st line
6584 # is EXPORTS), use it as is; otherwise, prepend...
6585 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6586 cp $export_symbols $output_objdir/$soname.def;
6587 else
6588 echo EXPORTS > $output_objdir/$soname.def;
6589 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer2706f8c2004-09-19 23:53:36 +00006590 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 +00006591 else
6592 ld_shlibs=no
6593 fi
6594 ;;
6595
6596 netbsd*)
6597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6598 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6599 wlarc=
6600 else
6601 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6602 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6603 fi
6604 ;;
6605
6606 solaris* | sysv5*)
6607 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6608 ld_shlibs=no
6609 cat <<EOF 1>&2
6610
6611*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6612*** create shared libraries on Solaris systems. Therefore, libtool
6613*** is disabling shared libraries support. We urge you to upgrade GNU
6614*** binutils to release 2.9.1 or newer. Another option is to modify
6615*** your PATH or compiler configuration so that the native linker is
6616*** used, and then restart.
6617
6618EOF
6619 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6621 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6622 else
6623 ld_shlibs=no
6624 fi
6625 ;;
6626
6627 sunos4*)
6628 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6629 wlarc=
6630 hardcode_direct=yes
6631 hardcode_shlibpath_var=no
6632 ;;
6633
Reid Spencer2706f8c2004-09-19 23:53:36 +00006634 linux*)
6635 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6636 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6637 archive_cmds="$tmp_archive_cmds"
6638 supports_anon_versioning=no
6639 case `$LD -v 2>/dev/null` in
6640 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6641 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6642 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6643 *\ 2.11.*) ;; # other 2.11 versions
6644 *) supports_anon_versioning=yes ;;
6645 esac
6646 if test $supports_anon_versioning = yes; then
6647 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;
6648 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6649 else
6650 archive_expsym_cmds="$tmp_archive_cmds"
6651 fi
6652 else
6653 ld_shlibs=no
6654 fi
6655 ;;
6656
John Criswell47fdd832003-07-14 16:52:07 +00006657 *)
6658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6659 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6660 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6661 else
6662 ld_shlibs=no
6663 fi
6664 ;;
6665 esac
6666
6667 if test "$ld_shlibs" = yes; then
6668 runpath_var=LD_RUN_PATH
6669 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6670 export_dynamic_flag_spec='${wl}--export-dynamic'
6671 # ancient GNU ld didn't support --whole-archive et. al.
6672 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6673 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6674 else
6675 whole_archive_flag_spec=
6676 fi
6677 fi
6678 else
6679 # PORTME fill in a description of your system's linker (not GNU ld)
6680 case $host_os in
6681 aix3*)
6682 allow_undefined_flag=unsupported
6683 always_export_symbols=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +00006684 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 +00006685 # Note: this linker hardcodes the directories in LIBPATH if there
6686 # are no directories specified by -L.
6687 hardcode_minus_L=yes
6688 if test "$GCC" = yes && test -z "$link_static_flag"; then
6689 # Neither direct hardcoding nor static linking is supported with a
6690 # broken collect2.
6691 hardcode_direct=unsupported
6692 fi
6693 ;;
6694
6695 aix4* | aix5*)
6696 if test "$host_cpu" = ia64; then
6697 # On IA64, the linker does run time linking by default, so we don't
6698 # have to do anything special.
6699 aix_use_runtimelinking=no
6700 exp_sym_flag='-Bexport'
6701 no_entry_flag=""
6702 else
6703 # If we're using GNU nm, then we don't want the "-C" option.
6704 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6705 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6706 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'
6707 else
6708 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'
6709 fi
6710 aix_use_runtimelinking=no
6711
6712 # Test if we are trying to use run time linking or normal
6713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6714 # need to do runtime linking.
6715 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6716 for ld_flag in $LDFLAGS; do
6717 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6718 aix_use_runtimelinking=yes
6719 break
6720 fi
6721 done
6722 esac
6723
6724 exp_sym_flag='-bexport'
6725 no_entry_flag='-bnoentry'
6726 fi
6727
6728 # When large executables or shared objects are built, AIX ld can
6729 # have problems creating the table of contents. If linking a library
6730 # or program results in "error TOC overflow" add -mminimal-toc to
6731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6733
6734 archive_cmds=''
6735 hardcode_direct=yes
6736 hardcode_libdir_separator=':'
6737 link_all_deplibs=yes
6738
6739 if test "$GCC" = yes; then
6740 case $host_os in aix4.012|aix4.012.*)
6741 # We only want to do this on AIX 4.2 and lower, the check
6742 # below for broken collect2 doesn't work under 4.3+
6743 collect2name=`${CC} -print-prog-name=collect2`
6744 if test -f "$collect2name" && \
6745 strings "$collect2name" | grep resolve_lib_name >/dev/null
6746 then
6747 # We have reworked collect2
6748 hardcode_direct=yes
6749 else
6750 # We have old collect2
6751 hardcode_direct=unsupported
6752 # It fails to find uninstalled libraries when the uninstalled
6753 # path is not listed in the libpath. Setting hardcode_minus_L
6754 # to unsupported forces relinking
6755 hardcode_minus_L=yes
6756 hardcode_libdir_flag_spec='-L$libdir'
6757 hardcode_libdir_separator=
6758 fi
6759 esac
6760 shared_flag='-shared'
6761 else
6762 # not using gcc
6763 if test "$host_cpu" = ia64; then
6764 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6765 # chokes on -Wl,-G. The following line is correct:
6766 shared_flag='-G'
6767 else
6768 if test "$aix_use_runtimelinking" = yes; then
6769 shared_flag='${wl}-G'
6770 else
6771 shared_flag='${wl}-bM:SRE'
6772 fi
6773 fi
6774 fi
6775
6776 # It seems that -bexpall does not export symbols beginning with
6777 # underscore (_), so it is better to generate a list of symbols to export.
6778 always_export_symbols=yes
6779 if test "$aix_use_runtimelinking" = yes; then
6780 # Warning - without using the other runtime loading flags (-brtl),
6781 # -berok will link without error, but may produce a broken library.
6782 allow_undefined_flag='-berok'
6783 # Determine the default libpath from the value encoded in an empty executable.
6784 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006785/* confdefs.h. */
6786_ACEOF
6787cat confdefs.h >>conftest.$ac_ext
6788cat >>conftest.$ac_ext <<_ACEOF
6789/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006790
John Criswell7a73b802003-06-30 21:59:07 +00006791int
6792main ()
6793{
John Criswell47fdd832003-07-14 16:52:07 +00006794
John Criswell7a73b802003-06-30 21:59:07 +00006795 ;
6796 return 0;
6797}
6798_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006799rm -f conftest.$ac_objext conftest$ac_exeext
6800if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006801 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006802 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006803 grep -v '^ *+' conftest.er1 >conftest.err
6804 rm -f conftest.er1
6805 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006808 { ac_try='test -z "$ac_c_werror_flag"
6809 || test ! -s conftest.err'
6810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6811 (eval $ac_try) 2>&5
6812 ac_status=$?
6813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814 (exit $ac_status); }; } &&
6815 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6817 (eval $ac_try) 2>&5
6818 ac_status=$?
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006821
John Criswell47fdd832003-07-14 16:52:07 +00006822aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6823}'`
6824# Check for a 64-bit object if we didn't find anything.
6825if 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; }
6826}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006827else
6828 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006829sed 's/^/| /' conftest.$ac_ext >&5
6830
John Criswell7a73b802003-06-30 21:59:07 +00006831fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006832rm -f conftest.err conftest.$ac_objext \
6833 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006834if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006835
John Criswell47fdd832003-07-14 16:52:07 +00006836 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6837 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"
6838 else
6839 if test "$host_cpu" = ia64; then
6840 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6841 allow_undefined_flag="-z nodefs"
6842 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"
6843 else
6844 # Determine the default libpath from the value encoded in an empty executable.
6845 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006851
John Criswell47fdd832003-07-14 16:52:07 +00006852int
6853main ()
6854{
John Criswell7a73b802003-06-30 21:59:07 +00006855
John Criswell47fdd832003-07-14 16:52:07 +00006856 ;
6857 return 0;
6858}
6859_ACEOF
6860rm -f conftest.$ac_objext conftest$ac_exeext
6861if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00006862 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00006863 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00006864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00006867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00006869 { ac_try='test -z "$ac_c_werror_flag"
6870 || test ! -s conftest.err'
6871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 (eval $ac_try) 2>&5
6873 ac_status=$?
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); }; } &&
6876 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6878 (eval $ac_try) 2>&5
6879 ac_status=$?
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006882
John Criswell47fdd832003-07-14 16:52:07 +00006883aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6884}'`
6885# Check for a 64-bit object if we didn't find anything.
6886if 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; }
6887}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006888else
John Criswell47fdd832003-07-14 16:52:07 +00006889 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006890sed 's/^/| /' conftest.$ac_ext >&5
6891
John Criswell47fdd832003-07-14 16:52:07 +00006892fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00006893rm -f conftest.err conftest.$ac_objext \
6894 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006895if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006896
John Criswell47fdd832003-07-14 16:52:07 +00006897 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6898 # Warning - without using the other run time loading flags,
6899 # -berok will link without error, but may produce a broken library.
6900 no_undefined_flag=' ${wl}-bernotok'
6901 allow_undefined_flag=' ${wl}-berok'
6902 # -bexpall does not export symbols beginning with underscore (_)
6903 always_export_symbols=yes
6904 # Exported symbols can be pulled into shared objects from archives
6905 whole_archive_flag_spec=' '
6906 archive_cmds_need_lc=yes
6907 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +00006908 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 +00006909 fi
6910 fi
John Criswell7a73b802003-06-30 21:59:07 +00006911 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006912
6913 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00006914 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 +00006915 hardcode_libdir_flag_spec='-L$libdir'
6916 hardcode_minus_L=yes
6917 # see comment about different semantics on the GNU ld section
6918 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006919 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006920
Reid Spencer2706f8c2004-09-19 23:53:36 +00006921 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +00006922 export_dynamic_flag_spec=-rdynamic
6923 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006924
John Criswell47fdd832003-07-14 16:52:07 +00006925 cygwin* | mingw* | pw32*)
6926 # When not using gcc, we currently assume that we are using
6927 # Microsoft Visual C++.
6928 # hardcode_libdir_flag_spec is actually meaningless, as there is
6929 # no search path for DLLs.
6930 hardcode_libdir_flag_spec=' '
6931 allow_undefined_flag=unsupported
6932 # Tell ltmain to make .lib files, not .a files.
6933 libext=lib
6934 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +00006935 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +00006936 # FIXME: Setting linknames here is a bad hack.
Reid Spencer2706f8c2004-09-19 23:53:36 +00006937 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll;linknames='
John Criswell47fdd832003-07-14 16:52:07 +00006938 # The linker will automatically build a .lib file if we build a DLL.
6939 old_archive_From_new_cmds='true'
6940 # FIXME: Should let the user specify the lib program.
6941 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6942 fix_srcfile_path='`cygpath -w "$srcfile"`'
6943 enable_shared_with_static_runtimes=yes
6944 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006945
John Criswell47fdd832003-07-14 16:52:07 +00006946 darwin* | rhapsody*)
John Criswell7a73b802003-06-30 21:59:07 +00006947 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +00006948 rhapsody* | darwin1.[012])
6949 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6950 ;;
6951 *) # Darwin 1.3 on
6952 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6953 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6954 else
6955 case ${MACOSX_DEPLOYMENT_TARGET} in
6956 10.[012])
6957 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6958 ;;
6959 10.*)
6960 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6961 ;;
6962 esac
6963 fi
6964 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006965 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +00006966 archive_cmds_need_lc=no
John Criswell47fdd832003-07-14 16:52:07 +00006967 hardcode_direct=no
6968 hardcode_automatic=yes
6969 hardcode_shlibpath_var=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +00006970 whole_archive_flag_spec=''
John Criswell47fdd832003-07-14 16:52:07 +00006971 link_all_deplibs=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +00006972 if test "$GCC" = yes ; then
6973 output_verbose_link_cmd='echo'
6974 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6975 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6976 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6977 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}'
6978 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}'
6979 else
6980 case "$cc_basename" in
6981 xlc*)
6982 output_verbose_link_cmd='echo'
6983 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6984 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6985 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6986 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}'
6987 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}'
6988 ;;
6989 *)
6990 ld_shlibs=no
6991 ;;
6992 esac
John Criswell7a73b802003-06-30 21:59:07 +00006993 fi
John Criswell47fdd832003-07-14 16:52:07 +00006994 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006995
John Criswell47fdd832003-07-14 16:52:07 +00006996 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006998 hardcode_libdir_flag_spec='-L$libdir'
6999 hardcode_shlibpath_var=no
7000 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007001
John Criswell47fdd832003-07-14 16:52:07 +00007002 freebsd1*)
7003 ld_shlibs=no
7004 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007005
John Criswell47fdd832003-07-14 16:52:07 +00007006 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7007 # support. Future versions do this automatically, but an explicit c++rt0.o
7008 # does not break anything, and helps significantly (at the cost of a little
7009 # extra space).
7010 freebsd2.2*)
7011 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7012 hardcode_libdir_flag_spec='-R$libdir'
7013 hardcode_direct=yes
7014 hardcode_shlibpath_var=no
7015 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007016
John Criswell47fdd832003-07-14 16:52:07 +00007017 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7018 freebsd2*)
7019 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7020 hardcode_direct=yes
7021 hardcode_minus_L=yes
7022 hardcode_shlibpath_var=no
7023 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007024
John Criswell47fdd832003-07-14 16:52:07 +00007025 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007026 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00007027 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7028 hardcode_libdir_flag_spec='-R$libdir'
7029 hardcode_direct=yes
7030 hardcode_shlibpath_var=no
7031 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007032
John Criswell47fdd832003-07-14 16:52:07 +00007033 hpux9*)
7034 if test "$GCC" = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00007035 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 +00007036 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00007037 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 +00007038 fi
7039 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7040 hardcode_libdir_separator=:
7041 hardcode_direct=yes
7042
7043 # hardcode_minus_L: Not really in the search PATH,
7044 # but as the default location of the library.
7045 hardcode_minus_L=yes
7046 export_dynamic_flag_spec='${wl}-E'
7047 ;;
7048
7049 hpux10* | hpux11*)
7050 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7051 case "$host_cpu" in
7052 hppa*64*|ia64*)
7053 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7054 ;;
7055 *)
7056 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7057 ;;
7058 esac
7059 else
7060 case "$host_cpu" in
7061 hppa*64*|ia64*)
7062 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7063 ;;
7064 *)
7065 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7066 ;;
7067 esac
7068 fi
7069 if test "$with_gnu_ld" = no; then
7070 case "$host_cpu" in
7071 hppa*64*)
7072 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7073 hardcode_libdir_flag_spec_ld='+b $libdir'
7074 hardcode_libdir_separator=:
7075 hardcode_direct=no
7076 hardcode_shlibpath_var=no
7077 ;;
7078 ia64*)
7079 hardcode_libdir_flag_spec='-L$libdir'
7080 hardcode_direct=no
7081 hardcode_shlibpath_var=no
7082
7083 # hardcode_minus_L: Not really in the search PATH,
7084 # but as the default location of the library.
7085 hardcode_minus_L=yes
7086 ;;
7087 *)
7088 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7089 hardcode_libdir_separator=:
7090 hardcode_direct=yes
7091 export_dynamic_flag_spec='${wl}-E'
7092
7093 # hardcode_minus_L: Not really in the search PATH,
7094 # but as the default location of the library.
7095 hardcode_minus_L=yes
7096 ;;
7097 esac
7098 fi
7099 ;;
7100
7101 irix5* | irix6* | nonstopux*)
7102 if test "$GCC" = yes; then
7103 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'
7104 else
7105 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'
7106 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7107 fi
7108 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7109 hardcode_libdir_separator=:
7110 link_all_deplibs=yes
7111 ;;
7112
7113 netbsd*)
7114 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7115 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7116 else
7117 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7118 fi
7119 hardcode_libdir_flag_spec='-R$libdir'
7120 hardcode_direct=yes
7121 hardcode_shlibpath_var=no
7122 ;;
7123
7124 newsos6)
7125 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7126 hardcode_direct=yes
7127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7128 hardcode_libdir_separator=:
7129 hardcode_shlibpath_var=no
7130 ;;
7131
7132 openbsd*)
7133 hardcode_direct=yes
7134 hardcode_shlibpath_var=no
7135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7136 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007137 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 +00007138 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7139 export_dynamic_flag_spec='${wl}-E'
7140 else
7141 case $host_os in
7142 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7144 hardcode_libdir_flag_spec='-R$libdir'
7145 ;;
7146 *)
7147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7148 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7149 ;;
7150 esac
7151 fi
7152 ;;
7153
7154 os2*)
7155 hardcode_libdir_flag_spec='-L$libdir'
7156 hardcode_minus_L=yes
7157 allow_undefined_flag=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +00007158 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 +00007159 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7160 ;;
7161
7162 osf3*)
7163 if test "$GCC" = yes; then
7164 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7165 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'
7166 else
7167 allow_undefined_flag=' -expect_unresolved \*'
7168 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'
7169 fi
7170 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7171 hardcode_libdir_separator=:
7172 ;;
7173
7174 osf4* | osf5*) # as osf3* with the addition of -msym flag
7175 if test "$GCC" = yes; then
7176 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7177 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'
7178 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7179 else
7180 allow_undefined_flag=' -expect_unresolved \*'
7181 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 +00007182 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 +00007183 # Both c and cxx compiler support -rpath directly
7184 hardcode_libdir_flag_spec='-rpath $libdir'
7185 fi
7186 hardcode_libdir_separator=:
7187 ;;
7188
7189 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007190 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7191 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007192 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007193 runpath_var=LD_RUN_PATH
7194 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007195 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007196
John Criswell47fdd832003-07-14 16:52:07 +00007197 solaris*)
7198 no_undefined_flag=' -z text'
7199 if test "$GCC" = yes; then
7200 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007201 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 +00007202 else
7203 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007204 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 +00007205 fi
7206 hardcode_libdir_flag_spec='-R$libdir'
7207 hardcode_shlibpath_var=no
7208 case $host_os in
7209 solaris2.[0-5] | solaris2.[0-5].*) ;;
7210 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7211 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7212 esac
7213 link_all_deplibs=yes
7214 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007215
John Criswell47fdd832003-07-14 16:52:07 +00007216 sunos4*)
7217 if test "x$host_vendor" = xsequent; then
7218 # Use $CC to link under sequent, because it throws in some extra .o
7219 # files that make .init and .fini sections work.
7220 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7221 else
7222 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7223 fi
7224 hardcode_libdir_flag_spec='-L$libdir'
7225 hardcode_direct=yes
7226 hardcode_minus_L=yes
7227 hardcode_shlibpath_var=no
7228 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007229
John Criswell47fdd832003-07-14 16:52:07 +00007230 sysv4)
7231 case $host_vendor in
7232 sni)
7233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7234 hardcode_direct=yes # is this really true???
7235 ;;
7236 siemens)
7237 ## LD is ld it makes a PLAMLIB
7238 ## CC just makes a GrossModule.
7239 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7240 reload_cmds='$CC -r -o $output$reload_objs'
7241 hardcode_direct=no
7242 ;;
7243 motorola)
7244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7245 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7246 ;;
7247 esac
7248 runpath_var='LD_RUN_PATH'
7249 hardcode_shlibpath_var=no
7250 ;;
7251
7252 sysv4.3*)
7253 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7254 hardcode_shlibpath_var=no
7255 export_dynamic_flag_spec='-Bexport'
7256 ;;
7257
7258 sysv4*MP*)
7259 if test -d /usr/nec; then
7260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7261 hardcode_shlibpath_var=no
7262 runpath_var=LD_RUN_PATH
7263 hardcode_runpath_var=yes
7264 ld_shlibs=yes
7265 fi
7266 ;;
7267
7268 sysv4.2uw2*)
7269 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7270 hardcode_direct=yes
7271 hardcode_minus_L=no
7272 hardcode_shlibpath_var=no
7273 hardcode_runpath_var=yes
7274 runpath_var=LD_RUN_PATH
7275 ;;
7276
7277 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7278 no_undefined_flag='${wl}-z ${wl}text'
7279 if test "$GCC" = yes; then
7280 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7281 else
7282 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7283 fi
7284 runpath_var='LD_RUN_PATH'
7285 hardcode_shlibpath_var=no
7286 ;;
7287
7288 sysv5*)
7289 no_undefined_flag=' -z text'
7290 # $CC -shared without GNU ld will not create a library from C++
7291 # object files and a static libstdc++, better avoid it by now
7292 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007293 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 +00007294 hardcode_libdir_flag_spec=
7295 hardcode_shlibpath_var=no
7296 runpath_var='LD_RUN_PATH'
7297 ;;
7298
7299 uts4*)
7300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7301 hardcode_libdir_flag_spec='-L$libdir'
7302 hardcode_shlibpath_var=no
7303 ;;
7304
7305 *)
7306 ld_shlibs=no
7307 ;;
7308 esac
7309 fi
7310
John Criswell7a73b802003-06-30 21:59:07 +00007311echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7312echo "${ECHO_T}$ld_shlibs" >&6
7313test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007314
John Criswell47fdd832003-07-14 16:52:07 +00007315variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7316if test "$GCC" = yes; then
7317 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7318fi
7319
7320#
7321# Do we need to explicitly link libc?
7322#
7323case "x$archive_cmds_need_lc" in
7324x|xyes)
7325 # Assume -lc should be added
7326 archive_cmds_need_lc=yes
7327
7328 if test "$enable_shared" = yes && test "$GCC" = yes; then
7329 case $archive_cmds in
Reid Spencer2706f8c2004-09-19 23:53:36 +00007330 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +00007331 # FIXME: we may have to deal with multi-command sequences.
7332 ;;
7333 '$CC '*)
7334 # Test whether the compiler implicitly links with -lc since on some
7335 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7336 # to ld, don't add -lc before -lgcc.
7337 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7338echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7339 $rm conftest*
7340 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7341
7342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343 (eval $ac_compile) 2>&5
7344 ac_status=$?
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } 2>conftest.err; then
7347 soname=conftest
7348 lib=conftest
7349 libobjs=conftest.$ac_objext
7350 deplibs=
7351 wl=$lt_prog_compiler_wl
7352 compiler_flags=-v
7353 linker_flags=-v
7354 verstring=
7355 output_objdir=.
7356 libname=conftest
7357 lt_save_allow_undefined_flag=$allow_undefined_flag
7358 allow_undefined_flag=
7359 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7360 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7361 ac_status=$?
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); }
7364 then
7365 archive_cmds_need_lc=no
7366 else
7367 archive_cmds_need_lc=yes
7368 fi
7369 allow_undefined_flag=$lt_save_allow_undefined_flag
7370 else
7371 cat conftest.err 1>&5
7372 fi
7373 $rm conftest*
7374 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7375echo "${ECHO_T}$archive_cmds_need_lc" >&6
7376 ;;
7377 esac
7378 fi
7379 ;;
7380esac
7381
John Criswell7a73b802003-06-30 21:59:07 +00007382echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7383echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7384library_names_spec=
7385libname_spec='lib$name'
7386soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +00007387shrext_cmds=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007388postinstall_cmds=
7389postuninstall_cmds=
7390finish_cmds=
7391finish_eval=
7392shlibpath_var=
7393shlibpath_overrides_runpath=unknown
7394version_type=none
7395dynamic_linker="$host_os ld.so"
7396sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007397if test "$GCC" = yes; then
7398 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7399 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7400 # if the path contains ";" then we assume it to be the separator
7401 # otherwise default to the standard path separator (i.e. ":") - it is
7402 # assumed that no part of a normal pathname contains ";" but that should
7403 # okay in the real world where ";" in dirpaths is itself problematic.
7404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7405 else
7406 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7407 fi
7408else
7409 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7410fi
7411need_lib_prefix=unknown
7412hardcode_into_libs=no
7413
7414# when you set need_version to no, make sure it does not cause -set_version
7415# flags to be left without arguments
7416need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007417
7418case $host_os in
7419aix3*)
7420 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007421 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007422 shlibpath_var=LIBPATH
7423
John Criswell47fdd832003-07-14 16:52:07 +00007424 # AIX 3 has no versioning support, so we append a major version to the name.
7425 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007426 ;;
7427
7428aix4* | aix5*)
7429 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007430 need_lib_prefix=no
7431 need_version=no
7432 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007433 if test "$host_cpu" = ia64; then
7434 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007435 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007436 shlibpath_var=LD_LIBRARY_PATH
7437 else
7438 # With GCC up to 2.95.x, collect2 would create an import file
7439 # for dependence libraries. The import file would start with
7440 # the line `#! .'. This would cause the generated library to
7441 # depend on `.', always an invalid library. This was fixed in
7442 # development snapshots of GCC prior to 3.0.
7443 case $host_os in
7444 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007445 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7446 echo ' yes '
7447 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7448 :
7449 else
7450 can_build_shared=no
7451 fi
7452 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007453 esac
John Criswell47fdd832003-07-14 16:52:07 +00007454 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7455 # soname into executable. Probably we can add versioning support to
7456 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007457 if test "$aix_use_runtimelinking" = yes; then
7458 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7459 # instead of lib<name>.a to let people know that these are not
7460 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007462 else
7463 # We preserve .a as extension for shared libraries through AIX4.2
7464 # and later when we are not doing run time linking.
7465 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007466 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007467 fi
7468 shlibpath_var=LIBPATH
7469 fi
7470 ;;
7471
7472amigaos*)
7473 library_names_spec='$libname.ixlibrary $libname.a'
7474 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007475 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 +00007476 ;;
7477
7478beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007479 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007480 dynamic_linker="$host_os ld.so"
7481 shlibpath_var=LIBRARY_PATH
7482 ;;
7483
Reid Spencer2706f8c2004-09-19 23:53:36 +00007484bsdi[45]*)
John Criswell7a73b802003-06-30 21:59:07 +00007485 version_type=linux
7486 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7488 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007489 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7490 shlibpath_var=LD_LIBRARY_PATH
7491 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7492 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007493 # the default ld.so.conf also contains /usr/contrib/lib and
7494 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7495 # libtool to hard-code these into programs
7496 ;;
7497
7498cygwin* | mingw* | pw32*)
7499 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +00007500 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007501 need_version=no
7502 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007503
John Criswell7a73b802003-06-30 21:59:07 +00007504 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007505 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007506 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007507 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer2706f8c2004-09-19 23:53:36 +00007508 postinstall_cmds='base_file=`basename \${file}`;
7509 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
7510 dldir=$destdir/`dirname \$dlpath`;
7511 test -d \$dldir || mkdir -p \$dldir;
John Criswell47fdd832003-07-14 16:52:07 +00007512 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007513 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
7514 dlpath=$dir/\$dldll;
John Criswell7a73b802003-06-30 21:59:07 +00007515 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007516 shlibpath_overrides_runpath=yes
7517
7518 case $host_os in
7519 cygwin*)
7520 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7521 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 +00007522 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007523 ;;
7524 mingw*)
7525 # MinGW DLLs use traditional 'lib' prefix
7526 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7527 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7528 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7529 # It is most probably a Windows format PATH printed by
7530 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7531 # path with ; separators, and with drive letters. We can handle the
7532 # drive letters (cygwin fileutils understands them), so leave them,
7533 # especially as we might pass files found there to a mingw objdump,
7534 # which wouldn't understand a cygwinified path. Ahh.
7535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7536 else
7537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7538 fi
7539 ;;
7540 pw32*)
7541 # pw32 DLLs use 'pw' prefix rather than 'lib'
7542 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7543 ;;
7544 esac
John Criswell7a73b802003-06-30 21:59:07 +00007545 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007546
John Criswell7a73b802003-06-30 21:59:07 +00007547 *)
John Criswell47fdd832003-07-14 16:52:07 +00007548 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007549 ;;
7550 esac
7551 dynamic_linker='Win32 ld.exe'
7552 # FIXME: first we should search . and the directory the executable is in
7553 shlibpath_var=PATH
7554 ;;
7555
7556darwin* | rhapsody*)
7557 dynamic_linker="$host_os dyld"
7558 version_type=darwin
7559 need_lib_prefix=no
7560 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +00007561 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +00007562 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007563 shlibpath_overrides_runpath=yes
7564 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +00007565 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +00007566 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +00007567 if test "$GCC" = yes; then
7568 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"`
7569 else
7570 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +00007571 fi
7572 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7573 ;;
7574
7575dgux*)
7576 version_type=linux
7577 need_lib_prefix=no
7578 need_version=no
7579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7580 soname_spec='${libname}${release}${shared_ext}$major'
7581 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007582 ;;
7583
7584freebsd1*)
7585 dynamic_linker=no
7586 ;;
7587
Reid Spencer2706f8c2004-09-19 23:53:36 +00007588kfreebsd*-gnu)
7589 version_type=linux
7590 need_lib_prefix=no
7591 need_version=no
7592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7593 soname_spec='${libname}${release}${shared_ext}$major'
7594 shlibpath_var=LD_LIBRARY_PATH
7595 shlibpath_overrides_runpath=no
7596 hardcode_into_libs=yes
7597 dynamic_linker='GNU ld.so'
7598 ;;
7599
John Criswell7a73b802003-06-30 21:59:07 +00007600freebsd*)
7601 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7602 version_type=freebsd-$objformat
7603 case $version_type in
7604 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007606 need_version=no
7607 need_lib_prefix=no
7608 ;;
7609 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007610 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007611 need_version=yes
7612 ;;
7613 esac
7614 shlibpath_var=LD_LIBRARY_PATH
7615 case $host_os in
7616 freebsd2*)
7617 shlibpath_overrides_runpath=yes
7618 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007619 freebsd3.01* | freebsdelf3.01*)
7620 shlibpath_overrides_runpath=yes
7621 hardcode_into_libs=yes
7622 ;;
7623 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007624 shlibpath_overrides_runpath=no
7625 hardcode_into_libs=yes
7626 ;;
7627 esac
7628 ;;
7629
7630gnu*)
7631 version_type=linux
7632 need_lib_prefix=no
7633 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7635 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007636 shlibpath_var=LD_LIBRARY_PATH
7637 hardcode_into_libs=yes
7638 ;;
7639
7640hpux9* | hpux10* | hpux11*)
7641 # Give a soname corresponding to the major version so that dld.sl refuses to
7642 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007643 version_type=sunos
7644 need_lib_prefix=no
7645 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007646 case "$host_cpu" in
7647 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007648 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +00007649 hardcode_into_libs=yes
7650 dynamic_linker="$host_os dld.so"
7651 shlibpath_var=LD_LIBRARY_PATH
7652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7654 soname_spec='${libname}${release}${shared_ext}$major'
7655 if test "X$HPUX_IA64_MODE" = X32; then
7656 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7657 else
7658 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7659 fi
7660 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7661 ;;
7662 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007663 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00007664 hardcode_into_libs=yes
7665 dynamic_linker="$host_os dld.sl"
7666 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7667 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7669 soname_spec='${libname}${release}${shared_ext}$major'
7670 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7671 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7672 ;;
7673 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +00007674 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +00007675 dynamic_linker="$host_os dld.sl"
7676 shlibpath_var=SHLIB_PATH
7677 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7679 soname_spec='${libname}${release}${shared_ext}$major'
7680 ;;
7681 esac
John Criswell7a73b802003-06-30 21:59:07 +00007682 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7683 postinstall_cmds='chmod 555 $lib'
7684 ;;
7685
John Criswell47fdd832003-07-14 16:52:07 +00007686irix5* | irix6* | nonstopux*)
7687 case $host_os in
7688 nonstopux*) version_type=nonstopux ;;
7689 *)
7690 if test "$lt_cv_prog_gnu_ld" = yes; then
7691 version_type=linux
7692 else
7693 version_type=irix
7694 fi ;;
7695 esac
John Criswell7a73b802003-06-30 21:59:07 +00007696 need_lib_prefix=no
7697 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007698 soname_spec='${libname}${release}${shared_ext}$major'
7699 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 +00007700 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007701 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007702 libsuff= shlibsuff=
7703 ;;
7704 *)
7705 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007706 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7707 libsuff= shlibsuff= libmagic=32-bit;;
7708 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7709 libsuff=32 shlibsuff=N32 libmagic=N32;;
7710 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7711 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007712 *) libsuff= shlibsuff= libmagic=never-match;;
7713 esac
7714 ;;
7715 esac
7716 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7717 shlibpath_overrides_runpath=no
7718 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7719 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007720 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007721 ;;
7722
7723# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007724linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007725 dynamic_linker=no
7726 ;;
7727
7728# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007729linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007730 version_type=linux
7731 need_lib_prefix=no
7732 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7734 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007735 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7736 shlibpath_var=LD_LIBRARY_PATH
7737 shlibpath_overrides_runpath=no
7738 # This implies no fast_install, which is unacceptable.
7739 # Some rework will be needed to allow for fast_install
7740 # before this can be enabled.
7741 hardcode_into_libs=yes
7742
Reid Spencer2706f8c2004-09-19 23:53:36 +00007743 # Append ld.so.conf contents to the search path
7744 if test -f /etc/ld.so.conf; then
7745 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7746 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7747 fi
7748
John Criswell7a73b802003-06-30 21:59:07 +00007749 # We used to test for /lib/ld.so.1 and disable shared libraries on
7750 # powerpc, because MkLinux only supported shared libraries with the
7751 # GNU dynamic linker. Since this was broken with cross compilers,
7752 # most powerpc-linux boxes support dynamic linking these days and
7753 # people can always --disable-shared, the test was removed, and we
7754 # assume the GNU/Linux dynamic linker is in use.
7755 dynamic_linker='GNU/Linux ld.so'
7756 ;;
7757
Reid Spencer2706f8c2004-09-19 23:53:36 +00007758knetbsd*-gnu)
7759 version_type=linux
7760 need_lib_prefix=no
7761 need_version=no
7762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7763 soname_spec='${libname}${release}${shared_ext}$major'
7764 shlibpath_var=LD_LIBRARY_PATH
7765 shlibpath_overrides_runpath=no
7766 hardcode_into_libs=yes
7767 dynamic_linker='GNU ld.so'
7768 ;;
7769
John Criswell7a73b802003-06-30 21:59:07 +00007770netbsd*)
7771 version_type=sunos
7772 need_lib_prefix=no
7773 need_version=no
7774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7777 dynamic_linker='NetBSD (a.out) ld.so'
7778 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00007779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +00007780 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007781 dynamic_linker='NetBSD ld.elf_so'
7782 fi
7783 shlibpath_var=LD_LIBRARY_PATH
7784 shlibpath_overrides_runpath=yes
7785 hardcode_into_libs=yes
7786 ;;
7787
7788newsos6)
7789 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7791 shlibpath_var=LD_LIBRARY_PATH
7792 shlibpath_overrides_runpath=yes
7793 ;;
7794
Reid Spencer2706f8c2004-09-19 23:53:36 +00007795nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +00007796 version_type=linux
7797 need_lib_prefix=no
7798 need_version=no
7799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7800 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007801 shlibpath_var=LD_LIBRARY_PATH
7802 shlibpath_overrides_runpath=yes
7803 ;;
7804
7805openbsd*)
7806 version_type=sunos
7807 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +00007808 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7811 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007812 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 +00007813 case $host_os in
7814 openbsd2.[89] | openbsd2.[89].*)
7815 shlibpath_overrides_runpath=no
7816 ;;
7817 *)
7818 shlibpath_overrides_runpath=yes
7819 ;;
7820 esac
John Criswell7a73b802003-06-30 21:59:07 +00007821 else
7822 shlibpath_overrides_runpath=yes
7823 fi
John Criswell7a73b802003-06-30 21:59:07 +00007824 ;;
7825
7826os2*)
7827 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +00007828 shrext_cmds=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007829 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007830 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007831 dynamic_linker='OS/2 ld.exe'
7832 shlibpath_var=LIBPATH
7833 ;;
7834
7835osf3* | osf4* | osf5*)
7836 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007837 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007838 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007839 soname_spec='${libname}${release}${shared_ext}$major'
7840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007841 shlibpath_var=LD_LIBRARY_PATH
7842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7843 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7844 ;;
7845
7846sco3.2v5*)
7847 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007848 soname_spec='${libname}${release}${shared_ext}$major'
7849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007850 shlibpath_var=LD_LIBRARY_PATH
7851 ;;
7852
7853solaris*)
7854 version_type=linux
7855 need_lib_prefix=no
7856 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7858 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007859 shlibpath_var=LD_LIBRARY_PATH
7860 shlibpath_overrides_runpath=yes
7861 hardcode_into_libs=yes
7862 # ldd complains unless libraries are executable
7863 postinstall_cmds='chmod +x $lib'
7864 ;;
7865
7866sunos4*)
7867 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007869 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7870 shlibpath_var=LD_LIBRARY_PATH
7871 shlibpath_overrides_runpath=yes
7872 if test "$with_gnu_ld" = yes; then
7873 need_lib_prefix=no
7874 fi
7875 need_version=yes
7876 ;;
7877
7878sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7879 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7881 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007882 shlibpath_var=LD_LIBRARY_PATH
7883 case $host_vendor in
7884 sni)
7885 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007886 need_lib_prefix=no
7887 export_dynamic_flag_spec='${wl}-Blargedynsym'
7888 runpath_var=LD_RUN_PATH
7889 ;;
7890 siemens)
7891 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007892 ;;
7893 motorola)
7894 need_lib_prefix=no
7895 need_version=no
7896 shlibpath_overrides_runpath=no
7897 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7898 ;;
7899 esac
7900 ;;
7901
John Criswell7a73b802003-06-30 21:59:07 +00007902sysv4*MP*)
7903 if test -d /usr/nec ;then
7904 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007905 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7906 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007907 shlibpath_var=LD_LIBRARY_PATH
7908 fi
7909 ;;
7910
John Criswell47fdd832003-07-14 16:52:07 +00007911uts4*)
7912 version_type=linux
7913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914 soname_spec='${libname}${release}${shared_ext}$major'
7915 shlibpath_var=LD_LIBRARY_PATH
7916 ;;
7917
John Criswell7a73b802003-06-30 21:59:07 +00007918*)
7919 dynamic_linker=no
7920 ;;
7921esac
7922echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7923echo "${ECHO_T}$dynamic_linker" >&6
7924test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007925
Reid Spencer2706f8c2004-09-19 23:53:36 +00007926echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7927echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7928hardcode_action=
7929if test -n "$hardcode_libdir_flag_spec" || \
7930 test -n "$runpath_var" || \
7931 test "X$hardcode_automatic" = "Xyes" ; then
7932
7933 # We can hardcode non-existant directories.
7934 if test "$hardcode_direct" != no &&
7935 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7936 # have to relink, otherwise we might link with an installed library
7937 # when we should be linking with a yet-to-be-installed one
7938 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7939 test "$hardcode_minus_L" != no; then
7940 # Linking always hardcodes the temporary library directory.
7941 hardcode_action=relink
7942 else
7943 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7944 hardcode_action=immediate
7945 fi
7946else
7947 # We cannot hardcode anything, or else we can only hardcode existing
7948 # directories.
7949 hardcode_action=unsupported
7950fi
7951echo "$as_me:$LINENO: result: $hardcode_action" >&5
7952echo "${ECHO_T}$hardcode_action" >&6
7953
7954if test "$hardcode_action" = relink; then
7955 # Fast installation is not supported
7956 enable_fast_install=no
7957elif test "$shlibpath_overrides_runpath" = yes ||
7958 test "$enable_shared" = no; then
7959 # Fast installation is not necessary
7960 enable_fast_install=needless
7961fi
7962
7963striplib=
7964old_striplib=
7965echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7966echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7967if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7968 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7969 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7970 echo "$as_me:$LINENO: result: yes" >&5
7971echo "${ECHO_T}yes" >&6
7972else
7973# FIXME - insert some real tests, host_os isn't really good enough
7974 case $host_os in
7975 darwin*)
7976 if test -n "$STRIP" ; then
7977 striplib="$STRIP -x"
7978 echo "$as_me:$LINENO: result: yes" >&5
7979echo "${ECHO_T}yes" >&6
7980 else
7981 echo "$as_me:$LINENO: result: no" >&5
7982echo "${ECHO_T}no" >&6
7983fi
7984 ;;
7985 *)
7986 echo "$as_me:$LINENO: result: no" >&5
7987echo "${ECHO_T}no" >&6
7988 ;;
7989 esac
7990fi
7991
John Criswell7a73b802003-06-30 21:59:07 +00007992if test "x$enable_dlopen" != xyes; then
7993 enable_dlopen=unknown
7994 enable_dlopen_self=unknown
7995 enable_dlopen_self_static=unknown
7996else
7997 lt_cv_dlopen=no
7998 lt_cv_dlopen_libs=
7999
8000 case $host_os in
8001 beos*)
8002 lt_cv_dlopen="load_add_on"
8003 lt_cv_dlopen_libs=
8004 lt_cv_dlopen_self=yes
8005 ;;
8006
John Criswell47fdd832003-07-14 16:52:07 +00008007 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00008008 lt_cv_dlopen="LoadLibrary"
8009 lt_cv_dlopen_libs=
8010 ;;
8011
John Criswell47fdd832003-07-14 16:52:07 +00008012 cygwin*)
8013 lt_cv_dlopen="dlopen"
8014 lt_cv_dlopen_libs=
8015 ;;
8016
8017 darwin*)
8018 # if libdl is installed we need to link against it
8019 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8020echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8021if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8023else
8024 ac_check_lib_save_LIBS=$LIBS
8025LIBS="-ldl $LIBS"
8026cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008027/* confdefs.h. */
8028_ACEOF
8029cat confdefs.h >>conftest.$ac_ext
8030cat >>conftest.$ac_ext <<_ACEOF
8031/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00008032
8033/* Override any gcc2 internal prototype to avoid an error. */
8034#ifdef __cplusplus
8035extern "C"
8036#endif
8037/* We use char because int might match the return type of a gcc2
8038 builtin and then its argument prototype would still apply. */
8039char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00008040int
8041main ()
8042{
8043dlopen ();
8044 ;
8045 return 0;
8046}
8047_ACEOF
8048rm -f conftest.$ac_objext conftest$ac_exeext
8049if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008050 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00008051 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008052 grep -v '^ *+' conftest.er1 >conftest.err
8053 rm -f conftest.er1
8054 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00008055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008057 { ac_try='test -z "$ac_c_werror_flag"
8058 || test ! -s conftest.err'
8059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; } &&
8064 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00008065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8066 (eval $ac_try) 2>&5
8067 ac_status=$?
8068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8069 (exit $ac_status); }; }; then
8070 ac_cv_lib_dl_dlopen=yes
8071else
8072 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008073sed 's/^/| /' conftest.$ac_ext >&5
8074
John Criswell47fdd832003-07-14 16:52:07 +00008075ac_cv_lib_dl_dlopen=no
8076fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008077rm -f conftest.err conftest.$ac_objext \
8078 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00008079LIBS=$ac_check_lib_save_LIBS
8080fi
8081echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8082echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8083if test $ac_cv_lib_dl_dlopen = yes; then
8084 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8085else
8086
8087 lt_cv_dlopen="dyld"
8088 lt_cv_dlopen_libs=
8089 lt_cv_dlopen_self=yes
8090
8091fi
8092
8093 ;;
8094
John Criswell7a73b802003-06-30 21:59:07 +00008095 *)
8096 echo "$as_me:$LINENO: checking for shl_load" >&5
8097echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8098if test "${ac_cv_func_shl_load+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8100else
8101 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008102/* confdefs.h. */
8103_ACEOF
8104cat confdefs.h >>conftest.$ac_ext
8105cat >>conftest.$ac_ext <<_ACEOF
8106/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008107/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8109#define shl_load innocuous_shl_load
8110
John Criswell7a73b802003-06-30 21:59:07 +00008111/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008112 which can conflict with char shl_load (); below.
8113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8114 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008115
John Criswell0c38eaf2003-09-10 15:17:25 +00008116#ifdef __STDC__
8117# include <limits.h>
8118#else
8119# include <assert.h>
8120#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00008121
8122#undef shl_load
8123
John Criswell7a73b802003-06-30 21:59:07 +00008124/* Override any gcc2 internal prototype to avoid an error. */
8125#ifdef __cplusplus
8126extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008127{
John Criswell7a73b802003-06-30 21:59:07 +00008128#endif
8129/* We use char because int might match the return type of a gcc2
8130 builtin and then its argument prototype would still apply. */
8131char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008132/* The GNU C library defines this for functions which it implements
8133 to always fail with ENOSYS. Some functions are actually named
8134 something starting with __ and the normal name is an alias. */
8135#if defined (__stub_shl_load) || defined (__stub___shl_load)
8136choke me
8137#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008138char (*f) () = shl_load;
8139#endif
8140#ifdef __cplusplus
8141}
John Criswell7a73b802003-06-30 21:59:07 +00008142#endif
8143
John Criswell0c38eaf2003-09-10 15:17:25 +00008144int
8145main ()
8146{
8147return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008148 ;
8149 return 0;
8150}
8151_ACEOF
8152rm -f conftest.$ac_objext conftest$ac_exeext
8153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008154 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008155 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008161 { ac_try='test -z "$ac_c_werror_flag"
8162 || test ! -s conftest.err'
8163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8164 (eval $ac_try) 2>&5
8165 ac_status=$?
8166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8167 (exit $ac_status); }; } &&
8168 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8170 (eval $ac_try) 2>&5
8171 ac_status=$?
8172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173 (exit $ac_status); }; }; then
8174 ac_cv_func_shl_load=yes
8175else
8176 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008177sed 's/^/| /' conftest.$ac_ext >&5
8178
John Criswell7a73b802003-06-30 21:59:07 +00008179ac_cv_func_shl_load=no
8180fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008181rm -f conftest.err conftest.$ac_objext \
8182 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008183fi
8184echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8185echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8186if test $ac_cv_func_shl_load = yes; then
8187 lt_cv_dlopen="shl_load"
8188else
8189 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8190echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8191if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8192 echo $ECHO_N "(cached) $ECHO_C" >&6
8193else
8194 ac_check_lib_save_LIBS=$LIBS
8195LIBS="-ldld $LIBS"
8196cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008197/* confdefs.h. */
8198_ACEOF
8199cat confdefs.h >>conftest.$ac_ext
8200cat >>conftest.$ac_ext <<_ACEOF
8201/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008202
8203/* Override any gcc2 internal prototype to avoid an error. */
8204#ifdef __cplusplus
8205extern "C"
8206#endif
8207/* We use char because int might match the return type of a gcc2
8208 builtin and then its argument prototype would still apply. */
8209char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008210int
8211main ()
8212{
8213shl_load ();
8214 ;
8215 return 0;
8216}
8217_ACEOF
8218rm -f conftest.$ac_objext conftest$ac_exeext
8219if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008220 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008221 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8226 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008227 { ac_try='test -z "$ac_c_werror_flag"
8228 || test ! -s conftest.err'
8229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8230 (eval $ac_try) 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 (eval $ac_try) 2>&5
8237 ac_status=$?
8238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8239 (exit $ac_status); }; }; then
8240 ac_cv_lib_dld_shl_load=yes
8241else
8242 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008243sed 's/^/| /' conftest.$ac_ext >&5
8244
John Criswell7a73b802003-06-30 21:59:07 +00008245ac_cv_lib_dld_shl_load=no
8246fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008247rm -f conftest.err conftest.$ac_objext \
8248 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008249LIBS=$ac_check_lib_save_LIBS
8250fi
8251echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8252echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8253if test $ac_cv_lib_dld_shl_load = yes; then
8254 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8255else
8256 echo "$as_me:$LINENO: checking for dlopen" >&5
8257echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8258if test "${ac_cv_func_dlopen+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8260else
8261 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008262/* confdefs.h. */
8263_ACEOF
8264cat confdefs.h >>conftest.$ac_ext
8265cat >>conftest.$ac_ext <<_ACEOF
8266/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008267/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8269#define dlopen innocuous_dlopen
8270
John Criswell7a73b802003-06-30 21:59:07 +00008271/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008272 which can conflict with char dlopen (); below.
8273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8274 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +00008275
John Criswell0c38eaf2003-09-10 15:17:25 +00008276#ifdef __STDC__
8277# include <limits.h>
8278#else
8279# include <assert.h>
8280#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +00008281
8282#undef dlopen
8283
John Criswell7a73b802003-06-30 21:59:07 +00008284/* Override any gcc2 internal prototype to avoid an error. */
8285#ifdef __cplusplus
8286extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008287{
John Criswell7a73b802003-06-30 21:59:07 +00008288#endif
8289/* We use char because int might match the return type of a gcc2
8290 builtin and then its argument prototype would still apply. */
8291char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008292/* The GNU C library defines this for functions which it implements
8293 to always fail with ENOSYS. Some functions are actually named
8294 something starting with __ and the normal name is an alias. */
8295#if defined (__stub_dlopen) || defined (__stub___dlopen)
8296choke me
8297#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008298char (*f) () = dlopen;
8299#endif
8300#ifdef __cplusplus
8301}
John Criswell7a73b802003-06-30 21:59:07 +00008302#endif
8303
John Criswell0c38eaf2003-09-10 15:17:25 +00008304int
8305main ()
8306{
8307return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008308 ;
8309 return 0;
8310}
8311_ACEOF
8312rm -f conftest.$ac_objext conftest$ac_exeext
8313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008314 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008315 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008321 { ac_try='test -z "$ac_c_werror_flag"
8322 || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 (eval $ac_try) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_cv_func_dlopen=yes
8335else
8336 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008337sed 's/^/| /' conftest.$ac_ext >&5
8338
John Criswell7a73b802003-06-30 21:59:07 +00008339ac_cv_func_dlopen=no
8340fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008341rm -f conftest.err conftest.$ac_objext \
8342 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008343fi
8344echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8345echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8346if test $ac_cv_func_dlopen = yes; then
8347 lt_cv_dlopen="dlopen"
8348else
8349 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8350echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8351if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8353else
8354 ac_check_lib_save_LIBS=$LIBS
8355LIBS="-ldl $LIBS"
8356cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008357/* confdefs.h. */
8358_ACEOF
8359cat confdefs.h >>conftest.$ac_ext
8360cat >>conftest.$ac_ext <<_ACEOF
8361/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008362
8363/* Override any gcc2 internal prototype to avoid an error. */
8364#ifdef __cplusplus
8365extern "C"
8366#endif
8367/* We use char because int might match the return type of a gcc2
8368 builtin and then its argument prototype would still apply. */
8369char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008370int
8371main ()
8372{
8373dlopen ();
8374 ;
8375 return 0;
8376}
8377_ACEOF
8378rm -f conftest.$ac_objext conftest$ac_exeext
8379if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008380 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008381 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008382 grep -v '^ *+' conftest.er1 >conftest.err
8383 rm -f conftest.er1
8384 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008387 { ac_try='test -z "$ac_c_werror_flag"
8388 || test ! -s conftest.err'
8389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8390 (eval $ac_try) 2>&5
8391 ac_status=$?
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); }; } &&
8394 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8396 (eval $ac_try) 2>&5
8397 ac_status=$?
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); }; }; then
8400 ac_cv_lib_dl_dlopen=yes
8401else
8402 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008403sed 's/^/| /' conftest.$ac_ext >&5
8404
John Criswell7a73b802003-06-30 21:59:07 +00008405ac_cv_lib_dl_dlopen=no
8406fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008407rm -f conftest.err conftest.$ac_objext \
8408 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008409LIBS=$ac_check_lib_save_LIBS
8410fi
8411echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8412echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8413if test $ac_cv_lib_dl_dlopen = yes; then
8414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8415else
8416 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8417echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8418if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8419 echo $ECHO_N "(cached) $ECHO_C" >&6
8420else
8421 ac_check_lib_save_LIBS=$LIBS
8422LIBS="-lsvld $LIBS"
8423cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008424/* confdefs.h. */
8425_ACEOF
8426cat confdefs.h >>conftest.$ac_ext
8427cat >>conftest.$ac_ext <<_ACEOF
8428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008429
8430/* Override any gcc2 internal prototype to avoid an error. */
8431#ifdef __cplusplus
8432extern "C"
8433#endif
8434/* We use char because int might match the return type of a gcc2
8435 builtin and then its argument prototype would still apply. */
8436char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008437int
8438main ()
8439{
8440dlopen ();
8441 ;
8442 return 0;
8443}
8444_ACEOF
8445rm -f conftest.$ac_objext conftest$ac_exeext
8446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008447 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008448 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008449 grep -v '^ *+' conftest.er1 >conftest.err
8450 rm -f conftest.er1
8451 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008454 { ac_try='test -z "$ac_c_werror_flag"
8455 || test ! -s conftest.err'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; } &&
8461 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8463 (eval $ac_try) 2>&5
8464 ac_status=$?
8465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8466 (exit $ac_status); }; }; then
8467 ac_cv_lib_svld_dlopen=yes
8468else
8469 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008470sed 's/^/| /' conftest.$ac_ext >&5
8471
John Criswell7a73b802003-06-30 21:59:07 +00008472ac_cv_lib_svld_dlopen=no
8473fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008474rm -f conftest.err conftest.$ac_objext \
8475 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008476LIBS=$ac_check_lib_save_LIBS
8477fi
8478echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8479echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8480if test $ac_cv_lib_svld_dlopen = yes; then
8481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8482else
8483 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8484echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8485if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487else
8488 ac_check_lib_save_LIBS=$LIBS
8489LIBS="-ldld $LIBS"
8490cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008491/* confdefs.h. */
8492_ACEOF
8493cat confdefs.h >>conftest.$ac_ext
8494cat >>conftest.$ac_ext <<_ACEOF
8495/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008496
8497/* Override any gcc2 internal prototype to avoid an error. */
8498#ifdef __cplusplus
8499extern "C"
8500#endif
8501/* We use char because int might match the return type of a gcc2
8502 builtin and then its argument prototype would still apply. */
8503char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008504int
8505main ()
8506{
8507dld_link ();
8508 ;
8509 return 0;
8510}
8511_ACEOF
8512rm -f conftest.$ac_objext conftest$ac_exeext
8513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00008514 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008515 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00008516 grep -v '^ *+' conftest.er1 >conftest.err
8517 rm -f conftest.er1
8518 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00008521 { ac_try='test -z "$ac_c_werror_flag"
8522 || test ! -s conftest.err'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; } &&
8528 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 (eval $ac_try) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_cv_lib_dld_dld_link=yes
8535else
8536 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008537sed 's/^/| /' conftest.$ac_ext >&5
8538
John Criswell7a73b802003-06-30 21:59:07 +00008539ac_cv_lib_dld_dld_link=no
8540fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00008541rm -f conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008543LIBS=$ac_check_lib_save_LIBS
8544fi
8545echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8546echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8547if test $ac_cv_lib_dld_dld_link = yes; then
8548 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8549fi
8550
8551
8552fi
8553
8554
8555fi
8556
8557
8558fi
8559
8560
8561fi
8562
8563
8564fi
8565
8566 ;;
8567 esac
8568
8569 if test "x$lt_cv_dlopen" != xno; then
8570 enable_dlopen=yes
8571 else
8572 enable_dlopen=no
8573 fi
8574
8575 case $lt_cv_dlopen in
8576 dlopen)
8577 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008578 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008579
8580 save_LDFLAGS="$LDFLAGS"
8581 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8582
8583 save_LIBS="$LIBS"
8584 LIBS="$lt_cv_dlopen_libs $LIBS"
8585
8586 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8587echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8588if test "${lt_cv_dlopen_self+set}" = set; then
8589 echo $ECHO_N "(cached) $ECHO_C" >&6
8590else
8591 if test "$cross_compiling" = yes; then :
8592 lt_cv_dlopen_self=cross
8593else
John Criswell47fdd832003-07-14 16:52:07 +00008594 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008595 lt_status=$lt_dlunknown
8596 cat > conftest.$ac_ext <<EOF
John Criswell9f011862004-09-24 18:28:00 +00008597#line 8597 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008598#include "confdefs.h"
8599
8600#if HAVE_DLFCN_H
8601#include <dlfcn.h>
8602#endif
8603
8604#include <stdio.h>
8605
8606#ifdef RTLD_GLOBAL
8607# define LT_DLGLOBAL RTLD_GLOBAL
8608#else
8609# ifdef DL_GLOBAL
8610# define LT_DLGLOBAL DL_GLOBAL
8611# else
8612# define LT_DLGLOBAL 0
8613# endif
8614#endif
8615
8616/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8617 find out it does not work in some platform. */
8618#ifndef LT_DLLAZY_OR_NOW
8619# ifdef RTLD_LAZY
8620# define LT_DLLAZY_OR_NOW RTLD_LAZY
8621# else
8622# ifdef DL_LAZY
8623# define LT_DLLAZY_OR_NOW DL_LAZY
8624# else
8625# ifdef RTLD_NOW
8626# define LT_DLLAZY_OR_NOW RTLD_NOW
8627# else
8628# ifdef DL_NOW
8629# define LT_DLLAZY_OR_NOW DL_NOW
8630# else
8631# define LT_DLLAZY_OR_NOW 0
8632# endif
8633# endif
8634# endif
8635# endif
8636#endif
8637
8638#ifdef __cplusplus
8639extern "C" void exit (int);
8640#endif
8641
8642void fnord() { int i=42;}
8643int main ()
8644{
8645 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8646 int status = $lt_dlunknown;
8647
8648 if (self)
8649 {
8650 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8651 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8652 /* dlclose (self); */
8653 }
8654
8655 exit (status);
8656}
8657EOF
8658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8659 (eval $ac_link) 2>&5
8660 ac_status=$?
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8663 (./conftest; exit; ) 2>/dev/null
8664 lt_status=$?
8665 case x$lt_status in
8666 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8667 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8668 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8669 esac
8670 else :
8671 # compilation failed
8672 lt_cv_dlopen_self=no
8673 fi
8674fi
8675rm -fr conftest*
8676
8677
8678fi
8679echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8680echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8681
8682 if test "x$lt_cv_dlopen_self" = xyes; then
8683 LDFLAGS="$LDFLAGS $link_static_flag"
8684 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8685echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8686if test "${lt_cv_dlopen_self_static+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688else
8689 if test "$cross_compiling" = yes; then :
8690 lt_cv_dlopen_self_static=cross
8691else
John Criswell47fdd832003-07-14 16:52:07 +00008692 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008693 lt_status=$lt_dlunknown
8694 cat > conftest.$ac_ext <<EOF
John Criswell9f011862004-09-24 18:28:00 +00008695#line 8695 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008696#include "confdefs.h"
8697
8698#if HAVE_DLFCN_H
8699#include <dlfcn.h>
8700#endif
8701
8702#include <stdio.h>
8703
8704#ifdef RTLD_GLOBAL
8705# define LT_DLGLOBAL RTLD_GLOBAL
8706#else
8707# ifdef DL_GLOBAL
8708# define LT_DLGLOBAL DL_GLOBAL
8709# else
8710# define LT_DLGLOBAL 0
8711# endif
8712#endif
8713
8714/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8715 find out it does not work in some platform. */
8716#ifndef LT_DLLAZY_OR_NOW
8717# ifdef RTLD_LAZY
8718# define LT_DLLAZY_OR_NOW RTLD_LAZY
8719# else
8720# ifdef DL_LAZY
8721# define LT_DLLAZY_OR_NOW DL_LAZY
8722# else
8723# ifdef RTLD_NOW
8724# define LT_DLLAZY_OR_NOW RTLD_NOW
8725# else
8726# ifdef DL_NOW
8727# define LT_DLLAZY_OR_NOW DL_NOW
8728# else
8729# define LT_DLLAZY_OR_NOW 0
8730# endif
8731# endif
8732# endif
8733# endif
8734#endif
8735
8736#ifdef __cplusplus
8737extern "C" void exit (int);
8738#endif
8739
8740void fnord() { int i=42;}
8741int main ()
8742{
8743 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8744 int status = $lt_dlunknown;
8745
8746 if (self)
8747 {
8748 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8749 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8750 /* dlclose (self); */
8751 }
8752
8753 exit (status);
8754}
8755EOF
8756 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8757 (eval $ac_link) 2>&5
8758 ac_status=$?
8759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8760 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8761 (./conftest; exit; ) 2>/dev/null
8762 lt_status=$?
8763 case x$lt_status in
8764 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8765 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8766 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8767 esac
8768 else :
8769 # compilation failed
8770 lt_cv_dlopen_self_static=no
8771 fi
8772fi
8773rm -fr conftest*
8774
8775
8776fi
8777echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8778echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8779 fi
8780
8781 CPPFLAGS="$save_CPPFLAGS"
8782 LDFLAGS="$save_LDFLAGS"
8783 LIBS="$save_LIBS"
8784 ;;
8785 esac
8786
8787 case $lt_cv_dlopen_self in
8788 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8789 *) enable_dlopen_self=unknown ;;
8790 esac
8791
8792 case $lt_cv_dlopen_self_static in
8793 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8794 *) enable_dlopen_self_static=unknown ;;
8795 esac
8796fi
8797
8798
John Criswell47fdd832003-07-14 16:52:07 +00008799# Report which librarie types wil actually be built
8800echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8801echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8802echo "$as_me:$LINENO: result: $can_build_shared" >&5
8803echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008804
John Criswell47fdd832003-07-14 16:52:07 +00008805echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8806echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8807test "$can_build_shared" = "no" && enable_shared=no
8808
8809# On AIX, shared libraries and static libraries use the same namespace, and
8810# are all built from PIC.
8811case "$host_os" in
8812aix3*)
8813 test "$enable_shared" = yes && enable_static=no
8814 if test -n "$RANLIB"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00008815 archive_cmds="$archive_cmds;\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +00008816 postinstall_cmds='$RANLIB $lib'
8817 fi
8818 ;;
8819
Reid Spencer2706f8c2004-09-19 23:53:36 +00008820aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +00008821 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8822 test "$enable_shared" = yes && enable_static=no
8823 fi
John Criswell7a73b802003-06-30 21:59:07 +00008824 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008825esac
8826echo "$as_me:$LINENO: result: $enable_shared" >&5
8827echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008828
John Criswell47fdd832003-07-14 16:52:07 +00008829echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8830echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8831# Make sure either enable_shared or enable_static is yes.
8832test "$enable_shared" = yes || enable_static=yes
8833echo "$as_me:$LINENO: result: $enable_static" >&5
8834echo "${ECHO_T}$enable_static" >&6
8835
8836# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008837# libtool distribution, otherwise you forgot to ship ltmain.sh
8838# with your package, and you will get complaints that there are
8839# no rules to generate ltmain.sh.
8840if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008841 # See if we are running on zsh, and set the options which allow our commands through
8842 # without removal of \ escapes.
8843 if test -n "${ZSH_VERSION+set}" ; then
8844 setopt NO_GLOB_SUBST
8845 fi
John Criswell7a73b802003-06-30 21:59:07 +00008846 # Now quote all the things that may contain metacharacters while being
8847 # careful not to overquote the AC_SUBSTed values. We take copies of the
8848 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008849 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8850 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +00008851 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8852 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8853 deplibs_check_method reload_flag reload_cmds need_locks \
8854 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8855 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008856 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008857 old_postinstall_cmds old_postuninstall_cmds \
8858 compiler \
8859 CC \
8860 LD \
8861 lt_prog_compiler_wl \
8862 lt_prog_compiler_pic \
8863 lt_prog_compiler_static \
8864 lt_prog_compiler_no_builtin_flag \
8865 export_dynamic_flag_spec \
8866 thread_safe_flag_spec \
8867 whole_archive_flag_spec \
8868 enable_shared_with_static_runtimes \
8869 old_archive_cmds \
8870 old_archive_from_new_cmds \
8871 predep_objects \
8872 postdep_objects \
8873 predeps \
8874 postdeps \
8875 compiler_lib_search_path \
8876 archive_cmds \
8877 archive_expsym_cmds \
8878 postinstall_cmds \
8879 postuninstall_cmds \
8880 old_archive_from_expsyms_cmds \
8881 allow_undefined_flag \
8882 no_undefined_flag \
8883 export_symbols_cmds \
8884 hardcode_libdir_flag_spec \
8885 hardcode_libdir_flag_spec_ld \
8886 hardcode_libdir_separator \
8887 hardcode_automatic \
8888 module_cmds \
8889 module_expsym_cmds \
8890 lt_cv_prog_compiler_c_o \
8891 exclude_expsyms \
8892 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008893
8894 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008895 old_archive_cmds | \
8896 old_archive_from_new_cmds | \
8897 archive_cmds | \
8898 archive_expsym_cmds | \
8899 module_cmds | \
8900 module_expsym_cmds | \
8901 old_archive_from_expsyms_cmds | \
8902 export_symbols_cmds | \
8903 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008904 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008905 old_postinstall_cmds | old_postuninstall_cmds | \
8906 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008907 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008908 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 +00008909 ;;
8910 *)
8911 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8912 ;;
8913 esac
8914 done
8915
John Criswell47fdd832003-07-14 16:52:07 +00008916 case $lt_echo in
8917 *'\$0 --fallback-echo"')
8918 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8919 ;;
8920 esac
8921
8922cfgfile="${ofile}T"
8923 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8924 $rm -f "$cfgfile"
8925 { echo "$as_me:$LINENO: creating $ofile" >&5
8926echo "$as_me: creating $ofile" >&6;}
8927
8928 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008929#! $SHELL
8930
John Criswell47fdd832003-07-14 16:52:07 +00008931# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008932# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8933# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8934#
John Criswell47fdd832003-07-14 16:52:07 +00008935# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8936# Free Software Foundation, Inc.
8937#
8938# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008939# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8940#
8941# This program is free software; you can redistribute it and/or modify
8942# it under the terms of the GNU General Public License as published by
8943# the Free Software Foundation; either version 2 of the License, or
8944# (at your option) any later version.
8945#
8946# This program is distributed in the hope that it will be useful, but
8947# WITHOUT ANY WARRANTY; without even the implied warranty of
8948# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8949# General Public License for more details.
8950#
8951# You should have received a copy of the GNU General Public License
8952# along with this program; if not, write to the Free Software
8953# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8954#
8955# As a special exception to the GNU General Public License, if you
8956# distribute this file as part of a program that contains a
8957# configuration script generated by Autoconf, you may include it under
8958# the same distribution terms that you use for the rest of that program.
8959
John Criswell47fdd832003-07-14 16:52:07 +00008960# A sed program that does not truncate output.
8961SED=$lt_SED
8962
John Criswell7a73b802003-06-30 21:59:07 +00008963# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008964Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008965
8966# The HP-UX ksh and POSIX shell print the target directory to stdout
8967# if CDPATH is set.
Reid Spencer2706f8c2004-09-19 23:53:36 +00008968(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +00008969
John Criswell47fdd832003-07-14 16:52:07 +00008970# The names of the tagged configurations supported by this script.
8971available_tags=
8972
John Criswell7a73b802003-06-30 21:59:07 +00008973# ### BEGIN LIBTOOL CONFIG
8974
8975# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8976
8977# Shell to use when invoking shell scripts.
8978SHELL=$lt_SHELL
8979
8980# Whether or not to build shared libraries.
8981build_libtool_libs=$enable_shared
8982
8983# Whether or not to build static libraries.
8984build_old_libs=$enable_static
8985
8986# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008987build_libtool_need_lc=$archive_cmds_need_lc
8988
8989# Whether or not to disallow shared libs when runtime libs are static
8990allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008991
8992# Whether or not to optimize for fast installation.
8993fast_install=$enable_fast_install
8994
8995# The host system.
8996host_alias=$host_alias
8997host=$host
8998
8999# An echo program that does not interpret backslashes.
9000echo=$lt_echo
9001
9002# The archiver.
9003AR=$lt_AR
9004AR_FLAGS=$lt_AR_FLAGS
9005
John Criswell47fdd832003-07-14 16:52:07 +00009006# A C compiler.
9007LTCC=$lt_LTCC
9008
9009# A language-specific compiler.
9010CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00009011
9012# Is the compiler the GNU C compiler?
9013with_gcc=$GCC
9014
John Criswell47fdd832003-07-14 16:52:07 +00009015# An ERE matcher.
9016EGREP=$lt_EGREP
9017
John Criswell7a73b802003-06-30 21:59:07 +00009018# The linker used to build libraries.
9019LD=$lt_LD
9020
9021# Whether we need hard or soft links.
9022LN_S=$lt_LN_S
9023
9024# A BSD-compatible nm program.
9025NM=$lt_NM
9026
9027# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +00009028STRIP=$lt_STRIP
John Criswell7a73b802003-06-30 21:59:07 +00009029
9030# Used to examine libraries when file_magic_cmd begins "file"
9031MAGIC_CMD=$MAGIC_CMD
9032
9033# Used on cygwin: DLL creation program.
9034DLLTOOL="$DLLTOOL"
9035
9036# Used on cygwin: object dumper.
9037OBJDUMP="$OBJDUMP"
9038
9039# Used on cygwin: assembler.
9040AS="$AS"
9041
9042# The name of the directory that contains temporary libtool files.
9043objdir=$objdir
9044
9045# How to create reloadable object files.
9046reload_flag=$lt_reload_flag
9047reload_cmds=$lt_reload_cmds
9048
9049# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009050wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009051
9052# Object file suffix (normally "o").
9053objext="$ac_objext"
9054
9055# Old archive suffix (normally "a").
9056libext="$libext"
9057
John Criswell47fdd832003-07-14 16:52:07 +00009058# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +00009059shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +00009060
John Criswell7a73b802003-06-30 21:59:07 +00009061# Executable file suffix (normally "").
9062exeext="$exeext"
9063
9064# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009065pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009066pic_mode=$pic_mode
9067
John Criswell47fdd832003-07-14 16:52:07 +00009068# What is the maximum length of a command?
9069max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009070
John Criswell47fdd832003-07-14 16:52:07 +00009071# Does compiler simultaneously support -c and -o options?
9072compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009073
9074# Must we lock files when doing compilation ?
9075need_locks=$lt_need_locks
9076
9077# Do we need the lib prefix for modules?
9078need_lib_prefix=$need_lib_prefix
9079
9080# Do we need a version for libraries?
9081need_version=$need_version
9082
9083# Whether dlopen is supported.
9084dlopen_support=$enable_dlopen
9085
9086# Whether dlopen of programs is supported.
9087dlopen_self=$enable_dlopen_self
9088
9089# Whether dlopen of statically linked programs is supported.
9090dlopen_self_static=$enable_dlopen_self_static
9091
9092# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009093link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009094
9095# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009096no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009097
9098# Compiler flag to allow reflexive dlopens.
9099export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9100
9101# Compiler flag to generate shared objects directly from archives.
9102whole_archive_flag_spec=$lt_whole_archive_flag_spec
9103
9104# Compiler flag to generate thread-safe objects.
9105thread_safe_flag_spec=$lt_thread_safe_flag_spec
9106
9107# Library versioning type.
9108version_type=$version_type
9109
9110# Format of library name prefix.
9111libname_spec=$lt_libname_spec
9112
9113# List of archive names. First name is the real one, the rest are links.
9114# The last name is the one that the linker finds with -lNAME.
9115library_names_spec=$lt_library_names_spec
9116
9117# The coded name of the library, if different from the real name.
9118soname_spec=$lt_soname_spec
9119
9120# Commands used to build and install an old-style archive.
9121RANLIB=$lt_RANLIB
9122old_archive_cmds=$lt_old_archive_cmds
9123old_postinstall_cmds=$lt_old_postinstall_cmds
9124old_postuninstall_cmds=$lt_old_postuninstall_cmds
9125
9126# Create an old-style archive from a shared archive.
9127old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9128
9129# Create a temporary old-style archive to link instead of a shared archive.
9130old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9131
9132# Commands used to build and install a shared archive.
9133archive_cmds=$lt_archive_cmds
9134archive_expsym_cmds=$lt_archive_expsym_cmds
9135postinstall_cmds=$lt_postinstall_cmds
9136postuninstall_cmds=$lt_postuninstall_cmds
9137
John Criswell47fdd832003-07-14 16:52:07 +00009138# Commands used to build a loadable module (assumed same as above if empty)
9139module_cmds=$lt_module_cmds
9140module_expsym_cmds=$lt_module_expsym_cmds
9141
John Criswell7a73b802003-06-30 21:59:07 +00009142# Commands to strip libraries.
9143old_striplib=$lt_old_striplib
9144striplib=$lt_striplib
9145
John Criswell47fdd832003-07-14 16:52:07 +00009146# Dependencies to place before the objects being linked to create a
9147# shared library.
9148predep_objects=$lt_predep_objects
9149
9150# Dependencies to place after the objects being linked to create a
9151# shared library.
9152postdep_objects=$lt_postdep_objects
9153
9154# Dependencies to place before the objects being linked to create a
9155# shared library.
9156predeps=$lt_predeps
9157
9158# Dependencies to place after the objects being linked to create a
9159# shared library.
9160postdeps=$lt_postdeps
9161
9162# The library search path used internally by the compiler when linking
9163# a shared library.
9164compiler_lib_search_path=$lt_compiler_lib_search_path
9165
John Criswell7a73b802003-06-30 21:59:07 +00009166# Method to check whether dependent libraries are shared objects.
9167deplibs_check_method=$lt_deplibs_check_method
9168
9169# Command to use when deplibs_check_method == file_magic.
9170file_magic_cmd=$lt_file_magic_cmd
9171
9172# Flag that allows shared libraries with undefined symbols to be built.
9173allow_undefined_flag=$lt_allow_undefined_flag
9174
9175# Flag that forces no undefined symbols.
9176no_undefined_flag=$lt_no_undefined_flag
9177
9178# Commands used to finish a libtool library installation in a directory.
9179finish_cmds=$lt_finish_cmds
9180
9181# Same as above, but a single script fragment to be evaled but not shown.
9182finish_eval=$lt_finish_eval
9183
9184# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009185global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009186
9187# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009188global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009189
9190# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009191global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009192
9193# This is the shared library runtime path variable.
9194runpath_var=$runpath_var
9195
9196# This is the shared library path variable.
9197shlibpath_var=$shlibpath_var
9198
9199# Is shlibpath searched before the hard-coded library search path?
9200shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9201
9202# How to hardcode a shared library path into an executable.
9203hardcode_action=$hardcode_action
9204
9205# Whether we should hardcode library paths into libraries.
9206hardcode_into_libs=$hardcode_into_libs
9207
9208# Flag to hardcode \$libdir into a binary during linking.
9209# This must work even if \$libdir does not exist.
9210hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9211
John Criswell47fdd832003-07-14 16:52:07 +00009212# If ld is used when linking, flag to hardcode \$libdir into
9213# a binary during linking. This must work even if \$libdir does
9214# not exist.
9215hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9216
John Criswell7a73b802003-06-30 21:59:07 +00009217# Whether we need a single -rpath flag with a separated argument.
9218hardcode_libdir_separator=$lt_hardcode_libdir_separator
9219
John Criswell47fdd832003-07-14 16:52:07 +00009220# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009221# resulting binary.
9222hardcode_direct=$hardcode_direct
9223
9224# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9225# resulting binary.
9226hardcode_minus_L=$hardcode_minus_L
9227
9228# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9229# the resulting binary.
9230hardcode_shlibpath_var=$hardcode_shlibpath_var
9231
John Criswell47fdd832003-07-14 16:52:07 +00009232# Set to yes if building a shared library automatically hardcodes DIR into the library
9233# and all subsequent libraries and executables linked against it.
9234hardcode_automatic=$hardcode_automatic
9235
John Criswell7a73b802003-06-30 21:59:07 +00009236# Variables whose values should be saved in libtool wrapper scripts and
9237# restored at relink time.
9238variables_saved_for_relink="$variables_saved_for_relink"
9239
9240# Whether libtool must link a program against all its dependency libraries.
9241link_all_deplibs=$link_all_deplibs
9242
9243# Compile-time system search path for libraries
9244sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9245
9246# Run-time system search path for libraries
9247sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9248
9249# Fix the shell variable \$srcfile for the compiler.
9250fix_srcfile_path="$fix_srcfile_path"
9251
9252# Set to yes if exported symbols are required.
9253always_export_symbols=$always_export_symbols
9254
9255# The commands to list exported symbols.
9256export_symbols_cmds=$lt_export_symbols_cmds
9257
9258# The commands to extract the exported symbol list from a shared archive.
9259extract_expsyms_cmds=$lt_extract_expsyms_cmds
9260
9261# Symbols that should not be listed in the preloaded symbols.
9262exclude_expsyms=$lt_exclude_expsyms
9263
9264# Symbols that must always be exported.
9265include_expsyms=$lt_include_expsyms
9266
9267# ### END LIBTOOL CONFIG
9268
9269__EOF__
9270
John Criswell47fdd832003-07-14 16:52:07 +00009271
John Criswell7a73b802003-06-30 21:59:07 +00009272 case $host_os in
9273 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009274 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009275
9276# AIX sometimes has problems with the GCC collect2 program. For some
9277# reason, if we set the COLLECT_NAMES environment variable, the problems
9278# vanish in a puff of smoke.
9279if test "X${COLLECT_NAMES+set}" != Xset; then
9280 COLLECT_NAMES=
9281 export COLLECT_NAMES
9282fi
9283EOF
9284 ;;
9285 esac
9286
John Criswell7a73b802003-06-30 21:59:07 +00009287 # We use sed instead of cat because bash on DJGPP gets confused if
9288 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9289 # text mode, it properly converts lines to CR/LF. This bash problem
9290 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009291 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009292
John Criswell47fdd832003-07-14 16:52:07 +00009293 mv -f "$cfgfile" "$ofile" || \
9294 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009295 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009296
9297else
9298 # If there is no Makefile yet, we rely on a make rule to execute
9299 # `config.status --recheck' to rerun these tests and create the
9300 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009301 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9302 if test -f "$ltmain_in"; then
9303 test -f Makefile && make "$ltmain"
9304 fi
John Criswell7a73b802003-06-30 21:59:07 +00009305fi
John Criswell7a73b802003-06-30 21:59:07 +00009306
9307
John Criswell47fdd832003-07-14 16:52:07 +00009308ac_ext=c
9309ac_cpp='$CPP $CPPFLAGS'
9310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9312ac_compiler_gnu=$ac_cv_c_compiler_gnu
9313
9314CC="$lt_save_CC"
9315
9316
9317# Check whether --with-tags or --without-tags was given.
9318if test "${with_tags+set}" = set; then
9319 withval="$with_tags"
9320 tagnames="$withval"
9321fi;
9322
9323if test -f "$ltmain" && test -n "$tagnames"; then
9324 if test ! -f "${ofile}"; then
9325 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9326echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9327 fi
9328
9329 if test -z "$LTCC"; then
9330 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9331 if test -z "$LTCC"; then
9332 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9333echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9334 else
9335 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9336echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9337 fi
9338 fi
9339
9340 # Extract list of available tagged configurations in $ofile.
9341 # Note that this assumes the entire list is on one line.
9342 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9343
9344 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9345 for tagname in $tagnames; do
9346 IFS="$lt_save_ifs"
9347 # Check whether tagname contains only valid characters
9348 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9349 "") ;;
9350 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9351echo "$as_me: error: invalid tag name: $tagname" >&2;}
9352 { (exit 1); exit 1; }; }
9353 ;;
9354 esac
9355
9356 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9357 then
9358 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9359echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9360 { (exit 1); exit 1; }; }
9361 fi
9362
9363 # Update the list of available tags.
9364 if test -n "$tagname"; then
9365 echo appending configuration tag \"$tagname\" to $ofile
9366
9367 case $tagname in
9368 CXX)
Reid Spencer2706f8c2004-09-19 23:53:36 +00009369 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9370 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9371 (test "X$CXX" != "Xg++"))) ; then
John Criswell47fdd832003-07-14 16:52:07 +00009372 ac_ext=cc
9373ac_cpp='$CXXCPP $CPPFLAGS'
9374ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9375ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9376ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9377
9378
9379
9380
9381archive_cmds_need_lc_CXX=no
9382allow_undefined_flag_CXX=
9383always_export_symbols_CXX=no
9384archive_expsym_cmds_CXX=
9385export_dynamic_flag_spec_CXX=
9386hardcode_direct_CXX=no
9387hardcode_libdir_flag_spec_CXX=
9388hardcode_libdir_flag_spec_ld_CXX=
9389hardcode_libdir_separator_CXX=
9390hardcode_minus_L_CXX=no
9391hardcode_automatic_CXX=no
9392module_cmds_CXX=
9393module_expsym_cmds_CXX=
9394link_all_deplibs_CXX=unknown
9395old_archive_cmds_CXX=$old_archive_cmds
9396no_undefined_flag_CXX=
9397whole_archive_flag_spec_CXX=
9398enable_shared_with_static_runtimes_CXX=no
9399
9400# Dependencies to place before and after the object being linked:
9401predep_objects_CXX=
9402postdep_objects_CXX=
9403predeps_CXX=
9404postdeps_CXX=
9405compiler_lib_search_path_CXX=
9406
9407# Source file extension for C++ test sources.
9408ac_ext=cc
9409
9410# Object file extension for compiled C++ test sources.
9411objext=o
9412objext_CXX=$objext
9413
9414# Code to be used in simple compile tests
9415lt_simple_compile_test_code="int some_variable = 0;\n"
9416
9417# Code to be used in simple link tests
9418lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9419
9420# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9421
9422# If no C compiler was specified, use CC.
9423LTCC=${LTCC-"$CC"}
9424
9425# Allow CC to be a program name with arguments.
9426compiler=$CC
9427
9428
9429# Allow CC to be a program name with arguments.
9430lt_save_CC=$CC
9431lt_save_LD=$LD
9432lt_save_GCC=$GCC
9433GCC=$GXX
9434lt_save_with_gnu_ld=$with_gnu_ld
9435lt_save_path_LD=$lt_cv_path_LD
9436if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9437 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9438else
9439 unset lt_cv_prog_gnu_ld
9440fi
9441if test -n "${lt_cv_path_LDCXX+set}"; then
9442 lt_cv_path_LD=$lt_cv_path_LDCXX
9443else
9444 unset lt_cv_path_LD
9445fi
9446test -z "${LDCXX+set}" || LD=$LDCXX
9447CC=${CXX-"c++"}
9448compiler=$CC
9449compiler_CXX=$CC
9450cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9451
9452# We don't want -fno-exception wen compiling C++ code, so set the
9453# no_builtin_flag separately
9454if test "$GXX" = yes; then
9455 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9456else
9457 lt_prog_compiler_no_builtin_flag_CXX=
9458fi
9459
9460if test "$GXX" = yes; then
9461 # Set up default GNU C++ configuration
9462
9463
9464# Check whether --with-gnu-ld or --without-gnu-ld was given.
9465if test "${with_gnu_ld+set}" = set; then
9466 withval="$with_gnu_ld"
9467 test "$withval" = no || with_gnu_ld=yes
9468else
9469 with_gnu_ld=no
9470fi;
9471ac_prog=ld
9472if test "$GCC" = yes; then
9473 # Check if gcc -print-prog-name=ld gives a path.
9474 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9475echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9476 case $host in
9477 *-*-mingw*)
9478 # gcc leaves a trailing carriage return which upsets mingw
9479 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9480 *)
9481 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9482 esac
9483 case $ac_prog in
9484 # Accept absolute paths.
9485 [\\/]* | ?:[\\/]*)
9486 re_direlt='/[^/][^/]*/\.\./'
Reid Spencer2706f8c2004-09-19 23:53:36 +00009487 # Canonicalize the pathname of ld
John Criswell47fdd832003-07-14 16:52:07 +00009488 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9489 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9490 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9491 done
9492 test -z "$LD" && LD="$ac_prog"
9493 ;;
9494 "")
9495 # If it fails, then pretend we aren't using GCC.
9496 ac_prog=ld
9497 ;;
9498 *)
9499 # If it is relative, then search for the first ld in PATH.
9500 with_gnu_ld=unknown
9501 ;;
9502 esac
9503elif test "$with_gnu_ld" = yes; then
9504 echo "$as_me:$LINENO: checking for GNU ld" >&5
9505echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9506else
9507 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9508echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9509fi
9510if test "${lt_cv_path_LD+set}" = set; then
9511 echo $ECHO_N "(cached) $ECHO_C" >&6
9512else
9513 if test -z "$LD"; then
9514 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9515 for ac_dir in $PATH; do
9516 IFS="$lt_save_ifs"
9517 test -z "$ac_dir" && ac_dir=.
9518 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9519 lt_cv_path_LD="$ac_dir/$ac_prog"
9520 # Check to see if the program is GNU ld. I'd rather use --version,
9521 # but apparently some GNU ld's only accept -v.
9522 # Break only if it was the GNU/non-GNU ld that we prefer.
9523 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9524 *GNU* | *'with BFD'*)
9525 test "$with_gnu_ld" != no && break
9526 ;;
9527 *)
9528 test "$with_gnu_ld" != yes && break
9529 ;;
9530 esac
9531 fi
9532 done
9533 IFS="$lt_save_ifs"
9534else
9535 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9536fi
9537fi
9538
9539LD="$lt_cv_path_LD"
9540if test -n "$LD"; then
9541 echo "$as_me:$LINENO: result: $LD" >&5
9542echo "${ECHO_T}$LD" >&6
9543else
9544 echo "$as_me:$LINENO: result: no" >&5
9545echo "${ECHO_T}no" >&6
9546fi
9547test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9548echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9549 { (exit 1); exit 1; }; }
9550echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9551echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9552if test "${lt_cv_prog_gnu_ld+set}" = set; then
9553 echo $ECHO_N "(cached) $ECHO_C" >&6
9554else
9555 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009556case `$LD -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00009557*GNU* | *'with BFD'*)
9558 lt_cv_prog_gnu_ld=yes
9559 ;;
9560*)
9561 lt_cv_prog_gnu_ld=no
9562 ;;
9563esac
9564fi
9565echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9566echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9567with_gnu_ld=$lt_cv_prog_gnu_ld
9568
9569
9570
9571 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9572 # archiving commands below assume that GNU ld is being used.
9573 if test "$with_gnu_ld" = yes; then
9574 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9575 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'
9576
9577 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9578 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9579
9580 # If archive_cmds runs LD, not CC, wlarc should be empty
9581 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9582 # investigate it a little bit more. (MM)
9583 wlarc='${wl}'
9584
9585 # ancient GNU ld didn't support --whole-archive et. al.
9586 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9587 grep 'no-whole-archive' > /dev/null; then
9588 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9589 else
9590 whole_archive_flag_spec_CXX=
9591 fi
9592 else
9593 with_gnu_ld=no
9594 wlarc=
9595
9596 # A generic and very simple default shared library creation
9597 # command for GNU C++ for the case where it uses the native
9598 # linker, instead of GNU ld. If possible, this setting should
9599 # overridden to take advantage of the native linker features on
9600 # the platform it is being used on.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009601 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +00009602 fi
9603
9604 # Commands to make compiler produce verbose output that lists
9605 # what "hidden" libraries, object files and flags are used when
9606 # linking a shared library.
9607 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9608
9609else
9610 GXX=no
9611 with_gnu_ld=no
9612 wlarc=
9613fi
9614
9615# PORTME: fill in a description of your system's C++ link characteristics
9616echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9617echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9618ld_shlibs_CXX=yes
9619case $host_os in
9620 aix3*)
9621 # FIXME: insert proper C++ library support
9622 ld_shlibs_CXX=no
9623 ;;
9624 aix4* | aix5*)
9625 if test "$host_cpu" = ia64; then
9626 # On IA64, the linker does run time linking by default, so we don't
9627 # have to do anything special.
9628 aix_use_runtimelinking=no
9629 exp_sym_flag='-Bexport'
9630 no_entry_flag=""
9631 else
9632 aix_use_runtimelinking=no
9633
9634 # Test if we are trying to use run time linking or normal
9635 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9636 # need to do runtime linking.
9637 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9638 for ld_flag in $LDFLAGS; do
9639 case $ld_flag in
9640 *-brtl*)
9641 aix_use_runtimelinking=yes
9642 break
9643 ;;
9644 esac
9645 done
9646 esac
9647
9648 exp_sym_flag='-bexport'
9649 no_entry_flag='-bnoentry'
9650 fi
9651
9652 # When large executables or shared objects are built, AIX ld can
9653 # have problems creating the table of contents. If linking a library
9654 # or program results in "error TOC overflow" add -mminimal-toc to
9655 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9656 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9657
9658 archive_cmds_CXX=''
9659 hardcode_direct_CXX=yes
9660 hardcode_libdir_separator_CXX=':'
9661 link_all_deplibs_CXX=yes
9662
9663 if test "$GXX" = yes; then
9664 case $host_os in aix4.012|aix4.012.*)
9665 # We only want to do this on AIX 4.2 and lower, the check
9666 # below for broken collect2 doesn't work under 4.3+
9667 collect2name=`${CC} -print-prog-name=collect2`
9668 if test -f "$collect2name" && \
9669 strings "$collect2name" | grep resolve_lib_name >/dev/null
9670 then
9671 # We have reworked collect2
9672 hardcode_direct_CXX=yes
9673 else
9674 # We have old collect2
9675 hardcode_direct_CXX=unsupported
9676 # It fails to find uninstalled libraries when the uninstalled
9677 # path is not listed in the libpath. Setting hardcode_minus_L
9678 # to unsupported forces relinking
9679 hardcode_minus_L_CXX=yes
9680 hardcode_libdir_flag_spec_CXX='-L$libdir'
9681 hardcode_libdir_separator_CXX=
9682 fi
9683 esac
9684 shared_flag='-shared'
9685 else
9686 # not using gcc
9687 if test "$host_cpu" = ia64; then
9688 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9689 # chokes on -Wl,-G. The following line is correct:
9690 shared_flag='-G'
9691 else
9692 if test "$aix_use_runtimelinking" = yes; then
9693 shared_flag='${wl}-G'
9694 else
9695 shared_flag='${wl}-bM:SRE'
9696 fi
9697 fi
9698 fi
9699
9700 # It seems that -bexpall does not export symbols beginning with
9701 # underscore (_), so it is better to generate a list of symbols to export.
9702 always_export_symbols_CXX=yes
9703 if test "$aix_use_runtimelinking" = yes; then
9704 # Warning - without using the other runtime loading flags (-brtl),
9705 # -berok will link without error, but may produce a broken library.
9706 allow_undefined_flag_CXX='-berok'
9707 # Determine the default libpath from the value encoded in an empty executable.
9708 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009709/* confdefs.h. */
9710_ACEOF
9711cat confdefs.h >>conftest.$ac_ext
9712cat >>conftest.$ac_ext <<_ACEOF
9713/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009714
John Criswell47fdd832003-07-14 16:52:07 +00009715int
9716main ()
9717{
9718
9719 ;
9720 return 0;
9721}
9722_ACEOF
9723rm -f conftest.$ac_objext conftest$ac_exeext
9724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009725 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009726 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009727 grep -v '^ *+' conftest.er1 >conftest.err
9728 rm -f conftest.er1
9729 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009732 { ac_try='test -z "$ac_cxx_werror_flag"
9733 || test ! -s conftest.err'
9734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9735 (eval $ac_try) 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; } &&
9739 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9741 (eval $ac_try) 2>&5
9742 ac_status=$?
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9745
9746aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9747}'`
9748# Check for a 64-bit object if we didn't find anything.
9749if 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; }
9750}'`; fi
9751else
9752 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009753sed 's/^/| /' conftest.$ac_ext >&5
9754
John Criswell47fdd832003-07-14 16:52:07 +00009755fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009756rm -f conftest.err conftest.$ac_objext \
9757 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009758if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9759
9760 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9761
9762 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"
9763 else
9764 if test "$host_cpu" = ia64; then
9765 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9766 allow_undefined_flag_CXX="-z nodefs"
9767 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"
9768 else
9769 # Determine the default libpath from the value encoded in an empty executable.
9770 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009771/* confdefs.h. */
9772_ACEOF
9773cat confdefs.h >>conftest.$ac_ext
9774cat >>conftest.$ac_ext <<_ACEOF
9775/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009776
John Criswell47fdd832003-07-14 16:52:07 +00009777int
9778main ()
9779{
9780
9781 ;
9782 return 0;
9783}
9784_ACEOF
9785rm -f conftest.$ac_objext conftest$ac_exeext
9786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +00009787 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009788 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +00009789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +00009794 { ac_try='test -z "$ac_cxx_werror_flag"
9795 || test ! -s conftest.err'
9796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9797 (eval $ac_try) 2>&5
9798 ac_status=$?
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); }; } &&
9801 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9803 (eval $ac_try) 2>&5
9804 ac_status=$?
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; }; then
9807
9808aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9809}'`
9810# Check for a 64-bit object if we didn't find anything.
9811if 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; }
9812}'`; fi
9813else
9814 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009815sed 's/^/| /' conftest.$ac_ext >&5
9816
John Criswell47fdd832003-07-14 16:52:07 +00009817fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009818rm -f conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009820if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9821
9822 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9823 # Warning - without using the other run time loading flags,
9824 # -berok will link without error, but may produce a broken library.
9825 no_undefined_flag_CXX=' ${wl}-bernotok'
9826 allow_undefined_flag_CXX=' ${wl}-berok'
9827 # -bexpall does not export symbols beginning with underscore (_)
9828 always_export_symbols_CXX=yes
9829 # Exported symbols can be pulled into shared objects from archives
9830 whole_archive_flag_spec_CXX=' '
9831 archive_cmds_need_lc_CXX=yes
9832 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009833 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 +00009834 fi
9835 fi
9836 ;;
9837 chorus*)
9838 case $cc_basename in
9839 *)
9840 # FIXME: insert proper C++ library support
9841 ld_shlibs_CXX=no
9842 ;;
9843 esac
9844 ;;
9845
Reid Spencer2706f8c2004-09-19 23:53:36 +00009846
John Criswell47fdd832003-07-14 16:52:07 +00009847 cygwin* | mingw* | pw32*)
9848 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9849 # as there is no search path for DLLs.
9850 hardcode_libdir_flag_spec_CXX='-L$libdir'
9851 allow_undefined_flag_CXX=unsupported
9852 always_export_symbols_CXX=no
9853 enable_shared_with_static_runtimes_CXX=yes
9854
9855 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9856 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'
9857 # If the export-symbols file already is a .def file (1st line
9858 # is EXPORTS), use it as is; otherwise, prepend...
9859 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9860 cp $export_symbols $output_objdir/$soname.def;
9861 else
9862 echo EXPORTS > $output_objdir/$soname.def;
9863 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009864 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 +00009865 else
9866 ld_shlibs_CXX=no
9867 fi
9868 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009869 darwin* | rhapsody*)
9870 case "$host_os" in
9871 rhapsody* | darwin1.[012])
9872 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9873 ;;
9874 *) # Darwin 1.3 on
9875 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9876 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9877 else
9878 case ${MACOSX_DEPLOYMENT_TARGET} in
9879 10.[012])
9880 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9881 ;;
9882 10.*)
9883 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9884 ;;
9885 esac
9886 fi
9887 ;;
9888 esac
9889 archive_cmds_need_lc_CXX=no
9890 hardcode_direct_CXX=no
9891 hardcode_automatic_CXX=yes
9892 hardcode_shlibpath_var_CXX=unsupported
9893 whole_archive_flag_spec_CXX=''
9894 link_all_deplibs_CXX=yes
John Criswell47fdd832003-07-14 16:52:07 +00009895
Reid Spencer2706f8c2004-09-19 23:53:36 +00009896 if test "$GXX" = yes ; then
9897 lt_int_apple_cc_single_mod=no
9898 output_verbose_link_cmd='echo'
9899 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9900 lt_int_apple_cc_single_mod=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009901 fi
Brian Gaeke0a621332004-09-08 20:38:05 +00009902 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00009903 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 +00009904 else
Reid Spencer2706f8c2004-09-19 23:53:36 +00009905 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'
9906 fi
9907 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9908 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9909 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9910 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}'
9911 else
9912 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}'
9913 fi
9914 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}'
9915 else
9916 case "$cc_basename" in
9917 xlc*)
9918 output_verbose_link_cmd='echo'
9919 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'
9920 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9921 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9922 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}'
9923 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}'
9924 ;;
9925 *)
9926 ld_shlibs_CXX=no
9927 ;;
9928 esac
Brian Gaeke0a621332004-09-08 20:38:05 +00009929 fi
Reid Spencer2706f8c2004-09-19 23:53:36 +00009930 ;;
John Criswell47fdd832003-07-14 16:52:07 +00009931
9932 dgux*)
9933 case $cc_basename in
9934 ec++)
9935 # FIXME: insert proper C++ library support
9936 ld_shlibs_CXX=no
9937 ;;
9938 ghcx)
9939 # Green Hills C++ Compiler
9940 # FIXME: insert proper C++ library support
9941 ld_shlibs_CXX=no
9942 ;;
9943 *)
9944 # FIXME: insert proper C++ library support
9945 ld_shlibs_CXX=no
9946 ;;
9947 esac
9948 ;;
9949 freebsd12*)
9950 # C++ shared libraries reported to be fairly broken before switch to ELF
9951 ld_shlibs_CXX=no
9952 ;;
9953 freebsd-elf*)
9954 archive_cmds_need_lc_CXX=no
9955 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +00009956 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +00009957 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9958 # conventions
9959 ld_shlibs_CXX=yes
9960 ;;
9961 gnu*)
9962 ;;
9963 hpux9*)
9964 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9965 hardcode_libdir_separator_CXX=:
9966 export_dynamic_flag_spec_CXX='${wl}-E'
9967 hardcode_direct_CXX=yes
9968 hardcode_minus_L_CXX=yes # Not in the search PATH,
9969 # but as the default
9970 # location of the library.
9971
9972 case $cc_basename in
9973 CC)
9974 # FIXME: insert proper C++ library support
9975 ld_shlibs_CXX=no
9976 ;;
9977 aCC)
Reid Spencer2706f8c2004-09-19 23:53:36 +00009978 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 +00009979 # Commands to make compiler produce verbose output that lists
9980 # what "hidden" libraries, object files and flags are used when
9981 # linking a shared library.
9982 #
9983 # There doesn't appear to be a way to prevent this compiler from
9984 # explicitly linking system object files so we need to strip them
9985 # from the output so that they don't get included in the library
9986 # dependencies.
Reid Spencer2706f8c2004-09-19 23:53:36 +00009987 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 +00009988 ;;
9989 *)
9990 if test "$GXX" = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +00009991 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 +00009992 else
9993 # FIXME: insert proper C++ library support
9994 ld_shlibs_CXX=no
9995 fi
9996 ;;
9997 esac
9998 ;;
9999 hpux10*|hpux11*)
10000 if test $with_gnu_ld = no; then
10001 case "$host_cpu" in
10002 hppa*64*)
10003 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10004 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10005 hardcode_libdir_separator_CXX=:
10006 ;;
10007 ia64*)
10008 hardcode_libdir_flag_spec_CXX='-L$libdir'
10009 ;;
10010 *)
10011 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10012 hardcode_libdir_separator_CXX=:
10013 export_dynamic_flag_spec_CXX='${wl}-E'
10014 ;;
10015 esac
10016 fi
10017 case "$host_cpu" in
10018 hppa*64*)
10019 hardcode_direct_CXX=no
10020 hardcode_shlibpath_var_CXX=no
10021 ;;
10022 ia64*)
10023 hardcode_direct_CXX=no
10024 hardcode_shlibpath_var_CXX=no
10025 hardcode_minus_L_CXX=yes # Not in the search PATH,
10026 # but as the default
10027 # location of the library.
10028 ;;
10029 *)
10030 hardcode_direct_CXX=yes
10031 hardcode_minus_L_CXX=yes # Not in the search PATH,
10032 # but as the default
10033 # location of the library.
10034 ;;
10035 esac
10036
10037 case $cc_basename in
10038 CC)
10039 # FIXME: insert proper C++ library support
10040 ld_shlibs_CXX=no
10041 ;;
10042 aCC)
10043 case "$host_cpu" in
10044 hppa*64*|ia64*)
10045 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10046 ;;
10047 *)
10048 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10049 ;;
10050 esac
10051 # Commands to make compiler produce verbose output that lists
10052 # what "hidden" libraries, object files and flags are used when
10053 # linking a shared library.
10054 #
10055 # There doesn't appear to be a way to prevent this compiler from
10056 # explicitly linking system object files so we need to strip them
10057 # from the output so that they don't get included in the library
10058 # dependencies.
10059 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'
10060 ;;
10061 *)
10062 if test "$GXX" = yes; then
10063 if test $with_gnu_ld = no; then
10064 case "$host_cpu" in
10065 ia64*|hppa*64*)
10066 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10067 ;;
10068 *)
10069 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'
10070 ;;
10071 esac
10072 fi
10073 else
10074 # FIXME: insert proper C++ library support
10075 ld_shlibs_CXX=no
10076 fi
10077 ;;
10078 esac
10079 ;;
10080 irix5* | irix6*)
10081 case $cc_basename in
10082 CC)
10083 # SGI C++
10084 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'
10085
10086 # Archives containing C++ object files must be created using
10087 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10088 # necessary to make sure instantiated templates are included
10089 # in the archive.
10090 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10091 ;;
10092 *)
10093 if test "$GXX" = yes; then
10094 if test "$with_gnu_ld" = no; then
10095 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'
10096 else
10097 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'
10098 fi
10099 fi
10100 link_all_deplibs_CXX=yes
10101 ;;
10102 esac
10103 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10104 hardcode_libdir_separator_CXX=:
10105 ;;
10106 linux*)
10107 case $cc_basename in
10108 KCC)
10109 # Kuck and Associates, Inc. (KAI) C++ Compiler
10110
10111 # KCC will only create a shared library if the output file
10112 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10113 # to its proper name (with version) after linking.
10114 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'
10115 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'
10116 # Commands to make compiler produce verbose output that lists
10117 # what "hidden" libraries, object files and flags are used when
10118 # linking a shared library.
10119 #
10120 # There doesn't appear to be a way to prevent this compiler from
10121 # explicitly linking system object files so we need to strip them
10122 # from the output so that they don't get included in the library
10123 # dependencies.
10124 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'
10125
10126 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10127 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10128
10129 # Archives containing C++ object files must be created using
10130 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10131 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10132 ;;
10133 icpc)
10134 # Intel C++
10135 with_gnu_ld=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000010136 # version 8.0 and above of icpc choke on multiply defined symbols
10137 # if we add $predep_objects and $postdep_objects, however 7.1 and
10138 # earlier do not add the objects themselves.
10139 case `$CC -V 2>&1` in
10140 *"Version 7."*)
10141 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10142 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'
10143 ;;
10144 *) # Version 8.0 or newer
10145 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10146 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10147 ;;
10148 esac
John Criswell47fdd832003-07-14 16:52:07 +000010149 archive_cmds_need_lc_CXX=no
John Criswell47fdd832003-07-14 16:52:07 +000010150 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10151 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10152 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10153 ;;
10154 cxx)
10155 # Compaq C++
10156 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10157 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'
10158
10159 runpath_var=LD_RUN_PATH
10160 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10161 hardcode_libdir_separator_CXX=:
10162
10163 # Commands to make compiler produce verbose output that lists
10164 # what "hidden" libraries, object files and flags are used when
10165 # linking a shared library.
10166 #
10167 # There doesn't appear to be a way to prevent this compiler from
10168 # explicitly linking system object files so we need to strip them
10169 # from the output so that they don't get included in the library
10170 # dependencies.
10171 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'
10172 ;;
10173 esac
10174 ;;
10175 lynxos*)
10176 # FIXME: insert proper C++ library support
10177 ld_shlibs_CXX=no
10178 ;;
10179 m88k*)
10180 # FIXME: insert proper C++ library support
10181 ld_shlibs_CXX=no
10182 ;;
10183 mvs*)
10184 case $cc_basename in
10185 cxx)
10186 # FIXME: insert proper C++ library support
10187 ld_shlibs_CXX=no
10188 ;;
10189 *)
10190 # FIXME: insert proper C++ library support
10191 ld_shlibs_CXX=no
10192 ;;
10193 esac
10194 ;;
10195 netbsd*)
10196 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10197 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10198 wlarc=
10199 hardcode_libdir_flag_spec_CXX='-R$libdir'
10200 hardcode_direct_CXX=yes
10201 hardcode_shlibpath_var_CXX=no
10202 fi
10203 # Workaround some broken pre-1.5 toolchains
10204 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10205 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010206 openbsd2*)
10207 # C++ shared libraries are fairly broken
10208 ld_shlibs_CXX=no
10209 ;;
10210 openbsd*)
10211 hardcode_direct_CXX=yes
10212 hardcode_shlibpath_var_CXX=no
10213 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10214 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10215 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10216 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10217 export_dynamic_flag_spec_CXX='${wl}-E'
10218 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10219 fi
10220 output_verbose_link_cmd='echo'
10221 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010222 osf3*)
10223 case $cc_basename in
10224 KCC)
10225 # Kuck and Associates, Inc. (KAI) C++ Compiler
10226
10227 # KCC will only create a shared library if the output file
10228 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10229 # to its proper name (with version) after linking.
10230 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'
10231
10232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10233 hardcode_libdir_separator_CXX=:
10234
10235 # Archives containing C++ object files must be created using
10236 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10237 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10238
10239 ;;
10240 RCC)
10241 # Rational C++ 2.4.1
10242 # FIXME: insert proper C++ library support
10243 ld_shlibs_CXX=no
10244 ;;
10245 cxx)
10246 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10247 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'
10248
10249 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10250 hardcode_libdir_separator_CXX=:
10251
10252 # Commands to make compiler produce verbose output that lists
10253 # what "hidden" libraries, object files and flags are used when
10254 # linking a shared library.
10255 #
10256 # There doesn't appear to be a way to prevent this compiler from
10257 # explicitly linking system object files so we need to strip them
10258 # from the output so that they don't get included in the library
10259 # dependencies.
10260 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'
10261 ;;
10262 *)
10263 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10264 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10265 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'
10266
10267 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10268 hardcode_libdir_separator_CXX=:
10269
10270 # Commands to make compiler produce verbose output that lists
10271 # what "hidden" libraries, object files and flags are used when
10272 # linking a shared library.
10273 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10274
10275 else
10276 # FIXME: insert proper C++ library support
10277 ld_shlibs_CXX=no
10278 fi
10279 ;;
10280 esac
10281 ;;
10282 osf4* | osf5*)
10283 case $cc_basename in
10284 KCC)
10285 # Kuck and Associates, Inc. (KAI) C++ Compiler
10286
10287 # KCC will only create a shared library if the output file
10288 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10289 # to its proper name (with version) after linking.
10290 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'
10291
10292 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10293 hardcode_libdir_separator_CXX=:
10294
10295 # Archives containing C++ object files must be created using
10296 # the KAI C++ compiler.
10297 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10298 ;;
10299 RCC)
10300 # Rational C++ 2.4.1
10301 # FIXME: insert proper C++ library support
10302 ld_shlibs_CXX=no
10303 ;;
10304 cxx)
10305 allow_undefined_flag_CXX=' -expect_unresolved \*'
10306 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 +000010307 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 +000010308
10309 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10310 hardcode_libdir_separator_CXX=:
10311
10312 # Commands to make compiler produce verbose output that lists
10313 # what "hidden" libraries, object files and flags are used when
10314 # linking a shared library.
10315 #
10316 # There doesn't appear to be a way to prevent this compiler from
10317 # explicitly linking system object files so we need to strip them
10318 # from the output so that they don't get included in the library
10319 # dependencies.
10320 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'
10321 ;;
10322 *)
10323 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10324 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10325 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'
10326
10327 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10328 hardcode_libdir_separator_CXX=:
10329
10330 # Commands to make compiler produce verbose output that lists
10331 # what "hidden" libraries, object files and flags are used when
10332 # linking a shared library.
10333 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10334
10335 else
10336 # FIXME: insert proper C++ library support
10337 ld_shlibs_CXX=no
10338 fi
10339 ;;
10340 esac
10341 ;;
10342 psos*)
10343 # FIXME: insert proper C++ library support
10344 ld_shlibs_CXX=no
10345 ;;
10346 sco*)
10347 archive_cmds_need_lc_CXX=no
10348 case $cc_basename in
10349 CC)
10350 # FIXME: insert proper C++ library support
10351 ld_shlibs_CXX=no
10352 ;;
10353 *)
10354 # FIXME: insert proper C++ library support
10355 ld_shlibs_CXX=no
10356 ;;
10357 esac
10358 ;;
10359 sunos4*)
10360 case $cc_basename in
10361 CC)
10362 # Sun C++ 4.x
10363 # FIXME: insert proper C++ library support
10364 ld_shlibs_CXX=no
10365 ;;
10366 lcc)
10367 # Lucid
10368 # FIXME: insert proper C++ library support
10369 ld_shlibs_CXX=no
10370 ;;
10371 *)
10372 # FIXME: insert proper C++ library support
10373 ld_shlibs_CXX=no
10374 ;;
10375 esac
10376 ;;
10377 solaris*)
10378 case $cc_basename in
10379 CC)
10380 # Sun C++ 4.2, 5.x and Centerline C++
10381 no_undefined_flag_CXX=' -zdefs'
10382 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 +000010383 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 +000010384
10385 hardcode_libdir_flag_spec_CXX='-R$libdir'
10386 hardcode_shlibpath_var_CXX=no
10387 case $host_os in
10388 solaris2.0-5 | solaris2.0-5.*) ;;
10389 *)
10390 # The C++ compiler is used as linker so we must use $wl
10391 # flag to pass the commands to the underlying system
10392 # linker.
10393 # Supported since Solaris 2.6 (maybe 2.5.1?)
10394 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10395 ;;
10396 esac
10397 link_all_deplibs_CXX=yes
10398
10399 # Commands to make compiler produce verbose output that lists
10400 # what "hidden" libraries, object files and flags are used when
10401 # linking a shared library.
10402 #
10403 # There doesn't appear to be a way to prevent this compiler from
10404 # explicitly linking system object files so we need to strip them
10405 # from the output so that they don't get included in the library
10406 # dependencies.
10407 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'
10408
10409 # Archives containing C++ object files must be created using
10410 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10411 # necessary to make sure instantiated templates are included
10412 # in the archive.
10413 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10414 ;;
10415 gcx)
10416 # Green Hills C++ Compiler
10417 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10418
10419 # The C++ compiler must be used to create the archive.
10420 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10421 ;;
10422 *)
10423 # GNU C++ compiler with Solaris linker
10424 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10425 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10426 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000010427 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 +000010428 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 +000010429 # Commands to make compiler produce verbose output that lists
10430 # what "hidden" libraries, object files and flags are used when
10431 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000010432 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000010433 else
10434 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10435 # platform.
10436 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 +000010437 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp;cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp;$echo "local: *; };" >> $lib.exp;
10438 $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 +000010439
10440 # Commands to make compiler produce verbose output that lists
10441 # what "hidden" libraries, object files and flags are used when
10442 # linking a shared library.
10443 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10444 fi
10445
10446 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10447 fi
10448 ;;
10449 esac
10450 ;;
10451 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10452 archive_cmds_need_lc_CXX=no
10453 ;;
10454 tandem*)
10455 case $cc_basename in
10456 NCC)
10457 # NonStop-UX NCC 3.20
10458 # FIXME: insert proper C++ library support
10459 ld_shlibs_CXX=no
10460 ;;
10461 *)
10462 # FIXME: insert proper C++ library support
10463 ld_shlibs_CXX=no
10464 ;;
10465 esac
10466 ;;
10467 vxworks*)
10468 # FIXME: insert proper C++ library support
10469 ld_shlibs_CXX=no
10470 ;;
10471 *)
10472 # FIXME: insert proper C++ library support
10473 ld_shlibs_CXX=no
10474 ;;
10475esac
10476echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10477echo "${ECHO_T}$ld_shlibs_CXX" >&6
10478test "$ld_shlibs_CXX" = no && can_build_shared=no
10479
10480GCC_CXX="$GXX"
10481LD_CXX="$LD"
10482
John Criswell47fdd832003-07-14 16:52:07 +000010483
10484cat > conftest.$ac_ext <<EOF
10485class Foo
10486{
10487public:
10488 Foo (void) { a = 0; }
10489private:
10490 int a;
10491};
10492EOF
10493
10494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10495 (eval $ac_compile) 2>&5
10496 ac_status=$?
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); }; then
10499 # Parse the compiler output and extract the necessary
10500 # objects, libraries and library flags.
10501
10502 # Sentinel used to keep track of whether or not we are before
10503 # the conftest object file.
10504 pre_test_object_deps_done=no
10505
10506 # The `*' in the case matches for architectures that use `case' in
10507 # $output_verbose_cmd can trigger glob expansion during the loop
10508 # eval without this substitution.
10509 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10510
10511 for p in `eval $output_verbose_link_cmd`; do
10512 case $p in
10513
10514 -L* | -R* | -l*)
10515 # Some compilers place space between "-{L,R}" and the path.
10516 # Remove the space.
10517 if test $p = "-L" \
10518 || test $p = "-R"; then
10519 prev=$p
10520 continue
10521 else
10522 prev=
10523 fi
10524
10525 if test "$pre_test_object_deps_done" = no; then
10526 case $p in
10527 -L* | -R*)
10528 # Internal compiler library paths should come after those
10529 # provided the user. The postdeps already come after the
10530 # user supplied libs so there is no need to process them.
10531 if test -z "$compiler_lib_search_path_CXX"; then
10532 compiler_lib_search_path_CXX="${prev}${p}"
10533 else
10534 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10535 fi
10536 ;;
10537 # The "-l" case would never come before the object being
10538 # linked, so don't bother handling this case.
10539 esac
10540 else
10541 if test -z "$postdeps_CXX"; then
10542 postdeps_CXX="${prev}${p}"
10543 else
10544 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10545 fi
10546 fi
10547 ;;
10548
10549 *.$objext)
10550 # This assumes that the test object file only shows up
10551 # once in the compiler output.
10552 if test "$p" = "conftest.$objext"; then
10553 pre_test_object_deps_done=yes
10554 continue
10555 fi
10556
10557 if test "$pre_test_object_deps_done" = no; then
10558 if test -z "$predep_objects_CXX"; then
10559 predep_objects_CXX="$p"
10560 else
10561 predep_objects_CXX="$predep_objects_CXX $p"
10562 fi
10563 else
10564 if test -z "$postdep_objects_CXX"; then
10565 postdep_objects_CXX="$p"
10566 else
10567 postdep_objects_CXX="$postdep_objects_CXX $p"
10568 fi
10569 fi
10570 ;;
10571
10572 *) ;; # Ignore the rest.
10573
10574 esac
10575 done
10576
10577 # Clean up.
10578 rm -f a.out a.exe
10579else
10580 echo "libtool.m4: error: problem compiling CXX test program"
10581fi
10582
10583$rm -f confest.$objext
10584
10585case " $postdeps_CXX " in
10586*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10587esac
10588
10589lt_prog_compiler_wl_CXX=
10590lt_prog_compiler_pic_CXX=
10591lt_prog_compiler_static_CXX=
10592
10593echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10594echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10595
10596 # C++ specific cases for pic, static, wl, etc.
10597 if test "$GXX" = yes; then
10598 lt_prog_compiler_wl_CXX='-Wl,'
10599 lt_prog_compiler_static_CXX='-static'
10600
10601 case $host_os in
10602 aix*)
10603 # All AIX code is PIC.
10604 if test "$host_cpu" = ia64; then
10605 # AIX 5 now supports IA64 processor
10606 lt_prog_compiler_static_CXX='-Bstatic'
10607 fi
10608 ;;
10609 amigaos*)
10610 # FIXME: we need at least 68020 code to build shared libraries, but
10611 # adding the `-m68020' flag to GCC prevents building anything better,
10612 # like `-m68040'.
10613 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10614 ;;
10615 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10616 # PIC is the default for these OSes.
10617 ;;
10618 mingw* | os2* | pw32*)
10619 # This hack is so that the source file can tell whether it is being
10620 # built for inclusion in a dll (and should export symbols for example).
10621 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10622 ;;
10623 darwin* | rhapsody*)
10624 # PIC is the default on this platform
10625 # Common symbols not allowed in MH_DYLIB files
10626 lt_prog_compiler_pic_CXX='-fno-common'
10627 ;;
10628 *djgpp*)
10629 # DJGPP does not support shared libraries at all
10630 lt_prog_compiler_pic_CXX=
10631 ;;
10632 sysv4*MP*)
10633 if test -d /usr/nec; then
10634 lt_prog_compiler_pic_CXX=-Kconform_pic
10635 fi
10636 ;;
10637 hpux*)
10638 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10639 # not for PA HP-UX.
10640 case "$host_cpu" in
10641 hppa*64*|ia64*)
10642 ;;
10643 *)
10644 lt_prog_compiler_pic_CXX='-fPIC'
10645 ;;
10646 esac
10647 ;;
10648 *)
10649 lt_prog_compiler_pic_CXX='-fPIC'
10650 ;;
10651 esac
10652 else
10653 case $host_os in
10654 aix4* | aix5*)
10655 # All AIX code is PIC.
10656 if test "$host_cpu" = ia64; then
10657 # AIX 5 now supports IA64 processor
10658 lt_prog_compiler_static_CXX='-Bstatic'
10659 else
10660 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10661 fi
10662 ;;
10663 chorus*)
10664 case $cc_basename in
10665 cxch68)
10666 # Green Hills C++ Compiler
10667 # _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"
10668 ;;
10669 esac
10670 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010671 darwin*)
10672 # PIC is the default on this platform
10673 # Common symbols not allowed in MH_DYLIB files
10674 case "$cc_basename" in
10675 xlc*)
10676 lt_prog_compiler_pic_CXX='-qnocommon'
10677 lt_prog_compiler_wl_CXX='-Wl,'
10678 ;;
10679 esac
10680 ;;
John Criswell47fdd832003-07-14 16:52:07 +000010681 dgux*)
10682 case $cc_basename in
10683 ec++)
10684 lt_prog_compiler_pic_CXX='-KPIC'
10685 ;;
10686 ghcx)
10687 # Green Hills C++ Compiler
10688 lt_prog_compiler_pic_CXX='-pic'
10689 ;;
10690 *)
10691 ;;
10692 esac
10693 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000010694 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000010695 # FreeBSD uses GNU C++
10696 ;;
10697 hpux9* | hpux10* | hpux11*)
10698 case $cc_basename in
10699 CC)
10700 lt_prog_compiler_wl_CXX='-Wl,'
10701 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10702 if test "$host_cpu" != ia64; then
10703 lt_prog_compiler_pic_CXX='+Z'
10704 fi
10705 ;;
10706 aCC)
10707 lt_prog_compiler_wl_CXX='-Wl,'
10708 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10709 case "$host_cpu" in
10710 hppa*64*|ia64*)
10711 # +Z the default
10712 ;;
10713 *)
10714 lt_prog_compiler_pic_CXX='+Z'
10715 ;;
10716 esac
10717 ;;
10718 *)
10719 ;;
10720 esac
10721 ;;
10722 irix5* | irix6* | nonstopux*)
10723 case $cc_basename in
10724 CC)
10725 lt_prog_compiler_wl_CXX='-Wl,'
10726 lt_prog_compiler_static_CXX='-non_shared'
10727 # CC pic flag -KPIC is the default.
10728 ;;
10729 *)
10730 ;;
10731 esac
10732 ;;
10733 linux*)
10734 case $cc_basename in
10735 KCC)
10736 # KAI C++ Compiler
10737 lt_prog_compiler_wl_CXX='--backend -Wl,'
10738 lt_prog_compiler_pic_CXX='-fPIC'
10739 ;;
10740 icpc)
10741 # Intel C++
10742 lt_prog_compiler_wl_CXX='-Wl,'
10743 lt_prog_compiler_pic_CXX='-KPIC'
10744 lt_prog_compiler_static_CXX='-static'
10745 ;;
10746 cxx)
10747 # Compaq C++
10748 # Make sure the PIC flag is empty. It appears that all Alpha
10749 # Linux and Compaq Tru64 Unix objects are PIC.
10750 lt_prog_compiler_pic_CXX=
10751 lt_prog_compiler_static_CXX='-non_shared'
10752 ;;
10753 *)
10754 ;;
10755 esac
10756 ;;
10757 lynxos*)
10758 ;;
10759 m88k*)
10760 ;;
10761 mvs*)
10762 case $cc_basename in
10763 cxx)
10764 lt_prog_compiler_pic_CXX='-W c,exportall'
10765 ;;
10766 *)
10767 ;;
10768 esac
10769 ;;
10770 netbsd*)
10771 ;;
10772 osf3* | osf4* | osf5*)
10773 case $cc_basename in
10774 KCC)
10775 lt_prog_compiler_wl_CXX='--backend -Wl,'
10776 ;;
10777 RCC)
10778 # Rational C++ 2.4.1
10779 lt_prog_compiler_pic_CXX='-pic'
10780 ;;
10781 cxx)
10782 # Digital/Compaq C++
10783 lt_prog_compiler_wl_CXX='-Wl,'
10784 # Make sure the PIC flag is empty. It appears that all Alpha
10785 # Linux and Compaq Tru64 Unix objects are PIC.
10786 lt_prog_compiler_pic_CXX=
10787 lt_prog_compiler_static_CXX='-non_shared'
10788 ;;
10789 *)
10790 ;;
10791 esac
10792 ;;
10793 psos*)
10794 ;;
10795 sco*)
10796 case $cc_basename in
10797 CC)
10798 lt_prog_compiler_pic_CXX='-fPIC'
10799 ;;
10800 *)
10801 ;;
10802 esac
10803 ;;
10804 solaris*)
10805 case $cc_basename in
10806 CC)
10807 # Sun C++ 4.2, 5.x and Centerline C++
10808 lt_prog_compiler_pic_CXX='-KPIC'
10809 lt_prog_compiler_static_CXX='-Bstatic'
10810 lt_prog_compiler_wl_CXX='-Qoption ld '
10811 ;;
10812 gcx)
10813 # Green Hills C++ Compiler
10814 lt_prog_compiler_pic_CXX='-PIC'
10815 ;;
10816 *)
10817 ;;
10818 esac
10819 ;;
10820 sunos4*)
10821 case $cc_basename in
10822 CC)
10823 # Sun C++ 4.x
10824 lt_prog_compiler_pic_CXX='-pic'
10825 lt_prog_compiler_static_CXX='-Bstatic'
10826 ;;
10827 lcc)
10828 # Lucid
10829 lt_prog_compiler_pic_CXX='-pic'
10830 ;;
10831 *)
10832 ;;
10833 esac
10834 ;;
10835 tandem*)
10836 case $cc_basename in
10837 NCC)
10838 # NonStop-UX NCC 3.20
10839 lt_prog_compiler_pic_CXX='-KPIC'
10840 ;;
10841 *)
10842 ;;
10843 esac
10844 ;;
10845 unixware*)
10846 ;;
10847 vxworks*)
10848 ;;
10849 *)
10850 lt_prog_compiler_can_build_shared_CXX=no
10851 ;;
10852 esac
10853 fi
10854
10855echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10856echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10857
10858#
10859# Check to make sure the PIC flag actually works.
10860#
10861if test -n "$lt_prog_compiler_pic_CXX"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000010862
10863echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010864echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10865if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10866 echo $ECHO_N "(cached) $ECHO_C" >&6
10867else
10868 lt_prog_compiler_pic_works_CXX=no
10869 ac_outfile=conftest.$ac_objext
10870 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10871 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10872 # Insert the option either (1) after the last *FLAGS variable, or
10873 # (2) before a word containing "conftest.", or (3) at the end.
10874 # Note that $ac_compile itself does not contain backslashes and begins
10875 # with a dollar sign (not a hyphen), so the echo should work correctly.
10876 # The option is referenced via a variable to avoid confusing sed.
10877 lt_compile=`echo "$ac_compile" | $SED \
10878 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10879 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10880 -e 's:$: $lt_compiler_flag:'`
John Criswell9f011862004-09-24 18:28:00 +000010881 (eval echo "\"\$as_me:10881: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010882 (eval "$lt_compile" 2>conftest.err)
10883 ac_status=$?
10884 cat conftest.err >&5
John Criswell9f011862004-09-24 18:28:00 +000010885 echo "$as_me:10885: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010886 if (exit $ac_status) && test -s "$ac_outfile"; then
10887 # The compiler can only warn and ignore the option if not recognized
10888 # So say no if there are warnings
10889 if test ! -s conftest.err; then
10890 lt_prog_compiler_pic_works_CXX=yes
10891 fi
10892 fi
10893 $rm conftest*
10894
10895fi
10896echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10897echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10898
10899if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10900 case $lt_prog_compiler_pic_CXX in
10901 "" | " "*) ;;
10902 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10903 esac
10904else
10905 lt_prog_compiler_pic_CXX=
10906 lt_prog_compiler_can_build_shared_CXX=no
10907fi
10908
10909fi
10910case "$host_os" in
10911 # For platforms which do not support PIC, -DPIC is meaningless:
10912 *djgpp*)
10913 lt_prog_compiler_pic_CXX=
10914 ;;
10915 *)
10916 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10917 ;;
10918esac
10919
10920echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10921echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10922if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924else
10925 lt_cv_prog_compiler_c_o_CXX=no
10926 $rm -r conftest 2>/dev/null
10927 mkdir conftest
10928 cd conftest
10929 mkdir out
10930 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10931
John Criswell47fdd832003-07-14 16:52:07 +000010932 lt_compiler_flag="-o out/conftest2.$ac_objext"
10933 # Insert the option either (1) after the last *FLAGS variable, or
10934 # (2) before a word containing "conftest.", or (3) at the end.
10935 # Note that $ac_compile itself does not contain backslashes and begins
10936 # with a dollar sign (not a hyphen), so the echo should work correctly.
10937 lt_compile=`echo "$ac_compile" | $SED \
10938 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10939 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10940 -e 's:$: $lt_compiler_flag:'`
John Criswell9f011862004-09-24 18:28:00 +000010941 (eval echo "\"\$as_me:10941: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010942 (eval "$lt_compile" 2>out/conftest.err)
10943 ac_status=$?
10944 cat out/conftest.err >&5
John Criswell9f011862004-09-24 18:28:00 +000010945 echo "$as_me:10945: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010946 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10947 then
10948 # The compiler can only warn and ignore the option if not recognized
10949 # So say no if there are warnings
10950 if test ! -s out/conftest.err; then
10951 lt_cv_prog_compiler_c_o_CXX=yes
10952 fi
10953 fi
10954 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000010955 $rm conftest*
10956 # SGI C++ compiler will create directory out/ii_files/ for
10957 # template instantiation
10958 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10959 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000010960 cd ..
10961 rmdir conftest
10962 $rm conftest*
10963
10964fi
10965echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10966echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10967
10968
10969hard_links="nottested"
10970if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10971 # do not overwrite the value of need_locks provided by the user
10972 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10973echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10974 hard_links=yes
10975 $rm conftest*
10976 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10977 touch conftest.a
10978 ln conftest.a conftest.b 2>&5 || hard_links=no
10979 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10980 echo "$as_me:$LINENO: result: $hard_links" >&5
10981echo "${ECHO_T}$hard_links" >&6
10982 if test "$hard_links" = no; then
10983 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10984echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10985 need_locks=warn
10986 fi
10987else
10988 need_locks=no
10989fi
10990
10991echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10992echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10993
10994 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10995 case $host_os in
10996 aix4* | aix5*)
10997 # If we're using GNU nm, then we don't want the "-C" option.
10998 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10999 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11000 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'
11001 else
11002 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'
11003 fi
11004 ;;
11005 pw32*)
11006 export_symbols_cmds_CXX="$ltdll_cmds"
11007 ;;
11008 cygwin* | mingw*)
11009 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11010 ;;
11011 *)
11012 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11013 ;;
11014 esac
11015
11016echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11017echo "${ECHO_T}$ld_shlibs_CXX" >&6
11018test "$ld_shlibs_CXX" = no && can_build_shared=no
11019
11020variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11021if test "$GCC" = yes; then
11022 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11023fi
11024
11025#
11026# Do we need to explicitly link libc?
11027#
11028case "x$archive_cmds_need_lc_CXX" in
11029x|xyes)
11030 # Assume -lc should be added
11031 archive_cmds_need_lc_CXX=yes
11032
11033 if test "$enable_shared" = yes && test "$GCC" = yes; then
11034 case $archive_cmds_CXX in
Reid Spencer2706f8c2004-09-19 23:53:36 +000011035 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000011036 # FIXME: we may have to deal with multi-command sequences.
11037 ;;
11038 '$CC '*)
11039 # Test whether the compiler implicitly links with -lc since on some
11040 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11041 # to ld, don't add -lc before -lgcc.
11042 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11043echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11044 $rm conftest*
11045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11046
11047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11048 (eval $ac_compile) 2>&5
11049 ac_status=$?
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } 2>conftest.err; then
11052 soname=conftest
11053 lib=conftest
11054 libobjs=conftest.$ac_objext
11055 deplibs=
11056 wl=$lt_prog_compiler_wl_CXX
11057 compiler_flags=-v
11058 linker_flags=-v
11059 verstring=
11060 output_objdir=.
11061 libname=conftest
11062 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11063 allow_undefined_flag_CXX=
11064 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11065 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11066 ac_status=$?
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); }
11069 then
11070 archive_cmds_need_lc_CXX=no
11071 else
11072 archive_cmds_need_lc_CXX=yes
11073 fi
11074 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11075 else
11076 cat conftest.err 1>&5
11077 fi
11078 $rm conftest*
11079 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11080echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11081 ;;
11082 esac
11083 fi
11084 ;;
11085esac
11086
John Criswell47fdd832003-07-14 16:52:07 +000011087echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11088echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11089library_names_spec=
11090libname_spec='lib$name'
11091soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000011092shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000011093postinstall_cmds=
11094postuninstall_cmds=
11095finish_cmds=
11096finish_eval=
11097shlibpath_var=
11098shlibpath_overrides_runpath=unknown
11099version_type=none
11100dynamic_linker="$host_os ld.so"
11101sys_lib_dlsearch_path_spec="/lib /usr/lib"
11102if test "$GCC" = yes; then
11103 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11104 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11105 # if the path contains ";" then we assume it to be the separator
11106 # otherwise default to the standard path separator (i.e. ":") - it is
11107 # assumed that no part of a normal pathname contains ";" but that should
11108 # okay in the real world where ";" in dirpaths is itself problematic.
11109 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11110 else
11111 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11112 fi
11113else
11114 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11115fi
11116need_lib_prefix=unknown
11117hardcode_into_libs=no
11118
11119# when you set need_version to no, make sure it does not cause -set_version
11120# flags to be left without arguments
11121need_version=unknown
11122
11123case $host_os in
11124aix3*)
11125 version_type=linux
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11127 shlibpath_var=LIBPATH
11128
11129 # AIX 3 has no versioning support, so we append a major version to the name.
11130 soname_spec='${libname}${release}${shared_ext}$major'
11131 ;;
11132
11133aix4* | aix5*)
11134 version_type=linux
11135 need_lib_prefix=no
11136 need_version=no
11137 hardcode_into_libs=yes
11138 if test "$host_cpu" = ia64; then
11139 # AIX 5 supports IA64
11140 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11141 shlibpath_var=LD_LIBRARY_PATH
11142 else
11143 # With GCC up to 2.95.x, collect2 would create an import file
11144 # for dependence libraries. The import file would start with
11145 # the line `#! .'. This would cause the generated library to
11146 # depend on `.', always an invalid library. This was fixed in
11147 # development snapshots of GCC prior to 3.0.
11148 case $host_os in
11149 aix4 | aix4.[01] | aix4.[01].*)
11150 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11151 echo ' yes '
11152 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11153 :
11154 else
11155 can_build_shared=no
11156 fi
11157 ;;
11158 esac
11159 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11160 # soname into executable. Probably we can add versioning support to
11161 # collect2, so additional links can be useful in future.
11162 if test "$aix_use_runtimelinking" = yes; then
11163 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11164 # instead of lib<name>.a to let people know that these are not
11165 # typical AIX shared libraries.
11166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167 else
11168 # We preserve .a as extension for shared libraries through AIX4.2
11169 # and later when we are not doing run time linking.
11170 library_names_spec='${libname}${release}.a $libname.a'
11171 soname_spec='${libname}${release}${shared_ext}$major'
11172 fi
11173 shlibpath_var=LIBPATH
11174 fi
11175 ;;
11176
11177amigaos*)
11178 library_names_spec='$libname.ixlibrary $libname.a'
11179 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011180 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 +000011181 ;;
11182
11183beos*)
11184 library_names_spec='${libname}${shared_ext}'
11185 dynamic_linker="$host_os ld.so"
11186 shlibpath_var=LIBRARY_PATH
11187 ;;
11188
Reid Spencer2706f8c2004-09-19 23:53:36 +000011189bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000011190 version_type=linux
11191 need_version=no
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11193 soname_spec='${libname}${release}${shared_ext}$major'
11194 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11195 shlibpath_var=LD_LIBRARY_PATH
11196 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11197 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11198 # the default ld.so.conf also contains /usr/contrib/lib and
11199 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11200 # libtool to hard-code these into programs
11201 ;;
11202
11203cygwin* | mingw* | pw32*)
11204 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000011205 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000011206 need_version=no
11207 need_lib_prefix=no
11208
11209 case $GCC,$host_os in
11210 yes,cygwin* | yes,mingw* | yes,pw32*)
11211 library_names_spec='$libname.dll.a'
11212 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer2706f8c2004-09-19 23:53:36 +000011213 postinstall_cmds='base_file=`basename \${file}`;
11214 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
11215 dldir=$destdir/`dirname \$dlpath`;
11216 test -d \$dldir || mkdir -p \$dldir;
John Criswell47fdd832003-07-14 16:52:07 +000011217 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer2706f8c2004-09-19 23:53:36 +000011218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
11219 dlpath=$dir/\$dldll;
John Criswell47fdd832003-07-14 16:52:07 +000011220 $rm \$dlpath'
11221 shlibpath_overrides_runpath=yes
11222
11223 case $host_os in
11224 cygwin*)
11225 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11226 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 +000011227 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000011228 ;;
11229 mingw*)
11230 # MinGW DLLs use traditional 'lib' prefix
11231 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11232 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11233 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11234 # It is most probably a Windows format PATH printed by
11235 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11236 # path with ; separators, and with drive letters. We can handle the
11237 # drive letters (cygwin fileutils understands them), so leave them,
11238 # especially as we might pass files found there to a mingw objdump,
11239 # which wouldn't understand a cygwinified path. Ahh.
11240 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11241 else
11242 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11243 fi
11244 ;;
11245 pw32*)
11246 # pw32 DLLs use 'pw' prefix rather than 'lib'
11247 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11248 ;;
11249 esac
11250 ;;
11251
11252 *)
11253 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11254 ;;
11255 esac
11256 dynamic_linker='Win32 ld.exe'
11257 # FIXME: first we should search . and the directory the executable is in
11258 shlibpath_var=PATH
11259 ;;
11260
11261darwin* | rhapsody*)
11262 dynamic_linker="$host_os dyld"
11263 version_type=darwin
11264 need_lib_prefix=no
11265 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000011266 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000011267 soname_spec='${libname}${release}${major}$shared_ext'
11268 shlibpath_overrides_runpath=yes
11269 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000011270 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000011271 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000011272 if test "$GCC" = yes; then
11273 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"`
11274 else
11275 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000011276 fi
11277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11278 ;;
11279
11280dgux*)
11281 version_type=linux
11282 need_lib_prefix=no
11283 need_version=no
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11285 soname_spec='${libname}${release}${shared_ext}$major'
11286 shlibpath_var=LD_LIBRARY_PATH
11287 ;;
11288
11289freebsd1*)
11290 dynamic_linker=no
11291 ;;
11292
Reid Spencer2706f8c2004-09-19 23:53:36 +000011293kfreebsd*-gnu)
11294 version_type=linux
11295 need_lib_prefix=no
11296 need_version=no
11297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11298 soname_spec='${libname}${release}${shared_ext}$major'
11299 shlibpath_var=LD_LIBRARY_PATH
11300 shlibpath_overrides_runpath=no
11301 hardcode_into_libs=yes
11302 dynamic_linker='GNU ld.so'
11303 ;;
11304
John Criswell47fdd832003-07-14 16:52:07 +000011305freebsd*)
11306 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11307 version_type=freebsd-$objformat
11308 case $version_type in
11309 freebsd-elf*)
11310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11311 need_version=no
11312 need_lib_prefix=no
11313 ;;
11314 freebsd-*)
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11316 need_version=yes
11317 ;;
11318 esac
11319 shlibpath_var=LD_LIBRARY_PATH
11320 case $host_os in
11321 freebsd2*)
11322 shlibpath_overrides_runpath=yes
11323 ;;
11324 freebsd3.01* | freebsdelf3.01*)
11325 shlibpath_overrides_runpath=yes
11326 hardcode_into_libs=yes
11327 ;;
11328 *) # from 3.2 on
11329 shlibpath_overrides_runpath=no
11330 hardcode_into_libs=yes
11331 ;;
11332 esac
11333 ;;
11334
11335gnu*)
11336 version_type=linux
11337 need_lib_prefix=no
11338 need_version=no
11339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11340 soname_spec='${libname}${release}${shared_ext}$major'
11341 shlibpath_var=LD_LIBRARY_PATH
11342 hardcode_into_libs=yes
11343 ;;
11344
11345hpux9* | hpux10* | hpux11*)
11346 # Give a soname corresponding to the major version so that dld.sl refuses to
11347 # link against other versions.
11348 version_type=sunos
11349 need_lib_prefix=no
11350 need_version=no
11351 case "$host_cpu" in
11352 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011353 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000011354 hardcode_into_libs=yes
11355 dynamic_linker="$host_os dld.so"
11356 shlibpath_var=LD_LIBRARY_PATH
11357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359 soname_spec='${libname}${release}${shared_ext}$major'
11360 if test "X$HPUX_IA64_MODE" = X32; then
11361 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11362 else
11363 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11364 fi
11365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11366 ;;
11367 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011368 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000011369 hardcode_into_libs=yes
11370 dynamic_linker="$host_os dld.sl"
11371 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11372 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11374 soname_spec='${libname}${release}${shared_ext}$major'
11375 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11376 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11377 ;;
11378 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000011379 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000011380 dynamic_linker="$host_os dld.sl"
11381 shlibpath_var=SHLIB_PATH
11382 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11384 soname_spec='${libname}${release}${shared_ext}$major'
11385 ;;
11386 esac
11387 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11388 postinstall_cmds='chmod 555 $lib'
11389 ;;
11390
11391irix5* | irix6* | nonstopux*)
11392 case $host_os in
11393 nonstopux*) version_type=nonstopux ;;
11394 *)
11395 if test "$lt_cv_prog_gnu_ld" = yes; then
11396 version_type=linux
11397 else
11398 version_type=irix
11399 fi ;;
11400 esac
11401 need_lib_prefix=no
11402 need_version=no
11403 soname_spec='${libname}${release}${shared_ext}$major'
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11405 case $host_os in
11406 irix5* | nonstopux*)
11407 libsuff= shlibsuff=
11408 ;;
11409 *)
11410 case $LD in # libtool.m4 will add one of these switches to LD
11411 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11412 libsuff= shlibsuff= libmagic=32-bit;;
11413 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11414 libsuff=32 shlibsuff=N32 libmagic=N32;;
11415 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11416 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11417 *) libsuff= shlibsuff= libmagic=never-match;;
11418 esac
11419 ;;
11420 esac
11421 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11422 shlibpath_overrides_runpath=no
11423 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11424 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11425 hardcode_into_libs=yes
11426 ;;
11427
11428# No shared lib support for Linux oldld, aout, or coff.
11429linux*oldld* | linux*aout* | linux*coff*)
11430 dynamic_linker=no
11431 ;;
11432
11433# This must be Linux ELF.
11434linux*)
11435 version_type=linux
11436 need_lib_prefix=no
11437 need_version=no
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439 soname_spec='${libname}${release}${shared_ext}$major'
11440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11441 shlibpath_var=LD_LIBRARY_PATH
11442 shlibpath_overrides_runpath=no
11443 # This implies no fast_install, which is unacceptable.
11444 # Some rework will be needed to allow for fast_install
11445 # before this can be enabled.
11446 hardcode_into_libs=yes
11447
Reid Spencer2706f8c2004-09-19 23:53:36 +000011448 # Append ld.so.conf contents to the search path
11449 if test -f /etc/ld.so.conf; then
11450 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11451 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11452 fi
11453
John Criswell47fdd832003-07-14 16:52:07 +000011454 # We used to test for /lib/ld.so.1 and disable shared libraries on
11455 # powerpc, because MkLinux only supported shared libraries with the
11456 # GNU dynamic linker. Since this was broken with cross compilers,
11457 # most powerpc-linux boxes support dynamic linking these days and
11458 # people can always --disable-shared, the test was removed, and we
11459 # assume the GNU/Linux dynamic linker is in use.
11460 dynamic_linker='GNU/Linux ld.so'
11461 ;;
11462
Reid Spencer2706f8c2004-09-19 23:53:36 +000011463knetbsd*-gnu)
11464 version_type=linux
11465 need_lib_prefix=no
11466 need_version=no
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11468 soname_spec='${libname}${release}${shared_ext}$major'
11469 shlibpath_var=LD_LIBRARY_PATH
11470 shlibpath_overrides_runpath=no
11471 hardcode_into_libs=yes
11472 dynamic_linker='GNU ld.so'
11473 ;;
11474
John Criswell47fdd832003-07-14 16:52:07 +000011475netbsd*)
11476 version_type=sunos
11477 need_lib_prefix=no
11478 need_version=no
11479 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11482 dynamic_linker='NetBSD (a.out) ld.so'
11483 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000011484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000011485 soname_spec='${libname}${release}${shared_ext}$major'
11486 dynamic_linker='NetBSD ld.elf_so'
11487 fi
11488 shlibpath_var=LD_LIBRARY_PATH
11489 shlibpath_overrides_runpath=yes
11490 hardcode_into_libs=yes
11491 ;;
11492
11493newsos6)
11494 version_type=linux
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11496 shlibpath_var=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath=yes
11498 ;;
11499
Reid Spencer2706f8c2004-09-19 23:53:36 +000011500nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000011501 version_type=linux
11502 need_lib_prefix=no
11503 need_version=no
11504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 shlibpath_overrides_runpath=yes
11508 ;;
11509
11510openbsd*)
11511 version_type=sunos
11512 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000011513 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000011514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11515 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11518 case $host_os in
11519 openbsd2.[89] | openbsd2.[89].*)
11520 shlibpath_overrides_runpath=no
11521 ;;
11522 *)
11523 shlibpath_overrides_runpath=yes
11524 ;;
11525 esac
11526 else
11527 shlibpath_overrides_runpath=yes
11528 fi
11529 ;;
11530
11531os2*)
11532 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000011533 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000011534 need_lib_prefix=no
11535 library_names_spec='$libname${shared_ext} $libname.a'
11536 dynamic_linker='OS/2 ld.exe'
11537 shlibpath_var=LIBPATH
11538 ;;
11539
11540osf3* | osf4* | osf5*)
11541 version_type=osf
11542 need_lib_prefix=no
11543 need_version=no
11544 soname_spec='${libname}${release}${shared_ext}$major'
11545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11548 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11549 ;;
11550
11551sco3.2v5*)
11552 version_type=osf
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11555 shlibpath_var=LD_LIBRARY_PATH
11556 ;;
11557
11558solaris*)
11559 version_type=linux
11560 need_lib_prefix=no
11561 need_version=no
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563 soname_spec='${libname}${release}${shared_ext}$major'
11564 shlibpath_var=LD_LIBRARY_PATH
11565 shlibpath_overrides_runpath=yes
11566 hardcode_into_libs=yes
11567 # ldd complains unless libraries are executable
11568 postinstall_cmds='chmod +x $lib'
11569 ;;
11570
11571sunos4*)
11572 version_type=sunos
11573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11574 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11575 shlibpath_var=LD_LIBRARY_PATH
11576 shlibpath_overrides_runpath=yes
11577 if test "$with_gnu_ld" = yes; then
11578 need_lib_prefix=no
11579 fi
11580 need_version=yes
11581 ;;
11582
11583sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11584 version_type=linux
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 case $host_vendor in
11589 sni)
11590 shlibpath_overrides_runpath=no
11591 need_lib_prefix=no
11592 export_dynamic_flag_spec='${wl}-Blargedynsym'
11593 runpath_var=LD_RUN_PATH
11594 ;;
11595 siemens)
11596 need_lib_prefix=no
11597 ;;
11598 motorola)
11599 need_lib_prefix=no
11600 need_version=no
11601 shlibpath_overrides_runpath=no
11602 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11603 ;;
11604 esac
11605 ;;
11606
11607sysv4*MP*)
11608 if test -d /usr/nec ;then
11609 version_type=linux
11610 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11611 soname_spec='$libname${shared_ext}.$major'
11612 shlibpath_var=LD_LIBRARY_PATH
11613 fi
11614 ;;
11615
11616uts4*)
11617 version_type=linux
11618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 soname_spec='${libname}${release}${shared_ext}$major'
11620 shlibpath_var=LD_LIBRARY_PATH
11621 ;;
11622
11623*)
11624 dynamic_linker=no
11625 ;;
11626esac
11627echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11628echo "${ECHO_T}$dynamic_linker" >&6
11629test "$dynamic_linker" = no && can_build_shared=no
11630
Reid Spencer2706f8c2004-09-19 23:53:36 +000011631echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11632echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11633hardcode_action_CXX=
11634if test -n "$hardcode_libdir_flag_spec_CXX" || \
11635 test -n "$runpath_var_CXX" || \
11636 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11637
11638 # We can hardcode non-existant directories.
11639 if test "$hardcode_direct_CXX" != no &&
11640 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11641 # have to relink, otherwise we might link with an installed library
11642 # when we should be linking with a yet-to-be-installed one
11643 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11644 test "$hardcode_minus_L_CXX" != no; then
11645 # Linking always hardcodes the temporary library directory.
11646 hardcode_action_CXX=relink
11647 else
11648 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11649 hardcode_action_CXX=immediate
11650 fi
11651else
11652 # We cannot hardcode anything, or else we can only hardcode existing
11653 # directories.
11654 hardcode_action_CXX=unsupported
11655fi
11656echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11657echo "${ECHO_T}$hardcode_action_CXX" >&6
11658
11659if test "$hardcode_action_CXX" = relink; then
11660 # Fast installation is not supported
11661 enable_fast_install=no
11662elif test "$shlibpath_overrides_runpath" = yes ||
11663 test "$enable_shared" = no; then
11664 # Fast installation is not necessary
11665 enable_fast_install=needless
11666fi
11667
11668striplib=
11669old_striplib=
11670echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11671echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11672if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11673 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11674 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11675 echo "$as_me:$LINENO: result: yes" >&5
11676echo "${ECHO_T}yes" >&6
11677else
11678# FIXME - insert some real tests, host_os isn't really good enough
11679 case $host_os in
11680 darwin*)
11681 if test -n "$STRIP" ; then
11682 striplib="$STRIP -x"
11683 echo "$as_me:$LINENO: result: yes" >&5
11684echo "${ECHO_T}yes" >&6
11685 else
11686 echo "$as_me:$LINENO: result: no" >&5
11687echo "${ECHO_T}no" >&6
11688fi
11689 ;;
11690 *)
11691 echo "$as_me:$LINENO: result: no" >&5
11692echo "${ECHO_T}no" >&6
11693 ;;
11694 esac
11695fi
11696
John Criswell47fdd832003-07-14 16:52:07 +000011697if test "x$enable_dlopen" != xyes; then
11698 enable_dlopen=unknown
11699 enable_dlopen_self=unknown
11700 enable_dlopen_self_static=unknown
11701else
11702 lt_cv_dlopen=no
11703 lt_cv_dlopen_libs=
11704
11705 case $host_os in
11706 beos*)
11707 lt_cv_dlopen="load_add_on"
11708 lt_cv_dlopen_libs=
11709 lt_cv_dlopen_self=yes
11710 ;;
11711
11712 mingw* | pw32*)
11713 lt_cv_dlopen="LoadLibrary"
11714 lt_cv_dlopen_libs=
11715 ;;
11716
11717 cygwin*)
11718 lt_cv_dlopen="dlopen"
11719 lt_cv_dlopen_libs=
11720 ;;
11721
11722 darwin*)
11723 # if libdl is installed we need to link against it
11724 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11725echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11726if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11727 echo $ECHO_N "(cached) $ECHO_C" >&6
11728else
11729 ac_check_lib_save_LIBS=$LIBS
11730LIBS="-ldl $LIBS"
11731cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011732/* confdefs.h. */
11733_ACEOF
11734cat confdefs.h >>conftest.$ac_ext
11735cat >>conftest.$ac_ext <<_ACEOF
11736/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011737
11738/* Override any gcc2 internal prototype to avoid an error. */
11739#ifdef __cplusplus
11740extern "C"
11741#endif
11742/* We use char because int might match the return type of a gcc2
11743 builtin and then its argument prototype would still apply. */
11744char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011745int
11746main ()
11747{
11748dlopen ();
11749 ;
11750 return 0;
11751}
11752_ACEOF
11753rm -f conftest.$ac_objext conftest$ac_exeext
11754if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011755 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011756 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011757 grep -v '^ *+' conftest.er1 >conftest.err
11758 rm -f conftest.er1
11759 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011762 { ac_try='test -z "$ac_cxx_werror_flag"
11763 || test ! -s conftest.err'
11764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11765 (eval $ac_try) 2>&5
11766 ac_status=$?
11767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11768 (exit $ac_status); }; } &&
11769 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11771 (eval $ac_try) 2>&5
11772 ac_status=$?
11773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774 (exit $ac_status); }; }; then
11775 ac_cv_lib_dl_dlopen=yes
11776else
11777 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011778sed 's/^/| /' conftest.$ac_ext >&5
11779
John Criswell47fdd832003-07-14 16:52:07 +000011780ac_cv_lib_dl_dlopen=no
11781fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011782rm -f conftest.err conftest.$ac_objext \
11783 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011784LIBS=$ac_check_lib_save_LIBS
11785fi
11786echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11787echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11788if test $ac_cv_lib_dl_dlopen = yes; then
11789 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11790else
11791
11792 lt_cv_dlopen="dyld"
11793 lt_cv_dlopen_libs=
11794 lt_cv_dlopen_self=yes
11795
11796fi
11797
11798 ;;
11799
11800 *)
11801 echo "$as_me:$LINENO: checking for shl_load" >&5
11802echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11803if test "${ac_cv_func_shl_load+set}" = set; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11805else
11806 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011807/* confdefs.h. */
11808_ACEOF
11809cat confdefs.h >>conftest.$ac_ext
11810cat >>conftest.$ac_ext <<_ACEOF
11811/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011812/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11813 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11814#define shl_load innocuous_shl_load
11815
John Criswell47fdd832003-07-14 16:52:07 +000011816/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011817 which can conflict with char shl_load (); below.
11818 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11819 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011820
John Criswell0c38eaf2003-09-10 15:17:25 +000011821#ifdef __STDC__
11822# include <limits.h>
11823#else
11824# include <assert.h>
11825#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000011826
11827#undef shl_load
11828
John Criswell47fdd832003-07-14 16:52:07 +000011829/* Override any gcc2 internal prototype to avoid an error. */
11830#ifdef __cplusplus
11831extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011832{
John Criswell47fdd832003-07-14 16:52:07 +000011833#endif
11834/* We use char because int might match the return type of a gcc2
11835 builtin and then its argument prototype would still apply. */
11836char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011837/* The GNU C library defines this for functions which it implements
11838 to always fail with ENOSYS. Some functions are actually named
11839 something starting with __ and the normal name is an alias. */
11840#if defined (__stub_shl_load) || defined (__stub___shl_load)
11841choke me
11842#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011843char (*f) () = shl_load;
11844#endif
11845#ifdef __cplusplus
11846}
John Criswell47fdd832003-07-14 16:52:07 +000011847#endif
11848
John Criswell0c38eaf2003-09-10 15:17:25 +000011849int
11850main ()
11851{
11852return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011853 ;
11854 return 0;
11855}
11856_ACEOF
11857rm -f conftest.$ac_objext conftest$ac_exeext
11858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011859 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011860 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011861 grep -v '^ *+' conftest.er1 >conftest.err
11862 rm -f conftest.er1
11863 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011866 { ac_try='test -z "$ac_cxx_werror_flag"
11867 || test ! -s conftest.err'
11868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11869 (eval $ac_try) 2>&5
11870 ac_status=$?
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; } &&
11873 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11875 (eval $ac_try) 2>&5
11876 ac_status=$?
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 (exit $ac_status); }; }; then
11879 ac_cv_func_shl_load=yes
11880else
11881 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011882sed 's/^/| /' conftest.$ac_ext >&5
11883
John Criswell47fdd832003-07-14 16:52:07 +000011884ac_cv_func_shl_load=no
11885fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011886rm -f conftest.err conftest.$ac_objext \
11887 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011888fi
11889echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11890echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11891if test $ac_cv_func_shl_load = yes; then
11892 lt_cv_dlopen="shl_load"
11893else
11894 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11895echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11896if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11898else
11899 ac_check_lib_save_LIBS=$LIBS
11900LIBS="-ldld $LIBS"
11901cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011902/* confdefs.h. */
11903_ACEOF
11904cat confdefs.h >>conftest.$ac_ext
11905cat >>conftest.$ac_ext <<_ACEOF
11906/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011907
11908/* Override any gcc2 internal prototype to avoid an error. */
11909#ifdef __cplusplus
11910extern "C"
11911#endif
11912/* We use char because int might match the return type of a gcc2
11913 builtin and then its argument prototype would still apply. */
11914char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011915int
11916main ()
11917{
11918shl_load ();
11919 ;
11920 return 0;
11921}
11922_ACEOF
11923rm -f conftest.$ac_objext conftest$ac_exeext
11924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000011925 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011926 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000011927 grep -v '^ *+' conftest.er1 >conftest.err
11928 rm -f conftest.er1
11929 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000011932 { ac_try='test -z "$ac_cxx_werror_flag"
11933 || test ! -s conftest.err'
11934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11935 (eval $ac_try) 2>&5
11936 ac_status=$?
11937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11938 (exit $ac_status); }; } &&
11939 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11941 (eval $ac_try) 2>&5
11942 ac_status=$?
11943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11944 (exit $ac_status); }; }; then
11945 ac_cv_lib_dld_shl_load=yes
11946else
11947 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011948sed 's/^/| /' conftest.$ac_ext >&5
11949
John Criswell47fdd832003-07-14 16:52:07 +000011950ac_cv_lib_dld_shl_load=no
11951fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000011952rm -f conftest.err conftest.$ac_objext \
11953 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011954LIBS=$ac_check_lib_save_LIBS
11955fi
11956echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11957echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11958if test $ac_cv_lib_dld_shl_load = yes; then
11959 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11960else
11961 echo "$as_me:$LINENO: checking for dlopen" >&5
11962echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11963if test "${ac_cv_func_dlopen+set}" = set; then
11964 echo $ECHO_N "(cached) $ECHO_C" >&6
11965else
11966 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011967/* confdefs.h. */
11968_ACEOF
11969cat confdefs.h >>conftest.$ac_ext
11970cat >>conftest.$ac_ext <<_ACEOF
11971/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011972/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11974#define dlopen innocuous_dlopen
11975
John Criswell47fdd832003-07-14 16:52:07 +000011976/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011977 which can conflict with char dlopen (); below.
11978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11979 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000011980
John Criswell0c38eaf2003-09-10 15:17:25 +000011981#ifdef __STDC__
11982# include <limits.h>
11983#else
11984# include <assert.h>
11985#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000011986
11987#undef dlopen
11988
John Criswell47fdd832003-07-14 16:52:07 +000011989/* Override any gcc2 internal prototype to avoid an error. */
11990#ifdef __cplusplus
11991extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011992{
John Criswell47fdd832003-07-14 16:52:07 +000011993#endif
11994/* We use char because int might match the return type of a gcc2
11995 builtin and then its argument prototype would still apply. */
11996char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011997/* The GNU C library defines this for functions which it implements
11998 to always fail with ENOSYS. Some functions are actually named
11999 something starting with __ and the normal name is an alias. */
12000#if defined (__stub_dlopen) || defined (__stub___dlopen)
12001choke me
12002#else
John Criswell0c38eaf2003-09-10 15:17:25 +000012003char (*f) () = dlopen;
12004#endif
12005#ifdef __cplusplus
12006}
John Criswell47fdd832003-07-14 16:52:07 +000012007#endif
12008
John Criswell0c38eaf2003-09-10 15:17:25 +000012009int
12010main ()
12011{
12012return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000012013 ;
12014 return 0;
12015}
12016_ACEOF
12017rm -f conftest.$ac_objext conftest$ac_exeext
12018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012019 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012020 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012021 grep -v '^ *+' conftest.er1 >conftest.err
12022 rm -f conftest.er1
12023 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012026 { ac_try='test -z "$ac_cxx_werror_flag"
12027 || test ! -s conftest.err'
12028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12029 (eval $ac_try) 2>&5
12030 ac_status=$?
12031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12032 (exit $ac_status); }; } &&
12033 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12035 (eval $ac_try) 2>&5
12036 ac_status=$?
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); }; }; then
12039 ac_cv_func_dlopen=yes
12040else
12041 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012042sed 's/^/| /' conftest.$ac_ext >&5
12043
John Criswell47fdd832003-07-14 16:52:07 +000012044ac_cv_func_dlopen=no
12045fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012046rm -f conftest.err conftest.$ac_objext \
12047 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012048fi
12049echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12050echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12051if test $ac_cv_func_dlopen = yes; then
12052 lt_cv_dlopen="dlopen"
12053else
12054 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12055echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12056if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058else
12059 ac_check_lib_save_LIBS=$LIBS
12060LIBS="-ldl $LIBS"
12061cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012062/* confdefs.h. */
12063_ACEOF
12064cat confdefs.h >>conftest.$ac_ext
12065cat >>conftest.$ac_ext <<_ACEOF
12066/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012067
12068/* Override any gcc2 internal prototype to avoid an error. */
12069#ifdef __cplusplus
12070extern "C"
12071#endif
12072/* We use char because int might match the return type of a gcc2
12073 builtin and then its argument prototype would still apply. */
12074char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012075int
12076main ()
12077{
12078dlopen ();
12079 ;
12080 return 0;
12081}
12082_ACEOF
12083rm -f conftest.$ac_objext conftest$ac_exeext
12084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012085 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012087 grep -v '^ *+' conftest.er1 >conftest.err
12088 rm -f conftest.er1
12089 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12091 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012092 { ac_try='test -z "$ac_cxx_werror_flag"
12093 || test ! -s conftest.err'
12094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12095 (eval $ac_try) 2>&5
12096 ac_status=$?
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; } &&
12099 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12101 (eval $ac_try) 2>&5
12102 ac_status=$?
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 ac_cv_lib_dl_dlopen=yes
12106else
12107 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012108sed 's/^/| /' conftest.$ac_ext >&5
12109
John Criswell47fdd832003-07-14 16:52:07 +000012110ac_cv_lib_dl_dlopen=no
12111fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012112rm -f conftest.err conftest.$ac_objext \
12113 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012114LIBS=$ac_check_lib_save_LIBS
12115fi
12116echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12117echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12118if test $ac_cv_lib_dl_dlopen = yes; then
12119 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12120else
12121 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12122echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12123if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12124 echo $ECHO_N "(cached) $ECHO_C" >&6
12125else
12126 ac_check_lib_save_LIBS=$LIBS
12127LIBS="-lsvld $LIBS"
12128cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012129/* confdefs.h. */
12130_ACEOF
12131cat confdefs.h >>conftest.$ac_ext
12132cat >>conftest.$ac_ext <<_ACEOF
12133/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012134
12135/* Override any gcc2 internal prototype to avoid an error. */
12136#ifdef __cplusplus
12137extern "C"
12138#endif
12139/* We use char because int might match the return type of a gcc2
12140 builtin and then its argument prototype would still apply. */
12141char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012142int
12143main ()
12144{
12145dlopen ();
12146 ;
12147 return 0;
12148}
12149_ACEOF
12150rm -f conftest.$ac_objext conftest$ac_exeext
12151if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012152 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012153 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012154 grep -v '^ *+' conftest.er1 >conftest.err
12155 rm -f conftest.er1
12156 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012159 { ac_try='test -z "$ac_cxx_werror_flag"
12160 || test ! -s conftest.err'
12161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12162 (eval $ac_try) 2>&5
12163 ac_status=$?
12164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12165 (exit $ac_status); }; } &&
12166 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12168 (eval $ac_try) 2>&5
12169 ac_status=$?
12170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); }; }; then
12172 ac_cv_lib_svld_dlopen=yes
12173else
12174 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012175sed 's/^/| /' conftest.$ac_ext >&5
12176
John Criswell47fdd832003-07-14 16:52:07 +000012177ac_cv_lib_svld_dlopen=no
12178fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012179rm -f conftest.err conftest.$ac_objext \
12180 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012181LIBS=$ac_check_lib_save_LIBS
12182fi
12183echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12184echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12185if test $ac_cv_lib_svld_dlopen = yes; then
12186 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12187else
12188 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12189echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12190if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12192else
12193 ac_check_lib_save_LIBS=$LIBS
12194LIBS="-ldld $LIBS"
12195cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012196/* confdefs.h. */
12197_ACEOF
12198cat confdefs.h >>conftest.$ac_ext
12199cat >>conftest.$ac_ext <<_ACEOF
12200/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012201
12202/* Override any gcc2 internal prototype to avoid an error. */
12203#ifdef __cplusplus
12204extern "C"
12205#endif
12206/* We use char because int might match the return type of a gcc2
12207 builtin and then its argument prototype would still apply. */
12208char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012209int
12210main ()
12211{
12212dld_link ();
12213 ;
12214 return 0;
12215}
12216_ACEOF
12217rm -f conftest.$ac_objext conftest$ac_exeext
12218if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000012219 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012220 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000012221 grep -v '^ *+' conftest.er1 >conftest.err
12222 rm -f conftest.er1
12223 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000012226 { ac_try='test -z "$ac_cxx_werror_flag"
12227 || test ! -s conftest.err'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12230 ac_status=$?
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; } &&
12233 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12235 (eval $ac_try) 2>&5
12236 ac_status=$?
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); }; }; then
12239 ac_cv_lib_dld_dld_link=yes
12240else
12241 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012242sed 's/^/| /' conftest.$ac_ext >&5
12243
John Criswell47fdd832003-07-14 16:52:07 +000012244ac_cv_lib_dld_dld_link=no
12245fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000012246rm -f conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012248LIBS=$ac_check_lib_save_LIBS
12249fi
12250echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12251echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12252if test $ac_cv_lib_dld_dld_link = yes; then
12253 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12254fi
12255
12256
12257fi
12258
12259
12260fi
12261
12262
12263fi
12264
12265
12266fi
12267
12268
12269fi
12270
12271 ;;
12272 esac
12273
12274 if test "x$lt_cv_dlopen" != xno; then
12275 enable_dlopen=yes
12276 else
12277 enable_dlopen=no
12278 fi
12279
12280 case $lt_cv_dlopen in
12281 dlopen)
12282 save_CPPFLAGS="$CPPFLAGS"
12283 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12284
12285 save_LDFLAGS="$LDFLAGS"
12286 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12287
12288 save_LIBS="$LIBS"
12289 LIBS="$lt_cv_dlopen_libs $LIBS"
12290
12291 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12292echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12293if test "${lt_cv_dlopen_self+set}" = set; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12295else
12296 if test "$cross_compiling" = yes; then :
12297 lt_cv_dlopen_self=cross
12298else
12299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12300 lt_status=$lt_dlunknown
12301 cat > conftest.$ac_ext <<EOF
John Criswell9f011862004-09-24 18:28:00 +000012302#line 12302 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012303#include "confdefs.h"
12304
12305#if HAVE_DLFCN_H
12306#include <dlfcn.h>
12307#endif
12308
12309#include <stdio.h>
12310
12311#ifdef RTLD_GLOBAL
12312# define LT_DLGLOBAL RTLD_GLOBAL
12313#else
12314# ifdef DL_GLOBAL
12315# define LT_DLGLOBAL DL_GLOBAL
12316# else
12317# define LT_DLGLOBAL 0
12318# endif
12319#endif
12320
12321/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12322 find out it does not work in some platform. */
12323#ifndef LT_DLLAZY_OR_NOW
12324# ifdef RTLD_LAZY
12325# define LT_DLLAZY_OR_NOW RTLD_LAZY
12326# else
12327# ifdef DL_LAZY
12328# define LT_DLLAZY_OR_NOW DL_LAZY
12329# else
12330# ifdef RTLD_NOW
12331# define LT_DLLAZY_OR_NOW RTLD_NOW
12332# else
12333# ifdef DL_NOW
12334# define LT_DLLAZY_OR_NOW DL_NOW
12335# else
12336# define LT_DLLAZY_OR_NOW 0
12337# endif
12338# endif
12339# endif
12340# endif
12341#endif
12342
12343#ifdef __cplusplus
12344extern "C" void exit (int);
12345#endif
12346
12347void fnord() { int i=42;}
12348int main ()
12349{
12350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12351 int status = $lt_dlunknown;
12352
12353 if (self)
12354 {
12355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12356 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12357 /* dlclose (self); */
12358 }
12359
12360 exit (status);
12361}
12362EOF
12363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12364 (eval $ac_link) 2>&5
12365 ac_status=$?
12366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12367 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12368 (./conftest; exit; ) 2>/dev/null
12369 lt_status=$?
12370 case x$lt_status in
12371 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12372 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12373 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12374 esac
12375 else :
12376 # compilation failed
12377 lt_cv_dlopen_self=no
12378 fi
12379fi
12380rm -fr conftest*
12381
12382
12383fi
12384echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12385echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12386
12387 if test "x$lt_cv_dlopen_self" = xyes; then
12388 LDFLAGS="$LDFLAGS $link_static_flag"
12389 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12390echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12391if test "${lt_cv_dlopen_self_static+set}" = set; then
12392 echo $ECHO_N "(cached) $ECHO_C" >&6
12393else
12394 if test "$cross_compiling" = yes; then :
12395 lt_cv_dlopen_self_static=cross
12396else
12397 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12398 lt_status=$lt_dlunknown
12399 cat > conftest.$ac_ext <<EOF
John Criswell9f011862004-09-24 18:28:00 +000012400#line 12400 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012401#include "confdefs.h"
12402
12403#if HAVE_DLFCN_H
12404#include <dlfcn.h>
12405#endif
12406
12407#include <stdio.h>
12408
12409#ifdef RTLD_GLOBAL
12410# define LT_DLGLOBAL RTLD_GLOBAL
12411#else
12412# ifdef DL_GLOBAL
12413# define LT_DLGLOBAL DL_GLOBAL
12414# else
12415# define LT_DLGLOBAL 0
12416# endif
12417#endif
12418
12419/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12420 find out it does not work in some platform. */
12421#ifndef LT_DLLAZY_OR_NOW
12422# ifdef RTLD_LAZY
12423# define LT_DLLAZY_OR_NOW RTLD_LAZY
12424# else
12425# ifdef DL_LAZY
12426# define LT_DLLAZY_OR_NOW DL_LAZY
12427# else
12428# ifdef RTLD_NOW
12429# define LT_DLLAZY_OR_NOW RTLD_NOW
12430# else
12431# ifdef DL_NOW
12432# define LT_DLLAZY_OR_NOW DL_NOW
12433# else
12434# define LT_DLLAZY_OR_NOW 0
12435# endif
12436# endif
12437# endif
12438# endif
12439#endif
12440
12441#ifdef __cplusplus
12442extern "C" void exit (int);
12443#endif
12444
12445void fnord() { int i=42;}
12446int main ()
12447{
12448 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12449 int status = $lt_dlunknown;
12450
12451 if (self)
12452 {
12453 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12454 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12455 /* dlclose (self); */
12456 }
12457
12458 exit (status);
12459}
12460EOF
12461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12462 (eval $ac_link) 2>&5
12463 ac_status=$?
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12466 (./conftest; exit; ) 2>/dev/null
12467 lt_status=$?
12468 case x$lt_status in
12469 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12470 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12471 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12472 esac
12473 else :
12474 # compilation failed
12475 lt_cv_dlopen_self_static=no
12476 fi
12477fi
12478rm -fr conftest*
12479
12480
12481fi
12482echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12483echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12484 fi
12485
12486 CPPFLAGS="$save_CPPFLAGS"
12487 LDFLAGS="$save_LDFLAGS"
12488 LIBS="$save_LIBS"
12489 ;;
12490 esac
12491
12492 case $lt_cv_dlopen_self in
12493 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12494 *) enable_dlopen_self=unknown ;;
12495 esac
12496
12497 case $lt_cv_dlopen_self_static in
12498 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12499 *) enable_dlopen_self_static=unknown ;;
12500 esac
12501fi
12502
12503
12504# The else clause should only fire when bootstrapping the
12505# libtool distribution, otherwise you forgot to ship ltmain.sh
12506# with your package, and you will get complaints that there are
12507# no rules to generate ltmain.sh.
12508if test -f "$ltmain"; then
12509 # See if we are running on zsh, and set the options which allow our commands through
12510 # without removal of \ escapes.
12511 if test -n "${ZSH_VERSION+set}" ; then
12512 setopt NO_GLOB_SUBST
12513 fi
12514 # Now quote all the things that may contain metacharacters while being
12515 # careful not to overquote the AC_SUBSTed values. We take copies of the
12516 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012517 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12518 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000012519 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12520 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12521 deplibs_check_method reload_flag reload_cmds need_locks \
12522 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12523 lt_cv_sys_global_symbol_to_c_name_address \
12524 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12525 old_postinstall_cmds old_postuninstall_cmds \
12526 compiler_CXX \
12527 CC_CXX \
12528 LD_CXX \
12529 lt_prog_compiler_wl_CXX \
12530 lt_prog_compiler_pic_CXX \
12531 lt_prog_compiler_static_CXX \
12532 lt_prog_compiler_no_builtin_flag_CXX \
12533 export_dynamic_flag_spec_CXX \
12534 thread_safe_flag_spec_CXX \
12535 whole_archive_flag_spec_CXX \
12536 enable_shared_with_static_runtimes_CXX \
12537 old_archive_cmds_CXX \
12538 old_archive_from_new_cmds_CXX \
12539 predep_objects_CXX \
12540 postdep_objects_CXX \
12541 predeps_CXX \
12542 postdeps_CXX \
12543 compiler_lib_search_path_CXX \
12544 archive_cmds_CXX \
12545 archive_expsym_cmds_CXX \
12546 postinstall_cmds_CXX \
12547 postuninstall_cmds_CXX \
12548 old_archive_from_expsyms_cmds_CXX \
12549 allow_undefined_flag_CXX \
12550 no_undefined_flag_CXX \
12551 export_symbols_cmds_CXX \
12552 hardcode_libdir_flag_spec_CXX \
12553 hardcode_libdir_flag_spec_ld_CXX \
12554 hardcode_libdir_separator_CXX \
12555 hardcode_automatic_CXX \
12556 module_cmds_CXX \
12557 module_expsym_cmds_CXX \
12558 lt_cv_prog_compiler_c_o_CXX \
12559 exclude_expsyms_CXX \
12560 include_expsyms_CXX; do
12561
12562 case $var in
12563 old_archive_cmds_CXX | \
12564 old_archive_from_new_cmds_CXX | \
12565 archive_cmds_CXX | \
12566 archive_expsym_cmds_CXX | \
12567 module_cmds_CXX | \
12568 module_expsym_cmds_CXX | \
12569 old_archive_from_expsyms_cmds_CXX | \
12570 export_symbols_cmds_CXX | \
12571 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12572 postinstall_cmds | postuninstall_cmds | \
12573 old_postinstall_cmds | old_postuninstall_cmds | \
12574 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12575 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012576 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 +000012577 ;;
12578 *)
12579 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12580 ;;
12581 esac
12582 done
12583
12584 case $lt_echo in
12585 *'\$0 --fallback-echo"')
12586 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12587 ;;
12588 esac
12589
12590cfgfile="$ofile"
12591
12592 cat <<__EOF__ >> "$cfgfile"
12593# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12594
12595# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12596
12597# Shell to use when invoking shell scripts.
12598SHELL=$lt_SHELL
12599
12600# Whether or not to build shared libraries.
12601build_libtool_libs=$enable_shared
12602
12603# Whether or not to build static libraries.
12604build_old_libs=$enable_static
12605
12606# Whether or not to add -lc for building shared libraries.
12607build_libtool_need_lc=$archive_cmds_need_lc_CXX
12608
12609# Whether or not to disallow shared libs when runtime libs are static
12610allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12611
12612# Whether or not to optimize for fast installation.
12613fast_install=$enable_fast_install
12614
12615# The host system.
12616host_alias=$host_alias
12617host=$host
12618
12619# An echo program that does not interpret backslashes.
12620echo=$lt_echo
12621
12622# The archiver.
12623AR=$lt_AR
12624AR_FLAGS=$lt_AR_FLAGS
12625
12626# A C compiler.
12627LTCC=$lt_LTCC
12628
12629# A language-specific compiler.
12630CC=$lt_compiler_CXX
12631
12632# Is the compiler the GNU C compiler?
12633with_gcc=$GCC_CXX
12634
12635# An ERE matcher.
12636EGREP=$lt_EGREP
12637
12638# The linker used to build libraries.
12639LD=$lt_LD_CXX
12640
12641# Whether we need hard or soft links.
12642LN_S=$lt_LN_S
12643
12644# A BSD-compatible nm program.
12645NM=$lt_NM
12646
12647# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000012648STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000012649
12650# Used to examine libraries when file_magic_cmd begins "file"
12651MAGIC_CMD=$MAGIC_CMD
12652
12653# Used on cygwin: DLL creation program.
12654DLLTOOL="$DLLTOOL"
12655
12656# Used on cygwin: object dumper.
12657OBJDUMP="$OBJDUMP"
12658
12659# Used on cygwin: assembler.
12660AS="$AS"
12661
12662# The name of the directory that contains temporary libtool files.
12663objdir=$objdir
12664
12665# How to create reloadable object files.
12666reload_flag=$lt_reload_flag
12667reload_cmds=$lt_reload_cmds
12668
12669# How to pass a linker flag through the compiler.
12670wl=$lt_lt_prog_compiler_wl_CXX
12671
12672# Object file suffix (normally "o").
12673objext="$ac_objext"
12674
12675# Old archive suffix (normally "a").
12676libext="$libext"
12677
12678# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000012679shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000012680
12681# Executable file suffix (normally "").
12682exeext="$exeext"
12683
12684# Additional compiler flags for building library objects.
12685pic_flag=$lt_lt_prog_compiler_pic_CXX
12686pic_mode=$pic_mode
12687
12688# What is the maximum length of a command?
12689max_cmd_len=$lt_cv_sys_max_cmd_len
12690
12691# Does compiler simultaneously support -c and -o options?
12692compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12693
12694# Must we lock files when doing compilation ?
12695need_locks=$lt_need_locks
12696
12697# Do we need the lib prefix for modules?
12698need_lib_prefix=$need_lib_prefix
12699
12700# Do we need a version for libraries?
12701need_version=$need_version
12702
12703# Whether dlopen is supported.
12704dlopen_support=$enable_dlopen
12705
12706# Whether dlopen of programs is supported.
12707dlopen_self=$enable_dlopen_self
12708
12709# Whether dlopen of statically linked programs is supported.
12710dlopen_self_static=$enable_dlopen_self_static
12711
12712# Compiler flag to prevent dynamic linking.
12713link_static_flag=$lt_lt_prog_compiler_static_CXX
12714
12715# Compiler flag to turn off builtin functions.
12716no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12717
12718# Compiler flag to allow reflexive dlopens.
12719export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12720
12721# Compiler flag to generate shared objects directly from archives.
12722whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12723
12724# Compiler flag to generate thread-safe objects.
12725thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12726
12727# Library versioning type.
12728version_type=$version_type
12729
12730# Format of library name prefix.
12731libname_spec=$lt_libname_spec
12732
12733# List of archive names. First name is the real one, the rest are links.
12734# The last name is the one that the linker finds with -lNAME.
12735library_names_spec=$lt_library_names_spec
12736
12737# The coded name of the library, if different from the real name.
12738soname_spec=$lt_soname_spec
12739
12740# Commands used to build and install an old-style archive.
12741RANLIB=$lt_RANLIB
12742old_archive_cmds=$lt_old_archive_cmds_CXX
12743old_postinstall_cmds=$lt_old_postinstall_cmds
12744old_postuninstall_cmds=$lt_old_postuninstall_cmds
12745
12746# Create an old-style archive from a shared archive.
12747old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12748
12749# Create a temporary old-style archive to link instead of a shared archive.
12750old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12751
12752# Commands used to build and install a shared archive.
12753archive_cmds=$lt_archive_cmds_CXX
12754archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12755postinstall_cmds=$lt_postinstall_cmds
12756postuninstall_cmds=$lt_postuninstall_cmds
12757
12758# Commands used to build a loadable module (assumed same as above if empty)
12759module_cmds=$lt_module_cmds_CXX
12760module_expsym_cmds=$lt_module_expsym_cmds_CXX
12761
12762# Commands to strip libraries.
12763old_striplib=$lt_old_striplib
12764striplib=$lt_striplib
12765
12766# Dependencies to place before the objects being linked to create a
12767# shared library.
12768predep_objects=$lt_predep_objects_CXX
12769
12770# Dependencies to place after the objects being linked to create a
12771# shared library.
12772postdep_objects=$lt_postdep_objects_CXX
12773
12774# Dependencies to place before the objects being linked to create a
12775# shared library.
12776predeps=$lt_predeps_CXX
12777
12778# Dependencies to place after the objects being linked to create a
12779# shared library.
12780postdeps=$lt_postdeps_CXX
12781
12782# The library search path used internally by the compiler when linking
12783# a shared library.
12784compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12785
12786# Method to check whether dependent libraries are shared objects.
12787deplibs_check_method=$lt_deplibs_check_method
12788
12789# Command to use when deplibs_check_method == file_magic.
12790file_magic_cmd=$lt_file_magic_cmd
12791
12792# Flag that allows shared libraries with undefined symbols to be built.
12793allow_undefined_flag=$lt_allow_undefined_flag_CXX
12794
12795# Flag that forces no undefined symbols.
12796no_undefined_flag=$lt_no_undefined_flag_CXX
12797
12798# Commands used to finish a libtool library installation in a directory.
12799finish_cmds=$lt_finish_cmds
12800
12801# Same as above, but a single script fragment to be evaled but not shown.
12802finish_eval=$lt_finish_eval
12803
12804# Take the output of nm and produce a listing of raw symbols and C names.
12805global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12806
12807# Transform the output of nm in a proper C declaration
12808global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12809
12810# Transform the output of nm in a C name address pair
12811global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12812
12813# This is the shared library runtime path variable.
12814runpath_var=$runpath_var
12815
12816# This is the shared library path variable.
12817shlibpath_var=$shlibpath_var
12818
12819# Is shlibpath searched before the hard-coded library search path?
12820shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12821
12822# How to hardcode a shared library path into an executable.
12823hardcode_action=$hardcode_action_CXX
12824
12825# Whether we should hardcode library paths into libraries.
12826hardcode_into_libs=$hardcode_into_libs
12827
12828# Flag to hardcode \$libdir into a binary during linking.
12829# This must work even if \$libdir does not exist.
12830hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12831
12832# If ld is used when linking, flag to hardcode \$libdir into
12833# a binary during linking. This must work even if \$libdir does
12834# not exist.
12835hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12836
12837# Whether we need a single -rpath flag with a separated argument.
12838hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12839
12840# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12841# resulting binary.
12842hardcode_direct=$hardcode_direct_CXX
12843
12844# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12845# resulting binary.
12846hardcode_minus_L=$hardcode_minus_L_CXX
12847
12848# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12849# the resulting binary.
12850hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12851
12852# Set to yes if building a shared library automatically hardcodes DIR into the library
12853# and all subsequent libraries and executables linked against it.
12854hardcode_automatic=$hardcode_automatic_CXX
12855
12856# Variables whose values should be saved in libtool wrapper scripts and
12857# restored at relink time.
12858variables_saved_for_relink="$variables_saved_for_relink"
12859
12860# Whether libtool must link a program against all its dependency libraries.
12861link_all_deplibs=$link_all_deplibs_CXX
12862
12863# Compile-time system search path for libraries
12864sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12865
12866# Run-time system search path for libraries
12867sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12868
12869# Fix the shell variable \$srcfile for the compiler.
12870fix_srcfile_path="$fix_srcfile_path_CXX"
12871
12872# Set to yes if exported symbols are required.
12873always_export_symbols=$always_export_symbols_CXX
12874
12875# The commands to list exported symbols.
12876export_symbols_cmds=$lt_export_symbols_cmds_CXX
12877
12878# The commands to extract the exported symbol list from a shared archive.
12879extract_expsyms_cmds=$lt_extract_expsyms_cmds
12880
12881# Symbols that should not be listed in the preloaded symbols.
12882exclude_expsyms=$lt_exclude_expsyms_CXX
12883
12884# Symbols that must always be exported.
12885include_expsyms=$lt_include_expsyms_CXX
12886
12887# ### END LIBTOOL TAG CONFIG: $tagname
12888
12889__EOF__
12890
12891
12892else
12893 # If there is no Makefile yet, we rely on a make rule to execute
12894 # `config.status --recheck' to rerun these tests and create the
12895 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000012896 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12897 if test -f "$ltmain_in"; then
12898 test -f Makefile && make "$ltmain"
12899 fi
John Criswell47fdd832003-07-14 16:52:07 +000012900fi
12901
12902
12903ac_ext=c
12904ac_cpp='$CPP $CPPFLAGS'
12905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12907ac_compiler_gnu=$ac_cv_c_compiler_gnu
12908
12909CC=$lt_save_CC
12910LDCXX=$LD
12911LD=$lt_save_LD
12912GCC=$lt_save_GCC
12913with_gnu_ldcxx=$with_gnu_ld
12914with_gnu_ld=$lt_save_with_gnu_ld
12915lt_cv_path_LDCXX=$lt_cv_path_LD
12916lt_cv_path_LD=$lt_save_path_LD
12917lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12918lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12919
12920 else
12921 tagname=""
12922 fi
12923 ;;
12924
12925 F77)
12926 if test -n "$F77" && test "X$F77" != "Xno"; then
12927
12928ac_ext=f
12929ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12930ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12932
12933
12934archive_cmds_need_lc_F77=no
12935allow_undefined_flag_F77=
12936always_export_symbols_F77=no
12937archive_expsym_cmds_F77=
12938export_dynamic_flag_spec_F77=
12939hardcode_direct_F77=no
12940hardcode_libdir_flag_spec_F77=
12941hardcode_libdir_flag_spec_ld_F77=
12942hardcode_libdir_separator_F77=
12943hardcode_minus_L_F77=no
12944hardcode_automatic_F77=no
12945module_cmds_F77=
12946module_expsym_cmds_F77=
12947link_all_deplibs_F77=unknown
12948old_archive_cmds_F77=$old_archive_cmds
12949no_undefined_flag_F77=
12950whole_archive_flag_spec_F77=
12951enable_shared_with_static_runtimes_F77=no
12952
12953# Source file extension for f77 test sources.
12954ac_ext=f
12955
12956# Object file extension for compiled f77 test sources.
12957objext=o
12958objext_F77=$objext
12959
12960# Code to be used in simple compile tests
12961lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12962
12963# Code to be used in simple link tests
12964lt_simple_link_test_code=" program t\n end\n"
12965
12966# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12967
12968# If no C compiler was specified, use CC.
12969LTCC=${LTCC-"$CC"}
12970
12971# Allow CC to be a program name with arguments.
12972compiler=$CC
12973
12974
12975# Allow CC to be a program name with arguments.
12976lt_save_CC="$CC"
12977CC=${F77-"f77"}
12978compiler=$CC
12979compiler_F77=$CC
12980cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12981
12982echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12983echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12984echo "$as_me:$LINENO: result: $can_build_shared" >&5
12985echo "${ECHO_T}$can_build_shared" >&6
12986
12987echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12988echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12989test "$can_build_shared" = "no" && enable_shared=no
12990
12991# On AIX, shared libraries and static libraries use the same namespace, and
12992# are all built from PIC.
12993case "$host_os" in
12994aix3*)
12995 test "$enable_shared" = yes && enable_static=no
12996 if test -n "$RANLIB"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000012997 archive_cmds="$archive_cmds;\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000012998 postinstall_cmds='$RANLIB $lib'
12999 fi
13000 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013001aix4* | aix5*)
John Criswell47fdd832003-07-14 16:52:07 +000013002 test "$enable_shared" = yes && enable_static=no
13003 ;;
13004esac
13005echo "$as_me:$LINENO: result: $enable_shared" >&5
13006echo "${ECHO_T}$enable_shared" >&6
13007
13008echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13009echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13010# Make sure either enable_shared or enable_static is yes.
13011test "$enable_shared" = yes || enable_static=yes
13012echo "$as_me:$LINENO: result: $enable_static" >&5
13013echo "${ECHO_T}$enable_static" >&6
13014
13015test "$ld_shlibs_F77" = no && can_build_shared=no
13016
13017GCC_F77="$G77"
13018LD_F77="$LD"
13019
13020lt_prog_compiler_wl_F77=
13021lt_prog_compiler_pic_F77=
13022lt_prog_compiler_static_F77=
13023
13024echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13025echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13026
13027 if test "$GCC" = yes; then
13028 lt_prog_compiler_wl_F77='-Wl,'
13029 lt_prog_compiler_static_F77='-static'
13030
13031 case $host_os in
13032 aix*)
13033 # All AIX code is PIC.
13034 if test "$host_cpu" = ia64; then
13035 # AIX 5 now supports IA64 processor
13036 lt_prog_compiler_static_F77='-Bstatic'
13037 fi
13038 ;;
13039
13040 amigaos*)
13041 # FIXME: we need at least 68020 code to build shared libraries, but
13042 # adding the `-m68020' flag to GCC prevents building anything better,
13043 # like `-m68040'.
13044 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13045 ;;
13046
13047 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13048 # PIC is the default for these OSes.
13049 ;;
13050
13051 mingw* | pw32* | os2*)
13052 # This hack is so that the source file can tell whether it is being
13053 # built for inclusion in a dll (and should export symbols for example).
13054 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13055 ;;
13056
13057 darwin* | rhapsody*)
13058 # PIC is the default on this platform
13059 # Common symbols not allowed in MH_DYLIB files
13060 lt_prog_compiler_pic_F77='-fno-common'
13061 ;;
13062
13063 msdosdjgpp*)
13064 # Just because we use GCC doesn't mean we suddenly get shared libraries
13065 # on systems that don't support them.
13066 lt_prog_compiler_can_build_shared_F77=no
13067 enable_shared=no
13068 ;;
13069
13070 sysv4*MP*)
13071 if test -d /usr/nec; then
13072 lt_prog_compiler_pic_F77=-Kconform_pic
13073 fi
13074 ;;
13075
13076 hpux*)
13077 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13078 # not for PA HP-UX.
13079 case "$host_cpu" in
13080 hppa*64*|ia64*)
13081 # +Z the default
13082 ;;
13083 *)
13084 lt_prog_compiler_pic_F77='-fPIC'
13085 ;;
13086 esac
13087 ;;
13088
13089 *)
13090 lt_prog_compiler_pic_F77='-fPIC'
13091 ;;
13092 esac
13093 else
13094 # PORTME Check for flag to pass linker flags through the system compiler.
13095 case $host_os in
13096 aix*)
13097 lt_prog_compiler_wl_F77='-Wl,'
13098 if test "$host_cpu" = ia64; then
13099 # AIX 5 now supports IA64 processor
13100 lt_prog_compiler_static_F77='-Bstatic'
13101 else
13102 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13103 fi
13104 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013105 darwin*)
13106 # PIC is the default on this platform
13107 # Common symbols not allowed in MH_DYLIB files
13108 case "$cc_basename" in
13109 xlc*)
13110 lt_prog_compiler_pic_F77='-qnocommon'
13111 lt_prog_compiler_wl_F77='-Wl,'
13112 ;;
13113 esac
13114 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013115
13116 mingw* | pw32* | os2*)
13117 # This hack is so that the source file can tell whether it is being
13118 # built for inclusion in a dll (and should export symbols for example).
13119 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13120 ;;
13121
13122 hpux9* | hpux10* | hpux11*)
13123 lt_prog_compiler_wl_F77='-Wl,'
13124 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13125 # not for PA HP-UX.
13126 case "$host_cpu" in
13127 hppa*64*|ia64*)
13128 # +Z the default
13129 ;;
13130 *)
13131 lt_prog_compiler_pic_F77='+Z'
13132 ;;
13133 esac
13134 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13135 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13136 ;;
13137
13138 irix5* | irix6* | nonstopux*)
13139 lt_prog_compiler_wl_F77='-Wl,'
13140 # PIC (with -KPIC) is the default.
13141 lt_prog_compiler_static_F77='-non_shared'
13142 ;;
13143
13144 newsos6)
13145 lt_prog_compiler_pic_F77='-KPIC'
13146 lt_prog_compiler_static_F77='-Bstatic'
13147 ;;
13148
13149 linux*)
13150 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013151 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000013152 lt_prog_compiler_wl_F77='-Wl,'
13153 lt_prog_compiler_pic_F77='-KPIC'
13154 lt_prog_compiler_static_F77='-static'
13155 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013156 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000013157 lt_prog_compiler_wl_F77='-Wl,'
13158 # All Alpha code is PIC.
13159 lt_prog_compiler_static_F77='-non_shared'
13160 ;;
13161 esac
13162 ;;
13163
13164 osf3* | osf4* | osf5*)
13165 lt_prog_compiler_wl_F77='-Wl,'
13166 # All OSF/1 code is PIC.
13167 lt_prog_compiler_static_F77='-non_shared'
13168 ;;
13169
13170 sco3.2v5*)
13171 lt_prog_compiler_pic_F77='-Kpic'
13172 lt_prog_compiler_static_F77='-dn'
13173 ;;
13174
13175 solaris*)
13176 lt_prog_compiler_wl_F77='-Wl,'
13177 lt_prog_compiler_pic_F77='-KPIC'
13178 lt_prog_compiler_static_F77='-Bstatic'
13179 ;;
13180
13181 sunos4*)
13182 lt_prog_compiler_wl_F77='-Qoption ld '
13183 lt_prog_compiler_pic_F77='-PIC'
13184 lt_prog_compiler_static_F77='-Bstatic'
13185 ;;
13186
13187 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13188 lt_prog_compiler_wl_F77='-Wl,'
13189 lt_prog_compiler_pic_F77='-KPIC'
13190 lt_prog_compiler_static_F77='-Bstatic'
13191 ;;
13192
13193 sysv4*MP*)
13194 if test -d /usr/nec ;then
13195 lt_prog_compiler_pic_F77='-Kconform_pic'
13196 lt_prog_compiler_static_F77='-Bstatic'
13197 fi
13198 ;;
13199
13200 uts4*)
13201 lt_prog_compiler_pic_F77='-pic'
13202 lt_prog_compiler_static_F77='-Bstatic'
13203 ;;
13204
13205 *)
13206 lt_prog_compiler_can_build_shared_F77=no
13207 ;;
13208 esac
13209 fi
13210
13211echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13212echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13213
13214#
13215# Check to make sure the PIC flag actually works.
13216#
13217if test -n "$lt_prog_compiler_pic_F77"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013218
13219echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013220echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13221if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13222 echo $ECHO_N "(cached) $ECHO_C" >&6
13223else
13224 lt_prog_compiler_pic_works_F77=no
13225 ac_outfile=conftest.$ac_objext
13226 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13227 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13228 # Insert the option either (1) after the last *FLAGS variable, or
13229 # (2) before a word containing "conftest.", or (3) at the end.
13230 # Note that $ac_compile itself does not contain backslashes and begins
13231 # with a dollar sign (not a hyphen), so the echo should work correctly.
13232 # The option is referenced via a variable to avoid confusing sed.
13233 lt_compile=`echo "$ac_compile" | $SED \
13234 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13235 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13236 -e 's:$: $lt_compiler_flag:'`
John Criswell9f011862004-09-24 18:28:00 +000013237 (eval echo "\"\$as_me:13237: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013238 (eval "$lt_compile" 2>conftest.err)
13239 ac_status=$?
13240 cat conftest.err >&5
John Criswell9f011862004-09-24 18:28:00 +000013241 echo "$as_me:13241: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013242 if (exit $ac_status) && test -s "$ac_outfile"; then
13243 # The compiler can only warn and ignore the option if not recognized
13244 # So say no if there are warnings
13245 if test ! -s conftest.err; then
13246 lt_prog_compiler_pic_works_F77=yes
13247 fi
13248 fi
13249 $rm conftest*
13250
13251fi
13252echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13253echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13254
13255if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13256 case $lt_prog_compiler_pic_F77 in
13257 "" | " "*) ;;
13258 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13259 esac
13260else
13261 lt_prog_compiler_pic_F77=
13262 lt_prog_compiler_can_build_shared_F77=no
13263fi
13264
13265fi
13266case "$host_os" in
13267 # For platforms which do not support PIC, -DPIC is meaningless:
13268 *djgpp*)
13269 lt_prog_compiler_pic_F77=
13270 ;;
13271 *)
13272 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13273 ;;
13274esac
13275
13276echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13277echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13278if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13279 echo $ECHO_N "(cached) $ECHO_C" >&6
13280else
13281 lt_cv_prog_compiler_c_o_F77=no
13282 $rm -r conftest 2>/dev/null
13283 mkdir conftest
13284 cd conftest
13285 mkdir out
13286 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13287
John Criswell47fdd832003-07-14 16:52:07 +000013288 lt_compiler_flag="-o out/conftest2.$ac_objext"
13289 # Insert the option either (1) after the last *FLAGS variable, or
13290 # (2) before a word containing "conftest.", or (3) at the end.
13291 # Note that $ac_compile itself does not contain backslashes and begins
13292 # with a dollar sign (not a hyphen), so the echo should work correctly.
13293 lt_compile=`echo "$ac_compile" | $SED \
13294 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13295 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13296 -e 's:$: $lt_compiler_flag:'`
John Criswell9f011862004-09-24 18:28:00 +000013297 (eval echo "\"\$as_me:13297: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013298 (eval "$lt_compile" 2>out/conftest.err)
13299 ac_status=$?
13300 cat out/conftest.err >&5
John Criswell9f011862004-09-24 18:28:00 +000013301 echo "$as_me:13301: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013302 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13303 then
13304 # The compiler can only warn and ignore the option if not recognized
13305 # So say no if there are warnings
13306 if test ! -s out/conftest.err; then
13307 lt_cv_prog_compiler_c_o_F77=yes
13308 fi
13309 fi
13310 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000013311 $rm conftest*
13312 # SGI C++ compiler will create directory out/ii_files/ for
13313 # template instantiation
13314 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13315 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000013316 cd ..
13317 rmdir conftest
13318 $rm conftest*
13319
13320fi
13321echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13322echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13323
13324
13325hard_links="nottested"
13326if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13327 # do not overwrite the value of need_locks provided by the user
13328 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13329echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13330 hard_links=yes
13331 $rm conftest*
13332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13333 touch conftest.a
13334 ln conftest.a conftest.b 2>&5 || hard_links=no
13335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13336 echo "$as_me:$LINENO: result: $hard_links" >&5
13337echo "${ECHO_T}$hard_links" >&6
13338 if test "$hard_links" = no; then
13339 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13340echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13341 need_locks=warn
13342 fi
13343else
13344 need_locks=no
13345fi
13346
13347echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13348echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13349
13350 runpath_var=
13351 allow_undefined_flag_F77=
13352 enable_shared_with_static_runtimes_F77=no
13353 archive_cmds_F77=
13354 archive_expsym_cmds_F77=
13355 old_archive_From_new_cmds_F77=
13356 old_archive_from_expsyms_cmds_F77=
13357 export_dynamic_flag_spec_F77=
13358 whole_archive_flag_spec_F77=
13359 thread_safe_flag_spec_F77=
13360 hardcode_libdir_flag_spec_F77=
13361 hardcode_libdir_flag_spec_ld_F77=
13362 hardcode_libdir_separator_F77=
13363 hardcode_direct_F77=no
13364 hardcode_minus_L_F77=no
13365 hardcode_shlibpath_var_F77=unsupported
13366 link_all_deplibs_F77=unknown
13367 hardcode_automatic_F77=no
13368 module_cmds_F77=
13369 module_expsym_cmds_F77=
13370 always_export_symbols_F77=no
13371 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13372 # include_expsyms should be a list of space-separated symbols to be *always*
13373 # included in the symbol list
13374 include_expsyms_F77=
13375 # exclude_expsyms can be an extended regexp of symbols to exclude
13376 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13377 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13378 # as well as any symbol that contains `d'.
13379 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13380 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13381 # platforms (ab)use it in PIC code, but their linkers get confused if
13382 # the symbol is explicitly referenced. Since portable code cannot
13383 # rely on this symbol name, it's probably fine to never include it in
13384 # preloaded symbol tables.
13385 extract_expsyms_cmds=
13386
13387 case $host_os in
13388 cygwin* | mingw* | pw32*)
13389 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13390 # When not using gcc, we currently assume that we are using
13391 # Microsoft Visual C++.
13392 if test "$GCC" != yes; then
13393 with_gnu_ld=no
13394 fi
13395 ;;
13396 openbsd*)
13397 with_gnu_ld=no
13398 ;;
13399 esac
13400
13401 ld_shlibs_F77=yes
13402 if test "$with_gnu_ld" = yes; then
13403 # If archive_cmds runs LD, not CC, wlarc should be empty
13404 wlarc='${wl}'
13405
13406 # See if GNU ld supports shared libraries.
13407 case $host_os in
13408 aix3* | aix4* | aix5*)
13409 # On AIX/PPC, the GNU linker is very broken
13410 if test "$host_cpu" != ia64; then
13411 ld_shlibs_F77=no
13412 cat <<EOF 1>&2
13413
13414*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13415*** to be unable to reliably create shared libraries on AIX.
13416*** Therefore, libtool is disabling shared libraries support. If you
13417*** really care for shared libraries, you may want to modify your PATH
13418*** so that a non-GNU linker is found, and then restart.
13419
13420EOF
13421 fi
13422 ;;
13423
13424 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013425 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 +000013426 hardcode_libdir_flag_spec_F77='-L$libdir'
13427 hardcode_minus_L_F77=yes
13428
13429 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13430 # that the semantics of dynamic libraries on AmigaOS, at least up
13431 # to version 4, is to share data among multiple programs linked
13432 # with the same dynamic library. Since this doesn't match the
13433 # behavior of shared libraries on other platforms, we can't use
13434 # them.
13435 ld_shlibs_F77=no
13436 ;;
13437
13438 beos*)
13439 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13440 allow_undefined_flag_F77=unsupported
13441 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13442 # support --undefined. This deserves some investigation. FIXME
13443 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13444 else
13445 ld_shlibs_F77=no
13446 fi
13447 ;;
13448
13449 cygwin* | mingw* | pw32*)
13450 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13451 # as there is no search path for DLLs.
13452 hardcode_libdir_flag_spec_F77='-L$libdir'
13453 allow_undefined_flag_F77=unsupported
13454 always_export_symbols_F77=no
13455 enable_shared_with_static_runtimes_F77=yes
13456 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13457
13458 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13459 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13460 # If the export-symbols file already is a .def file (1st line
13461 # is EXPORTS), use it as is; otherwise, prepend...
13462 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13463 cp $export_symbols $output_objdir/$soname.def;
13464 else
13465 echo EXPORTS > $output_objdir/$soname.def;
13466 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer2706f8c2004-09-19 23:53:36 +000013467 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 +000013468 else
13469 ld_shlibs=no
13470 fi
13471 ;;
13472
13473 netbsd*)
13474 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13475 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13476 wlarc=
13477 else
13478 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13479 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13480 fi
13481 ;;
13482
13483 solaris* | sysv5*)
13484 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13485 ld_shlibs_F77=no
13486 cat <<EOF 1>&2
13487
13488*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13489*** create shared libraries on Solaris systems. Therefore, libtool
13490*** is disabling shared libraries support. We urge you to upgrade GNU
13491*** binutils to release 2.9.1 or newer. Another option is to modify
13492*** your PATH or compiler configuration so that the native linker is
13493*** used, and then restart.
13494
13495EOF
13496 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13497 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13498 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13499 else
13500 ld_shlibs_F77=no
13501 fi
13502 ;;
13503
13504 sunos4*)
13505 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13506 wlarc=
13507 hardcode_direct_F77=yes
13508 hardcode_shlibpath_var_F77=no
13509 ;;
13510
Reid Spencer2706f8c2004-09-19 23:53:36 +000013511 linux*)
13512 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13513 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13514 archive_cmds_F77="$tmp_archive_cmds"
13515 supports_anon_versioning=no
13516 case `$LD -v 2>/dev/null` in
13517 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13518 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13519 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13520 *\ 2.11.*) ;; # other 2.11 versions
13521 *) supports_anon_versioning=yes ;;
13522 esac
13523 if test $supports_anon_versioning = yes; then
13524 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;
13525 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13526 else
13527 archive_expsym_cmds_F77="$tmp_archive_cmds"
13528 fi
13529 else
13530 ld_shlibs_F77=no
13531 fi
13532 ;;
13533
John Criswell47fdd832003-07-14 16:52:07 +000013534 *)
13535 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13536 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13537 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13538 else
13539 ld_shlibs_F77=no
13540 fi
13541 ;;
13542 esac
13543
13544 if test "$ld_shlibs_F77" = yes; then
13545 runpath_var=LD_RUN_PATH
13546 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13547 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13548 # ancient GNU ld didn't support --whole-archive et. al.
13549 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13550 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13551 else
13552 whole_archive_flag_spec_F77=
13553 fi
13554 fi
13555 else
13556 # PORTME fill in a description of your system's linker (not GNU ld)
13557 case $host_os in
13558 aix3*)
13559 allow_undefined_flag_F77=unsupported
13560 always_export_symbols_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000013561 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 +000013562 # Note: this linker hardcodes the directories in LIBPATH if there
13563 # are no directories specified by -L.
13564 hardcode_minus_L_F77=yes
13565 if test "$GCC" = yes && test -z "$link_static_flag"; then
13566 # Neither direct hardcoding nor static linking is supported with a
13567 # broken collect2.
13568 hardcode_direct_F77=unsupported
13569 fi
13570 ;;
13571
13572 aix4* | aix5*)
13573 if test "$host_cpu" = ia64; then
13574 # On IA64, the linker does run time linking by default, so we don't
13575 # have to do anything special.
13576 aix_use_runtimelinking=no
13577 exp_sym_flag='-Bexport'
13578 no_entry_flag=""
13579 else
13580 # If we're using GNU nm, then we don't want the "-C" option.
13581 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13582 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13583 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'
13584 else
13585 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'
13586 fi
13587 aix_use_runtimelinking=no
13588
13589 # Test if we are trying to use run time linking or normal
13590 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13591 # need to do runtime linking.
13592 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13593 for ld_flag in $LDFLAGS; do
13594 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13595 aix_use_runtimelinking=yes
13596 break
13597 fi
13598 done
13599 esac
13600
13601 exp_sym_flag='-bexport'
13602 no_entry_flag='-bnoentry'
13603 fi
13604
13605 # When large executables or shared objects are built, AIX ld can
13606 # have problems creating the table of contents. If linking a library
13607 # or program results in "error TOC overflow" add -mminimal-toc to
13608 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13609 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13610
13611 archive_cmds_F77=''
13612 hardcode_direct_F77=yes
13613 hardcode_libdir_separator_F77=':'
13614 link_all_deplibs_F77=yes
13615
13616 if test "$GCC" = yes; then
13617 case $host_os in aix4.012|aix4.012.*)
13618 # We only want to do this on AIX 4.2 and lower, the check
13619 # below for broken collect2 doesn't work under 4.3+
13620 collect2name=`${CC} -print-prog-name=collect2`
13621 if test -f "$collect2name" && \
13622 strings "$collect2name" | grep resolve_lib_name >/dev/null
13623 then
13624 # We have reworked collect2
13625 hardcode_direct_F77=yes
13626 else
13627 # We have old collect2
13628 hardcode_direct_F77=unsupported
13629 # It fails to find uninstalled libraries when the uninstalled
13630 # path is not listed in the libpath. Setting hardcode_minus_L
13631 # to unsupported forces relinking
13632 hardcode_minus_L_F77=yes
13633 hardcode_libdir_flag_spec_F77='-L$libdir'
13634 hardcode_libdir_separator_F77=
13635 fi
13636 esac
13637 shared_flag='-shared'
13638 else
13639 # not using gcc
13640 if test "$host_cpu" = ia64; then
13641 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13642 # chokes on -Wl,-G. The following line is correct:
13643 shared_flag='-G'
13644 else
13645 if test "$aix_use_runtimelinking" = yes; then
13646 shared_flag='${wl}-G'
13647 else
13648 shared_flag='${wl}-bM:SRE'
13649 fi
13650 fi
13651 fi
13652
13653 # It seems that -bexpall does not export symbols beginning with
13654 # underscore (_), so it is better to generate a list of symbols to export.
13655 always_export_symbols_F77=yes
13656 if test "$aix_use_runtimelinking" = yes; then
13657 # Warning - without using the other runtime loading flags (-brtl),
13658 # -berok will link without error, but may produce a broken library.
13659 allow_undefined_flag_F77='-berok'
13660 # Determine the default libpath from the value encoded in an empty executable.
13661 cat >conftest.$ac_ext <<_ACEOF
13662 program main
13663
13664 end
13665_ACEOF
13666rm -f conftest.$ac_objext conftest$ac_exeext
13667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013668 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013669 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013675 { ac_try='test -z "$ac_f77_werror_flag"
13676 || test ! -s conftest.err'
13677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13678 (eval $ac_try) 2>&5
13679 ac_status=$?
13680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13681 (exit $ac_status); }; } &&
13682 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13684 (eval $ac_try) 2>&5
13685 ac_status=$?
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688
13689aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13690}'`
13691# Check for a 64-bit object if we didn't find anything.
13692if 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; }
13693}'`; fi
13694else
13695 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013696sed 's/^/| /' conftest.$ac_ext >&5
13697
John Criswell47fdd832003-07-14 16:52:07 +000013698fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013699rm -f conftest.err conftest.$ac_objext \
13700 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013701if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13702
13703 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13704 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"
13705 else
13706 if test "$host_cpu" = ia64; then
13707 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13708 allow_undefined_flag_F77="-z nodefs"
13709 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"
13710 else
13711 # Determine the default libpath from the value encoded in an empty executable.
13712 cat >conftest.$ac_ext <<_ACEOF
13713 program main
13714
13715 end
13716_ACEOF
13717rm -f conftest.$ac_objext conftest$ac_exeext
13718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000013719 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013720 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000013721 grep -v '^ *+' conftest.er1 >conftest.err
13722 rm -f conftest.er1
13723 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000013726 { ac_try='test -z "$ac_f77_werror_flag"
13727 || test ! -s conftest.err'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13730 ac_status=$?
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; } &&
13733 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13735 (eval $ac_try) 2>&5
13736 ac_status=$?
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); }; }; then
13739
13740aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13741}'`
13742# Check for a 64-bit object if we didn't find anything.
13743if 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; }
13744}'`; fi
13745else
13746 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013747sed 's/^/| /' conftest.$ac_ext >&5
13748
John Criswell47fdd832003-07-14 16:52:07 +000013749fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000013750rm -f conftest.err conftest.$ac_objext \
13751 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013752if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13753
13754 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13755 # Warning - without using the other run time loading flags,
13756 # -berok will link without error, but may produce a broken library.
13757 no_undefined_flag_F77=' ${wl}-bernotok'
13758 allow_undefined_flag_F77=' ${wl}-berok'
13759 # -bexpall does not export symbols beginning with underscore (_)
13760 always_export_symbols_F77=yes
13761 # Exported symbols can be pulled into shared objects from archives
13762 whole_archive_flag_spec_F77=' '
13763 archive_cmds_need_lc_F77=yes
13764 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013765 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 +000013766 fi
13767 fi
13768 ;;
13769
13770 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000013771 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 +000013772 hardcode_libdir_flag_spec_F77='-L$libdir'
13773 hardcode_minus_L_F77=yes
13774 # see comment about different semantics on the GNU ld section
13775 ld_shlibs_F77=no
13776 ;;
13777
Reid Spencer2706f8c2004-09-19 23:53:36 +000013778 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000013779 export_dynamic_flag_spec_F77=-rdynamic
13780 ;;
13781
13782 cygwin* | mingw* | pw32*)
13783 # When not using gcc, we currently assume that we are using
13784 # Microsoft Visual C++.
13785 # hardcode_libdir_flag_spec is actually meaningless, as there is
13786 # no search path for DLLs.
13787 hardcode_libdir_flag_spec_F77=' '
13788 allow_undefined_flag_F77=unsupported
13789 # Tell ltmain to make .lib files, not .a files.
13790 libext=lib
13791 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013792 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000013793 # FIXME: Setting linknames here is a bad hack.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013794 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 +000013795 # The linker will automatically build a .lib file if we build a DLL.
13796 old_archive_From_new_cmds_F77='true'
13797 # FIXME: Should let the user specify the lib program.
13798 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13799 fix_srcfile_path='`cygpath -w "$srcfile"`'
13800 enable_shared_with_static_runtimes_F77=yes
13801 ;;
13802
13803 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000013804 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000013805 rhapsody* | darwin1.[012])
13806 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13807 ;;
13808 *) # Darwin 1.3 on
13809 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13810 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13811 else
13812 case ${MACOSX_DEPLOYMENT_TARGET} in
13813 10.[012])
13814 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13815 ;;
13816 10.*)
13817 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13818 ;;
13819 esac
13820 fi
13821 ;;
John Criswell47fdd832003-07-14 16:52:07 +000013822 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000013823 archive_cmds_need_lc_F77=no
John Criswell47fdd832003-07-14 16:52:07 +000013824 hardcode_direct_F77=no
13825 hardcode_automatic_F77=yes
13826 hardcode_shlibpath_var_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000013827 whole_archive_flag_spec_F77=''
John Criswell47fdd832003-07-14 16:52:07 +000013828 link_all_deplibs_F77=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000013829 if test "$GCC" = yes ; then
13830 output_verbose_link_cmd='echo'
13831 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13832 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13833 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13834 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}'
13835 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}'
13836 else
13837 case "$cc_basename" in
13838 xlc*)
13839 output_verbose_link_cmd='echo'
13840 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13841 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13842 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13843 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}'
13844 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}'
13845 ;;
13846 *)
13847 ld_shlibs_F77=no
13848 ;;
13849 esac
John Criswell47fdd832003-07-14 16:52:07 +000013850 fi
13851 ;;
13852
13853 dgux*)
13854 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13855 hardcode_libdir_flag_spec_F77='-L$libdir'
13856 hardcode_shlibpath_var_F77=no
13857 ;;
13858
13859 freebsd1*)
13860 ld_shlibs_F77=no
13861 ;;
13862
13863 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13864 # support. Future versions do this automatically, but an explicit c++rt0.o
13865 # does not break anything, and helps significantly (at the cost of a little
13866 # extra space).
13867 freebsd2.2*)
13868 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13869 hardcode_libdir_flag_spec_F77='-R$libdir'
13870 hardcode_direct_F77=yes
13871 hardcode_shlibpath_var_F77=no
13872 ;;
13873
13874 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13875 freebsd2*)
13876 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13877 hardcode_direct_F77=yes
13878 hardcode_minus_L_F77=yes
13879 hardcode_shlibpath_var_F77=no
13880 ;;
13881
13882 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000013883 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000013884 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13885 hardcode_libdir_flag_spec_F77='-R$libdir'
13886 hardcode_direct_F77=yes
13887 hardcode_shlibpath_var_F77=no
13888 ;;
13889
13890 hpux9*)
13891 if test "$GCC" = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000013892 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 +000013893 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000013894 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 +000013895 fi
13896 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13897 hardcode_libdir_separator_F77=:
13898 hardcode_direct_F77=yes
13899
13900 # hardcode_minus_L: Not really in the search PATH,
13901 # but as the default location of the library.
13902 hardcode_minus_L_F77=yes
13903 export_dynamic_flag_spec_F77='${wl}-E'
13904 ;;
13905
13906 hpux10* | hpux11*)
13907 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13908 case "$host_cpu" in
13909 hppa*64*|ia64*)
13910 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13911 ;;
13912 *)
13913 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13914 ;;
13915 esac
13916 else
13917 case "$host_cpu" in
13918 hppa*64*|ia64*)
13919 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13920 ;;
13921 *)
13922 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13923 ;;
13924 esac
13925 fi
13926 if test "$with_gnu_ld" = no; then
13927 case "$host_cpu" in
13928 hppa*64*)
13929 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13930 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13931 hardcode_libdir_separator_F77=:
13932 hardcode_direct_F77=no
13933 hardcode_shlibpath_var_F77=no
13934 ;;
13935 ia64*)
13936 hardcode_libdir_flag_spec_F77='-L$libdir'
13937 hardcode_direct_F77=no
13938 hardcode_shlibpath_var_F77=no
13939
13940 # hardcode_minus_L: Not really in the search PATH,
13941 # but as the default location of the library.
13942 hardcode_minus_L_F77=yes
13943 ;;
13944 *)
13945 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13946 hardcode_libdir_separator_F77=:
13947 hardcode_direct_F77=yes
13948 export_dynamic_flag_spec_F77='${wl}-E'
13949
13950 # hardcode_minus_L: Not really in the search PATH,
13951 # but as the default location of the library.
13952 hardcode_minus_L_F77=yes
13953 ;;
13954 esac
13955 fi
13956 ;;
13957
13958 irix5* | irix6* | nonstopux*)
13959 if test "$GCC" = yes; then
13960 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'
13961 else
13962 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'
13963 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13964 fi
13965 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13966 hardcode_libdir_separator_F77=:
13967 link_all_deplibs_F77=yes
13968 ;;
13969
13970 netbsd*)
13971 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13972 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13973 else
13974 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13975 fi
13976 hardcode_libdir_flag_spec_F77='-R$libdir'
13977 hardcode_direct_F77=yes
13978 hardcode_shlibpath_var_F77=no
13979 ;;
13980
13981 newsos6)
13982 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13983 hardcode_direct_F77=yes
13984 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13985 hardcode_libdir_separator_F77=:
13986 hardcode_shlibpath_var_F77=no
13987 ;;
13988
13989 openbsd*)
13990 hardcode_direct_F77=yes
13991 hardcode_shlibpath_var_F77=no
13992 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13993 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000013994 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 +000013995 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13996 export_dynamic_flag_spec_F77='${wl}-E'
13997 else
13998 case $host_os in
13999 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14000 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14001 hardcode_libdir_flag_spec_F77='-R$libdir'
14002 ;;
14003 *)
14004 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14005 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14006 ;;
14007 esac
14008 fi
14009 ;;
14010
14011 os2*)
14012 hardcode_libdir_flag_spec_F77='-L$libdir'
14013 hardcode_minus_L_F77=yes
14014 allow_undefined_flag_F77=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000014015 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 +000014016 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14017 ;;
14018
14019 osf3*)
14020 if test "$GCC" = yes; then
14021 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14022 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'
14023 else
14024 allow_undefined_flag_F77=' -expect_unresolved \*'
14025 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'
14026 fi
14027 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14028 hardcode_libdir_separator_F77=:
14029 ;;
14030
14031 osf4* | osf5*) # as osf3* with the addition of -msym flag
14032 if test "$GCC" = yes; then
14033 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14034 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'
14035 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14036 else
14037 allow_undefined_flag_F77=' -expect_unresolved \*'
14038 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 +000014039 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 +000014040 # Both c and cxx compiler support -rpath directly
14041 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14042 fi
14043 hardcode_libdir_separator_F77=:
14044 ;;
14045
14046 sco3.2v5*)
14047 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14048 hardcode_shlibpath_var_F77=no
14049 export_dynamic_flag_spec_F77='${wl}-Bexport'
14050 runpath_var=LD_RUN_PATH
14051 hardcode_runpath_var=yes
14052 ;;
14053
14054 solaris*)
14055 no_undefined_flag_F77=' -z text'
14056 if test "$GCC" = yes; then
14057 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014058 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 +000014059 else
14060 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014061 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 +000014062 fi
14063 hardcode_libdir_flag_spec_F77='-R$libdir'
14064 hardcode_shlibpath_var_F77=no
14065 case $host_os in
14066 solaris2.[0-5] | solaris2.[0-5].*) ;;
14067 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14068 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14069 esac
14070 link_all_deplibs_F77=yes
14071 ;;
14072
14073 sunos4*)
14074 if test "x$host_vendor" = xsequent; then
14075 # Use $CC to link under sequent, because it throws in some extra .o
14076 # files that make .init and .fini sections work.
14077 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14078 else
14079 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14080 fi
14081 hardcode_libdir_flag_spec_F77='-L$libdir'
14082 hardcode_direct_F77=yes
14083 hardcode_minus_L_F77=yes
14084 hardcode_shlibpath_var_F77=no
14085 ;;
14086
14087 sysv4)
14088 case $host_vendor in
14089 sni)
14090 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14091 hardcode_direct_F77=yes # is this really true???
14092 ;;
14093 siemens)
14094 ## LD is ld it makes a PLAMLIB
14095 ## CC just makes a GrossModule.
14096 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14097 reload_cmds_F77='$CC -r -o $output$reload_objs'
14098 hardcode_direct_F77=no
14099 ;;
14100 motorola)
14101 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14102 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14103 ;;
14104 esac
14105 runpath_var='LD_RUN_PATH'
14106 hardcode_shlibpath_var_F77=no
14107 ;;
14108
14109 sysv4.3*)
14110 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14111 hardcode_shlibpath_var_F77=no
14112 export_dynamic_flag_spec_F77='-Bexport'
14113 ;;
14114
14115 sysv4*MP*)
14116 if test -d /usr/nec; then
14117 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14118 hardcode_shlibpath_var_F77=no
14119 runpath_var=LD_RUN_PATH
14120 hardcode_runpath_var=yes
14121 ld_shlibs_F77=yes
14122 fi
14123 ;;
14124
14125 sysv4.2uw2*)
14126 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14127 hardcode_direct_F77=yes
14128 hardcode_minus_L_F77=no
14129 hardcode_shlibpath_var_F77=no
14130 hardcode_runpath_var=yes
14131 runpath_var=LD_RUN_PATH
14132 ;;
14133
14134 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14135 no_undefined_flag_F77='${wl}-z ${wl}text'
14136 if test "$GCC" = yes; then
14137 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14138 else
14139 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14140 fi
14141 runpath_var='LD_RUN_PATH'
14142 hardcode_shlibpath_var_F77=no
14143 ;;
14144
14145 sysv5*)
14146 no_undefined_flag_F77=' -z text'
14147 # $CC -shared without GNU ld will not create a library from C++
14148 # object files and a static libstdc++, better avoid it by now
14149 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014150 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 +000014151 hardcode_libdir_flag_spec_F77=
14152 hardcode_shlibpath_var_F77=no
14153 runpath_var='LD_RUN_PATH'
14154 ;;
14155
14156 uts4*)
14157 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14158 hardcode_libdir_flag_spec_F77='-L$libdir'
14159 hardcode_shlibpath_var_F77=no
14160 ;;
14161
14162 *)
14163 ld_shlibs_F77=no
14164 ;;
14165 esac
14166 fi
14167
14168echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14169echo "${ECHO_T}$ld_shlibs_F77" >&6
14170test "$ld_shlibs_F77" = no && can_build_shared=no
14171
14172variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14173if test "$GCC" = yes; then
14174 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14175fi
14176
14177#
14178# Do we need to explicitly link libc?
14179#
14180case "x$archive_cmds_need_lc_F77" in
14181x|xyes)
14182 # Assume -lc should be added
14183 archive_cmds_need_lc_F77=yes
14184
14185 if test "$enable_shared" = yes && test "$GCC" = yes; then
14186 case $archive_cmds_F77 in
Reid Spencer2706f8c2004-09-19 23:53:36 +000014187 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000014188 # FIXME: we may have to deal with multi-command sequences.
14189 ;;
14190 '$CC '*)
14191 # Test whether the compiler implicitly links with -lc since on some
14192 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14193 # to ld, don't add -lc before -lgcc.
14194 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14195echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14196 $rm conftest*
14197 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14198
14199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14200 (eval $ac_compile) 2>&5
14201 ac_status=$?
14202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14203 (exit $ac_status); } 2>conftest.err; then
14204 soname=conftest
14205 lib=conftest
14206 libobjs=conftest.$ac_objext
14207 deplibs=
14208 wl=$lt_prog_compiler_wl_F77
14209 compiler_flags=-v
14210 linker_flags=-v
14211 verstring=
14212 output_objdir=.
14213 libname=conftest
14214 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14215 allow_undefined_flag_F77=
14216 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14217 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14218 ac_status=$?
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }
14221 then
14222 archive_cmds_need_lc_F77=no
14223 else
14224 archive_cmds_need_lc_F77=yes
14225 fi
14226 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14227 else
14228 cat conftest.err 1>&5
14229 fi
14230 $rm conftest*
14231 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14232echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14233 ;;
14234 esac
14235 fi
14236 ;;
14237esac
14238
John Criswell47fdd832003-07-14 16:52:07 +000014239echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14240echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14241library_names_spec=
14242libname_spec='lib$name'
14243soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000014244shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000014245postinstall_cmds=
14246postuninstall_cmds=
14247finish_cmds=
14248finish_eval=
14249shlibpath_var=
14250shlibpath_overrides_runpath=unknown
14251version_type=none
14252dynamic_linker="$host_os ld.so"
14253sys_lib_dlsearch_path_spec="/lib /usr/lib"
14254if test "$GCC" = yes; then
14255 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14256 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14257 # if the path contains ";" then we assume it to be the separator
14258 # otherwise default to the standard path separator (i.e. ":") - it is
14259 # assumed that no part of a normal pathname contains ";" but that should
14260 # okay in the real world where ";" in dirpaths is itself problematic.
14261 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14262 else
14263 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14264 fi
14265else
14266 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14267fi
14268need_lib_prefix=unknown
14269hardcode_into_libs=no
14270
14271# when you set need_version to no, make sure it does not cause -set_version
14272# flags to be left without arguments
14273need_version=unknown
14274
14275case $host_os in
14276aix3*)
14277 version_type=linux
14278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14279 shlibpath_var=LIBPATH
14280
14281 # AIX 3 has no versioning support, so we append a major version to the name.
14282 soname_spec='${libname}${release}${shared_ext}$major'
14283 ;;
14284
14285aix4* | aix5*)
14286 version_type=linux
14287 need_lib_prefix=no
14288 need_version=no
14289 hardcode_into_libs=yes
14290 if test "$host_cpu" = ia64; then
14291 # AIX 5 supports IA64
14292 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14293 shlibpath_var=LD_LIBRARY_PATH
14294 else
14295 # With GCC up to 2.95.x, collect2 would create an import file
14296 # for dependence libraries. The import file would start with
14297 # the line `#! .'. This would cause the generated library to
14298 # depend on `.', always an invalid library. This was fixed in
14299 # development snapshots of GCC prior to 3.0.
14300 case $host_os in
14301 aix4 | aix4.[01] | aix4.[01].*)
14302 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14303 echo ' yes '
14304 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14305 :
14306 else
14307 can_build_shared=no
14308 fi
14309 ;;
14310 esac
14311 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14312 # soname into executable. Probably we can add versioning support to
14313 # collect2, so additional links can be useful in future.
14314 if test "$aix_use_runtimelinking" = yes; then
14315 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14316 # instead of lib<name>.a to let people know that these are not
14317 # typical AIX shared libraries.
14318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14319 else
14320 # We preserve .a as extension for shared libraries through AIX4.2
14321 # and later when we are not doing run time linking.
14322 library_names_spec='${libname}${release}.a $libname.a'
14323 soname_spec='${libname}${release}${shared_ext}$major'
14324 fi
14325 shlibpath_var=LIBPATH
14326 fi
14327 ;;
14328
14329amigaos*)
14330 library_names_spec='$libname.ixlibrary $libname.a'
14331 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014332 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 +000014333 ;;
14334
14335beos*)
14336 library_names_spec='${libname}${shared_ext}'
14337 dynamic_linker="$host_os ld.so"
14338 shlibpath_var=LIBRARY_PATH
14339 ;;
14340
Reid Spencer2706f8c2004-09-19 23:53:36 +000014341bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000014342 version_type=linux
14343 need_version=no
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14345 soname_spec='${libname}${release}${shared_ext}$major'
14346 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14347 shlibpath_var=LD_LIBRARY_PATH
14348 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14349 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14350 # the default ld.so.conf also contains /usr/contrib/lib and
14351 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14352 # libtool to hard-code these into programs
14353 ;;
14354
14355cygwin* | mingw* | pw32*)
14356 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000014357 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014358 need_version=no
14359 need_lib_prefix=no
14360
14361 case $GCC,$host_os in
14362 yes,cygwin* | yes,mingw* | yes,pw32*)
14363 library_names_spec='$libname.dll.a'
14364 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer2706f8c2004-09-19 23:53:36 +000014365 postinstall_cmds='base_file=`basename \${file}`;
14366 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
14367 dldir=$destdir/`dirname \$dlpath`;
14368 test -d \$dldir || mkdir -p \$dldir;
John Criswell47fdd832003-07-14 16:52:07 +000014369 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014370 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
14371 dlpath=$dir/\$dldll;
John Criswell47fdd832003-07-14 16:52:07 +000014372 $rm \$dlpath'
14373 shlibpath_overrides_runpath=yes
14374
14375 case $host_os in
14376 cygwin*)
14377 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14378 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 +000014379 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000014380 ;;
14381 mingw*)
14382 # MinGW DLLs use traditional 'lib' prefix
14383 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14384 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14385 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14386 # It is most probably a Windows format PATH printed by
14387 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14388 # path with ; separators, and with drive letters. We can handle the
14389 # drive letters (cygwin fileutils understands them), so leave them,
14390 # especially as we might pass files found there to a mingw objdump,
14391 # which wouldn't understand a cygwinified path. Ahh.
14392 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14393 else
14394 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14395 fi
14396 ;;
14397 pw32*)
14398 # pw32 DLLs use 'pw' prefix rather than 'lib'
14399 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14400 ;;
14401 esac
14402 ;;
14403
14404 *)
14405 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14406 ;;
14407 esac
14408 dynamic_linker='Win32 ld.exe'
14409 # FIXME: first we should search . and the directory the executable is in
14410 shlibpath_var=PATH
14411 ;;
14412
14413darwin* | rhapsody*)
14414 dynamic_linker="$host_os dyld"
14415 version_type=darwin
14416 need_lib_prefix=no
14417 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000014418 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000014419 soname_spec='${libname}${release}${major}$shared_ext'
14420 shlibpath_overrides_runpath=yes
14421 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000014422 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000014423 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014424 if test "$GCC" = yes; then
14425 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"`
14426 else
14427 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000014428 fi
14429 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14430 ;;
14431
14432dgux*)
14433 version_type=linux
14434 need_lib_prefix=no
14435 need_version=no
14436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14437 soname_spec='${libname}${release}${shared_ext}$major'
14438 shlibpath_var=LD_LIBRARY_PATH
14439 ;;
14440
14441freebsd1*)
14442 dynamic_linker=no
14443 ;;
14444
Reid Spencer2706f8c2004-09-19 23:53:36 +000014445kfreebsd*-gnu)
14446 version_type=linux
14447 need_lib_prefix=no
14448 need_version=no
14449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14450 soname_spec='${libname}${release}${shared_ext}$major'
14451 shlibpath_var=LD_LIBRARY_PATH
14452 shlibpath_overrides_runpath=no
14453 hardcode_into_libs=yes
14454 dynamic_linker='GNU ld.so'
14455 ;;
14456
John Criswell47fdd832003-07-14 16:52:07 +000014457freebsd*)
14458 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14459 version_type=freebsd-$objformat
14460 case $version_type in
14461 freebsd-elf*)
14462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14463 need_version=no
14464 need_lib_prefix=no
14465 ;;
14466 freebsd-*)
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14468 need_version=yes
14469 ;;
14470 esac
14471 shlibpath_var=LD_LIBRARY_PATH
14472 case $host_os in
14473 freebsd2*)
14474 shlibpath_overrides_runpath=yes
14475 ;;
14476 freebsd3.01* | freebsdelf3.01*)
14477 shlibpath_overrides_runpath=yes
14478 hardcode_into_libs=yes
14479 ;;
14480 *) # from 3.2 on
14481 shlibpath_overrides_runpath=no
14482 hardcode_into_libs=yes
14483 ;;
14484 esac
14485 ;;
14486
14487gnu*)
14488 version_type=linux
14489 need_lib_prefix=no
14490 need_version=no
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14492 soname_spec='${libname}${release}${shared_ext}$major'
14493 shlibpath_var=LD_LIBRARY_PATH
14494 hardcode_into_libs=yes
14495 ;;
14496
14497hpux9* | hpux10* | hpux11*)
14498 # Give a soname corresponding to the major version so that dld.sl refuses to
14499 # link against other versions.
14500 version_type=sunos
14501 need_lib_prefix=no
14502 need_version=no
14503 case "$host_cpu" in
14504 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014505 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000014506 hardcode_into_libs=yes
14507 dynamic_linker="$host_os dld.so"
14508 shlibpath_var=LD_LIBRARY_PATH
14509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14511 soname_spec='${libname}${release}${shared_ext}$major'
14512 if test "X$HPUX_IA64_MODE" = X32; then
14513 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14514 else
14515 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14516 fi
14517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14518 ;;
14519 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014520 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000014521 hardcode_into_libs=yes
14522 dynamic_linker="$host_os dld.sl"
14523 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14526 soname_spec='${libname}${release}${shared_ext}$major'
14527 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14529 ;;
14530 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000014531 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000014532 dynamic_linker="$host_os dld.sl"
14533 shlibpath_var=SHLIB_PATH
14534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14536 soname_spec='${libname}${release}${shared_ext}$major'
14537 ;;
14538 esac
14539 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14540 postinstall_cmds='chmod 555 $lib'
14541 ;;
14542
14543irix5* | irix6* | nonstopux*)
14544 case $host_os in
14545 nonstopux*) version_type=nonstopux ;;
14546 *)
14547 if test "$lt_cv_prog_gnu_ld" = yes; then
14548 version_type=linux
14549 else
14550 version_type=irix
14551 fi ;;
14552 esac
14553 need_lib_prefix=no
14554 need_version=no
14555 soname_spec='${libname}${release}${shared_ext}$major'
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14557 case $host_os in
14558 irix5* | nonstopux*)
14559 libsuff= shlibsuff=
14560 ;;
14561 *)
14562 case $LD in # libtool.m4 will add one of these switches to LD
14563 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14564 libsuff= shlibsuff= libmagic=32-bit;;
14565 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14566 libsuff=32 shlibsuff=N32 libmagic=N32;;
14567 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14568 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14569 *) libsuff= shlibsuff= libmagic=never-match;;
14570 esac
14571 ;;
14572 esac
14573 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14574 shlibpath_overrides_runpath=no
14575 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14576 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14577 hardcode_into_libs=yes
14578 ;;
14579
14580# No shared lib support for Linux oldld, aout, or coff.
14581linux*oldld* | linux*aout* | linux*coff*)
14582 dynamic_linker=no
14583 ;;
14584
14585# This must be Linux ELF.
14586linux*)
14587 version_type=linux
14588 need_lib_prefix=no
14589 need_version=no
14590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591 soname_spec='${libname}${release}${shared_ext}$major'
14592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14593 shlibpath_var=LD_LIBRARY_PATH
14594 shlibpath_overrides_runpath=no
14595 # This implies no fast_install, which is unacceptable.
14596 # Some rework will be needed to allow for fast_install
14597 # before this can be enabled.
14598 hardcode_into_libs=yes
14599
Reid Spencer2706f8c2004-09-19 23:53:36 +000014600 # Append ld.so.conf contents to the search path
14601 if test -f /etc/ld.so.conf; then
14602 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14603 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14604 fi
14605
John Criswell47fdd832003-07-14 16:52:07 +000014606 # We used to test for /lib/ld.so.1 and disable shared libraries on
14607 # powerpc, because MkLinux only supported shared libraries with the
14608 # GNU dynamic linker. Since this was broken with cross compilers,
14609 # most powerpc-linux boxes support dynamic linking these days and
14610 # people can always --disable-shared, the test was removed, and we
14611 # assume the GNU/Linux dynamic linker is in use.
14612 dynamic_linker='GNU/Linux ld.so'
14613 ;;
14614
Reid Spencer2706f8c2004-09-19 23:53:36 +000014615knetbsd*-gnu)
14616 version_type=linux
14617 need_lib_prefix=no
14618 need_version=no
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14620 soname_spec='${libname}${release}${shared_ext}$major'
14621 shlibpath_var=LD_LIBRARY_PATH
14622 shlibpath_overrides_runpath=no
14623 hardcode_into_libs=yes
14624 dynamic_linker='GNU ld.so'
14625 ;;
14626
John Criswell47fdd832003-07-14 16:52:07 +000014627netbsd*)
14628 version_type=sunos
14629 need_lib_prefix=no
14630 need_version=no
14631 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14634 dynamic_linker='NetBSD (a.out) ld.so'
14635 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000014636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000014637 soname_spec='${libname}${release}${shared_ext}$major'
14638 dynamic_linker='NetBSD ld.elf_so'
14639 fi
14640 shlibpath_var=LD_LIBRARY_PATH
14641 shlibpath_overrides_runpath=yes
14642 hardcode_into_libs=yes
14643 ;;
14644
14645newsos6)
14646 version_type=linux
14647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14648 shlibpath_var=LD_LIBRARY_PATH
14649 shlibpath_overrides_runpath=yes
14650 ;;
14651
Reid Spencer2706f8c2004-09-19 23:53:36 +000014652nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000014653 version_type=linux
14654 need_lib_prefix=no
14655 need_version=no
14656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14657 soname_spec='${libname}${release}${shared_ext}$major'
14658 shlibpath_var=LD_LIBRARY_PATH
14659 shlibpath_overrides_runpath=yes
14660 ;;
14661
14662openbsd*)
14663 version_type=sunos
14664 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000014665 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14667 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14668 shlibpath_var=LD_LIBRARY_PATH
14669 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14670 case $host_os in
14671 openbsd2.[89] | openbsd2.[89].*)
14672 shlibpath_overrides_runpath=no
14673 ;;
14674 *)
14675 shlibpath_overrides_runpath=yes
14676 ;;
14677 esac
14678 else
14679 shlibpath_overrides_runpath=yes
14680 fi
14681 ;;
14682
14683os2*)
14684 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000014685 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000014686 need_lib_prefix=no
14687 library_names_spec='$libname${shared_ext} $libname.a'
14688 dynamic_linker='OS/2 ld.exe'
14689 shlibpath_var=LIBPATH
14690 ;;
14691
14692osf3* | osf4* | osf5*)
14693 version_type=osf
14694 need_lib_prefix=no
14695 need_version=no
14696 soname_spec='${libname}${release}${shared_ext}$major'
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698 shlibpath_var=LD_LIBRARY_PATH
14699 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14700 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14701 ;;
14702
14703sco3.2v5*)
14704 version_type=osf
14705 soname_spec='${libname}${release}${shared_ext}$major'
14706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14707 shlibpath_var=LD_LIBRARY_PATH
14708 ;;
14709
14710solaris*)
14711 version_type=linux
14712 need_lib_prefix=no
14713 need_version=no
14714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14715 soname_spec='${libname}${release}${shared_ext}$major'
14716 shlibpath_var=LD_LIBRARY_PATH
14717 shlibpath_overrides_runpath=yes
14718 hardcode_into_libs=yes
14719 # ldd complains unless libraries are executable
14720 postinstall_cmds='chmod +x $lib'
14721 ;;
14722
14723sunos4*)
14724 version_type=sunos
14725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14726 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 shlibpath_overrides_runpath=yes
14729 if test "$with_gnu_ld" = yes; then
14730 need_lib_prefix=no
14731 fi
14732 need_version=yes
14733 ;;
14734
14735sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14736 version_type=linux
14737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14738 soname_spec='${libname}${release}${shared_ext}$major'
14739 shlibpath_var=LD_LIBRARY_PATH
14740 case $host_vendor in
14741 sni)
14742 shlibpath_overrides_runpath=no
14743 need_lib_prefix=no
14744 export_dynamic_flag_spec='${wl}-Blargedynsym'
14745 runpath_var=LD_RUN_PATH
14746 ;;
14747 siemens)
14748 need_lib_prefix=no
14749 ;;
14750 motorola)
14751 need_lib_prefix=no
14752 need_version=no
14753 shlibpath_overrides_runpath=no
14754 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14755 ;;
14756 esac
14757 ;;
14758
14759sysv4*MP*)
14760 if test -d /usr/nec ;then
14761 version_type=linux
14762 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14763 soname_spec='$libname${shared_ext}.$major'
14764 shlibpath_var=LD_LIBRARY_PATH
14765 fi
14766 ;;
14767
14768uts4*)
14769 version_type=linux
14770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14771 soname_spec='${libname}${release}${shared_ext}$major'
14772 shlibpath_var=LD_LIBRARY_PATH
14773 ;;
14774
14775*)
14776 dynamic_linker=no
14777 ;;
14778esac
14779echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14780echo "${ECHO_T}$dynamic_linker" >&6
14781test "$dynamic_linker" = no && can_build_shared=no
14782
Reid Spencer2706f8c2004-09-19 23:53:36 +000014783echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14784echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14785hardcode_action_F77=
14786if test -n "$hardcode_libdir_flag_spec_F77" || \
14787 test -n "$runpath_var_F77" || \
14788 test "X$hardcode_automatic_F77" = "Xyes" ; then
14789
14790 # We can hardcode non-existant directories.
14791 if test "$hardcode_direct_F77" != no &&
14792 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14793 # have to relink, otherwise we might link with an installed library
14794 # when we should be linking with a yet-to-be-installed one
14795 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14796 test "$hardcode_minus_L_F77" != no; then
14797 # Linking always hardcodes the temporary library directory.
14798 hardcode_action_F77=relink
14799 else
14800 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14801 hardcode_action_F77=immediate
14802 fi
14803else
14804 # We cannot hardcode anything, or else we can only hardcode existing
14805 # directories.
14806 hardcode_action_F77=unsupported
14807fi
14808echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14809echo "${ECHO_T}$hardcode_action_F77" >&6
14810
14811if test "$hardcode_action_F77" = relink; then
14812 # Fast installation is not supported
14813 enable_fast_install=no
14814elif test "$shlibpath_overrides_runpath" = yes ||
14815 test "$enable_shared" = no; then
14816 # Fast installation is not necessary
14817 enable_fast_install=needless
14818fi
14819
14820striplib=
14821old_striplib=
14822echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14823echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14824if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14825 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14826 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14827 echo "$as_me:$LINENO: result: yes" >&5
14828echo "${ECHO_T}yes" >&6
14829else
14830# FIXME - insert some real tests, host_os isn't really good enough
14831 case $host_os in
14832 darwin*)
14833 if test -n "$STRIP" ; then
14834 striplib="$STRIP -x"
14835 echo "$as_me:$LINENO: result: yes" >&5
14836echo "${ECHO_T}yes" >&6
14837 else
14838 echo "$as_me:$LINENO: result: no" >&5
14839echo "${ECHO_T}no" >&6
14840fi
14841 ;;
14842 *)
14843 echo "$as_me:$LINENO: result: no" >&5
14844echo "${ECHO_T}no" >&6
14845 ;;
14846 esac
14847fi
14848
14849
John Criswell47fdd832003-07-14 16:52:07 +000014850
14851# The else clause should only fire when bootstrapping the
14852# libtool distribution, otherwise you forgot to ship ltmain.sh
14853# with your package, and you will get complaints that there are
14854# no rules to generate ltmain.sh.
14855if test -f "$ltmain"; then
14856 # See if we are running on zsh, and set the options which allow our commands through
14857 # without removal of \ escapes.
14858 if test -n "${ZSH_VERSION+set}" ; then
14859 setopt NO_GLOB_SUBST
14860 fi
14861 # Now quote all the things that may contain metacharacters while being
14862 # careful not to overquote the AC_SUBSTed values. We take copies of the
14863 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014864 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14865 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000014866 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14867 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14868 deplibs_check_method reload_flag reload_cmds need_locks \
14869 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14870 lt_cv_sys_global_symbol_to_c_name_address \
14871 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14872 old_postinstall_cmds old_postuninstall_cmds \
14873 compiler_F77 \
14874 CC_F77 \
14875 LD_F77 \
14876 lt_prog_compiler_wl_F77 \
14877 lt_prog_compiler_pic_F77 \
14878 lt_prog_compiler_static_F77 \
14879 lt_prog_compiler_no_builtin_flag_F77 \
14880 export_dynamic_flag_spec_F77 \
14881 thread_safe_flag_spec_F77 \
14882 whole_archive_flag_spec_F77 \
14883 enable_shared_with_static_runtimes_F77 \
14884 old_archive_cmds_F77 \
14885 old_archive_from_new_cmds_F77 \
14886 predep_objects_F77 \
14887 postdep_objects_F77 \
14888 predeps_F77 \
14889 postdeps_F77 \
14890 compiler_lib_search_path_F77 \
14891 archive_cmds_F77 \
14892 archive_expsym_cmds_F77 \
14893 postinstall_cmds_F77 \
14894 postuninstall_cmds_F77 \
14895 old_archive_from_expsyms_cmds_F77 \
14896 allow_undefined_flag_F77 \
14897 no_undefined_flag_F77 \
14898 export_symbols_cmds_F77 \
14899 hardcode_libdir_flag_spec_F77 \
14900 hardcode_libdir_flag_spec_ld_F77 \
14901 hardcode_libdir_separator_F77 \
14902 hardcode_automatic_F77 \
14903 module_cmds_F77 \
14904 module_expsym_cmds_F77 \
14905 lt_cv_prog_compiler_c_o_F77 \
14906 exclude_expsyms_F77 \
14907 include_expsyms_F77; do
14908
14909 case $var in
14910 old_archive_cmds_F77 | \
14911 old_archive_from_new_cmds_F77 | \
14912 archive_cmds_F77 | \
14913 archive_expsym_cmds_F77 | \
14914 module_cmds_F77 | \
14915 module_expsym_cmds_F77 | \
14916 old_archive_from_expsyms_cmds_F77 | \
14917 export_symbols_cmds_F77 | \
14918 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14919 postinstall_cmds | postuninstall_cmds | \
14920 old_postinstall_cmds | old_postuninstall_cmds | \
14921 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14922 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000014923 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 +000014924 ;;
14925 *)
14926 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14927 ;;
14928 esac
14929 done
14930
14931 case $lt_echo in
14932 *'\$0 --fallback-echo"')
14933 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14934 ;;
14935 esac
14936
14937cfgfile="$ofile"
14938
14939 cat <<__EOF__ >> "$cfgfile"
14940# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14941
14942# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14943
14944# Shell to use when invoking shell scripts.
14945SHELL=$lt_SHELL
14946
14947# Whether or not to build shared libraries.
14948build_libtool_libs=$enable_shared
14949
14950# Whether or not to build static libraries.
14951build_old_libs=$enable_static
14952
14953# Whether or not to add -lc for building shared libraries.
14954build_libtool_need_lc=$archive_cmds_need_lc_F77
14955
14956# Whether or not to disallow shared libs when runtime libs are static
14957allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14958
14959# Whether or not to optimize for fast installation.
14960fast_install=$enable_fast_install
14961
14962# The host system.
14963host_alias=$host_alias
14964host=$host
14965
14966# An echo program that does not interpret backslashes.
14967echo=$lt_echo
14968
14969# The archiver.
14970AR=$lt_AR
14971AR_FLAGS=$lt_AR_FLAGS
14972
14973# A C compiler.
14974LTCC=$lt_LTCC
14975
14976# A language-specific compiler.
14977CC=$lt_compiler_F77
14978
14979# Is the compiler the GNU C compiler?
14980with_gcc=$GCC_F77
14981
14982# An ERE matcher.
14983EGREP=$lt_EGREP
14984
14985# The linker used to build libraries.
14986LD=$lt_LD_F77
14987
14988# Whether we need hard or soft links.
14989LN_S=$lt_LN_S
14990
14991# A BSD-compatible nm program.
14992NM=$lt_NM
14993
14994# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000014995STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000014996
14997# Used to examine libraries when file_magic_cmd begins "file"
14998MAGIC_CMD=$MAGIC_CMD
14999
15000# Used on cygwin: DLL creation program.
15001DLLTOOL="$DLLTOOL"
15002
15003# Used on cygwin: object dumper.
15004OBJDUMP="$OBJDUMP"
15005
15006# Used on cygwin: assembler.
15007AS="$AS"
15008
15009# The name of the directory that contains temporary libtool files.
15010objdir=$objdir
15011
15012# How to create reloadable object files.
15013reload_flag=$lt_reload_flag
15014reload_cmds=$lt_reload_cmds
15015
15016# How to pass a linker flag through the compiler.
15017wl=$lt_lt_prog_compiler_wl_F77
15018
15019# Object file suffix (normally "o").
15020objext="$ac_objext"
15021
15022# Old archive suffix (normally "a").
15023libext="$libext"
15024
15025# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000015026shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000015027
15028# Executable file suffix (normally "").
15029exeext="$exeext"
15030
15031# Additional compiler flags for building library objects.
15032pic_flag=$lt_lt_prog_compiler_pic_F77
15033pic_mode=$pic_mode
15034
15035# What is the maximum length of a command?
15036max_cmd_len=$lt_cv_sys_max_cmd_len
15037
15038# Does compiler simultaneously support -c and -o options?
15039compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15040
15041# Must we lock files when doing compilation ?
15042need_locks=$lt_need_locks
15043
15044# Do we need the lib prefix for modules?
15045need_lib_prefix=$need_lib_prefix
15046
15047# Do we need a version for libraries?
15048need_version=$need_version
15049
15050# Whether dlopen is supported.
15051dlopen_support=$enable_dlopen
15052
15053# Whether dlopen of programs is supported.
15054dlopen_self=$enable_dlopen_self
15055
15056# Whether dlopen of statically linked programs is supported.
15057dlopen_self_static=$enable_dlopen_self_static
15058
15059# Compiler flag to prevent dynamic linking.
15060link_static_flag=$lt_lt_prog_compiler_static_F77
15061
15062# Compiler flag to turn off builtin functions.
15063no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15064
15065# Compiler flag to allow reflexive dlopens.
15066export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15067
15068# Compiler flag to generate shared objects directly from archives.
15069whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15070
15071# Compiler flag to generate thread-safe objects.
15072thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15073
15074# Library versioning type.
15075version_type=$version_type
15076
15077# Format of library name prefix.
15078libname_spec=$lt_libname_spec
15079
15080# List of archive names. First name is the real one, the rest are links.
15081# The last name is the one that the linker finds with -lNAME.
15082library_names_spec=$lt_library_names_spec
15083
15084# The coded name of the library, if different from the real name.
15085soname_spec=$lt_soname_spec
15086
15087# Commands used to build and install an old-style archive.
15088RANLIB=$lt_RANLIB
15089old_archive_cmds=$lt_old_archive_cmds_F77
15090old_postinstall_cmds=$lt_old_postinstall_cmds
15091old_postuninstall_cmds=$lt_old_postuninstall_cmds
15092
15093# Create an old-style archive from a shared archive.
15094old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15095
15096# Create a temporary old-style archive to link instead of a shared archive.
15097old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15098
15099# Commands used to build and install a shared archive.
15100archive_cmds=$lt_archive_cmds_F77
15101archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15102postinstall_cmds=$lt_postinstall_cmds
15103postuninstall_cmds=$lt_postuninstall_cmds
15104
15105# Commands used to build a loadable module (assumed same as above if empty)
15106module_cmds=$lt_module_cmds_F77
15107module_expsym_cmds=$lt_module_expsym_cmds_F77
15108
15109# Commands to strip libraries.
15110old_striplib=$lt_old_striplib
15111striplib=$lt_striplib
15112
15113# Dependencies to place before the objects being linked to create a
15114# shared library.
15115predep_objects=$lt_predep_objects_F77
15116
15117# Dependencies to place after the objects being linked to create a
15118# shared library.
15119postdep_objects=$lt_postdep_objects_F77
15120
15121# Dependencies to place before the objects being linked to create a
15122# shared library.
15123predeps=$lt_predeps_F77
15124
15125# Dependencies to place after the objects being linked to create a
15126# shared library.
15127postdeps=$lt_postdeps_F77
15128
15129# The library search path used internally by the compiler when linking
15130# a shared library.
15131compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15132
15133# Method to check whether dependent libraries are shared objects.
15134deplibs_check_method=$lt_deplibs_check_method
15135
15136# Command to use when deplibs_check_method == file_magic.
15137file_magic_cmd=$lt_file_magic_cmd
15138
15139# Flag that allows shared libraries with undefined symbols to be built.
15140allow_undefined_flag=$lt_allow_undefined_flag_F77
15141
15142# Flag that forces no undefined symbols.
15143no_undefined_flag=$lt_no_undefined_flag_F77
15144
15145# Commands used to finish a libtool library installation in a directory.
15146finish_cmds=$lt_finish_cmds
15147
15148# Same as above, but a single script fragment to be evaled but not shown.
15149finish_eval=$lt_finish_eval
15150
15151# Take the output of nm and produce a listing of raw symbols and C names.
15152global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15153
15154# Transform the output of nm in a proper C declaration
15155global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15156
15157# Transform the output of nm in a C name address pair
15158global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15159
15160# This is the shared library runtime path variable.
15161runpath_var=$runpath_var
15162
15163# This is the shared library path variable.
15164shlibpath_var=$shlibpath_var
15165
15166# Is shlibpath searched before the hard-coded library search path?
15167shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15168
15169# How to hardcode a shared library path into an executable.
15170hardcode_action=$hardcode_action_F77
15171
15172# Whether we should hardcode library paths into libraries.
15173hardcode_into_libs=$hardcode_into_libs
15174
15175# Flag to hardcode \$libdir into a binary during linking.
15176# This must work even if \$libdir does not exist.
15177hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15178
15179# If ld is used when linking, flag to hardcode \$libdir into
15180# a binary during linking. This must work even if \$libdir does
15181# not exist.
15182hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15183
15184# Whether we need a single -rpath flag with a separated argument.
15185hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15186
15187# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15188# resulting binary.
15189hardcode_direct=$hardcode_direct_F77
15190
15191# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15192# resulting binary.
15193hardcode_minus_L=$hardcode_minus_L_F77
15194
15195# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15196# the resulting binary.
15197hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15198
15199# Set to yes if building a shared library automatically hardcodes DIR into the library
15200# and all subsequent libraries and executables linked against it.
15201hardcode_automatic=$hardcode_automatic_F77
15202
15203# Variables whose values should be saved in libtool wrapper scripts and
15204# restored at relink time.
15205variables_saved_for_relink="$variables_saved_for_relink"
15206
15207# Whether libtool must link a program against all its dependency libraries.
15208link_all_deplibs=$link_all_deplibs_F77
15209
15210# Compile-time system search path for libraries
15211sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15212
15213# Run-time system search path for libraries
15214sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15215
15216# Fix the shell variable \$srcfile for the compiler.
15217fix_srcfile_path="$fix_srcfile_path_F77"
15218
15219# Set to yes if exported symbols are required.
15220always_export_symbols=$always_export_symbols_F77
15221
15222# The commands to list exported symbols.
15223export_symbols_cmds=$lt_export_symbols_cmds_F77
15224
15225# The commands to extract the exported symbol list from a shared archive.
15226extract_expsyms_cmds=$lt_extract_expsyms_cmds
15227
15228# Symbols that should not be listed in the preloaded symbols.
15229exclude_expsyms=$lt_exclude_expsyms_F77
15230
15231# Symbols that must always be exported.
15232include_expsyms=$lt_include_expsyms_F77
15233
15234# ### END LIBTOOL TAG CONFIG: $tagname
15235
15236__EOF__
15237
15238
15239else
15240 # If there is no Makefile yet, we rely on a make rule to execute
15241 # `config.status --recheck' to rerun these tests and create the
15242 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000015243 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15244 if test -f "$ltmain_in"; then
15245 test -f Makefile && make "$ltmain"
15246 fi
John Criswell47fdd832003-07-14 16:52:07 +000015247fi
15248
15249
15250ac_ext=c
15251ac_cpp='$CPP $CPPFLAGS'
15252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15254ac_compiler_gnu=$ac_cv_c_compiler_gnu
15255
15256CC="$lt_save_CC"
15257
15258 else
15259 tagname=""
15260 fi
15261 ;;
15262
15263 GCJ)
15264 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015265 ac_ext=c
15266ac_cpp='$CPP $CPPFLAGS'
15267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15269ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000015270
15271
15272# Source file extension for Java test sources.
15273ac_ext=java
15274
15275# Object file extension for compiled Java test sources.
15276objext=o
15277objext_GCJ=$objext
15278
15279# Code to be used in simple compile tests
15280lt_simple_compile_test_code="class foo {}\n"
15281
15282# Code to be used in simple link tests
15283lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15284
15285# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15286
15287# If no C compiler was specified, use CC.
15288LTCC=${LTCC-"$CC"}
15289
15290# Allow CC to be a program name with arguments.
15291compiler=$CC
15292
15293
15294# Allow CC to be a program name with arguments.
15295lt_save_CC="$CC"
15296CC=${GCJ-"gcj"}
15297compiler=$CC
15298compiler_GCJ=$CC
15299
15300# GCJ did not exist at the time GCC didn't implicitly link libc in.
15301archive_cmds_need_lc_GCJ=no
15302
John Criswell47fdd832003-07-14 16:52:07 +000015303
15304lt_prog_compiler_no_builtin_flag_GCJ=
15305
15306if test "$GCC" = yes; then
15307 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15308
Reid Spencer2706f8c2004-09-19 23:53:36 +000015309
15310echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015311echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15312if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15313 echo $ECHO_N "(cached) $ECHO_C" >&6
15314else
15315 lt_cv_prog_compiler_rtti_exceptions=no
15316 ac_outfile=conftest.$ac_objext
15317 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15318 lt_compiler_flag="-fno-rtti -fno-exceptions"
15319 # Insert the option either (1) after the last *FLAGS variable, or
15320 # (2) before a word containing "conftest.", or (3) at the end.
15321 # Note that $ac_compile itself does not contain backslashes and begins
15322 # with a dollar sign (not a hyphen), so the echo should work correctly.
15323 # The option is referenced via a variable to avoid confusing sed.
15324 lt_compile=`echo "$ac_compile" | $SED \
15325 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15326 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15327 -e 's:$: $lt_compiler_flag:'`
John Criswell9f011862004-09-24 18:28:00 +000015328 (eval echo "\"\$as_me:15328: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015329 (eval "$lt_compile" 2>conftest.err)
15330 ac_status=$?
15331 cat conftest.err >&5
John Criswell9f011862004-09-24 18:28:00 +000015332 echo "$as_me:15332: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015333 if (exit $ac_status) && test -s "$ac_outfile"; then
15334 # The compiler can only warn and ignore the option if not recognized
15335 # So say no if there are warnings
15336 if test ! -s conftest.err; then
15337 lt_cv_prog_compiler_rtti_exceptions=yes
15338 fi
15339 fi
15340 $rm conftest*
15341
15342fi
15343echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15344echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15345
15346if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15347 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15348else
15349 :
15350fi
15351
15352fi
15353
15354lt_prog_compiler_wl_GCJ=
15355lt_prog_compiler_pic_GCJ=
15356lt_prog_compiler_static_GCJ=
15357
15358echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15359echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15360
15361 if test "$GCC" = yes; then
15362 lt_prog_compiler_wl_GCJ='-Wl,'
15363 lt_prog_compiler_static_GCJ='-static'
15364
15365 case $host_os in
15366 aix*)
15367 # All AIX code is PIC.
15368 if test "$host_cpu" = ia64; then
15369 # AIX 5 now supports IA64 processor
15370 lt_prog_compiler_static_GCJ='-Bstatic'
15371 fi
15372 ;;
15373
15374 amigaos*)
15375 # FIXME: we need at least 68020 code to build shared libraries, but
15376 # adding the `-m68020' flag to GCC prevents building anything better,
15377 # like `-m68040'.
15378 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15379 ;;
15380
15381 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15382 # PIC is the default for these OSes.
15383 ;;
15384
15385 mingw* | pw32* | os2*)
15386 # This hack is so that the source file can tell whether it is being
15387 # built for inclusion in a dll (and should export symbols for example).
15388 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15389 ;;
15390
15391 darwin* | rhapsody*)
15392 # PIC is the default on this platform
15393 # Common symbols not allowed in MH_DYLIB files
15394 lt_prog_compiler_pic_GCJ='-fno-common'
15395 ;;
15396
15397 msdosdjgpp*)
15398 # Just because we use GCC doesn't mean we suddenly get shared libraries
15399 # on systems that don't support them.
15400 lt_prog_compiler_can_build_shared_GCJ=no
15401 enable_shared=no
15402 ;;
15403
15404 sysv4*MP*)
15405 if test -d /usr/nec; then
15406 lt_prog_compiler_pic_GCJ=-Kconform_pic
15407 fi
15408 ;;
15409
15410 hpux*)
15411 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15412 # not for PA HP-UX.
15413 case "$host_cpu" in
15414 hppa*64*|ia64*)
15415 # +Z the default
15416 ;;
15417 *)
15418 lt_prog_compiler_pic_GCJ='-fPIC'
15419 ;;
15420 esac
15421 ;;
15422
15423 *)
15424 lt_prog_compiler_pic_GCJ='-fPIC'
15425 ;;
15426 esac
15427 else
15428 # PORTME Check for flag to pass linker flags through the system compiler.
15429 case $host_os in
15430 aix*)
15431 lt_prog_compiler_wl_GCJ='-Wl,'
15432 if test "$host_cpu" = ia64; then
15433 # AIX 5 now supports IA64 processor
15434 lt_prog_compiler_static_GCJ='-Bstatic'
15435 else
15436 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15437 fi
15438 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015439 darwin*)
15440 # PIC is the default on this platform
15441 # Common symbols not allowed in MH_DYLIB files
15442 case "$cc_basename" in
15443 xlc*)
15444 lt_prog_compiler_pic_GCJ='-qnocommon'
15445 lt_prog_compiler_wl_GCJ='-Wl,'
15446 ;;
15447 esac
15448 ;;
John Criswell47fdd832003-07-14 16:52:07 +000015449
15450 mingw* | pw32* | os2*)
15451 # This hack is so that the source file can tell whether it is being
15452 # built for inclusion in a dll (and should export symbols for example).
15453 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15454 ;;
15455
15456 hpux9* | hpux10* | hpux11*)
15457 lt_prog_compiler_wl_GCJ='-Wl,'
15458 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15459 # not for PA HP-UX.
15460 case "$host_cpu" in
15461 hppa*64*|ia64*)
15462 # +Z the default
15463 ;;
15464 *)
15465 lt_prog_compiler_pic_GCJ='+Z'
15466 ;;
15467 esac
15468 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15469 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15470 ;;
15471
15472 irix5* | irix6* | nonstopux*)
15473 lt_prog_compiler_wl_GCJ='-Wl,'
15474 # PIC (with -KPIC) is the default.
15475 lt_prog_compiler_static_GCJ='-non_shared'
15476 ;;
15477
15478 newsos6)
15479 lt_prog_compiler_pic_GCJ='-KPIC'
15480 lt_prog_compiler_static_GCJ='-Bstatic'
15481 ;;
15482
15483 linux*)
15484 case $CC in
Reid Spencer2706f8c2004-09-19 23:53:36 +000015485 icc* | ecc*)
John Criswell47fdd832003-07-14 16:52:07 +000015486 lt_prog_compiler_wl_GCJ='-Wl,'
15487 lt_prog_compiler_pic_GCJ='-KPIC'
15488 lt_prog_compiler_static_GCJ='-static'
15489 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015490 ccc*)
John Criswell47fdd832003-07-14 16:52:07 +000015491 lt_prog_compiler_wl_GCJ='-Wl,'
15492 # All Alpha code is PIC.
15493 lt_prog_compiler_static_GCJ='-non_shared'
15494 ;;
15495 esac
15496 ;;
15497
15498 osf3* | osf4* | osf5*)
15499 lt_prog_compiler_wl_GCJ='-Wl,'
15500 # All OSF/1 code is PIC.
15501 lt_prog_compiler_static_GCJ='-non_shared'
15502 ;;
15503
15504 sco3.2v5*)
15505 lt_prog_compiler_pic_GCJ='-Kpic'
15506 lt_prog_compiler_static_GCJ='-dn'
15507 ;;
15508
15509 solaris*)
15510 lt_prog_compiler_wl_GCJ='-Wl,'
15511 lt_prog_compiler_pic_GCJ='-KPIC'
15512 lt_prog_compiler_static_GCJ='-Bstatic'
15513 ;;
15514
15515 sunos4*)
15516 lt_prog_compiler_wl_GCJ='-Qoption ld '
15517 lt_prog_compiler_pic_GCJ='-PIC'
15518 lt_prog_compiler_static_GCJ='-Bstatic'
15519 ;;
15520
15521 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15522 lt_prog_compiler_wl_GCJ='-Wl,'
15523 lt_prog_compiler_pic_GCJ='-KPIC'
15524 lt_prog_compiler_static_GCJ='-Bstatic'
15525 ;;
15526
15527 sysv4*MP*)
15528 if test -d /usr/nec ;then
15529 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15530 lt_prog_compiler_static_GCJ='-Bstatic'
15531 fi
15532 ;;
15533
15534 uts4*)
15535 lt_prog_compiler_pic_GCJ='-pic'
15536 lt_prog_compiler_static_GCJ='-Bstatic'
15537 ;;
15538
15539 *)
15540 lt_prog_compiler_can_build_shared_GCJ=no
15541 ;;
15542 esac
15543 fi
15544
15545echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15546echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15547
15548#
15549# Check to make sure the PIC flag actually works.
15550#
15551if test -n "$lt_prog_compiler_pic_GCJ"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000015552
15553echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015554echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15555if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15556 echo $ECHO_N "(cached) $ECHO_C" >&6
15557else
15558 lt_prog_compiler_pic_works_GCJ=no
15559 ac_outfile=conftest.$ac_objext
15560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15561 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15562 # Insert the option either (1) after the last *FLAGS variable, or
15563 # (2) before a word containing "conftest.", or (3) at the end.
15564 # Note that $ac_compile itself does not contain backslashes and begins
15565 # with a dollar sign (not a hyphen), so the echo should work correctly.
15566 # The option is referenced via a variable to avoid confusing sed.
15567 lt_compile=`echo "$ac_compile" | $SED \
15568 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15570 -e 's:$: $lt_compiler_flag:'`
John Criswell9f011862004-09-24 18:28:00 +000015571 (eval echo "\"\$as_me:15571: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015572 (eval "$lt_compile" 2>conftest.err)
15573 ac_status=$?
15574 cat conftest.err >&5
John Criswell9f011862004-09-24 18:28:00 +000015575 echo "$as_me:15575: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015576 if (exit $ac_status) && test -s "$ac_outfile"; then
15577 # The compiler can only warn and ignore the option if not recognized
15578 # So say no if there are warnings
15579 if test ! -s conftest.err; then
15580 lt_prog_compiler_pic_works_GCJ=yes
15581 fi
15582 fi
15583 $rm conftest*
15584
15585fi
15586echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15587echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15588
15589if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15590 case $lt_prog_compiler_pic_GCJ in
15591 "" | " "*) ;;
15592 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15593 esac
15594else
15595 lt_prog_compiler_pic_GCJ=
15596 lt_prog_compiler_can_build_shared_GCJ=no
15597fi
15598
15599fi
15600case "$host_os" in
15601 # For platforms which do not support PIC, -DPIC is meaningless:
15602 *djgpp*)
15603 lt_prog_compiler_pic_GCJ=
15604 ;;
15605 *)
15606 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15607 ;;
15608esac
15609
15610echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15611echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15612if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15614else
15615 lt_cv_prog_compiler_c_o_GCJ=no
15616 $rm -r conftest 2>/dev/null
15617 mkdir conftest
15618 cd conftest
15619 mkdir out
15620 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15621
John Criswell47fdd832003-07-14 16:52:07 +000015622 lt_compiler_flag="-o out/conftest2.$ac_objext"
15623 # Insert the option either (1) after the last *FLAGS variable, or
15624 # (2) before a word containing "conftest.", or (3) at the end.
15625 # Note that $ac_compile itself does not contain backslashes and begins
15626 # with a dollar sign (not a hyphen), so the echo should work correctly.
15627 lt_compile=`echo "$ac_compile" | $SED \
15628 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15629 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15630 -e 's:$: $lt_compiler_flag:'`
John Criswell9f011862004-09-24 18:28:00 +000015631 (eval echo "\"\$as_me:15631: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015632 (eval "$lt_compile" 2>out/conftest.err)
15633 ac_status=$?
15634 cat out/conftest.err >&5
John Criswell9f011862004-09-24 18:28:00 +000015635 echo "$as_me:15635: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015636 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15637 then
15638 # The compiler can only warn and ignore the option if not recognized
15639 # So say no if there are warnings
15640 if test ! -s out/conftest.err; then
15641 lt_cv_prog_compiler_c_o_GCJ=yes
15642 fi
15643 fi
15644 chmod u+w .
Reid Spencer2706f8c2004-09-19 23:53:36 +000015645 $rm conftest*
15646 # SGI C++ compiler will create directory out/ii_files/ for
15647 # template instantiation
15648 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15649 $rm out/* && rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015650 cd ..
15651 rmdir conftest
15652 $rm conftest*
15653
15654fi
15655echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15656echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15657
15658
15659hard_links="nottested"
15660if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15661 # do not overwrite the value of need_locks provided by the user
15662 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15663echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15664 hard_links=yes
15665 $rm conftest*
15666 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15667 touch conftest.a
15668 ln conftest.a conftest.b 2>&5 || hard_links=no
15669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15670 echo "$as_me:$LINENO: result: $hard_links" >&5
15671echo "${ECHO_T}$hard_links" >&6
15672 if test "$hard_links" = no; then
15673 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15674echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15675 need_locks=warn
15676 fi
15677else
15678 need_locks=no
15679fi
15680
15681echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15682echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15683
15684 runpath_var=
15685 allow_undefined_flag_GCJ=
15686 enable_shared_with_static_runtimes_GCJ=no
15687 archive_cmds_GCJ=
15688 archive_expsym_cmds_GCJ=
15689 old_archive_From_new_cmds_GCJ=
15690 old_archive_from_expsyms_cmds_GCJ=
15691 export_dynamic_flag_spec_GCJ=
15692 whole_archive_flag_spec_GCJ=
15693 thread_safe_flag_spec_GCJ=
15694 hardcode_libdir_flag_spec_GCJ=
15695 hardcode_libdir_flag_spec_ld_GCJ=
15696 hardcode_libdir_separator_GCJ=
15697 hardcode_direct_GCJ=no
15698 hardcode_minus_L_GCJ=no
15699 hardcode_shlibpath_var_GCJ=unsupported
15700 link_all_deplibs_GCJ=unknown
15701 hardcode_automatic_GCJ=no
15702 module_cmds_GCJ=
15703 module_expsym_cmds_GCJ=
15704 always_export_symbols_GCJ=no
15705 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15706 # include_expsyms should be a list of space-separated symbols to be *always*
15707 # included in the symbol list
15708 include_expsyms_GCJ=
15709 # exclude_expsyms can be an extended regexp of symbols to exclude
15710 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15711 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15712 # as well as any symbol that contains `d'.
15713 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15714 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15715 # platforms (ab)use it in PIC code, but their linkers get confused if
15716 # the symbol is explicitly referenced. Since portable code cannot
15717 # rely on this symbol name, it's probably fine to never include it in
15718 # preloaded symbol tables.
15719 extract_expsyms_cmds=
15720
15721 case $host_os in
15722 cygwin* | mingw* | pw32*)
15723 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15724 # When not using gcc, we currently assume that we are using
15725 # Microsoft Visual C++.
15726 if test "$GCC" != yes; then
15727 with_gnu_ld=no
15728 fi
15729 ;;
15730 openbsd*)
15731 with_gnu_ld=no
15732 ;;
15733 esac
15734
15735 ld_shlibs_GCJ=yes
15736 if test "$with_gnu_ld" = yes; then
15737 # If archive_cmds runs LD, not CC, wlarc should be empty
15738 wlarc='${wl}'
15739
15740 # See if GNU ld supports shared libraries.
15741 case $host_os in
15742 aix3* | aix4* | aix5*)
15743 # On AIX/PPC, the GNU linker is very broken
15744 if test "$host_cpu" != ia64; then
15745 ld_shlibs_GCJ=no
15746 cat <<EOF 1>&2
15747
15748*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15749*** to be unable to reliably create shared libraries on AIX.
15750*** Therefore, libtool is disabling shared libraries support. If you
15751*** really care for shared libraries, you may want to modify your PATH
15752*** so that a non-GNU linker is found, and then restart.
15753
15754EOF
15755 fi
15756 ;;
15757
15758 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000015759 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 +000015760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15761 hardcode_minus_L_GCJ=yes
15762
15763 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15764 # that the semantics of dynamic libraries on AmigaOS, at least up
15765 # to version 4, is to share data among multiple programs linked
15766 # with the same dynamic library. Since this doesn't match the
15767 # behavior of shared libraries on other platforms, we can't use
15768 # them.
15769 ld_shlibs_GCJ=no
15770 ;;
15771
15772 beos*)
15773 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15774 allow_undefined_flag_GCJ=unsupported
15775 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15776 # support --undefined. This deserves some investigation. FIXME
15777 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15778 else
15779 ld_shlibs_GCJ=no
15780 fi
15781 ;;
15782
15783 cygwin* | mingw* | pw32*)
15784 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15785 # as there is no search path for DLLs.
15786 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15787 allow_undefined_flag_GCJ=unsupported
15788 always_export_symbols_GCJ=no
15789 enable_shared_with_static_runtimes_GCJ=yes
15790 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15791
15792 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15793 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15794 # If the export-symbols file already is a .def file (1st line
15795 # is EXPORTS), use it as is; otherwise, prepend...
15796 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15797 cp $export_symbols $output_objdir/$soname.def;
15798 else
15799 echo EXPORTS > $output_objdir/$soname.def;
15800 cat $export_symbols >> $output_objdir/$soname.def;
Reid Spencer2706f8c2004-09-19 23:53:36 +000015801 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 +000015802 else
15803 ld_shlibs=no
15804 fi
15805 ;;
15806
15807 netbsd*)
15808 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15809 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15810 wlarc=
15811 else
15812 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15813 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15814 fi
15815 ;;
15816
15817 solaris* | sysv5*)
15818 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15819 ld_shlibs_GCJ=no
15820 cat <<EOF 1>&2
15821
15822*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15823*** create shared libraries on Solaris systems. Therefore, libtool
15824*** is disabling shared libraries support. We urge you to upgrade GNU
15825*** binutils to release 2.9.1 or newer. Another option is to modify
15826*** your PATH or compiler configuration so that the native linker is
15827*** used, and then restart.
15828
15829EOF
15830 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15831 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15832 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15833 else
15834 ld_shlibs_GCJ=no
15835 fi
15836 ;;
15837
15838 sunos4*)
15839 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15840 wlarc=
15841 hardcode_direct_GCJ=yes
15842 hardcode_shlibpath_var_GCJ=no
15843 ;;
15844
Reid Spencer2706f8c2004-09-19 23:53:36 +000015845 linux*)
15846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15847 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15848 archive_cmds_GCJ="$tmp_archive_cmds"
15849 supports_anon_versioning=no
15850 case `$LD -v 2>/dev/null` in
15851 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15852 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15853 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15854 *\ 2.11.*) ;; # other 2.11 versions
15855 *) supports_anon_versioning=yes ;;
15856 esac
15857 if test $supports_anon_versioning = yes; then
15858 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;
15859 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15860 else
15861 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15862 fi
15863 else
15864 ld_shlibs_GCJ=no
15865 fi
15866 ;;
15867
John Criswell47fdd832003-07-14 16:52:07 +000015868 *)
15869 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15870 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15871 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15872 else
15873 ld_shlibs_GCJ=no
15874 fi
15875 ;;
15876 esac
15877
15878 if test "$ld_shlibs_GCJ" = yes; then
15879 runpath_var=LD_RUN_PATH
15880 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15881 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15882 # ancient GNU ld didn't support --whole-archive et. al.
15883 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15884 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15885 else
15886 whole_archive_flag_spec_GCJ=
15887 fi
15888 fi
15889 else
15890 # PORTME fill in a description of your system's linker (not GNU ld)
15891 case $host_os in
15892 aix3*)
15893 allow_undefined_flag_GCJ=unsupported
15894 always_export_symbols_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000015895 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 +000015896 # Note: this linker hardcodes the directories in LIBPATH if there
15897 # are no directories specified by -L.
15898 hardcode_minus_L_GCJ=yes
15899 if test "$GCC" = yes && test -z "$link_static_flag"; then
15900 # Neither direct hardcoding nor static linking is supported with a
15901 # broken collect2.
15902 hardcode_direct_GCJ=unsupported
15903 fi
15904 ;;
15905
15906 aix4* | aix5*)
15907 if test "$host_cpu" = ia64; then
15908 # On IA64, the linker does run time linking by default, so we don't
15909 # have to do anything special.
15910 aix_use_runtimelinking=no
15911 exp_sym_flag='-Bexport'
15912 no_entry_flag=""
15913 else
15914 # If we're using GNU nm, then we don't want the "-C" option.
15915 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15916 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15917 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'
15918 else
15919 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'
15920 fi
15921 aix_use_runtimelinking=no
15922
15923 # Test if we are trying to use run time linking or normal
15924 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15925 # need to do runtime linking.
15926 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15927 for ld_flag in $LDFLAGS; do
15928 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15929 aix_use_runtimelinking=yes
15930 break
15931 fi
15932 done
15933 esac
15934
15935 exp_sym_flag='-bexport'
15936 no_entry_flag='-bnoentry'
15937 fi
15938
15939 # When large executables or shared objects are built, AIX ld can
15940 # have problems creating the table of contents. If linking a library
15941 # or program results in "error TOC overflow" add -mminimal-toc to
15942 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15943 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15944
15945 archive_cmds_GCJ=''
15946 hardcode_direct_GCJ=yes
15947 hardcode_libdir_separator_GCJ=':'
15948 link_all_deplibs_GCJ=yes
15949
15950 if test "$GCC" = yes; then
15951 case $host_os in aix4.012|aix4.012.*)
15952 # We only want to do this on AIX 4.2 and lower, the check
15953 # below for broken collect2 doesn't work under 4.3+
15954 collect2name=`${CC} -print-prog-name=collect2`
15955 if test -f "$collect2name" && \
15956 strings "$collect2name" | grep resolve_lib_name >/dev/null
15957 then
15958 # We have reworked collect2
15959 hardcode_direct_GCJ=yes
15960 else
15961 # We have old collect2
15962 hardcode_direct_GCJ=unsupported
15963 # It fails to find uninstalled libraries when the uninstalled
15964 # path is not listed in the libpath. Setting hardcode_minus_L
15965 # to unsupported forces relinking
15966 hardcode_minus_L_GCJ=yes
15967 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15968 hardcode_libdir_separator_GCJ=
15969 fi
15970 esac
15971 shared_flag='-shared'
15972 else
15973 # not using gcc
15974 if test "$host_cpu" = ia64; then
15975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15976 # chokes on -Wl,-G. The following line is correct:
15977 shared_flag='-G'
15978 else
15979 if test "$aix_use_runtimelinking" = yes; then
15980 shared_flag='${wl}-G'
15981 else
15982 shared_flag='${wl}-bM:SRE'
15983 fi
15984 fi
15985 fi
15986
15987 # It seems that -bexpall does not export symbols beginning with
15988 # underscore (_), so it is better to generate a list of symbols to export.
15989 always_export_symbols_GCJ=yes
15990 if test "$aix_use_runtimelinking" = yes; then
15991 # Warning - without using the other runtime loading flags (-brtl),
15992 # -berok will link without error, but may produce a broken library.
15993 allow_undefined_flag_GCJ='-berok'
15994 # Determine the default libpath from the value encoded in an empty executable.
15995 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015996/* confdefs.h. */
15997_ACEOF
15998cat confdefs.h >>conftest.$ac_ext
15999cat >>conftest.$ac_ext <<_ACEOF
16000/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016001
John Criswell47fdd832003-07-14 16:52:07 +000016002int
16003main ()
16004{
16005
16006 ;
16007 return 0;
16008}
16009_ACEOF
16010rm -f conftest.$ac_objext conftest$ac_exeext
16011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016012 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016013 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016014 grep -v '^ *+' conftest.er1 >conftest.err
16015 rm -f conftest.er1
16016 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16018 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016019 { ac_try='test -z "$ac_c_werror_flag"
16020 || test ! -s conftest.err'
16021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16022 (eval $ac_try) 2>&5
16023 ac_status=$?
16024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16025 (exit $ac_status); }; } &&
16026 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16028 (eval $ac_try) 2>&5
16029 ac_status=$?
16030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16031 (exit $ac_status); }; }; then
16032
16033aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16034}'`
16035# Check for a 64-bit object if we didn't find anything.
16036if 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; }
16037}'`; fi
16038else
16039 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016040sed 's/^/| /' conftest.$ac_ext >&5
16041
John Criswell47fdd832003-07-14 16:52:07 +000016042fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016043rm -f conftest.err conftest.$ac_objext \
16044 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016045if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16046
16047 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16048 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"
16049 else
16050 if test "$host_cpu" = ia64; then
16051 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16052 allow_undefined_flag_GCJ="-z nodefs"
16053 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"
16054 else
16055 # Determine the default libpath from the value encoded in an empty executable.
16056 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016057/* confdefs.h. */
16058_ACEOF
16059cat confdefs.h >>conftest.$ac_ext
16060cat >>conftest.$ac_ext <<_ACEOF
16061/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016062
John Criswell47fdd832003-07-14 16:52:07 +000016063int
16064main ()
16065{
16066
16067 ;
16068 return 0;
16069}
16070_ACEOF
16071rm -f conftest.$ac_objext conftest$ac_exeext
16072if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000016073 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016074 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000016075 grep -v '^ *+' conftest.er1 >conftest.err
16076 rm -f conftest.er1
16077 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16079 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000016080 { ac_try='test -z "$ac_c_werror_flag"
16081 || test ! -s conftest.err'
16082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16083 (eval $ac_try) 2>&5
16084 ac_status=$?
16085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16086 (exit $ac_status); }; } &&
16087 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16089 (eval $ac_try) 2>&5
16090 ac_status=$?
16091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16092 (exit $ac_status); }; }; then
16093
16094aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16095}'`
16096# Check for a 64-bit object if we didn't find anything.
16097if 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; }
16098}'`; fi
16099else
16100 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016101sed 's/^/| /' conftest.$ac_ext >&5
16102
John Criswell47fdd832003-07-14 16:52:07 +000016103fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000016104rm -f conftest.err conftest.$ac_objext \
16105 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016106if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16107
16108 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16109 # Warning - without using the other run time loading flags,
16110 # -berok will link without error, but may produce a broken library.
16111 no_undefined_flag_GCJ=' ${wl}-bernotok'
16112 allow_undefined_flag_GCJ=' ${wl}-berok'
16113 # -bexpall does not export symbols beginning with underscore (_)
16114 always_export_symbols_GCJ=yes
16115 # Exported symbols can be pulled into shared objects from archives
16116 whole_archive_flag_spec_GCJ=' '
16117 archive_cmds_need_lc_GCJ=yes
16118 # This is similar to how AIX traditionally builds it's shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016119 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 +000016120 fi
16121 fi
16122 ;;
16123
16124 amigaos*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016125 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 +000016126 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16127 hardcode_minus_L_GCJ=yes
16128 # see comment about different semantics on the GNU ld section
16129 ld_shlibs_GCJ=no
16130 ;;
16131
Reid Spencer2706f8c2004-09-19 23:53:36 +000016132 bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016133 export_dynamic_flag_spec_GCJ=-rdynamic
16134 ;;
16135
16136 cygwin* | mingw* | pw32*)
16137 # When not using gcc, we currently assume that we are using
16138 # Microsoft Visual C++.
16139 # hardcode_libdir_flag_spec is actually meaningless, as there is
16140 # no search path for DLLs.
16141 hardcode_libdir_flag_spec_GCJ=' '
16142 allow_undefined_flag_GCJ=unsupported
16143 # Tell ltmain to make .lib files, not .a files.
16144 libext=lib
16145 # Tell ltmain to make .dll files, not .so files.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016146 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016147 # FIXME: Setting linknames here is a bad hack.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016148 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 +000016149 # The linker will automatically build a .lib file if we build a DLL.
16150 old_archive_From_new_cmds_GCJ='true'
16151 # FIXME: Should let the user specify the lib program.
16152 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16153 fix_srcfile_path='`cygpath -w "$srcfile"`'
16154 enable_shared_with_static_runtimes_GCJ=yes
16155 ;;
16156
16157 darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +000016158 case "$host_os" in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016159 rhapsody* | darwin1.[012])
16160 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16161 ;;
16162 *) # Darwin 1.3 on
16163 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16164 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16165 else
16166 case ${MACOSX_DEPLOYMENT_TARGET} in
16167 10.[012])
16168 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16169 ;;
16170 10.*)
16171 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16172 ;;
16173 esac
16174 fi
16175 ;;
John Criswell47fdd832003-07-14 16:52:07 +000016176 esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000016177 archive_cmds_need_lc_GCJ=no
John Criswell47fdd832003-07-14 16:52:07 +000016178 hardcode_direct_GCJ=no
16179 hardcode_automatic_GCJ=yes
16180 hardcode_shlibpath_var_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000016181 whole_archive_flag_spec_GCJ=''
John Criswell47fdd832003-07-14 16:52:07 +000016182 link_all_deplibs_GCJ=yes
Reid Spencer2706f8c2004-09-19 23:53:36 +000016183 if test "$GCC" = yes ; then
16184 output_verbose_link_cmd='echo'
16185 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16186 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16187 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16188 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}'
16189 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}'
16190 else
16191 case "$cc_basename" in
16192 xlc*)
16193 output_verbose_link_cmd='echo'
16194 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16195 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16196 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16197 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}'
16198 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}'
16199 ;;
16200 *)
16201 ld_shlibs_GCJ=no
16202 ;;
16203 esac
John Criswell47fdd832003-07-14 16:52:07 +000016204 fi
16205 ;;
16206
16207 dgux*)
16208 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16209 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16210 hardcode_shlibpath_var_GCJ=no
16211 ;;
16212
16213 freebsd1*)
16214 ld_shlibs_GCJ=no
16215 ;;
16216
16217 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16218 # support. Future versions do this automatically, but an explicit c++rt0.o
16219 # does not break anything, and helps significantly (at the cost of a little
16220 # extra space).
16221 freebsd2.2*)
16222 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16223 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16224 hardcode_direct_GCJ=yes
16225 hardcode_shlibpath_var_GCJ=no
16226 ;;
16227
16228 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16229 freebsd2*)
16230 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16231 hardcode_direct_GCJ=yes
16232 hardcode_minus_L_GCJ=yes
16233 hardcode_shlibpath_var_GCJ=no
16234 ;;
16235
16236 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016237 freebsd* | kfreebsd*-gnu)
John Criswell47fdd832003-07-14 16:52:07 +000016238 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16239 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16240 hardcode_direct_GCJ=yes
16241 hardcode_shlibpath_var_GCJ=no
16242 ;;
16243
16244 hpux9*)
16245 if test "$GCC" = yes; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000016246 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 +000016247 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016248 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 +000016249 fi
16250 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16251 hardcode_libdir_separator_GCJ=:
16252 hardcode_direct_GCJ=yes
16253
16254 # hardcode_minus_L: Not really in the search PATH,
16255 # but as the default location of the library.
16256 hardcode_minus_L_GCJ=yes
16257 export_dynamic_flag_spec_GCJ='${wl}-E'
16258 ;;
16259
16260 hpux10* | hpux11*)
16261 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16262 case "$host_cpu" in
16263 hppa*64*|ia64*)
16264 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16265 ;;
16266 *)
16267 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16268 ;;
16269 esac
16270 else
16271 case "$host_cpu" in
16272 hppa*64*|ia64*)
16273 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16274 ;;
16275 *)
16276 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16277 ;;
16278 esac
16279 fi
16280 if test "$with_gnu_ld" = no; then
16281 case "$host_cpu" in
16282 hppa*64*)
16283 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16284 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16285 hardcode_libdir_separator_GCJ=:
16286 hardcode_direct_GCJ=no
16287 hardcode_shlibpath_var_GCJ=no
16288 ;;
16289 ia64*)
16290 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16291 hardcode_direct_GCJ=no
16292 hardcode_shlibpath_var_GCJ=no
16293
16294 # hardcode_minus_L: Not really in the search PATH,
16295 # but as the default location of the library.
16296 hardcode_minus_L_GCJ=yes
16297 ;;
16298 *)
16299 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16300 hardcode_libdir_separator_GCJ=:
16301 hardcode_direct_GCJ=yes
16302 export_dynamic_flag_spec_GCJ='${wl}-E'
16303
16304 # hardcode_minus_L: Not really in the search PATH,
16305 # but as the default location of the library.
16306 hardcode_minus_L_GCJ=yes
16307 ;;
16308 esac
16309 fi
16310 ;;
16311
16312 irix5* | irix6* | nonstopux*)
16313 if test "$GCC" = yes; then
16314 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'
16315 else
16316 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'
16317 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16318 fi
16319 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16320 hardcode_libdir_separator_GCJ=:
16321 link_all_deplibs_GCJ=yes
16322 ;;
16323
16324 netbsd*)
16325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16326 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16327 else
16328 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16329 fi
16330 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16331 hardcode_direct_GCJ=yes
16332 hardcode_shlibpath_var_GCJ=no
16333 ;;
16334
16335 newsos6)
16336 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16337 hardcode_direct_GCJ=yes
16338 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16339 hardcode_libdir_separator_GCJ=:
16340 hardcode_shlibpath_var_GCJ=no
16341 ;;
16342
16343 openbsd*)
16344 hardcode_direct_GCJ=yes
16345 hardcode_shlibpath_var_GCJ=no
16346 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16347 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016348 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 +000016349 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16350 export_dynamic_flag_spec_GCJ='${wl}-E'
16351 else
16352 case $host_os in
16353 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16354 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16355 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16356 ;;
16357 *)
16358 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16359 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16360 ;;
16361 esac
16362 fi
16363 ;;
16364
16365 os2*)
16366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16367 hardcode_minus_L_GCJ=yes
16368 allow_undefined_flag_GCJ=unsupported
Reid Spencer2706f8c2004-09-19 23:53:36 +000016369 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 +000016370 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16371 ;;
16372
16373 osf3*)
16374 if test "$GCC" = yes; then
16375 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16376 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'
16377 else
16378 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16379 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'
16380 fi
16381 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16382 hardcode_libdir_separator_GCJ=:
16383 ;;
16384
16385 osf4* | osf5*) # as osf3* with the addition of -msym flag
16386 if test "$GCC" = yes; then
16387 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16388 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'
16389 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16390 else
16391 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16392 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 +000016393 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 +000016394 # Both c and cxx compiler support -rpath directly
16395 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16396 fi
16397 hardcode_libdir_separator_GCJ=:
16398 ;;
16399
16400 sco3.2v5*)
16401 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16402 hardcode_shlibpath_var_GCJ=no
16403 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16404 runpath_var=LD_RUN_PATH
16405 hardcode_runpath_var=yes
16406 ;;
16407
16408 solaris*)
16409 no_undefined_flag_GCJ=' -z text'
16410 if test "$GCC" = yes; then
16411 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016412 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 +000016413 else
16414 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016415 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 +000016416 fi
16417 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16418 hardcode_shlibpath_var_GCJ=no
16419 case $host_os in
16420 solaris2.[0-5] | solaris2.[0-5].*) ;;
16421 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16422 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16423 esac
16424 link_all_deplibs_GCJ=yes
16425 ;;
16426
16427 sunos4*)
16428 if test "x$host_vendor" = xsequent; then
16429 # Use $CC to link under sequent, because it throws in some extra .o
16430 # files that make .init and .fini sections work.
16431 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16432 else
16433 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16434 fi
16435 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16436 hardcode_direct_GCJ=yes
16437 hardcode_minus_L_GCJ=yes
16438 hardcode_shlibpath_var_GCJ=no
16439 ;;
16440
16441 sysv4)
16442 case $host_vendor in
16443 sni)
16444 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16445 hardcode_direct_GCJ=yes # is this really true???
16446 ;;
16447 siemens)
16448 ## LD is ld it makes a PLAMLIB
16449 ## CC just makes a GrossModule.
16450 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16451 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16452 hardcode_direct_GCJ=no
16453 ;;
16454 motorola)
16455 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16456 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16457 ;;
16458 esac
16459 runpath_var='LD_RUN_PATH'
16460 hardcode_shlibpath_var_GCJ=no
16461 ;;
16462
16463 sysv4.3*)
16464 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16465 hardcode_shlibpath_var_GCJ=no
16466 export_dynamic_flag_spec_GCJ='-Bexport'
16467 ;;
16468
16469 sysv4*MP*)
16470 if test -d /usr/nec; then
16471 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16472 hardcode_shlibpath_var_GCJ=no
16473 runpath_var=LD_RUN_PATH
16474 hardcode_runpath_var=yes
16475 ld_shlibs_GCJ=yes
16476 fi
16477 ;;
16478
16479 sysv4.2uw2*)
16480 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16481 hardcode_direct_GCJ=yes
16482 hardcode_minus_L_GCJ=no
16483 hardcode_shlibpath_var_GCJ=no
16484 hardcode_runpath_var=yes
16485 runpath_var=LD_RUN_PATH
16486 ;;
16487
16488 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16489 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16490 if test "$GCC" = yes; then
16491 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16492 else
16493 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16494 fi
16495 runpath_var='LD_RUN_PATH'
16496 hardcode_shlibpath_var_GCJ=no
16497 ;;
16498
16499 sysv5*)
16500 no_undefined_flag_GCJ=' -z text'
16501 # $CC -shared without GNU ld will not create a library from C++
16502 # object files and a static libstdc++, better avoid it by now
16503 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016504 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 +000016505 hardcode_libdir_flag_spec_GCJ=
16506 hardcode_shlibpath_var_GCJ=no
16507 runpath_var='LD_RUN_PATH'
16508 ;;
16509
16510 uts4*)
16511 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16512 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16513 hardcode_shlibpath_var_GCJ=no
16514 ;;
16515
16516 *)
16517 ld_shlibs_GCJ=no
16518 ;;
16519 esac
16520 fi
16521
16522echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16523echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16524test "$ld_shlibs_GCJ" = no && can_build_shared=no
16525
16526variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16527if test "$GCC" = yes; then
16528 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16529fi
16530
16531#
16532# Do we need to explicitly link libc?
16533#
16534case "x$archive_cmds_need_lc_GCJ" in
16535x|xyes)
16536 # Assume -lc should be added
16537 archive_cmds_need_lc_GCJ=yes
16538
16539 if test "$enable_shared" = yes && test "$GCC" = yes; then
16540 case $archive_cmds_GCJ in
Reid Spencer2706f8c2004-09-19 23:53:36 +000016541 *'~'*)
John Criswell47fdd832003-07-14 16:52:07 +000016542 # FIXME: we may have to deal with multi-command sequences.
16543 ;;
16544 '$CC '*)
16545 # Test whether the compiler implicitly links with -lc since on some
16546 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16547 # to ld, don't add -lc before -lgcc.
16548 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16549echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16550 $rm conftest*
16551 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16552
16553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16554 (eval $ac_compile) 2>&5
16555 ac_status=$?
16556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16557 (exit $ac_status); } 2>conftest.err; then
16558 soname=conftest
16559 lib=conftest
16560 libobjs=conftest.$ac_objext
16561 deplibs=
16562 wl=$lt_prog_compiler_wl_GCJ
16563 compiler_flags=-v
16564 linker_flags=-v
16565 verstring=
16566 output_objdir=.
16567 libname=conftest
16568 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16569 allow_undefined_flag_GCJ=
16570 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16571 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16572 ac_status=$?
16573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16574 (exit $ac_status); }
16575 then
16576 archive_cmds_need_lc_GCJ=no
16577 else
16578 archive_cmds_need_lc_GCJ=yes
16579 fi
16580 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16581 else
16582 cat conftest.err 1>&5
16583 fi
16584 $rm conftest*
16585 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16586echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16587 ;;
16588 esac
16589 fi
16590 ;;
16591esac
16592
John Criswell47fdd832003-07-14 16:52:07 +000016593echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16594echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16595library_names_spec=
16596libname_spec='lib$name'
16597soname_spec=
Reid Spencer2706f8c2004-09-19 23:53:36 +000016598shrext_cmds=".so"
John Criswell47fdd832003-07-14 16:52:07 +000016599postinstall_cmds=
16600postuninstall_cmds=
16601finish_cmds=
16602finish_eval=
16603shlibpath_var=
16604shlibpath_overrides_runpath=unknown
16605version_type=none
16606dynamic_linker="$host_os ld.so"
16607sys_lib_dlsearch_path_spec="/lib /usr/lib"
16608if test "$GCC" = yes; then
16609 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16610 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16611 # if the path contains ";" then we assume it to be the separator
16612 # otherwise default to the standard path separator (i.e. ":") - it is
16613 # assumed that no part of a normal pathname contains ";" but that should
16614 # okay in the real world where ";" in dirpaths is itself problematic.
16615 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16616 else
16617 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16618 fi
16619else
16620 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16621fi
16622need_lib_prefix=unknown
16623hardcode_into_libs=no
16624
16625# when you set need_version to no, make sure it does not cause -set_version
16626# flags to be left without arguments
16627need_version=unknown
16628
16629case $host_os in
16630aix3*)
16631 version_type=linux
16632 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16633 shlibpath_var=LIBPATH
16634
16635 # AIX 3 has no versioning support, so we append a major version to the name.
16636 soname_spec='${libname}${release}${shared_ext}$major'
16637 ;;
16638
16639aix4* | aix5*)
16640 version_type=linux
16641 need_lib_prefix=no
16642 need_version=no
16643 hardcode_into_libs=yes
16644 if test "$host_cpu" = ia64; then
16645 # AIX 5 supports IA64
16646 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16647 shlibpath_var=LD_LIBRARY_PATH
16648 else
16649 # With GCC up to 2.95.x, collect2 would create an import file
16650 # for dependence libraries. The import file would start with
16651 # the line `#! .'. This would cause the generated library to
16652 # depend on `.', always an invalid library. This was fixed in
16653 # development snapshots of GCC prior to 3.0.
16654 case $host_os in
16655 aix4 | aix4.[01] | aix4.[01].*)
16656 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16657 echo ' yes '
16658 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16659 :
16660 else
16661 can_build_shared=no
16662 fi
16663 ;;
16664 esac
16665 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16666 # soname into executable. Probably we can add versioning support to
16667 # collect2, so additional links can be useful in future.
16668 if test "$aix_use_runtimelinking" = yes; then
16669 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16670 # instead of lib<name>.a to let people know that these are not
16671 # typical AIX shared libraries.
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673 else
16674 # We preserve .a as extension for shared libraries through AIX4.2
16675 # and later when we are not doing run time linking.
16676 library_names_spec='${libname}${release}.a $libname.a'
16677 soname_spec='${libname}${release}${shared_ext}$major'
16678 fi
16679 shlibpath_var=LIBPATH
16680 fi
16681 ;;
16682
16683amigaos*)
16684 library_names_spec='$libname.ixlibrary $libname.a'
16685 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016686 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 +000016687 ;;
16688
16689beos*)
16690 library_names_spec='${libname}${shared_ext}'
16691 dynamic_linker="$host_os ld.so"
16692 shlibpath_var=LIBRARY_PATH
16693 ;;
16694
Reid Spencer2706f8c2004-09-19 23:53:36 +000016695bsdi[45]*)
John Criswell47fdd832003-07-14 16:52:07 +000016696 version_type=linux
16697 need_version=no
16698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16699 soname_spec='${libname}${release}${shared_ext}$major'
16700 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16701 shlibpath_var=LD_LIBRARY_PATH
16702 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16703 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16704 # the default ld.so.conf also contains /usr/contrib/lib and
16705 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16706 # libtool to hard-code these into programs
16707 ;;
16708
16709cygwin* | mingw* | pw32*)
16710 version_type=windows
Reid Spencer2706f8c2004-09-19 23:53:36 +000016711 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000016712 need_version=no
16713 need_lib_prefix=no
16714
16715 case $GCC,$host_os in
16716 yes,cygwin* | yes,mingw* | yes,pw32*)
16717 library_names_spec='$libname.dll.a'
16718 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Reid Spencer2706f8c2004-09-19 23:53:36 +000016719 postinstall_cmds='base_file=`basename \${file}`;
16720 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`;
16721 dldir=$destdir/`dirname \$dlpath`;
16722 test -d \$dldir || mkdir -p \$dldir;
John Criswell47fdd832003-07-14 16:52:07 +000016723 $install_prog $dir/$dlname \$dldir/$dlname'
Reid Spencer2706f8c2004-09-19 23:53:36 +000016724 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`;
16725 dlpath=$dir/\$dldll;
John Criswell47fdd832003-07-14 16:52:07 +000016726 $rm \$dlpath'
16727 shlibpath_overrides_runpath=yes
16728
16729 case $host_os in
16730 cygwin*)
16731 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16732 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 +000016733 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016734 ;;
16735 mingw*)
16736 # MinGW DLLs use traditional 'lib' prefix
16737 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16738 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16739 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16740 # It is most probably a Windows format PATH printed by
16741 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16742 # path with ; separators, and with drive letters. We can handle the
16743 # drive letters (cygwin fileutils understands them), so leave them,
16744 # especially as we might pass files found there to a mingw objdump,
16745 # which wouldn't understand a cygwinified path. Ahh.
16746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16747 else
16748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16749 fi
16750 ;;
16751 pw32*)
16752 # pw32 DLLs use 'pw' prefix rather than 'lib'
16753 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16754 ;;
16755 esac
16756 ;;
16757
16758 *)
16759 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16760 ;;
16761 esac
16762 dynamic_linker='Win32 ld.exe'
16763 # FIXME: first we should search . and the directory the executable is in
16764 shlibpath_var=PATH
16765 ;;
16766
16767darwin* | rhapsody*)
16768 dynamic_linker="$host_os dyld"
16769 version_type=darwin
16770 need_lib_prefix=no
16771 need_version=no
Reid Spencer2706f8c2004-09-19 23:53:36 +000016772 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016773 soname_spec='${libname}${release}${major}$shared_ext'
16774 shlibpath_overrides_runpath=yes
16775 shlibpath_var=DYLD_LIBRARY_PATH
Reid Spencer2706f8c2004-09-19 23:53:36 +000016776 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
John Criswell47fdd832003-07-14 16:52:07 +000016777 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Reid Spencer2706f8c2004-09-19 23:53:36 +000016778 if test "$GCC" = yes; then
16779 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"`
16780 else
16781 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
John Criswell47fdd832003-07-14 16:52:07 +000016782 fi
16783 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16784 ;;
16785
16786dgux*)
16787 version_type=linux
16788 need_lib_prefix=no
16789 need_version=no
16790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16791 soname_spec='${libname}${release}${shared_ext}$major'
16792 shlibpath_var=LD_LIBRARY_PATH
16793 ;;
16794
16795freebsd1*)
16796 dynamic_linker=no
16797 ;;
16798
Reid Spencer2706f8c2004-09-19 23:53:36 +000016799kfreebsd*-gnu)
16800 version_type=linux
16801 need_lib_prefix=no
16802 need_version=no
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16804 soname_spec='${libname}${release}${shared_ext}$major'
16805 shlibpath_var=LD_LIBRARY_PATH
16806 shlibpath_overrides_runpath=no
16807 hardcode_into_libs=yes
16808 dynamic_linker='GNU ld.so'
16809 ;;
16810
John Criswell47fdd832003-07-14 16:52:07 +000016811freebsd*)
16812 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16813 version_type=freebsd-$objformat
16814 case $version_type in
16815 freebsd-elf*)
16816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16817 need_version=no
16818 need_lib_prefix=no
16819 ;;
16820 freebsd-*)
16821 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16822 need_version=yes
16823 ;;
16824 esac
16825 shlibpath_var=LD_LIBRARY_PATH
16826 case $host_os in
16827 freebsd2*)
16828 shlibpath_overrides_runpath=yes
16829 ;;
16830 freebsd3.01* | freebsdelf3.01*)
16831 shlibpath_overrides_runpath=yes
16832 hardcode_into_libs=yes
16833 ;;
16834 *) # from 3.2 on
16835 shlibpath_overrides_runpath=no
16836 hardcode_into_libs=yes
16837 ;;
16838 esac
16839 ;;
16840
16841gnu*)
16842 version_type=linux
16843 need_lib_prefix=no
16844 need_version=no
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16846 soname_spec='${libname}${release}${shared_ext}$major'
16847 shlibpath_var=LD_LIBRARY_PATH
16848 hardcode_into_libs=yes
16849 ;;
16850
16851hpux9* | hpux10* | hpux11*)
16852 # Give a soname corresponding to the major version so that dld.sl refuses to
16853 # link against other versions.
16854 version_type=sunos
16855 need_lib_prefix=no
16856 need_version=no
16857 case "$host_cpu" in
16858 ia64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016859 shrext_cmds='.so'
John Criswell47fdd832003-07-14 16:52:07 +000016860 hardcode_into_libs=yes
16861 dynamic_linker="$host_os dld.so"
16862 shlibpath_var=LD_LIBRARY_PATH
16863 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16865 soname_spec='${libname}${release}${shared_ext}$major'
16866 if test "X$HPUX_IA64_MODE" = X32; then
16867 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16868 else
16869 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16870 fi
16871 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16872 ;;
16873 hppa*64*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016874 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016875 hardcode_into_libs=yes
16876 dynamic_linker="$host_os dld.sl"
16877 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16878 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16880 soname_spec='${libname}${release}${shared_ext}$major'
16881 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16882 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16883 ;;
16884 *)
Reid Spencer2706f8c2004-09-19 23:53:36 +000016885 shrext_cmds='.sl'
John Criswell47fdd832003-07-14 16:52:07 +000016886 dynamic_linker="$host_os dld.sl"
16887 shlibpath_var=SHLIB_PATH
16888 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890 soname_spec='${libname}${release}${shared_ext}$major'
16891 ;;
16892 esac
16893 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16894 postinstall_cmds='chmod 555 $lib'
16895 ;;
16896
16897irix5* | irix6* | nonstopux*)
16898 case $host_os in
16899 nonstopux*) version_type=nonstopux ;;
16900 *)
16901 if test "$lt_cv_prog_gnu_ld" = yes; then
16902 version_type=linux
16903 else
16904 version_type=irix
16905 fi ;;
16906 esac
16907 need_lib_prefix=no
16908 need_version=no
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16911 case $host_os in
16912 irix5* | nonstopux*)
16913 libsuff= shlibsuff=
16914 ;;
16915 *)
16916 case $LD in # libtool.m4 will add one of these switches to LD
16917 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16918 libsuff= shlibsuff= libmagic=32-bit;;
16919 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16920 libsuff=32 shlibsuff=N32 libmagic=N32;;
16921 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16922 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16923 *) libsuff= shlibsuff= libmagic=never-match;;
16924 esac
16925 ;;
16926 esac
16927 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16928 shlibpath_overrides_runpath=no
16929 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16930 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16931 hardcode_into_libs=yes
16932 ;;
16933
16934# No shared lib support for Linux oldld, aout, or coff.
16935linux*oldld* | linux*aout* | linux*coff*)
16936 dynamic_linker=no
16937 ;;
16938
16939# This must be Linux ELF.
16940linux*)
16941 version_type=linux
16942 need_lib_prefix=no
16943 need_version=no
16944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16945 soname_spec='${libname}${release}${shared_ext}$major'
16946 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16947 shlibpath_var=LD_LIBRARY_PATH
16948 shlibpath_overrides_runpath=no
16949 # This implies no fast_install, which is unacceptable.
16950 # Some rework will be needed to allow for fast_install
16951 # before this can be enabled.
16952 hardcode_into_libs=yes
16953
Reid Spencer2706f8c2004-09-19 23:53:36 +000016954 # Append ld.so.conf contents to the search path
16955 if test -f /etc/ld.so.conf; then
16956 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16957 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16958 fi
16959
John Criswell47fdd832003-07-14 16:52:07 +000016960 # We used to test for /lib/ld.so.1 and disable shared libraries on
16961 # powerpc, because MkLinux only supported shared libraries with the
16962 # GNU dynamic linker. Since this was broken with cross compilers,
16963 # most powerpc-linux boxes support dynamic linking these days and
16964 # people can always --disable-shared, the test was removed, and we
16965 # assume the GNU/Linux dynamic linker is in use.
16966 dynamic_linker='GNU/Linux ld.so'
16967 ;;
16968
Reid Spencer2706f8c2004-09-19 23:53:36 +000016969knetbsd*-gnu)
16970 version_type=linux
16971 need_lib_prefix=no
16972 need_version=no
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16974 soname_spec='${libname}${release}${shared_ext}$major'
16975 shlibpath_var=LD_LIBRARY_PATH
16976 shlibpath_overrides_runpath=no
16977 hardcode_into_libs=yes
16978 dynamic_linker='GNU ld.so'
16979 ;;
16980
John Criswell47fdd832003-07-14 16:52:07 +000016981netbsd*)
16982 version_type=sunos
16983 need_lib_prefix=no
16984 need_version=no
16985 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16987 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16988 dynamic_linker='NetBSD (a.out) ld.so'
16989 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000016990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
John Criswell47fdd832003-07-14 16:52:07 +000016991 soname_spec='${libname}${release}${shared_ext}$major'
16992 dynamic_linker='NetBSD ld.elf_so'
16993 fi
16994 shlibpath_var=LD_LIBRARY_PATH
16995 shlibpath_overrides_runpath=yes
16996 hardcode_into_libs=yes
16997 ;;
16998
16999newsos6)
17000 version_type=linux
17001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17002 shlibpath_var=LD_LIBRARY_PATH
17003 shlibpath_overrides_runpath=yes
17004 ;;
17005
Reid Spencer2706f8c2004-09-19 23:53:36 +000017006nto-qnx*)
John Criswell47fdd832003-07-14 16:52:07 +000017007 version_type=linux
17008 need_lib_prefix=no
17009 need_version=no
17010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011 soname_spec='${libname}${release}${shared_ext}$major'
17012 shlibpath_var=LD_LIBRARY_PATH
17013 shlibpath_overrides_runpath=yes
17014 ;;
17015
17016openbsd*)
17017 version_type=sunos
17018 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000017019 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000017020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17022 shlibpath_var=LD_LIBRARY_PATH
17023 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17024 case $host_os in
17025 openbsd2.[89] | openbsd2.[89].*)
17026 shlibpath_overrides_runpath=no
17027 ;;
17028 *)
17029 shlibpath_overrides_runpath=yes
17030 ;;
17031 esac
17032 else
17033 shlibpath_overrides_runpath=yes
17034 fi
17035 ;;
17036
17037os2*)
17038 libname_spec='$name'
Reid Spencer2706f8c2004-09-19 23:53:36 +000017039 shrext_cmds=".dll"
John Criswell47fdd832003-07-14 16:52:07 +000017040 need_lib_prefix=no
17041 library_names_spec='$libname${shared_ext} $libname.a'
17042 dynamic_linker='OS/2 ld.exe'
17043 shlibpath_var=LIBPATH
17044 ;;
17045
17046osf3* | osf4* | osf5*)
17047 version_type=osf
17048 need_lib_prefix=no
17049 need_version=no
17050 soname_spec='${libname}${release}${shared_ext}$major'
17051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17052 shlibpath_var=LD_LIBRARY_PATH
17053 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17054 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17055 ;;
17056
17057sco3.2v5*)
17058 version_type=osf
17059 soname_spec='${libname}${release}${shared_ext}$major'
17060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17061 shlibpath_var=LD_LIBRARY_PATH
17062 ;;
17063
17064solaris*)
17065 version_type=linux
17066 need_lib_prefix=no
17067 need_version=no
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 shlibpath_var=LD_LIBRARY_PATH
17071 shlibpath_overrides_runpath=yes
17072 hardcode_into_libs=yes
17073 # ldd complains unless libraries are executable
17074 postinstall_cmds='chmod +x $lib'
17075 ;;
17076
17077sunos4*)
17078 version_type=sunos
17079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17080 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17081 shlibpath_var=LD_LIBRARY_PATH
17082 shlibpath_overrides_runpath=yes
17083 if test "$with_gnu_ld" = yes; then
17084 need_lib_prefix=no
17085 fi
17086 need_version=yes
17087 ;;
17088
17089sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17090 version_type=linux
17091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17092 soname_spec='${libname}${release}${shared_ext}$major'
17093 shlibpath_var=LD_LIBRARY_PATH
17094 case $host_vendor in
17095 sni)
17096 shlibpath_overrides_runpath=no
17097 need_lib_prefix=no
17098 export_dynamic_flag_spec='${wl}-Blargedynsym'
17099 runpath_var=LD_RUN_PATH
17100 ;;
17101 siemens)
17102 need_lib_prefix=no
17103 ;;
17104 motorola)
17105 need_lib_prefix=no
17106 need_version=no
17107 shlibpath_overrides_runpath=no
17108 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17109 ;;
17110 esac
17111 ;;
17112
17113sysv4*MP*)
17114 if test -d /usr/nec ;then
17115 version_type=linux
17116 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17117 soname_spec='$libname${shared_ext}.$major'
17118 shlibpath_var=LD_LIBRARY_PATH
17119 fi
17120 ;;
17121
17122uts4*)
17123 version_type=linux
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125 soname_spec='${libname}${release}${shared_ext}$major'
17126 shlibpath_var=LD_LIBRARY_PATH
17127 ;;
17128
17129*)
17130 dynamic_linker=no
17131 ;;
17132esac
17133echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17134echo "${ECHO_T}$dynamic_linker" >&6
17135test "$dynamic_linker" = no && can_build_shared=no
17136
Reid Spencer2706f8c2004-09-19 23:53:36 +000017137echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17138echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17139hardcode_action_GCJ=
17140if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17141 test -n "$runpath_var_GCJ" || \
17142 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17143
17144 # We can hardcode non-existant directories.
17145 if test "$hardcode_direct_GCJ" != no &&
17146 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17147 # have to relink, otherwise we might link with an installed library
17148 # when we should be linking with a yet-to-be-installed one
17149 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17150 test "$hardcode_minus_L_GCJ" != no; then
17151 # Linking always hardcodes the temporary library directory.
17152 hardcode_action_GCJ=relink
17153 else
17154 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17155 hardcode_action_GCJ=immediate
17156 fi
17157else
17158 # We cannot hardcode anything, or else we can only hardcode existing
17159 # directories.
17160 hardcode_action_GCJ=unsupported
17161fi
17162echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17163echo "${ECHO_T}$hardcode_action_GCJ" >&6
17164
17165if test "$hardcode_action_GCJ" = relink; then
17166 # Fast installation is not supported
17167 enable_fast_install=no
17168elif test "$shlibpath_overrides_runpath" = yes ||
17169 test "$enable_shared" = no; then
17170 # Fast installation is not necessary
17171 enable_fast_install=needless
17172fi
17173
17174striplib=
17175old_striplib=
17176echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17177echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17178if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17179 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17180 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17181 echo "$as_me:$LINENO: result: yes" >&5
17182echo "${ECHO_T}yes" >&6
17183else
17184# FIXME - insert some real tests, host_os isn't really good enough
17185 case $host_os in
17186 darwin*)
17187 if test -n "$STRIP" ; then
17188 striplib="$STRIP -x"
17189 echo "$as_me:$LINENO: result: yes" >&5
17190echo "${ECHO_T}yes" >&6
17191 else
17192 echo "$as_me:$LINENO: result: no" >&5
17193echo "${ECHO_T}no" >&6
17194fi
17195 ;;
17196 *)
17197 echo "$as_me:$LINENO: result: no" >&5
17198echo "${ECHO_T}no" >&6
17199 ;;
17200 esac
17201fi
17202
John Criswell47fdd832003-07-14 16:52:07 +000017203if test "x$enable_dlopen" != xyes; then
17204 enable_dlopen=unknown
17205 enable_dlopen_self=unknown
17206 enable_dlopen_self_static=unknown
17207else
17208 lt_cv_dlopen=no
17209 lt_cv_dlopen_libs=
17210
17211 case $host_os in
17212 beos*)
17213 lt_cv_dlopen="load_add_on"
17214 lt_cv_dlopen_libs=
17215 lt_cv_dlopen_self=yes
17216 ;;
17217
17218 mingw* | pw32*)
17219 lt_cv_dlopen="LoadLibrary"
17220 lt_cv_dlopen_libs=
17221 ;;
17222
17223 cygwin*)
17224 lt_cv_dlopen="dlopen"
17225 lt_cv_dlopen_libs=
17226 ;;
17227
17228 darwin*)
17229 # if libdl is installed we need to link against it
17230 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17231echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17232if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17234else
17235 ac_check_lib_save_LIBS=$LIBS
17236LIBS="-ldl $LIBS"
17237cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017238/* confdefs.h. */
17239_ACEOF
17240cat confdefs.h >>conftest.$ac_ext
17241cat >>conftest.$ac_ext <<_ACEOF
17242/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017243
17244/* Override any gcc2 internal prototype to avoid an error. */
17245#ifdef __cplusplus
17246extern "C"
17247#endif
17248/* We use char because int might match the return type of a gcc2
17249 builtin and then its argument prototype would still apply. */
17250char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017251int
17252main ()
17253{
17254dlopen ();
17255 ;
17256 return 0;
17257}
17258_ACEOF
17259rm -f conftest.$ac_objext conftest$ac_exeext
17260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017261 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017262 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017263 grep -v '^ *+' conftest.er1 >conftest.err
17264 rm -f conftest.er1
17265 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017268 { ac_try='test -z "$ac_c_werror_flag"
17269 || test ! -s conftest.err'
17270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17271 (eval $ac_try) 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; } &&
17275 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17277 (eval $ac_try) 2>&5
17278 ac_status=$?
17279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17280 (exit $ac_status); }; }; then
17281 ac_cv_lib_dl_dlopen=yes
17282else
17283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017284sed 's/^/| /' conftest.$ac_ext >&5
17285
John Criswell47fdd832003-07-14 16:52:07 +000017286ac_cv_lib_dl_dlopen=no
17287fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017288rm -f conftest.err conftest.$ac_objext \
17289 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017290LIBS=$ac_check_lib_save_LIBS
17291fi
17292echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17293echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17294if test $ac_cv_lib_dl_dlopen = yes; then
17295 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17296else
17297
17298 lt_cv_dlopen="dyld"
17299 lt_cv_dlopen_libs=
17300 lt_cv_dlopen_self=yes
17301
17302fi
17303
17304 ;;
17305
17306 *)
17307 echo "$as_me:$LINENO: checking for shl_load" >&5
17308echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17309if test "${ac_cv_func_shl_load+set}" = set; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17311else
17312 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017313/* confdefs.h. */
17314_ACEOF
17315cat confdefs.h >>conftest.$ac_ext
17316cat >>conftest.$ac_ext <<_ACEOF
17317/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017318/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17320#define shl_load innocuous_shl_load
17321
John Criswell47fdd832003-07-14 16:52:07 +000017322/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017323 which can conflict with char shl_load (); below.
17324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17325 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017326
John Criswell0c38eaf2003-09-10 15:17:25 +000017327#ifdef __STDC__
17328# include <limits.h>
17329#else
17330# include <assert.h>
17331#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017332
17333#undef shl_load
17334
John Criswell47fdd832003-07-14 16:52:07 +000017335/* Override any gcc2 internal prototype to avoid an error. */
17336#ifdef __cplusplus
17337extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017338{
John Criswell47fdd832003-07-14 16:52:07 +000017339#endif
17340/* We use char because int might match the return type of a gcc2
17341 builtin and then its argument prototype would still apply. */
17342char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017343/* The GNU C library defines this for functions which it implements
17344 to always fail with ENOSYS. Some functions are actually named
17345 something starting with __ and the normal name is an alias. */
17346#if defined (__stub_shl_load) || defined (__stub___shl_load)
17347choke me
17348#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017349char (*f) () = shl_load;
17350#endif
17351#ifdef __cplusplus
17352}
John Criswell47fdd832003-07-14 16:52:07 +000017353#endif
17354
John Criswell0c38eaf2003-09-10 15:17:25 +000017355int
17356main ()
17357{
17358return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017359 ;
17360 return 0;
17361}
17362_ACEOF
17363rm -f conftest.$ac_objext conftest$ac_exeext
17364if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017365 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017366 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017367 grep -v '^ *+' conftest.er1 >conftest.err
17368 rm -f conftest.er1
17369 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017372 { ac_try='test -z "$ac_c_werror_flag"
17373 || test ! -s conftest.err'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17376 ac_status=$?
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; } &&
17379 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17381 (eval $ac_try) 2>&5
17382 ac_status=$?
17383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17384 (exit $ac_status); }; }; then
17385 ac_cv_func_shl_load=yes
17386else
17387 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017388sed 's/^/| /' conftest.$ac_ext >&5
17389
John Criswell47fdd832003-07-14 16:52:07 +000017390ac_cv_func_shl_load=no
17391fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017392rm -f conftest.err conftest.$ac_objext \
17393 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017394fi
17395echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17396echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17397if test $ac_cv_func_shl_load = yes; then
17398 lt_cv_dlopen="shl_load"
17399else
17400 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17401echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17402if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17403 echo $ECHO_N "(cached) $ECHO_C" >&6
17404else
17405 ac_check_lib_save_LIBS=$LIBS
17406LIBS="-ldld $LIBS"
17407cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017408/* confdefs.h. */
17409_ACEOF
17410cat confdefs.h >>conftest.$ac_ext
17411cat >>conftest.$ac_ext <<_ACEOF
17412/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017413
17414/* Override any gcc2 internal prototype to avoid an error. */
17415#ifdef __cplusplus
17416extern "C"
17417#endif
17418/* We use char because int might match the return type of a gcc2
17419 builtin and then its argument prototype would still apply. */
17420char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017421int
17422main ()
17423{
17424shl_load ();
17425 ;
17426 return 0;
17427}
17428_ACEOF
17429rm -f conftest.$ac_objext conftest$ac_exeext
17430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017431 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017432 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017433 grep -v '^ *+' conftest.er1 >conftest.err
17434 rm -f conftest.er1
17435 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17437 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017438 { ac_try='test -z "$ac_c_werror_flag"
17439 || test ! -s conftest.err'
17440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17441 (eval $ac_try) 2>&5
17442 ac_status=$?
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); }; } &&
17445 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17448 ac_status=$?
17449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; }; then
17451 ac_cv_lib_dld_shl_load=yes
17452else
17453 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017454sed 's/^/| /' conftest.$ac_ext >&5
17455
John Criswell47fdd832003-07-14 16:52:07 +000017456ac_cv_lib_dld_shl_load=no
17457fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017458rm -f conftest.err conftest.$ac_objext \
17459 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017460LIBS=$ac_check_lib_save_LIBS
17461fi
17462echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17463echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17464if test $ac_cv_lib_dld_shl_load = yes; then
17465 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17466else
17467 echo "$as_me:$LINENO: checking for dlopen" >&5
17468echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17469if test "${ac_cv_func_dlopen+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17471else
17472 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017473/* confdefs.h. */
17474_ACEOF
17475cat confdefs.h >>conftest.$ac_ext
17476cat >>conftest.$ac_ext <<_ACEOF
17477/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017478/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17480#define dlopen innocuous_dlopen
17481
John Criswell47fdd832003-07-14 16:52:07 +000017482/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017483 which can conflict with char dlopen (); below.
17484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17485 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000017486
John Criswell0c38eaf2003-09-10 15:17:25 +000017487#ifdef __STDC__
17488# include <limits.h>
17489#else
17490# include <assert.h>
17491#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000017492
17493#undef dlopen
17494
John Criswell47fdd832003-07-14 16:52:07 +000017495/* Override any gcc2 internal prototype to avoid an error. */
17496#ifdef __cplusplus
17497extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017498{
John Criswell47fdd832003-07-14 16:52:07 +000017499#endif
17500/* We use char because int might match the return type of a gcc2
17501 builtin and then its argument prototype would still apply. */
17502char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017503/* The GNU C library defines this for functions which it implements
17504 to always fail with ENOSYS. Some functions are actually named
17505 something starting with __ and the normal name is an alias. */
17506#if defined (__stub_dlopen) || defined (__stub___dlopen)
17507choke me
17508#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017509char (*f) () = dlopen;
17510#endif
17511#ifdef __cplusplus
17512}
John Criswell47fdd832003-07-14 16:52:07 +000017513#endif
17514
John Criswell0c38eaf2003-09-10 15:17:25 +000017515int
17516main ()
17517{
17518return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017519 ;
17520 return 0;
17521}
17522_ACEOF
17523rm -f conftest.$ac_objext conftest$ac_exeext
17524if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017525 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017526 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017527 grep -v '^ *+' conftest.er1 >conftest.err
17528 rm -f conftest.er1
17529 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017532 { ac_try='test -z "$ac_c_werror_flag"
17533 || test ! -s conftest.err'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17536 ac_status=$?
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17542 ac_status=$?
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 ac_cv_func_dlopen=yes
17546else
17547 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017548sed 's/^/| /' conftest.$ac_ext >&5
17549
John Criswell47fdd832003-07-14 16:52:07 +000017550ac_cv_func_dlopen=no
17551fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017552rm -f conftest.err conftest.$ac_objext \
17553 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017554fi
17555echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17556echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17557if test $ac_cv_func_dlopen = yes; then
17558 lt_cv_dlopen="dlopen"
17559else
17560 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17561echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17562if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17564else
17565 ac_check_lib_save_LIBS=$LIBS
17566LIBS="-ldl $LIBS"
17567cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017568/* confdefs.h. */
17569_ACEOF
17570cat confdefs.h >>conftest.$ac_ext
17571cat >>conftest.$ac_ext <<_ACEOF
17572/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017573
17574/* Override any gcc2 internal prototype to avoid an error. */
17575#ifdef __cplusplus
17576extern "C"
17577#endif
17578/* We use char because int might match the return type of a gcc2
17579 builtin and then its argument prototype would still apply. */
17580char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017581int
17582main ()
17583{
17584dlopen ();
17585 ;
17586 return 0;
17587}
17588_ACEOF
17589rm -f conftest.$ac_objext conftest$ac_exeext
17590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017591 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017592 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017593 grep -v '^ *+' conftest.er1 >conftest.err
17594 rm -f conftest.er1
17595 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017598 { ac_try='test -z "$ac_c_werror_flag"
17599 || test ! -s conftest.err'
17600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17601 (eval $ac_try) 2>&5
17602 ac_status=$?
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); }; } &&
17605 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607 (eval $ac_try) 2>&5
17608 ac_status=$?
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; }; then
17611 ac_cv_lib_dl_dlopen=yes
17612else
17613 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017614sed 's/^/| /' conftest.$ac_ext >&5
17615
John Criswell47fdd832003-07-14 16:52:07 +000017616ac_cv_lib_dl_dlopen=no
17617fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017618rm -f conftest.err conftest.$ac_objext \
17619 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017620LIBS=$ac_check_lib_save_LIBS
17621fi
17622echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17623echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17624if test $ac_cv_lib_dl_dlopen = yes; then
17625 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17626else
17627 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17628echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17629if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17630 echo $ECHO_N "(cached) $ECHO_C" >&6
17631else
17632 ac_check_lib_save_LIBS=$LIBS
17633LIBS="-lsvld $LIBS"
17634cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017635/* confdefs.h. */
17636_ACEOF
17637cat confdefs.h >>conftest.$ac_ext
17638cat >>conftest.$ac_ext <<_ACEOF
17639/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017640
17641/* Override any gcc2 internal prototype to avoid an error. */
17642#ifdef __cplusplus
17643extern "C"
17644#endif
17645/* We use char because int might match the return type of a gcc2
17646 builtin and then its argument prototype would still apply. */
17647char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017648int
17649main ()
17650{
17651dlopen ();
17652 ;
17653 return 0;
17654}
17655_ACEOF
17656rm -f conftest.$ac_objext conftest$ac_exeext
17657if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017658 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017659 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017660 grep -v '^ *+' conftest.er1 >conftest.err
17661 rm -f conftest.er1
17662 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017665 { ac_try='test -z "$ac_c_werror_flag"
17666 || test ! -s conftest.err'
17667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668 (eval $ac_try) 2>&5
17669 ac_status=$?
17670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671 (exit $ac_status); }; } &&
17672 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17674 (eval $ac_try) 2>&5
17675 ac_status=$?
17676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17677 (exit $ac_status); }; }; then
17678 ac_cv_lib_svld_dlopen=yes
17679else
17680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017681sed 's/^/| /' conftest.$ac_ext >&5
17682
John Criswell47fdd832003-07-14 16:52:07 +000017683ac_cv_lib_svld_dlopen=no
17684fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017685rm -f conftest.err conftest.$ac_objext \
17686 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017687LIBS=$ac_check_lib_save_LIBS
17688fi
17689echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17690echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17691if test $ac_cv_lib_svld_dlopen = yes; then
17692 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17693else
17694 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17695echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17696if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17698else
17699 ac_check_lib_save_LIBS=$LIBS
17700LIBS="-ldld $LIBS"
17701cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017702/* confdefs.h. */
17703_ACEOF
17704cat confdefs.h >>conftest.$ac_ext
17705cat >>conftest.$ac_ext <<_ACEOF
17706/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017707
17708/* Override any gcc2 internal prototype to avoid an error. */
17709#ifdef __cplusplus
17710extern "C"
17711#endif
17712/* We use char because int might match the return type of a gcc2
17713 builtin and then its argument prototype would still apply. */
17714char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017715int
17716main ()
17717{
17718dld_link ();
17719 ;
17720 return 0;
17721}
17722_ACEOF
17723rm -f conftest.$ac_objext conftest$ac_exeext
17724if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000017725 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017726 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000017727 grep -v '^ *+' conftest.er1 >conftest.err
17728 rm -f conftest.er1
17729 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000017732 { ac_try='test -z "$ac_c_werror_flag"
17733 || test ! -s conftest.err'
17734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17735 (eval $ac_try) 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; } &&
17739 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17741 (eval $ac_try) 2>&5
17742 ac_status=$?
17743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); }; }; then
17745 ac_cv_lib_dld_dld_link=yes
17746else
17747 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017748sed 's/^/| /' conftest.$ac_ext >&5
17749
John Criswell47fdd832003-07-14 16:52:07 +000017750ac_cv_lib_dld_dld_link=no
17751fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000017752rm -f conftest.err conftest.$ac_objext \
17753 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017754LIBS=$ac_check_lib_save_LIBS
17755fi
17756echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17757echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17758if test $ac_cv_lib_dld_dld_link = yes; then
17759 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17760fi
17761
17762
17763fi
17764
17765
17766fi
17767
17768
17769fi
17770
17771
17772fi
17773
17774
17775fi
17776
17777 ;;
17778 esac
17779
17780 if test "x$lt_cv_dlopen" != xno; then
17781 enable_dlopen=yes
17782 else
17783 enable_dlopen=no
17784 fi
17785
17786 case $lt_cv_dlopen in
17787 dlopen)
17788 save_CPPFLAGS="$CPPFLAGS"
17789 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17790
17791 save_LDFLAGS="$LDFLAGS"
17792 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17793
17794 save_LIBS="$LIBS"
17795 LIBS="$lt_cv_dlopen_libs $LIBS"
17796
17797 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17798echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17799if test "${lt_cv_dlopen_self+set}" = set; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17801else
17802 if test "$cross_compiling" = yes; then :
17803 lt_cv_dlopen_self=cross
17804else
17805 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17806 lt_status=$lt_dlunknown
17807 cat > conftest.$ac_ext <<EOF
John Criswell9f011862004-09-24 18:28:00 +000017808#line 17808 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017809#include "confdefs.h"
17810
17811#if HAVE_DLFCN_H
17812#include <dlfcn.h>
17813#endif
17814
17815#include <stdio.h>
17816
17817#ifdef RTLD_GLOBAL
17818# define LT_DLGLOBAL RTLD_GLOBAL
17819#else
17820# ifdef DL_GLOBAL
17821# define LT_DLGLOBAL DL_GLOBAL
17822# else
17823# define LT_DLGLOBAL 0
17824# endif
17825#endif
17826
17827/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17828 find out it does not work in some platform. */
17829#ifndef LT_DLLAZY_OR_NOW
17830# ifdef RTLD_LAZY
17831# define LT_DLLAZY_OR_NOW RTLD_LAZY
17832# else
17833# ifdef DL_LAZY
17834# define LT_DLLAZY_OR_NOW DL_LAZY
17835# else
17836# ifdef RTLD_NOW
17837# define LT_DLLAZY_OR_NOW RTLD_NOW
17838# else
17839# ifdef DL_NOW
17840# define LT_DLLAZY_OR_NOW DL_NOW
17841# else
17842# define LT_DLLAZY_OR_NOW 0
17843# endif
17844# endif
17845# endif
17846# endif
17847#endif
17848
17849#ifdef __cplusplus
17850extern "C" void exit (int);
17851#endif
17852
17853void fnord() { int i=42;}
17854int main ()
17855{
17856 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17857 int status = $lt_dlunknown;
17858
17859 if (self)
17860 {
17861 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17862 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17863 /* dlclose (self); */
17864 }
17865
17866 exit (status);
17867}
17868EOF
17869 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17870 (eval $ac_link) 2>&5
17871 ac_status=$?
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17874 (./conftest; exit; ) 2>/dev/null
17875 lt_status=$?
17876 case x$lt_status in
17877 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17878 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17879 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17880 esac
17881 else :
17882 # compilation failed
17883 lt_cv_dlopen_self=no
17884 fi
17885fi
17886rm -fr conftest*
17887
17888
17889fi
17890echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17891echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17892
17893 if test "x$lt_cv_dlopen_self" = xyes; then
17894 LDFLAGS="$LDFLAGS $link_static_flag"
17895 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17896echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17897if test "${lt_cv_dlopen_self_static+set}" = set; then
17898 echo $ECHO_N "(cached) $ECHO_C" >&6
17899else
17900 if test "$cross_compiling" = yes; then :
17901 lt_cv_dlopen_self_static=cross
17902else
17903 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17904 lt_status=$lt_dlunknown
17905 cat > conftest.$ac_ext <<EOF
John Criswell9f011862004-09-24 18:28:00 +000017906#line 17906 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017907#include "confdefs.h"
17908
17909#if HAVE_DLFCN_H
17910#include <dlfcn.h>
17911#endif
17912
17913#include <stdio.h>
17914
17915#ifdef RTLD_GLOBAL
17916# define LT_DLGLOBAL RTLD_GLOBAL
17917#else
17918# ifdef DL_GLOBAL
17919# define LT_DLGLOBAL DL_GLOBAL
17920# else
17921# define LT_DLGLOBAL 0
17922# endif
17923#endif
17924
17925/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17926 find out it does not work in some platform. */
17927#ifndef LT_DLLAZY_OR_NOW
17928# ifdef RTLD_LAZY
17929# define LT_DLLAZY_OR_NOW RTLD_LAZY
17930# else
17931# ifdef DL_LAZY
17932# define LT_DLLAZY_OR_NOW DL_LAZY
17933# else
17934# ifdef RTLD_NOW
17935# define LT_DLLAZY_OR_NOW RTLD_NOW
17936# else
17937# ifdef DL_NOW
17938# define LT_DLLAZY_OR_NOW DL_NOW
17939# else
17940# define LT_DLLAZY_OR_NOW 0
17941# endif
17942# endif
17943# endif
17944# endif
17945#endif
17946
17947#ifdef __cplusplus
17948extern "C" void exit (int);
17949#endif
17950
17951void fnord() { int i=42;}
17952int main ()
17953{
17954 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17955 int status = $lt_dlunknown;
17956
17957 if (self)
17958 {
17959 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17960 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17961 /* dlclose (self); */
17962 }
17963
17964 exit (status);
17965}
17966EOF
17967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17968 (eval $ac_link) 2>&5
17969 ac_status=$?
17970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17971 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17972 (./conftest; exit; ) 2>/dev/null
17973 lt_status=$?
17974 case x$lt_status in
17975 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17976 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17977 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17978 esac
17979 else :
17980 # compilation failed
17981 lt_cv_dlopen_self_static=no
17982 fi
17983fi
17984rm -fr conftest*
17985
17986
17987fi
17988echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17989echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17990 fi
17991
17992 CPPFLAGS="$save_CPPFLAGS"
17993 LDFLAGS="$save_LDFLAGS"
17994 LIBS="$save_LIBS"
17995 ;;
17996 esac
17997
17998 case $lt_cv_dlopen_self in
17999 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18000 *) enable_dlopen_self=unknown ;;
18001 esac
18002
18003 case $lt_cv_dlopen_self_static in
18004 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18005 *) enable_dlopen_self_static=unknown ;;
18006 esac
18007fi
18008
18009
18010# The else clause should only fire when bootstrapping the
18011# libtool distribution, otherwise you forgot to ship ltmain.sh
18012# with your package, and you will get complaints that there are
18013# no rules to generate ltmain.sh.
18014if test -f "$ltmain"; then
18015 # See if we are running on zsh, and set the options which allow our commands through
18016 # without removal of \ escapes.
18017 if test -n "${ZSH_VERSION+set}" ; then
18018 setopt NO_GLOB_SUBST
18019 fi
18020 # Now quote all the things that may contain metacharacters while being
18021 # careful not to overquote the AC_SUBSTed values. We take copies of the
18022 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018023 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18024 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018025 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18026 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18027 deplibs_check_method reload_flag reload_cmds need_locks \
18028 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18029 lt_cv_sys_global_symbol_to_c_name_address \
18030 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18031 old_postinstall_cmds old_postuninstall_cmds \
18032 compiler_GCJ \
18033 CC_GCJ \
18034 LD_GCJ \
18035 lt_prog_compiler_wl_GCJ \
18036 lt_prog_compiler_pic_GCJ \
18037 lt_prog_compiler_static_GCJ \
18038 lt_prog_compiler_no_builtin_flag_GCJ \
18039 export_dynamic_flag_spec_GCJ \
18040 thread_safe_flag_spec_GCJ \
18041 whole_archive_flag_spec_GCJ \
18042 enable_shared_with_static_runtimes_GCJ \
18043 old_archive_cmds_GCJ \
18044 old_archive_from_new_cmds_GCJ \
18045 predep_objects_GCJ \
18046 postdep_objects_GCJ \
18047 predeps_GCJ \
18048 postdeps_GCJ \
18049 compiler_lib_search_path_GCJ \
18050 archive_cmds_GCJ \
18051 archive_expsym_cmds_GCJ \
18052 postinstall_cmds_GCJ \
18053 postuninstall_cmds_GCJ \
18054 old_archive_from_expsyms_cmds_GCJ \
18055 allow_undefined_flag_GCJ \
18056 no_undefined_flag_GCJ \
18057 export_symbols_cmds_GCJ \
18058 hardcode_libdir_flag_spec_GCJ \
18059 hardcode_libdir_flag_spec_ld_GCJ \
18060 hardcode_libdir_separator_GCJ \
18061 hardcode_automatic_GCJ \
18062 module_cmds_GCJ \
18063 module_expsym_cmds_GCJ \
18064 lt_cv_prog_compiler_c_o_GCJ \
18065 exclude_expsyms_GCJ \
18066 include_expsyms_GCJ; do
18067
18068 case $var in
18069 old_archive_cmds_GCJ | \
18070 old_archive_from_new_cmds_GCJ | \
18071 archive_cmds_GCJ | \
18072 archive_expsym_cmds_GCJ | \
18073 module_cmds_GCJ | \
18074 module_expsym_cmds_GCJ | \
18075 old_archive_from_expsyms_cmds_GCJ | \
18076 export_symbols_cmds_GCJ | \
18077 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18078 postinstall_cmds | postuninstall_cmds | \
18079 old_postinstall_cmds | old_postuninstall_cmds | \
18080 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18081 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018082 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 +000018083 ;;
18084 *)
18085 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18086 ;;
18087 esac
18088 done
18089
18090 case $lt_echo in
18091 *'\$0 --fallback-echo"')
18092 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18093 ;;
18094 esac
18095
18096cfgfile="$ofile"
18097
18098 cat <<__EOF__ >> "$cfgfile"
18099# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18100
18101# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18102
18103# Shell to use when invoking shell scripts.
18104SHELL=$lt_SHELL
18105
18106# Whether or not to build shared libraries.
18107build_libtool_libs=$enable_shared
18108
18109# Whether or not to build static libraries.
18110build_old_libs=$enable_static
18111
18112# Whether or not to add -lc for building shared libraries.
18113build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18114
18115# Whether or not to disallow shared libs when runtime libs are static
18116allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18117
18118# Whether or not to optimize for fast installation.
18119fast_install=$enable_fast_install
18120
18121# The host system.
18122host_alias=$host_alias
18123host=$host
18124
18125# An echo program that does not interpret backslashes.
18126echo=$lt_echo
18127
18128# The archiver.
18129AR=$lt_AR
18130AR_FLAGS=$lt_AR_FLAGS
18131
18132# A C compiler.
18133LTCC=$lt_LTCC
18134
18135# A language-specific compiler.
18136CC=$lt_compiler_GCJ
18137
18138# Is the compiler the GNU C compiler?
18139with_gcc=$GCC_GCJ
18140
18141# An ERE matcher.
18142EGREP=$lt_EGREP
18143
18144# The linker used to build libraries.
18145LD=$lt_LD_GCJ
18146
18147# Whether we need hard or soft links.
18148LN_S=$lt_LN_S
18149
18150# A BSD-compatible nm program.
18151NM=$lt_NM
18152
18153# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018154STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018155
18156# Used to examine libraries when file_magic_cmd begins "file"
18157MAGIC_CMD=$MAGIC_CMD
18158
18159# Used on cygwin: DLL creation program.
18160DLLTOOL="$DLLTOOL"
18161
18162# Used on cygwin: object dumper.
18163OBJDUMP="$OBJDUMP"
18164
18165# Used on cygwin: assembler.
18166AS="$AS"
18167
18168# The name of the directory that contains temporary libtool files.
18169objdir=$objdir
18170
18171# How to create reloadable object files.
18172reload_flag=$lt_reload_flag
18173reload_cmds=$lt_reload_cmds
18174
18175# How to pass a linker flag through the compiler.
18176wl=$lt_lt_prog_compiler_wl_GCJ
18177
18178# Object file suffix (normally "o").
18179objext="$ac_objext"
18180
18181# Old archive suffix (normally "a").
18182libext="$libext"
18183
18184# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018185shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018186
18187# Executable file suffix (normally "").
18188exeext="$exeext"
18189
18190# Additional compiler flags for building library objects.
18191pic_flag=$lt_lt_prog_compiler_pic_GCJ
18192pic_mode=$pic_mode
18193
18194# What is the maximum length of a command?
18195max_cmd_len=$lt_cv_sys_max_cmd_len
18196
18197# Does compiler simultaneously support -c and -o options?
18198compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18199
18200# Must we lock files when doing compilation ?
18201need_locks=$lt_need_locks
18202
18203# Do we need the lib prefix for modules?
18204need_lib_prefix=$need_lib_prefix
18205
18206# Do we need a version for libraries?
18207need_version=$need_version
18208
18209# Whether dlopen is supported.
18210dlopen_support=$enable_dlopen
18211
18212# Whether dlopen of programs is supported.
18213dlopen_self=$enable_dlopen_self
18214
18215# Whether dlopen of statically linked programs is supported.
18216dlopen_self_static=$enable_dlopen_self_static
18217
18218# Compiler flag to prevent dynamic linking.
18219link_static_flag=$lt_lt_prog_compiler_static_GCJ
18220
18221# Compiler flag to turn off builtin functions.
18222no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18223
18224# Compiler flag to allow reflexive dlopens.
18225export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18226
18227# Compiler flag to generate shared objects directly from archives.
18228whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18229
18230# Compiler flag to generate thread-safe objects.
18231thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18232
18233# Library versioning type.
18234version_type=$version_type
18235
18236# Format of library name prefix.
18237libname_spec=$lt_libname_spec
18238
18239# List of archive names. First name is the real one, the rest are links.
18240# The last name is the one that the linker finds with -lNAME.
18241library_names_spec=$lt_library_names_spec
18242
18243# The coded name of the library, if different from the real name.
18244soname_spec=$lt_soname_spec
18245
18246# Commands used to build and install an old-style archive.
18247RANLIB=$lt_RANLIB
18248old_archive_cmds=$lt_old_archive_cmds_GCJ
18249old_postinstall_cmds=$lt_old_postinstall_cmds
18250old_postuninstall_cmds=$lt_old_postuninstall_cmds
18251
18252# Create an old-style archive from a shared archive.
18253old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18254
18255# Create a temporary old-style archive to link instead of a shared archive.
18256old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18257
18258# Commands used to build and install a shared archive.
18259archive_cmds=$lt_archive_cmds_GCJ
18260archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18261postinstall_cmds=$lt_postinstall_cmds
18262postuninstall_cmds=$lt_postuninstall_cmds
18263
18264# Commands used to build a loadable module (assumed same as above if empty)
18265module_cmds=$lt_module_cmds_GCJ
18266module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18267
18268# Commands to strip libraries.
18269old_striplib=$lt_old_striplib
18270striplib=$lt_striplib
18271
18272# Dependencies to place before the objects being linked to create a
18273# shared library.
18274predep_objects=$lt_predep_objects_GCJ
18275
18276# Dependencies to place after the objects being linked to create a
18277# shared library.
18278postdep_objects=$lt_postdep_objects_GCJ
18279
18280# Dependencies to place before the objects being linked to create a
18281# shared library.
18282predeps=$lt_predeps_GCJ
18283
18284# Dependencies to place after the objects being linked to create a
18285# shared library.
18286postdeps=$lt_postdeps_GCJ
18287
18288# The library search path used internally by the compiler when linking
18289# a shared library.
18290compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18291
18292# Method to check whether dependent libraries are shared objects.
18293deplibs_check_method=$lt_deplibs_check_method
18294
18295# Command to use when deplibs_check_method == file_magic.
18296file_magic_cmd=$lt_file_magic_cmd
18297
18298# Flag that allows shared libraries with undefined symbols to be built.
18299allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18300
18301# Flag that forces no undefined symbols.
18302no_undefined_flag=$lt_no_undefined_flag_GCJ
18303
18304# Commands used to finish a libtool library installation in a directory.
18305finish_cmds=$lt_finish_cmds
18306
18307# Same as above, but a single script fragment to be evaled but not shown.
18308finish_eval=$lt_finish_eval
18309
18310# Take the output of nm and produce a listing of raw symbols and C names.
18311global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18312
18313# Transform the output of nm in a proper C declaration
18314global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18315
18316# Transform the output of nm in a C name address pair
18317global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18318
18319# This is the shared library runtime path variable.
18320runpath_var=$runpath_var
18321
18322# This is the shared library path variable.
18323shlibpath_var=$shlibpath_var
18324
18325# Is shlibpath searched before the hard-coded library search path?
18326shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18327
18328# How to hardcode a shared library path into an executable.
18329hardcode_action=$hardcode_action_GCJ
18330
18331# Whether we should hardcode library paths into libraries.
18332hardcode_into_libs=$hardcode_into_libs
18333
18334# Flag to hardcode \$libdir into a binary during linking.
18335# This must work even if \$libdir does not exist.
18336hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18337
18338# If ld is used when linking, flag to hardcode \$libdir into
18339# a binary during linking. This must work even if \$libdir does
18340# not exist.
18341hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18342
18343# Whether we need a single -rpath flag with a separated argument.
18344hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18345
18346# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18347# resulting binary.
18348hardcode_direct=$hardcode_direct_GCJ
18349
18350# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18351# resulting binary.
18352hardcode_minus_L=$hardcode_minus_L_GCJ
18353
18354# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18355# the resulting binary.
18356hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18357
18358# Set to yes if building a shared library automatically hardcodes DIR into the library
18359# and all subsequent libraries and executables linked against it.
18360hardcode_automatic=$hardcode_automatic_GCJ
18361
18362# Variables whose values should be saved in libtool wrapper scripts and
18363# restored at relink time.
18364variables_saved_for_relink="$variables_saved_for_relink"
18365
18366# Whether libtool must link a program against all its dependency libraries.
18367link_all_deplibs=$link_all_deplibs_GCJ
18368
18369# Compile-time system search path for libraries
18370sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18371
18372# Run-time system search path for libraries
18373sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18374
18375# Fix the shell variable \$srcfile for the compiler.
18376fix_srcfile_path="$fix_srcfile_path_GCJ"
18377
18378# Set to yes if exported symbols are required.
18379always_export_symbols=$always_export_symbols_GCJ
18380
18381# The commands to list exported symbols.
18382export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18383
18384# The commands to extract the exported symbol list from a shared archive.
18385extract_expsyms_cmds=$lt_extract_expsyms_cmds
18386
18387# Symbols that should not be listed in the preloaded symbols.
18388exclude_expsyms=$lt_exclude_expsyms_GCJ
18389
18390# Symbols that must always be exported.
18391include_expsyms=$lt_include_expsyms_GCJ
18392
18393# ### END LIBTOOL TAG CONFIG: $tagname
18394
18395__EOF__
18396
18397
18398else
18399 # If there is no Makefile yet, we rely on a make rule to execute
18400 # `config.status --recheck' to rerun these tests and create the
18401 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018402 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18403 if test -f "$ltmain_in"; then
18404 test -f Makefile && make "$ltmain"
18405 fi
John Criswell47fdd832003-07-14 16:52:07 +000018406fi
18407
18408
18409ac_ext=c
18410ac_cpp='$CPP $CPPFLAGS'
18411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18413ac_compiler_gnu=$ac_cv_c_compiler_gnu
18414
18415CC="$lt_save_CC"
18416
18417 else
18418 tagname=""
18419 fi
18420 ;;
18421
18422 RC)
Reid Spencer2706f8c2004-09-19 23:53:36 +000018423 ac_ext=c
18424ac_cpp='$CPP $CPPFLAGS'
18425ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18426ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18427ac_compiler_gnu=$ac_cv_c_compiler_gnu
John Criswell47fdd832003-07-14 16:52:07 +000018428
18429
18430# Source file extension for RC test sources.
18431ac_ext=rc
18432
18433# Object file extension for compiled RC test sources.
18434objext=o
18435objext_RC=$objext
18436
18437# Code to be used in simple compile tests
18438lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18439
18440# Code to be used in simple link tests
18441lt_simple_link_test_code="$lt_simple_compile_test_code"
18442
18443# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18444
18445# If no C compiler was specified, use CC.
18446LTCC=${LTCC-"$CC"}
18447
18448# Allow CC to be a program name with arguments.
18449compiler=$CC
18450
18451
18452# Allow CC to be a program name with arguments.
18453lt_save_CC="$CC"
18454CC=${RC-"windres"}
18455compiler=$CC
18456compiler_RC=$CC
18457lt_cv_prog_compiler_c_o_RC=yes
18458
18459# The else clause should only fire when bootstrapping the
18460# libtool distribution, otherwise you forgot to ship ltmain.sh
18461# with your package, and you will get complaints that there are
18462# no rules to generate ltmain.sh.
18463if test -f "$ltmain"; then
18464 # See if we are running on zsh, and set the options which allow our commands through
18465 # without removal of \ escapes.
18466 if test -n "${ZSH_VERSION+set}" ; then
18467 setopt NO_GLOB_SUBST
18468 fi
18469 # Now quote all the things that may contain metacharacters while being
18470 # careful not to overquote the AC_SUBSTed values. We take copies of the
18471 # variables and quote the copies for generation of the libtool script.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018472 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18473 SED SHELL STRIP \
John Criswell47fdd832003-07-14 16:52:07 +000018474 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18475 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18476 deplibs_check_method reload_flag reload_cmds need_locks \
18477 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18478 lt_cv_sys_global_symbol_to_c_name_address \
18479 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18480 old_postinstall_cmds old_postuninstall_cmds \
18481 compiler_RC \
18482 CC_RC \
18483 LD_RC \
18484 lt_prog_compiler_wl_RC \
18485 lt_prog_compiler_pic_RC \
18486 lt_prog_compiler_static_RC \
18487 lt_prog_compiler_no_builtin_flag_RC \
18488 export_dynamic_flag_spec_RC \
18489 thread_safe_flag_spec_RC \
18490 whole_archive_flag_spec_RC \
18491 enable_shared_with_static_runtimes_RC \
18492 old_archive_cmds_RC \
18493 old_archive_from_new_cmds_RC \
18494 predep_objects_RC \
18495 postdep_objects_RC \
18496 predeps_RC \
18497 postdeps_RC \
18498 compiler_lib_search_path_RC \
18499 archive_cmds_RC \
18500 archive_expsym_cmds_RC \
18501 postinstall_cmds_RC \
18502 postuninstall_cmds_RC \
18503 old_archive_from_expsyms_cmds_RC \
18504 allow_undefined_flag_RC \
18505 no_undefined_flag_RC \
18506 export_symbols_cmds_RC \
18507 hardcode_libdir_flag_spec_RC \
18508 hardcode_libdir_flag_spec_ld_RC \
18509 hardcode_libdir_separator_RC \
18510 hardcode_automatic_RC \
18511 module_cmds_RC \
18512 module_expsym_cmds_RC \
18513 lt_cv_prog_compiler_c_o_RC \
18514 exclude_expsyms_RC \
18515 include_expsyms_RC; do
18516
18517 case $var in
18518 old_archive_cmds_RC | \
18519 old_archive_from_new_cmds_RC | \
18520 archive_cmds_RC | \
18521 archive_expsym_cmds_RC | \
18522 module_cmds_RC | \
18523 module_expsym_cmds_RC | \
18524 old_archive_from_expsyms_cmds_RC | \
18525 export_symbols_cmds_RC | \
18526 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18527 postinstall_cmds | postuninstall_cmds | \
18528 old_postinstall_cmds | old_postuninstall_cmds | \
18529 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18530 # Double-quote double-evaled strings.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018531 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 +000018532 ;;
18533 *)
18534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18535 ;;
18536 esac
18537 done
18538
18539 case $lt_echo in
18540 *'\$0 --fallback-echo"')
18541 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18542 ;;
18543 esac
18544
18545cfgfile="$ofile"
18546
18547 cat <<__EOF__ >> "$cfgfile"
18548# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18549
18550# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18551
18552# Shell to use when invoking shell scripts.
18553SHELL=$lt_SHELL
18554
18555# Whether or not to build shared libraries.
18556build_libtool_libs=$enable_shared
18557
18558# Whether or not to build static libraries.
18559build_old_libs=$enable_static
18560
18561# Whether or not to add -lc for building shared libraries.
18562build_libtool_need_lc=$archive_cmds_need_lc_RC
18563
18564# Whether or not to disallow shared libs when runtime libs are static
18565allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18566
18567# Whether or not to optimize for fast installation.
18568fast_install=$enable_fast_install
18569
18570# The host system.
18571host_alias=$host_alias
18572host=$host
18573
18574# An echo program that does not interpret backslashes.
18575echo=$lt_echo
18576
18577# The archiver.
18578AR=$lt_AR
18579AR_FLAGS=$lt_AR_FLAGS
18580
18581# A C compiler.
18582LTCC=$lt_LTCC
18583
18584# A language-specific compiler.
18585CC=$lt_compiler_RC
18586
18587# Is the compiler the GNU C compiler?
18588with_gcc=$GCC_RC
18589
18590# An ERE matcher.
18591EGREP=$lt_EGREP
18592
18593# The linker used to build libraries.
18594LD=$lt_LD_RC
18595
18596# Whether we need hard or soft links.
18597LN_S=$lt_LN_S
18598
18599# A BSD-compatible nm program.
18600NM=$lt_NM
18601
18602# A symbol stripping program
Reid Spencer2706f8c2004-09-19 23:53:36 +000018603STRIP=$lt_STRIP
John Criswell47fdd832003-07-14 16:52:07 +000018604
18605# Used to examine libraries when file_magic_cmd begins "file"
18606MAGIC_CMD=$MAGIC_CMD
18607
18608# Used on cygwin: DLL creation program.
18609DLLTOOL="$DLLTOOL"
18610
18611# Used on cygwin: object dumper.
18612OBJDUMP="$OBJDUMP"
18613
18614# Used on cygwin: assembler.
18615AS="$AS"
18616
18617# The name of the directory that contains temporary libtool files.
18618objdir=$objdir
18619
18620# How to create reloadable object files.
18621reload_flag=$lt_reload_flag
18622reload_cmds=$lt_reload_cmds
18623
18624# How to pass a linker flag through the compiler.
18625wl=$lt_lt_prog_compiler_wl_RC
18626
18627# Object file suffix (normally "o").
18628objext="$ac_objext"
18629
18630# Old archive suffix (normally "a").
18631libext="$libext"
18632
18633# Shared library suffix (normally ".so").
Reid Spencer2706f8c2004-09-19 23:53:36 +000018634shrext_cmds='$shrext_cmds'
John Criswell47fdd832003-07-14 16:52:07 +000018635
18636# Executable file suffix (normally "").
18637exeext="$exeext"
18638
18639# Additional compiler flags for building library objects.
18640pic_flag=$lt_lt_prog_compiler_pic_RC
18641pic_mode=$pic_mode
18642
18643# What is the maximum length of a command?
18644max_cmd_len=$lt_cv_sys_max_cmd_len
18645
18646# Does compiler simultaneously support -c and -o options?
18647compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18648
18649# Must we lock files when doing compilation ?
18650need_locks=$lt_need_locks
18651
18652# Do we need the lib prefix for modules?
18653need_lib_prefix=$need_lib_prefix
18654
18655# Do we need a version for libraries?
18656need_version=$need_version
18657
18658# Whether dlopen is supported.
18659dlopen_support=$enable_dlopen
18660
18661# Whether dlopen of programs is supported.
18662dlopen_self=$enable_dlopen_self
18663
18664# Whether dlopen of statically linked programs is supported.
18665dlopen_self_static=$enable_dlopen_self_static
18666
18667# Compiler flag to prevent dynamic linking.
18668link_static_flag=$lt_lt_prog_compiler_static_RC
18669
18670# Compiler flag to turn off builtin functions.
18671no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18672
18673# Compiler flag to allow reflexive dlopens.
18674export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18675
18676# Compiler flag to generate shared objects directly from archives.
18677whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18678
18679# Compiler flag to generate thread-safe objects.
18680thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18681
18682# Library versioning type.
18683version_type=$version_type
18684
18685# Format of library name prefix.
18686libname_spec=$lt_libname_spec
18687
18688# List of archive names. First name is the real one, the rest are links.
18689# The last name is the one that the linker finds with -lNAME.
18690library_names_spec=$lt_library_names_spec
18691
18692# The coded name of the library, if different from the real name.
18693soname_spec=$lt_soname_spec
18694
18695# Commands used to build and install an old-style archive.
18696RANLIB=$lt_RANLIB
18697old_archive_cmds=$lt_old_archive_cmds_RC
18698old_postinstall_cmds=$lt_old_postinstall_cmds
18699old_postuninstall_cmds=$lt_old_postuninstall_cmds
18700
18701# Create an old-style archive from a shared archive.
18702old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18703
18704# Create a temporary old-style archive to link instead of a shared archive.
18705old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18706
18707# Commands used to build and install a shared archive.
18708archive_cmds=$lt_archive_cmds_RC
18709archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18710postinstall_cmds=$lt_postinstall_cmds
18711postuninstall_cmds=$lt_postuninstall_cmds
18712
18713# Commands used to build a loadable module (assumed same as above if empty)
18714module_cmds=$lt_module_cmds_RC
18715module_expsym_cmds=$lt_module_expsym_cmds_RC
18716
18717# Commands to strip libraries.
18718old_striplib=$lt_old_striplib
18719striplib=$lt_striplib
18720
18721# Dependencies to place before the objects being linked to create a
18722# shared library.
18723predep_objects=$lt_predep_objects_RC
18724
18725# Dependencies to place after the objects being linked to create a
18726# shared library.
18727postdep_objects=$lt_postdep_objects_RC
18728
18729# Dependencies to place before the objects being linked to create a
18730# shared library.
18731predeps=$lt_predeps_RC
18732
18733# Dependencies to place after the objects being linked to create a
18734# shared library.
18735postdeps=$lt_postdeps_RC
18736
18737# The library search path used internally by the compiler when linking
18738# a shared library.
18739compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18740
18741# Method to check whether dependent libraries are shared objects.
18742deplibs_check_method=$lt_deplibs_check_method
18743
18744# Command to use when deplibs_check_method == file_magic.
18745file_magic_cmd=$lt_file_magic_cmd
18746
18747# Flag that allows shared libraries with undefined symbols to be built.
18748allow_undefined_flag=$lt_allow_undefined_flag_RC
18749
18750# Flag that forces no undefined symbols.
18751no_undefined_flag=$lt_no_undefined_flag_RC
18752
18753# Commands used to finish a libtool library installation in a directory.
18754finish_cmds=$lt_finish_cmds
18755
18756# Same as above, but a single script fragment to be evaled but not shown.
18757finish_eval=$lt_finish_eval
18758
18759# Take the output of nm and produce a listing of raw symbols and C names.
18760global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18761
18762# Transform the output of nm in a proper C declaration
18763global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18764
18765# Transform the output of nm in a C name address pair
18766global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18767
18768# This is the shared library runtime path variable.
18769runpath_var=$runpath_var
18770
18771# This is the shared library path variable.
18772shlibpath_var=$shlibpath_var
18773
18774# Is shlibpath searched before the hard-coded library search path?
18775shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18776
18777# How to hardcode a shared library path into an executable.
18778hardcode_action=$hardcode_action_RC
18779
18780# Whether we should hardcode library paths into libraries.
18781hardcode_into_libs=$hardcode_into_libs
18782
18783# Flag to hardcode \$libdir into a binary during linking.
18784# This must work even if \$libdir does not exist.
18785hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18786
18787# If ld is used when linking, flag to hardcode \$libdir into
18788# a binary during linking. This must work even if \$libdir does
18789# not exist.
18790hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18791
18792# Whether we need a single -rpath flag with a separated argument.
18793hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18794
18795# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18796# resulting binary.
18797hardcode_direct=$hardcode_direct_RC
18798
18799# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18800# resulting binary.
18801hardcode_minus_L=$hardcode_minus_L_RC
18802
18803# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18804# the resulting binary.
18805hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18806
18807# Set to yes if building a shared library automatically hardcodes DIR into the library
18808# and all subsequent libraries and executables linked against it.
18809hardcode_automatic=$hardcode_automatic_RC
18810
18811# Variables whose values should be saved in libtool wrapper scripts and
18812# restored at relink time.
18813variables_saved_for_relink="$variables_saved_for_relink"
18814
18815# Whether libtool must link a program against all its dependency libraries.
18816link_all_deplibs=$link_all_deplibs_RC
18817
18818# Compile-time system search path for libraries
18819sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18820
18821# Run-time system search path for libraries
18822sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18823
18824# Fix the shell variable \$srcfile for the compiler.
18825fix_srcfile_path="$fix_srcfile_path_RC"
18826
18827# Set to yes if exported symbols are required.
18828always_export_symbols=$always_export_symbols_RC
18829
18830# The commands to list exported symbols.
18831export_symbols_cmds=$lt_export_symbols_cmds_RC
18832
18833# The commands to extract the exported symbol list from a shared archive.
18834extract_expsyms_cmds=$lt_extract_expsyms_cmds
18835
18836# Symbols that should not be listed in the preloaded symbols.
18837exclude_expsyms=$lt_exclude_expsyms_RC
18838
18839# Symbols that must always be exported.
18840include_expsyms=$lt_include_expsyms_RC
18841
18842# ### END LIBTOOL TAG CONFIG: $tagname
18843
18844__EOF__
18845
18846
18847else
18848 # If there is no Makefile yet, we rely on a make rule to execute
18849 # `config.status --recheck' to rerun these tests and create the
18850 # libtool script then.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018851 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18852 if test -f "$ltmain_in"; then
18853 test -f Makefile && make "$ltmain"
18854 fi
John Criswell47fdd832003-07-14 16:52:07 +000018855fi
18856
18857
18858ac_ext=c
18859ac_cpp='$CPP $CPPFLAGS'
18860ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18861ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18862ac_compiler_gnu=$ac_cv_c_compiler_gnu
18863
18864CC="$lt_save_CC"
18865
18866 ;;
18867
18868 *)
18869 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18870echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18871 { (exit 1); exit 1; }; }
18872 ;;
18873 esac
18874
18875 # Append the new tag name to the list of available tags.
18876 if test -n "$tagname" ; then
18877 available_tags="$available_tags $tagname"
18878 fi
18879 fi
18880 done
18881 IFS="$lt_save_ifs"
18882
18883 # Now substitute the updated list of available tags.
18884 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18885 mv "${ofile}T" "$ofile"
18886 chmod +x "$ofile"
18887 else
18888 rm -f "${ofile}T"
18889 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18890echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18891 { (exit 1); exit 1; }; }
18892 fi
18893fi
John Criswell7a73b802003-06-30 21:59:07 +000018894
18895
18896
18897# This can be used to rebuild libtool when needed
18898LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18899
18900# Always use our own libtool.
Reid Spencer2706f8c2004-09-19 23:53:36 +000018901LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018902
18903# Prevent multiple expansion
18904
18905
18906
John Criswell47fdd832003-07-14 16:52:07 +000018907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920
18921
18922
18923
18924
John Criswell7a73b802003-06-30 21:59:07 +000018925# Extract the first word of "dot", so it can be a program name with args.
18926set dummy dot; ac_word=$2
18927echo "$as_me:$LINENO: checking for $ac_word" >&5
18928echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18929if test "${ac_cv_path_DOT+set}" = set; then
18930 echo $ECHO_N "(cached) $ECHO_C" >&6
18931else
18932 case $DOT in
18933 [\\/]* | ?:[\\/]*)
18934 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18935 ;;
18936 *)
18937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18938for as_dir in $PATH
18939do
18940 IFS=$as_save_IFS
18941 test -z "$as_dir" && as_dir=.
18942 for ac_exec_ext in '' $ac_executable_extensions; do
18943 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18944 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18946 break 2
18947 fi
18948done
18949done
18950
Brian Gaeke26be9c52004-01-13 06:43:16 +000018951 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018952 ;;
18953esac
18954fi
18955DOT=$ac_cv_path_DOT
18956
18957if test -n "$DOT"; then
18958 echo "$as_me:$LINENO: result: $DOT" >&5
18959echo "${ECHO_T}$DOT" >&6
18960else
18961 echo "$as_me:$LINENO: result: no" >&5
18962echo "${ECHO_T}no" >&6
18963fi
18964
18965# Extract the first word of "etags", so it can be a program name with args.
18966set dummy etags; ac_word=$2
18967echo "$as_me:$LINENO: checking for $ac_word" >&5
18968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18969if test "${ac_cv_path_ETAGS+set}" = set; then
18970 echo $ECHO_N "(cached) $ECHO_C" >&6
18971else
18972 case $ETAGS in
18973 [\\/]* | ?:[\\/]*)
18974 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18975 ;;
18976 *)
18977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18978for as_dir in $PATH
18979do
18980 IFS=$as_save_IFS
18981 test -z "$as_dir" && as_dir=.
18982 for ac_exec_ext in '' $ac_executable_extensions; do
18983 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18984 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18986 break 2
18987 fi
18988done
18989done
18990
Brian Gaeke26be9c52004-01-13 06:43:16 +000018991 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018992 ;;
18993esac
18994fi
18995ETAGS=$ac_cv_path_ETAGS
18996
18997if test -n "$ETAGS"; then
18998 echo "$as_me:$LINENO: result: $ETAGS" >&5
18999echo "${ECHO_T}$ETAGS" >&6
19000else
19001 echo "$as_me:$LINENO: result: no" >&5
19002echo "${ECHO_T}no" >&6
19003fi
19004
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000019005etags_version=`$ETAGS --version 2>&1`
19006case "$etags_version" in
19007 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
19008 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
19009 *) ETAGSFLAGS="" ;;
19010esac
19011ETAGSFLAGS=$ETAGSFLAGS
19012
John Criswellde00db22003-08-25 16:49:54 +000019013# Extract the first word of "python", so it can be a program name with args.
19014set dummy python; ac_word=$2
19015echo "$as_me:$LINENO: checking for $ac_word" >&5
19016echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19017if test "${ac_cv_path_PYTHON+set}" = set; then
19018 echo $ECHO_N "(cached) $ECHO_C" >&6
19019else
19020 case $PYTHON in
19021 [\\/]* | ?:[\\/]*)
19022 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
19023 ;;
19024 *)
19025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19026for as_dir in $PATH
19027do
19028 IFS=$as_save_IFS
19029 test -z "$as_dir" && as_dir=.
19030 for ac_exec_ext in '' $ac_executable_extensions; do
19031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19032 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
19033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19034 break 2
19035 fi
19036done
19037done
19038
Brian Gaeke26be9c52004-01-13 06:43:16 +000019039 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000019040 ;;
19041esac
19042fi
19043PYTHON=$ac_cv_path_PYTHON
19044
19045if test -n "$PYTHON"; then
19046 echo "$as_me:$LINENO: result: $PYTHON" >&5
19047echo "${ECHO_T}$PYTHON" >&6
19048else
19049 echo "$as_me:$LINENO: result: no" >&5
19050echo "${ECHO_T}no" >&6
19051fi
19052
Brian Gaeke26be9c52004-01-13 06:43:16 +000019053if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000019054then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019055 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
19056echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019057fi
John Criswellde00db22003-08-25 16:49:54 +000019058# Extract the first word of "qmtest", so it can be a program name with args.
19059set dummy qmtest; ac_word=$2
19060echo "$as_me:$LINENO: checking for $ac_word" >&5
19061echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19062if test "${ac_cv_path_QMTEST+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19064else
19065 case $QMTEST in
19066 [\\/]* | ?:[\\/]*)
19067 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
19068 ;;
19069 *)
19070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19071for as_dir in $PATH
19072do
19073 IFS=$as_save_IFS
19074 test -z "$as_dir" && as_dir=.
19075 for ac_exec_ext in '' $ac_executable_extensions; do
19076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19077 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
19078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19079 break 2
19080 fi
19081done
19082done
19083
Brian Gaeke26be9c52004-01-13 06:43:16 +000019084 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000019085 ;;
19086esac
19087fi
19088QMTEST=$ac_cv_path_QMTEST
19089
19090if test -n "$QMTEST"; then
19091 echo "$as_me:$LINENO: result: $QMTEST" >&5
19092echo "${ECHO_T}$QMTEST" >&6
19093else
19094 echo "$as_me:$LINENO: result: no" >&5
19095echo "${ECHO_T}no" >&6
19096fi
19097
Brian Gaeke26be9c52004-01-13 06:43:16 +000019098if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000019099then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019100 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
19101echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000019102fi
John Criswellde00db22003-08-25 16:49:54 +000019103
19104pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
19105pymajor=`echo $pyversion | cut -d. -f1`
19106pyminor=`echo $pyversion | cut -d. -f2`
19107
19108if test "$pymajor" -ge "2"
19109then
19110 if test "$pymajor" -eq "2"
19111 then
19112 if test "$pyminor" -lt "2"
19113 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000019114 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19115echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019116 fi
19117 fi
19118else
Brian Gaeke26be9c52004-01-13 06:43:16 +000019119 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
19120echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000019121fi
John Criswell7a73b802003-06-30 21:59:07 +000019122
19123
John Criswell7a73b802003-06-30 21:59:07 +000019124echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
19125echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
19126if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19128else
19129 ac_check_lib_save_LIBS=$LIBS
19130LIBS="-lelf $LIBS"
19131cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019132/* confdefs.h. */
19133_ACEOF
19134cat confdefs.h >>conftest.$ac_ext
19135cat >>conftest.$ac_ext <<_ACEOF
19136/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019137
19138/* Override any gcc2 internal prototype to avoid an error. */
19139#ifdef __cplusplus
19140extern "C"
19141#endif
19142/* We use char because int might match the return type of a gcc2
19143 builtin and then its argument prototype would still apply. */
19144char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000019145int
19146main ()
19147{
19148elf_begin ();
19149 ;
19150 return 0;
19151}
19152_ACEOF
19153rm -f conftest.$ac_objext conftest$ac_exeext
19154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019155 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019156 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019157 grep -v '^ *+' conftest.er1 >conftest.err
19158 rm -f conftest.er1
19159 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019162 { ac_try='test -z "$ac_c_werror_flag"
19163 || test ! -s conftest.err'
19164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19165 (eval $ac_try) 2>&5
19166 ac_status=$?
19167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19168 (exit $ac_status); }; } &&
19169 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19171 (eval $ac_try) 2>&5
19172 ac_status=$?
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); }; }; then
19175 ac_cv_lib_elf_elf_begin=yes
19176else
19177 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019178sed 's/^/| /' conftest.$ac_ext >&5
19179
John Criswell7a73b802003-06-30 21:59:07 +000019180ac_cv_lib_elf_elf_begin=no
19181fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019182rm -f conftest.err conftest.$ac_objext \
19183 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019184LIBS=$ac_check_lib_save_LIBS
19185fi
19186echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
19187echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
19188if test $ac_cv_lib_elf_elf_begin = yes; then
19189 cat >>confdefs.h <<_ACEOF
19190#define HAVE_LIBELF 1
19191_ACEOF
19192
19193 LIBS="-lelf $LIBS"
19194
19195fi
19196
19197
19198echo "$as_me:$LINENO: checking for library containing dlopen" >&5
19199echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
19200if test "${ac_cv_search_dlopen+set}" = set; then
19201 echo $ECHO_N "(cached) $ECHO_C" >&6
19202else
19203 ac_func_search_save_LIBS=$LIBS
19204ac_cv_search_dlopen=no
19205cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019206/* confdefs.h. */
19207_ACEOF
19208cat confdefs.h >>conftest.$ac_ext
19209cat >>conftest.$ac_ext <<_ACEOF
19210/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019211
19212/* Override any gcc2 internal prototype to avoid an error. */
19213#ifdef __cplusplus
19214extern "C"
19215#endif
19216/* We use char because int might match the return type of a gcc2
19217 builtin and then its argument prototype would still apply. */
19218char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019219int
19220main ()
19221{
19222dlopen ();
19223 ;
19224 return 0;
19225}
19226_ACEOF
19227rm -f conftest.$ac_objext conftest$ac_exeext
19228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019229 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019230 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019231 grep -v '^ *+' conftest.er1 >conftest.err
19232 rm -f conftest.er1
19233 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19235 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019236 { ac_try='test -z "$ac_c_werror_flag"
19237 || test ! -s conftest.err'
19238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19239 (eval $ac_try) 2>&5
19240 ac_status=$?
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); }; } &&
19243 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19245 (eval $ac_try) 2>&5
19246 ac_status=$?
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; }; then
19249 ac_cv_search_dlopen="none required"
19250else
19251 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019252sed 's/^/| /' conftest.$ac_ext >&5
19253
John Criswell7a73b802003-06-30 21:59:07 +000019254fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019255rm -f conftest.err conftest.$ac_objext \
19256 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019257if test "$ac_cv_search_dlopen" = no; then
19258 for ac_lib in dl; do
19259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19260 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019261/* confdefs.h. */
19262_ACEOF
19263cat confdefs.h >>conftest.$ac_ext
19264cat >>conftest.$ac_ext <<_ACEOF
19265/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019266
19267/* Override any gcc2 internal prototype to avoid an error. */
19268#ifdef __cplusplus
19269extern "C"
19270#endif
19271/* We use char because int might match the return type of a gcc2
19272 builtin and then its argument prototype would still apply. */
19273char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019274int
19275main ()
19276{
19277dlopen ();
19278 ;
19279 return 0;
19280}
19281_ACEOF
19282rm -f conftest.$ac_objext conftest$ac_exeext
19283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019284 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019285 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019286 grep -v '^ *+' conftest.er1 >conftest.err
19287 rm -f conftest.er1
19288 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019291 { ac_try='test -z "$ac_c_werror_flag"
19292 || test ! -s conftest.err'
19293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19294 (eval $ac_try) 2>&5
19295 ac_status=$?
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; } &&
19298 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19300 (eval $ac_try) 2>&5
19301 ac_status=$?
19302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19303 (exit $ac_status); }; }; then
19304 ac_cv_search_dlopen="-l$ac_lib"
19305break
19306else
19307 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019308sed 's/^/| /' conftest.$ac_ext >&5
19309
John Criswell7a73b802003-06-30 21:59:07 +000019310fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019311rm -f conftest.err conftest.$ac_objext \
19312 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019313 done
19314fi
19315LIBS=$ac_func_search_save_LIBS
19316fi
19317echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19318echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19319if test "$ac_cv_search_dlopen" != no; then
19320 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019321
19322cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019323#define HAVE_DLOPEN 1
19324_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019325
19326else
Brian Gaekec45be042003-10-07 06:01:34 +000019327 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19328echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019329fi
19330
19331
19332echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19333echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19334if test "${ac_cv_search_mallinfo+set}" = set; then
19335 echo $ECHO_N "(cached) $ECHO_C" >&6
19336else
19337 ac_func_search_save_LIBS=$LIBS
19338ac_cv_search_mallinfo=no
19339cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019340/* confdefs.h. */
19341_ACEOF
19342cat confdefs.h >>conftest.$ac_ext
19343cat >>conftest.$ac_ext <<_ACEOF
19344/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019345
19346/* Override any gcc2 internal prototype to avoid an error. */
19347#ifdef __cplusplus
19348extern "C"
19349#endif
19350/* We use char because int might match the return type of a gcc2
19351 builtin and then its argument prototype would still apply. */
19352char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019353int
19354main ()
19355{
19356mallinfo ();
19357 ;
19358 return 0;
19359}
19360_ACEOF
19361rm -f conftest.$ac_objext conftest$ac_exeext
19362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019363 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019364 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019365 grep -v '^ *+' conftest.er1 >conftest.err
19366 rm -f conftest.er1
19367 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19369 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019370 { ac_try='test -z "$ac_c_werror_flag"
19371 || test ! -s conftest.err'
19372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19373 (eval $ac_try) 2>&5
19374 ac_status=$?
19375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19376 (exit $ac_status); }; } &&
19377 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19379 (eval $ac_try) 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; }; then
19383 ac_cv_search_mallinfo="none required"
19384else
19385 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019386sed 's/^/| /' conftest.$ac_ext >&5
19387
John Criswell7a73b802003-06-30 21:59:07 +000019388fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019389rm -f conftest.err conftest.$ac_objext \
19390 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019391if test "$ac_cv_search_mallinfo" = no; then
19392 for ac_lib in malloc; do
19393 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19394 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019395/* confdefs.h. */
19396_ACEOF
19397cat confdefs.h >>conftest.$ac_ext
19398cat >>conftest.$ac_ext <<_ACEOF
19399/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019400
19401/* Override any gcc2 internal prototype to avoid an error. */
19402#ifdef __cplusplus
19403extern "C"
19404#endif
19405/* We use char because int might match the return type of a gcc2
19406 builtin and then its argument prototype would still apply. */
19407char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019408int
19409main ()
19410{
19411mallinfo ();
19412 ;
19413 return 0;
19414}
19415_ACEOF
19416rm -f conftest.$ac_objext conftest$ac_exeext
19417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019418 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019419 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019425 { ac_try='test -z "$ac_c_werror_flag"
19426 || test ! -s conftest.err'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19429 ac_status=$?
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; } &&
19432 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19435 ac_status=$?
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; }; then
19438 ac_cv_search_mallinfo="-l$ac_lib"
19439break
19440else
19441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019442sed 's/^/| /' conftest.$ac_ext >&5
19443
John Criswell7a73b802003-06-30 21:59:07 +000019444fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019445rm -f conftest.err conftest.$ac_objext \
19446 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019447 done
19448fi
19449LIBS=$ac_func_search_save_LIBS
19450fi
19451echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19452echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19453if test "$ac_cv_search_mallinfo" != no; then
19454 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019455
19456cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019457#define HAVE_MALLINFO 1
19458_ACEOF
19459
19460fi
19461
19462
Brian Gaeke5f268f72003-12-05 19:29:01 +000019463echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19464echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19465if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19467else
19468 ac_func_search_save_LIBS=$LIBS
19469ac_cv_search_pthread_mutex_lock=no
19470cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019471/* confdefs.h. */
19472_ACEOF
19473cat confdefs.h >>conftest.$ac_ext
19474cat >>conftest.$ac_ext <<_ACEOF
19475/* end confdefs.h. */
19476
19477/* Override any gcc2 internal prototype to avoid an error. */
19478#ifdef __cplusplus
19479extern "C"
19480#endif
19481/* We use char because int might match the return type of a gcc2
19482 builtin and then its argument prototype would still apply. */
19483char pthread_mutex_lock ();
19484int
19485main ()
19486{
19487pthread_mutex_lock ();
19488 ;
19489 return 0;
19490}
19491_ACEOF
19492rm -f conftest.$ac_objext conftest$ac_exeext
19493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019494 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019495 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019496 grep -v '^ *+' conftest.er1 >conftest.err
19497 rm -f conftest.er1
19498 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019501 { ac_try='test -z "$ac_c_werror_flag"
19502 || test ! -s conftest.err'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19505 ac_status=$?
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; } &&
19508 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510 (eval $ac_try) 2>&5
19511 ac_status=$?
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; }; then
19514 ac_cv_search_pthread_mutex_lock="none required"
19515else
19516 echo "$as_me: failed program was:" >&5
19517sed 's/^/| /' conftest.$ac_ext >&5
19518
19519fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019520rm -f conftest.err conftest.$ac_objext \
19521 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019522if test "$ac_cv_search_pthread_mutex_lock" = no; then
19523 for ac_lib in pthread; do
19524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19525 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019526/* confdefs.h. */
19527_ACEOF
19528cat confdefs.h >>conftest.$ac_ext
19529cat >>conftest.$ac_ext <<_ACEOF
19530/* end confdefs.h. */
19531
19532/* Override any gcc2 internal prototype to avoid an error. */
19533#ifdef __cplusplus
19534extern "C"
19535#endif
19536/* We use char because int might match the return type of a gcc2
19537 builtin and then its argument prototype would still apply. */
19538char pthread_mutex_lock ();
19539int
19540main ()
19541{
19542pthread_mutex_lock ();
19543 ;
19544 return 0;
19545}
19546_ACEOF
19547rm -f conftest.$ac_objext conftest$ac_exeext
19548if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019549 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019550 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019551 grep -v '^ *+' conftest.er1 >conftest.err
19552 rm -f conftest.er1
19553 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019556 { ac_try='test -z "$ac_c_werror_flag"
19557 || test ! -s conftest.err'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19560 ac_status=$?
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
19563 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; }; then
19569 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19570break
19571else
19572 echo "$as_me: failed program was:" >&5
19573sed 's/^/| /' conftest.$ac_ext >&5
19574
19575fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019576rm -f conftest.err conftest.$ac_objext \
19577 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019578 done
19579fi
19580LIBS=$ac_func_search_save_LIBS
19581fi
19582echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19583echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19584if test "$ac_cv_search_pthread_mutex_lock" != no; then
19585 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000019586 HAVE_PTHREAD_MUTEX_LOCK=1
19587else
19588 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000019589fi
19590
19591
Brian Gaekec9a410c2004-02-23 21:30:37 +000019592
John Criswell7a73b802003-06-30 21:59:07 +000019593echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19594echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19595if test "${ac_cv_header_stdc+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19597else
19598 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019599/* confdefs.h. */
19600_ACEOF
19601cat confdefs.h >>conftest.$ac_ext
19602cat >>conftest.$ac_ext <<_ACEOF
19603/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019604#include <stdlib.h>
19605#include <stdarg.h>
19606#include <string.h>
19607#include <float.h>
19608
John Criswell0c38eaf2003-09-10 15:17:25 +000019609int
19610main ()
19611{
19612
19613 ;
19614 return 0;
19615}
John Criswell7a73b802003-06-30 21:59:07 +000019616_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019617rm -f conftest.$ac_objext
19618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019619 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019620 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019621 grep -v '^ *+' conftest.er1 >conftest.err
19622 rm -f conftest.er1
19623 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019625 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019626 { ac_try='test -z "$ac_c_werror_flag"
19627 || test ! -s conftest.err'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; } &&
19633 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000019634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19635 (eval $ac_try) 2>&5
19636 ac_status=$?
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019639 ac_cv_header_stdc=yes
19640else
19641 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019642sed 's/^/| /' conftest.$ac_ext >&5
19643
19644ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019645fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019646rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019647
19648if test $ac_cv_header_stdc = yes; then
19649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19650 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019651/* confdefs.h. */
19652_ACEOF
19653cat confdefs.h >>conftest.$ac_ext
19654cat >>conftest.$ac_ext <<_ACEOF
19655/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019656#include <string.h>
19657
19658_ACEOF
19659if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019660 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019661 :
19662else
19663 ac_cv_header_stdc=no
19664fi
19665rm -f conftest*
19666
19667fi
19668
19669if test $ac_cv_header_stdc = yes; then
19670 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19671 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019672/* confdefs.h. */
19673_ACEOF
19674cat confdefs.h >>conftest.$ac_ext
19675cat >>conftest.$ac_ext <<_ACEOF
19676/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019677#include <stdlib.h>
19678
19679_ACEOF
19680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019681 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019682 :
19683else
19684 ac_cv_header_stdc=no
19685fi
19686rm -f conftest*
19687
19688fi
19689
19690if test $ac_cv_header_stdc = yes; then
19691 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19692 if test "$cross_compiling" = yes; then
19693 :
19694else
19695 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019696/* confdefs.h. */
19697_ACEOF
19698cat confdefs.h >>conftest.$ac_ext
19699cat >>conftest.$ac_ext <<_ACEOF
19700/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019701#include <ctype.h>
19702#if ((' ' & 0x0FF) == 0x020)
19703# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19704# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19705#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019706# define ISLOWER(c) \
Reid Spencer2706f8c2004-09-19 23:53:36 +000019707 (('a' <= (c) && (c) <= 'i') \
19708 || ('j' <= (c) && (c) <= 'r') \
19709 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000019710# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19711#endif
19712
19713#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19714int
19715main ()
19716{
19717 int i;
19718 for (i = 0; i < 256; i++)
19719 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2706f8c2004-09-19 23:53:36 +000019720 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000019721 exit(2);
19722 exit (0);
19723}
19724_ACEOF
19725rm -f conftest$ac_exeext
19726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19727 (eval $ac_link) 2>&5
19728 ac_status=$?
19729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19730 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19732 (eval $ac_try) 2>&5
19733 ac_status=$?
19734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); }; }; then
19736 :
19737else
19738 echo "$as_me: program exited with status $ac_status" >&5
19739echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019740sed 's/^/| /' conftest.$ac_ext >&5
19741
John Criswell7a73b802003-06-30 21:59:07 +000019742( exit $ac_status )
19743ac_cv_header_stdc=no
19744fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019745rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019746fi
19747fi
19748fi
19749echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19750echo "${ECHO_T}$ac_cv_header_stdc" >&6
19751if test $ac_cv_header_stdc = yes; then
19752
19753cat >>confdefs.h <<\_ACEOF
19754#define STDC_HEADERS 1
19755_ACEOF
19756
19757fi
19758
19759echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19760echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19761if test "${ac_cv_header_sys_wait_h+set}" = set; then
19762 echo $ECHO_N "(cached) $ECHO_C" >&6
19763else
19764 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019765/* confdefs.h. */
19766_ACEOF
19767cat confdefs.h >>conftest.$ac_ext
19768cat >>conftest.$ac_ext <<_ACEOF
19769/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019770#include <sys/types.h>
19771#include <sys/wait.h>
19772#ifndef WEXITSTATUS
19773# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19774#endif
19775#ifndef WIFEXITED
19776# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19777#endif
19778
John Criswell7a73b802003-06-30 21:59:07 +000019779int
19780main ()
19781{
19782 int s;
19783 wait (&s);
19784 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19785 ;
19786 return 0;
19787}
19788_ACEOF
19789rm -f conftest.$ac_objext
19790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019791 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019792 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019793 grep -v '^ *+' conftest.er1 >conftest.err
19794 rm -f conftest.er1
19795 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019798 { ac_try='test -z "$ac_c_werror_flag"
19799 || test ! -s conftest.err'
19800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19801 (eval $ac_try) 2>&5
19802 ac_status=$?
19803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19804 (exit $ac_status); }; } &&
19805 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19808 ac_status=$?
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; }; then
19811 ac_cv_header_sys_wait_h=yes
19812else
19813 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019814sed 's/^/| /' conftest.$ac_ext >&5
19815
John Criswell7a73b802003-06-30 21:59:07 +000019816ac_cv_header_sys_wait_h=no
19817fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019818rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019819fi
19820echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19821echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19822if test $ac_cv_header_sys_wait_h = yes; then
19823
19824cat >>confdefs.h <<\_ACEOF
19825#define HAVE_SYS_WAIT_H 1
19826_ACEOF
19827
19828fi
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
Brian Gaeke26be9c52004-01-13 06:43:16 +000019839
Brian Gaekef5261472004-02-20 06:40:57 +000019840
John Criswellb2815e02004-05-27 20:40:39 +000019841
19842for 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 +000019843do
19844as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19845if eval "test \"\${$as_ac_Header+set}\" = set"; then
19846 echo "$as_me:$LINENO: checking for $ac_header" >&5
19847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19848if eval "test \"\${$as_ac_Header+set}\" = set"; then
19849 echo $ECHO_N "(cached) $ECHO_C" >&6
19850fi
19851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19853else
19854 # Is the header compilable?
19855echo "$as_me:$LINENO: checking $ac_header usability" >&5
19856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19857cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019858/* confdefs.h. */
19859_ACEOF
19860cat confdefs.h >>conftest.$ac_ext
19861cat >>conftest.$ac_ext <<_ACEOF
19862/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019863$ac_includes_default
19864#include <$ac_header>
19865_ACEOF
19866rm -f conftest.$ac_objext
19867if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000019868 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019869 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019870 grep -v '^ *+' conftest.er1 >conftest.err
19871 rm -f conftest.er1
19872 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000019875 { ac_try='test -z "$ac_c_werror_flag"
19876 || test ! -s conftest.err'
19877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19878 (eval $ac_try) 2>&5
19879 ac_status=$?
19880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19881 (exit $ac_status); }; } &&
19882 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019883 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19884 (eval $ac_try) 2>&5
19885 ac_status=$?
19886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19887 (exit $ac_status); }; }; then
19888 ac_header_compiler=yes
19889else
19890 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019891sed 's/^/| /' conftest.$ac_ext >&5
19892
John Criswell7a73b802003-06-30 21:59:07 +000019893ac_header_compiler=no
19894fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000019895rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019896echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19897echo "${ECHO_T}$ac_header_compiler" >&6
19898
19899# Is the header present?
19900echo "$as_me:$LINENO: checking $ac_header presence" >&5
19901echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19902cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019903/* confdefs.h. */
19904_ACEOF
19905cat confdefs.h >>conftest.$ac_ext
19906cat >>conftest.$ac_ext <<_ACEOF
19907/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019908#include <$ac_header>
19909_ACEOF
19910if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19911 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19912 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019913 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019914 rm -f conftest.er1
19915 cat conftest.err >&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } >/dev/null; then
19918 if test -s conftest.err; then
19919 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000019920 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000019921 else
19922 ac_cpp_err=
19923 fi
19924else
19925 ac_cpp_err=yes
19926fi
19927if test -z "$ac_cpp_err"; then
19928 ac_header_preproc=yes
19929else
19930 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019931sed 's/^/| /' conftest.$ac_ext >&5
19932
John Criswell7a73b802003-06-30 21:59:07 +000019933 ac_header_preproc=no
19934fi
19935rm -f conftest.err conftest.$ac_ext
19936echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19937echo "${ECHO_T}$ac_header_preproc" >&6
19938
19939# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000019940case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19941 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000019942 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19943echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000019944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19945echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19946 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000019947 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000019948 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000019949 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19950echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000019951 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19952echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19953 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19954echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19955 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19956echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000019957 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19958echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000019959 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19960echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000019961 (
19962 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000019963## ----------------------------------- ##
19964## Report this to llvmbugs@cs.uiuc.edu ##
19965## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000019966_ASBOX
19967 ) |
19968 sed "s/^/$as_me: WARNING: /" >&2
19969 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019970esac
19971echo "$as_me:$LINENO: checking for $ac_header" >&5
19972echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19973if eval "test \"\${$as_ac_Header+set}\" = set"; then
19974 echo $ECHO_N "(cached) $ECHO_C" >&6
19975else
Reid Spencer2706f8c2004-09-19 23:53:36 +000019976 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000019977fi
19978echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19979echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19980
19981fi
19982if test `eval echo '${'$as_ac_Header'}'` = yes; then
19983 cat >>confdefs.h <<_ACEOF
19984#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19985_ACEOF
19986
19987fi
19988
19989done
19990
19991
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019992if test "${ac_cv_header_sys_types_h+set}" = set; then
19993 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19994echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19995if test "${ac_cv_header_sys_types_h+set}" = set; then
19996 echo $ECHO_N "(cached) $ECHO_C" >&6
19997fi
19998echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19999echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20000else
20001 # Is the header compilable?
20002echo "$as_me:$LINENO: checking sys/types.h usability" >&5
20003echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
20004cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020005/* confdefs.h. */
20006_ACEOF
20007cat confdefs.h >>conftest.$ac_ext
20008cat >>conftest.$ac_ext <<_ACEOF
20009/* end confdefs.h. */
20010$ac_includes_default
20011#include <sys/types.h>
20012_ACEOF
20013rm -f conftest.$ac_objext
20014if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020015 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020016 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020017 grep -v '^ *+' conftest.er1 >conftest.err
20018 rm -f conftest.er1
20019 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020022 { ac_try='test -z "$ac_c_werror_flag"
20023 || test ! -s conftest.err'
20024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20025 (eval $ac_try) 2>&5
20026 ac_status=$?
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); }; } &&
20029 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20031 (eval $ac_try) 2>&5
20032 ac_status=$?
20033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20034 (exit $ac_status); }; }; then
20035 ac_header_compiler=yes
20036else
20037 echo "$as_me: failed program was:" >&5
20038sed 's/^/| /' conftest.$ac_ext >&5
20039
20040ac_header_compiler=no
20041fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020042rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020043echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20044echo "${ECHO_T}$ac_header_compiler" >&6
20045
20046# Is the header present?
20047echo "$as_me:$LINENO: checking sys/types.h presence" >&5
20048echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
20049cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020050/* confdefs.h. */
20051_ACEOF
20052cat confdefs.h >>conftest.$ac_ext
20053cat >>conftest.$ac_ext <<_ACEOF
20054/* end confdefs.h. */
20055#include <sys/types.h>
20056_ACEOF
20057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20059 ac_status=$?
20060 grep -v '^ *+' conftest.er1 >conftest.err
20061 rm -f conftest.er1
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20064 (exit $ac_status); } >/dev/null; then
20065 if test -s conftest.err; then
20066 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020068 else
20069 ac_cpp_err=
20070 fi
20071else
20072 ac_cpp_err=yes
20073fi
20074if test -z "$ac_cpp_err"; then
20075 ac_header_preproc=yes
20076else
20077 echo "$as_me: failed program was:" >&5
20078sed 's/^/| /' conftest.$ac_ext >&5
20079
20080 ac_header_preproc=no
20081fi
20082rm -f conftest.err conftest.$ac_ext
20083echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20084echo "${ECHO_T}$ac_header_preproc" >&6
20085
20086# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020087case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20088 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020089 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
20090echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020091 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
20092echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
20093 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020094 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020095 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020096 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
20097echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020098 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
20099echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
20100 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
20101echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
20102 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
20103echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020104 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
20105echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020106 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
20107echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020108 (
20109 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020110## ----------------------------------- ##
20111## Report this to llvmbugs@cs.uiuc.edu ##
20112## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020113_ASBOX
20114 ) |
20115 sed "s/^/$as_me: WARNING: /" >&2
20116 ;;
20117esac
20118echo "$as_me:$LINENO: checking for sys/types.h" >&5
20119echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
20120if test "${ac_cv_header_sys_types_h+set}" = set; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20122else
20123 ac_cv_header_sys_types_h=$ac_header_preproc
20124fi
20125echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
20126echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
20127
20128fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020129
20130
20131if test "${ac_cv_header_inttypes_h+set}" = set; then
20132 echo "$as_me:$LINENO: checking for inttypes.h" >&5
20133echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20134if test "${ac_cv_header_inttypes_h+set}" = set; then
20135 echo $ECHO_N "(cached) $ECHO_C" >&6
20136fi
20137echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20138echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20139else
20140 # Is the header compilable?
20141echo "$as_me:$LINENO: checking inttypes.h usability" >&5
20142echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
20143cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020144/* confdefs.h. */
20145_ACEOF
20146cat confdefs.h >>conftest.$ac_ext
20147cat >>conftest.$ac_ext <<_ACEOF
20148/* end confdefs.h. */
20149$ac_includes_default
20150#include <inttypes.h>
20151_ACEOF
20152rm -f conftest.$ac_objext
20153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020154 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020155 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020156 grep -v '^ *+' conftest.er1 >conftest.err
20157 rm -f conftest.er1
20158 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20160 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020161 { ac_try='test -z "$ac_c_werror_flag"
20162 || test ! -s conftest.err'
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20165 ac_status=$?
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; } &&
20168 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20171 ac_status=$?
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174 ac_header_compiler=yes
20175else
20176 echo "$as_me: failed program was:" >&5
20177sed 's/^/| /' conftest.$ac_ext >&5
20178
20179ac_header_compiler=no
20180fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020182echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20183echo "${ECHO_T}$ac_header_compiler" >&6
20184
20185# Is the header present?
20186echo "$as_me:$LINENO: checking inttypes.h presence" >&5
20187echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
20188cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020189/* confdefs.h. */
20190_ACEOF
20191cat confdefs.h >>conftest.$ac_ext
20192cat >>conftest.$ac_ext <<_ACEOF
20193/* end confdefs.h. */
20194#include <inttypes.h>
20195_ACEOF
20196if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20198 ac_status=$?
20199 grep -v '^ *+' conftest.er1 >conftest.err
20200 rm -f conftest.er1
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } >/dev/null; then
20204 if test -s conftest.err; then
20205 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020207 else
20208 ac_cpp_err=
20209 fi
20210else
20211 ac_cpp_err=yes
20212fi
20213if test -z "$ac_cpp_err"; then
20214 ac_header_preproc=yes
20215else
20216 echo "$as_me: failed program was:" >&5
20217sed 's/^/| /' conftest.$ac_ext >&5
20218
20219 ac_header_preproc=no
20220fi
20221rm -f conftest.err conftest.$ac_ext
20222echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20223echo "${ECHO_T}$ac_header_preproc" >&6
20224
20225# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020226case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20227 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020228 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
20229echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020230 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
20231echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
20232 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020233 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020234 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020235 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
20236echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020237 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
20238echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
20239 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
20240echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
20241 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
20242echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020243 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
20244echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020245 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20246echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020247 (
20248 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020249## ----------------------------------- ##
20250## Report this to llvmbugs@cs.uiuc.edu ##
20251## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020252_ASBOX
20253 ) |
20254 sed "s/^/$as_me: WARNING: /" >&2
20255 ;;
20256esac
20257echo "$as_me:$LINENO: checking for inttypes.h" >&5
20258echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20259if test "${ac_cv_header_inttypes_h+set}" = set; then
20260 echo $ECHO_N "(cached) $ECHO_C" >&6
20261else
20262 ac_cv_header_inttypes_h=$ac_header_preproc
20263fi
20264echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20265echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20266
20267fi
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020268
20269
John Criswell7ed43ad2004-07-19 16:12:29 +000020270if test "${ac_cv_header_stdint_h+set}" = set; then
20271 echo "$as_me:$LINENO: checking for stdint.h" >&5
20272echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20273if test "${ac_cv_header_stdint_h+set}" = set; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20275fi
20276echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20277echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20278else
20279 # Is the header compilable?
20280echo "$as_me:$LINENO: checking stdint.h usability" >&5
20281echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20282cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020283/* confdefs.h. */
20284_ACEOF
20285cat confdefs.h >>conftest.$ac_ext
20286cat >>conftest.$ac_ext <<_ACEOF
20287/* end confdefs.h. */
20288$ac_includes_default
20289#include <stdint.h>
20290_ACEOF
20291rm -f conftest.$ac_objext
20292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020293 (eval $ac_compile) 2>conftest.er1
John Criswell7ed43ad2004-07-19 16:12:29 +000020294 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020295 grep -v '^ *+' conftest.er1 >conftest.err
20296 rm -f conftest.er1
20297 cat conftest.err >&5
John Criswell7ed43ad2004-07-19 16:12:29 +000020298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020300 { ac_try='test -z "$ac_c_werror_flag"
20301 || test ! -s conftest.err'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; } &&
20307 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000020308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20310 ac_status=$?
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; }; then
20313 ac_header_compiler=yes
20314else
20315 echo "$as_me: failed program was:" >&5
20316sed 's/^/| /' conftest.$ac_ext >&5
20317
20318ac_header_compiler=no
20319fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020320rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000020321echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20322echo "${ECHO_T}$ac_header_compiler" >&6
20323
20324# Is the header present?
20325echo "$as_me:$LINENO: checking stdint.h presence" >&5
20326echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20327cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020328/* confdefs.h. */
20329_ACEOF
20330cat confdefs.h >>conftest.$ac_ext
20331cat >>conftest.$ac_ext <<_ACEOF
20332/* end confdefs.h. */
20333#include <stdint.h>
20334_ACEOF
20335if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20337 ac_status=$?
20338 grep -v '^ *+' conftest.er1 >conftest.err
20339 rm -f conftest.er1
20340 cat conftest.err >&5
20341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20342 (exit $ac_status); } >/dev/null; then
20343 if test -s conftest.err; then
20344 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000020345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7ed43ad2004-07-19 16:12:29 +000020346 else
20347 ac_cpp_err=
20348 fi
20349else
20350 ac_cpp_err=yes
20351fi
20352if test -z "$ac_cpp_err"; then
20353 ac_header_preproc=yes
20354else
20355 echo "$as_me: failed program was:" >&5
20356sed 's/^/| /' conftest.$ac_ext >&5
20357
20358 ac_header_preproc=no
20359fi
20360rm -f conftest.err conftest.$ac_ext
20361echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20362echo "${ECHO_T}$ac_header_preproc" >&6
20363
20364# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020365case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20366 yes:no: )
John Criswell7ed43ad2004-07-19 16:12:29 +000020367 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20368echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020369 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20370echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20371 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000020372 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000020373 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000020374 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20375echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020376 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20377echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20378 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20379echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20380 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20381echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020382 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20383echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000020384 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20385echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000020386 (
20387 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000020388## ----------------------------------- ##
20389## Report this to llvmbugs@cs.uiuc.edu ##
20390## ----------------------------------- ##
John Criswell7ed43ad2004-07-19 16:12:29 +000020391_ASBOX
20392 ) |
20393 sed "s/^/$as_me: WARNING: /" >&2
20394 ;;
20395esac
20396echo "$as_me:$LINENO: checking for stdint.h" >&5
20397echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20398if test "${ac_cv_header_stdint_h+set}" = set; then
20399 echo $ECHO_N "(cached) $ECHO_C" >&6
20400else
20401 ac_cv_header_stdint_h=$ac_header_preproc
20402fi
20403echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20404echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20405
20406fi
John Criswell7ed43ad2004-07-19 16:12:29 +000020407
20408
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020409
John Criswell7a73b802003-06-30 21:59:07 +000020410echo "$as_me:$LINENO: checking for pid_t" >&5
20411echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20412if test "${ac_cv_type_pid_t+set}" = set; then
20413 echo $ECHO_N "(cached) $ECHO_C" >&6
20414else
20415 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020416/* confdefs.h. */
20417_ACEOF
20418cat confdefs.h >>conftest.$ac_ext
20419cat >>conftest.$ac_ext <<_ACEOF
20420/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020421$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020422int
20423main ()
20424{
20425if ((pid_t *) 0)
20426 return 0;
20427if (sizeof (pid_t))
20428 return 0;
20429 ;
20430 return 0;
20431}
20432_ACEOF
20433rm -f conftest.$ac_objext
20434if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020435 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020436 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020437 grep -v '^ *+' conftest.er1 >conftest.err
20438 rm -f conftest.er1
20439 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20441 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020442 { ac_try='test -z "$ac_c_werror_flag"
20443 || test ! -s conftest.err'
20444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20445 (eval $ac_try) 2>&5
20446 ac_status=$?
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); }; } &&
20449 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20451 (eval $ac_try) 2>&5
20452 ac_status=$?
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; }; then
20455 ac_cv_type_pid_t=yes
20456else
20457 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020458sed 's/^/| /' conftest.$ac_ext >&5
20459
John Criswell7a73b802003-06-30 21:59:07 +000020460ac_cv_type_pid_t=no
20461fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020463fi
20464echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20465echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20466if test $ac_cv_type_pid_t = yes; then
20467 :
20468else
20469
20470cat >>confdefs.h <<_ACEOF
20471#define pid_t int
20472_ACEOF
20473
20474fi
20475
20476echo "$as_me:$LINENO: checking for size_t" >&5
20477echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20478if test "${ac_cv_type_size_t+set}" = set; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
20480else
20481 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020482/* confdefs.h. */
20483_ACEOF
20484cat confdefs.h >>conftest.$ac_ext
20485cat >>conftest.$ac_ext <<_ACEOF
20486/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020487$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020488int
20489main ()
20490{
20491if ((size_t *) 0)
20492 return 0;
20493if (sizeof (size_t))
20494 return 0;
20495 ;
20496 return 0;
20497}
20498_ACEOF
20499rm -f conftest.$ac_objext
20500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020501 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020502 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020508 { ac_try='test -z "$ac_c_werror_flag"
20509 || test ! -s conftest.err'
20510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20511 (eval $ac_try) 2>&5
20512 ac_status=$?
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); }; } &&
20515 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20518 ac_status=$?
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; }; then
20521 ac_cv_type_size_t=yes
20522else
20523 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020524sed 's/^/| /' conftest.$ac_ext >&5
20525
John Criswell7a73b802003-06-30 21:59:07 +000020526ac_cv_type_size_t=no
20527fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020529fi
20530echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20531echo "${ECHO_T}$ac_cv_type_size_t" >&6
20532if test $ac_cv_type_size_t = yes; then
20533 :
20534else
20535
20536cat >>confdefs.h <<_ACEOF
20537#define size_t unsigned
20538_ACEOF
20539
20540fi
20541
20542echo "$as_me:$LINENO: checking for int64_t" >&5
20543echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20544if test "${ac_cv_type_int64_t+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20546else
20547 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020548/* confdefs.h. */
20549_ACEOF
20550cat confdefs.h >>conftest.$ac_ext
20551cat >>conftest.$ac_ext <<_ACEOF
20552/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020553$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020554int
20555main ()
20556{
20557if ((int64_t *) 0)
20558 return 0;
20559if (sizeof (int64_t))
20560 return 0;
20561 ;
20562 return 0;
20563}
20564_ACEOF
20565rm -f conftest.$ac_objext
20566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020567 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020568 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020569 grep -v '^ *+' conftest.er1 >conftest.err
20570 rm -f conftest.er1
20571 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020574 { ac_try='test -z "$ac_c_werror_flag"
20575 || test ! -s conftest.err'
20576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577 (eval $ac_try) 2>&5
20578 ac_status=$?
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); }; } &&
20581 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583 (eval $ac_try) 2>&5
20584 ac_status=$?
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }; then
20587 ac_cv_type_int64_t=yes
20588else
20589 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020590sed 's/^/| /' conftest.$ac_ext >&5
20591
John Criswell7a73b802003-06-30 21:59:07 +000020592ac_cv_type_int64_t=no
20593fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020595fi
20596echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20597echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20598if test $ac_cv_type_int64_t = yes; then
20599
20600cat >>confdefs.h <<_ACEOF
20601#define HAVE_INT64_T 1
20602_ACEOF
20603
20604
20605else
20606 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20607echo "$as_me: error: Type int64_t required but not found" >&2;}
20608 { (exit 1); exit 1; }; }
20609fi
20610
20611echo "$as_me:$LINENO: checking for uint64_t" >&5
20612echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20613if test "${ac_cv_type_uint64_t+set}" = set; then
20614 echo $ECHO_N "(cached) $ECHO_C" >&6
20615else
20616 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020617/* confdefs.h. */
20618_ACEOF
20619cat confdefs.h >>conftest.$ac_ext
20620cat >>conftest.$ac_ext <<_ACEOF
20621/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020622$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020623int
20624main ()
20625{
20626if ((uint64_t *) 0)
20627 return 0;
20628if (sizeof (uint64_t))
20629 return 0;
20630 ;
20631 return 0;
20632}
20633_ACEOF
20634rm -f conftest.$ac_objext
20635if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020636 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020637 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020638 grep -v '^ *+' conftest.er1 >conftest.err
20639 rm -f conftest.er1
20640 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020643 { ac_try='test -z "$ac_c_werror_flag"
20644 || test ! -s conftest.err'
20645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20646 (eval $ac_try) 2>&5
20647 ac_status=$?
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); }; } &&
20650 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20652 (eval $ac_try) 2>&5
20653 ac_status=$?
20654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20655 (exit $ac_status); }; }; then
20656 ac_cv_type_uint64_t=yes
20657else
20658 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020659sed 's/^/| /' conftest.$ac_ext >&5
20660
John Criswell7a73b802003-06-30 21:59:07 +000020661ac_cv_type_uint64_t=no
20662fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020663rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020664fi
20665echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20666echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20667if test $ac_cv_type_uint64_t = yes; then
20668
20669cat >>confdefs.h <<_ACEOF
20670#define HAVE_UINT64_T 1
20671_ACEOF
20672
20673
20674else
Misha Brukmanceca9042004-09-02 23:02:30 +000020675 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000020676echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20677if test "${ac_cv_type_u_int64_t+set}" = set; then
20678 echo $ECHO_N "(cached) $ECHO_C" >&6
20679else
20680 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000020681/* confdefs.h. */
20682_ACEOF
20683cat confdefs.h >>conftest.$ac_ext
20684cat >>conftest.$ac_ext <<_ACEOF
20685/* end confdefs.h. */
20686$ac_includes_default
20687int
20688main ()
20689{
20690if ((u_int64_t *) 0)
20691 return 0;
20692if (sizeof (u_int64_t))
20693 return 0;
20694 ;
20695 return 0;
20696}
20697_ACEOF
20698rm -f conftest.$ac_objext
20699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020700 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000020701 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020702 grep -v '^ *+' conftest.er1 >conftest.err
20703 rm -f conftest.er1
20704 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000020705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020707 { ac_try='test -z "$ac_c_werror_flag"
20708 || test ! -s conftest.err'
20709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20710 (eval $ac_try) 2>&5
20711 ac_status=$?
20712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); }; } &&
20714 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000020715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716 (eval $ac_try) 2>&5
20717 ac_status=$?
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; }; then
20720 ac_cv_type_u_int64_t=yes
20721else
20722 echo "$as_me: failed program was:" >&5
20723sed 's/^/| /' conftest.$ac_ext >&5
20724
20725ac_cv_type_u_int64_t=no
20726fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000020728fi
20729echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20730echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20731if test $ac_cv_type_u_int64_t = yes; then
20732
20733cat >>confdefs.h <<_ACEOF
20734#define HAVE_U_INT64_T 1
20735_ACEOF
20736
20737
Misha Brukmanceca9042004-09-02 23:02:30 +000020738else
20739 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20740echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20741 { (exit 1); exit 1; }; }
20742fi
20743
John Criswell679ff312004-09-02 18:44:44 +000020744fi
20745
John Criswell7a73b802003-06-30 21:59:07 +000020746echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20747echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20748if test "${ac_cv_header_time+set}" = set; then
20749 echo $ECHO_N "(cached) $ECHO_C" >&6
20750else
20751 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020752/* confdefs.h. */
20753_ACEOF
20754cat confdefs.h >>conftest.$ac_ext
20755cat >>conftest.$ac_ext <<_ACEOF
20756/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020757#include <sys/types.h>
20758#include <sys/time.h>
20759#include <time.h>
20760
John Criswell7a73b802003-06-30 21:59:07 +000020761int
20762main ()
20763{
20764if ((struct tm *) 0)
20765return 0;
20766 ;
20767 return 0;
20768}
20769_ACEOF
20770rm -f conftest.$ac_objext
20771if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020772 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020773 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020774 grep -v '^ *+' conftest.er1 >conftest.err
20775 rm -f conftest.er1
20776 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020779 { ac_try='test -z "$ac_c_werror_flag"
20780 || test ! -s conftest.err'
20781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20782 (eval $ac_try) 2>&5
20783 ac_status=$?
20784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785 (exit $ac_status); }; } &&
20786 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20788 (eval $ac_try) 2>&5
20789 ac_status=$?
20790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20791 (exit $ac_status); }; }; then
20792 ac_cv_header_time=yes
20793else
20794 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020795sed 's/^/| /' conftest.$ac_ext >&5
20796
John Criswell7a73b802003-06-30 21:59:07 +000020797ac_cv_header_time=no
20798fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020799rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020800fi
20801echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20802echo "${ECHO_T}$ac_cv_header_time" >&6
20803if test $ac_cv_header_time = yes; then
20804
20805cat >>confdefs.h <<\_ACEOF
20806#define TIME_WITH_SYS_TIME 1
20807_ACEOF
20808
20809fi
20810
20811echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20812echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20813if test "${ac_cv_struct_tm+set}" = set; then
20814 echo $ECHO_N "(cached) $ECHO_C" >&6
20815else
20816 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020817/* confdefs.h. */
20818_ACEOF
20819cat confdefs.h >>conftest.$ac_ext
20820cat >>conftest.$ac_ext <<_ACEOF
20821/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020822#include <sys/types.h>
20823#include <time.h>
20824
John Criswell7a73b802003-06-30 21:59:07 +000020825int
20826main ()
20827{
20828struct tm *tp; tp->tm_sec;
20829 ;
20830 return 0;
20831}
20832_ACEOF
20833rm -f conftest.$ac_objext
20834if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020835 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020836 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020837 grep -v '^ *+' conftest.er1 >conftest.err
20838 rm -f conftest.er1
20839 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020842 { ac_try='test -z "$ac_c_werror_flag"
20843 || test ! -s conftest.err'
20844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20845 (eval $ac_try) 2>&5
20846 ac_status=$?
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); }; } &&
20849 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20851 (eval $ac_try) 2>&5
20852 ac_status=$?
20853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20854 (exit $ac_status); }; }; then
20855 ac_cv_struct_tm=time.h
20856else
20857 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020858sed 's/^/| /' conftest.$ac_ext >&5
20859
John Criswell7a73b802003-06-30 21:59:07 +000020860ac_cv_struct_tm=sys/time.h
20861fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020862rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020863fi
20864echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20865echo "${ECHO_T}$ac_cv_struct_tm" >&6
20866if test $ac_cv_struct_tm = sys/time.h; then
20867
20868cat >>confdefs.h <<\_ACEOF
20869#define TM_IN_SYS_TIME 1
20870_ACEOF
20871
20872fi
20873
20874
John Criswella0137d32003-10-13 16:22:01 +000020875
Reid Spencer2706f8c2004-09-19 23:53:36 +000020876 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020877echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
Reid Spencer2706f8c2004-09-19 23:53:36 +000020878 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000020879ac_cpp='$CPP $CPPFLAGS'
20880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20882ac_compiler_gnu=$ac_cv_c_compiler_gnu
20883
Reid Spencer2706f8c2004-09-19 23:53:36 +000020884 if test "$cross_compiling" = yes; then
20885 ac_c_printf_a=no
John Criswella0137d32003-10-13 16:22:01 +000020886else
20887 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000020888
20889 /* confdefs.h. */
John Criswella0137d32003-10-13 16:22:01 +000020890_ACEOF
20891cat confdefs.h >>conftest.$ac_ext
20892cat >>conftest.$ac_ext <<_ACEOF
20893/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000020894
John Criswella0137d32003-10-13 16:22:01 +000020895#include <stdio.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000020896#include <stdlib.h>
20897
John Criswella0137d32003-10-13 16:22:01 +000020898int
20899main ()
20900{
20901
Reid Spencer2706f8c2004-09-19 23:53:36 +000020902volatile double A, B;
20903char Buffer[100];
20904A = 1;
20905A /= 10.0;
20906sprintf(Buffer, "%a", A);
20907B = atof(Buffer);
20908if (A != B)
20909 return (1);
20910if (A != 0x1.999999999999ap-4)
20911 return (1);
20912return (0);
John Criswella0137d32003-10-13 16:22:01 +000020913 ;
20914 return 0;
20915}
20916_ACEOF
20917rm -f conftest$ac_exeext
20918if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20919 (eval $ac_link) 2>&5
20920 ac_status=$?
20921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924 (eval $ac_try) 2>&5
20925 ac_status=$?
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); }; }; then
20928 ac_c_printf_a=yes
20929else
20930 echo "$as_me: program exited with status $ac_status" >&5
20931echo "$as_me: failed program was:" >&5
20932sed 's/^/| /' conftest.$ac_ext >&5
20933
20934( exit $ac_status )
20935ac_c_printf_a=no
20936fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020937rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000020938fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000020939 ac_ext=c
John Criswella0137d32003-10-13 16:22:01 +000020940ac_cpp='$CPP $CPPFLAGS'
20941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20943ac_compiler_gnu=$ac_cv_c_compiler_gnu
20944
Reid Spencer2706f8c2004-09-19 23:53:36 +000020945 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020946echo "${ECHO_T}$ac_c_printf_a" >&6
Reid Spencer2706f8c2004-09-19 23:53:36 +000020947 if test "$ac_c_printf_a" = "yes"; then
John Criswella0137d32003-10-13 16:22:01 +000020948
20949cat >>confdefs.h <<\_ACEOF
20950#define HAVE_PRINTF_A 1
20951_ACEOF
20952
Reid Spencer2706f8c2004-09-19 23:53:36 +000020953 fi
John Criswella0137d32003-10-13 16:22:01 +000020954
20955
John Criswell0021c312004-02-13 21:57:29 +000020956echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20957echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20958if test "${ac_cv_c_bigendian+set}" = set; then
20959 echo $ECHO_N "(cached) $ECHO_C" >&6
20960else
20961 # See if sys/param.h defines the BYTE_ORDER macro.
20962cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020963/* confdefs.h. */
20964_ACEOF
20965cat confdefs.h >>conftest.$ac_ext
20966cat >>conftest.$ac_ext <<_ACEOF
20967/* end confdefs.h. */
20968#include <sys/types.h>
20969#include <sys/param.h>
20970
20971int
20972main ()
20973{
20974#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20975 bogus endian macros
20976#endif
20977
20978 ;
20979 return 0;
20980}
20981_ACEOF
20982rm -f conftest.$ac_objext
20983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000020984 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020985 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000020986 grep -v '^ *+' conftest.er1 >conftest.err
20987 rm -f conftest.er1
20988 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000020991 { ac_try='test -z "$ac_c_werror_flag"
20992 || test ! -s conftest.err'
20993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20994 (eval $ac_try) 2>&5
20995 ac_status=$?
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); }; } &&
20998 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21000 (eval $ac_try) 2>&5
21001 ac_status=$?
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); }; }; then
21004 # It does; now see whether it defined to BIG_ENDIAN or not.
21005cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021006/* confdefs.h. */
21007_ACEOF
21008cat confdefs.h >>conftest.$ac_ext
21009cat >>conftest.$ac_ext <<_ACEOF
21010/* end confdefs.h. */
21011#include <sys/types.h>
21012#include <sys/param.h>
21013
21014int
21015main ()
21016{
21017#if BYTE_ORDER != BIG_ENDIAN
21018 not big endian
21019#endif
21020
21021 ;
21022 return 0;
21023}
21024_ACEOF
21025rm -f conftest.$ac_objext
21026if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021027 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021028 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021029 grep -v '^ *+' conftest.er1 >conftest.err
21030 rm -f conftest.er1
21031 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021034 { ac_try='test -z "$ac_c_werror_flag"
21035 || test ! -s conftest.err'
21036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21037 (eval $ac_try) 2>&5
21038 ac_status=$?
21039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21040 (exit $ac_status); }; } &&
21041 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21043 (eval $ac_try) 2>&5
21044 ac_status=$?
21045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21046 (exit $ac_status); }; }; then
21047 ac_cv_c_bigendian=yes
21048else
21049 echo "$as_me: failed program was:" >&5
21050sed 's/^/| /' conftest.$ac_ext >&5
21051
21052ac_cv_c_bigendian=no
21053fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021055else
21056 echo "$as_me: failed program was:" >&5
21057sed 's/^/| /' conftest.$ac_ext >&5
21058
21059# It does not; compile a test program.
21060if test "$cross_compiling" = yes; then
21061 # try to guess the endianness by grepping values into an object file
21062 ac_cv_c_bigendian=unknown
21063 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021064/* confdefs.h. */
21065_ACEOF
21066cat confdefs.h >>conftest.$ac_ext
21067cat >>conftest.$ac_ext <<_ACEOF
21068/* end confdefs.h. */
21069short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21070short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21071void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
21072short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21073short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21074void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
21075int
21076main ()
21077{
21078 _ascii (); _ebcdic ();
21079 ;
21080 return 0;
21081}
21082_ACEOF
21083rm -f conftest.$ac_objext
21084if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021085 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000021086 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021087 grep -v '^ *+' conftest.er1 >conftest.err
21088 rm -f conftest.er1
21089 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000021090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021092 { ac_try='test -z "$ac_c_werror_flag"
21093 || test ! -s conftest.err'
21094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21095 (eval $ac_try) 2>&5
21096 ac_status=$?
21097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21098 (exit $ac_status); }; } &&
21099 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000021100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21101 (eval $ac_try) 2>&5
21102 ac_status=$?
21103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21104 (exit $ac_status); }; }; then
21105 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
21106 ac_cv_c_bigendian=yes
21107fi
21108if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21109 if test "$ac_cv_c_bigendian" = unknown; then
21110 ac_cv_c_bigendian=no
21111 else
21112 # finding both strings is unlikely to happen, but who knows?
21113 ac_cv_c_bigendian=unknown
21114 fi
21115fi
21116else
21117 echo "$as_me: failed program was:" >&5
21118sed 's/^/| /' conftest.$ac_ext >&5
21119
21120fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021121rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021122else
21123 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000021124/* confdefs.h. */
21125_ACEOF
21126cat confdefs.h >>conftest.$ac_ext
21127cat >>conftest.$ac_ext <<_ACEOF
21128/* end confdefs.h. */
21129int
21130main ()
21131{
21132 /* Are we little or big endian? From Harbison&Steele. */
21133 union
21134 {
21135 long l;
21136 char c[sizeof (long)];
21137 } u;
21138 u.l = 1;
21139 exit (u.c[sizeof (long) - 1] == 1);
21140}
21141_ACEOF
21142rm -f conftest$ac_exeext
21143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21144 (eval $ac_link) 2>&5
21145 ac_status=$?
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21150 ac_status=$?
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 ac_cv_c_bigendian=no
21154else
21155 echo "$as_me: program exited with status $ac_status" >&5
21156echo "$as_me: failed program was:" >&5
21157sed 's/^/| /' conftest.$ac_ext >&5
21158
21159( exit $ac_status )
21160ac_cv_c_bigendian=yes
21161fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021162rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021163fi
21164fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000021166fi
21167echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
21168echo "${ECHO_T}$ac_cv_c_bigendian" >&6
21169case $ac_cv_c_bigendian in
21170 yes)
21171 ENDIAN=big
21172 ;;
21173 no)
21174 ENDIAN=little
21175 ;;
21176 *)
21177 { { echo "$as_me:$LINENO: error: unknown endianness
21178presetting ac_cv_c_bigendian=no (or yes) will help" >&5
21179echo "$as_me: error: unknown endianness
21180presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
21181 { (exit 1); exit 1; }; } ;;
21182esac
21183
21184
John Criswell7a73b802003-06-30 21:59:07 +000021185echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
21186echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
21187if test "${ac_cv_cxx_namespaces+set}" = set; then
21188 echo $ECHO_N "(cached) $ECHO_C" >&6
21189else
Reid Spencer2706f8c2004-09-19 23:53:36 +000021190 ac_ext=cc
John Criswell7a73b802003-06-30 21:59:07 +000021191ac_cpp='$CXXCPP $CPPFLAGS'
21192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21195
21196 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021197/* confdefs.h. */
21198_ACEOF
21199cat confdefs.h >>conftest.$ac_ext
21200cat >>conftest.$ac_ext <<_ACEOF
21201/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021202namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000021203int
21204main ()
21205{
21206using namespace Outer::Inner; return i;
21207 ;
21208 return 0;
21209}
21210_ACEOF
21211rm -f conftest.$ac_objext
21212if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021213 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021214 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021215 grep -v '^ *+' conftest.er1 >conftest.err
21216 rm -f conftest.er1
21217 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021220 { ac_try='test -z "$ac_cxx_werror_flag"
21221 || test ! -s conftest.err'
21222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21223 (eval $ac_try) 2>&5
21224 ac_status=$?
21225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21226 (exit $ac_status); }; } &&
21227 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21229 (eval $ac_try) 2>&5
21230 ac_status=$?
21231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21232 (exit $ac_status); }; }; then
21233 ac_cv_cxx_namespaces=yes
21234else
21235 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021236sed 's/^/| /' conftest.$ac_ext >&5
21237
John Criswell7a73b802003-06-30 21:59:07 +000021238ac_cv_cxx_namespaces=no
21239fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021240rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021241 ac_ext=c
21242ac_cpp='$CPP $CPPFLAGS'
21243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21245ac_compiler_gnu=$ac_cv_c_compiler_gnu
21246
21247
21248fi
21249echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
21250echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
21251if test "$ac_cv_cxx_namespaces" = yes; then
21252
21253cat >>confdefs.h <<\_ACEOF
21254#define HAVE_NAMESPACES
21255_ACEOF
21256
21257fi
21258
Brian Gaeke90583492003-11-10 03:06:28 +000021259echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
21260echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
21261if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021262 echo $ECHO_N "(cached) $ECHO_C" >&6
21263else
21264
John Criswell7a73b802003-06-30 21:59:07 +000021265 ac_ext=cc
21266ac_cpp='$CXXCPP $CPPFLAGS'
21267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21270
21271 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021272/* confdefs.h. */
21273_ACEOF
21274cat confdefs.h >>conftest.$ac_ext
21275cat >>conftest.$ac_ext <<_ACEOF
21276/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021277#include <ext/hash_map>
21278#ifdef HAVE_NAMESPACES
21279using namespace std;
21280#endif
John Criswell7a73b802003-06-30 21:59:07 +000021281int
21282main ()
21283{
Brian Gaeke90583492003-11-10 03:06:28 +000021284hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021285 ;
21286 return 0;
21287}
21288_ACEOF
21289rm -f conftest.$ac_objext
21290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021291 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021292 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021293 grep -v '^ *+' conftest.er1 >conftest.err
21294 rm -f conftest.er1
21295 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021298 { ac_try='test -z "$ac_cxx_werror_flag"
21299 || test ! -s conftest.err'
21300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301 (eval $ac_try) 2>&5
21302 ac_status=$?
21303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304 (exit $ac_status); }; } &&
21305 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307 (eval $ac_try) 2>&5
21308 ac_status=$?
21309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021311 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000021312else
21313 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021314sed 's/^/| /' conftest.$ac_ext >&5
21315
Brian Gaeke90583492003-11-10 03:06:28 +000021316ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021317fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021319 ac_ext=c
21320ac_cpp='$CPP $CPPFLAGS'
21321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21323ac_compiler_gnu=$ac_cv_c_compiler_gnu
21324
John Criswell7a73b802003-06-30 21:59:07 +000021325fi
Brian Gaeke90583492003-11-10 03:06:28 +000021326echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21327echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021328 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21329 then
John Criswell9f011862004-09-24 18:28:00 +000021330
21331cat >>confdefs.h <<\_ACEOF
21332#define HAVE_STD_EXT_HASH_MAP 1
21333_ACEOF
21334
21335 else
21336
21337cat >>confdefs.h <<\_ACEOF
21338#define HAVE_STD_EXT_HASH_MAP 0
21339_ACEOF
21340
Brian Gaeke90583492003-11-10 03:06:28 +000021341 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021342
Brian Gaeke90583492003-11-10 03:06:28 +000021343 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21344echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21345if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21346 echo $ECHO_N "(cached) $ECHO_C" >&6
21347else
21348
Brian Gaeke90583492003-11-10 03:06:28 +000021349 ac_ext=cc
21350ac_cpp='$CXXCPP $CPPFLAGS'
21351ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21352ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21353ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21354
21355 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021356/* confdefs.h. */
21357_ACEOF
21358cat confdefs.h >>conftest.$ac_ext
21359cat >>conftest.$ac_ext <<_ACEOF
21360/* end confdefs.h. */
21361#include <ext/hash_map>
21362#ifdef HAVE_NAMESPACES
21363using namespace __gnu_cxx;
21364#endif
21365int
21366main ()
21367{
21368hash_map<int,int> t;
21369 ;
21370 return 0;
21371}
21372_ACEOF
21373rm -f conftest.$ac_objext
21374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021375 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021376 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021377 grep -v '^ *+' conftest.er1 >conftest.err
21378 rm -f conftest.er1
21379 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021382 { ac_try='test -z "$ac_cxx_werror_flag"
21383 || test ! -s conftest.err'
21384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21385 (eval $ac_try) 2>&5
21386 ac_status=$?
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); }; } &&
21389 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21392 ac_status=$?
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; }; then
21395 ac_cv_cxx_have_gnu_ext_hash_map=yes
21396else
21397 echo "$as_me: failed program was:" >&5
21398sed 's/^/| /' conftest.$ac_ext >&5
21399
21400ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021401fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021403 ac_ext=c
21404ac_cpp='$CPP $CPPFLAGS'
21405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21407ac_compiler_gnu=$ac_cv_c_compiler_gnu
21408
21409fi
21410echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21411echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021412 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21413 then
John Criswell9f011862004-09-24 18:28:00 +000021414
21415cat >>confdefs.h <<\_ACEOF
21416#define HAVE_GNU_EXT_HASH_MAP 1
21417_ACEOF
21418
21419 else
21420
21421cat >>confdefs.h <<\_ACEOF
21422#define HAVE_GNU_EXT_HASH_MAP 0
21423_ACEOF
21424
Brian Gaeke90583492003-11-10 03:06:28 +000021425 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021426
Brian Gaeke90583492003-11-10 03:06:28 +000021427 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21428echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21429if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21431else
John Criswell7a73b802003-06-30 21:59:07 +000021432
Brian Gaeke90583492003-11-10 03:06:28 +000021433 ac_ext=cc
21434ac_cpp='$CXXCPP $CPPFLAGS'
21435ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21436ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21437ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21438
21439 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021440/* confdefs.h. */
21441_ACEOF
21442cat confdefs.h >>conftest.$ac_ext
21443cat >>conftest.$ac_ext <<_ACEOF
21444/* end confdefs.h. */
21445#include <hash_map>
21446int
21447main ()
21448{
21449hash_map<int,int> t;
21450 ;
21451 return 0;
21452}
21453_ACEOF
21454rm -f conftest.$ac_objext
21455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021456 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021457 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021458 grep -v '^ *+' conftest.er1 >conftest.err
21459 rm -f conftest.er1
21460 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021463 { ac_try='test -z "$ac_cxx_werror_flag"
21464 || test ! -s conftest.err'
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21467 ac_status=$?
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; } &&
21470 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 ac_cv_cxx_have_global_hash_map=yes
21477else
21478 echo "$as_me: failed program was:" >&5
21479sed 's/^/| /' conftest.$ac_ext >&5
21480
21481ac_cv_cxx_have_global_hash_map=no
21482fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021484 ac_ext=c
21485ac_cpp='$CPP $CPPFLAGS'
21486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488ac_compiler_gnu=$ac_cv_c_compiler_gnu
21489
21490fi
21491echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21492echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021493 if test "$ac_cv_cxx_have_global_hash_map" = yes
21494 then
John Criswell9f011862004-09-24 18:28:00 +000021495
21496cat >>confdefs.h <<\_ACEOF
21497#define HAVE_GLOBAL_HASH_MAP 1
21498_ACEOF
21499
21500 else
21501
21502cat >>confdefs.h <<\_ACEOF
21503#define HAVE_GLOBAL_HASH_MAP 0
21504_ACEOF
21505
Brian Gaeke90583492003-11-10 03:06:28 +000021506 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021507
Brian Gaeke90583492003-11-10 03:06:28 +000021508echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21509echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21510if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021511 echo $ECHO_N "(cached) $ECHO_C" >&6
21512else
21513
John Criswell7a73b802003-06-30 21:59:07 +000021514 ac_ext=cc
21515ac_cpp='$CXXCPP $CPPFLAGS'
21516ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21517ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21518ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21519
21520 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021521/* confdefs.h. */
21522_ACEOF
21523cat confdefs.h >>conftest.$ac_ext
21524cat >>conftest.$ac_ext <<_ACEOF
21525/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021526#include <ext/hash_set>
21527#ifdef HAVE_NAMESPACES
21528using namespace std;
21529#endif
John Criswell7a73b802003-06-30 21:59:07 +000021530int
21531main ()
21532{
Brian Gaeke90583492003-11-10 03:06:28 +000021533hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021534 ;
21535 return 0;
21536}
21537_ACEOF
21538rm -f conftest.$ac_objext
21539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021540 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021541 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021542 grep -v '^ *+' conftest.er1 >conftest.err
21543 rm -f conftest.er1
21544 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021547 { ac_try='test -z "$ac_cxx_werror_flag"
21548 || test ! -s conftest.err'
21549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21551 ac_status=$?
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; } &&
21554 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21556 (eval $ac_try) 2>&5
21557 ac_status=$?
21558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21559 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021560 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021561else
21562 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021563sed 's/^/| /' conftest.$ac_ext >&5
21564
Brian Gaeke90583492003-11-10 03:06:28 +000021565ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021566fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021568 ac_ext=c
21569ac_cpp='$CPP $CPPFLAGS'
21570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21572ac_compiler_gnu=$ac_cv_c_compiler_gnu
21573
21574fi
21575echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21576echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021577 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21578 then
John Criswell9f011862004-09-24 18:28:00 +000021579
21580cat >>confdefs.h <<\_ACEOF
21581#define HAVE_STD_EXT_HASH_SET 1
21582_ACEOF
21583
21584 else
21585
21586cat >>confdefs.h <<\_ACEOF
21587#define HAVE_STD_EXT_HASH_SET 0
21588_ACEOF
21589
Brian Gaeke90583492003-11-10 03:06:28 +000021590 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021591
Brian Gaeke90583492003-11-10 03:06:28 +000021592 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21593echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21594if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21595 echo $ECHO_N "(cached) $ECHO_C" >&6
21596else
21597
Brian Gaeke90583492003-11-10 03:06:28 +000021598 ac_ext=cc
21599ac_cpp='$CXXCPP $CPPFLAGS'
21600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21603
John Criswell7a73b802003-06-30 21:59:07 +000021604 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021605/* confdefs.h. */
21606_ACEOF
21607cat confdefs.h >>conftest.$ac_ext
21608cat >>conftest.$ac_ext <<_ACEOF
21609/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021610#include <ext/hash_set>
21611#ifdef HAVE_NAMESPACES
21612using namespace __gnu_cxx;
21613#endif
John Criswell7a73b802003-06-30 21:59:07 +000021614int
21615main ()
21616{
Brian Gaeke90583492003-11-10 03:06:28 +000021617hash_set<int> t;
21618 ;
21619 return 0;
21620}
21621_ACEOF
21622rm -f conftest.$ac_objext
21623if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021624 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021625 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021626 grep -v '^ *+' conftest.er1 >conftest.err
21627 rm -f conftest.er1
21628 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021631 { ac_try='test -z "$ac_cxx_werror_flag"
21632 || test ! -s conftest.err'
21633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21634 (eval $ac_try) 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; } &&
21638 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21641 ac_status=$?
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; }; then
21644 ac_cv_cxx_have_gnu_ext_hash_set=yes
21645else
21646 echo "$as_me: failed program was:" >&5
21647sed 's/^/| /' conftest.$ac_ext >&5
21648
21649ac_cv_cxx_have_gnu_ext_hash_set=no
21650fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021651rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021652 ac_ext=c
21653ac_cpp='$CPP $CPPFLAGS'
21654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21656ac_compiler_gnu=$ac_cv_c_compiler_gnu
21657
21658fi
21659echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21660echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021661 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21662 then
John Criswell9f011862004-09-24 18:28:00 +000021663
21664cat >>confdefs.h <<\_ACEOF
21665#define HAVE_GNU_EXT_HASH_SET 1
21666_ACEOF
21667
21668 else
21669
21670cat >>confdefs.h <<\_ACEOF
21671#define HAVE_GNU_EXT_HASH_SET 0
21672_ACEOF
21673
Brian Gaeke90583492003-11-10 03:06:28 +000021674 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021675
Brian Gaeke90583492003-11-10 03:06:28 +000021676 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21677echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21678if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21679 echo $ECHO_N "(cached) $ECHO_C" >&6
21680else
21681
Brian Gaeke90583492003-11-10 03:06:28 +000021682 ac_ext=cc
21683ac_cpp='$CXXCPP $CPPFLAGS'
21684ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21685ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21686ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21687
21688 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021689/* confdefs.h. */
21690_ACEOF
21691cat confdefs.h >>conftest.$ac_ext
21692cat >>conftest.$ac_ext <<_ACEOF
21693/* end confdefs.h. */
21694#include <hash_set>
21695int
21696main ()
21697{
John Criswell7a73b802003-06-30 21:59:07 +000021698hash_set<int> t; return 0;
21699 ;
21700 return 0;
21701}
21702_ACEOF
21703rm -f conftest.$ac_objext
21704if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021705 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021706 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021707 grep -v '^ *+' conftest.er1 >conftest.err
21708 rm -f conftest.er1
21709 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021712 { ac_try='test -z "$ac_cxx_werror_flag"
21713 || test ! -s conftest.err'
21714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21715 (eval $ac_try) 2>&5
21716 ac_status=$?
21717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); }; } &&
21719 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21721 (eval $ac_try) 2>&5
21722 ac_status=$?
21723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21724 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021725 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021726else
21727 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021728sed 's/^/| /' conftest.$ac_ext >&5
21729
Brian Gaeke90583492003-11-10 03:06:28 +000021730ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021731fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021732rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021733 ac_ext=c
21734ac_cpp='$CPP $CPPFLAGS'
21735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21737ac_compiler_gnu=$ac_cv_c_compiler_gnu
21738
John Criswell7a73b802003-06-30 21:59:07 +000021739fi
Brian Gaeke90583492003-11-10 03:06:28 +000021740echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21741echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021742 if test "$ac_cv_cxx_have_global_hash_set" = yes
21743 then
John Criswell9f011862004-09-24 18:28:00 +000021744
21745cat >>confdefs.h <<\_ACEOF
21746#define HAVE_GLOBAL_HASH_SET 1
21747_ACEOF
21748
21749 else
21750
21751cat >>confdefs.h <<\_ACEOF
21752#define HAVE_GLOBAL_HASH_SET 0
21753_ACEOF
21754
Brian Gaeke90583492003-11-10 03:06:28 +000021755 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021756
John Criswell7a73b802003-06-30 21:59:07 +000021757echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21758echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21759if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21760 echo $ECHO_N "(cached) $ECHO_C" >&6
21761else
21762
John Criswell7a73b802003-06-30 21:59:07 +000021763 ac_ext=cc
21764ac_cpp='$CXXCPP $CPPFLAGS'
21765ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21766ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21767ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21768
21769 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021770/* confdefs.h. */
21771_ACEOF
21772cat confdefs.h >>conftest.$ac_ext
21773cat >>conftest.$ac_ext <<_ACEOF
21774/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021775#include <iterator>
21776#ifdef HAVE_NAMESPACES
21777using namespace std;
21778#endif
John Criswell7a73b802003-06-30 21:59:07 +000021779int
21780main ()
21781{
21782iterator<int,int,int> t; return 0;
21783 ;
21784 return 0;
21785}
21786_ACEOF
21787rm -f conftest.$ac_objext
21788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021789 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021790 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021791 grep -v '^ *+' conftest.er1 >conftest.err
21792 rm -f conftest.er1
21793 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21795 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021796 { ac_try='test -z "$ac_cxx_werror_flag"
21797 || test ! -s conftest.err'
21798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21799 (eval $ac_try) 2>&5
21800 ac_status=$?
21801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21802 (exit $ac_status); }; } &&
21803 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21805 (eval $ac_try) 2>&5
21806 ac_status=$?
21807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21808 (exit $ac_status); }; }; then
21809 ac_cv_cxx_have_std_iterator=yes
21810else
21811 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021812sed 's/^/| /' conftest.$ac_ext >&5
21813
John Criswell7a73b802003-06-30 21:59:07 +000021814ac_cv_cxx_have_std_iterator=no
21815fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021816rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021817 ac_ext=c
21818ac_cpp='$CPP $CPPFLAGS'
21819ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21820ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21821ac_compiler_gnu=$ac_cv_c_compiler_gnu
21822
21823
21824fi
21825echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21826echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021827HAVE_STD_ITERATOR=0
21828if test "$ac_cv_cxx_have_std_iterator" = yes
21829then
21830 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021831fi
21832
21833echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21834echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21835if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21836 echo $ECHO_N "(cached) $ECHO_C" >&6
21837else
21838
John Criswell7a73b802003-06-30 21:59:07 +000021839 ac_ext=cc
21840ac_cpp='$CXXCPP $CPPFLAGS'
21841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21844
21845 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021846/* confdefs.h. */
21847_ACEOF
21848cat confdefs.h >>conftest.$ac_ext
21849cat >>conftest.$ac_ext <<_ACEOF
21850/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021851#include <iterator>
21852#ifdef HAVE_NAMESPACES
21853using namespace std;
21854#endif
John Criswell7a73b802003-06-30 21:59:07 +000021855int
21856main ()
21857{
John Criswellc78022e2003-07-29 19:11:58 +000021858bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021859 ;
21860 return 0;
21861}
21862_ACEOF
21863rm -f conftest.$ac_objext
21864if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021865 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021866 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021867 grep -v '^ *+' conftest.er1 >conftest.err
21868 rm -f conftest.er1
21869 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021872 { ac_try='test -z "$ac_cxx_werror_flag"
21873 || test ! -s conftest.err'
21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21875 (eval $ac_try) 2>&5
21876 ac_status=$?
21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21878 (exit $ac_status); }; } &&
21879 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21881 (eval $ac_try) 2>&5
21882 ac_status=$?
21883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21884 (exit $ac_status); }; }; then
21885 ac_cv_cxx_have_bi_iterator=yes
21886else
21887 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021888sed 's/^/| /' conftest.$ac_ext >&5
21889
John Criswell7a73b802003-06-30 21:59:07 +000021890ac_cv_cxx_have_bi_iterator=no
21891fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021892rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021893 ac_ext=c
21894ac_cpp='$CPP $CPPFLAGS'
21895ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21896ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21897ac_compiler_gnu=$ac_cv_c_compiler_gnu
21898
21899
21900fi
21901echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21902echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021903HAVE_BI_ITERATOR=0
21904if test "$ac_cv_cxx_have_bi_iterator" = yes
21905then
21906 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021907fi
21908
21909echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21910echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21911if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21912 echo $ECHO_N "(cached) $ECHO_C" >&6
21913else
21914
John Criswell7a73b802003-06-30 21:59:07 +000021915 ac_ext=cc
21916ac_cpp='$CXXCPP $CPPFLAGS'
21917ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21918ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21919ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21920
21921 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021922/* confdefs.h. */
21923_ACEOF
21924cat confdefs.h >>conftest.$ac_ext
21925cat >>conftest.$ac_ext <<_ACEOF
21926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021927#include <iterator>
21928#ifdef HAVE_NAMESPACES
21929using namespace std;
21930#endif
John Criswell7a73b802003-06-30 21:59:07 +000021931int
21932main ()
21933{
John Criswellc78022e2003-07-29 19:11:58 +000021934forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021935 ;
21936 return 0;
21937}
21938_ACEOF
21939rm -f conftest.$ac_objext
21940if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000021941 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021942 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000021943 grep -v '^ *+' conftest.er1 >conftest.err
21944 rm -f conftest.er1
21945 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000021948 { ac_try='test -z "$ac_cxx_werror_flag"
21949 || test ! -s conftest.err'
21950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21951 (eval $ac_try) 2>&5
21952 ac_status=$?
21953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954 (exit $ac_status); }; } &&
21955 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21957 (eval $ac_try) 2>&5
21958 ac_status=$?
21959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21960 (exit $ac_status); }; }; then
21961 ac_cv_cxx_have_fwd_iterator=yes
21962else
21963 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021964sed 's/^/| /' conftest.$ac_ext >&5
21965
John Criswell7a73b802003-06-30 21:59:07 +000021966ac_cv_cxx_have_fwd_iterator=no
21967fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000021968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021969 ac_ext=c
21970ac_cpp='$CPP $CPPFLAGS'
21971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21973ac_compiler_gnu=$ac_cv_c_compiler_gnu
21974
21975
21976fi
21977echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21978echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021979HAVE_FWD_ITERATOR=0
21980if test "$ac_cv_cxx_have_fwd_iterator" = yes
21981then
21982 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021983fi
21984
21985
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021986
21987echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21988echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21989if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21990 echo $ECHO_N "(cached) $ECHO_C" >&6
21991else
21992 ac_ext=cc
21993ac_cpp='$CXXCPP $CPPFLAGS'
21994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21997
21998 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021999/* confdefs.h. */
22000_ACEOF
22001cat confdefs.h >>conftest.$ac_ext
22002cat >>conftest.$ac_ext <<_ACEOF
22003/* end confdefs.h. */
22004#include <math.h>
22005 int foo(float f) {return isnan(f);}
22006_ACEOF
22007rm -f conftest.$ac_objext
22008if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022009 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022010 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022011 grep -v '^ *+' conftest.er1 >conftest.err
22012 rm -f conftest.er1
22013 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22015 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022016 { ac_try='test -z "$ac_cxx_werror_flag"
22017 || test ! -s conftest.err'
22018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22019 (eval $ac_try) 2>&5
22020 ac_status=$?
22021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); }; } &&
22023 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22025 (eval $ac_try) 2>&5
22026 ac_status=$?
22027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22028 (exit $ac_status); }; }; then
22029 ac_cv_func_isnan_in_math_h=yes
22030else
22031 echo "$as_me: failed program was:" >&5
22032sed 's/^/| /' conftest.$ac_ext >&5
22033
22034ac_cv_func_isnan_in_math_h=no
22035fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022036rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022037 ac_ext=c
22038ac_cpp='$CPP $CPPFLAGS'
22039ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22040ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22041ac_compiler_gnu=$ac_cv_c_compiler_gnu
22042
22043fi
22044echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
22045echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
22046 if test "$ac_cv_func_isnan_in_math_h" = "yes"
22047 then
22048
22049cat >>confdefs.h <<\_ACEOF
22050#define HAVE_ISNAN_IN_MATH_H 1
22051_ACEOF
22052
22053 fi
22054echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
22055echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
22056if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
22057 echo $ECHO_N "(cached) $ECHO_C" >&6
22058else
22059 ac_ext=cc
22060ac_cpp='$CXXCPP $CPPFLAGS'
22061ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22062ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22063ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22064
22065 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022066/* confdefs.h. */
22067_ACEOF
22068cat confdefs.h >>conftest.$ac_ext
22069cat >>conftest.$ac_ext <<_ACEOF
22070/* end confdefs.h. */
22071#include <cmath>
22072 int foo(float f) {return isnan(f);}
22073_ACEOF
22074rm -f conftest.$ac_objext
22075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022076 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022077 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022078 grep -v '^ *+' conftest.er1 >conftest.err
22079 rm -f conftest.er1
22080 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22082 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022083 { ac_try='test -z "$ac_cxx_werror_flag"
22084 || test ! -s conftest.err'
22085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22086 (eval $ac_try) 2>&5
22087 ac_status=$?
22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); }; } &&
22090 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22092 (eval $ac_try) 2>&5
22093 ac_status=$?
22094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095 (exit $ac_status); }; }; then
22096 ac_cv_func_isnan_in_cmath=yes
22097else
22098 echo "$as_me: failed program was:" >&5
22099sed 's/^/| /' conftest.$ac_ext >&5
22100
22101ac_cv_func_isnan_in_cmath=no
22102fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022104 ac_ext=c
22105ac_cpp='$CPP $CPPFLAGS'
22106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22108ac_compiler_gnu=$ac_cv_c_compiler_gnu
22109
22110fi
22111echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
22112echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
22113 if test "$ac_cv_func_isnan_in_cmath" = "yes"
22114 then
22115
22116cat >>confdefs.h <<\_ACEOF
22117#define HAVE_ISNAN_IN_CMATH 1
22118_ACEOF
22119
22120 fi
22121echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
22122echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
22123if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
22124 echo $ECHO_N "(cached) $ECHO_C" >&6
22125else
22126 ac_ext=cc
22127ac_cpp='$CXXCPP $CPPFLAGS'
22128ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22129ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22130ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22131
22132 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022133/* confdefs.h. */
22134_ACEOF
22135cat confdefs.h >>conftest.$ac_ext
22136cat >>conftest.$ac_ext <<_ACEOF
22137/* end confdefs.h. */
22138#include <cmath>
22139 using std::isnan; int foo(float f) {return isnan(f);}
22140_ACEOF
22141rm -f conftest.$ac_objext
22142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022143 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022144 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022145 grep -v '^ *+' conftest.er1 >conftest.err
22146 rm -f conftest.er1
22147 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022150 { ac_try='test -z "$ac_cxx_werror_flag"
22151 || test ! -s conftest.err'
22152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22153 (eval $ac_try) 2>&5
22154 ac_status=$?
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); }; } &&
22157 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22159 (eval $ac_try) 2>&5
22160 ac_status=$?
22161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22162 (exit $ac_status); }; }; then
22163 ac_cv_func_std_isnan_in_cmath=yes
22164else
22165 echo "$as_me: failed program was:" >&5
22166sed 's/^/| /' conftest.$ac_ext >&5
22167
22168ac_cv_func_std_isnan_in_cmath=no
22169fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000022171 ac_ext=c
22172ac_cpp='$CPP $CPPFLAGS'
22173ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22174ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22175ac_compiler_gnu=$ac_cv_c_compiler_gnu
22176
22177fi
22178echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
22179echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
22180 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
22181 then
22182
22183cat >>confdefs.h <<\_ACEOF
22184#define HAVE_STD_ISNAN_IN_CMATH 1
22185_ACEOF
22186
22187 fi
22188
22189
Brian Gaeke52a551d2004-07-21 03:14:12 +000022190echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
22191echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
22192if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
22193 echo $ECHO_N "(cached) $ECHO_C" >&6
22194else
22195 ac_ext=cc
22196ac_cpp='$CXXCPP $CPPFLAGS'
22197ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22198ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22199ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22200
22201 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022202/* confdefs.h. */
22203_ACEOF
22204cat confdefs.h >>conftest.$ac_ext
22205cat >>conftest.$ac_ext <<_ACEOF
22206/* end confdefs.h. */
22207#include <math.h>
22208 int foo(float f) {return isinf(f);}
22209_ACEOF
22210rm -f conftest.$ac_objext
22211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022212 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022213 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022214 grep -v '^ *+' conftest.er1 >conftest.err
22215 rm -f conftest.er1
22216 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022219 { ac_try='test -z "$ac_cxx_werror_flag"
22220 || test ! -s conftest.err'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22223 ac_status=$?
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; } &&
22226 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228 (eval $ac_try) 2>&5
22229 ac_status=$?
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); }; }; then
22232 ac_cv_func_isinf_in_math_h=yes
22233else
22234 echo "$as_me: failed program was:" >&5
22235sed 's/^/| /' conftest.$ac_ext >&5
22236
22237ac_cv_func_isinf_in_math_h=no
22238fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022239rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022240 ac_ext=c
22241ac_cpp='$CPP $CPPFLAGS'
22242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22244ac_compiler_gnu=$ac_cv_c_compiler_gnu
22245
22246fi
22247echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
22248echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
22249 if test "$ac_cv_func_isinf_in_math_h" = "yes"
22250 then
22251
22252cat >>confdefs.h <<\_ACEOF
22253#define HAVE_ISINF_IN_MATH_H 1
22254_ACEOF
22255
22256 fi
22257echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
22258echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
22259if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
22260 echo $ECHO_N "(cached) $ECHO_C" >&6
22261else
22262 ac_ext=cc
22263ac_cpp='$CXXCPP $CPPFLAGS'
22264ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22265ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22266ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22267
22268 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022269/* confdefs.h. */
22270_ACEOF
22271cat confdefs.h >>conftest.$ac_ext
22272cat >>conftest.$ac_ext <<_ACEOF
22273/* end confdefs.h. */
22274#include <cmath>
22275 int foo(float f) {return isinf(f);}
22276_ACEOF
22277rm -f conftest.$ac_objext
22278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022279 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022280 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022281 grep -v '^ *+' conftest.er1 >conftest.err
22282 rm -f conftest.er1
22283 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22285 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022286 { ac_try='test -z "$ac_cxx_werror_flag"
22287 || test ! -s conftest.err'
22288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22289 (eval $ac_try) 2>&5
22290 ac_status=$?
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); }; } &&
22293 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22295 (eval $ac_try) 2>&5
22296 ac_status=$?
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); }; }; then
22299 ac_cv_func_isinf_in_cmath=yes
22300else
22301 echo "$as_me: failed program was:" >&5
22302sed 's/^/| /' conftest.$ac_ext >&5
22303
22304ac_cv_func_isinf_in_cmath=no
22305fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022307 ac_ext=c
22308ac_cpp='$CPP $CPPFLAGS'
22309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22311ac_compiler_gnu=$ac_cv_c_compiler_gnu
22312
22313fi
22314echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22315echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22316 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22317 then
22318
22319cat >>confdefs.h <<\_ACEOF
22320#define HAVE_ISINF_IN_CMATH 1
22321_ACEOF
22322
22323 fi
22324echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22325echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22326if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22327 echo $ECHO_N "(cached) $ECHO_C" >&6
22328else
22329 ac_ext=cc
22330ac_cpp='$CXXCPP $CPPFLAGS'
22331ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22332ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22333ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22334
22335 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022336/* confdefs.h. */
22337_ACEOF
22338cat confdefs.h >>conftest.$ac_ext
22339cat >>conftest.$ac_ext <<_ACEOF
22340/* end confdefs.h. */
22341#include <cmath>
22342 using std::isinf; int foo(float f) {return isinf(f);}
22343_ACEOF
22344rm -f conftest.$ac_objext
22345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022346 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022347 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022348 grep -v '^ *+' conftest.er1 >conftest.err
22349 rm -f conftest.er1
22350 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022353 { ac_try='test -z "$ac_cxx_werror_flag"
22354 || test ! -s conftest.err'
22355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22356 (eval $ac_try) 2>&5
22357 ac_status=$?
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); }; } &&
22360 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22363 ac_status=$?
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; }; then
22366 ac_cv_func_std_isinf_in_cmath=yes
22367else
22368 echo "$as_me: failed program was:" >&5
22369sed 's/^/| /' conftest.$ac_ext >&5
22370
22371ac_cv_func_std_isinf_in_cmath=no
22372fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022373rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022374 ac_ext=c
22375ac_cpp='$CPP $CPPFLAGS'
22376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22378ac_compiler_gnu=$ac_cv_c_compiler_gnu
22379
22380fi
22381echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22382echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22383 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22384 then
22385
22386cat >>confdefs.h <<\_ACEOF
22387#define HAVE_STD_ISINF_IN_CMATH 1
22388_ACEOF
22389
22390 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000022391echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22392echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22393if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22395else
22396 ac_ext=cc
22397ac_cpp='$CXXCPP $CPPFLAGS'
22398ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22399ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22400ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22401
22402 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000022403/* confdefs.h. */
22404_ACEOF
22405cat confdefs.h >>conftest.$ac_ext
22406cat >>conftest.$ac_ext <<_ACEOF
22407/* end confdefs.h. */
22408#include <ieeefp.h>
22409 int foo(float f) {return finite(f);}
22410_ACEOF
22411rm -f conftest.$ac_objext
22412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022413 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000022414 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022415 grep -v '^ *+' conftest.er1 >conftest.err
22416 rm -f conftest.er1
22417 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000022418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22419 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022420 { ac_try='test -z "$ac_cxx_werror_flag"
22421 || test ! -s conftest.err'
22422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423 (eval $ac_try) 2>&5
22424 ac_status=$?
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); }; } &&
22427 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000022428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429 (eval $ac_try) 2>&5
22430 ac_status=$?
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); }; }; then
22433 ac_cv_func_finite_in_ieeefp_h=yes
22434else
22435 echo "$as_me: failed program was:" >&5
22436sed 's/^/| /' conftest.$ac_ext >&5
22437
22438ac_cv_func_finite_in_ieeefp_h=no
22439fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeked59a6472004-07-21 03:33:58 +000022441 ac_ext=c
22442ac_cpp='$CPP $CPPFLAGS'
22443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22445ac_compiler_gnu=$ac_cv_c_compiler_gnu
22446
22447fi
22448echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22449echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22450 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22451 then
22452
22453cat >>confdefs.h <<\_ACEOF
22454#define HAVE_FINITE_IN_IEEEFP_H 1
22455_ACEOF
22456
22457 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000022458
22459
John Criswell7a73b802003-06-30 21:59:07 +000022460# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22461# for constant arguments. Useless!
22462echo "$as_me:$LINENO: checking for working alloca.h" >&5
22463echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22464if test "${ac_cv_working_alloca_h+set}" = set; then
22465 echo $ECHO_N "(cached) $ECHO_C" >&6
22466else
22467 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022468/* confdefs.h. */
22469_ACEOF
22470cat confdefs.h >>conftest.$ac_ext
22471cat >>conftest.$ac_ext <<_ACEOF
22472/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022473#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000022474int
22475main ()
22476{
22477char *p = (char *) alloca (2 * sizeof (int));
22478 ;
22479 return 0;
22480}
22481_ACEOF
22482rm -f conftest.$ac_objext conftest$ac_exeext
22483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022484 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022485 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022486 grep -v '^ *+' conftest.er1 >conftest.err
22487 rm -f conftest.er1
22488 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022491 { ac_try='test -z "$ac_c_werror_flag"
22492 || test ! -s conftest.err'
22493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22494 (eval $ac_try) 2>&5
22495 ac_status=$?
22496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497 (exit $ac_status); }; } &&
22498 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500 (eval $ac_try) 2>&5
22501 ac_status=$?
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; }; then
22504 ac_cv_working_alloca_h=yes
22505else
22506 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022507sed 's/^/| /' conftest.$ac_ext >&5
22508
John Criswell7a73b802003-06-30 21:59:07 +000022509ac_cv_working_alloca_h=no
22510fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022511rm -f conftest.err conftest.$ac_objext \
22512 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022513fi
22514echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22515echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22516if test $ac_cv_working_alloca_h = yes; then
22517
22518cat >>confdefs.h <<\_ACEOF
22519#define HAVE_ALLOCA_H 1
22520_ACEOF
22521
22522fi
22523
22524echo "$as_me:$LINENO: checking for alloca" >&5
22525echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22526if test "${ac_cv_func_alloca_works+set}" = set; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22528else
22529 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022530/* confdefs.h. */
22531_ACEOF
22532cat confdefs.h >>conftest.$ac_ext
22533cat >>conftest.$ac_ext <<_ACEOF
22534/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022535#ifdef __GNUC__
22536# define alloca __builtin_alloca
22537#else
22538# ifdef _MSC_VER
22539# include <malloc.h>
22540# define alloca _alloca
22541# else
22542# if HAVE_ALLOCA_H
22543# include <alloca.h>
22544# else
22545# ifdef _AIX
22546 #pragma alloca
22547# else
22548# ifndef alloca /* predefined by HP cc +Olibcalls */
22549char *alloca ();
22550# endif
22551# endif
22552# endif
22553# endif
22554#endif
22555
John Criswell7a73b802003-06-30 21:59:07 +000022556int
22557main ()
22558{
22559char *p = (char *) alloca (1);
22560 ;
22561 return 0;
22562}
22563_ACEOF
22564rm -f conftest.$ac_objext conftest$ac_exeext
22565if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022566 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022567 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022568 grep -v '^ *+' conftest.er1 >conftest.err
22569 rm -f conftest.er1
22570 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022573 { ac_try='test -z "$ac_c_werror_flag"
22574 || test ! -s conftest.err'
22575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22576 (eval $ac_try) 2>&5
22577 ac_status=$?
22578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22579 (exit $ac_status); }; } &&
22580 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22582 (eval $ac_try) 2>&5
22583 ac_status=$?
22584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22585 (exit $ac_status); }; }; then
22586 ac_cv_func_alloca_works=yes
22587else
22588 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022589sed 's/^/| /' conftest.$ac_ext >&5
22590
John Criswell7a73b802003-06-30 21:59:07 +000022591ac_cv_func_alloca_works=no
22592fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022593rm -f conftest.err conftest.$ac_objext \
22594 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022595fi
22596echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22597echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22598
22599if test $ac_cv_func_alloca_works = yes; then
22600
22601cat >>confdefs.h <<\_ACEOF
22602#define HAVE_ALLOCA 1
22603_ACEOF
22604
22605else
22606 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22607# that cause trouble. Some versions do not even contain alloca or
22608# contain a buggy version. If you still want to use their alloca,
22609# use ar to extract alloca.o from them instead of compiling alloca.c.
22610
22611ALLOCA=alloca.$ac_objext
22612
22613cat >>confdefs.h <<\_ACEOF
22614#define C_ALLOCA 1
22615_ACEOF
22616
22617
22618echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22619echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22620if test "${ac_cv_os_cray+set}" = set; then
22621 echo $ECHO_N "(cached) $ECHO_C" >&6
22622else
22623 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022624/* confdefs.h. */
22625_ACEOF
22626cat confdefs.h >>conftest.$ac_ext
22627cat >>conftest.$ac_ext <<_ACEOF
22628/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022629#if defined(CRAY) && ! defined(CRAY2)
22630webecray
22631#else
22632wenotbecray
22633#endif
22634
22635_ACEOF
22636if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000022637 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022638 ac_cv_os_cray=yes
22639else
22640 ac_cv_os_cray=no
22641fi
22642rm -f conftest*
22643
22644fi
22645echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22646echo "${ECHO_T}$ac_cv_os_cray" >&6
22647if test $ac_cv_os_cray = yes; then
22648 for ac_func in _getb67 GETB67 getb67; do
22649 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22650echo "$as_me:$LINENO: checking for $ac_func" >&5
22651echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22652if eval "test \"\${$as_ac_var+set}\" = set"; then
22653 echo $ECHO_N "(cached) $ECHO_C" >&6
22654else
22655 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022656/* confdefs.h. */
22657_ACEOF
22658cat confdefs.h >>conftest.$ac_ext
22659cat >>conftest.$ac_ext <<_ACEOF
22660/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022661/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22663#define $ac_func innocuous_$ac_func
22664
John Criswell7a73b802003-06-30 21:59:07 +000022665/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022666 which can conflict with char $ac_func (); below.
22667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22668 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022669
John Criswell0c38eaf2003-09-10 15:17:25 +000022670#ifdef __STDC__
22671# include <limits.h>
22672#else
22673# include <assert.h>
22674#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022675
22676#undef $ac_func
22677
John Criswell7a73b802003-06-30 21:59:07 +000022678/* Override any gcc2 internal prototype to avoid an error. */
22679#ifdef __cplusplus
22680extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022681{
John Criswell7a73b802003-06-30 21:59:07 +000022682#endif
22683/* We use char because int might match the return type of a gcc2
22684 builtin and then its argument prototype would still apply. */
22685char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022686/* The GNU C library defines this for functions which it implements
22687 to always fail with ENOSYS. Some functions are actually named
22688 something starting with __ and the normal name is an alias. */
22689#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22690choke me
22691#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022692char (*f) () = $ac_func;
22693#endif
22694#ifdef __cplusplus
22695}
John Criswell7a73b802003-06-30 21:59:07 +000022696#endif
22697
John Criswell0c38eaf2003-09-10 15:17:25 +000022698int
22699main ()
22700{
22701return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022702 ;
22703 return 0;
22704}
22705_ACEOF
22706rm -f conftest.$ac_objext conftest$ac_exeext
22707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022708 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022709 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022710 grep -v '^ *+' conftest.er1 >conftest.err
22711 rm -f conftest.er1
22712 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022715 { ac_try='test -z "$ac_c_werror_flag"
22716 || test ! -s conftest.err'
22717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22718 (eval $ac_try) 2>&5
22719 ac_status=$?
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); }; } &&
22722 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22724 (eval $ac_try) 2>&5
22725 ac_status=$?
22726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); }; }; then
22728 eval "$as_ac_var=yes"
22729else
22730 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022731sed 's/^/| /' conftest.$ac_ext >&5
22732
John Criswell7a73b802003-06-30 21:59:07 +000022733eval "$as_ac_var=no"
22734fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022735rm -f conftest.err conftest.$ac_objext \
22736 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022737fi
22738echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22739echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22740if test `eval echo '${'$as_ac_var'}'` = yes; then
22741
22742cat >>confdefs.h <<_ACEOF
22743#define CRAY_STACKSEG_END $ac_func
22744_ACEOF
22745
22746 break
22747fi
22748
22749 done
22750fi
22751
22752echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22753echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22754if test "${ac_cv_c_stack_direction+set}" = set; then
22755 echo $ECHO_N "(cached) $ECHO_C" >&6
22756else
22757 if test "$cross_compiling" = yes; then
22758 ac_cv_c_stack_direction=0
22759else
22760 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022761/* confdefs.h. */
22762_ACEOF
22763cat confdefs.h >>conftest.$ac_ext
22764cat >>conftest.$ac_ext <<_ACEOF
22765/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022766int
22767find_stack_direction ()
22768{
22769 static char *addr = 0;
22770 auto char dummy;
22771 if (addr == 0)
22772 {
22773 addr = &dummy;
22774 return find_stack_direction ();
22775 }
22776 else
22777 return (&dummy > addr) ? 1 : -1;
22778}
22779
22780int
22781main ()
22782{
22783 exit (find_stack_direction () < 0);
22784}
22785_ACEOF
22786rm -f conftest$ac_exeext
22787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22788 (eval $ac_link) 2>&5
22789 ac_status=$?
22790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22791 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22793 (eval $ac_try) 2>&5
22794 ac_status=$?
22795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796 (exit $ac_status); }; }; then
22797 ac_cv_c_stack_direction=1
22798else
22799 echo "$as_me: program exited with status $ac_status" >&5
22800echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022801sed 's/^/| /' conftest.$ac_ext >&5
22802
John Criswell7a73b802003-06-30 21:59:07 +000022803( exit $ac_status )
22804ac_cv_c_stack_direction=-1
22805fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022806rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022807fi
22808fi
22809echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22810echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22811
22812cat >>confdefs.h <<_ACEOF
22813#define STACK_DIRECTION $ac_cv_c_stack_direction
22814_ACEOF
22815
22816
22817fi
22818
John Criswell7a73b802003-06-30 21:59:07 +000022819
22820
22821for ac_header in stdlib.h unistd.h
22822do
22823as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22824if eval "test \"\${$as_ac_Header+set}\" = set"; then
22825 echo "$as_me:$LINENO: checking for $ac_header" >&5
22826echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22827if eval "test \"\${$as_ac_Header+set}\" = set"; then
22828 echo $ECHO_N "(cached) $ECHO_C" >&6
22829fi
22830echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22831echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22832else
22833 # Is the header compilable?
22834echo "$as_me:$LINENO: checking $ac_header usability" >&5
22835echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22836cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022837/* confdefs.h. */
22838_ACEOF
22839cat confdefs.h >>conftest.$ac_ext
22840cat >>conftest.$ac_ext <<_ACEOF
22841/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022842$ac_includes_default
22843#include <$ac_header>
22844_ACEOF
22845rm -f conftest.$ac_objext
22846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000022847 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022848 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022849 grep -v '^ *+' conftest.er1 >conftest.err
22850 rm -f conftest.er1
22851 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22853 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000022854 { ac_try='test -z "$ac_c_werror_flag"
22855 || test ! -s conftest.err'
22856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22857 (eval $ac_try) 2>&5
22858 ac_status=$?
22859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22860 (exit $ac_status); }; } &&
22861 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22863 (eval $ac_try) 2>&5
22864 ac_status=$?
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); }; }; then
22867 ac_header_compiler=yes
22868else
22869 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022870sed 's/^/| /' conftest.$ac_ext >&5
22871
John Criswell7a73b802003-06-30 21:59:07 +000022872ac_header_compiler=no
22873fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000022874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22876echo "${ECHO_T}$ac_header_compiler" >&6
22877
22878# Is the header present?
22879echo "$as_me:$LINENO: checking $ac_header presence" >&5
22880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22881cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022882/* confdefs.h. */
22883_ACEOF
22884cat confdefs.h >>conftest.$ac_ext
22885cat >>conftest.$ac_ext <<_ACEOF
22886/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022887#include <$ac_header>
22888_ACEOF
22889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22891 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000022892 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000022893 rm -f conftest.er1
22894 cat conftest.err >&5
22895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22896 (exit $ac_status); } >/dev/null; then
22897 if test -s conftest.err; then
22898 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2706f8c2004-09-19 23:53:36 +000022899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000022900 else
22901 ac_cpp_err=
22902 fi
22903else
22904 ac_cpp_err=yes
22905fi
22906if test -z "$ac_cpp_err"; then
22907 ac_header_preproc=yes
22908else
22909 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022910sed 's/^/| /' conftest.$ac_ext >&5
22911
John Criswell7a73b802003-06-30 21:59:07 +000022912 ac_header_preproc=no
22913fi
22914rm -f conftest.err conftest.$ac_ext
22915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22916echo "${ECHO_T}$ac_header_preproc" >&6
22917
22918# So? What about this header?
Reid Spencer2706f8c2004-09-19 23:53:36 +000022919case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22920 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000022921 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000022923 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22924echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22925 ac_header_preproc=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000022926 ;;
Reid Spencer2706f8c2004-09-19 23:53:36 +000022927 no:yes:* )
Brian Gaeke0a621332004-09-08 20:38:05 +000022928 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22929echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000022930 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22931echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22932 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22933echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22934 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22935echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000022936 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22937echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2706f8c2004-09-19 23:53:36 +000022938 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22939echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +000022940 (
22941 cat <<\_ASBOX
Reid Spencer2706f8c2004-09-19 23:53:36 +000022942## ----------------------------------- ##
22943## Report this to llvmbugs@cs.uiuc.edu ##
22944## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000022945_ASBOX
22946 ) |
22947 sed "s/^/$as_me: WARNING: /" >&2
22948 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022949esac
22950echo "$as_me:$LINENO: checking for $ac_header" >&5
22951echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22952if eval "test \"\${$as_ac_Header+set}\" = set"; then
22953 echo $ECHO_N "(cached) $ECHO_C" >&6
22954else
Reid Spencer2706f8c2004-09-19 23:53:36 +000022955 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000022956fi
22957echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22958echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22959
22960fi
22961if test `eval echo '${'$as_ac_Header'}'` = yes; then
22962 cat >>confdefs.h <<_ACEOF
22963#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22964_ACEOF
22965
22966fi
22967
22968done
22969
22970
22971for ac_func in getpagesize
22972do
22973as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22974echo "$as_me:$LINENO: checking for $ac_func" >&5
22975echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22976if eval "test \"\${$as_ac_var+set}\" = set"; then
22977 echo $ECHO_N "(cached) $ECHO_C" >&6
22978else
22979 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022980/* confdefs.h. */
22981_ACEOF
22982cat confdefs.h >>conftest.$ac_ext
22983cat >>conftest.$ac_ext <<_ACEOF
22984/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022985/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22987#define $ac_func innocuous_$ac_func
22988
John Criswell7a73b802003-06-30 21:59:07 +000022989/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022990 which can conflict with char $ac_func (); below.
22991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22992 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000022993
John Criswell0c38eaf2003-09-10 15:17:25 +000022994#ifdef __STDC__
22995# include <limits.h>
22996#else
22997# include <assert.h>
22998#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000022999
23000#undef $ac_func
23001
John Criswell7a73b802003-06-30 21:59:07 +000023002/* Override any gcc2 internal prototype to avoid an error. */
23003#ifdef __cplusplus
23004extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023005{
John Criswell7a73b802003-06-30 21:59:07 +000023006#endif
23007/* We use char because int might match the return type of a gcc2
23008 builtin and then its argument prototype would still apply. */
23009char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023010/* The GNU C library defines this for functions which it implements
23011 to always fail with ENOSYS. Some functions are actually named
23012 something starting with __ and the normal name is an alias. */
23013#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23014choke me
23015#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023016char (*f) () = $ac_func;
23017#endif
23018#ifdef __cplusplus
23019}
John Criswell7a73b802003-06-30 21:59:07 +000023020#endif
23021
John Criswell0c38eaf2003-09-10 15:17:25 +000023022int
23023main ()
23024{
23025return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023026 ;
23027 return 0;
23028}
23029_ACEOF
23030rm -f conftest.$ac_objext conftest$ac_exeext
23031if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023032 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023033 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023034 grep -v '^ *+' conftest.er1 >conftest.err
23035 rm -f conftest.er1
23036 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023039 { ac_try='test -z "$ac_c_werror_flag"
23040 || test ! -s conftest.err'
23041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23042 (eval $ac_try) 2>&5
23043 ac_status=$?
23044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23045 (exit $ac_status); }; } &&
23046 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23048 (eval $ac_try) 2>&5
23049 ac_status=$?
23050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); }; }; then
23052 eval "$as_ac_var=yes"
23053else
23054 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023055sed 's/^/| /' conftest.$ac_ext >&5
23056
John Criswell7a73b802003-06-30 21:59:07 +000023057eval "$as_ac_var=no"
23058fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023059rm -f conftest.err conftest.$ac_objext \
23060 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023061fi
23062echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23063echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23064if test `eval echo '${'$as_ac_var'}'` = yes; then
23065 cat >>confdefs.h <<_ACEOF
23066#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23067_ACEOF
23068
23069fi
23070done
23071
23072echo "$as_me:$LINENO: checking for working mmap" >&5
23073echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
23074if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
23075 echo $ECHO_N "(cached) $ECHO_C" >&6
23076else
23077 if test "$cross_compiling" = yes; then
23078 ac_cv_func_mmap_fixed_mapped=no
23079else
23080 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023081/* confdefs.h. */
23082_ACEOF
23083cat confdefs.h >>conftest.$ac_ext
23084cat >>conftest.$ac_ext <<_ACEOF
23085/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023086$ac_includes_default
23087/* malloc might have been renamed as rpl_malloc. */
23088#undef malloc
23089
23090/* Thanks to Mike Haertel and Jim Avera for this test.
23091 Here is a matrix of mmap possibilities:
23092 mmap private not fixed
23093 mmap private fixed at somewhere currently unmapped
23094 mmap private fixed at somewhere already mapped
23095 mmap shared not fixed
23096 mmap shared fixed at somewhere currently unmapped
23097 mmap shared fixed at somewhere already mapped
23098 For private mappings, we should verify that changes cannot be read()
23099 back from the file, nor mmap's back from the file at a different
23100 address. (There have been systems where private was not correctly
23101 implemented like the infamous i386 svr4.0, and systems where the
23102 VM page cache was not coherent with the file system buffer cache
23103 like early versions of FreeBSD and possibly contemporary NetBSD.)
23104 For shared mappings, we should conversely verify that changes get
23105 propagated back to all the places they're supposed to be.
23106
23107 Grep wants private fixed already mapped.
23108 The main things grep needs to know about mmap are:
23109 * does it exist and is it safe to write into the mmap'd area
23110 * how to use it (BSD variants) */
23111
23112#include <fcntl.h>
23113#include <sys/mman.h>
23114
23115#if !STDC_HEADERS && !HAVE_STDLIB_H
23116char *malloc ();
23117#endif
23118
23119/* This mess was copied from the GNU getpagesize.h. */
23120#if !HAVE_GETPAGESIZE
23121/* Assume that all systems that can run configure have sys/param.h. */
23122# if !HAVE_SYS_PARAM_H
23123# define HAVE_SYS_PARAM_H 1
23124# endif
23125
23126# ifdef _SC_PAGESIZE
23127# define getpagesize() sysconf(_SC_PAGESIZE)
23128# else /* no _SC_PAGESIZE */
23129# if HAVE_SYS_PARAM_H
23130# include <sys/param.h>
23131# ifdef EXEC_PAGESIZE
23132# define getpagesize() EXEC_PAGESIZE
23133# else /* no EXEC_PAGESIZE */
23134# ifdef NBPG
23135# define getpagesize() NBPG * CLSIZE
23136# ifndef CLSIZE
23137# define CLSIZE 1
23138# endif /* no CLSIZE */
23139# else /* no NBPG */
23140# ifdef NBPC
23141# define getpagesize() NBPC
23142# else /* no NBPC */
23143# ifdef PAGESIZE
23144# define getpagesize() PAGESIZE
23145# endif /* PAGESIZE */
23146# endif /* no NBPC */
23147# endif /* no NBPG */
23148# endif /* no EXEC_PAGESIZE */
23149# else /* no HAVE_SYS_PARAM_H */
23150# define getpagesize() 8192 /* punt totally */
23151# endif /* no HAVE_SYS_PARAM_H */
23152# endif /* no _SC_PAGESIZE */
23153
23154#endif /* no HAVE_GETPAGESIZE */
23155
23156int
23157main ()
23158{
23159 char *data, *data2, *data3;
23160 int i, pagesize;
23161 int fd;
23162
23163 pagesize = getpagesize ();
23164
23165 /* First, make a file with some known garbage in it. */
23166 data = (char *) malloc (pagesize);
23167 if (!data)
23168 exit (1);
23169 for (i = 0; i < pagesize; ++i)
23170 *(data + i) = rand ();
23171 umask (0);
23172 fd = creat ("conftest.mmap", 0600);
23173 if (fd < 0)
23174 exit (1);
23175 if (write (fd, data, pagesize) != pagesize)
23176 exit (1);
23177 close (fd);
23178
23179 /* Next, try to mmap the file at a fixed address which already has
23180 something else allocated at it. If we can, also make sure that
23181 we see the same garbage. */
23182 fd = open ("conftest.mmap", O_RDWR);
23183 if (fd < 0)
23184 exit (1);
23185 data2 = (char *) malloc (2 * pagesize);
23186 if (!data2)
23187 exit (1);
Reid Spencer2706f8c2004-09-19 23:53:36 +000023188 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000023189 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2706f8c2004-09-19 23:53:36 +000023190 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000023191 exit (1);
23192 for (i = 0; i < pagesize; ++i)
23193 if (*(data + i) != *(data2 + i))
23194 exit (1);
23195
23196 /* Finally, make sure that changes to the mapped area do not
23197 percolate back to the file as seen by read(). (This is a bug on
23198 some variants of i386 svr4.0.) */
23199 for (i = 0; i < pagesize; ++i)
23200 *(data2 + i) = *(data2 + i) + 1;
23201 data3 = (char *) malloc (pagesize);
23202 if (!data3)
23203 exit (1);
23204 if (read (fd, data3, pagesize) != pagesize)
23205 exit (1);
23206 for (i = 0; i < pagesize; ++i)
23207 if (*(data + i) != *(data3 + i))
23208 exit (1);
23209 close (fd);
23210 exit (0);
23211}
23212_ACEOF
23213rm -f conftest$ac_exeext
23214if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23215 (eval $ac_link) 2>&5
23216 ac_status=$?
23217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23218 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23220 (eval $ac_try) 2>&5
23221 ac_status=$?
23222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23223 (exit $ac_status); }; }; then
23224 ac_cv_func_mmap_fixed_mapped=yes
23225else
23226 echo "$as_me: program exited with status $ac_status" >&5
23227echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023228sed 's/^/| /' conftest.$ac_ext >&5
23229
John Criswell7a73b802003-06-30 21:59:07 +000023230( exit $ac_status )
23231ac_cv_func_mmap_fixed_mapped=no
23232fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023233rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023234fi
23235fi
23236echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
23237echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
23238if test $ac_cv_func_mmap_fixed_mapped = yes; then
23239
23240cat >>confdefs.h <<\_ACEOF
23241#define HAVE_MMAP 1
23242_ACEOF
23243
23244fi
23245rm -f conftest.mmap
23246
Brian Gaeke26be9c52004-01-13 06:43:16 +000023247if test "$ac_cv_func_mmap_fixed_mapped" = "no"
23248then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023249 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
23250echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000023251fi
John Criswell7a73b802003-06-30 21:59:07 +000023252echo "$as_me:$LINENO: checking for mmap of files" >&5
23253echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
23254if test "${ac_cv_func_mmap_file+set}" = set; then
23255 echo $ECHO_N "(cached) $ECHO_C" >&6
23256else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023257 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000023258ac_cpp='$CPP $CPPFLAGS'
23259ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23260ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23261ac_compiler_gnu=$ac_cv_c_compiler_gnu
23262
23263 if test "$cross_compiling" = yes; then
Reid Spencer8b93e7a2004-09-21 17:14:44 +000023264 ac_cv_func_mmap_file=no
John Criswell7a73b802003-06-30 21:59:07 +000023265else
23266 cat >conftest.$ac_ext <<_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023267
Reid Spencer777ce172004-09-20 04:09:56 +000023268 /* confdefs.h. */
23269_ACEOF
23270cat confdefs.h >>conftest.$ac_ext
23271cat >>conftest.$ac_ext <<_ACEOF
23272/* end confdefs.h. */
23273
John Criswell7a73b802003-06-30 21:59:07 +000023274#include <sys/types.h>
John Criswell5ab73462003-10-09 15:44:28 +000023275#include <sys/mman.h>
John Criswell7a73b802003-06-30 21:59:07 +000023276#include <fcntl.h>
Reid Spencer777ce172004-09-20 04:09:56 +000023277
23278int
23279main ()
23280{
John Criswell7a73b802003-06-30 21:59:07 +000023281
23282 int fd;
Reid Spencer777ce172004-09-20 04:09:56 +000023283 fd = creat ("foo",0777);
23284 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
23285 unlink ("foo");
Reid Spencer8b93e7a2004-09-21 17:14:44 +000023286 return (fd != (int) MAP_FAILED);
Reid Spencer777ce172004-09-20 04:09:56 +000023287 ;
23288 return 0;
23289}
John Criswell7a73b802003-06-30 21:59:07 +000023290_ACEOF
23291rm -f conftest$ac_exeext
23292if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23293 (eval $ac_link) 2>&5
23294 ac_status=$?
23295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23296 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23298 (eval $ac_try) 2>&5
23299 ac_status=$?
23300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); }; }; then
23302 ac_cv_func_mmap_file=yes
23303else
23304 echo "$as_me: program exited with status $ac_status" >&5
23305echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023306sed 's/^/| /' conftest.$ac_ext >&5
23307
John Criswell7a73b802003-06-30 21:59:07 +000023308( exit $ac_status )
23309ac_cv_func_mmap_file=no
23310fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023311rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023312fi
23313 ac_ext=c
23314ac_cpp='$CPP $CPPFLAGS'
23315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23317ac_compiler_gnu=$ac_cv_c_compiler_gnu
23318
23319
23320fi
23321echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23322echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23323if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023324
23325cat >>confdefs.h <<\_ACEOF
23326#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000023327_ACEOF
23328
23329 MMAP_FILE=yes
23330
23331fi
23332
Brian Gaeke26be9c52004-01-13 06:43:16 +000023333if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000023334then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023335 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23336echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023337fi
23338echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23339echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23340if test "${ac_cv_header_mmap_anon+set}" = set; then
23341 echo $ECHO_N "(cached) $ECHO_C" >&6
23342else
Reid Spencer2706f8c2004-09-19 23:53:36 +000023343 ac_ext=c
John Criswell7a73b802003-06-30 21:59:07 +000023344ac_cpp='$CPP $CPPFLAGS'
23345ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23346ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23347ac_compiler_gnu=$ac_cv_c_compiler_gnu
23348
23349 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023350/* confdefs.h. */
23351_ACEOF
23352cat confdefs.h >>conftest.$ac_ext
23353cat >>conftest.$ac_ext <<_ACEOF
23354/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023355#include <sys/mman.h>
Reid Spencer2706f8c2004-09-19 23:53:36 +000023356#include <unistd.h>
23357#include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000023358int
23359main ()
23360{
23361mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23362 ;
23363 return 0;
23364}
23365_ACEOF
23366rm -f conftest.$ac_objext
23367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023368 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023369 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023370 grep -v '^ *+' conftest.er1 >conftest.err
23371 rm -f conftest.er1
23372 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23374 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023375 { ac_try='test -z "$ac_c_werror_flag"
23376 || test ! -s conftest.err'
23377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23378 (eval $ac_try) 2>&5
23379 ac_status=$?
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); }; } &&
23382 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23384 (eval $ac_try) 2>&5
23385 ac_status=$?
23386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23387 (exit $ac_status); }; }; then
23388 ac_cv_header_mmap_anon=yes
23389else
23390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023391sed 's/^/| /' conftest.$ac_ext >&5
23392
John Criswell7a73b802003-06-30 21:59:07 +000023393ac_cv_header_mmap_anon=no
23394fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023396 ac_ext=c
23397ac_cpp='$CPP $CPPFLAGS'
23398ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23399ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23400ac_compiler_gnu=$ac_cv_c_compiler_gnu
23401
23402
23403fi
23404echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23405echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23406if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023407
23408cat >>confdefs.h <<\_ACEOF
23409#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000023410_ACEOF
23411
23412fi
23413
23414echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23415echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23416if test "${ac_cv_type_signal+set}" = set; then
23417 echo $ECHO_N "(cached) $ECHO_C" >&6
23418else
23419 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023420/* confdefs.h. */
23421_ACEOF
23422cat confdefs.h >>conftest.$ac_ext
23423cat >>conftest.$ac_ext <<_ACEOF
23424/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023425#include <sys/types.h>
23426#include <signal.h>
23427#ifdef signal
23428# undef signal
23429#endif
23430#ifdef __cplusplus
23431extern "C" void (*signal (int, void (*)(int)))(int);
23432#else
23433void (*signal ()) ();
23434#endif
23435
John Criswell7a73b802003-06-30 21:59:07 +000023436int
23437main ()
23438{
23439int i;
23440 ;
23441 return 0;
23442}
23443_ACEOF
23444rm -f conftest.$ac_objext
23445if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023446 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023447 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023448 grep -v '^ *+' conftest.er1 >conftest.err
23449 rm -f conftest.er1
23450 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23452 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023453 { ac_try='test -z "$ac_c_werror_flag"
23454 || test ! -s conftest.err'
23455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23456 (eval $ac_try) 2>&5
23457 ac_status=$?
23458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23459 (exit $ac_status); }; } &&
23460 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23462 (eval $ac_try) 2>&5
23463 ac_status=$?
23464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465 (exit $ac_status); }; }; then
23466 ac_cv_type_signal=void
23467else
23468 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023469sed 's/^/| /' conftest.$ac_ext >&5
23470
John Criswell7a73b802003-06-30 21:59:07 +000023471ac_cv_type_signal=int
23472fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023473rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023474fi
23475echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23476echo "${ECHO_T}$ac_cv_type_signal" >&6
23477
23478cat >>confdefs.h <<_ACEOF
23479#define RETSIGTYPE $ac_cv_type_signal
23480_ACEOF
23481
23482
23483
23484
23485
23486
23487
Brian Gaekef5261472004-02-20 06:40:57 +000023488
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000023489
John Criswelld6621562004-06-07 14:26:24 +000023490
23491
John Criswell7ed43ad2004-07-19 16:12:29 +000023492for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000023493do
23494as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23495echo "$as_me:$LINENO: checking for $ac_func" >&5
23496echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23497if eval "test \"\${$as_ac_var+set}\" = set"; then
23498 echo $ECHO_N "(cached) $ECHO_C" >&6
23499else
23500 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023501/* confdefs.h. */
23502_ACEOF
23503cat confdefs.h >>conftest.$ac_ext
23504cat >>conftest.$ac_ext <<_ACEOF
23505/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023506/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23508#define $ac_func innocuous_$ac_func
23509
John Criswell7a73b802003-06-30 21:59:07 +000023510/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023511 which can conflict with char $ac_func (); below.
23512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23513 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023514
John Criswell0c38eaf2003-09-10 15:17:25 +000023515#ifdef __STDC__
23516# include <limits.h>
23517#else
23518# include <assert.h>
23519#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023520
23521#undef $ac_func
23522
John Criswell7a73b802003-06-30 21:59:07 +000023523/* Override any gcc2 internal prototype to avoid an error. */
23524#ifdef __cplusplus
23525extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023526{
John Criswell7a73b802003-06-30 21:59:07 +000023527#endif
23528/* We use char because int might match the return type of a gcc2
23529 builtin and then its argument prototype would still apply. */
23530char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023531/* The GNU C library defines this for functions which it implements
23532 to always fail with ENOSYS. Some functions are actually named
23533 something starting with __ and the normal name is an alias. */
23534#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23535choke me
23536#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023537char (*f) () = $ac_func;
23538#endif
23539#ifdef __cplusplus
23540}
John Criswell7a73b802003-06-30 21:59:07 +000023541#endif
23542
John Criswell0c38eaf2003-09-10 15:17:25 +000023543int
23544main ()
23545{
23546return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023547 ;
23548 return 0;
23549}
23550_ACEOF
23551rm -f conftest.$ac_objext conftest$ac_exeext
23552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023553 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023554 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023555 grep -v '^ *+' conftest.er1 >conftest.err
23556 rm -f conftest.er1
23557 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023560 { ac_try='test -z "$ac_c_werror_flag"
23561 || test ! -s conftest.err'
23562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23563 (eval $ac_try) 2>&5
23564 ac_status=$?
23565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566 (exit $ac_status); }; } &&
23567 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23569 (eval $ac_try) 2>&5
23570 ac_status=$?
23571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23572 (exit $ac_status); }; }; then
23573 eval "$as_ac_var=yes"
23574else
23575 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023576sed 's/^/| /' conftest.$ac_ext >&5
23577
John Criswell7a73b802003-06-30 21:59:07 +000023578eval "$as_ac_var=no"
23579fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023580rm -f conftest.err conftest.$ac_objext \
23581 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023582fi
23583echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23584echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23585if test `eval echo '${'$as_ac_var'}'` = yes; then
23586 cat >>confdefs.h <<_ACEOF
23587#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23588_ACEOF
23589
23590fi
23591done
23592
John Criswell7a73b802003-06-30 21:59:07 +000023593echo "$as_me:$LINENO: checking for mprotect" >&5
23594echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23595if test "${ac_cv_func_mprotect+set}" = set; then
23596 echo $ECHO_N "(cached) $ECHO_C" >&6
23597else
23598 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023599/* confdefs.h. */
23600_ACEOF
23601cat confdefs.h >>conftest.$ac_ext
23602cat >>conftest.$ac_ext <<_ACEOF
23603/* end confdefs.h. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023604/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23606#define mprotect innocuous_mprotect
23607
John Criswell7a73b802003-06-30 21:59:07 +000023608/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023609 which can conflict with char mprotect (); below.
23610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23611 <limits.h> exists even on freestanding compilers. */
Reid Spencer2706f8c2004-09-19 23:53:36 +000023612
John Criswell0c38eaf2003-09-10 15:17:25 +000023613#ifdef __STDC__
23614# include <limits.h>
23615#else
23616# include <assert.h>
23617#endif
Reid Spencer2706f8c2004-09-19 23:53:36 +000023618
23619#undef mprotect
23620
John Criswell7a73b802003-06-30 21:59:07 +000023621/* Override any gcc2 internal prototype to avoid an error. */
23622#ifdef __cplusplus
23623extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023624{
John Criswell7a73b802003-06-30 21:59:07 +000023625#endif
23626/* We use char because int might match the return type of a gcc2
23627 builtin and then its argument prototype would still apply. */
23628char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000023629/* The GNU C library defines this for functions which it implements
23630 to always fail with ENOSYS. Some functions are actually named
23631 something starting with __ and the normal name is an alias. */
23632#if defined (__stub_mprotect) || defined (__stub___mprotect)
23633choke me
23634#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023635char (*f) () = mprotect;
23636#endif
23637#ifdef __cplusplus
23638}
John Criswell7a73b802003-06-30 21:59:07 +000023639#endif
23640
John Criswell0c38eaf2003-09-10 15:17:25 +000023641int
23642main ()
23643{
23644return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000023645 ;
23646 return 0;
23647}
23648_ACEOF
23649rm -f conftest.$ac_objext conftest$ac_exeext
23650if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023651 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023652 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023653 grep -v '^ *+' conftest.er1 >conftest.err
23654 rm -f conftest.er1
23655 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23657 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023658 { ac_try='test -z "$ac_c_werror_flag"
23659 || test ! -s conftest.err'
23660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23661 (eval $ac_try) 2>&5
23662 ac_status=$?
23663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23664 (exit $ac_status); }; } &&
23665 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23667 (eval $ac_try) 2>&5
23668 ac_status=$?
23669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23670 (exit $ac_status); }; }; then
23671 ac_cv_func_mprotect=yes
23672else
23673 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023674sed 's/^/| /' conftest.$ac_ext >&5
23675
John Criswell7a73b802003-06-30 21:59:07 +000023676ac_cv_func_mprotect=no
23677fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023678rm -f conftest.err conftest.$ac_objext \
23679 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023680fi
23681echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23682echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23683if test $ac_cv_func_mprotect = yes; then
23684 :
23685else
23686 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23687echo "$as_me: error: Function mprotect() required but not found" >&2;}
23688 { (exit 1); exit 1; }; }
23689fi
23690
23691
John Criswellb13092b2003-07-22 21:00:24 +000023692
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023693 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23694echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000023695 ac_ext=c
23696ac_cpp='$CPP $CPPFLAGS'
23697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23699ac_compiler_gnu=$ac_cv_c_compiler_gnu
23700
Brian Gaekef91a15c2003-11-18 06:20:41 +000023701 oldcflags="$CFLAGS"
23702 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000023703 cat >conftest.$ac_ext <<_ACEOF
Reid Spencer777ce172004-09-20 04:09:56 +000023704/* confdefs.h. */
23705_ACEOF
23706cat confdefs.h >>conftest.$ac_ext
23707cat >>conftest.$ac_ext <<_ACEOF
23708/* end confdefs.h. */
23709
23710int
23711main ()
23712{
Brian Gaekef91a15c2003-11-18 06:20:41 +000023713int main() { return 0; }
Reid Spencer777ce172004-09-20 04:09:56 +000023714 ;
23715 return 0;
23716}
John Criswellcb7a1eb2003-11-17 19:46:02 +000023717_ACEOF
23718rm -f conftest.$ac_objext conftest$ac_exeext
23719if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2706f8c2004-09-19 23:53:36 +000023720 (eval $ac_link) 2>conftest.er1
John Criswellcb7a1eb2003-11-17 19:46:02 +000023721 ac_status=$?
Reid Spencer2706f8c2004-09-19 23:53:36 +000023722 grep -v '^ *+' conftest.er1 >conftest.err
23723 rm -f conftest.er1
23724 cat conftest.err >&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000023725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726 (exit $ac_status); } &&
Reid Spencer2706f8c2004-09-19 23:53:36 +000023727 { ac_try='test -z "$ac_c_werror_flag"
23728 || test ! -s conftest.err'
23729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730 (eval $ac_try) 2>&5
23731 ac_status=$?
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; } &&
23734 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000023735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23737 ac_status=$?
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; }; then
23740 ac_cv_link_use_r=yes
23741else
23742 echo "$as_me: failed program was:" >&5
23743sed 's/^/| /' conftest.$ac_ext >&5
23744
Brian Gaekef91a15c2003-11-18 06:20:41 +000023745ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000023746fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000023747rm -f conftest.err conftest.$ac_objext \
23748 conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000023749 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000023750 ac_ext=c
23751ac_cpp='$CPP $CPPFLAGS'
23752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23754ac_compiler_gnu=$ac_cv_c_compiler_gnu
23755
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023756 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23757echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000023758 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000023759 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000023760
23761cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000023762#define HAVE_LINK_R 1
23763_ACEOF
23764
23765 fi
23766
23767
John Criswell7a73b802003-06-30 21:59:07 +000023768# Check whether --enable-optimized or --disable-optimized was given.
23769if test "${enable_optimized+set}" = set; then
23770 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000023771
23772else
John Criswellb13092b2003-07-22 21:00:24 +000023773 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023774fi;
John Criswellb13092b2003-07-22 21:00:24 +000023775if test ${enableval} = "no"
23776then
23777 ENABLE_OPTIMIZED=
23778
23779else
23780 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23781
23782fi
23783
John Criswellb13092b2003-07-22 21:00:24 +000023784# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000023785if test "${enable_jit+set}" = set; then
23786 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000023787
23788else
John Criswellc78022e2003-07-29 19:11:58 +000023789 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000023790fi;
John Criswellb13092b2003-07-22 21:00:24 +000023791if test ${enableval} = "no"
23792then
23793 JIT=
23794
23795else
John Criswellc78022e2003-07-29 19:11:58 +000023796 case $target in
23797 *i*86*)
23798 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000023799
John Criswellc78022e2003-07-29 19:11:58 +000023800 ;;
23801 *sparc*)
23802 JIT=TARGET_HAS_JIT=1
23803
23804 ;;
23805 *)
23806 JIT=
23807
23808 ;;
23809 esac
John Criswellb13092b2003-07-22 21:00:24 +000023810fi
John Criswell7a73b802003-06-30 21:59:07 +000023811
23812
John Criswell7a73b802003-06-30 21:59:07 +000023813# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23814if test "${with_llvmgccdir+set}" = set; then
23815 withval="$with_llvmgccdir"
23816 LLVMGCCDIR=$withval
23817
23818fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000023819echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23820echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23821LLVM_GCC_CHECK=no
23822if test -d "$LLVMGCCDIR"
23823then
23824 if test -x "$LLVMGCCDIR/bin/gcc"
23825 then
23826 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23827 fi
23828fi
23829llvmgccwarn=no
23830echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23831echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23832if test "$LLVM_GCC_CHECK" = "no"
23833then
23834 llvmgccwarn=yes
23835fi
Brian Gaekef3b24102003-11-16 18:38:14 +000023836echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23837echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23838LLVM_GCC_SANE=no
23839if test -x "$LLVM_GCC_CHECK"
23840then
23841 cp /dev/null conftest.c
23842 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23843 if test $? -eq 0
23844 then
23845 LLVM_GCC_SANE=yes
23846 fi
23847 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000023848 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000023849 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000023850
23851 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000023852 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000023853
Brian Gaekef3b24102003-11-16 18:38:14 +000023854fi
23855echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23856echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23857if test "$LLVM_GCC_SANE" = "no"
23858then
23859 llvmgccwarn=yes
23860fi
23861
Brian Gaeke554831c2004-01-21 19:39:29 +000023862echo "$as_me:$LINENO: checking for shared library suffix" >&5
23863echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
Reid Spencer2e89ae22004-09-20 03:06:28 +000023864eval "SHLIBEXT=$shrext_cmds"
Brian Gaeke554831c2004-01-21 19:39:29 +000023865echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23866echo "${ECHO_T}$SHLIBEXT" >&6
23867SHLIBEXT=$SHLIBEXT
23868
23869
23870cat >>confdefs.h <<_ACEOF
23871#define SHLIBEXT "$SHLIBEXT"
23872_ACEOF
23873
23874
Reid Spencere9de0912004-08-20 09:03:57 +000023875# Translate the various configuration directories and other basic
23876# information into substitutions that will end up in config.h.in so
23877# that these configured values can be hard-wired into a program.
23878eval LLVM_PREFIX="${prefix}";
23879eval LLVM_BINDIR="${prefix}/bin";
23880eval LLVM_LIBDIR="${prefix}/lib";
23881eval LLVM_DATADIR="${prefix}/data";
23882eval LLVM_DOCSDIR="${prefix}/docs";
23883eval LLVM_ETCDIR="${prefix}/etc";
23884eval LLVM_INCLUDEDIR="${prefix}/include";
23885eval LLVM_INFODIR="${prefix}/info";
23886eval LLVM_MANDIR="${prefix}/man";
23887LLVM_CONFIGTIME=`date`
23888
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898
23899cat >>confdefs.h <<_ACEOF
23900#define LLVM_PREFIX "$LLVM_PREFIX"
23901_ACEOF
23902
23903
23904cat >>confdefs.h <<_ACEOF
23905#define LLVM_BINDIR "$LLVM_BINDIR"
23906_ACEOF
23907
23908
23909cat >>confdefs.h <<_ACEOF
23910#define LLVM_LIBDIR "$LLVM_LIBDIR"
23911_ACEOF
23912
23913
23914cat >>confdefs.h <<_ACEOF
23915#define LLVM_DATADIR "$LLVM_DATADIR"
23916_ACEOF
23917
23918
23919cat >>confdefs.h <<_ACEOF
23920#define LLVM_DATADIR "$LLVM_DOCSDIR"
23921_ACEOF
23922
23923
23924cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000023925#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000023926_ACEOF
23927
23928
23929cat >>confdefs.h <<_ACEOF
23930#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23931_ACEOF
23932
23933
23934cat >>confdefs.h <<_ACEOF
23935#define LLVM_INFODIR "$LLVM_INFODIR"
23936_ACEOF
23937
23938
23939cat >>confdefs.h <<_ACEOF
23940#define LLVM_MANDIR "$LLVM_MANDIR"
23941_ACEOF
23942
23943
23944cat >>confdefs.h <<_ACEOF
23945#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23946_ACEOF
23947
23948
John Criswell7a73b802003-06-30 21:59:07 +000023949cat >confcache <<\_ACEOF
23950# This file is a shell script that caches the results of configure
23951# tests run on this system so they can be shared between configure
23952# scripts and configure runs, see configure's option --config-cache.
23953# It is not useful on other systems. If it contains results you don't
23954# want to keep, you may remove or edit it.
23955#
23956# config.status only pays attention to the cache file if you give it
23957# the --recheck option to rerun configure.
23958#
John Criswell0c38eaf2003-09-10 15:17:25 +000023959# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000023960# loading this file, other *unset* `ac_cv_foo' will be assigned the
23961# following values.
23962
23963_ACEOF
23964
23965# The following way of writing the cache mishandles newlines in values,
23966# but we know of no workaround that is simple, portable, and efficient.
23967# So, don't put newlines in cache variables' values.
23968# Ultrix sh set writes to stderr and can't be redirected directly,
23969# and sets the high bit in the cache file unless we assign to the vars.
23970{
23971 (set) 2>&1 |
23972 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23973 *ac_space=\ *)
23974 # `set' does not quote correctly, so add quotes (double-quote
23975 # substitution turns \\\\ into \\, and sed turns \\ into \).
23976 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023977 "s/'/'\\\\''/g;
23978 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000023979 ;;
23980 *)
23981 # `set' quotes correctly as required by POSIX, so do not add quotes.
23982 sed -n \
Reid Spencer2706f8c2004-09-19 23:53:36 +000023983 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000023984 ;;
23985 esac;
23986} |
23987 sed '
23988 t clear
23989 : clear
23990 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23991 t end
23992 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23993 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000023994if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000023995 if test -w $cache_file; then
23996 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23997 cat confcache >$cache_file
23998 else
23999 echo "not updating unwritable cache $cache_file"
24000 fi
24001fi
24002rm -f confcache
24003
24004test "x$prefix" = xNONE && prefix=$ac_default_prefix
24005# Let make expand exec_prefix.
24006test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24007
24008# VPATH may cause trouble with some makes, so we remove $(srcdir),
24009# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24010# trailing colons and then remove the whole line if VPATH becomes empty
24011# (actually we leave an empty line to preserve line numbers).
24012if test "x$srcdir" = x.; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024013 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000024014s/:*\$(srcdir):*/:/;
24015s/:*\${srcdir}:*/:/;
24016s/:*@srcdir@:*/:/;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024017s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000024018s/:*$//;
Reid Spencer2706f8c2004-09-19 23:53:36 +000024019s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000024020}'
24021fi
24022
24023DEFS=-DHAVE_CONFIG_H
24024
John Criswell0c38eaf2003-09-10 15:17:25 +000024025ac_libobjs=
24026ac_ltlibobjs=
24027for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24028 # 1. Remove the extension, and $U if already installed.
24029 ac_i=`echo "$ac_i" |
Reid Spencer2706f8c2004-09-19 23:53:36 +000024030 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024031 # 2. Add them.
24032 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24033 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24034done
24035LIBOBJS=$ac_libobjs
24036
24037LTLIBOBJS=$ac_ltlibobjs
24038
24039
John Criswell7a73b802003-06-30 21:59:07 +000024040
24041: ${CONFIG_STATUS=./config.status}
24042ac_clean_files_save=$ac_clean_files
24043ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24044{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24045echo "$as_me: creating $CONFIG_STATUS" >&6;}
24046cat >$CONFIG_STATUS <<_ACEOF
24047#! $SHELL
24048# Generated by $as_me.
24049# Run this file to recreate the current configuration.
24050# Compiler output produced by configure, useful for debugging
24051# configure, is in config.log if it exists.
24052
24053debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000024054ac_cs_recheck=false
24055ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000024056SHELL=\${CONFIG_SHELL-$SHELL}
24057_ACEOF
24058
24059cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024060## --------------------- ##
24061## M4sh Initialization. ##
24062## --------------------- ##
24063
24064# Be Bourne compatible
24065if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24066 emulate sh
24067 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024068 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24069 # is contrary to our usage. Disable this feature.
24070 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000024071elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24072 set -o posix
24073fi
Reid Spencer2706f8c2004-09-19 23:53:36 +000024074DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000024075
John Criswell7a73b802003-06-30 21:59:07 +000024076# Support unset when possible.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024077if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024078 as_unset=unset
24079else
24080 as_unset=false
24081fi
24082
John Criswell0c38eaf2003-09-10 15:17:25 +000024083
24084# Work around bugs in pre-3.0 UWIN ksh.
24085$as_unset ENV MAIL MAILPATH
24086PS1='$ '
24087PS2='> '
24088PS4='+ '
24089
24090# NLS nuisances.
24091for as_var in \
24092 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24093 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24094 LC_TELEPHONE LC_TIME
24095do
Reid Spencer2706f8c2004-09-19 23:53:36 +000024096 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000024097 eval $as_var=C; export $as_var
24098 else
24099 $as_unset $as_var
24100 fi
24101done
24102
24103# Required to use basename.
24104if expr a : '\(a\)' >/dev/null 2>&1; then
24105 as_expr=expr
24106else
24107 as_expr=false
24108fi
24109
24110if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24111 as_basename=basename
24112else
24113 as_basename=false
24114fi
John Criswell7a73b802003-06-30 21:59:07 +000024115
24116
24117# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000024118as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000024119$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24120 X"$0" : 'X\(//\)$' \| \
24121 X"$0" : 'X\(/\)$' \| \
24122 . : '\(.\)' 2>/dev/null ||
24123echo X/"$0" |
24124 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24125 /^X\/\(\/\/\)$/{ s//\1/; q; }
24126 /^X\/\(\/\).*/{ s//\1/; q; }
24127 s/.*/./; q'`
24128
John Criswell0c38eaf2003-09-10 15:17:25 +000024129
John Criswell7a73b802003-06-30 21:59:07 +000024130# PATH needs CR, and LINENO needs CR and PATH.
24131# Avoid depending upon Character Ranges.
24132as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24133as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24134as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24135as_cr_digits='0123456789'
24136as_cr_alnum=$as_cr_Letters$as_cr_digits
24137
24138# The user is always right.
24139if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024140 echo "#! /bin/sh" >conf$$.sh
24141 echo "exit 0" >>conf$$.sh
24142 chmod +x conf$$.sh
24143 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024144 PATH_SEPARATOR=';'
24145 else
24146 PATH_SEPARATOR=:
24147 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000024148 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000024149fi
24150
24151
24152 as_lineno_1=$LINENO
24153 as_lineno_2=$LINENO
24154 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24155 test "x$as_lineno_1" != "x$as_lineno_2" &&
24156 test "x$as_lineno_3" = "x$as_lineno_2" || {
24157 # Find who we are. Look in the path if we contain no path at all
24158 # relative or not.
24159 case $0 in
24160 *[\\/]* ) as_myself=$0 ;;
24161 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24162for as_dir in $PATH
24163do
24164 IFS=$as_save_IFS
24165 test -z "$as_dir" && as_dir=.
24166 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24167done
24168
24169 ;;
24170 esac
24171 # We did not find ourselves, most probably we were run as `sh COMMAND'
24172 # in which case we are not to be found in the path.
24173 if test "x$as_myself" = x; then
24174 as_myself=$0
24175 fi
24176 if test ! -f "$as_myself"; then
24177 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24178echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24179 { (exit 1); exit 1; }; }
24180 fi
24181 case $CONFIG_SHELL in
24182 '')
24183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24184for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24185do
24186 IFS=$as_save_IFS
24187 test -z "$as_dir" && as_dir=.
24188 for as_base in sh bash ksh sh5; do
24189 case $as_dir in
24190 /*)
24191 if ("$as_dir/$as_base" -c '
24192 as_lineno_1=$LINENO
24193 as_lineno_2=$LINENO
24194 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24195 test "x$as_lineno_1" != "x$as_lineno_2" &&
24196 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024197 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24198 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000024199 CONFIG_SHELL=$as_dir/$as_base
24200 export CONFIG_SHELL
24201 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24202 fi;;
24203 esac
24204 done
24205done
24206;;
24207 esac
24208
24209 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24210 # uniformly replaced by the line number. The first 'sed' inserts a
24211 # line-number line before each line; the second 'sed' does the real
24212 # work. The second script uses 'N' to pair each line-number line
24213 # with the numbered line, and appends trailing '-' during
24214 # substitution so that $LINENO is not a special case at line end.
24215 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24216 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24217 sed '=' <$as_myself |
24218 sed '
24219 N
24220 s,$,-,
24221 : loop
24222 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24223 t loop
24224 s,-$,,
24225 s,^['$as_cr_digits']*\n,,
24226 ' >$as_me.lineno &&
24227 chmod +x $as_me.lineno ||
24228 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24229echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24230 { (exit 1); exit 1; }; }
24231
24232 # Don't try to exec as it changes $[0], causing all sort of problems
24233 # (the dirname of $[0] is not the place where we might find the
24234 # original and so on. Autoconf is especially sensible to this).
24235 . ./$as_me.lineno
24236 # Exit status is that of the last command.
24237 exit
24238}
24239
24240
24241case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24242 *c*,-n*) ECHO_N= ECHO_C='
24243' ECHO_T=' ' ;;
24244 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24245 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24246esac
24247
24248if expr a : '\(a\)' >/dev/null 2>&1; then
24249 as_expr=expr
24250else
24251 as_expr=false
24252fi
24253
24254rm -f conf$$ conf$$.exe conf$$.file
24255echo >conf$$.file
24256if ln -s conf$$.file conf$$ 2>/dev/null; then
24257 # We could just check for DJGPP; but this test a) works b) is more generic
24258 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24259 if test -f conf$$.exe; then
24260 # Don't use ln at all; we don't have any links
24261 as_ln_s='cp -p'
24262 else
24263 as_ln_s='ln -s'
24264 fi
24265elif ln conf$$.file conf$$ 2>/dev/null; then
24266 as_ln_s=ln
24267else
24268 as_ln_s='cp -p'
24269fi
24270rm -f conf$$ conf$$.exe conf$$.file
24271
John Criswell0c38eaf2003-09-10 15:17:25 +000024272if mkdir -p . 2>/dev/null; then
24273 as_mkdir_p=:
24274else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024275 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000024276 as_mkdir_p=false
24277fi
24278
John Criswell7a73b802003-06-30 21:59:07 +000024279as_executable_p="test -f"
24280
24281# Sed expression to map a string onto a valid CPP name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024282as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024283
24284# Sed expression to map a string onto a valid variable name.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024285as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024286
24287
24288# IFS
24289# We need space, tab and new line, in precisely that order.
24290as_nl='
24291'
24292IFS=" $as_nl"
24293
24294# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000024295$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000024296
24297exec 6>&1
24298
24299# Open the log real soon, to keep \$[0] and so on meaningful, and to
24300# report actual input values of CONFIG_FILES etc. instead of their
24301# values after options handling. Logging --version etc. is OK.
24302exec 5>>config.log
24303{
24304 echo
24305 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24306## Running $as_me. ##
24307_ASBOX
24308} >&5
24309cat >&5 <<_CSEOF
24310
Reid Spencere9de0912004-08-20 09:03:57 +000024311This file was extended by LLVM $as_me 1.4, which was
Reid Spencer2706f8c2004-09-19 23:53:36 +000024312generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000024313
24314 CONFIG_FILES = $CONFIG_FILES
24315 CONFIG_HEADERS = $CONFIG_HEADERS
24316 CONFIG_LINKS = $CONFIG_LINKS
24317 CONFIG_COMMANDS = $CONFIG_COMMANDS
24318 $ $0 $@
24319
24320_CSEOF
24321echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24322echo >&5
24323_ACEOF
24324
24325# Files that config.status was made for.
24326if test -n "$ac_config_files"; then
24327 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24328fi
24329
24330if test -n "$ac_config_headers"; then
24331 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24332fi
24333
24334if test -n "$ac_config_links"; then
24335 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24336fi
24337
24338if test -n "$ac_config_commands"; then
24339 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24340fi
24341
24342cat >>$CONFIG_STATUS <<\_ACEOF
24343
24344ac_cs_usage="\
24345\`$as_me' instantiates files from templates according to the
24346current configuration.
24347
24348Usage: $0 [OPTIONS] [FILE]...
24349
24350 -h, --help print this help, then exit
24351 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000024352 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000024353 -d, --debug don't remove temporary files
24354 --recheck update $as_me by reconfiguring in the same conditions
24355 --file=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000024356 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000024357 --header=FILE[:TEMPLATE]
Reid Spencer2706f8c2004-09-19 23:53:36 +000024358 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000024359
24360Configuration files:
24361$config_files
24362
24363Configuration headers:
24364$config_headers
24365
Reid Spencerde8c47f2004-08-29 19:35:28 +000024366Configuration links:
24367$config_links
24368
John Criswellc764fbc2003-09-06 15:17:13 +000024369Configuration commands:
24370$config_commands
24371
John Criswell7a73b802003-06-30 21:59:07 +000024372Report bugs to <bug-autoconf@gnu.org>."
24373_ACEOF
24374
24375cat >>$CONFIG_STATUS <<_ACEOF
24376ac_cs_version="\\
Reid Spencere9de0912004-08-20 09:03:57 +000024377LLVM config.status 1.4
Reid Spencer2706f8c2004-09-19 23:53:36 +000024378configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000024379 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24380
Reid Spencer2706f8c2004-09-19 23:53:36 +000024381Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000024382This config.status script is free software; the Free Software Foundation
24383gives unlimited permission to copy, distribute and modify it."
24384srcdir=$srcdir
24385INSTALL="$INSTALL"
24386_ACEOF
24387
24388cat >>$CONFIG_STATUS <<\_ACEOF
24389# If no file are specified by the user, then we need to provide default
24390# value. By we need to know if files were specified by the user.
24391ac_need_defaults=:
24392while test $# != 0
24393do
24394 case $1 in
24395 --*=*)
24396 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24397 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024398 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000024399 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024400 -*)
24401 ac_option=$1
24402 ac_optarg=$2
24403 ac_shift=shift
24404 ;;
John Criswell7a73b802003-06-30 21:59:07 +000024405 *) # This is not an option, so the user has probably given explicit
24406 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000024407 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000024408 ac_need_defaults=false;;
24409 esac
24410
John Criswell0c38eaf2003-09-10 15:17:25 +000024411 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000024412 # Handling of the options.
24413_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000024414cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024415 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24416 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024417 --version | --vers* | -V )
24418 echo "$ac_cs_version"; exit 0 ;;
24419 --he | --h)
24420 # Conflict between --help and --header
24421 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24422Try \`$0 --help' for more information." >&5
24423echo "$as_me: error: ambiguous option: $1
24424Try \`$0 --help' for more information." >&2;}
24425 { (exit 1); exit 1; }; };;
24426 --help | --hel | -h )
24427 echo "$ac_cs_usage"; exit 0 ;;
24428 --debug | --d* | -d )
24429 debug=: ;;
24430 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000024431 $ac_shift
24432 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024433 ac_need_defaults=false;;
24434 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000024435 $ac_shift
24436 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024437 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24439 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24440 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024441
24442 # This is an error.
24443 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24444Try \`$0 --help' for more information." >&5
24445echo "$as_me: error: unrecognized option: $1
24446Try \`$0 --help' for more information." >&2;}
24447 { (exit 1); exit 1; }; } ;;
24448
24449 *) ac_config_targets="$ac_config_targets $1" ;;
24450
24451 esac
24452 shift
24453done
24454
John Criswell0c38eaf2003-09-10 15:17:25 +000024455ac_configure_extra_args=
24456
24457if $ac_cs_silent; then
24458 exec 6>/dev/null
24459 ac_configure_extra_args="$ac_configure_extra_args --silent"
24460fi
24461
24462_ACEOF
24463cat >>$CONFIG_STATUS <<_ACEOF
24464if \$ac_cs_recheck; then
24465 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24466 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24467fi
24468
John Criswell7a73b802003-06-30 21:59:07 +000024469_ACEOF
24470
John Criswellc764fbc2003-09-06 15:17:13 +000024471cat >>$CONFIG_STATUS <<_ACEOF
24472#
24473# INIT-COMMANDS section.
24474#
John Criswell7a73b802003-06-30 21:59:07 +000024475
John Criswellc764fbc2003-09-06 15:17:13 +000024476${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24477${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000024478${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024479${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024480${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024481${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24482${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000024483${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24484${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000024485${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000024486${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024487${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024488
24489_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024490
24491
24492
24493cat >>$CONFIG_STATUS <<\_ACEOF
24494for ac_config_target in $ac_config_targets
24495do
24496 case "$ac_config_target" in
24497 # Handling of arguments.
24498 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000024499 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000024500 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +000024501 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024502 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24503 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000024504 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024505 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024506 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024507 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24508 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000024509 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24510 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024511 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024512 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024513 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000024514 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell5fbb1f82004-09-24 13:28:51 +000024515 "include/llvm/Support/DataTypes.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
John Criswell9f011862004-09-24 18:28:00 +000024516 "include/llvm/ADT/hash_map" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_map" ;;
24517 "include/llvm/ADT/hash_set" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/ADT/hash_set" ;;
John Criswell7a73b802003-06-30 21:59:07 +000024518 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24519echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24520 { (exit 1); exit 1; }; };;
24521 esac
24522done
24523
24524# If the user did not use the arguments to specify the items to instantiate,
24525# then the envvar interface is used. Set only those that are not.
24526# We use the long form for the default assignment because of an extremely
24527# bizarre bug on SunOS 4.1.3.
24528if $ac_need_defaults; then
24529 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24530 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000024531 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000024532 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000024533fi
24534
John Criswell0c38eaf2003-09-10 15:17:25 +000024535# Have a temporary directory for convenience. Make it in the build tree
24536# simply because there is no reason to put it here, and in addition,
24537# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000024538# Create a temporary directory, and hook for its removal unless debugging.
24539$debug ||
24540{
24541 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24542 trap '{ (exit 1); exit 1; }' 1 2 13 15
24543}
24544
24545# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000024546
John Criswell7a73b802003-06-30 21:59:07 +000024547{
John Criswell0c38eaf2003-09-10 15:17:25 +000024548 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000024549 test -n "$tmp" && test -d "$tmp"
24550} ||
24551{
John Criswell0c38eaf2003-09-10 15:17:25 +000024552 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000024553 (umask 077 && mkdir $tmp)
24554} ||
24555{
John Criswell0c38eaf2003-09-10 15:17:25 +000024556 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000024557 { (exit 1); exit 1; }
24558}
24559
24560_ACEOF
24561
24562cat >>$CONFIG_STATUS <<_ACEOF
24563
24564#
24565# CONFIG_FILES section.
24566#
24567
24568# No need to generate the scripts if there are no CONFIG_FILES.
24569# This happens for instance when ./config.status config.h
24570if test -n "\$CONFIG_FILES"; then
24571 # Protect against being on the right side of a sed subst in config.status.
24572 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24573 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24574s,@SHELL@,$SHELL,;t t
24575s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24576s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24577s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24578s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24579s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24580s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24581s,@exec_prefix@,$exec_prefix,;t t
24582s,@prefix@,$prefix,;t t
24583s,@program_transform_name@,$program_transform_name,;t t
24584s,@bindir@,$bindir,;t t
24585s,@sbindir@,$sbindir,;t t
24586s,@libexecdir@,$libexecdir,;t t
24587s,@datadir@,$datadir,;t t
24588s,@sysconfdir@,$sysconfdir,;t t
24589s,@sharedstatedir@,$sharedstatedir,;t t
24590s,@localstatedir@,$localstatedir,;t t
24591s,@libdir@,$libdir,;t t
24592s,@includedir@,$includedir,;t t
24593s,@oldincludedir@,$oldincludedir,;t t
24594s,@infodir@,$infodir,;t t
24595s,@mandir@,$mandir,;t t
24596s,@build_alias@,$build_alias,;t t
24597s,@host_alias@,$host_alias,;t t
24598s,@target_alias@,$target_alias,;t t
24599s,@DEFS@,$DEFS,;t t
24600s,@ECHO_C@,$ECHO_C,;t t
24601s,@ECHO_N@,$ECHO_N,;t t
24602s,@ECHO_T@,$ECHO_T,;t t
24603s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000024604s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024605s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24606s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24607s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24608s,@build@,$build,;t t
24609s,@build_cpu@,$build_cpu,;t t
24610s,@build_vendor@,$build_vendor,;t t
24611s,@build_os@,$build_os,;t t
24612s,@host@,$host,;t t
24613s,@host_cpu@,$host_cpu,;t t
24614s,@host_vendor@,$host_vendor,;t t
24615s,@host_os@,$host_os,;t t
24616s,@target@,$target,;t t
24617s,@target_cpu@,$target_cpu,;t t
24618s,@target_vendor@,$target_vendor,;t t
24619s,@target_os@,$target_os,;t t
24620s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024621s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000024622s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024623s,@CXX@,$CXX,;t t
24624s,@CXXFLAGS@,$CXXFLAGS,;t t
24625s,@LDFLAGS@,$LDFLAGS,;t t
24626s,@CPPFLAGS@,$CPPFLAGS,;t t
24627s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24628s,@EXEEXT@,$EXEEXT,;t t
24629s,@OBJEXT@,$OBJEXT,;t t
24630s,@CC@,$CC,;t t
24631s,@CFLAGS@,$CFLAGS,;t t
24632s,@ac_ct_CC@,$ac_ct_CC,;t t
24633s,@CPP@,$CPP,;t t
24634s,@ifGNUmake@,$ifGNUmake,;t t
24635s,@LEX@,$LEX,;t t
24636s,@LEXLIB@,$LEXLIB,;t t
24637s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000024638s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024639s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000024640s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024641s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024642s,@LN_S@,$LN_S,;t t
24643s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024644s,@AR@,$AR,;t t
24645s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024646s,@RANLIB@,$RANLIB,;t t
24647s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24648s,@STRIP@,$STRIP,;t t
24649s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024650s,@CXXCPP@,$CXXCPP,;t t
24651s,@F77@,$F77,;t t
24652s,@FFLAGS@,$FFLAGS,;t t
24653s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024654s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024655s,@DOT@,$DOT,;t t
24656s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000024657s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000024658s,@PYTHON@,$PYTHON,;t t
24659s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000024660s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
John Criswell0021c312004-02-13 21:57:29 +000024661s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000024662s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24663s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24664s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024665s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024666s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024667s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024668s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000024669s,@LLVMCC1@,$LLVMCC1,;t t
24670s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000024671s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000024672s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24673s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24674s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24675s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24676s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24677s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24678s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24679s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24680s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24681s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000024682s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000024683s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024684CEOF
24685
24686_ACEOF
24687
24688 cat >>$CONFIG_STATUS <<\_ACEOF
24689 # Split the substitutions into bite-sized pieces for seds with
24690 # small command number limits, like on Digital OSF/1 and HP-UX.
24691 ac_max_sed_lines=48
24692 ac_sed_frag=1 # Number of current file.
24693 ac_beg=1 # First line for current file.
24694 ac_end=$ac_max_sed_lines # Line after last line for current file.
24695 ac_more_lines=:
24696 ac_sed_cmds=
24697 while $ac_more_lines; do
24698 if test $ac_beg -gt 1; then
24699 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24700 else
24701 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24702 fi
24703 if test ! -s $tmp/subs.frag; then
24704 ac_more_lines=false
24705 else
24706 # The purpose of the label and of the branching condition is to
24707 # speed up the sed processing (if there are no `@' at all, there
24708 # is no need to browse any of the substitutions).
24709 # These are the two extra sed commands mentioned above.
24710 (echo ':t
24711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24712 if test -z "$ac_sed_cmds"; then
Reid Spencer2706f8c2004-09-19 23:53:36 +000024713 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024714 else
Reid Spencer2706f8c2004-09-19 23:53:36 +000024715 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024716 fi
24717 ac_sed_frag=`expr $ac_sed_frag + 1`
24718 ac_beg=$ac_end
24719 ac_end=`expr $ac_end + $ac_max_sed_lines`
24720 fi
24721 done
24722 if test -z "$ac_sed_cmds"; then
24723 ac_sed_cmds=cat
24724 fi
24725fi # test -n "$CONFIG_FILES"
24726
24727_ACEOF
24728cat >>$CONFIG_STATUS <<\_ACEOF
24729for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24731 case $ac_file in
24732 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000024733 cat >$tmp/stdin
24734 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024736 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000024737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024738 * ) ac_file_in=$ac_file.in ;;
24739 esac
24740
24741 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24742 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24743$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024744 X"$ac_file" : 'X\(//\)[^/]' \| \
24745 X"$ac_file" : 'X\(//\)$' \| \
24746 X"$ac_file" : 'X\(/\)' \| \
24747 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000024748echo X"$ac_file" |
24749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24750 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24751 /^X\(\/\/\)$/{ s//\1/; q; }
24752 /^X\(\/\).*/{ s//\1/; q; }
24753 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024754 { if $as_mkdir_p; then
24755 mkdir -p "$ac_dir"
24756 else
24757 as_dir="$ac_dir"
24758 as_dirs=
24759 while test ! -d "$as_dir"; do
24760 as_dirs="$as_dir $as_dirs"
24761 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24762$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000024763 X"$as_dir" : 'X\(//\)[^/]' \| \
24764 X"$as_dir" : 'X\(//\)$' \| \
24765 X"$as_dir" : 'X\(/\)' \| \
24766 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000024767echo X"$as_dir" |
24768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24770 /^X\(\/\/\)$/{ s//\1/; q; }
24771 /^X\(\/\).*/{ s//\1/; q; }
24772 s/.*/./; q'`
24773 done
24774 test ! -n "$as_dirs" || mkdir $as_dirs
24775 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24776echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24777 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024778
24779 ac_builddir=.
24780
24781if test "$ac_dir" != .; then
24782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24783 # A "../" for each directory in $ac_dir_suffix.
24784 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24785else
24786 ac_dir_suffix= ac_top_builddir=
24787fi
24788
24789case $srcdir in
24790 .) # No --srcdir option. We are building in place.
24791 ac_srcdir=.
24792 if test -z "$ac_top_builddir"; then
24793 ac_top_srcdir=.
24794 else
24795 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24796 fi ;;
24797 [\\/]* | ?:[\\/]* ) # Absolute path.
24798 ac_srcdir=$srcdir$ac_dir_suffix;
24799 ac_top_srcdir=$srcdir ;;
24800 *) # Relative path.
24801 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24802 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24803esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000024804
24805# Do not use `cd foo && pwd` to compute absolute paths, because
24806# the directories may not exist.
24807case `pwd` in
24808.) ac_abs_builddir="$ac_dir";;
24809*)
24810 case "$ac_dir" in
24811 .) ac_abs_builddir=`pwd`;;
24812 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24813 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24814 esac;;
24815esac
24816case $ac_abs_builddir in
24817.) ac_abs_top_builddir=${ac_top_builddir}.;;
24818*)
24819 case ${ac_top_builddir}. in
24820 .) ac_abs_top_builddir=$ac_abs_builddir;;
24821 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24822 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24823 esac;;
24824esac
24825case $ac_abs_builddir in
24826.) ac_abs_srcdir=$ac_srcdir;;
24827*)
24828 case $ac_srcdir in
24829 .) ac_abs_srcdir=$ac_abs_builddir;;
24830 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24831 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24832 esac;;
24833esac
24834case $ac_abs_builddir in
24835.) ac_abs_top_srcdir=$ac_top_srcdir;;
24836*)
24837 case $ac_top_srcdir in
24838 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24839 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24840 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24841 esac;;
24842esac
John Criswell7a73b802003-06-30 21:59:07 +000024843
24844
24845 case $INSTALL in
24846 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24847 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24848 esac
24849
24850 if test x"$ac_file" != x-; then
24851 { echo "$as_me:$LINENO: creating $ac_file" >&5
24852echo "$as_me: creating $ac_file" >&6;}
24853 rm -f "$ac_file"
24854 fi
24855 # Let's still pretend it is `configure' which instantiates (i.e., don't
24856 # use $as_me), people would be surprised to read:
24857 # /* config.h. Generated by config.status. */
24858 if test x"$ac_file" = x-; then
24859 configure_input=
24860 else
24861 configure_input="$ac_file. "
24862 fi
24863 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2706f8c2004-09-19 23:53:36 +000024864 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000024865
24866 # First look for the input files in the build tree, otherwise in the
24867 # src tree.
24868 ac_file_inputs=`IFS=:
24869 for f in $ac_file_in; do
24870 case $f in
24871 -) echo $tmp/stdin ;;
24872 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024873 # Absolute (can't be DOS-style, as IFS=:)
24874 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024875echo "$as_me: error: cannot find input file: $f" >&2;}
24876 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024877 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024878 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000024879 if test -f "$f"; then
24880 # Build tree
24881 echo "$f"
24882 elif test -f "$srcdir/$f"; then
24883 # Source tree
24884 echo "$srcdir/$f"
24885 else
24886 # /dev/null tree
24887 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024888echo "$as_me: error: cannot find input file: $f" >&2;}
24889 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024890 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024891 esac
24892 done` || { (exit 1); exit 1; }
24893_ACEOF
24894cat >>$CONFIG_STATUS <<_ACEOF
24895 sed "$ac_vpsub
24896$extrasub
24897_ACEOF
24898cat >>$CONFIG_STATUS <<\_ACEOF
24899:t
24900/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24901s,@configure_input@,$configure_input,;t t
24902s,@srcdir@,$ac_srcdir,;t t
24903s,@abs_srcdir@,$ac_abs_srcdir,;t t
24904s,@top_srcdir@,$ac_top_srcdir,;t t
24905s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24906s,@builddir@,$ac_builddir,;t t
24907s,@abs_builddir@,$ac_abs_builddir,;t t
24908s,@top_builddir@,$ac_top_builddir,;t t
24909s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24910s,@INSTALL@,$ac_INSTALL,;t t
24911" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24912 rm -f $tmp/stdin
24913 if test x"$ac_file" != x-; then
24914 mv $tmp/out $ac_file
24915 else
24916 cat $tmp/out
24917 rm -f $tmp/out
24918 fi
24919
24920done
24921_ACEOF
24922cat >>$CONFIG_STATUS <<\_ACEOF
24923
24924#
24925# CONFIG_HEADER section.
24926#
24927
24928# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24929# NAME is the cpp macro being defined and VALUE is the value it is being given.
24930#
24931# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024932ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24933ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000024934ac_dC=' '
24935ac_dD=',;t'
24936# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2706f8c2004-09-19 23:53:36 +000024937ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000024938ac_uB='$,\1#\2define\3'
24939ac_uC=' '
24940ac_uD=',;t'
24941
24942for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24943 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24944 case $ac_file in
24945 - | *:- | *:-:* ) # input from stdin
Reid Spencer2706f8c2004-09-19 23:53:36 +000024946 cat >$tmp/stdin
24947 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024949 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000024950 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024951 * ) ac_file_in=$ac_file.in ;;
24952 esac
24953
24954 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24955echo "$as_me: creating $ac_file" >&6;}
24956
24957 # First look for the input files in the build tree, otherwise in the
24958 # src tree.
24959 ac_file_inputs=`IFS=:
24960 for f in $ac_file_in; do
24961 case $f in
24962 -) echo $tmp/stdin ;;
24963 [\\/$]*)
Reid Spencer2706f8c2004-09-19 23:53:36 +000024964 # Absolute (can't be DOS-style, as IFS=:)
24965 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024966echo "$as_me: error: cannot find input file: $f" >&2;}
24967 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024968 # Do quote $f, to prevent DOS paths from being IFS'd.
24969 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024970 *) # Relative
Reid Spencer2706f8c2004-09-19 23:53:36 +000024971 if test -f "$f"; then
24972 # Build tree
24973 echo "$f"
24974 elif test -f "$srcdir/$f"; then
24975 # Source tree
24976 echo "$srcdir/$f"
24977 else
24978 # /dev/null tree
24979 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024980echo "$as_me: error: cannot find input file: $f" >&2;}
24981 { (exit 1); exit 1; }; }
Reid Spencer2706f8c2004-09-19 23:53:36 +000024982 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024983 esac
24984 done` || { (exit 1); exit 1; }
24985 # Remove the trailing spaces.
Reid Spencer2706f8c2004-09-19 23:53:36 +000024986 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000024987
24988_ACEOF
24989
24990# Transform confdefs.h into two sed scripts, `conftest.defines' and
24991# `conftest.undefs', that substitutes the proper values into
24992# config.h.in to produce config.h. The first handles `#define'
24993# templates, and the second `#undef' templates.
24994# And first: Protect against being on the right side of a sed subst in
24995# config.status. Protect against being in an unquoted here document
24996# in config.status.
24997rm -f conftest.defines conftest.undefs
24998# Using a here document instead of a string reduces the quoting nightmare.
24999# Putting comments in sed scripts is not portable.
25000#
25001# `end' is used to avoid that the second main sed command (meant for
25002# 0-ary CPP macros) applies to n-ary macro definitions.
25003# See the Autoconf documentation for `clear'.
25004cat >confdef2sed.sed <<\_ACEOF
25005s/[\\&,]/\\&/g
25006s,[\\$`],\\&,g
25007t clear
25008: clear
Reid Spencer2706f8c2004-09-19 23:53:36 +000025009s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000025010t end
Reid Spencer2706f8c2004-09-19 23:53:36 +000025011s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000025012: end
25013_ACEOF
25014# If some macros were called several times there might be several times
25015# the same #defines, which is useless. Nevertheless, we may not want to
25016# sort them, since we want the *last* AC-DEFINE to be honored.
25017uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25018sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25019rm -f confdef2sed.sed
25020
25021# This sed command replaces #undef with comments. This is necessary, for
25022# example, in the case of _POSIX_SOURCE, which is predefined and required
25023# on some systems where configure will not decide to define it.
25024cat >>conftest.undefs <<\_ACEOF
Reid Spencer2706f8c2004-09-19 23:53:36 +000025025s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000025026_ACEOF
25027
25028# Break up conftest.defines because some shells have a limit on the size
25029# of here documents, and old seds have small limits too (100 cmds).
25030echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2706f8c2004-09-19 23:53:36 +000025031echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025032echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25033echo ' :' >>$CONFIG_STATUS
25034rm -f conftest.tail
25035while grep . conftest.defines >/dev/null
25036do
25037 # Write a limited-size here document to $tmp/defines.sed.
25038 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25039 # Speed up: don't consider the non `#define' lines.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025040 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025041 # Work around the forget-to-reset-the-flag bug.
25042 echo 't clr' >>$CONFIG_STATUS
25043 echo ': clr' >>$CONFIG_STATUS
25044 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25045 echo 'CEOF
25046 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25047 rm -f $tmp/in
25048 mv $tmp/out $tmp/in
25049' >>$CONFIG_STATUS
25050 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25051 rm -f conftest.defines
25052 mv conftest.tail conftest.defines
25053done
25054rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000025055echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025056echo >>$CONFIG_STATUS
25057
25058# Break up conftest.undefs because some shells have a limit on the size
25059# of here documents, and old seds have small limits too (100 cmds).
25060echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25061rm -f conftest.tail
25062while grep . conftest.undefs >/dev/null
25063do
25064 # Write a limited-size here document to $tmp/undefs.sed.
25065 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25066 # Speed up: don't consider the non `#undef'
Reid Spencer2706f8c2004-09-19 23:53:36 +000025067 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025068 # Work around the forget-to-reset-the-flag bug.
25069 echo 't clr' >>$CONFIG_STATUS
25070 echo ': clr' >>$CONFIG_STATUS
25071 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25072 echo 'CEOF
25073 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25074 rm -f $tmp/in
25075 mv $tmp/out $tmp/in
25076' >>$CONFIG_STATUS
25077 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25078 rm -f conftest.undefs
25079 mv conftest.tail conftest.undefs
25080done
25081rm -f conftest.undefs
25082
25083cat >>$CONFIG_STATUS <<\_ACEOF
25084 # Let's still pretend it is `configure' which instantiates (i.e., don't
25085 # use $as_me), people would be surprised to read:
25086 # /* config.h. Generated by config.status. */
25087 if test x"$ac_file" = x-; then
25088 echo "/* Generated by configure. */" >$tmp/config.h
25089 else
25090 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25091 fi
25092 cat $tmp/in >>$tmp/config.h
25093 rm -f $tmp/in
25094 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000025095 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025096 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25097echo "$as_me: $ac_file is unchanged" >&6;}
25098 else
25099 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25100$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025101 X"$ac_file" : 'X\(//\)[^/]' \| \
25102 X"$ac_file" : 'X\(//\)$' \| \
25103 X"$ac_file" : 'X\(/\)' \| \
25104 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025105echo X"$ac_file" |
25106 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25107 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25108 /^X\(\/\/\)$/{ s//\1/; q; }
25109 /^X\(\/\).*/{ s//\1/; q; }
25110 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025111 { if $as_mkdir_p; then
25112 mkdir -p "$ac_dir"
25113 else
25114 as_dir="$ac_dir"
25115 as_dirs=
25116 while test ! -d "$as_dir"; do
25117 as_dirs="$as_dir $as_dirs"
25118 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25119$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025120 X"$as_dir" : 'X\(//\)[^/]' \| \
25121 X"$as_dir" : 'X\(//\)$' \| \
25122 X"$as_dir" : 'X\(/\)' \| \
25123 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025124echo X"$as_dir" |
25125 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25126 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25127 /^X\(\/\/\)$/{ s//\1/; q; }
25128 /^X\(\/\).*/{ s//\1/; q; }
25129 s/.*/./; q'`
25130 done
25131 test ! -n "$as_dirs" || mkdir $as_dirs
25132 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25133echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25134 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025135
25136 rm -f $ac_file
25137 mv $tmp/config.h $ac_file
25138 fi
25139 else
25140 cat $tmp/config.h
25141 rm -f $tmp/config.h
25142 fi
25143done
25144_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000025145cat >>$CONFIG_STATUS <<\_ACEOF
25146
25147#
Reid Spencerde8c47f2004-08-29 19:35:28 +000025148# CONFIG_LINKS section.
25149#
25150
25151for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25152 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25153 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25154
25155 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25156echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25157
25158 if test ! -r $srcdir/$ac_source; then
25159 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25160echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25161 { (exit 1); exit 1; }; }
25162 fi
25163 rm -f $ac_dest
25164
25165 # Make relative symlinks.
25166 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25167$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025168 X"$ac_dest" : 'X\(//\)[^/]' \| \
25169 X"$ac_dest" : 'X\(//\)$' \| \
25170 X"$ac_dest" : 'X\(/\)' \| \
25171 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025172echo X"$ac_dest" |
25173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25174 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25175 /^X\(\/\/\)$/{ s//\1/; q; }
25176 /^X\(\/\).*/{ s//\1/; q; }
25177 s/.*/./; q'`
25178 { if $as_mkdir_p; then
25179 mkdir -p "$ac_dest_dir"
25180 else
25181 as_dir="$ac_dest_dir"
25182 as_dirs=
25183 while test ! -d "$as_dir"; do
25184 as_dirs="$as_dir $as_dirs"
25185 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25186$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025187 X"$as_dir" : 'X\(//\)[^/]' \| \
25188 X"$as_dir" : 'X\(//\)$' \| \
25189 X"$as_dir" : 'X\(/\)' \| \
25190 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025191echo X"$as_dir" |
25192 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25193 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25194 /^X\(\/\/\)$/{ s//\1/; q; }
25195 /^X\(\/\).*/{ s//\1/; q; }
25196 s/.*/./; q'`
25197 done
25198 test ! -n "$as_dirs" || mkdir $as_dirs
25199 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25200echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25201 { (exit 1); exit 1; }; }; }
25202
25203 ac_builddir=.
25204
25205if test "$ac_dest_dir" != .; then
25206 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25207 # A "../" for each directory in $ac_dir_suffix.
25208 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25209else
25210 ac_dir_suffix= ac_top_builddir=
25211fi
25212
25213case $srcdir in
25214 .) # No --srcdir option. We are building in place.
25215 ac_srcdir=.
25216 if test -z "$ac_top_builddir"; then
25217 ac_top_srcdir=.
25218 else
25219 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25220 fi ;;
25221 [\\/]* | ?:[\\/]* ) # Absolute path.
25222 ac_srcdir=$srcdir$ac_dir_suffix;
25223 ac_top_srcdir=$srcdir ;;
25224 *) # Relative path.
25225 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25226 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25227esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025228
25229# Do not use `cd foo && pwd` to compute absolute paths, because
25230# the directories may not exist.
25231case `pwd` in
25232.) ac_abs_builddir="$ac_dest_dir";;
25233*)
25234 case "$ac_dest_dir" in
25235 .) ac_abs_builddir=`pwd`;;
25236 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25237 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25238 esac;;
25239esac
25240case $ac_abs_builddir in
25241.) ac_abs_top_builddir=${ac_top_builddir}.;;
25242*)
25243 case ${ac_top_builddir}. in
25244 .) ac_abs_top_builddir=$ac_abs_builddir;;
25245 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25246 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25247 esac;;
25248esac
25249case $ac_abs_builddir in
25250.) ac_abs_srcdir=$ac_srcdir;;
25251*)
25252 case $ac_srcdir in
25253 .) ac_abs_srcdir=$ac_abs_builddir;;
25254 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25255 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25256 esac;;
25257esac
25258case $ac_abs_builddir in
25259.) ac_abs_top_srcdir=$ac_top_srcdir;;
25260*)
25261 case $ac_top_srcdir in
25262 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25263 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25264 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25265 esac;;
25266esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000025267
25268
25269 case $srcdir in
25270 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25271 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25272 esac
25273
25274 # Try a symlink, then a hard link, then a copy.
25275 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25276 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25277 cp -p $srcdir/$ac_source $ac_dest ||
25278 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25279echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25280 { (exit 1); exit 1; }; }
25281done
25282_ACEOF
25283cat >>$CONFIG_STATUS <<\_ACEOF
25284
25285#
John Criswellc764fbc2003-09-06 15:17:13 +000025286# CONFIG_COMMANDS section.
25287#
25288for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25289 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25290 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25291 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25292$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025293 X"$ac_dest" : 'X\(//\)[^/]' \| \
25294 X"$ac_dest" : 'X\(//\)$' \| \
25295 X"$ac_dest" : 'X\(/\)' \| \
25296 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000025297echo X"$ac_dest" |
25298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25299 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25300 /^X\(\/\/\)$/{ s//\1/; q; }
25301 /^X\(\/\).*/{ s//\1/; q; }
25302 s/.*/./; q'`
Reid Spencer2706f8c2004-09-19 23:53:36 +000025303 { if $as_mkdir_p; then
25304 mkdir -p "$ac_dir"
25305 else
25306 as_dir="$ac_dir"
25307 as_dirs=
25308 while test ! -d "$as_dir"; do
25309 as_dirs="$as_dir $as_dirs"
25310 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25311$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25312 X"$as_dir" : 'X\(//\)[^/]' \| \
25313 X"$as_dir" : 'X\(//\)$' \| \
25314 X"$as_dir" : 'X\(/\)' \| \
25315 . : '\(.\)' 2>/dev/null ||
25316echo X"$as_dir" |
25317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25318 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25319 /^X\(\/\/\)$/{ s//\1/; q; }
25320 /^X\(\/\).*/{ s//\1/; q; }
25321 s/.*/./; q'`
25322 done
25323 test ! -n "$as_dirs" || mkdir $as_dirs
25324 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25325echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25326 { (exit 1); exit 1; }; }; }
25327
John Criswellc764fbc2003-09-06 15:17:13 +000025328 ac_builddir=.
25329
25330if test "$ac_dir" != .; then
25331 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25332 # A "../" for each directory in $ac_dir_suffix.
25333 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25334else
25335 ac_dir_suffix= ac_top_builddir=
25336fi
25337
25338case $srcdir in
25339 .) # No --srcdir option. We are building in place.
25340 ac_srcdir=.
25341 if test -z "$ac_top_builddir"; then
25342 ac_top_srcdir=.
25343 else
25344 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25345 fi ;;
25346 [\\/]* | ?:[\\/]* ) # Absolute path.
25347 ac_srcdir=$srcdir$ac_dir_suffix;
25348 ac_top_srcdir=$srcdir ;;
25349 *) # Relative path.
25350 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25351 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25352esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025353
25354# Do not use `cd foo && pwd` to compute absolute paths, because
25355# the directories may not exist.
25356case `pwd` in
25357.) ac_abs_builddir="$ac_dir";;
25358*)
25359 case "$ac_dir" in
25360 .) ac_abs_builddir=`pwd`;;
25361 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25362 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25363 esac;;
25364esac
25365case $ac_abs_builddir in
25366.) ac_abs_top_builddir=${ac_top_builddir}.;;
25367*)
25368 case ${ac_top_builddir}. in
25369 .) ac_abs_top_builddir=$ac_abs_builddir;;
25370 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25371 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25372 esac;;
25373esac
25374case $ac_abs_builddir in
25375.) ac_abs_srcdir=$ac_srcdir;;
25376*)
25377 case $ac_srcdir in
25378 .) ac_abs_srcdir=$ac_abs_builddir;;
25379 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25380 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25381 esac;;
25382esac
25383case $ac_abs_builddir in
25384.) ac_abs_top_srcdir=$ac_top_srcdir;;
25385*)
25386 case $ac_top_srcdir in
25387 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25388 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25389 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25390 esac;;
25391esac
John Criswellc764fbc2003-09-06 15:17:13 +000025392
25393
25394 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25395echo "$as_me: executing $ac_dest commands" >&6;}
25396 case $ac_dest in
25397 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25398 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025399 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025400 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025401 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025402 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25403 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000025404 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25405 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 +000025406 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025407 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025408 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025409 esac
25410done
25411_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025412
25413cat >>$CONFIG_STATUS <<\_ACEOF
25414
25415{ (exit 0); exit 0; }
25416_ACEOF
25417chmod +x $CONFIG_STATUS
25418ac_clean_files=$ac_clean_files_save
25419
25420
25421# configure is writing to config.log, and then calls config.status.
25422# config.status does its own redirection, appending to config.log.
25423# Unfortunately, on DOS this fails, as config.log is still kept open
25424# by configure, so config.status won't be able to write to it; its
25425# output is simply discarded. So we exec the FD to /dev/null,
25426# effectively closing config.log, so it can be properly (re)opened and
25427# appended to by config.status. When coming back to configure, we
25428# need to make the FD available again.
25429if test "$no_create" != yes; then
25430 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000025431 ac_config_status_args=
25432 test "$silent" = yes &&
25433 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000025434 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000025435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000025436 exec 5>>config.log
25437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25438 # would make configure fail if this is the last instruction.
25439 $ac_cs_success || { (exit 1); exit 1; }
25440fi
25441
John Criswell12399a12003-09-30 15:55:44 +000025442#
25443# CONFIG_SUBDIRS section.
25444#
25445if test "$no_recursion" != yes; then
25446
25447 # Remove --cache-file and --srcdir arguments so they do not pile up.
25448 ac_sub_configure_args=
25449 ac_prev=
25450 for ac_arg in $ac_configure_args; do
25451 if test -n "$ac_prev"; then
25452 ac_prev=
25453 continue
25454 fi
25455 case $ac_arg in
25456 -cache-file | --cache-file | --cache-fil | --cache-fi \
25457 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25458 ac_prev=cache_file ;;
25459 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25460 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25461 | --c=*)
25462 ;;
25463 --config-cache | -C)
25464 ;;
25465 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25466 ac_prev=srcdir ;;
25467 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25468 ;;
25469 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25470 ac_prev=prefix ;;
25471 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25472 ;;
25473 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25474 esac
25475 done
25476
25477 # Always prepend --prefix to ensure using the same prefix
25478 # in subdir configurations.
25479 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25480
25481 ac_popdir=`pwd`
25482 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25483
25484 # Do not complain, so a configure script can configure whichever
25485 # parts of a large source tree are present.
25486 test -d $srcdir/$ac_dir || continue
25487
25488 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25489echo "$as_me: configuring in $ac_dir" >&6;}
25490 { if $as_mkdir_p; then
25491 mkdir -p "$ac_dir"
25492 else
25493 as_dir="$ac_dir"
25494 as_dirs=
25495 while test ! -d "$as_dir"; do
25496 as_dirs="$as_dir $as_dirs"
25497 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25498$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025499 X"$as_dir" : 'X\(//\)[^/]' \| \
25500 X"$as_dir" : 'X\(//\)$' \| \
25501 X"$as_dir" : 'X\(/\)' \| \
25502 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000025503echo X"$as_dir" |
25504 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25505 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25506 /^X\(\/\/\)$/{ s//\1/; q; }
25507 /^X\(\/\).*/{ s//\1/; q; }
25508 s/.*/./; q'`
25509 done
25510 test ! -n "$as_dirs" || mkdir $as_dirs
25511 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25512echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25513 { (exit 1); exit 1; }; }; }
25514
25515 ac_builddir=.
25516
25517if test "$ac_dir" != .; then
25518 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25519 # A "../" for each directory in $ac_dir_suffix.
25520 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25521else
25522 ac_dir_suffix= ac_top_builddir=
25523fi
25524
25525case $srcdir in
25526 .) # No --srcdir option. We are building in place.
25527 ac_srcdir=.
25528 if test -z "$ac_top_builddir"; then
25529 ac_top_srcdir=.
25530 else
25531 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25532 fi ;;
25533 [\\/]* | ?:[\\/]* ) # Absolute path.
25534 ac_srcdir=$srcdir$ac_dir_suffix;
25535 ac_top_srcdir=$srcdir ;;
25536 *) # Relative path.
25537 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25538 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25539esac
Reid Spencer2706f8c2004-09-19 23:53:36 +000025540
25541# Do not use `cd foo && pwd` to compute absolute paths, because
25542# the directories may not exist.
25543case `pwd` in
25544.) ac_abs_builddir="$ac_dir";;
25545*)
25546 case "$ac_dir" in
25547 .) ac_abs_builddir=`pwd`;;
25548 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25549 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25550 esac;;
25551esac
25552case $ac_abs_builddir in
25553.) ac_abs_top_builddir=${ac_top_builddir}.;;
25554*)
25555 case ${ac_top_builddir}. in
25556 .) ac_abs_top_builddir=$ac_abs_builddir;;
25557 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25558 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25559 esac;;
25560esac
25561case $ac_abs_builddir in
25562.) ac_abs_srcdir=$ac_srcdir;;
25563*)
25564 case $ac_srcdir in
25565 .) ac_abs_srcdir=$ac_abs_builddir;;
25566 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25567 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25568 esac;;
25569esac
25570case $ac_abs_builddir in
25571.) ac_abs_top_srcdir=$ac_top_srcdir;;
25572*)
25573 case $ac_top_srcdir in
25574 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25575 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25576 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25577 esac;;
25578esac
John Criswell12399a12003-09-30 15:55:44 +000025579
25580
25581 cd $ac_dir
25582
25583 # Check for guested configure; otherwise get Cygnus style configure.
25584 if test -f $ac_srcdir/configure.gnu; then
25585 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25586 elif test -f $ac_srcdir/configure; then
25587 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25588 elif test -f $ac_srcdir/configure.in; then
25589 ac_sub_configure=$ac_configure
25590 else
25591 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25592echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25593 ac_sub_configure=
25594 fi
25595
25596 # The recursion is here.
25597 if test -n "$ac_sub_configure"; then
25598 # Make the cache file name correct relative to the subdirectory.
25599 case $cache_file in
25600 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25601 *) # Relative path.
Reid Spencer2706f8c2004-09-19 23:53:36 +000025602 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000025603 esac
25604
25605 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25606echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25607 # The eval makes quoting arguments work.
25608 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2706f8c2004-09-19 23:53:36 +000025609 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25610 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000025611echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25612 { (exit 1); exit 1; }; }
25613 fi
25614
25615 cd $ac_popdir
25616 done
25617fi
25618
Brian Gaekef3b24102003-11-16 18:38:14 +000025619
25620if test $llvmgccwarn = yes
25621then
25622 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25623echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25624 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25625echo "$as_me: WARNING: ***** appear to be working." >&2;}
25626 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25627echo "$as_me: WARNING: ***** " >&2;}
25628 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25629echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25630 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25631echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25632 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25633echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25634fi
Brian Gaeke554831c2004-01-21 19:39:29 +000025635