blob: d2d2859f1b83e57936954114a5aac9250c841d61 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +000024DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000025
26# Support unset when possible.
Reid Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
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
396tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
398tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399
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 Spencer4d68ba22004-09-07 16:35:45 +0000430ac_subdirs_all="$ac_subdirs_all projects/sample"
431ac_subdirs_all="$ac_subdirs_all projects/Stacker"
432ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
433ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
434ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
437ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
438ac_subdirs_all="$ac_subdirs_all ${i}"
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
476ac_unique_file=""Makefile.config.in""
Reid Spencer4d68ba22004-09-07 16:35:45 +0000477ac_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 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 INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED JIT LLVMCC1 LLVMCC1PLUS PAPIDIR 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 +0000478ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000479
480# Initialize some variables set by options.
481ac_init_help=
482ac_init_version=false
483# The variables have the same names as the options, with
484# dashes changed to underlines.
485cache_file=/dev/null
486exec_prefix=NONE
487no_create=
488no_recursion=
489prefix=NONE
490program_prefix=NONE
491program_suffix=NONE
492program_transform_name=s,x,x,
493silent=
494site=
495srcdir=
496verbose=
497x_includes=NONE
498x_libraries=NONE
499
500# Installation directory options.
501# These are left unexpanded so users can "make install exec_prefix=/foo"
502# and all the variables that are supposed to be based on exec_prefix
503# by default will actually change.
504# Use braces instead of parens because sh, perl, etc. also accept them.
505bindir='${exec_prefix}/bin'
506sbindir='${exec_prefix}/sbin'
507libexecdir='${exec_prefix}/libexec'
508datadir='${prefix}/share'
509sysconfdir='${prefix}/etc'
510sharedstatedir='${prefix}/com'
511localstatedir='${prefix}/var'
512libdir='${exec_prefix}/lib'
513includedir='${prefix}/include'
514oldincludedir='/usr/include'
515infodir='${prefix}/info'
516mandir='${prefix}/man'
517
518ac_prev=
519for ac_option
520do
521 # If the previous option needs an argument, assign it.
522 if test -n "$ac_prev"; then
523 eval "$ac_prev=\$ac_option"
524 ac_prev=
525 continue
526 fi
527
528 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
529
530 # Accept the important Cygnus configure options, so we can diagnose typos.
531
532 case $ac_option in
533
534 -bindir | --bindir | --bindi | --bind | --bin | --bi)
535 ac_prev=bindir ;;
536 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
537 bindir=$ac_optarg ;;
538
539 -build | --build | --buil | --bui | --bu)
540 ac_prev=build_alias ;;
541 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
542 build_alias=$ac_optarg ;;
543
544 -cache-file | --cache-file | --cache-fil | --cache-fi \
545 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
546 ac_prev=cache_file ;;
547 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
548 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
549 cache_file=$ac_optarg ;;
550
551 --config-cache | -C)
552 cache_file=config.cache ;;
553
554 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
555 ac_prev=datadir ;;
556 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
557 | --da=*)
558 datadir=$ac_optarg ;;
559
560 -disable-* | --disable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 eval "enable_$ac_feature=no" ;;
568
569 -enable-* | --enable-*)
570 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
571 # Reject names that are not valid shell variable names.
572 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
573 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
574 { (exit 1); exit 1; }; }
575 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
576 case $ac_option in
577 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
578 *) ac_optarg=yes ;;
579 esac
580 eval "enable_$ac_feature='$ac_optarg'" ;;
581
582 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
583 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
584 | --exec | --exe | --ex)
585 ac_prev=exec_prefix ;;
586 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
587 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
588 | --exec=* | --exe=* | --ex=*)
589 exec_prefix=$ac_optarg ;;
590
591 -gas | --gas | --ga | --g)
592 # Obsolete; use --with-gas.
593 with_gas=yes ;;
594
595 -help | --help | --hel | --he | -h)
596 ac_init_help=long ;;
597 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
598 ac_init_help=recursive ;;
599 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
600 ac_init_help=short ;;
601
602 -host | --host | --hos | --ho)
603 ac_prev=host_alias ;;
604 -host=* | --host=* | --hos=* | --ho=*)
605 host_alias=$ac_optarg ;;
606
607 -includedir | --includedir | --includedi | --included | --include \
608 | --includ | --inclu | --incl | --inc)
609 ac_prev=includedir ;;
610 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
611 | --includ=* | --inclu=* | --incl=* | --inc=*)
612 includedir=$ac_optarg ;;
613
614 -infodir | --infodir | --infodi | --infod | --info | --inf)
615 ac_prev=infodir ;;
616 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
617 infodir=$ac_optarg ;;
618
619 -libdir | --libdir | --libdi | --libd)
620 ac_prev=libdir ;;
621 -libdir=* | --libdir=* | --libdi=* | --libd=*)
622 libdir=$ac_optarg ;;
623
624 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
625 | --libexe | --libex | --libe)
626 ac_prev=libexecdir ;;
627 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
628 | --libexe=* | --libex=* | --libe=*)
629 libexecdir=$ac_optarg ;;
630
631 -localstatedir | --localstatedir | --localstatedi | --localstated \
632 | --localstate | --localstat | --localsta | --localst \
633 | --locals | --local | --loca | --loc | --lo)
634 ac_prev=localstatedir ;;
635 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
636 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
637 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
638 localstatedir=$ac_optarg ;;
639
640 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
641 ac_prev=mandir ;;
642 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
643 mandir=$ac_optarg ;;
644
645 -nfp | --nfp | --nf)
646 # Obsolete; use --without-fp.
647 with_fp=no ;;
648
649 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
650 | --no-cr | --no-c | -n)
651 no_create=yes ;;
652
653 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
654 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
655 no_recursion=yes ;;
656
657 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
658 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
659 | --oldin | --oldi | --old | --ol | --o)
660 ac_prev=oldincludedir ;;
661 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
662 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
663 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
664 oldincludedir=$ac_optarg ;;
665
666 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
667 ac_prev=prefix ;;
668 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
669 prefix=$ac_optarg ;;
670
671 -program-prefix | --program-prefix | --program-prefi | --program-pref \
672 | --program-pre | --program-pr | --program-p)
673 ac_prev=program_prefix ;;
674 -program-prefix=* | --program-prefix=* | --program-prefi=* \
675 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
676 program_prefix=$ac_optarg ;;
677
678 -program-suffix | --program-suffix | --program-suffi | --program-suff \
679 | --program-suf | --program-su | --program-s)
680 ac_prev=program_suffix ;;
681 -program-suffix=* | --program-suffix=* | --program-suffi=* \
682 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
683 program_suffix=$ac_optarg ;;
684
685 -program-transform-name | --program-transform-name \
686 | --program-transform-nam | --program-transform-na \
687 | --program-transform-n | --program-transform- \
688 | --program-transform | --program-transfor \
689 | --program-transfo | --program-transf \
690 | --program-trans | --program-tran \
691 | --progr-tra | --program-tr | --program-t)
692 ac_prev=program_transform_name ;;
693 -program-transform-name=* | --program-transform-name=* \
694 | --program-transform-nam=* | --program-transform-na=* \
695 | --program-transform-n=* | --program-transform-=* \
696 | --program-transform=* | --program-transfor=* \
697 | --program-transfo=* | --program-transf=* \
698 | --program-trans=* | --program-tran=* \
699 | --progr-tra=* | --program-tr=* | --program-t=*)
700 program_transform_name=$ac_optarg ;;
701
702 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
703 | -silent | --silent | --silen | --sile | --sil)
704 silent=yes ;;
705
706 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
707 ac_prev=sbindir ;;
708 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
709 | --sbi=* | --sb=*)
710 sbindir=$ac_optarg ;;
711
712 -sharedstatedir | --sharedstatedir | --sharedstatedi \
713 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
714 | --sharedst | --shareds | --shared | --share | --shar \
715 | --sha | --sh)
716 ac_prev=sharedstatedir ;;
717 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
718 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
719 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
720 | --sha=* | --sh=*)
721 sharedstatedir=$ac_optarg ;;
722
723 -site | --site | --sit)
724 ac_prev=site ;;
725 -site=* | --site=* | --sit=*)
726 site=$ac_optarg ;;
727
728 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
729 ac_prev=srcdir ;;
730 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
731 srcdir=$ac_optarg ;;
732
733 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
734 | --syscon | --sysco | --sysc | --sys | --sy)
735 ac_prev=sysconfdir ;;
736 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
737 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
738 sysconfdir=$ac_optarg ;;
739
740 -target | --target | --targe | --targ | --tar | --ta | --t)
741 ac_prev=target_alias ;;
742 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
743 target_alias=$ac_optarg ;;
744
745 -v | -verbose | --verbose | --verbos | --verbo | --verb)
746 verbose=yes ;;
747
748 -version | --version | --versio | --versi | --vers | -V)
749 ac_init_version=: ;;
750
751 -with-* | --with-*)
752 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
753 # Reject names that are not valid shell variable names.
754 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
755 { echo "$as_me: error: invalid package name: $ac_package" >&2
756 { (exit 1); exit 1; }; }
757 ac_package=`echo $ac_package| sed 's/-/_/g'`
758 case $ac_option in
759 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
760 *) ac_optarg=yes ;;
761 esac
762 eval "with_$ac_package='$ac_optarg'" ;;
763
764 -without-* | --without-*)
765 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
766 # Reject names that are not valid shell variable names.
767 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
768 { echo "$as_me: error: invalid package name: $ac_package" >&2
769 { (exit 1); exit 1; }; }
770 ac_package=`echo $ac_package | sed 's/-/_/g'`
771 eval "with_$ac_package=no" ;;
772
773 --x)
774 # Obsolete; use --with-x.
775 with_x=yes ;;
776
777 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
778 | --x-incl | --x-inc | --x-in | --x-i)
779 ac_prev=x_includes ;;
780 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
781 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
782 x_includes=$ac_optarg ;;
783
784 -x-libraries | --x-libraries | --x-librarie | --x-librari \
785 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
786 ac_prev=x_libraries ;;
787 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
788 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
789 x_libraries=$ac_optarg ;;
790
791 -*) { echo "$as_me: error: unrecognized option: $ac_option
792Try \`$0 --help' for more information." >&2
793 { (exit 1); exit 1; }; }
794 ;;
795
796 *=*)
797 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
798 # Reject names that are not valid shell variable names.
799 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
800 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
801 { (exit 1); exit 1; }; }
802 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
803 eval "$ac_envvar='$ac_optarg'"
804 export $ac_envvar ;;
805
806 *)
807 # FIXME: should be removed in autoconf 3.0.
808 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
809 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
810 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
811 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
812 ;;
813
814 esac
815done
816
817if test -n "$ac_prev"; then
818 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
819 { echo "$as_me: error: missing argument to $ac_option" >&2
820 { (exit 1); exit 1; }; }
821fi
822
823# Be sure to have absolute paths.
824for ac_var in exec_prefix prefix
825do
826 eval ac_val=$`echo $ac_var`
827 case $ac_val in
828 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
829 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830 { (exit 1); exit 1; }; };;
831 esac
832done
833
834# Be sure to have absolute paths.
835for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer17041682004-09-05 17:48:32 +0000836 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000837do
838 eval ac_val=$`echo $ac_var`
839 case $ac_val in
840 [\\/$]* | ?:[\\/]* ) ;;
841 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
842 { (exit 1); exit 1; }; };;
843 esac
844done
845
846# There might be people who depend on the old broken behavior: `$host'
847# used to hold the argument of --host etc.
848# FIXME: To remove some day.
849build=$build_alias
850host=$host_alias
851target=$target_alias
852
853# FIXME: To remove some day.
854if test "x$host_alias" != x; then
855 if test "x$build_alias" = x; then
856 cross_compiling=maybe
857 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
858 If a cross compiler is detected then cross compile mode will be used." >&2
859 elif test "x$build_alias" != "x$host_alias"; then
860 cross_compiling=yes
861 fi
862fi
863
864ac_tool_prefix=
865test -n "$host_alias" && ac_tool_prefix=$host_alias-
866
867test "$silent" = yes && exec 6>/dev/null
868
869
870# Find the source files, if location was not specified.
871if test -z "$srcdir"; then
872 ac_srcdir_defaulted=yes
873 # Try the directory containing this script, then its parent.
874 ac_confdir=`(dirname "$0") 2>/dev/null ||
875$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +0000876 X"$0" : 'X\(//\)[^/]' \| \
877 X"$0" : 'X\(//\)$' \| \
878 X"$0" : 'X\(/\)' \| \
879 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000880echo X"$0" |
881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
883 /^X\(\/\/\)$/{ s//\1/; q; }
884 /^X\(\/\).*/{ s//\1/; q; }
885 s/.*/./; q'`
886 srcdir=$ac_confdir
887 if test ! -r $srcdir/$ac_unique_file; then
888 srcdir=..
889 fi
890else
891 ac_srcdir_defaulted=no
892fi
893if test ! -r $srcdir/$ac_unique_file; then
894 if test "$ac_srcdir_defaulted" = yes; then
895 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
896 { (exit 1); exit 1; }; }
897 else
898 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
899 { (exit 1); exit 1; }; }
900 fi
901fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000902(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
903 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
904 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000905srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
906ac_env_build_alias_set=${build_alias+set}
907ac_env_build_alias_value=$build_alias
908ac_cv_env_build_alias_set=${build_alias+set}
909ac_cv_env_build_alias_value=$build_alias
910ac_env_host_alias_set=${host_alias+set}
911ac_env_host_alias_value=$host_alias
912ac_cv_env_host_alias_set=${host_alias+set}
913ac_cv_env_host_alias_value=$host_alias
914ac_env_target_alias_set=${target_alias+set}
915ac_env_target_alias_value=$target_alias
916ac_cv_env_target_alias_set=${target_alias+set}
917ac_cv_env_target_alias_value=$target_alias
918ac_env_CXX_set=${CXX+set}
919ac_env_CXX_value=$CXX
920ac_cv_env_CXX_set=${CXX+set}
921ac_cv_env_CXX_value=$CXX
922ac_env_CXXFLAGS_set=${CXXFLAGS+set}
923ac_env_CXXFLAGS_value=$CXXFLAGS
924ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
925ac_cv_env_CXXFLAGS_value=$CXXFLAGS
926ac_env_LDFLAGS_set=${LDFLAGS+set}
927ac_env_LDFLAGS_value=$LDFLAGS
928ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
929ac_cv_env_LDFLAGS_value=$LDFLAGS
930ac_env_CPPFLAGS_set=${CPPFLAGS+set}
931ac_env_CPPFLAGS_value=$CPPFLAGS
932ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_cv_env_CPPFLAGS_value=$CPPFLAGS
934ac_env_CC_set=${CC+set}
935ac_env_CC_value=$CC
936ac_cv_env_CC_set=${CC+set}
937ac_cv_env_CC_value=$CC
938ac_env_CFLAGS_set=${CFLAGS+set}
939ac_env_CFLAGS_value=$CFLAGS
940ac_cv_env_CFLAGS_set=${CFLAGS+set}
941ac_cv_env_CFLAGS_value=$CFLAGS
942ac_env_CPP_set=${CPP+set}
943ac_env_CPP_value=$CPP
944ac_cv_env_CPP_set=${CPP+set}
945ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000946ac_env_CXXCPP_set=${CXXCPP+set}
947ac_env_CXXCPP_value=$CXXCPP
948ac_cv_env_CXXCPP_set=${CXXCPP+set}
949ac_cv_env_CXXCPP_value=$CXXCPP
950ac_env_F77_set=${F77+set}
951ac_env_F77_value=$F77
952ac_cv_env_F77_set=${F77+set}
953ac_cv_env_F77_value=$F77
954ac_env_FFLAGS_set=${FFLAGS+set}
955ac_env_FFLAGS_value=$FFLAGS
956ac_cv_env_FFLAGS_set=${FFLAGS+set}
957ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000958
959#
960# Report the --help message.
961#
962if test "$ac_init_help" = "long"; then
963 # Omit some internal or obsolete options to make the list less imposing.
964 # This message is too long to be a string in the A/UX 3.1 sh.
965 cat <<_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +0000966\`configure' configures LLVM 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000967
968Usage: $0 [OPTION]... [VAR=VALUE]...
969
970To assign environment variables (e.g., CC, CFLAGS...), specify them as
971VAR=VALUE. See below for descriptions of some of the useful variables.
972
973Defaults for the options are specified in brackets.
974
975Configuration:
976 -h, --help display this help and exit
977 --help=short display options specific to this package
978 --help=recursive display the short help of all the included packages
979 -V, --version display version information and exit
980 -q, --quiet, --silent do not print \`checking...' messages
981 --cache-file=FILE cache test results in FILE [disabled]
982 -C, --config-cache alias for \`--cache-file=config.cache'
983 -n, --no-create do not create output files
984 --srcdir=DIR find the sources in DIR [configure dir or \`..']
985
986_ACEOF
987
988 cat <<_ACEOF
989Installation directories:
990 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer17041682004-09-05 17:48:32 +0000991 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000992 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer17041682004-09-05 17:48:32 +0000993 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000994
995By default, \`make install' will install all the files in
996\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
997an installation prefix other than \`$ac_default_prefix' using \`--prefix',
998for instance \`--prefix=\$HOME'.
999
1000For better control, use the options below.
1001
1002Fine tuning of the installation directories:
1003 --bindir=DIR user executables [EPREFIX/bin]
1004 --sbindir=DIR system admin executables [EPREFIX/sbin]
1005 --libexecdir=DIR program executables [EPREFIX/libexec]
1006 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1007 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1008 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1009 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1010 --libdir=DIR object code libraries [EPREFIX/lib]
1011 --includedir=DIR C header files [PREFIX/include]
1012 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1013 --infodir=DIR info documentation [PREFIX/info]
1014 --mandir=DIR man documentation [PREFIX/man]
1015_ACEOF
1016
1017 cat <<\_ACEOF
1018
1019System types:
1020 --build=BUILD configure for building on BUILD [guessed]
1021 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1022 --target=TARGET configure for building compilers for TARGET [HOST]
1023_ACEOF
1024fi
1025
1026if test -n "$ac_init_help"; then
1027 case $ac_init_help in
Reid Spencere9de0912004-08-20 09:03:57 +00001028 short | recursive ) echo "Configuration of LLVM 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001029 esac
1030 cat <<\_ACEOF
1031
1032Optional Features:
1033 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1034 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001035 --enable-shared[=PKGS]
1036 build shared libraries [default=yes]
1037 --enable-static[=PKGS]
1038 build static libraries [default=yes]
1039 --enable-fast-install[=PKGS]
1040 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001041 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001042 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswellc78022e2003-07-29 19:11:58 +00001043 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001044
1045Optional Packages:
1046 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1047 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001048 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1049 --with-pic try to use only PIC/non-PIC objects [default=use
1050 both]
1051 --with-tags[=TAGS]
1052 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001053 --with-llvmgccdir Location of LLVM GCC front-end
John Criswell7a73b802003-06-30 21:59:07 +00001054 --with-papi Location of PAPI
John Criswell7a73b802003-06-30 21:59:07 +00001055
1056Some influential environment variables:
1057 CXX C++ compiler command
1058 CXXFLAGS C++ compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CC C compiler command
1064 CFLAGS C compiler flags
1065 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001069
1070Use these variables to override the choices made by `configure' or to help
1071it to find libraries and programs with nonstandard names/locations.
1072
1073Report bugs to <llvmbugs@cs.uiuc.edu>.
1074_ACEOF
1075fi
1076
1077if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1079 ac_popdir=`pwd`
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1082 ac_builddir=.
1083
1084if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088else
1089 ac_dir_suffix= ac_top_builddir=
1090fi
1091
1092case $srcdir in
1093 .) # No --srcdir option. We are building in place.
1094 ac_srcdir=.
1095 if test -z "$ac_top_builddir"; then
1096 ac_top_srcdir=.
1097 else
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 fi ;;
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1103 *) # Relative path.
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1106esac
Reid Spencer17041682004-09-05 17:48:32 +00001107
1108# Do not use `cd foo && pwd` to compute absolute paths, because
1109# the directories may not exist.
1110case `pwd` in
1111.) ac_abs_builddir="$ac_dir";;
1112*)
1113 case "$ac_dir" in
1114 .) ac_abs_builddir=`pwd`;;
1115 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1116 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1117 esac;;
1118esac
1119case $ac_abs_builddir in
1120.) ac_abs_top_builddir=${ac_top_builddir}.;;
1121*)
1122 case ${ac_top_builddir}. in
1123 .) ac_abs_top_builddir=$ac_abs_builddir;;
1124 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1126 esac;;
1127esac
1128case $ac_abs_builddir in
1129.) ac_abs_srcdir=$ac_srcdir;;
1130*)
1131 case $ac_srcdir in
1132 .) ac_abs_srcdir=$ac_abs_builddir;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1134 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1135 esac;;
1136esac
1137case $ac_abs_builddir in
1138.) ac_abs_top_srcdir=$ac_top_srcdir;;
1139*)
1140 case $ac_top_srcdir in
1141 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1144 esac;;
1145esac
John Criswell7a73b802003-06-30 21:59:07 +00001146
1147 cd $ac_dir
1148 # Check for guested configure; otherwise get Cygnus style configure.
1149 if test -f $ac_srcdir/configure.gnu; then
1150 echo
1151 $SHELL $ac_srcdir/configure.gnu --help=recursive
1152 elif test -f $ac_srcdir/configure; then
1153 echo
1154 $SHELL $ac_srcdir/configure --help=recursive
1155 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer17041682004-09-05 17:48:32 +00001156 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001157 echo
1158 $ac_configure --help
1159 else
1160 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1161 fi
1162 cd $ac_popdir
1163 done
1164fi
1165
1166test -n "$ac_init_help" && exit 0
1167if $ac_init_version; then
1168 cat <<\_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +00001169LLVM configure 1.4
Reid Spencer17041682004-09-05 17:48:32 +00001170generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001171
Reid Spencer17041682004-09-05 17:48:32 +00001172Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001173This configure script is free software; the Free Software Foundation
1174gives unlimited permission to copy, distribute and modify it.
1175_ACEOF
1176 exit 0
1177fi
1178exec 5>config.log
1179cat >&5 <<_ACEOF
1180This file contains any messages produced by compilers while
1181running configure, to aid debugging if configure makes a mistake.
1182
Reid Spencere9de0912004-08-20 09:03:57 +00001183It was created by LLVM $as_me 1.4, which was
Reid Spencer17041682004-09-05 17:48:32 +00001184generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001185
1186 $ $0 $@
1187
1188_ACEOF
1189{
1190cat <<_ASUNAME
1191## --------- ##
1192## Platform. ##
1193## --------- ##
1194
1195hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1196uname -m = `(uname -m) 2>/dev/null || echo unknown`
1197uname -r = `(uname -r) 2>/dev/null || echo unknown`
1198uname -s = `(uname -s) 2>/dev/null || echo unknown`
1199uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200
1201/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1202/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203
1204/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1205/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1206/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1207hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1208/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1209/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1210/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1211
1212_ASUNAME
1213
1214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215for as_dir in $PATH
1216do
1217 IFS=$as_save_IFS
1218 test -z "$as_dir" && as_dir=.
1219 echo "PATH: $as_dir"
1220done
1221
1222} >&5
1223
1224cat >&5 <<_ACEOF
1225
1226
1227## ----------- ##
1228## Core tests. ##
1229## ----------- ##
1230
1231_ACEOF
1232
1233
1234# Keep a trace of the command line.
1235# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001236# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001237# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001238# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001239ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001240ac_configure_args0=
1241ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001242ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001243ac_must_keep_next=false
1244for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001245do
John Criswell0c38eaf2003-09-10 15:17:25 +00001246 for ac_arg
1247 do
1248 case $ac_arg in
1249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1252 continue ;;
1253 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255 esac
1256 case $ac_pass in
1257 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258 2)
1259 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1260 if test $ac_must_keep_next = true; then
Reid Spencer17041682004-09-05 17:48:32 +00001261 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001262 else
Reid Spencer17041682004-09-05 17:48:32 +00001263 case $ac_arg in
1264 *=* | --config-cache | -C | -disable-* | --disable-* \
1265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1267 | -with-* | --with-* | -without-* | --without-* | --x)
1268 case "$ac_configure_args0 " in
1269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270 esac
1271 ;;
1272 -* ) ac_must_keep_next=true ;;
1273 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001274 fi
1275 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1276 # Get rid of the leading space.
1277 ac_sep=" "
1278 ;;
1279 esac
1280 done
John Criswell7a73b802003-06-30 21:59:07 +00001281done
John Criswell0c38eaf2003-09-10 15:17:25 +00001282$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1283$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 +00001284
1285# When interrupted or exit'd, cleanup temporary files, and complete
1286# config.log. We remove comments because anyway the quotes in there
1287# would cause problems or look ugly.
1288# WARNING: Be sure not to use single quotes in there, as some shells,
1289# such as our DU 5.0 friend, will then `close' the trap.
1290trap 'exit_status=$?
1291 # Save into config.log some information that might help in debugging.
1292 {
1293 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001294
John Criswell7a73b802003-06-30 21:59:07 +00001295 cat <<\_ASBOX
1296## ---------------- ##
1297## Cache variables. ##
1298## ---------------- ##
1299_ASBOX
1300 echo
1301 # The following way of writing the cache mishandles newlines in values,
1302{
1303 (set) 2>&1 |
1304 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305 *ac_space=\ *)
1306 sed -n \
Reid Spencer17041682004-09-05 17:48:32 +00001307 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001309 ;;
1310 *)
1311 sed -n \
Reid Spencer17041682004-09-05 17:48:32 +00001312 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001313 ;;
1314 esac;
1315}
1316 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001317
1318 cat <<\_ASBOX
1319## ----------------- ##
1320## Output variables. ##
1321## ----------------- ##
1322_ASBOX
1323 echo
1324 for ac_var in $ac_subst_vars
1325 do
1326 eval ac_val=$`echo $ac_var`
1327 echo "$ac_var='"'"'$ac_val'"'"'"
1328 done | sort
1329 echo
1330
1331 if test -n "$ac_subst_files"; then
1332 cat <<\_ASBOX
1333## ------------- ##
1334## Output files. ##
1335## ------------- ##
1336_ASBOX
1337 echo
1338 for ac_var in $ac_subst_files
1339 do
1340 eval ac_val=$`echo $ac_var`
Reid Spencer17041682004-09-05 17:48:32 +00001341 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001342 done | sort
1343 echo
1344 fi
1345
John Criswell7a73b802003-06-30 21:59:07 +00001346 if test -s confdefs.h; then
1347 cat <<\_ASBOX
1348## ----------- ##
1349## confdefs.h. ##
1350## ----------- ##
1351_ASBOX
1352 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001353 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001354 echo
1355 fi
1356 test "$ac_signal" != 0 &&
1357 echo "$as_me: caught signal $ac_signal"
1358 echo "$as_me: exit $exit_status"
1359 } >&5
Reid Spencer17041682004-09-05 17:48:32 +00001360 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001361 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362 exit $exit_status
1363 ' 0
1364for ac_signal in 1 2 13 15; do
1365 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366done
1367ac_signal=0
1368
1369# confdefs.h avoids OS command line length limits that DEFS can exceed.
1370rm -rf conftest* confdefs.h
1371# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372echo >confdefs.h
1373
1374# Predefined preprocessor variables.
1375
1376cat >>confdefs.h <<_ACEOF
1377#define PACKAGE_NAME "$PACKAGE_NAME"
1378_ACEOF
1379
1380
1381cat >>confdefs.h <<_ACEOF
1382#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383_ACEOF
1384
1385
1386cat >>confdefs.h <<_ACEOF
1387#define PACKAGE_VERSION "$PACKAGE_VERSION"
1388_ACEOF
1389
1390
1391cat >>confdefs.h <<_ACEOF
1392#define PACKAGE_STRING "$PACKAGE_STRING"
1393_ACEOF
1394
1395
1396cat >>confdefs.h <<_ACEOF
1397#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398_ACEOF
1399
1400
1401# Let the site file select an alternate cache file if it wants to.
1402# Prefer explicitly selected file to automatically selected ones.
1403if test -z "$CONFIG_SITE"; then
1404 if test "x$prefix" != xNONE; then
1405 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406 else
1407 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408 fi
1409fi
1410for ac_site_file in $CONFIG_SITE; do
1411 if test -r "$ac_site_file"; then
1412 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1413echo "$as_me: loading site script $ac_site_file" >&6;}
1414 sed 's/^/| /' "$ac_site_file" >&5
1415 . "$ac_site_file"
1416 fi
1417done
1418
1419if test -r "$cache_file"; then
1420 # Some versions of bash will fail to source /dev/null (special
1421 # files actually), so we avoid doing that.
1422 if test -f "$cache_file"; then
1423 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1424echo "$as_me: loading cache $cache_file" >&6;}
1425 case $cache_file in
1426 [\\/]* | ?:[\\/]* ) . $cache_file;;
1427 *) . ./$cache_file;;
1428 esac
1429 fi
1430else
1431 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1432echo "$as_me: creating cache $cache_file" >&6;}
1433 >$cache_file
1434fi
1435
1436# Check that the precious variables saved in the cache have kept the same
1437# value.
1438ac_cache_corrupted=false
1439for ac_var in `(set) 2>&1 |
Reid Spencer17041682004-09-05 17:48:32 +00001440 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001441 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1442 eval ac_new_set=\$ac_env_${ac_var}_set
1443 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1444 eval ac_new_val="\$ac_env_${ac_var}_value"
1445 case $ac_old_set,$ac_new_set in
1446 set,)
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1448echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1450 ,set)
1451 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1452echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1453 ac_cache_corrupted=: ;;
1454 ,);;
1455 *)
1456 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer17041682004-09-05 17:48:32 +00001457 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001458echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +00001459 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001460echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +00001461 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001462echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +00001463 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001464 fi;;
1465 esac
1466 # Pass precious variables to config.status.
1467 if test "$ac_new_set" = set; then
1468 case $ac_new_val in
1469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1470 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1471 *) ac_arg=$ac_var=$ac_new_val ;;
1472 esac
1473 case " $ac_configure_args " in
1474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1475 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1476 esac
1477 fi
1478done
1479if $ac_cache_corrupted; then
1480 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1481echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1482 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1483echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1484 { (exit 1); exit 1; }; }
1485fi
1486
1487ac_ext=c
1488ac_cpp='$CPP $CPPFLAGS'
1489ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
1517
1518
John Criswell0c38eaf2003-09-10 15:17:25 +00001519
John Criswell7a73b802003-06-30 21:59:07 +00001520ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001521for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001522 if test -f $ac_dir/install-sh; then
1523 ac_aux_dir=$ac_dir
1524 ac_install_sh="$ac_aux_dir/install-sh -c"
1525 break
1526 elif test -f $ac_dir/install.sh; then
1527 ac_aux_dir=$ac_dir
1528 ac_install_sh="$ac_aux_dir/install.sh -c"
1529 break
1530 elif test -f $ac_dir/shtool; then
1531 ac_aux_dir=$ac_dir
1532 ac_install_sh="$ac_aux_dir/shtool install -c"
1533 break
1534 fi
1535done
1536if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001537 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1538echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001539 { (exit 1); exit 1; }; }
1540fi
1541ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1542ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1543ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1544
John Criswell392aaa32003-07-22 19:18:09 +00001545
John Criswell1b824322003-09-15 17:19:42 +00001546if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001547then
Reid Spencer551ccae2004-09-01 22:55:40 +00001548 if test -f ${srcdir}/include/llvm/Config/config.h
John Criswell1b824322003-09-15 17:19:42 +00001549 then
1550 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001551echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1552 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001553 fi
John Criswell93e1c722003-09-15 17:04:06 +00001554fi
1555
John Criswell33a911a2003-11-25 20:36:46 +00001556for i in `ls ${srcdir}/projects`
1557do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001558 if test -d ${srcdir}/projects/${i} ; then
1559 case ${i} in
1560 "CVS") ;;
1561 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001562
Reid Spencer4d68ba22004-09-07 16:35:45 +00001563subdirs="$subdirs projects/sample"
1564 ;;
1565 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001566
Reid Spencer4d68ba22004-09-07 16:35:45 +00001567subdirs="$subdirs projects/Stacker"
1568 ;;
1569 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001570
Reid Spencer4d68ba22004-09-07 16:35:45 +00001571subdirs="$subdirs projects/llvm-test"
1572 ;;
1573 "llvm-reopt")
1574
1575subdirs="$subdirs projects/llvm-reopt"
1576;;
1577 "llvm-gcc")
1578
1579subdirs="$subdirs projects/llvm-gcc"
1580 ;;
1581 "llvm-java")
1582
1583subdirs="$subdirs projects/llvm-java"
1584 ;;
1585 "llvm-tv")
1586
1587subdirs="$subdirs projects/llvm-tv"
1588 ;;
1589 "llvm-fefw")
1590
1591subdirs="$subdirs projects/llvm-fefw"
1592 ;;
1593 *)
1594
1595subdirs="$subdirs ${i}"
1596 ;;
1597 esac
John Criswell33a911a2003-11-25 20:36:46 +00001598 fi
1599done
John Criswell559a6c12003-09-30 16:31:48 +00001600
Reid Spencer551ccae2004-09-01 22:55:40 +00001601 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001602
John Criswelldc76e322004-07-23 15:40:57 +00001603
Reid Spencer551ccae2004-09-01 22:55:40 +00001604 ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
John Criswelldc76e322004-07-23 15:40:57 +00001605
1606
John Criswell0c38eaf2003-09-10 15:17:25 +00001607 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001608
1609
John Criswell0c38eaf2003-09-10 15:17:25 +00001610 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001611
1612
Reid Spencer5f285392004-08-24 16:32:21 +00001613 ac_config_commands="$ac_config_commands examples/Makefile"
1614
1615
John Criswell0c38eaf2003-09-10 15:17:25 +00001616 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001617
1618
John Criswell0c38eaf2003-09-10 15:17:25 +00001619 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001620
1621
John Criswell0c38eaf2003-09-10 15:17:25 +00001622 ac_config_commands="$ac_config_commands test/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.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001626
1627
John Criswellf424d742003-10-07 21:13:47 +00001628 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1629
1630
1631 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001632
1633
John Criswell0c38eaf2003-09-10 15:17:25 +00001634 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001635
1636
Brian Gaekec45be042003-10-07 06:01:34 +00001637 ac_config_commands="$ac_config_commands utils/Makefile"
1638
1639
John Criswell0c38eaf2003-09-10 15:17:25 +00001640 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001641
1642
John Criswell392aaa32003-07-22 19:18:09 +00001643
John Criswell7a73b802003-06-30 21:59:07 +00001644# Find a good install program. We prefer a C program (faster),
1645# so one script is as good as another. But avoid the broken or
1646# incompatible versions:
1647# SysV /etc/install, /usr/sbin/install
1648# SunOS /usr/etc/install
1649# IRIX /sbin/install
1650# AIX /bin/install
1651# AmigaOS /C/install, which installs bootblocks on floppy discs
1652# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1653# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1654# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Reid Spencer17041682004-09-05 17:48:32 +00001655# OS/2's system install, which has a completely different semantic
John Criswell7a73b802003-06-30 21:59:07 +00001656# ./install, which can be erroneously created by make from ./install.sh.
1657echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1658echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1659if test -z "$INSTALL"; then
1660if test "${ac_cv_path_install+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1662else
1663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1664for as_dir in $PATH
1665do
1666 IFS=$as_save_IFS
1667 test -z "$as_dir" && as_dir=.
1668 # Account for people who put trailing slashes in PATH elements.
1669case $as_dir/ in
1670 ./ | .// | /cC/* | \
1671 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Reid Spencer17041682004-09-05 17:48:32 +00001672 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
John Criswell7a73b802003-06-30 21:59:07 +00001673 /usr/ucb/* ) ;;
1674 *)
1675 # OSF1 and SCO ODT 3.0 have their own names for install.
1676 # Don't use installbsd from OSF since it installs stuff as root
1677 # by default.
1678 for ac_prog in ginstall scoinst install; do
1679 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencer17041682004-09-05 17:48:32 +00001680 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1681 if test $ac_prog = install &&
1682 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1683 # AIX install. It has an incompatible calling convention.
1684 :
1685 elif test $ac_prog = install &&
1686 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1687 # program-specific install script used by HP pwplus--don't use.
1688 :
1689 else
1690 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1691 break 3
1692 fi
1693 fi
John Criswell7a73b802003-06-30 21:59:07 +00001694 done
1695 done
1696 ;;
1697esac
1698done
1699
1700
1701fi
1702 if test "${ac_cv_path_install+set}" = set; then
1703 INSTALL=$ac_cv_path_install
1704 else
1705 # As a last resort, use the slow shell script. We don't cache a
1706 # path for INSTALL within a source directory, because that will
1707 # break other packages using the cache if that directory is
1708 # removed, or if the path is relative.
1709 INSTALL=$ac_install_sh
1710 fi
1711fi
1712echo "$as_me:$LINENO: result: $INSTALL" >&5
1713echo "${ECHO_T}$INSTALL" >&6
1714
1715# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1716# It thinks the first close brace ends the variable substitution.
1717test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1718
1719test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1720
1721test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1722
1723
1724# Make sure we can run config.sub.
1725$ac_config_sub sun4 >/dev/null 2>&1 ||
1726 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1727echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1728 { (exit 1); exit 1; }; }
1729
1730echo "$as_me:$LINENO: checking build system type" >&5
1731echo $ECHO_N "checking build system type... $ECHO_C" >&6
1732if test "${ac_cv_build+set}" = set; then
1733 echo $ECHO_N "(cached) $ECHO_C" >&6
1734else
1735 ac_cv_build_alias=$build_alias
1736test -z "$ac_cv_build_alias" &&
1737 ac_cv_build_alias=`$ac_config_guess`
1738test -z "$ac_cv_build_alias" &&
1739 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1740echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1741 { (exit 1); exit 1; }; }
1742ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1743 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1744echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1745 { (exit 1); exit 1; }; }
1746
1747fi
1748echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1749echo "${ECHO_T}$ac_cv_build" >&6
1750build=$ac_cv_build
1751build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1752build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1753build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1754
1755
1756echo "$as_me:$LINENO: checking host system type" >&5
1757echo $ECHO_N "checking host system type... $ECHO_C" >&6
1758if test "${ac_cv_host+set}" = set; then
1759 echo $ECHO_N "(cached) $ECHO_C" >&6
1760else
1761 ac_cv_host_alias=$host_alias
1762test -z "$ac_cv_host_alias" &&
1763 ac_cv_host_alias=$ac_cv_build_alias
1764ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1765 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1766echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1767 { (exit 1); exit 1; }; }
1768
1769fi
1770echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1771echo "${ECHO_T}$ac_cv_host" >&6
1772host=$ac_cv_host
1773host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1774host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1775host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1776
1777
1778echo "$as_me:$LINENO: checking target system type" >&5
1779echo $ECHO_N "checking target system type... $ECHO_C" >&6
1780if test "${ac_cv_target+set}" = set; then
1781 echo $ECHO_N "(cached) $ECHO_C" >&6
1782else
1783 ac_cv_target_alias=$target_alias
1784test "x$ac_cv_target_alias" = "x" &&
1785 ac_cv_target_alias=$ac_cv_host_alias
1786ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1787 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1788echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1789 { (exit 1); exit 1; }; }
1790
1791fi
1792echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1793echo "${ECHO_T}$ac_cv_target" >&6
1794target=$ac_cv_target
1795target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1796target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1797target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1798
1799
1800# The aliases save the names the user supplied, while $host etc.
1801# will get canonicalized.
1802test -n "$target_alias" &&
1803 test "$program_prefix$program_suffix$program_transform_name" = \
1804 NONENONEs,x,x, &&
1805 program_prefix=${target_alias}-
1806
Reid Spencer73fb5482004-08-31 14:20:36 +00001807
1808echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1809echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001810case $build in
Reid Spencer73fb5482004-08-31 14:20:36 +00001811 *-*-aix*)
1812 OS=AIX
1813
1814 platform_type="AIX"
1815 ;;
1816 *-*-cygwin*)
1817 OS=Cygwin
1818
1819 platform_type="Cygwin"
1820 ;;
1821 *-*-darwin*)
1822 OS=Darwin
1823
1824 platform_type="Darwin"
1825 ;;
1826 *-*-freebsd*)
1827 OS=Linux
1828
Reid Spencera11e4db2004-08-31 18:03:23 +00001829 platform_type="FreeBSD"
Reid Spencer73fb5482004-08-31 14:20:36 +00001830 ;;
1831 *-*-interix*)
1832 OS=SunOS
1833
Reid Spencera11e4db2004-08-31 18:03:23 +00001834 platform_type="Interix"
Reid Spencer73fb5482004-08-31 14:20:36 +00001835 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001836 *-*-linux*)
1837 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001838
Reid Spencerde8c47f2004-08-29 19:35:28 +00001839 platform_type="Linux"
1840 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1841 then
1842 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001843
Reid Spencerde8c47f2004-08-29 19:35:28 +00001844 fi
1845 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001846 *-*-solaris*)
1847 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001848
Reid Spencerde8c47f2004-08-29 19:35:28 +00001849 platform_type="SunOS"
1850 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1851 then
1852 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001853
Reid Spencerde8c47f2004-08-29 19:35:28 +00001854 fi
1855 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001856 *-*-win32*)
1857 OS=Win32
John Criswell7a73b802003-06-30 21:59:07 +00001858
Reid Spencerde8c47f2004-08-29 19:35:28 +00001859 platform_type="Win32"
1860 ;;
1861 *)
1862 OS=Unknown
1863
1864 platform_type="Unknown"
1865 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001866esac
1867
Reid Spencer73fb5482004-08-31 14:20:36 +00001868if test "$platform_type" = "Unknown" ; then
Reid Spencer886e9512004-08-31 01:34:10 +00001869 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1870echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1871 { (exit 1); exit 1; }; }
1872fi
1873
Reid Spencerde8c47f2004-08-29 19:35:28 +00001874 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1875
1876
Reid Spencer73fb5482004-08-31 14:20:36 +00001877echo "$as_me:$LINENO: result: $platform_type" >&5
1878echo "${ECHO_T}$platform_type" >&6
1879
1880echo "$as_me:$LINENO: checking target architecture" >&5
1881echo $ECHO_N "checking target architecture... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001882case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001883 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001884
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001885 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001886esac
1887
John Criswell76595452003-07-01 22:07:39 +00001888case $target in
Reid Spencer73fb5482004-08-31 14:20:36 +00001889 i*86-*)
1890 ARCH="x86"
1891 ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001892
Reid Spencer73fb5482004-08-31 14:20:36 +00001893 ;;
1894 sparc*-*)
1895 ARCH="Sparc"
1896 ARCH=Sparc
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001897
Reid Spencer73fb5482004-08-31 14:20:36 +00001898 ;;
1899 powerpc*-*)
1900 ARCH="PowerPC"
1901 ARCH=PowerPC
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001902
Reid Spencer73fb5482004-08-31 14:20:36 +00001903 ;;
1904 *)
1905 ARCH="Unknown"
1906 ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001907
Reid Spencer73fb5482004-08-31 14:20:36 +00001908 ;;
John Criswell76595452003-07-01 22:07:39 +00001909esac
1910
Reid Spencer73fb5482004-08-31 14:20:36 +00001911echo "$as_me:$LINENO: result: $ARCH" >&5
1912echo "${ECHO_T}$ARCH" >&6
1913
John Criswell7a73b802003-06-30 21:59:07 +00001914ac_ext=cc
1915ac_cpp='$CXXCPP $CPPFLAGS'
1916ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1917ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1918ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1919if test -n "$ac_tool_prefix"; then
1920 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1921 do
1922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1923set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1924echo "$as_me:$LINENO: checking for $ac_word" >&5
1925echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1926if test "${ac_cv_prog_CXX+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928else
1929 if test -n "$CXX"; then
1930 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1931else
1932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1933for as_dir in $PATH
1934do
1935 IFS=$as_save_IFS
1936 test -z "$as_dir" && as_dir=.
1937 for ac_exec_ext in '' $ac_executable_extensions; do
1938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1939 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1941 break 2
1942 fi
1943done
1944done
1945
1946fi
1947fi
1948CXX=$ac_cv_prog_CXX
1949if test -n "$CXX"; then
1950 echo "$as_me:$LINENO: result: $CXX" >&5
1951echo "${ECHO_T}$CXX" >&6
1952else
1953 echo "$as_me:$LINENO: result: no" >&5
1954echo "${ECHO_T}no" >&6
1955fi
1956
1957 test -n "$CXX" && break
1958 done
1959fi
1960if test -z "$CXX"; then
1961 ac_ct_CXX=$CXX
1962 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1963do
1964 # Extract the first word of "$ac_prog", so it can be a program name with args.
1965set dummy $ac_prog; ac_word=$2
1966echo "$as_me:$LINENO: checking for $ac_word" >&5
1967echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1969 echo $ECHO_N "(cached) $ECHO_C" >&6
1970else
1971 if test -n "$ac_ct_CXX"; then
1972 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1973else
1974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975for as_dir in $PATH
1976do
1977 IFS=$as_save_IFS
1978 test -z "$as_dir" && as_dir=.
1979 for ac_exec_ext in '' $ac_executable_extensions; do
1980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981 ac_cv_prog_ac_ct_CXX="$ac_prog"
1982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983 break 2
1984 fi
1985done
1986done
1987
1988fi
1989fi
1990ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1991if test -n "$ac_ct_CXX"; then
1992 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1993echo "${ECHO_T}$ac_ct_CXX" >&6
1994else
1995 echo "$as_me:$LINENO: result: no" >&5
1996echo "${ECHO_T}no" >&6
1997fi
1998
1999 test -n "$ac_ct_CXX" && break
2000done
2001test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2002
2003 CXX=$ac_ct_CXX
2004fi
2005
2006
2007# Provide some information about the compiler.
2008echo "$as_me:$LINENO:" \
2009 "checking for C++ compiler version" >&5
2010ac_compiler=`set X $ac_compile; echo $2`
2011{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2012 (eval $ac_compiler --version </dev/null >&5) 2>&5
2013 ac_status=$?
2014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015 (exit $ac_status); }
2016{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2017 (eval $ac_compiler -v </dev/null >&5) 2>&5
2018 ac_status=$?
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); }
2021{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2022 (eval $ac_compiler -V </dev/null >&5) 2>&5
2023 ac_status=$?
2024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2025 (exit $ac_status); }
2026
2027cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002028/* confdefs.h. */
2029_ACEOF
2030cat confdefs.h >>conftest.$ac_ext
2031cat >>conftest.$ac_ext <<_ACEOF
2032/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002033
John Criswell7a73b802003-06-30 21:59:07 +00002034int
2035main ()
2036{
2037
2038 ;
2039 return 0;
2040}
2041_ACEOF
2042ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002043ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002044# Try to create an executable without -o first, disregard a.out.
2045# It will help us diagnose broken compilers, and finding out an intuition
2046# of exeext.
Reid Spencer17041682004-09-05 17:48:32 +00002047echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2048echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002049ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2050if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2051 (eval $ac_link_default) 2>&5
2052 ac_status=$?
2053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2054 (exit $ac_status); }; then
2055 # Find the output, starting from the most likely. This scheme is
2056# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2057# resort.
2058
2059# Be careful to initialize this variable, since it used to be cached.
2060# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2061ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002062# b.out is created by i960 compilers.
2063for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2064do
2065 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002066 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002067 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer17041682004-09-05 17:48:32 +00002068 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002069 conftest.$ac_ext )
Reid Spencer17041682004-09-05 17:48:32 +00002070 # This is the source file.
2071 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002072 [ab].out )
Reid Spencer17041682004-09-05 17:48:32 +00002073 # We found the default executable, but exeext='' is most
2074 # certainly right.
2075 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002076 *.* )
Reid Spencer17041682004-09-05 17:48:32 +00002077 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2078 # FIXME: I believe we export ac_cv_exeext for Libtool,
2079 # but it would be cool to find out if it's true. Does anybody
2080 # maintain Libtool? --akim.
2081 export ac_cv_exeext
2082 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002083 * )
Reid Spencer17041682004-09-05 17:48:32 +00002084 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002085 esac
2086done
2087else
2088 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002089sed 's/^/| /' conftest.$ac_ext >&5
2090
2091{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2092See \`config.log' for more details." >&5
2093echo "$as_me: error: C++ compiler cannot create executables
2094See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002095 { (exit 77); exit 77; }; }
2096fi
2097
2098ac_exeext=$ac_cv_exeext
2099echo "$as_me:$LINENO: result: $ac_file" >&5
2100echo "${ECHO_T}$ac_file" >&6
2101
2102# Check the compiler produces executables we can run. If not, either
2103# the compiler is broken, or we cross compile.
2104echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2105echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2106# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2107# If not cross compiling, check that we can run a simple program.
2108if test "$cross_compiling" != yes; then
2109 if { ac_try='./$ac_file'
2110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2111 (eval $ac_try) 2>&5
2112 ac_status=$?
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }; }; then
2115 cross_compiling=no
2116 else
2117 if test "$cross_compiling" = maybe; then
2118 cross_compiling=yes
2119 else
2120 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002121If you meant to cross compile, use \`--host'.
2122See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002123echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002124If you meant to cross compile, use \`--host'.
2125See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002126 { (exit 1); exit 1; }; }
2127 fi
2128 fi
2129fi
2130echo "$as_me:$LINENO: result: yes" >&5
2131echo "${ECHO_T}yes" >&6
2132
John Criswell0c38eaf2003-09-10 15:17:25 +00002133rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002134ac_clean_files=$ac_clean_files_save
2135# Check the compiler produces executables we can run. If not, either
2136# the compiler is broken, or we cross compile.
2137echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2138echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2139echo "$as_me:$LINENO: result: $cross_compiling" >&5
2140echo "${ECHO_T}$cross_compiling" >&6
2141
2142echo "$as_me:$LINENO: checking for suffix of executables" >&5
2143echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2144if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2145 (eval $ac_link) 2>&5
2146 ac_status=$?
2147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2148 (exit $ac_status); }; then
2149 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2150# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2151# work properly (i.e., refer to `conftest.exe'), while it won't with
2152# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002153for ac_file in conftest.exe conftest conftest.*; do
2154 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002155 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002157 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer17041682004-09-05 17:48:32 +00002158 export ac_cv_exeext
2159 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002160 * ) break;;
2161 esac
2162done
2163else
John Criswell0c38eaf2003-09-10 15:17:25 +00002164 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2165See \`config.log' for more details." >&5
2166echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2167See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002168 { (exit 1); exit 1; }; }
2169fi
2170
2171rm -f conftest$ac_cv_exeext
2172echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2173echo "${ECHO_T}$ac_cv_exeext" >&6
2174
2175rm -f conftest.$ac_ext
2176EXEEXT=$ac_cv_exeext
2177ac_exeext=$EXEEXT
2178echo "$as_me:$LINENO: checking for suffix of object files" >&5
2179echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2180if test "${ac_cv_objext+set}" = set; then
2181 echo $ECHO_N "(cached) $ECHO_C" >&6
2182else
2183 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002184/* confdefs.h. */
2185_ACEOF
2186cat confdefs.h >>conftest.$ac_ext
2187cat >>conftest.$ac_ext <<_ACEOF
2188/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002189
John Criswell7a73b802003-06-30 21:59:07 +00002190int
2191main ()
2192{
2193
2194 ;
2195 return 0;
2196}
2197_ACEOF
2198rm -f conftest.o conftest.obj
2199if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2200 (eval $ac_compile) 2>&5
2201 ac_status=$?
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; then
2204 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2205 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002206 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002207 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2208 break;;
2209 esac
2210done
2211else
2212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002213sed 's/^/| /' conftest.$ac_ext >&5
2214
2215{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2216See \`config.log' for more details." >&5
2217echo "$as_me: error: cannot compute suffix of object files: cannot compile
2218See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002219 { (exit 1); exit 1; }; }
2220fi
2221
2222rm -f conftest.$ac_cv_objext conftest.$ac_ext
2223fi
2224echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2225echo "${ECHO_T}$ac_cv_objext" >&6
2226OBJEXT=$ac_cv_objext
2227ac_objext=$OBJEXT
2228echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2229echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2230if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2231 echo $ECHO_N "(cached) $ECHO_C" >&6
2232else
2233 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002234/* confdefs.h. */
2235_ACEOF
2236cat confdefs.h >>conftest.$ac_ext
2237cat >>conftest.$ac_ext <<_ACEOF
2238/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002239
John Criswell7a73b802003-06-30 21:59:07 +00002240int
2241main ()
2242{
2243#ifndef __GNUC__
2244 choke me
2245#endif
2246
2247 ;
2248 return 0;
2249}
2250_ACEOF
2251rm -f conftest.$ac_objext
2252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002253 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002254 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002255 grep -v '^ *+' conftest.er1 >conftest.err
2256 rm -f conftest.er1
2257 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002260 { ac_try='test -z "$ac_cxx_werror_flag"
2261 || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2263 (eval $ac_try) 2>&5
2264 ac_status=$?
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002268 { (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); }; }; then
2273 ac_compiler_gnu=yes
2274else
2275 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002276sed 's/^/| /' conftest.$ac_ext >&5
2277
John Criswell7a73b802003-06-30 21:59:07 +00002278ac_compiler_gnu=no
2279fi
Reid Spencer17041682004-09-05 17:48:32 +00002280rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002281ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2282
2283fi
2284echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2285echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2286GXX=`test $ac_compiler_gnu = yes && echo yes`
2287ac_test_CXXFLAGS=${CXXFLAGS+set}
2288ac_save_CXXFLAGS=$CXXFLAGS
2289CXXFLAGS="-g"
2290echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2291echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2292if test "${ac_cv_prog_cxx_g+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2294else
2295 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002296/* confdefs.h. */
2297_ACEOF
2298cat confdefs.h >>conftest.$ac_ext
2299cat >>conftest.$ac_ext <<_ACEOF
2300/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002301
John Criswell7a73b802003-06-30 21:59:07 +00002302int
2303main ()
2304{
2305
2306 ;
2307 return 0;
2308}
2309_ACEOF
2310rm -f conftest.$ac_objext
2311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002312 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002313 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002314 grep -v '^ *+' conftest.er1 >conftest.err
2315 rm -f conftest.er1
2316 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002319 { ac_try='test -z "$ac_cxx_werror_flag"
2320 || test ! -s conftest.err'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322 (eval $ac_try) 2>&5
2323 ac_status=$?
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; } &&
2326 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002327 { (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); }; }; then
2332 ac_cv_prog_cxx_g=yes
2333else
2334 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002335sed 's/^/| /' conftest.$ac_ext >&5
2336
John Criswell7a73b802003-06-30 21:59:07 +00002337ac_cv_prog_cxx_g=no
2338fi
Reid Spencer17041682004-09-05 17:48:32 +00002339rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002340fi
2341echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2342echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2343if test "$ac_test_CXXFLAGS" = set; then
2344 CXXFLAGS=$ac_save_CXXFLAGS
2345elif test $ac_cv_prog_cxx_g = yes; then
2346 if test "$GXX" = yes; then
2347 CXXFLAGS="-g -O2"
2348 else
2349 CXXFLAGS="-g"
2350 fi
2351else
2352 if test "$GXX" = yes; then
2353 CXXFLAGS="-O2"
2354 else
2355 CXXFLAGS=
2356 fi
2357fi
2358for ac_declaration in \
Reid Spencer17041682004-09-05 17:48:32 +00002359 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002360 'extern "C" void std::exit (int) throw (); using std::exit;' \
2361 'extern "C" void std::exit (int); using std::exit;' \
2362 'extern "C" void exit (int) throw ();' \
2363 'extern "C" void exit (int);' \
2364 'void exit (int);'
2365do
2366 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002367/* confdefs.h. */
2368_ACEOF
2369cat confdefs.h >>conftest.$ac_ext
2370cat >>conftest.$ac_ext <<_ACEOF
2371/* end confdefs.h. */
John Criswell679ff312004-09-02 18:44:44 +00002372$ac_declaration
Reid Spencer17041682004-09-05 17:48:32 +00002373#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002374int
2375main ()
2376{
2377exit (42);
2378 ;
2379 return 0;
2380}
2381_ACEOF
2382rm -f conftest.$ac_objext
2383if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002384 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002385 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002386 grep -v '^ *+' conftest.er1 >conftest.err
2387 rm -f conftest.er1
2388 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002391 { ac_try='test -z "$ac_cxx_werror_flag"
2392 || test ! -s conftest.err'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; } &&
2398 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002399 { (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); }; }; then
2404 :
2405else
2406 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002407sed 's/^/| /' conftest.$ac_ext >&5
2408
John Criswell7a73b802003-06-30 21:59:07 +00002409continue
2410fi
Reid Spencer17041682004-09-05 17:48:32 +00002411rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002412 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002413/* confdefs.h. */
2414_ACEOF
2415cat confdefs.h >>conftest.$ac_ext
2416cat >>conftest.$ac_ext <<_ACEOF
2417/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002418$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002419int
2420main ()
2421{
2422exit (42);
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427rm -f conftest.$ac_objext
2428if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002429 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002430 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002431 grep -v '^ *+' conftest.er1 >conftest.err
2432 rm -f conftest.er1
2433 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002436 { ac_try='test -z "$ac_cxx_werror_flag"
2437 || test ! -s conftest.err'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; } &&
2443 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002444 { (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); }; }; then
2449 break
2450else
2451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002452sed 's/^/| /' conftest.$ac_ext >&5
2453
John Criswell7a73b802003-06-30 21:59:07 +00002454fi
Reid Spencer17041682004-09-05 17:48:32 +00002455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002456done
2457rm -f conftest*
2458if test -n "$ac_declaration"; then
2459 echo '#ifdef __cplusplus' >>confdefs.h
2460 echo $ac_declaration >>confdefs.h
2461 echo '#endif' >>confdefs.h
2462fi
2463
2464ac_ext=c
2465ac_cpp='$CPP $CPPFLAGS'
2466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2468ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
2475if test -n "$ac_tool_prefix"; then
2476 for ac_prog in gcc
2477 do
2478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2479set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2480echo "$as_me:$LINENO: checking for $ac_word" >&5
2481echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2482if test "${ac_cv_prog_CC+set}" = set; then
2483 echo $ECHO_N "(cached) $ECHO_C" >&6
2484else
2485 if test -n "$CC"; then
2486 ac_cv_prog_CC="$CC" # Let the user override the test.
2487else
2488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2489for as_dir in $PATH
2490do
2491 IFS=$as_save_IFS
2492 test -z "$as_dir" && as_dir=.
2493 for ac_exec_ext in '' $ac_executable_extensions; do
2494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2495 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 break 2
2498 fi
2499done
2500done
2501
2502fi
2503fi
2504CC=$ac_cv_prog_CC
2505if test -n "$CC"; then
2506 echo "$as_me:$LINENO: result: $CC" >&5
2507echo "${ECHO_T}$CC" >&6
2508else
2509 echo "$as_me:$LINENO: result: no" >&5
2510echo "${ECHO_T}no" >&6
2511fi
2512
2513 test -n "$CC" && break
2514 done
2515fi
2516if test -z "$CC"; then
2517 ac_ct_CC=$CC
2518 for ac_prog in gcc
2519do
2520 # Extract the first word of "$ac_prog", so it can be a program name with args.
2521set dummy $ac_prog; ac_word=$2
2522echo "$as_me:$LINENO: checking for $ac_word" >&5
2523echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2524if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2525 echo $ECHO_N "(cached) $ECHO_C" >&6
2526else
2527 if test -n "$ac_ct_CC"; then
2528 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2529else
2530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531for as_dir in $PATH
2532do
2533 IFS=$as_save_IFS
2534 test -z "$as_dir" && as_dir=.
2535 for ac_exec_ext in '' $ac_executable_extensions; do
2536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537 ac_cv_prog_ac_ct_CC="$ac_prog"
2538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539 break 2
2540 fi
2541done
2542done
2543
2544fi
2545fi
2546ac_ct_CC=$ac_cv_prog_ac_ct_CC
2547if test -n "$ac_ct_CC"; then
2548 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2549echo "${ECHO_T}$ac_ct_CC" >&6
2550else
2551 echo "$as_me:$LINENO: result: no" >&5
2552echo "${ECHO_T}no" >&6
2553fi
2554
2555 test -n "$ac_ct_CC" && break
2556done
2557
2558 CC=$ac_ct_CC
2559fi
2560
2561
John Criswell0c38eaf2003-09-10 15:17:25 +00002562test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2563See \`config.log' for more details." >&5
2564echo "$as_me: error: no acceptable C compiler found in \$PATH
2565See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002566 { (exit 1); exit 1; }; }
2567
2568# Provide some information about the compiler.
2569echo "$as_me:$LINENO:" \
2570 "checking for C compiler version" >&5
2571ac_compiler=`set X $ac_compile; echo $2`
2572{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2573 (eval $ac_compiler --version </dev/null >&5) 2>&5
2574 ac_status=$?
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); }
2577{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2578 (eval $ac_compiler -v </dev/null >&5) 2>&5
2579 ac_status=$?
2580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581 (exit $ac_status); }
2582{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2583 (eval $ac_compiler -V </dev/null >&5) 2>&5
2584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }
2587
2588echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2589echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2590if test "${ac_cv_c_compiler_gnu+set}" = set; then
2591 echo $ECHO_N "(cached) $ECHO_C" >&6
2592else
2593 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002594/* confdefs.h. */
2595_ACEOF
2596cat confdefs.h >>conftest.$ac_ext
2597cat >>conftest.$ac_ext <<_ACEOF
2598/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002599
John Criswell7a73b802003-06-30 21:59:07 +00002600int
2601main ()
2602{
2603#ifndef __GNUC__
2604 choke me
2605#endif
2606
2607 ;
2608 return 0;
2609}
2610_ACEOF
2611rm -f conftest.$ac_objext
2612if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002613 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002614 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002615 grep -v '^ *+' conftest.er1 >conftest.err
2616 rm -f conftest.er1
2617 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002620 { ac_try='test -z "$ac_c_werror_flag"
2621 || test ! -s conftest.err'
2622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2623 (eval $ac_try) 2>&5
2624 ac_status=$?
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); }; } &&
2627 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002628 { (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); }; }; then
2633 ac_compiler_gnu=yes
2634else
2635 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002636sed 's/^/| /' conftest.$ac_ext >&5
2637
John Criswell7a73b802003-06-30 21:59:07 +00002638ac_compiler_gnu=no
2639fi
Reid Spencer17041682004-09-05 17:48:32 +00002640rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002641ac_cv_c_compiler_gnu=$ac_compiler_gnu
2642
2643fi
2644echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2645echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2646GCC=`test $ac_compiler_gnu = yes && echo yes`
2647ac_test_CFLAGS=${CFLAGS+set}
2648ac_save_CFLAGS=$CFLAGS
2649CFLAGS="-g"
2650echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2651echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2652if test "${ac_cv_prog_cc_g+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2654else
2655 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002656/* confdefs.h. */
2657_ACEOF
2658cat confdefs.h >>conftest.$ac_ext
2659cat >>conftest.$ac_ext <<_ACEOF
2660/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002661
John Criswell7a73b802003-06-30 21:59:07 +00002662int
2663main ()
2664{
2665
2666 ;
2667 return 0;
2668}
2669_ACEOF
2670rm -f conftest.$ac_objext
2671if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002672 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002673 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002674 grep -v '^ *+' conftest.er1 >conftest.err
2675 rm -f conftest.er1
2676 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2678 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002679 { ac_try='test -z "$ac_c_werror_flag"
2680 || test ! -s conftest.err'
2681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2682 (eval $ac_try) 2>&5
2683 ac_status=$?
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }; } &&
2686 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002687 { (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); }; }; then
2692 ac_cv_prog_cc_g=yes
2693else
2694 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002695sed 's/^/| /' conftest.$ac_ext >&5
2696
John Criswell7a73b802003-06-30 21:59:07 +00002697ac_cv_prog_cc_g=no
2698fi
Reid Spencer17041682004-09-05 17:48:32 +00002699rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002700fi
2701echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2702echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2703if test "$ac_test_CFLAGS" = set; then
2704 CFLAGS=$ac_save_CFLAGS
2705elif test $ac_cv_prog_cc_g = yes; then
2706 if test "$GCC" = yes; then
2707 CFLAGS="-g -O2"
2708 else
2709 CFLAGS="-g"
2710 fi
2711else
2712 if test "$GCC" = yes; then
2713 CFLAGS="-O2"
2714 else
2715 CFLAGS=
2716 fi
2717fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002718echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2719echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2720if test "${ac_cv_prog_cc_stdc+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722else
2723 ac_cv_prog_cc_stdc=no
2724ac_save_CC=$CC
2725cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002726/* confdefs.h. */
2727_ACEOF
2728cat confdefs.h >>conftest.$ac_ext
2729cat >>conftest.$ac_ext <<_ACEOF
2730/* end confdefs.h. */
2731#include <stdarg.h>
2732#include <stdio.h>
2733#include <sys/types.h>
2734#include <sys/stat.h>
2735/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2736struct buf { int x; };
2737FILE * (*rcsopen) (struct buf *, struct stat *, int);
2738static char *e (p, i)
2739 char **p;
2740 int i;
2741{
2742 return p[i];
2743}
2744static char *f (char * (*g) (char **, int), char **p, ...)
2745{
2746 char *s;
2747 va_list v;
2748 va_start (v,p);
2749 s = g (p, va_arg (v,int));
2750 va_end (v);
2751 return s;
2752}
Reid Spencer17041682004-09-05 17:48:32 +00002753
2754/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2755 function prototypes and stuff, but not '\xHH' hex character constants.
2756 These don't provoke an error unfortunately, instead are silently treated
2757 as 'x'. The following induces an error, until -std1 is added to get
2758 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2759 array size at least. It's necessary to write '\x00'==0 to get something
2760 that's true only with -std1. */
2761int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2762
John Criswell0c38eaf2003-09-10 15:17:25 +00002763int test (int i, double x);
2764struct s1 {int (*f) (int a);};
2765struct s2 {int (*f) (double a);};
2766int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2767int argc;
2768char **argv;
2769int
2770main ()
2771{
2772return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2773 ;
2774 return 0;
2775}
2776_ACEOF
2777# Don't try gcc -ansi; that turns off useful extensions and
2778# breaks some systems' header files.
2779# AIX -qlanglvl=ansi
2780# Ultrix and OSF/1 -std1
2781# HP-UX 10.20 and later -Ae
2782# HP-UX older versions -Aa -D_HPUX_SOURCE
2783# SVR4 -Xc -D__EXTENSIONS__
2784for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2785do
2786 CC="$ac_save_CC $ac_arg"
2787 rm -f conftest.$ac_objext
2788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002789 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00002790 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002796 { ac_try='test -z "$ac_c_werror_flag"
2797 || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00002804 { (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); }; }; then
2809 ac_cv_prog_cc_stdc=$ac_arg
2810break
2811else
2812 echo "$as_me: failed program was:" >&5
2813sed 's/^/| /' conftest.$ac_ext >&5
2814
2815fi
Reid Spencer17041682004-09-05 17:48:32 +00002816rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00002817done
2818rm -f conftest.$ac_ext conftest.$ac_objext
2819CC=$ac_save_CC
2820
2821fi
2822
2823case "x$ac_cv_prog_cc_stdc" in
2824 x|xno)
2825 echo "$as_me:$LINENO: result: none needed" >&5
2826echo "${ECHO_T}none needed" >&6 ;;
2827 *)
2828 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2829echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2830 CC="$CC $ac_cv_prog_cc_stdc" ;;
2831esac
2832
John Criswell7a73b802003-06-30 21:59:07 +00002833# Some people use a C++ compiler to compile C. Since we use `exit',
2834# in C++ we need to declare it. In case someone uses the same compiler
2835# for both compiling C and C++ we need to have the C++ compiler decide
2836# the declaration of exit, since it's the most demanding environment.
2837cat >conftest.$ac_ext <<_ACEOF
2838#ifndef __cplusplus
2839 choke me
2840#endif
2841_ACEOF
2842rm -f conftest.$ac_objext
2843if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002844 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002845 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002846 grep -v '^ *+' conftest.er1 >conftest.err
2847 rm -f conftest.er1
2848 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002851 { ac_try='test -z "$ac_c_werror_flag"
2852 || test ! -s conftest.err'
2853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2854 (eval $ac_try) 2>&5
2855 ac_status=$?
2856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2857 (exit $ac_status); }; } &&
2858 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002859 { (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); }; }; then
2864 for ac_declaration in \
Reid Spencer17041682004-09-05 17:48:32 +00002865 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002866 'extern "C" void std::exit (int) throw (); using std::exit;' \
2867 'extern "C" void std::exit (int); using std::exit;' \
2868 'extern "C" void exit (int) throw ();' \
2869 'extern "C" void exit (int);' \
2870 'void exit (int);'
2871do
2872 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002873/* confdefs.h. */
2874_ACEOF
2875cat confdefs.h >>conftest.$ac_ext
2876cat >>conftest.$ac_ext <<_ACEOF
2877/* end confdefs.h. */
John Criswell679ff312004-09-02 18:44:44 +00002878$ac_declaration
Reid Spencer17041682004-09-05 17:48:32 +00002879#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002880int
2881main ()
2882{
2883exit (42);
2884 ;
2885 return 0;
2886}
2887_ACEOF
2888rm -f conftest.$ac_objext
2889if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002890 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002891 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002897 { ac_try='test -z "$ac_c_werror_flag"
2898 || test ! -s conftest.err'
2899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2900 (eval $ac_try) 2>&5
2901 ac_status=$?
2902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2903 (exit $ac_status); }; } &&
2904 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002905 { (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); }; }; then
2910 :
2911else
2912 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002913sed 's/^/| /' conftest.$ac_ext >&5
2914
John Criswell7a73b802003-06-30 21:59:07 +00002915continue
2916fi
Reid Spencer17041682004-09-05 17:48:32 +00002917rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002918 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002919/* confdefs.h. */
2920_ACEOF
2921cat confdefs.h >>conftest.$ac_ext
2922cat >>conftest.$ac_ext <<_ACEOF
2923/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002924$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002925int
2926main ()
2927{
2928exit (42);
2929 ;
2930 return 0;
2931}
2932_ACEOF
2933rm -f conftest.$ac_objext
2934if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002935 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002936 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002937 grep -v '^ *+' conftest.er1 >conftest.err
2938 rm -f conftest.er1
2939 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2941 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002942 { ac_try='test -z "$ac_c_werror_flag"
2943 || test ! -s conftest.err'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; } &&
2949 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002950 { (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); }; }; then
2955 break
2956else
2957 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002958sed 's/^/| /' conftest.$ac_ext >&5
2959
John Criswell7a73b802003-06-30 21:59:07 +00002960fi
Reid Spencer17041682004-09-05 17:48:32 +00002961rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002962done
2963rm -f conftest*
2964if test -n "$ac_declaration"; then
2965 echo '#ifdef __cplusplus' >>confdefs.h
2966 echo $ac_declaration >>confdefs.h
2967 echo '#endif' >>confdefs.h
2968fi
2969
2970else
2971 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002972sed 's/^/| /' conftest.$ac_ext >&5
2973
John Criswell7a73b802003-06-30 21:59:07 +00002974fi
Reid Spencer17041682004-09-05 17:48:32 +00002975rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002976ac_ext=c
2977ac_cpp='$CPP $CPPFLAGS'
2978ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2979ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2980ac_compiler_gnu=$ac_cv_c_compiler_gnu
2981
2982ac_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
2987echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2988echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2989# On Suns, sometimes $CPP names a directory.
2990if test -n "$CPP" && test -d "$CPP"; then
2991 CPP=
2992fi
2993if test -z "$CPP"; then
2994 if test "${ac_cv_prog_CPP+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2996else
2997 # Double quotes because CPP needs to be expanded
2998 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2999 do
3000 ac_preproc_ok=false
3001for ac_c_preproc_warn_flag in '' yes
3002do
3003 # Use a header file that comes with gcc, so configuring glibc
3004 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3006 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003007 # On the NeXT, cc -E runs the code through the compiler's parser,
3008 # not just through cpp. "Syntax error" is here to catch this case.
3009 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003010/* confdefs.h. */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h. */
3015#ifdef __STDC__
3016# include <limits.h>
3017#else
3018# include <assert.h>
3019#endif
Reid Spencer17041682004-09-05 17:48:32 +00003020 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003021_ACEOF
3022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3024 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003025 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003026 rm -f conftest.er1
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } >/dev/null; then
3030 if test -s conftest.err; then
3031 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00003032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003033 else
3034 ac_cpp_err=
3035 fi
3036else
3037 ac_cpp_err=yes
3038fi
3039if test -z "$ac_cpp_err"; then
3040 :
3041else
3042 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003043sed 's/^/| /' conftest.$ac_ext >&5
3044
John Criswell7a73b802003-06-30 21:59:07 +00003045 # Broken: fails on valid input.
3046continue
3047fi
3048rm -f conftest.err conftest.$ac_ext
3049
3050 # OK, works on sane cases. Now check whether non-existent headers
3051 # can be detected and how.
3052 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003053/* confdefs.h. */
3054_ACEOF
3055cat confdefs.h >>conftest.$ac_ext
3056cat >>conftest.$ac_ext <<_ACEOF
3057/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003058#include <ac_nonexistent.h>
3059_ACEOF
3060if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3061 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3062 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003063 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003064 rm -f conftest.er1
3065 cat conftest.err >&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); } >/dev/null; then
3068 if test -s conftest.err; then
3069 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00003070 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003071 else
3072 ac_cpp_err=
3073 fi
3074else
3075 ac_cpp_err=yes
3076fi
3077if test -z "$ac_cpp_err"; then
3078 # Broken: success on invalid input.
3079continue
3080else
3081 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003082sed 's/^/| /' conftest.$ac_ext >&5
3083
John Criswell7a73b802003-06-30 21:59:07 +00003084 # Passes both tests.
3085ac_preproc_ok=:
3086break
3087fi
3088rm -f conftest.err conftest.$ac_ext
3089
3090done
3091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3092rm -f conftest.err conftest.$ac_ext
3093if $ac_preproc_ok; then
3094 break
3095fi
3096
3097 done
3098 ac_cv_prog_CPP=$CPP
3099
3100fi
3101 CPP=$ac_cv_prog_CPP
3102else
3103 ac_cv_prog_CPP=$CPP
3104fi
3105echo "$as_me:$LINENO: result: $CPP" >&5
3106echo "${ECHO_T}$CPP" >&6
3107ac_preproc_ok=false
3108for ac_c_preproc_warn_flag in '' yes
3109do
3110 # Use a header file that comes with gcc, so configuring glibc
3111 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003112 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3113 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003114 # On the NeXT, cc -E runs the code through the compiler's parser,
3115 # not just through cpp. "Syntax error" is here to catch this case.
3116 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122#ifdef __STDC__
3123# include <limits.h>
3124#else
3125# include <assert.h>
3126#endif
Reid Spencer17041682004-09-05 17:48:32 +00003127 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003128_ACEOF
3129if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3131 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003132 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } >/dev/null; then
3137 if test -s conftest.err; then
3138 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00003139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003140 else
3141 ac_cpp_err=
3142 fi
3143else
3144 ac_cpp_err=yes
3145fi
3146if test -z "$ac_cpp_err"; then
3147 :
3148else
3149 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003150sed 's/^/| /' conftest.$ac_ext >&5
3151
John Criswell7a73b802003-06-30 21:59:07 +00003152 # Broken: fails on valid input.
3153continue
3154fi
3155rm -f conftest.err conftest.$ac_ext
3156
3157 # OK, works on sane cases. Now check whether non-existent headers
3158 # can be detected and how.
3159 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003160/* confdefs.h. */
3161_ACEOF
3162cat confdefs.h >>conftest.$ac_ext
3163cat >>conftest.$ac_ext <<_ACEOF
3164/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003165#include <ac_nonexistent.h>
3166_ACEOF
3167if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3168 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3169 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003170 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003171 rm -f conftest.er1
3172 cat conftest.err >&5
3173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3174 (exit $ac_status); } >/dev/null; then
3175 if test -s conftest.err; then
3176 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00003177 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003178 else
3179 ac_cpp_err=
3180 fi
3181else
3182 ac_cpp_err=yes
3183fi
3184if test -z "$ac_cpp_err"; then
3185 # Broken: success on invalid input.
3186continue
3187else
3188 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003189sed 's/^/| /' conftest.$ac_ext >&5
3190
John Criswell7a73b802003-06-30 21:59:07 +00003191 # Passes both tests.
3192ac_preproc_ok=:
3193break
3194fi
3195rm -f conftest.err conftest.$ac_ext
3196
3197done
3198# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3199rm -f conftest.err conftest.$ac_ext
3200if $ac_preproc_ok; then
3201 :
3202else
John Criswell0c38eaf2003-09-10 15:17:25 +00003203 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3204See \`config.log' for more details." >&5
3205echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3206See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003207 { (exit 1); exit 1; }; }
3208fi
3209
3210ac_ext=c
3211ac_cpp='$CPP $CPPFLAGS'
3212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215
3216
3217if test "$GCC" != "yes"
3218then
3219 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3220echo "$as_me: error: gcc required but not found" >&2;}
3221 { (exit 1); exit 1; }; }
3222fi
John Criswell7a73b802003-06-30 21:59:07 +00003223if test "$GXX" != "yes"
3224then
3225 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3226echo "$as_me: error: g++ required but not found" >&2;}
3227 { (exit 1); exit 1; }; }
3228fi
3229
John Criswellde00db22003-08-25 16:49:54 +00003230gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3231if test "$gccmajor" -lt "3"
3232then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003233 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3234echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003235 { (exit 1); exit 1; }; }
3236fi
3237
John Criswell7a73b802003-06-30 21:59:07 +00003238 echo "$as_me:$LINENO: checking for GNU make" >&5
3239echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3240if test "${_cv_gnu_make_command+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242else
3243 _cv_gnu_make_command='' ;
3244 for a in "$MAKE" make gmake gnumake ; do
3245 if test -z "$a" ; then continue ; fi ;
3246 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3247 _cv_gnu_make_command=$a ;
3248 break;
3249 fi
3250 done ;
3251
3252fi
3253echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3254echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3255 if test "x$_cv_gnu_make_command" != "x" ; then
3256 ifGNUmake='' ;
3257 else
3258 ifGNUmake='#' ;
3259 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3260echo "${ECHO_T}\"Not found\"" >&6;
3261 fi
3262
3263
3264if test -z "$_cv_gnu_make_command"
3265then
3266 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3267echo "$as_me: error: GNU Make required but not found" >&2;}
3268 { (exit 1); exit 1; }; }
3269fi
3270
3271
3272echo "$as_me:$LINENO: checking " >&5
3273echo $ECHO_N "checking ... $ECHO_C" >&6
3274if test "${ac_cv_has_flex+set}" = set; then
3275 echo $ECHO_N "(cached) $ECHO_C" >&6
3276else
3277 for ac_prog in flex lex
3278do
3279 # Extract the first word of "$ac_prog", so it can be a program name with args.
3280set dummy $ac_prog; ac_word=$2
3281echo "$as_me:$LINENO: checking for $ac_word" >&5
3282echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3283if test "${ac_cv_prog_LEX+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285else
3286 if test -n "$LEX"; then
3287 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3288else
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH
3291do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3296 ac_cv_prog_LEX="$ac_prog"
3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 break 2
3299 fi
3300done
3301done
3302
3303fi
3304fi
3305LEX=$ac_cv_prog_LEX
3306if test -n "$LEX"; then
3307 echo "$as_me:$LINENO: result: $LEX" >&5
3308echo "${ECHO_T}$LEX" >&6
3309else
3310 echo "$as_me:$LINENO: result: no" >&5
3311echo "${ECHO_T}no" >&6
3312fi
3313
3314 test -n "$LEX" && break
3315done
3316test -n "$LEX" || LEX=":"
3317
3318if test -z "$LEXLIB"
3319then
3320 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3321echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3322if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3323 echo $ECHO_N "(cached) $ECHO_C" >&6
3324else
3325 ac_check_lib_save_LIBS=$LIBS
3326LIBS="-lfl $LIBS"
3327cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003328/* confdefs.h. */
3329_ACEOF
3330cat confdefs.h >>conftest.$ac_ext
3331cat >>conftest.$ac_ext <<_ACEOF
3332/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003333
3334/* Override any gcc2 internal prototype to avoid an error. */
3335#ifdef __cplusplus
3336extern "C"
3337#endif
3338/* We use char because int might match the return type of a gcc2
3339 builtin and then its argument prototype would still apply. */
3340char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003341int
3342main ()
3343{
3344yywrap ();
3345 ;
3346 return 0;
3347}
3348_ACEOF
3349rm -f conftest.$ac_objext conftest$ac_exeext
3350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00003351 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003352 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00003353 grep -v '^ *+' conftest.er1 >conftest.err
3354 rm -f conftest.er1
3355 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3357 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00003358 { ac_try='test -z "$ac_c_werror_flag"
3359 || test ! -s conftest.err'
3360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3361 (eval $ac_try) 2>&5
3362 ac_status=$?
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; } &&
3365 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3367 (eval $ac_try) 2>&5
3368 ac_status=$?
3369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3370 (exit $ac_status); }; }; then
3371 ac_cv_lib_fl_yywrap=yes
3372else
3373 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003374sed 's/^/| /' conftest.$ac_ext >&5
3375
John Criswell7a73b802003-06-30 21:59:07 +00003376ac_cv_lib_fl_yywrap=no
3377fi
Reid Spencer17041682004-09-05 17:48:32 +00003378rm -f conftest.err conftest.$ac_objext \
3379 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003380LIBS=$ac_check_lib_save_LIBS
3381fi
3382echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3383echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3384if test $ac_cv_lib_fl_yywrap = yes; then
3385 LEXLIB="-lfl"
3386else
3387 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3388echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3389if test "${ac_cv_lib_l_yywrap+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3391else
3392 ac_check_lib_save_LIBS=$LIBS
3393LIBS="-ll $LIBS"
3394cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003395/* confdefs.h. */
3396_ACEOF
3397cat confdefs.h >>conftest.$ac_ext
3398cat >>conftest.$ac_ext <<_ACEOF
3399/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003400
3401/* Override any gcc2 internal prototype to avoid an error. */
3402#ifdef __cplusplus
3403extern "C"
3404#endif
3405/* We use char because int might match the return type of a gcc2
3406 builtin and then its argument prototype would still apply. */
3407char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003408int
3409main ()
3410{
3411yywrap ();
3412 ;
3413 return 0;
3414}
3415_ACEOF
3416rm -f conftest.$ac_objext conftest$ac_exeext
3417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00003418 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003419 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00003420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00003425 { ac_try='test -z "$ac_c_werror_flag"
3426 || test ! -s conftest.err'
3427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428 (eval $ac_try) 2>&5
3429 ac_status=$?
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); }; } &&
3432 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434 (eval $ac_try) 2>&5
3435 ac_status=$?
3436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3437 (exit $ac_status); }; }; then
3438 ac_cv_lib_l_yywrap=yes
3439else
3440 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003441sed 's/^/| /' conftest.$ac_ext >&5
3442
John Criswell7a73b802003-06-30 21:59:07 +00003443ac_cv_lib_l_yywrap=no
3444fi
Reid Spencer17041682004-09-05 17:48:32 +00003445rm -f conftest.err conftest.$ac_objext \
3446 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003447LIBS=$ac_check_lib_save_LIBS
3448fi
3449echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3450echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3451if test $ac_cv_lib_l_yywrap = yes; then
3452 LEXLIB="-ll"
3453fi
3454
3455fi
3456
3457fi
3458
3459if test "x$LEX" != "x:"; then
3460 echo "$as_me:$LINENO: checking lex output file root" >&5
3461echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3462if test "${ac_cv_prog_lex_root+set}" = set; then
3463 echo $ECHO_N "(cached) $ECHO_C" >&6
3464else
3465 # The minimal lex program is just a single line: %%. But some broken lexes
3466# (Solaris, I think it was) want two %% lines, so accommodate them.
3467cat >conftest.l <<_ACEOF
3468%%
3469%%
3470_ACEOF
3471{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3472 (eval $LEX conftest.l) 2>&5
3473 ac_status=$?
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); }
3476if test -f lex.yy.c; then
3477 ac_cv_prog_lex_root=lex.yy
3478elif test -f lexyy.c; then
3479 ac_cv_prog_lex_root=lexyy
3480else
3481 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3482echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3483 { (exit 1); exit 1; }; }
3484fi
3485fi
3486echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3487echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3488rm -f conftest.l
3489LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3490
3491echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3492echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3493if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3495else
3496 # POSIX says lex can declare yytext either as a pointer or an array; the
3497# default is implementation-dependent. Figure out which it is, since
3498# not all implementations provide the %pointer and %array declarations.
3499ac_cv_prog_lex_yytext_pointer=no
3500echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3501ac_save_LIBS=$LIBS
3502LIBS="$LIBS $LEXLIB"
3503cat >conftest.$ac_ext <<_ACEOF
3504`cat $LEX_OUTPUT_ROOT.c`
3505_ACEOF
3506rm -f conftest.$ac_objext conftest$ac_exeext
3507if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00003508 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003509 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00003510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00003515 { ac_try='test -z "$ac_c_werror_flag"
3516 || test ! -s conftest.err'
3517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3518 (eval $ac_try) 2>&5
3519 ac_status=$?
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }; } &&
3522 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3524 (eval $ac_try) 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }; }; then
3528 ac_cv_prog_lex_yytext_pointer=yes
3529else
3530 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003531sed 's/^/| /' conftest.$ac_ext >&5
3532
John Criswell7a73b802003-06-30 21:59:07 +00003533fi
Reid Spencer17041682004-09-05 17:48:32 +00003534rm -f conftest.err conftest.$ac_objext \
3535 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003536LIBS=$ac_save_LIBS
3537rm -f "${LEX_OUTPUT_ROOT}.c"
3538
3539fi
3540echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3541echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3542if test $ac_cv_prog_lex_yytext_pointer = yes; then
3543
3544cat >>confdefs.h <<\_ACEOF
3545#define YYTEXT_POINTER 1
3546_ACEOF
3547
3548fi
3549
3550fi
3551
3552fi
3553echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3554echo "${ECHO_T}$ac_cv_has_flex" >&6
3555if test "$LEX" != "flex"; then
3556 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3557echo "$as_me: error: flex not found but required" >&2;}
3558 { (exit 1); exit 1; }; }
3559fi
3560
3561echo "$as_me:$LINENO: checking " >&5
3562echo $ECHO_N "checking ... $ECHO_C" >&6
3563if test "${ac_cv_has_bison+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3565else
3566 for ac_prog in 'bison -y' byacc
3567do
3568 # Extract the first word of "$ac_prog", so it can be a program name with args.
3569set dummy $ac_prog; ac_word=$2
3570echo "$as_me:$LINENO: checking for $ac_word" >&5
3571echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3572if test "${ac_cv_prog_YACC+set}" = set; then
3573 echo $ECHO_N "(cached) $ECHO_C" >&6
3574else
3575 if test -n "$YACC"; then
3576 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3577else
3578as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3579for as_dir in $PATH
3580do
3581 IFS=$as_save_IFS
3582 test -z "$as_dir" && as_dir=.
3583 for ac_exec_ext in '' $ac_executable_extensions; do
3584 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3585 ac_cv_prog_YACC="$ac_prog"
3586 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 break 2
3588 fi
3589done
3590done
3591
3592fi
3593fi
3594YACC=$ac_cv_prog_YACC
3595if test -n "$YACC"; then
3596 echo "$as_me:$LINENO: result: $YACC" >&5
3597echo "${ECHO_T}$YACC" >&6
3598else
3599 echo "$as_me:$LINENO: result: no" >&5
3600echo "${ECHO_T}no" >&6
3601fi
3602
3603 test -n "$YACC" && break
3604done
3605test -n "$YACC" || YACC="yacc"
3606
3607
3608fi
3609echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3610echo "${ECHO_T}$ac_cv_has_bison" >&6
3611if test "$YACC" != "bison -y"; then
3612 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3613echo "$as_me: error: bison not found but required" >&2;}
3614 { (exit 1); exit 1; }; }
3615else
Brian Gaeke12810632004-01-13 06:52:10 +00003616 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003617
3618fi
3619
John Criswell7a73b802003-06-30 21:59:07 +00003620# Check whether --enable-shared or --disable-shared was given.
3621if test "${enable_shared+set}" = set; then
3622 enableval="$enable_shared"
3623 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003624 case $enableval in
3625 yes) enable_shared=yes ;;
3626 no) enable_shared=no ;;
3627 *)
3628 enable_shared=no
3629 # Look at the argument we got. We use all the common list separators.
3630 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3631 for pkg in $enableval; do
3632 IFS="$lt_save_ifs"
3633 if test "X$pkg" = "X$p"; then
3634 enable_shared=yes
3635 fi
3636 done
3637 IFS="$lt_save_ifs"
3638 ;;
3639 esac
John Criswell7a73b802003-06-30 21:59:07 +00003640else
3641 enable_shared=yes
3642fi;
John Criswell47fdd832003-07-14 16:52:07 +00003643
John Criswell7a73b802003-06-30 21:59:07 +00003644# Check whether --enable-static or --disable-static was given.
3645if test "${enable_static+set}" = set; then
3646 enableval="$enable_static"
3647 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003648 case $enableval in
3649 yes) enable_static=yes ;;
3650 no) enable_static=no ;;
3651 *)
3652 enable_static=no
3653 # Look at the argument we got. We use all the common list separators.
3654 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3655 for pkg in $enableval; do
3656 IFS="$lt_save_ifs"
3657 if test "X$pkg" = "X$p"; then
3658 enable_static=yes
3659 fi
3660 done
3661 IFS="$lt_save_ifs"
3662 ;;
3663 esac
John Criswell7a73b802003-06-30 21:59:07 +00003664else
3665 enable_static=yes
3666fi;
John Criswell47fdd832003-07-14 16:52:07 +00003667
John Criswell7a73b802003-06-30 21:59:07 +00003668# Check whether --enable-fast-install or --disable-fast-install was given.
3669if test "${enable_fast_install+set}" = set; then
3670 enableval="$enable_fast_install"
3671 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003672 case $enableval in
3673 yes) enable_fast_install=yes ;;
3674 no) enable_fast_install=no ;;
3675 *)
3676 enable_fast_install=no
3677 # Look at the argument we got. We use all the common list separators.
3678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3679 for pkg in $enableval; do
3680 IFS="$lt_save_ifs"
3681 if test "X$pkg" = "X$p"; then
3682 enable_fast_install=yes
3683 fi
3684 done
3685 IFS="$lt_save_ifs"
3686 ;;
3687 esac
John Criswell7a73b802003-06-30 21:59:07 +00003688else
3689 enable_fast_install=yes
3690fi;
John Criswell47fdd832003-07-14 16:52:07 +00003691
3692echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3693echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3694if test "${lt_cv_path_SED+set}" = set; then
3695 echo $ECHO_N "(cached) $ECHO_C" >&6
3696else
3697 # Loop through the user's path and test for sed and gsed.
3698# Then use that list of sed's as ones to test for truncation.
3699as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700for as_dir in $PATH
3701do
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for lt_ac_prog in sed gsed; do
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3707 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3708 fi
3709 done
3710 done
3711done
3712lt_ac_max=0
3713lt_ac_count=0
3714# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3715# along with /bin/sed that truncates output.
3716for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3717 test ! -f $lt_ac_sed && break
3718 cat /dev/null > conftest.in
3719 lt_ac_count=0
3720 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3721 # Check for GNU sed and select it if it is found.
3722 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3723 lt_cv_path_SED=$lt_ac_sed
3724 break
3725 fi
3726 while true; do
3727 cat conftest.in conftest.in >conftest.tmp
3728 mv conftest.tmp conftest.in
3729 cp conftest.in conftest.nl
3730 echo >>conftest.nl
3731 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3732 cmp -s conftest.out conftest.nl || break
3733 # 10000 chars as input seems more than enough
3734 test $lt_ac_count -gt 10 && break
3735 lt_ac_count=`expr $lt_ac_count + 1`
3736 if test $lt_ac_count -gt $lt_ac_max; then
3737 lt_ac_max=$lt_ac_count
3738 lt_cv_path_SED=$lt_ac_sed
3739 fi
3740 done
3741done
3742SED=$lt_cv_path_SED
3743
John Criswell7a73b802003-06-30 21:59:07 +00003744fi
3745
John Criswell47fdd832003-07-14 16:52:07 +00003746echo "$as_me:$LINENO: result: $SED" >&5
3747echo "${ECHO_T}$SED" >&6
3748
3749echo "$as_me:$LINENO: checking for egrep" >&5
3750echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3751if test "${ac_cv_prog_egrep+set}" = set; then
3752 echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3755 then ac_cv_prog_egrep='grep -E'
3756 else ac_cv_prog_egrep='egrep'
3757 fi
3758fi
3759echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3760echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3761 EGREP=$ac_cv_prog_egrep
3762
3763
John Criswell7a73b802003-06-30 21:59:07 +00003764
3765# Check whether --with-gnu-ld or --without-gnu-ld was given.
3766if test "${with_gnu_ld+set}" = set; then
3767 withval="$with_gnu_ld"
3768 test "$withval" = no || with_gnu_ld=yes
3769else
3770 with_gnu_ld=no
3771fi;
3772ac_prog=ld
3773if test "$GCC" = yes; then
3774 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003775 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3776echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003777 case $host in
3778 *-*-mingw*)
3779 # gcc leaves a trailing carriage return which upsets mingw
3780 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3781 *)
3782 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3783 esac
3784 case $ac_prog in
3785 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003786 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003787 re_direlt='/[^/][^/]*/\.\./'
3788 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003789 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003790 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003791 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003792 done
3793 test -z "$LD" && LD="$ac_prog"
3794 ;;
3795 "")
3796 # If it fails, then pretend we aren't using GCC.
3797 ac_prog=ld
3798 ;;
3799 *)
3800 # If it is relative, then search for the first ld in PATH.
3801 with_gnu_ld=unknown
3802 ;;
3803 esac
3804elif test "$with_gnu_ld" = yes; then
3805 echo "$as_me:$LINENO: checking for GNU ld" >&5
3806echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3807else
3808 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3809echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3810fi
3811if test "${lt_cv_path_LD+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3813else
3814 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003815 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003816 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003817 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003818 test -z "$ac_dir" && ac_dir=.
3819 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3820 lt_cv_path_LD="$ac_dir/$ac_prog"
3821 # Check to see if the program is GNU ld. I'd rather use --version,
3822 # but apparently some GNU ld's only accept -v.
3823 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003824 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3825 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003826 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003827 ;;
3828 *)
John Criswell7a73b802003-06-30 21:59:07 +00003829 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003830 ;;
3831 esac
John Criswell7a73b802003-06-30 21:59:07 +00003832 fi
3833 done
John Criswell47fdd832003-07-14 16:52:07 +00003834 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003835else
3836 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3837fi
3838fi
3839
3840LD="$lt_cv_path_LD"
3841if test -n "$LD"; then
3842 echo "$as_me:$LINENO: result: $LD" >&5
3843echo "${ECHO_T}$LD" >&6
3844else
3845 echo "$as_me:$LINENO: result: no" >&5
3846echo "${ECHO_T}no" >&6
3847fi
3848test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3849echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3850 { (exit 1); exit 1; }; }
3851echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3852echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3853if test "${lt_cv_prog_gnu_ld+set}" = set; then
3854 echo $ECHO_N "(cached) $ECHO_C" >&6
3855else
3856 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003857case `"$LD" -v 2>&1 </dev/null` in
3858*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003859 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003860 ;;
3861*)
John Criswell7a73b802003-06-30 21:59:07 +00003862 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003863 ;;
3864esac
John Criswell7a73b802003-06-30 21:59:07 +00003865fi
3866echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3867echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3868with_gnu_ld=$lt_cv_prog_gnu_ld
3869
3870
3871echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3872echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3873if test "${lt_cv_ld_reload_flag+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875else
3876 lt_cv_ld_reload_flag='-r'
3877fi
3878echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3879echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3880reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003881case $reload_flag in
3882"" | " "*) ;;
3883*) reload_flag=" $reload_flag" ;;
3884esac
3885reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003886
3887echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3888echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3889if test "${lt_cv_path_NM+set}" = set; then
3890 echo $ECHO_N "(cached) $ECHO_C" >&6
3891else
3892 if test -n "$NM"; then
3893 # Let the user override the test.
3894 lt_cv_path_NM="$NM"
3895else
John Criswell47fdd832003-07-14 16:52:07 +00003896 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003897 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003898 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003899 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003900 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3901 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003902 # Check to see if the nm accepts a BSD-compat flag.
3903 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3904 # nm: unknown option "B" ignored
3905 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003906 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3907 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003908 lt_cv_path_NM="$tmp_nm -B"
3909 break
John Criswell47fdd832003-07-14 16:52:07 +00003910 ;;
3911 *)
3912 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3913 */dev/null*)
3914 lt_cv_path_NM="$tmp_nm -p"
3915 break
3916 ;;
3917 *)
3918 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3919 continue # so that we can try to find one that supports BSD flags
3920 ;;
3921 esac
3922 esac
John Criswell7a73b802003-06-30 21:59:07 +00003923 fi
3924 done
John Criswell47fdd832003-07-14 16:52:07 +00003925 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003926 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3927fi
3928fi
John Criswell47fdd832003-07-14 16:52:07 +00003929echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3930echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003931NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003932
3933echo "$as_me:$LINENO: checking whether ln -s works" >&5
3934echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3935LN_S=$as_ln_s
3936if test "$LN_S" = "ln -s"; then
3937 echo "$as_me:$LINENO: result: yes" >&5
3938echo "${ECHO_T}yes" >&6
3939else
3940 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3941echo "${ECHO_T}no, using $LN_S" >&6
3942fi
3943
John Criswell47fdd832003-07-14 16:52:07 +00003944echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3945echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003946if test "${lt_cv_deplibs_check_method+set}" = set; then
3947 echo $ECHO_N "(cached) $ECHO_C" >&6
3948else
3949 lt_cv_file_magic_cmd='$MAGIC_CMD'
3950lt_cv_file_magic_test_file=
3951lt_cv_deplibs_check_method='unknown'
3952# Need to set the preceding variable on all platforms that support
3953# interlibrary dependencies.
3954# 'none' -- dependencies not supported.
3955# `unknown' -- same as none, but documents that we really don't know.
3956# 'pass_all' -- all dependencies passed with no checks.
3957# 'test_compile' -- check by making test program.
3958# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003959# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003960# If you have `file' or equivalent on your system and you're not sure
3961# whether `pass_all' will *always* work, you probably want this one.
3962
3963case $host_os in
3964aix4* | aix5*)
3965 lt_cv_deplibs_check_method=pass_all
3966 ;;
3967
3968beos*)
3969 lt_cv_deplibs_check_method=pass_all
3970 ;;
3971
3972bsdi4*)
3973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3974 lt_cv_file_magic_cmd='/usr/bin/file -L'
3975 lt_cv_file_magic_test_file=/shlib/libc.so
3976 ;;
3977
3978cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003979 # win32_libid is a shell function defined in ltmain.sh
3980 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3981 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003982 ;;
3983
3984darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003985 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003986 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3987 lt_cv_file_magic_cmd='/usr/bin/file -L'
3988 case "$host_os" in
3989 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003990 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003991 ;;
3992 *) # Darwin 1.3 on
3993 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3994 ;;
3995 esac
John Criswell47fdd832003-07-14 16:52:07 +00003996 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003997 ;;
3998
3999freebsd*)
4000 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4001 case $host_cpu in
4002 i*86 )
4003 # Not sure whether the presence of OpenBSD here was a mistake.
4004 # Let's accept both of them until this is cleared up.
4005 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4006 lt_cv_file_magic_cmd=/usr/bin/file
4007 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4008 ;;
4009 esac
4010 else
4011 lt_cv_deplibs_check_method=pass_all
4012 fi
4013 ;;
4014
4015gnu*)
4016 lt_cv_deplibs_check_method=pass_all
4017 ;;
4018
John Criswell47fdd832003-07-14 16:52:07 +00004019hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004020 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004021 case "$host_cpu" in
4022 ia64*)
4023 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4024 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4025 ;;
4026 hppa*64*)
4027 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]'
4028 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4029 ;;
4030 *)
4031 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4032 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4033 ;;
4034 esac
John Criswell7a73b802003-06-30 21:59:07 +00004035 ;;
4036
John Criswell47fdd832003-07-14 16:52:07 +00004037irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004038 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004039 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004040 # this will be overridden with pass_all, but let us keep it just in case
4041 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4042 ;;
4043 *)
4044 case $LD in
4045 *-32|*"-32 ") libmagic=32-bit;;
4046 *-n32|*"-n32 ") libmagic=N32;;
4047 *-64|*"-64 ") libmagic=64-bit;;
4048 *) libmagic=never-match;;
4049 esac
4050 # this will be overridden with pass_all, but let us keep it just in case
4051 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4052 ;;
4053 esac
4054 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4055 lt_cv_deplibs_check_method=pass_all
4056 ;;
4057
4058# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004059linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004060 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004061 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004062 lt_cv_deplibs_check_method=pass_all ;;
4063 *)
4064 # glibc up to 2.1.1 does not perform some relocations on ARM
4065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4066 esac
4067 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4068 ;;
4069
4070netbsd*)
4071 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004073 else
John Criswell47fdd832003-07-14 16:52:07 +00004074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004075 fi
4076 ;;
4077
4078newos6*)
4079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4080 lt_cv_file_magic_cmd=/usr/bin/file
4081 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4082 ;;
4083
John Criswell47fdd832003-07-14 16:52:07 +00004084nto-qnx)
4085 lt_cv_deplibs_check_method=unknown
4086 ;;
4087
John Criswell7a73b802003-06-30 21:59:07 +00004088openbsd*)
4089 lt_cv_file_magic_cmd=/usr/bin/file
4090 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4093 else
4094 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4095 fi
4096 ;;
4097
4098osf3* | osf4* | osf5*)
4099 # this will be overridden with pass_all, but let us keep it just in case
4100 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4101 lt_cv_file_magic_test_file=/shlib/libc.so
4102 lt_cv_deplibs_check_method=pass_all
4103 ;;
4104
4105sco3.2v5*)
4106 lt_cv_deplibs_check_method=pass_all
4107 ;;
4108
4109solaris*)
4110 lt_cv_deplibs_check_method=pass_all
4111 lt_cv_file_magic_test_file=/lib/libc.so
4112 ;;
4113
John Criswell7a73b802003-06-30 21:59:07 +00004114sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4115 case $host_vendor in
4116 motorola)
4117 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]'
4118 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4119 ;;
4120 ncr)
4121 lt_cv_deplibs_check_method=pass_all
4122 ;;
4123 sequent)
4124 lt_cv_file_magic_cmd='/bin/file'
4125 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4126 ;;
4127 sni)
4128 lt_cv_file_magic_cmd='/bin/file'
4129 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4130 lt_cv_file_magic_test_file=/lib/libc.so
4131 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004132 siemens)
4133 lt_cv_deplibs_check_method=pass_all
4134 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004135 esac
4136 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004137
4138sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4139 lt_cv_deplibs_check_method=pass_all
4140 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004141esac
4142
4143fi
4144echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4145echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4146file_magic_cmd=$lt_cv_file_magic_cmd
4147deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004148test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004149
4150
4151
4152
John Criswell47fdd832003-07-14 16:52:07 +00004153# If no C compiler was specified, use CC.
4154LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004155
John Criswell47fdd832003-07-14 16:52:07 +00004156# Allow CC to be a program name with arguments.
4157compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004158
John Criswell47fdd832003-07-14 16:52:07 +00004159# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4160if test "${enable_libtool_lock+set}" = set; then
4161 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004162
John Criswell47fdd832003-07-14 16:52:07 +00004163fi;
4164test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004165
John Criswell47fdd832003-07-14 16:52:07 +00004166# Some flags need to be propagated to the compiler or linker for good
4167# libtool support.
4168case $host in
4169ia64-*-hpux*)
4170 # Find out which ABI we are using.
4171 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004172 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4173 (eval $ac_compile) 2>&5
4174 ac_status=$?
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004177 case `/usr/bin/file conftest.$ac_objext` in
4178 *ELF-32*)
4179 HPUX_IA64_MODE="32"
4180 ;;
4181 *ELF-64*)
4182 HPUX_IA64_MODE="64"
4183 ;;
4184 esac
4185 fi
4186 rm -rf conftest*
4187 ;;
4188*-*-irix6*)
4189 # Find out which ABI we are using.
Reid Spencer4d68ba22004-09-07 16:35:45 +00004190 echo '#line 4190 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4192 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004193 ac_status=$?
4194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004195 (exit $ac_status); }; then
4196 if test "$lt_cv_prog_gnu_ld" = yes; then
4197 case `/usr/bin/file conftest.$ac_objext` in
4198 *32-bit*)
4199 LD="${LD-ld} -melf32bsmip"
4200 ;;
4201 *N32*)
4202 LD="${LD-ld} -melf32bmipn32"
4203 ;;
4204 *64-bit*)
4205 LD="${LD-ld} -melf64bmip"
4206 ;;
4207 esac
4208 else
4209 case `/usr/bin/file conftest.$ac_objext` in
4210 *32-bit*)
4211 LD="${LD-ld} -32"
4212 ;;
4213 *N32*)
4214 LD="${LD-ld} -n32"
4215 ;;
4216 *64-bit*)
4217 LD="${LD-ld} -64"
4218 ;;
4219 esac
4220 fi
4221 fi
4222 rm -rf conftest*
4223 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004224
John Criswell47fdd832003-07-14 16:52:07 +00004225x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4226 # Find out which ABI we are using.
4227 echo 'int i;' > conftest.$ac_ext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>&5
4230 ac_status=$?
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); }; then
4233 case "`/usr/bin/file conftest.o`" in
4234 *32-bit*)
4235 case $host in
4236 x86_64-*linux*)
4237 LD="${LD-ld} -m elf_i386"
4238 ;;
4239 ppc64-*linux*)
4240 LD="${LD-ld} -m elf32ppclinux"
4241 ;;
4242 s390x-*linux*)
4243 LD="${LD-ld} -m elf_s390"
4244 ;;
4245 sparc64-*linux*)
4246 LD="${LD-ld} -m elf32_sparc"
4247 ;;
4248 esac
4249 ;;
4250 *64-bit*)
4251 case $host in
4252 x86_64-*linux*)
4253 LD="${LD-ld} -m elf_x86_64"
4254 ;;
4255 ppc*-*linux*|powerpc*-*linux*)
4256 LD="${LD-ld} -m elf64ppc"
4257 ;;
4258 s390*-*linux*)
4259 LD="${LD-ld} -m elf64_s390"
4260 ;;
4261 sparc*-*linux*)
4262 LD="${LD-ld} -m elf64_sparc"
4263 ;;
4264 esac
4265 ;;
4266 esac
4267 fi
4268 rm -rf conftest*
4269 ;;
4270
4271*-*-sco3.2v5*)
4272 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4273 SAVE_CFLAGS="$CFLAGS"
4274 CFLAGS="$CFLAGS -belf"
4275 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4276echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4277if test "${lt_cv_cc_needs_belf+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279else
4280 ac_ext=c
4281ac_cpp='$CPP $CPPFLAGS'
4282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285
4286 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004287/* confdefs.h. */
4288_ACEOF
4289cat confdefs.h >>conftest.$ac_ext
4290cat >>conftest.$ac_ext <<_ACEOF
4291/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004292
John Criswell47fdd832003-07-14 16:52:07 +00004293int
4294main ()
John Criswell7a73b802003-06-30 21:59:07 +00004295{
John Criswell7a73b802003-06-30 21:59:07 +00004296
John Criswell47fdd832003-07-14 16:52:07 +00004297 ;
4298 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004299}
John Criswell47fdd832003-07-14 16:52:07 +00004300_ACEOF
4301rm -f conftest.$ac_objext conftest$ac_exeext
4302if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00004303 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004304 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00004305 grep -v '^ *+' conftest.er1 >conftest.err
4306 rm -f conftest.er1
4307 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004309 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00004310 { ac_try='test -z "$ac_c_werror_flag"
4311 || test ! -s conftest.err'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4313 (eval $ac_try) 2>&5
4314 ac_status=$?
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; } &&
4317 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00004318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4319 (eval $ac_try) 2>&5
4320 ac_status=$?
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004324else
John Criswell47fdd832003-07-14 16:52:07 +00004325 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004326sed 's/^/| /' conftest.$ac_ext >&5
4327
John Criswell47fdd832003-07-14 16:52:07 +00004328lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004329fi
Reid Spencer17041682004-09-05 17:48:32 +00004330rm -f conftest.err conftest.$ac_objext \
4331 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004332 ac_ext=c
4333ac_cpp='$CPP $CPPFLAGS'
4334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4336ac_compiler_gnu=$ac_cv_c_compiler_gnu
4337
John Criswell7a73b802003-06-30 21:59:07 +00004338fi
John Criswell47fdd832003-07-14 16:52:07 +00004339echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4340echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4341 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4342 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4343 CFLAGS="$SAVE_CFLAGS"
4344 fi
4345 ;;
4346
4347esac
4348
4349need_locks="$enable_libtool_lock"
4350
John Criswell7a73b802003-06-30 21:59:07 +00004351
4352
4353echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4354echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4355if test "${ac_cv_header_stdc+set}" = set; then
4356 echo $ECHO_N "(cached) $ECHO_C" >&6
4357else
4358 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004359/* confdefs.h. */
4360_ACEOF
4361cat confdefs.h >>conftest.$ac_ext
4362cat >>conftest.$ac_ext <<_ACEOF
4363/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004364#include <stdlib.h>
4365#include <stdarg.h>
4366#include <string.h>
4367#include <float.h>
4368
John Criswell0c38eaf2003-09-10 15:17:25 +00004369int
4370main ()
4371{
4372
4373 ;
4374 return 0;
4375}
John Criswell7a73b802003-06-30 21:59:07 +00004376_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004377rm -f conftest.$ac_objext
4378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00004379 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004380 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00004381 grep -v '^ *+' conftest.er1 >conftest.err
4382 rm -f conftest.er1
4383 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004385 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00004386 { ac_try='test -z "$ac_c_werror_flag"
4387 || test ! -s conftest.err'
4388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4389 (eval $ac_try) 2>&5
4390 ac_status=$?
4391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392 (exit $ac_status); }; } &&
4393 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00004394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 (eval $ac_try) 2>&5
4396 ac_status=$?
4397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4398 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004399 ac_cv_header_stdc=yes
4400else
4401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004402sed 's/^/| /' conftest.$ac_ext >&5
4403
4404ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004405fi
Reid Spencer17041682004-09-05 17:48:32 +00004406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004407
4408if test $ac_cv_header_stdc = yes; then
4409 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4410 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004411/* confdefs.h. */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
4415/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004416#include <string.h>
4417
4418_ACEOF
4419if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004420 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004421 :
4422else
4423 ac_cv_header_stdc=no
4424fi
4425rm -f conftest*
4426
4427fi
4428
4429if test $ac_cv_header_stdc = yes; then
4430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4431 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004432/* confdefs.h. */
4433_ACEOF
4434cat confdefs.h >>conftest.$ac_ext
4435cat >>conftest.$ac_ext <<_ACEOF
4436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004437#include <stdlib.h>
4438
4439_ACEOF
4440if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004441 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004442 :
4443else
4444 ac_cv_header_stdc=no
4445fi
4446rm -f conftest*
4447
4448fi
4449
4450if test $ac_cv_header_stdc = yes; then
4451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4452 if test "$cross_compiling" = yes; then
4453 :
4454else
4455 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004456/* confdefs.h. */
4457_ACEOF
4458cat confdefs.h >>conftest.$ac_ext
4459cat >>conftest.$ac_ext <<_ACEOF
4460/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004461#include <ctype.h>
4462#if ((' ' & 0x0FF) == 0x020)
4463# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4464# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4465#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004466# define ISLOWER(c) \
Reid Spencer17041682004-09-05 17:48:32 +00004467 (('a' <= (c) && (c) <= 'i') \
4468 || ('j' <= (c) && (c) <= 'r') \
4469 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004470# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4471#endif
4472
4473#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4474int
4475main ()
4476{
4477 int i;
4478 for (i = 0; i < 256; i++)
4479 if (XOR (islower (i), ISLOWER (i))
Reid Spencer17041682004-09-05 17:48:32 +00004480 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00004481 exit(2);
4482 exit (0);
4483}
4484_ACEOF
4485rm -f conftest$ac_exeext
4486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4487 (eval $ac_link) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4492 (eval $ac_try) 2>&5
4493 ac_status=$?
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; }; then
4496 :
4497else
4498 echo "$as_me: program exited with status $ac_status" >&5
4499echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004500sed 's/^/| /' conftest.$ac_ext >&5
4501
John Criswell7a73b802003-06-30 21:59:07 +00004502( exit $ac_status )
4503ac_cv_header_stdc=no
4504fi
Reid Spencer17041682004-09-05 17:48:32 +00004505rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004506fi
4507fi
4508fi
4509echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4510echo "${ECHO_T}$ac_cv_header_stdc" >&6
4511if test $ac_cv_header_stdc = yes; then
4512
4513cat >>confdefs.h <<\_ACEOF
4514#define STDC_HEADERS 1
4515_ACEOF
4516
4517fi
4518
4519# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer17041682004-09-05 17:48:32 +00004530 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00004531do
4532as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4533echo "$as_me:$LINENO: checking for $ac_header" >&5
4534echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4535if eval "test \"\${$as_ac_Header+set}\" = set"; then
4536 echo $ECHO_N "(cached) $ECHO_C" >&6
4537else
4538 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004539/* confdefs.h. */
4540_ACEOF
4541cat confdefs.h >>conftest.$ac_ext
4542cat >>conftest.$ac_ext <<_ACEOF
4543/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004544$ac_includes_default
4545
4546#include <$ac_header>
4547_ACEOF
4548rm -f conftest.$ac_objext
4549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00004550 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004551 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00004552 grep -v '^ *+' conftest.er1 >conftest.err
4553 rm -f conftest.er1
4554 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00004557 { ac_try='test -z "$ac_c_werror_flag"
4558 || test ! -s conftest.err'
4559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4560 (eval $ac_try) 2>&5
4561 ac_status=$?
4562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4563 (exit $ac_status); }; } &&
4564 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4566 (eval $ac_try) 2>&5
4567 ac_status=$?
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }; }; then
4570 eval "$as_ac_Header=yes"
4571else
4572 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004573sed 's/^/| /' conftest.$ac_ext >&5
4574
John Criswell7a73b802003-06-30 21:59:07 +00004575eval "$as_ac_Header=no"
4576fi
Reid Spencer17041682004-09-05 17:48:32 +00004577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004578fi
4579echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4580echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4581if test `eval echo '${'$as_ac_Header'}'` = yes; then
4582 cat >>confdefs.h <<_ACEOF
4583#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4584_ACEOF
4585
4586fi
4587
4588done
4589
4590
4591
4592for ac_header in dlfcn.h
4593do
4594as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4595if eval "test \"\${$as_ac_Header+set}\" = set"; then
4596 echo "$as_me:$LINENO: checking for $ac_header" >&5
4597echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4598if eval "test \"\${$as_ac_Header+set}\" = set"; then
4599 echo $ECHO_N "(cached) $ECHO_C" >&6
4600fi
4601echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4602echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4603else
4604 # Is the header compilable?
4605echo "$as_me:$LINENO: checking $ac_header usability" >&5
4606echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4607cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004608/* confdefs.h. */
4609_ACEOF
4610cat confdefs.h >>conftest.$ac_ext
4611cat >>conftest.$ac_ext <<_ACEOF
4612/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004613$ac_includes_default
4614#include <$ac_header>
4615_ACEOF
4616rm -f conftest.$ac_objext
4617if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00004618 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004619 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00004620 grep -v '^ *+' conftest.er1 >conftest.err
4621 rm -f conftest.er1
4622 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00004625 { ac_try='test -z "$ac_c_werror_flag"
4626 || test ! -s conftest.err'
4627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4628 (eval $ac_try) 2>&5
4629 ac_status=$?
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); }; } &&
4632 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 (eval $ac_try) 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }; }; then
4638 ac_header_compiler=yes
4639else
4640 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004641sed 's/^/| /' conftest.$ac_ext >&5
4642
John Criswell7a73b802003-06-30 21:59:07 +00004643ac_header_compiler=no
4644fi
Reid Spencer17041682004-09-05 17:48:32 +00004645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004646echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4647echo "${ECHO_T}$ac_header_compiler" >&6
4648
4649# Is the header present?
4650echo "$as_me:$LINENO: checking $ac_header presence" >&5
4651echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4652cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004653/* confdefs.h. */
4654_ACEOF
4655cat confdefs.h >>conftest.$ac_ext
4656cat >>conftest.$ac_ext <<_ACEOF
4657/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004658#include <$ac_header>
4659_ACEOF
4660if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4662 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004663 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004664 rm -f conftest.er1
4665 cat conftest.err >&5
4666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4667 (exit $ac_status); } >/dev/null; then
4668 if test -s conftest.err; then
4669 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00004670 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004671 else
4672 ac_cpp_err=
4673 fi
4674else
4675 ac_cpp_err=yes
4676fi
4677if test -z "$ac_cpp_err"; then
4678 ac_header_preproc=yes
4679else
4680 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004681sed 's/^/| /' conftest.$ac_ext >&5
4682
John Criswell7a73b802003-06-30 21:59:07 +00004683 ac_header_preproc=no
4684fi
4685rm -f conftest.err conftest.$ac_ext
4686echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4687echo "${ECHO_T}$ac_header_preproc" >&6
4688
4689# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +00004690case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4691 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +00004692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4693echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +00004694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4695echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4696 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +00004697 ;;
Reid Spencer17041682004-09-05 17:48:32 +00004698 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +00004699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4700echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +00004701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4702echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4704echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4706echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +00004707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4708echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +00004709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4710echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +00004711 (
4712 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +00004713## ----------------------------------- ##
4714## Report this to llvmbugs@cs.uiuc.edu ##
4715## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00004716_ASBOX
4717 ) |
4718 sed "s/^/$as_me: WARNING: /" >&2
4719 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004720esac
4721echo "$as_me:$LINENO: checking for $ac_header" >&5
4722echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4723if eval "test \"\${$as_ac_Header+set}\" = set"; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4725else
Reid Spencer17041682004-09-05 17:48:32 +00004726 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00004727fi
4728echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4729echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4730
4731fi
4732if test `eval echo '${'$as_ac_Header'}'` = yes; then
4733 cat >>confdefs.h <<_ACEOF
4734#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4735_ACEOF
4736
4737fi
4738
4739done
4740
John Criswell47fdd832003-07-14 16:52:07 +00004741ac_ext=cc
4742ac_cpp='$CXXCPP $CPPFLAGS'
4743ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4744ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4745ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4746echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4747echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4748if test -z "$CXXCPP"; then
4749 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751else
John Criswell47fdd832003-07-14 16:52:07 +00004752 # Double quotes because CXXCPP needs to be expanded
4753 for CXXCPP in "$CXX -E" "/lib/cpp"
4754 do
4755 ac_preproc_ok=false
4756for ac_cxx_preproc_warn_flag in '' yes
4757do
4758 # Use a header file that comes with gcc, so configuring glibc
4759 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004760 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4761 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004762 # On the NeXT, cc -E runs the code through the compiler's parser,
4763 # not just through cpp. "Syntax error" is here to catch this case.
4764 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004765/* confdefs.h. */
4766_ACEOF
4767cat confdefs.h >>conftest.$ac_ext
4768cat >>conftest.$ac_ext <<_ACEOF
4769/* end confdefs.h. */
4770#ifdef __STDC__
4771# include <limits.h>
4772#else
4773# include <assert.h>
4774#endif
Reid Spencer17041682004-09-05 17:48:32 +00004775 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004776_ACEOF
4777if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4778 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4779 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004780 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004781 rm -f conftest.er1
4782 cat conftest.err >&5
4783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784 (exit $ac_status); } >/dev/null; then
4785 if test -s conftest.err; then
4786 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00004787 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004788 else
John Criswell47fdd832003-07-14 16:52:07 +00004789 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004790 fi
John Criswell47fdd832003-07-14 16:52:07 +00004791else
4792 ac_cpp_err=yes
4793fi
4794if test -z "$ac_cpp_err"; then
4795 :
4796else
4797 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004798sed 's/^/| /' conftest.$ac_ext >&5
4799
John Criswell47fdd832003-07-14 16:52:07 +00004800 # Broken: fails on valid input.
4801continue
4802fi
4803rm -f conftest.err conftest.$ac_ext
4804
4805 # OK, works on sane cases. Now check whether non-existent headers
4806 # can be detected and how.
4807 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004808/* confdefs.h. */
4809_ACEOF
4810cat confdefs.h >>conftest.$ac_ext
4811cat >>conftest.$ac_ext <<_ACEOF
4812/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004813#include <ac_nonexistent.h>
4814_ACEOF
4815if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4816 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4817 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004818 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004819 rm -f conftest.er1
4820 cat conftest.err >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); } >/dev/null; then
4823 if test -s conftest.err; then
4824 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00004825 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004826 else
4827 ac_cpp_err=
4828 fi
4829else
4830 ac_cpp_err=yes
4831fi
4832if test -z "$ac_cpp_err"; then
4833 # Broken: success on invalid input.
4834continue
4835else
4836 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004837sed 's/^/| /' conftest.$ac_ext >&5
4838
John Criswell47fdd832003-07-14 16:52:07 +00004839 # Passes both tests.
4840ac_preproc_ok=:
4841break
4842fi
4843rm -f conftest.err conftest.$ac_ext
4844
4845done
4846# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4847rm -f conftest.err conftest.$ac_ext
4848if $ac_preproc_ok; then
4849 break
John Criswell7a73b802003-06-30 21:59:07 +00004850fi
4851
John Criswell47fdd832003-07-14 16:52:07 +00004852 done
4853 ac_cv_prog_CXXCPP=$CXXCPP
4854
4855fi
4856 CXXCPP=$ac_cv_prog_CXXCPP
4857else
4858 ac_cv_prog_CXXCPP=$CXXCPP
4859fi
4860echo "$as_me:$LINENO: result: $CXXCPP" >&5
4861echo "${ECHO_T}$CXXCPP" >&6
4862ac_preproc_ok=false
4863for ac_cxx_preproc_warn_flag in '' yes
4864do
4865 # Use a header file that comes with gcc, so configuring glibc
4866 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4868 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004869 # On the NeXT, cc -E runs the code through the compiler's parser,
4870 # not just through cpp. "Syntax error" is here to catch this case.
4871 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004872/* confdefs.h. */
4873_ACEOF
4874cat confdefs.h >>conftest.$ac_ext
4875cat >>conftest.$ac_ext <<_ACEOF
4876/* end confdefs.h. */
4877#ifdef __STDC__
4878# include <limits.h>
4879#else
4880# include <assert.h>
4881#endif
Reid Spencer17041682004-09-05 17:48:32 +00004882 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004883_ACEOF
4884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4886 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004887 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004888 rm -f conftest.er1
4889 cat conftest.err >&5
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); } >/dev/null; then
4892 if test -s conftest.err; then
4893 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00004894 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004895 else
4896 ac_cpp_err=
4897 fi
4898else
4899 ac_cpp_err=yes
4900fi
4901if test -z "$ac_cpp_err"; then
4902 :
4903else
4904 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004905sed 's/^/| /' conftest.$ac_ext >&5
4906
John Criswell47fdd832003-07-14 16:52:07 +00004907 # Broken: fails on valid input.
4908continue
4909fi
4910rm -f conftest.err conftest.$ac_ext
4911
4912 # OK, works on sane cases. Now check whether non-existent headers
4913 # can be detected and how.
4914 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004915/* confdefs.h. */
4916_ACEOF
4917cat confdefs.h >>conftest.$ac_ext
4918cat >>conftest.$ac_ext <<_ACEOF
4919/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004920#include <ac_nonexistent.h>
4921_ACEOF
4922if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4923 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4924 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004925 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } >/dev/null; then
4930 if test -s conftest.err; then
4931 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00004932 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004933 else
4934 ac_cpp_err=
4935 fi
4936else
4937 ac_cpp_err=yes
4938fi
4939if test -z "$ac_cpp_err"; then
4940 # Broken: success on invalid input.
4941continue
4942else
4943 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004944sed 's/^/| /' conftest.$ac_ext >&5
4945
John Criswell47fdd832003-07-14 16:52:07 +00004946 # Passes both tests.
4947ac_preproc_ok=:
4948break
4949fi
4950rm -f conftest.err conftest.$ac_ext
4951
4952done
4953# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4954rm -f conftest.err conftest.$ac_ext
4955if $ac_preproc_ok; then
4956 :
4957else
John Criswell0c38eaf2003-09-10 15:17:25 +00004958 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4959See \`config.log' for more details." >&5
4960echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4961See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004962 { (exit 1); exit 1; }; }
4963fi
4964
4965ac_ext=cc
4966ac_cpp='$CXXCPP $CPPFLAGS'
4967ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4970
4971
4972ac_ext=f
4973ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4974ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4976if test -n "$ac_tool_prefix"; then
Reid Spencer17041682004-09-05 17:48:32 +00004977 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 +00004978 do
4979 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4980set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4981echo "$as_me:$LINENO: checking for $ac_word" >&5
4982echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4983if test "${ac_cv_prog_F77+set}" = set; then
4984 echo $ECHO_N "(cached) $ECHO_C" >&6
4985else
4986 if test -n "$F77"; then
4987 ac_cv_prog_F77="$F77" # Let the user override the test.
4988else
4989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990for as_dir in $PATH
4991do
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
4999 fi
5000done
5001done
5002
5003fi
5004fi
5005F77=$ac_cv_prog_F77
5006if test -n "$F77"; then
5007 echo "$as_me:$LINENO: result: $F77" >&5
5008echo "${ECHO_T}$F77" >&6
5009else
5010 echo "$as_me:$LINENO: result: no" >&5
5011echo "${ECHO_T}no" >&6
5012fi
5013
5014 test -n "$F77" && break
5015 done
5016fi
5017if test -z "$F77"; then
5018 ac_ct_F77=$F77
Reid Spencer17041682004-09-05 17:48:32 +00005019 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 +00005020do
5021 # Extract the first word of "$ac_prog", so it can be a program name with args.
5022set dummy $ac_prog; ac_word=$2
5023echo "$as_me:$LINENO: checking for $ac_word" >&5
5024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5025if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027else
5028 if test -n "$ac_ct_F77"; then
5029 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5030else
5031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032for as_dir in $PATH
5033do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5038 ac_cv_prog_ac_ct_F77="$ac_prog"
5039 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5041 fi
5042done
5043done
5044
5045fi
5046fi
5047ac_ct_F77=$ac_cv_prog_ac_ct_F77
5048if test -n "$ac_ct_F77"; then
5049 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5050echo "${ECHO_T}$ac_ct_F77" >&6
5051else
5052 echo "$as_me:$LINENO: result: no" >&5
5053echo "${ECHO_T}no" >&6
5054fi
5055
5056 test -n "$ac_ct_F77" && break
5057done
5058
5059 F77=$ac_ct_F77
5060fi
5061
5062
5063# Provide some information about the compiler.
Reid Spencer4d68ba22004-09-07 16:35:45 +00005064echo "$as_me:5064:" \
John Criswell47fdd832003-07-14 16:52:07 +00005065 "checking for Fortran 77 compiler version" >&5
5066ac_compiler=`set X $ac_compile; echo $2`
5067{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5068 (eval $ac_compiler --version </dev/null >&5) 2>&5
5069 ac_status=$?
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); }
5072{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5073 (eval $ac_compiler -v </dev/null >&5) 2>&5
5074 ac_status=$?
5075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5076 (exit $ac_status); }
5077{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5078 (eval $ac_compiler -V </dev/null >&5) 2>&5
5079 ac_status=$?
5080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5081 (exit $ac_status); }
Reid Spencer17041682004-09-05 17:48:32 +00005082rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00005083
5084# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer17041682004-09-05 17:48:32 +00005085# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00005086ac_save_ext=$ac_ext
5087ac_ext=F
5088echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5089echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5090if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5091 echo $ECHO_N "(cached) $ECHO_C" >&6
5092else
5093 cat >conftest.$ac_ext <<_ACEOF
5094 program main
5095#ifndef __GNUC__
5096 choke me
5097#endif
5098
5099 end
5100_ACEOF
5101rm -f conftest.$ac_objext
5102if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00005103 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005104 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00005105 grep -v '^ *+' conftest.er1 >conftest.err
5106 rm -f conftest.er1
5107 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00005110 { ac_try='test -z "$ac_f77_werror_flag"
5111 || test ! -s conftest.err'
5112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5113 (eval $ac_try) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }; } &&
5117 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5119 (eval $ac_try) 2>&5
5120 ac_status=$?
5121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5122 (exit $ac_status); }; }; then
5123 ac_compiler_gnu=yes
5124else
5125 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005126sed 's/^/| /' conftest.$ac_ext >&5
5127
John Criswell47fdd832003-07-14 16:52:07 +00005128ac_compiler_gnu=no
5129fi
Reid Spencer17041682004-09-05 17:48:32 +00005130rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005131ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5132
5133fi
5134echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5135echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5136ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005137ac_test_FFLAGS=${FFLAGS+set}
5138ac_save_FFLAGS=$FFLAGS
5139FFLAGS=
5140echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5141echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5142if test "${ac_cv_prog_f77_g+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144else
5145 FFLAGS=-g
5146cat >conftest.$ac_ext <<_ACEOF
5147 program main
5148
5149 end
5150_ACEOF
5151rm -f conftest.$ac_objext
5152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00005153 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005154 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00005155 grep -v '^ *+' conftest.er1 >conftest.err
5156 rm -f conftest.er1
5157 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00005160 { ac_try='test -z "$ac_f77_werror_flag"
5161 || test ! -s conftest.err'
5162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 (eval $ac_try) 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }; } &&
5167 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5169 (eval $ac_try) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); }; }; then
5173 ac_cv_prog_f77_g=yes
5174else
5175 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005176sed 's/^/| /' conftest.$ac_ext >&5
5177
John Criswell47fdd832003-07-14 16:52:07 +00005178ac_cv_prog_f77_g=no
5179fi
Reid Spencer17041682004-09-05 17:48:32 +00005180rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005181
5182fi
5183echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5184echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5185if test "$ac_test_FFLAGS" = set; then
5186 FFLAGS=$ac_save_FFLAGS
5187elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer17041682004-09-05 17:48:32 +00005188 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005189 FFLAGS="-g -O2"
5190 else
5191 FFLAGS="-g"
5192 fi
5193else
Reid Spencer17041682004-09-05 17:48:32 +00005194 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005195 FFLAGS="-O2"
5196 else
5197 FFLAGS=
5198 fi
5199fi
Reid Spencer17041682004-09-05 17:48:32 +00005200
5201G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00005202ac_ext=c
5203ac_cpp='$CPP $CPPFLAGS'
5204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5206ac_compiler_gnu=$ac_cv_c_compiler_gnu
5207
5208
5209
5210# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5211
5212# find the maximum length of command line arguments
5213echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5214echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5215if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5216 echo $ECHO_N "(cached) $ECHO_C" >&6
5217else
5218 i=0
5219 testring="ABCD"
5220
5221 case $build_os in
5222 msdosdjgpp*)
5223 # On DJGPP, this test can blow up pretty badly due to problems in libc
5224 # (any single argument exceeding 2000 bytes causes a buffer overrun
5225 # during glob expansion). Even if it were fixed, the result of this
5226 # check would be larger than it should be.
5227 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5228 ;;
5229
5230 gnu*)
5231 # Under GNU Hurd, this test is not required because there is
5232 # no limit to the length of command line arguments.
5233 # Libtool will interpret -1 as no limit whatsoever
5234 lt_cv_sys_max_cmd_len=-1;
5235 ;;
5236
5237 cygwin* | mingw*)
5238 # On Win9x/ME, this test blows up -- it succeeds, but takes
5239 # about 5 minutes as the teststring grows exponentially.
5240 # Worse, since 9x/ME are not pre-emptively multitasking,
5241 # you end up with a "frozen" computer, even though with patience
5242 # the test eventually succeeds (with a max line length of 256k).
5243 # Instead, let's just punt: use the minimum linelength reported by
5244 # all of the supported platforms: 8192 (on NT/2K/XP).
5245 lt_cv_sys_max_cmd_len=8192;
5246 ;;
5247
5248 *)
5249 # If test is not a shell built-in, we'll probably end up computing a
5250 # maximum length that is only half of the actual maximum length, but
5251 # we can't tell.
5252 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5253 = "XX$testring") >/dev/null 2>&1 &&
5254 new_result=`expr "X$testring" : ".*" 2>&1` &&
5255 lt_cv_sys_max_cmd_len=$new_result &&
5256 test $i != 17 # 1/2 MB should be enough
5257 do
5258 i=`expr $i + 1`
5259 testring=$testring$testring
5260 done
5261 testring=
5262 # Add a significant safety factor because C++ compilers can tack on massive
5263 # amounts of additional arguments before passing them to the linker.
5264 # It appears as though 1/2 is a usable value.
5265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5266 ;;
5267 esac
5268
5269fi
5270
5271if test -n $lt_cv_sys_max_cmd_len ; then
5272 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5273echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5274else
5275 echo "$as_me:$LINENO: result: none" >&5
5276echo "${ECHO_T}none" >&6
5277fi
5278
5279
5280
5281
5282# Check for command to grab the raw symbol name followed by C symbol from nm.
5283echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5284echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5285if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5286 echo $ECHO_N "(cached) $ECHO_C" >&6
5287else
5288
5289# These are sane defaults that work on at least a few old systems.
5290# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5291
5292# Character class describing NM global symbol codes.
5293symcode='[BCDEGRST]'
5294
5295# Regexp to match symbols that can be accessed directly from C.
5296sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5297
5298# Transform the above into a raw symbol and a C symbol.
5299symxfrm='\1 \2\3 \3'
5300
5301# Transform an extracted symbol line into a proper C declaration
5302lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5303
5304# Transform an extracted symbol line into symbol name and symbol address
5305lt_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'"
5306
5307# Define system-specific variables.
5308case $host_os in
5309aix*)
5310 symcode='[BCDT]'
5311 ;;
5312cygwin* | mingw* | pw32*)
5313 symcode='[ABCDGISTW]'
5314 ;;
5315hpux*) # Its linker distinguishes data from code symbols
5316 if test "$host_cpu" = ia64; then
5317 symcode='[ABCDEGRST]'
5318 fi
5319 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5320 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'"
5321 ;;
5322irix* | nonstopux*)
5323 symcode='[BCDEGRST]'
5324 ;;
5325osf*)
5326 symcode='[BCDEGQRST]'
5327 ;;
5328solaris* | sysv5*)
5329 symcode='[BDT]'
5330 ;;
5331sysv4)
5332 symcode='[DFNSTU]'
5333 ;;
5334esac
5335
5336# Handle CRLF in mingw tool chain
5337opt_cr=
5338case $build_os in
5339mingw*)
5340 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5341 ;;
5342esac
5343
5344# If we're using GNU nm, then use its standard symbol codes.
5345case `$NM -V 2>&1` in
5346*GNU* | *'with BFD'*)
5347 symcode='[ABCDGISTW]' ;;
5348esac
5349
5350# Try without a prefix undercore, then with it.
5351for ac_symprfx in "" "_"; do
5352
5353 # Write the raw and C identifiers.
5354 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5355
5356 # Check to see that the pipe works correctly.
5357 pipe_works=no
5358
5359 rm -f conftest*
5360 cat > conftest.$ac_ext <<EOF
5361#ifdef __cplusplus
5362extern "C" {
5363#endif
5364char nm_test_var;
5365void nm_test_func(){}
5366#ifdef __cplusplus
5367}
5368#endif
5369int main(){nm_test_var='a';nm_test_func();return(0);}
5370EOF
5371
5372 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373 (eval $ac_compile) 2>&5
5374 ac_status=$?
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; then
5377 # Now try to grab the symbols.
5378 nlist=conftest.nm
5379 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5380 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5381 ac_status=$?
5382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); } && test -s "$nlist"; then
5384 # Try sorting and uniquifying the output.
5385 if sort "$nlist" | uniq > "$nlist"T; then
5386 mv -f "$nlist"T "$nlist"
5387 else
5388 rm -f "$nlist"T
5389 fi
5390
5391 # Make sure that we snagged all the symbols we need.
5392 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5393 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5394 cat <<EOF > conftest.$ac_ext
5395#ifdef __cplusplus
5396extern "C" {
5397#endif
5398
5399EOF
5400 # Now generate the symbol file.
5401 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5402
5403 cat <<EOF >> conftest.$ac_ext
5404#if defined (__STDC__) && __STDC__
5405# define lt_ptr_t void *
5406#else
5407# define lt_ptr_t char *
5408# define const
5409#endif
5410
5411/* The mapping between symbol names and symbols. */
5412const struct {
5413 const char *name;
5414 lt_ptr_t address;
5415}
5416lt_preloaded_symbols[] =
5417{
5418EOF
5419 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5420 cat <<\EOF >> conftest.$ac_ext
5421 {0, (lt_ptr_t) 0}
5422};
5423
5424#ifdef __cplusplus
5425}
5426#endif
5427EOF
5428 # Now try linking the two files.
5429 mv conftest.$ac_objext conftstm.$ac_objext
5430 lt_save_LIBS="$LIBS"
5431 lt_save_CFLAGS="$CFLAGS"
5432 LIBS="conftstm.$ac_objext"
5433 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5435 (eval $ac_link) 2>&5
5436 ac_status=$?
5437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5439 pipe_works=yes
5440 fi
5441 LIBS="$lt_save_LIBS"
5442 CFLAGS="$lt_save_CFLAGS"
5443 else
5444 echo "cannot find nm_test_func in $nlist" >&5
5445 fi
5446 else
5447 echo "cannot find nm_test_var in $nlist" >&5
5448 fi
5449 else
5450 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5451 fi
5452 else
5453 echo "$progname: failed program was:" >&5
5454 cat conftest.$ac_ext >&5
5455 fi
5456 rm -f conftest* conftst*
5457
5458 # Do not use the global_symbol_pipe unless it works.
5459 if test "$pipe_works" = yes; then
5460 break
5461 else
5462 lt_cv_sys_global_symbol_pipe=
5463 fi
5464done
5465
5466fi
5467
5468if test -z "$lt_cv_sys_global_symbol_pipe"; then
5469 lt_cv_sys_global_symbol_to_cdecl=
5470fi
5471if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5472 echo "$as_me:$LINENO: result: failed" >&5
5473echo "${ECHO_T}failed" >&6
5474else
5475 echo "$as_me:$LINENO: result: ok" >&5
5476echo "${ECHO_T}ok" >&6
5477fi
5478
5479echo "$as_me:$LINENO: checking for objdir" >&5
5480echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5481if test "${lt_cv_objdir+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5483else
5484 rm -f .libs 2>/dev/null
5485mkdir .libs 2>/dev/null
5486if test -d .libs; then
5487 lt_cv_objdir=.libs
5488else
5489 # MS-DOS does not allow filenames that begin with a dot.
5490 lt_cv_objdir=_libs
5491fi
5492rmdir .libs 2>/dev/null
5493fi
5494echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5495echo "${ECHO_T}$lt_cv_objdir" >&6
5496objdir=$lt_cv_objdir
5497
5498
5499
5500
5501
5502case $host_os in
5503aix3*)
5504 # AIX sometimes has problems with the GCC collect2 program. For some
5505 # reason, if we set the COLLECT_NAMES environment variable, the problems
5506 # vanish in a puff of smoke.
5507 if test "X${COLLECT_NAMES+set}" != Xset; then
5508 COLLECT_NAMES=
5509 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005510 fi
5511 ;;
5512esac
5513
John Criswell47fdd832003-07-14 16:52:07 +00005514# Sed substitution that helps us do robust quoting. It backslashifies
5515# metacharacters that are still active within double-quoted strings.
5516Xsed='sed -e s/^X//'
5517sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5518
5519# Same as above, but do not quote variable references.
5520double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5521
5522# Sed substitution to delay expansion of an escaped shell variable in a
5523# double_quote_subst'ed string.
5524delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5525
5526# Sed substitution to avoid accidental globbing in evaled expressions
5527no_glob_subst='s/\*/\\\*/g'
5528
5529# Constants:
5530rm="rm -f"
5531
5532# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005533default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005534can_build_shared=yes
5535
5536# All known linkers require a `.a' archive for static linking (except M$VC,
5537# which needs '.lib').
5538libext=a
5539ltmain="$ac_aux_dir/ltmain.sh"
5540ofile="$default_ofile"
5541with_gnu_ld="$lt_cv_prog_gnu_ld"
5542
5543if test -n "$ac_tool_prefix"; then
5544 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5545set dummy ${ac_tool_prefix}ar; ac_word=$2
5546echo "$as_me:$LINENO: checking for $ac_word" >&5
5547echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5548if test "${ac_cv_prog_AR+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550else
5551 if test -n "$AR"; then
5552 ac_cv_prog_AR="$AR" # Let the user override the test.
5553else
5554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5555for as_dir in $PATH
5556do
5557 IFS=$as_save_IFS
5558 test -z "$as_dir" && as_dir=.
5559 for ac_exec_ext in '' $ac_executable_extensions; do
5560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5561 ac_cv_prog_AR="${ac_tool_prefix}ar"
5562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5563 break 2
5564 fi
5565done
5566done
5567
5568fi
5569fi
5570AR=$ac_cv_prog_AR
5571if test -n "$AR"; then
5572 echo "$as_me:$LINENO: result: $AR" >&5
5573echo "${ECHO_T}$AR" >&6
5574else
5575 echo "$as_me:$LINENO: result: no" >&5
5576echo "${ECHO_T}no" >&6
5577fi
5578
5579fi
5580if test -z "$ac_cv_prog_AR"; then
5581 ac_ct_AR=$AR
5582 # Extract the first word of "ar", so it can be a program name with args.
5583set dummy ar; ac_word=$2
5584echo "$as_me:$LINENO: checking for $ac_word" >&5
5585echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5586if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5588else
5589 if test -n "$ac_ct_AR"; then
5590 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5591else
5592as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593for as_dir in $PATH
5594do
5595 IFS=$as_save_IFS
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_ac_ct_AR="ar"
5600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 break 2
5602 fi
5603done
5604done
5605
5606 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5607fi
5608fi
5609ac_ct_AR=$ac_cv_prog_ac_ct_AR
5610if test -n "$ac_ct_AR"; then
5611 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5612echo "${ECHO_T}$ac_ct_AR" >&6
5613else
5614 echo "$as_me:$LINENO: result: no" >&5
5615echo "${ECHO_T}no" >&6
5616fi
5617
5618 AR=$ac_ct_AR
5619else
5620 AR="$ac_cv_prog_AR"
5621fi
5622
John Criswell7a73b802003-06-30 21:59:07 +00005623if test -n "$ac_tool_prefix"; then
5624 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5625set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5626echo "$as_me:$LINENO: checking for $ac_word" >&5
5627echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5628if test "${ac_cv_prog_RANLIB+set}" = set; then
5629 echo $ECHO_N "(cached) $ECHO_C" >&6
5630else
5631 if test -n "$RANLIB"; then
5632 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5633else
5634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635for as_dir in $PATH
5636do
5637 IFS=$as_save_IFS
5638 test -z "$as_dir" && as_dir=.
5639 for ac_exec_ext in '' $ac_executable_extensions; do
5640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 break 2
5644 fi
5645done
5646done
5647
5648fi
5649fi
5650RANLIB=$ac_cv_prog_RANLIB
5651if test -n "$RANLIB"; then
5652 echo "$as_me:$LINENO: result: $RANLIB" >&5
5653echo "${ECHO_T}$RANLIB" >&6
5654else
5655 echo "$as_me:$LINENO: result: no" >&5
5656echo "${ECHO_T}no" >&6
5657fi
5658
5659fi
5660if test -z "$ac_cv_prog_RANLIB"; then
5661 ac_ct_RANLIB=$RANLIB
5662 # Extract the first word of "ranlib", so it can be a program name with args.
5663set dummy ranlib; ac_word=$2
5664echo "$as_me:$LINENO: checking for $ac_word" >&5
5665echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5666if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5667 echo $ECHO_N "(cached) $ECHO_C" >&6
5668else
5669 if test -n "$ac_ct_RANLIB"; then
5670 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5671else
5672as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673for as_dir in $PATH
5674do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_ac_ct_RANLIB="ranlib"
5680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683done
5684done
5685
5686 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5687fi
5688fi
5689ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5690if test -n "$ac_ct_RANLIB"; then
5691 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5692echo "${ECHO_T}$ac_ct_RANLIB" >&6
5693else
5694 echo "$as_me:$LINENO: result: no" >&5
5695echo "${ECHO_T}no" >&6
5696fi
5697
5698 RANLIB=$ac_ct_RANLIB
5699else
5700 RANLIB="$ac_cv_prog_RANLIB"
5701fi
5702
5703if test -n "$ac_tool_prefix"; then
5704 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5705set dummy ${ac_tool_prefix}strip; ac_word=$2
5706echo "$as_me:$LINENO: checking for $ac_word" >&5
5707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708if test "${ac_cv_prog_STRIP+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710else
5711 if test -n "$STRIP"; then
5712 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5713else
5714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715for as_dir in $PATH
5716do
5717 IFS=$as_save_IFS
5718 test -z "$as_dir" && as_dir=.
5719 for ac_exec_ext in '' $ac_executable_extensions; do
5720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5721 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5723 break 2
5724 fi
5725done
5726done
5727
5728fi
5729fi
5730STRIP=$ac_cv_prog_STRIP
5731if test -n "$STRIP"; then
5732 echo "$as_me:$LINENO: result: $STRIP" >&5
5733echo "${ECHO_T}$STRIP" >&6
5734else
5735 echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6
5737fi
5738
5739fi
5740if test -z "$ac_cv_prog_STRIP"; then
5741 ac_ct_STRIP=$STRIP
5742 # Extract the first word of "strip", so it can be a program name with args.
5743set dummy strip; ac_word=$2
5744echo "$as_me:$LINENO: checking for $ac_word" >&5
5745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5746if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5747 echo $ECHO_N "(cached) $ECHO_C" >&6
5748else
5749 if test -n "$ac_ct_STRIP"; then
5750 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5751else
5752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5753for as_dir in $PATH
5754do
5755 IFS=$as_save_IFS
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5759 ac_cv_prog_ac_ct_STRIP="strip"
5760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5761 break 2
5762 fi
5763done
5764done
5765
5766 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5767fi
5768fi
5769ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5770if test -n "$ac_ct_STRIP"; then
5771 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5772echo "${ECHO_T}$ac_ct_STRIP" >&6
5773else
5774 echo "$as_me:$LINENO: result: no" >&5
5775echo "${ECHO_T}no" >&6
5776fi
5777
5778 STRIP=$ac_ct_STRIP
5779else
5780 STRIP="$ac_cv_prog_STRIP"
5781fi
5782
5783
John Criswell7a73b802003-06-30 21:59:07 +00005784old_CC="$CC"
5785old_CFLAGS="$CFLAGS"
5786
5787# Set sane defaults for various variables
5788test -z "$AR" && AR=ar
5789test -z "$AR_FLAGS" && AR_FLAGS=cru
5790test -z "$AS" && AS=as
5791test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005792test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005793test -z "$DLLTOOL" && DLLTOOL=dlltool
5794test -z "$LD" && LD=ld
5795test -z "$LN_S" && LN_S="ln -s"
5796test -z "$MAGIC_CMD" && MAGIC_CMD=file
5797test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005798test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005799test -z "$OBJDUMP" && OBJDUMP=objdump
5800test -z "$RANLIB" && RANLIB=:
5801test -z "$STRIP" && STRIP=:
5802test -z "$ac_objext" && ac_objext=o
5803
John Criswell7a73b802003-06-30 21:59:07 +00005804# Determine commands to create old-style static archives.
5805old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5806old_postinstall_cmds='chmod 644 $oldlib'
5807old_postuninstall_cmds=
5808
5809if test -n "$RANLIB"; then
5810 case $host_os in
5811 openbsd*)
5812 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5813 ;;
5814 *)
5815 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5816 ;;
5817 esac
5818 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5819fi
5820
John Criswell47fdd832003-07-14 16:52:07 +00005821# Only perform the check for file, if the check method requires it
5822case $deplibs_check_method in
5823file_magic*)
5824 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5825 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5826echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5827if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005829else
John Criswell47fdd832003-07-14 16:52:07 +00005830 case $MAGIC_CMD in
5831[\\/*] | ?:[\\/]*)
5832 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5833 ;;
5834*)
5835 lt_save_MAGIC_CMD="$MAGIC_CMD"
5836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5837 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5838 for ac_dir in $ac_dummy; do
5839 IFS="$lt_save_ifs"
5840 test -z "$ac_dir" && ac_dir=.
5841 if test -f $ac_dir/${ac_tool_prefix}file; then
5842 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5843 if test -n "$file_magic_test_file"; then
5844 case $deplibs_check_method in
5845 "file_magic "*)
5846 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5848 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5849 $EGREP "$file_magic_regex" > /dev/null; then
5850 :
5851 else
5852 cat <<EOF 1>&2
5853
5854*** Warning: the command libtool uses to detect shared libraries,
5855*** $file_magic_cmd, produces output that libtool cannot recognize.
5856*** The result is that libtool may fail to recognize shared libraries
5857*** as such. This will affect the creation of libtool libraries that
5858*** depend on shared libraries, but programs linked with such libtool
5859*** libraries will work regardless of this problem. Nevertheless, you
5860*** may want to report the problem to your system manager and/or to
5861*** bug-libtool@gnu.org
5862
5863EOF
5864 fi ;;
5865 esac
5866 fi
5867 break
5868 fi
5869 done
5870 IFS="$lt_save_ifs"
5871 MAGIC_CMD="$lt_save_MAGIC_CMD"
5872 ;;
5873esac
John Criswell7a73b802003-06-30 21:59:07 +00005874fi
John Criswell7a73b802003-06-30 21:59:07 +00005875
John Criswell47fdd832003-07-14 16:52:07 +00005876MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5877if test -n "$MAGIC_CMD"; then
5878 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5879echo "${ECHO_T}$MAGIC_CMD" >&6
5880else
5881 echo "$as_me:$LINENO: result: no" >&5
5882echo "${ECHO_T}no" >&6
5883fi
John Criswell7a73b802003-06-30 21:59:07 +00005884
John Criswell47fdd832003-07-14 16:52:07 +00005885if test -z "$lt_cv_path_MAGIC_CMD"; then
5886 if test -n "$ac_tool_prefix"; then
5887 echo "$as_me:$LINENO: checking for file" >&5
5888echo $ECHO_N "checking for file... $ECHO_C" >&6
5889if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5890 echo $ECHO_N "(cached) $ECHO_C" >&6
5891else
5892 case $MAGIC_CMD in
5893[\\/*] | ?:[\\/]*)
5894 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5895 ;;
5896*)
5897 lt_save_MAGIC_CMD="$MAGIC_CMD"
5898 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5899 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5900 for ac_dir in $ac_dummy; do
5901 IFS="$lt_save_ifs"
5902 test -z "$ac_dir" && ac_dir=.
5903 if test -f $ac_dir/file; then
5904 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5905 if test -n "$file_magic_test_file"; then
5906 case $deplibs_check_method in
5907 "file_magic "*)
5908 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5909 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5910 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5911 $EGREP "$file_magic_regex" > /dev/null; then
5912 :
5913 else
5914 cat <<EOF 1>&2
5915
5916*** Warning: the command libtool uses to detect shared libraries,
5917*** $file_magic_cmd, produces output that libtool cannot recognize.
5918*** The result is that libtool may fail to recognize shared libraries
5919*** as such. This will affect the creation of libtool libraries that
5920*** depend on shared libraries, but programs linked with such libtool
5921*** libraries will work regardless of this problem. Nevertheless, you
5922*** may want to report the problem to your system manager and/or to
5923*** bug-libtool@gnu.org
5924
5925EOF
5926 fi ;;
5927 esac
5928 fi
5929 break
5930 fi
5931 done
5932 IFS="$lt_save_ifs"
5933 MAGIC_CMD="$lt_save_MAGIC_CMD"
5934 ;;
5935esac
5936fi
5937
5938MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5939if test -n "$MAGIC_CMD"; then
5940 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5941echo "${ECHO_T}$MAGIC_CMD" >&6
5942else
5943 echo "$as_me:$LINENO: result: no" >&5
5944echo "${ECHO_T}no" >&6
5945fi
5946
5947 else
5948 MAGIC_CMD=:
5949 fi
5950fi
5951
5952 fi
5953 ;;
5954esac
5955
5956enable_dlopen=no
5957enable_win32_dll=no
5958
5959# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5960if test "${enable_libtool_lock+set}" = set; then
5961 enableval="$enable_libtool_lock"
5962
5963fi;
5964test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5965
John Criswell7a73b802003-06-30 21:59:07 +00005966
5967# Check whether --with-pic or --without-pic was given.
5968if test "${with_pic+set}" = set; then
5969 withval="$with_pic"
5970 pic_mode="$withval"
5971else
5972 pic_mode=default
5973fi;
5974test -z "$pic_mode" && pic_mode=default
5975
John Criswell47fdd832003-07-14 16:52:07 +00005976# Use C for the default configuration in the libtool script
5977tagname=
5978lt_save_CC="$CC"
5979ac_ext=c
5980ac_cpp='$CPP $CPPFLAGS'
5981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5983ac_compiler_gnu=$ac_cv_c_compiler_gnu
5984
5985
5986# Source file extension for C test sources.
5987ac_ext=c
5988
5989# Object file extension for compiled C test sources.
5990objext=o
5991objext=$objext
5992
5993# Code to be used in simple compile tests
5994lt_simple_compile_test_code="int some_variable = 0;\n"
5995
5996# Code to be used in simple link tests
5997lt_simple_link_test_code='int main(){return(0);}\n'
5998
5999
6000# If no C compiler was specified, use CC.
6001LTCC=${LTCC-"$CC"}
6002
6003# Allow CC to be a program name with arguments.
6004compiler=$CC
6005
6006
6007#
6008# Check for any special shared library compilation flags.
6009#
6010lt_prog_cc_shlib=
6011if test "$GCC" = no; then
6012 case $host_os in
6013 sco3.2v5*)
6014 lt_prog_cc_shlib='-belf'
6015 ;;
6016 esac
6017fi
6018if test -n "$lt_prog_cc_shlib"; then
6019 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6020echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6021 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6022 else
6023 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6024echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6025 lt_cv_prog_cc_can_build_shared=no
6026 fi
6027fi
6028
6029
6030#
6031# Check to make sure the static flag actually works.
6032#
6033echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6034echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6035if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037else
John Criswell47fdd832003-07-14 16:52:07 +00006038 lt_prog_compiler_static_works=no
6039 save_LDFLAGS="$LDFLAGS"
6040 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6041 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6042 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6043 # The compiler can only warn and ignore the option if not recognized
6044 # So say no if there are warnings
6045 if test -s conftest.err; then
6046 # Append any errors to the config.log.
6047 cat conftest.err 1>&5
6048 else
6049 lt_prog_compiler_static_works=yes
6050 fi
6051 fi
6052 $rm conftest*
6053 LDFLAGS="$save_LDFLAGS"
6054
6055fi
6056echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6057echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6058
6059if test x"$lt_prog_compiler_static_works" = xyes; then
6060 :
6061else
6062 lt_prog_compiler_static=
6063fi
6064
6065
6066
Reid Spencer17041682004-09-05 17:48:32 +00006067## CAVEAT EMPTOR:
6068## There is no encapsulation within the following macros, do not change
6069## the running order or otherwise move them around unless you know exactly
6070## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +00006071
6072lt_prog_compiler_no_builtin_flag=
6073
6074if test "$GCC" = yes; then
6075 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6076
6077 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6078echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6079if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081else
6082 lt_cv_prog_compiler_rtti_exceptions=no
6083 ac_outfile=conftest.$ac_objext
6084 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6085 lt_compiler_flag="-fno-rtti -fno-exceptions"
6086 # Insert the option either (1) after the last *FLAGS variable, or
6087 # (2) before a word containing "conftest.", or (3) at the end.
6088 # Note that $ac_compile itself does not contain backslashes and begins
6089 # with a dollar sign (not a hyphen), so the echo should work correctly.
6090 # The option is referenced via a variable to avoid confusing sed.
6091 lt_compile=`echo "$ac_compile" | $SED \
6092 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6093 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6094 -e 's:$: $lt_compiler_flag:'`
Reid Spencer4d68ba22004-09-07 16:35:45 +00006095 (eval echo "\"\$as_me:6095: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006096 (eval "$lt_compile" 2>conftest.err)
6097 ac_status=$?
6098 cat conftest.err >&5
Reid Spencer4d68ba22004-09-07 16:35:45 +00006099 echo "$as_me:6099: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006100 if (exit $ac_status) && test -s "$ac_outfile"; then
6101 # The compiler can only warn and ignore the option if not recognized
6102 # So say no if there are warnings
6103 if test ! -s conftest.err; then
6104 lt_cv_prog_compiler_rtti_exceptions=yes
6105 fi
6106 fi
6107 $rm conftest*
6108
6109fi
6110echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6111echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6112
6113if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6114 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6115else
6116 :
6117fi
6118
6119fi
6120
6121lt_prog_compiler_wl=
6122lt_prog_compiler_pic=
6123lt_prog_compiler_static=
6124
6125echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6126echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006127
6128 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006129 lt_prog_compiler_wl='-Wl,'
6130 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006131
6132 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006133 aix*)
6134 # All AIX code is PIC.
6135 if test "$host_cpu" = ia64; then
6136 # AIX 5 now supports IA64 processor
6137 lt_prog_compiler_static='-Bstatic'
6138 fi
John Criswell7a73b802003-06-30 21:59:07 +00006139 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006140
John Criswell7a73b802003-06-30 21:59:07 +00006141 amigaos*)
6142 # FIXME: we need at least 68020 code to build shared libraries, but
6143 # adding the `-m68020' flag to GCC prevents building anything better,
6144 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006145 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006146 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006147
6148 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006149 # PIC is the default for these OSes.
6150 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006151
6152 mingw* | pw32* | os2*)
6153 # This hack is so that the source file can tell whether it is being
6154 # built for inclusion in a dll (and should export symbols for example).
6155 lt_prog_compiler_pic='-DDLL_EXPORT'
6156 ;;
6157
John Criswell7a73b802003-06-30 21:59:07 +00006158 darwin* | rhapsody*)
6159 # PIC is the default on this platform
6160 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006161 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006162 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006163
6164 msdosdjgpp*)
6165 # Just because we use GCC doesn't mean we suddenly get shared libraries
6166 # on systems that don't support them.
6167 lt_prog_compiler_can_build_shared=no
6168 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006169 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006170
John Criswell7a73b802003-06-30 21:59:07 +00006171 sysv4*MP*)
6172 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006173 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006174 fi
6175 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006176
6177 hpux*)
6178 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6179 # not for PA HP-UX.
6180 case "$host_cpu" in
6181 hppa*64*|ia64*)
6182 # +Z the default
6183 ;;
6184 *)
6185 lt_prog_compiler_pic='-fPIC'
6186 ;;
6187 esac
6188 ;;
6189
John Criswell7a73b802003-06-30 21:59:07 +00006190 *)
John Criswell47fdd832003-07-14 16:52:07 +00006191 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006192 ;;
6193 esac
6194 else
John Criswell47fdd832003-07-14 16:52:07 +00006195 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006196 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006197 aix*)
6198 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006199 if test "$host_cpu" = ia64; then
6200 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006201 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006202 else
John Criswell47fdd832003-07-14 16:52:07 +00006203 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006204 fi
6205 ;;
6206
John Criswell47fdd832003-07-14 16:52:07 +00006207 mingw* | pw32* | os2*)
6208 # This hack is so that the source file can tell whether it is being
6209 # built for inclusion in a dll (and should export symbols for example).
6210 lt_prog_compiler_pic='-DDLL_EXPORT'
6211 ;;
6212
John Criswell7a73b802003-06-30 21:59:07 +00006213 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006214 lt_prog_compiler_wl='-Wl,'
6215 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6216 # not for PA HP-UX.
6217 case "$host_cpu" in
6218 hppa*64*|ia64*)
6219 # +Z the default
6220 ;;
6221 *)
6222 lt_prog_compiler_pic='+Z'
6223 ;;
6224 esac
6225 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6226 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006227 ;;
6228
John Criswell47fdd832003-07-14 16:52:07 +00006229 irix5* | irix6* | nonstopux*)
6230 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006231 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006232 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006233 ;;
6234
6235 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006236 lt_prog_compiler_pic='-KPIC'
6237 lt_prog_compiler_static='-Bstatic'
6238 ;;
6239
6240 linux*)
6241 case $CC in
6242 icc|ecc)
6243 lt_prog_compiler_wl='-Wl,'
6244 lt_prog_compiler_pic='-KPIC'
6245 lt_prog_compiler_static='-static'
6246 ;;
6247 ccc)
6248 lt_prog_compiler_wl='-Wl,'
6249 # All Alpha code is PIC.
6250 lt_prog_compiler_static='-non_shared'
6251 ;;
6252 esac
John Criswell7a73b802003-06-30 21:59:07 +00006253 ;;
6254
6255 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006256 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006257 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006258 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006259 ;;
6260
6261 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006262 lt_prog_compiler_pic='-Kpic'
6263 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006264 ;;
6265
6266 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006267 lt_prog_compiler_wl='-Wl,'
6268 lt_prog_compiler_pic='-KPIC'
6269 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006270 ;;
6271
6272 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006273 lt_prog_compiler_wl='-Qoption ld '
6274 lt_prog_compiler_pic='-PIC'
6275 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006276 ;;
6277
6278 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006279 lt_prog_compiler_wl='-Wl,'
6280 lt_prog_compiler_pic='-KPIC'
6281 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006282 ;;
6283
6284 sysv4*MP*)
6285 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006286 lt_prog_compiler_pic='-Kconform_pic'
6287 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006288 fi
6289 ;;
6290
John Criswell47fdd832003-07-14 16:52:07 +00006291 uts4*)
6292 lt_prog_compiler_pic='-pic'
6293 lt_prog_compiler_static='-Bstatic'
6294 ;;
6295
John Criswell7a73b802003-06-30 21:59:07 +00006296 *)
John Criswell47fdd832003-07-14 16:52:07 +00006297 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006298 ;;
6299 esac
6300 fi
6301
John Criswell47fdd832003-07-14 16:52:07 +00006302echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6303echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006304
John Criswell47fdd832003-07-14 16:52:07 +00006305#
6306# Check to make sure the PIC flag actually works.
6307#
6308if test -n "$lt_prog_compiler_pic"; then
6309 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6310echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6311if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006312 echo $ECHO_N "(cached) $ECHO_C" >&6
6313else
John Criswell47fdd832003-07-14 16:52:07 +00006314 lt_prog_compiler_pic_works=no
6315 ac_outfile=conftest.$ac_objext
6316 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6318 # Insert the option either (1) after the last *FLAGS variable, or
6319 # (2) before a word containing "conftest.", or (3) at the end.
6320 # Note that $ac_compile itself does not contain backslashes and begins
6321 # with a dollar sign (not a hyphen), so the echo should work correctly.
6322 # The option is referenced via a variable to avoid confusing sed.
6323 lt_compile=`echo "$ac_compile" | $SED \
6324 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6326 -e 's:$: $lt_compiler_flag:'`
Reid Spencer4d68ba22004-09-07 16:35:45 +00006327 (eval echo "\"\$as_me:6327: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006328 (eval "$lt_compile" 2>conftest.err)
6329 ac_status=$?
6330 cat conftest.err >&5
Reid Spencer4d68ba22004-09-07 16:35:45 +00006331 echo "$as_me:6331: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006332 if (exit $ac_status) && test -s "$ac_outfile"; then
6333 # The compiler can only warn and ignore the option if not recognized
6334 # So say no if there are warnings
6335 if test ! -s conftest.err; then
6336 lt_prog_compiler_pic_works=yes
6337 fi
6338 fi
6339 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006340
John Criswell47fdd832003-07-14 16:52:07 +00006341fi
6342echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6343echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006344
John Criswell47fdd832003-07-14 16:52:07 +00006345if test x"$lt_prog_compiler_pic_works" = xyes; then
6346 case $lt_prog_compiler_pic in
6347 "" | " "*) ;;
6348 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6349 esac
John Criswell7a73b802003-06-30 21:59:07 +00006350else
John Criswell47fdd832003-07-14 16:52:07 +00006351 lt_prog_compiler_pic=
6352 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006353fi
6354
John Criswell7a73b802003-06-30 21:59:07 +00006355fi
John Criswell47fdd832003-07-14 16:52:07 +00006356case "$host_os" in
6357 # For platforms which do not support PIC, -DPIC is meaningless:
6358 *djgpp*)
6359 lt_prog_compiler_pic=
6360 ;;
6361 *)
6362 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6363 ;;
6364esac
John Criswell7a73b802003-06-30 21:59:07 +00006365
John Criswell7a73b802003-06-30 21:59:07 +00006366echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6367echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006368if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370else
John Criswell47fdd832003-07-14 16:52:07 +00006371 lt_cv_prog_compiler_c_o=no
6372 $rm -r conftest 2>/dev/null
6373 mkdir conftest
6374 cd conftest
6375 mkdir out
6376 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006377
John Criswell47fdd832003-07-14 16:52:07 +00006378 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6379 # that will create temporary files in the current directory regardless of
6380 # the output directory. Thus, making CWD read-only will cause this test
6381 # to fail, enabling locking or at least warning the user not to do parallel
6382 # builds.
6383 chmod -w .
6384
6385 lt_compiler_flag="-o out/conftest2.$ac_objext"
6386 # Insert the option either (1) after the last *FLAGS variable, or
6387 # (2) before a word containing "conftest.", or (3) at the end.
6388 # Note that $ac_compile itself does not contain backslashes and begins
6389 # with a dollar sign (not a hyphen), so the echo should work correctly.
6390 lt_compile=`echo "$ac_compile" | $SED \
6391 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6392 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6393 -e 's:$: $lt_compiler_flag:'`
Reid Spencer4d68ba22004-09-07 16:35:45 +00006394 (eval echo "\"\$as_me:6394: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006395 (eval "$lt_compile" 2>out/conftest.err)
6396 ac_status=$?
6397 cat out/conftest.err >&5
Reid Spencer4d68ba22004-09-07 16:35:45 +00006398 echo "$as_me:6398: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006399 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6400 then
6401 # The compiler can only warn and ignore the option if not recognized
6402 # So say no if there are warnings
6403 if test ! -s out/conftest.err; then
6404 lt_cv_prog_compiler_c_o=yes
6405 fi
6406 fi
6407 chmod u+w .
6408 $rm conftest* out/*
6409 rmdir out
6410 cd ..
6411 rmdir conftest
6412 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006413
6414fi
John Criswell47fdd832003-07-14 16:52:07 +00006415echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6416echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006417
John Criswell7a73b802003-06-30 21:59:07 +00006418
John Criswell7a73b802003-06-30 21:59:07 +00006419hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006420if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006421 # do not overwrite the value of need_locks provided by the user
6422 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6423echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6424 hard_links=yes
6425 $rm conftest*
6426 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6427 touch conftest.a
6428 ln conftest.a conftest.b 2>&5 || hard_links=no
6429 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6430 echo "$as_me:$LINENO: result: $hard_links" >&5
6431echo "${ECHO_T}$hard_links" >&6
6432 if test "$hard_links" = no; then
6433 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6434echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6435 need_locks=warn
6436 fi
6437else
6438 need_locks=no
6439fi
John Criswell7a73b802003-06-30 21:59:07 +00006440
John Criswell47fdd832003-07-14 16:52:07 +00006441echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6442echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6443
6444 runpath_var=
6445 allow_undefined_flag=
6446 enable_shared_with_static_runtimes=no
6447 archive_cmds=
6448 archive_expsym_cmds=
6449 old_archive_From_new_cmds=
6450 old_archive_from_expsyms_cmds=
6451 export_dynamic_flag_spec=
6452 whole_archive_flag_spec=
6453 thread_safe_flag_spec=
6454 hardcode_libdir_flag_spec=
6455 hardcode_libdir_flag_spec_ld=
6456 hardcode_libdir_separator=
6457 hardcode_direct=no
6458 hardcode_minus_L=no
6459 hardcode_shlibpath_var=unsupported
6460 link_all_deplibs=unknown
6461 hardcode_automatic=no
6462 module_cmds=
6463 module_expsym_cmds=
6464 always_export_symbols=no
6465 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6466 # include_expsyms should be a list of space-separated symbols to be *always*
6467 # included in the symbol list
6468 include_expsyms=
6469 # exclude_expsyms can be an extended regexp of symbols to exclude
6470 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6471 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6472 # as well as any symbol that contains `d'.
6473 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6474 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6475 # platforms (ab)use it in PIC code, but their linkers get confused if
6476 # the symbol is explicitly referenced. Since portable code cannot
6477 # rely on this symbol name, it's probably fine to never include it in
6478 # preloaded symbol tables.
6479 extract_expsyms_cmds=
6480
6481 case $host_os in
6482 cygwin* | mingw* | pw32*)
6483 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6484 # When not using gcc, we currently assume that we are using
6485 # Microsoft Visual C++.
6486 if test "$GCC" != yes; then
6487 with_gnu_ld=no
6488 fi
6489 ;;
6490 openbsd*)
6491 with_gnu_ld=no
6492 ;;
6493 esac
6494
6495 ld_shlibs=yes
6496 if test "$with_gnu_ld" = yes; then
6497 # If archive_cmds runs LD, not CC, wlarc should be empty
6498 wlarc='${wl}'
6499
6500 # See if GNU ld supports shared libraries.
6501 case $host_os in
6502 aix3* | aix4* | aix5*)
6503 # On AIX/PPC, the GNU linker is very broken
6504 if test "$host_cpu" != ia64; then
6505 ld_shlibs=no
6506 cat <<EOF 1>&2
6507
6508*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6509*** to be unable to reliably create shared libraries on AIX.
6510*** Therefore, libtool is disabling shared libraries support. If you
6511*** really care for shared libraries, you may want to modify your PATH
6512*** so that a non-GNU linker is found, and then restart.
6513
6514EOF
6515 fi
6516 ;;
6517
6518 amigaos*)
6519 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)'
6520 hardcode_libdir_flag_spec='-L$libdir'
6521 hardcode_minus_L=yes
6522
6523 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6524 # that the semantics of dynamic libraries on AmigaOS, at least up
6525 # to version 4, is to share data among multiple programs linked
6526 # with the same dynamic library. Since this doesn't match the
6527 # behavior of shared libraries on other platforms, we can't use
6528 # them.
6529 ld_shlibs=no
6530 ;;
6531
6532 beos*)
6533 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6534 allow_undefined_flag=unsupported
6535 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6536 # support --undefined. This deserves some investigation. FIXME
6537 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6538 else
6539 ld_shlibs=no
6540 fi
6541 ;;
6542
6543 cygwin* | mingw* | pw32*)
6544 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6545 # as there is no search path for DLLs.
6546 hardcode_libdir_flag_spec='-L$libdir'
6547 allow_undefined_flag=unsupported
6548 always_export_symbols=no
6549 enable_shared_with_static_runtimes=yes
6550 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6551
6552 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6553 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6554 # If the export-symbols file already is a .def file (1st line
6555 # is EXPORTS), use it as is; otherwise, prepend...
6556 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6557 cp $export_symbols $output_objdir/$soname.def;
6558 else
6559 echo EXPORTS > $output_objdir/$soname.def;
6560 cat $export_symbols >> $output_objdir/$soname.def;
6561 fi~
6562 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6563 else
6564 ld_shlibs=no
6565 fi
6566 ;;
6567
6568 netbsd*)
6569 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6570 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6571 wlarc=
6572 else
6573 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6574 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6575 fi
6576 ;;
6577
6578 solaris* | sysv5*)
6579 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6580 ld_shlibs=no
6581 cat <<EOF 1>&2
6582
6583*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6584*** create shared libraries on Solaris systems. Therefore, libtool
6585*** is disabling shared libraries support. We urge you to upgrade GNU
6586*** binutils to release 2.9.1 or newer. Another option is to modify
6587*** your PATH or compiler configuration so that the native linker is
6588*** used, and then restart.
6589
6590EOF
6591 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6592 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6593 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6594 else
6595 ld_shlibs=no
6596 fi
6597 ;;
6598
6599 sunos4*)
6600 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6601 wlarc=
6602 hardcode_direct=yes
6603 hardcode_shlibpath_var=no
6604 ;;
6605
6606 *)
6607 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6610 else
6611 ld_shlibs=no
6612 fi
6613 ;;
6614 esac
6615
6616 if test "$ld_shlibs" = yes; then
6617 runpath_var=LD_RUN_PATH
6618 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6619 export_dynamic_flag_spec='${wl}--export-dynamic'
6620 # ancient GNU ld didn't support --whole-archive et. al.
6621 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6622 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6623 else
6624 whole_archive_flag_spec=
6625 fi
6626 fi
6627 else
6628 # PORTME fill in a description of your system's linker (not GNU ld)
6629 case $host_os in
6630 aix3*)
6631 allow_undefined_flag=unsupported
6632 always_export_symbols=yes
6633 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'
6634 # Note: this linker hardcodes the directories in LIBPATH if there
6635 # are no directories specified by -L.
6636 hardcode_minus_L=yes
6637 if test "$GCC" = yes && test -z "$link_static_flag"; then
6638 # Neither direct hardcoding nor static linking is supported with a
6639 # broken collect2.
6640 hardcode_direct=unsupported
6641 fi
6642 ;;
6643
6644 aix4* | aix5*)
6645 if test "$host_cpu" = ia64; then
6646 # On IA64, the linker does run time linking by default, so we don't
6647 # have to do anything special.
6648 aix_use_runtimelinking=no
6649 exp_sym_flag='-Bexport'
6650 no_entry_flag=""
6651 else
6652 # If we're using GNU nm, then we don't want the "-C" option.
6653 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6654 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6655 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'
6656 else
6657 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'
6658 fi
6659 aix_use_runtimelinking=no
6660
6661 # Test if we are trying to use run time linking or normal
6662 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6663 # need to do runtime linking.
6664 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6665 for ld_flag in $LDFLAGS; do
6666 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6667 aix_use_runtimelinking=yes
6668 break
6669 fi
6670 done
6671 esac
6672
6673 exp_sym_flag='-bexport'
6674 no_entry_flag='-bnoentry'
6675 fi
6676
6677 # When large executables or shared objects are built, AIX ld can
6678 # have problems creating the table of contents. If linking a library
6679 # or program results in "error TOC overflow" add -mminimal-toc to
6680 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6681 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6682
6683 archive_cmds=''
6684 hardcode_direct=yes
6685 hardcode_libdir_separator=':'
6686 link_all_deplibs=yes
6687
6688 if test "$GCC" = yes; then
6689 case $host_os in aix4.012|aix4.012.*)
6690 # We only want to do this on AIX 4.2 and lower, the check
6691 # below for broken collect2 doesn't work under 4.3+
6692 collect2name=`${CC} -print-prog-name=collect2`
6693 if test -f "$collect2name" && \
6694 strings "$collect2name" | grep resolve_lib_name >/dev/null
6695 then
6696 # We have reworked collect2
6697 hardcode_direct=yes
6698 else
6699 # We have old collect2
6700 hardcode_direct=unsupported
6701 # It fails to find uninstalled libraries when the uninstalled
6702 # path is not listed in the libpath. Setting hardcode_minus_L
6703 # to unsupported forces relinking
6704 hardcode_minus_L=yes
6705 hardcode_libdir_flag_spec='-L$libdir'
6706 hardcode_libdir_separator=
6707 fi
6708 esac
6709 shared_flag='-shared'
6710 else
6711 # not using gcc
6712 if test "$host_cpu" = ia64; then
6713 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6714 # chokes on -Wl,-G. The following line is correct:
6715 shared_flag='-G'
6716 else
6717 if test "$aix_use_runtimelinking" = yes; then
6718 shared_flag='${wl}-G'
6719 else
6720 shared_flag='${wl}-bM:SRE'
6721 fi
6722 fi
6723 fi
6724
6725 # It seems that -bexpall does not export symbols beginning with
6726 # underscore (_), so it is better to generate a list of symbols to export.
6727 always_export_symbols=yes
6728 if test "$aix_use_runtimelinking" = yes; then
6729 # Warning - without using the other runtime loading flags (-brtl),
6730 # -berok will link without error, but may produce a broken library.
6731 allow_undefined_flag='-berok'
6732 # Determine the default libpath from the value encoded in an empty executable.
6733 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006734/* confdefs.h. */
6735_ACEOF
6736cat confdefs.h >>conftest.$ac_ext
6737cat >>conftest.$ac_ext <<_ACEOF
6738/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006739
John Criswell7a73b802003-06-30 21:59:07 +00006740int
6741main ()
6742{
John Criswell47fdd832003-07-14 16:52:07 +00006743
John Criswell7a73b802003-06-30 21:59:07 +00006744 ;
6745 return 0;
6746}
6747_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006748rm -f conftest.$ac_objext conftest$ac_exeext
6749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00006750 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006751 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00006752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00006757 { ac_try='test -z "$ac_c_werror_flag"
6758 || test ! -s conftest.err'
6759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6760 (eval $ac_try) 2>&5
6761 ac_status=$?
6762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6763 (exit $ac_status); }; } &&
6764 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6766 (eval $ac_try) 2>&5
6767 ac_status=$?
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006770
John Criswell47fdd832003-07-14 16:52:07 +00006771aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6772}'`
6773# Check for a 64-bit object if we didn't find anything.
6774if 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; }
6775}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006776else
6777 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006778sed 's/^/| /' conftest.$ac_ext >&5
6779
John Criswell7a73b802003-06-30 21:59:07 +00006780fi
Reid Spencer17041682004-09-05 17:48:32 +00006781rm -f conftest.err conftest.$ac_objext \
6782 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006783if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006784
John Criswell47fdd832003-07-14 16:52:07 +00006785 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6786 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"
6787 else
6788 if test "$host_cpu" = ia64; then
6789 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6790 allow_undefined_flag="-z nodefs"
6791 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"
6792 else
6793 # Determine the default libpath from the value encoded in an empty executable.
6794 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006795/* confdefs.h. */
6796_ACEOF
6797cat confdefs.h >>conftest.$ac_ext
6798cat >>conftest.$ac_ext <<_ACEOF
6799/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006800
John Criswell47fdd832003-07-14 16:52:07 +00006801int
6802main ()
6803{
John Criswell7a73b802003-06-30 21:59:07 +00006804
John Criswell47fdd832003-07-14 16:52:07 +00006805 ;
6806 return 0;
6807}
6808_ACEOF
6809rm -f conftest.$ac_objext conftest$ac_exeext
6810if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00006811 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00006812 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00006813 grep -v '^ *+' conftest.er1 >conftest.err
6814 rm -f conftest.er1
6815 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00006816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6817 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00006818 { ac_try='test -z "$ac_c_werror_flag"
6819 || test ! -s conftest.err'
6820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6821 (eval $ac_try) 2>&5
6822 ac_status=$?
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); }; } &&
6825 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6827 (eval $ac_try) 2>&5
6828 ac_status=$?
6829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6830 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006831
John Criswell47fdd832003-07-14 16:52:07 +00006832aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6833}'`
6834# Check for a 64-bit object if we didn't find anything.
6835if 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; }
6836}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006837else
John Criswell47fdd832003-07-14 16:52:07 +00006838 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006839sed 's/^/| /' conftest.$ac_ext >&5
6840
John Criswell47fdd832003-07-14 16:52:07 +00006841fi
Reid Spencer17041682004-09-05 17:48:32 +00006842rm -f conftest.err conftest.$ac_objext \
6843 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006844if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006845
John Criswell47fdd832003-07-14 16:52:07 +00006846 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6847 # Warning - without using the other run time loading flags,
6848 # -berok will link without error, but may produce a broken library.
6849 no_undefined_flag=' ${wl}-bernotok'
6850 allow_undefined_flag=' ${wl}-berok'
6851 # -bexpall does not export symbols beginning with underscore (_)
6852 always_export_symbols=yes
6853 # Exported symbols can be pulled into shared objects from archives
6854 whole_archive_flag_spec=' '
6855 archive_cmds_need_lc=yes
6856 # This is similar to how AIX traditionally builds it's shared libraries.
6857 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 +00006858 fi
6859 fi
John Criswell7a73b802003-06-30 21:59:07 +00006860 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006861
6862 amigaos*)
6863 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)'
6864 hardcode_libdir_flag_spec='-L$libdir'
6865 hardcode_minus_L=yes
6866 # see comment about different semantics on the GNU ld section
6867 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006868 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006869
John Criswell47fdd832003-07-14 16:52:07 +00006870 bsdi4*)
6871 export_dynamic_flag_spec=-rdynamic
6872 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006873
John Criswell47fdd832003-07-14 16:52:07 +00006874 cygwin* | mingw* | pw32*)
6875 # When not using gcc, we currently assume that we are using
6876 # Microsoft Visual C++.
6877 # hardcode_libdir_flag_spec is actually meaningless, as there is
6878 # no search path for DLLs.
6879 hardcode_libdir_flag_spec=' '
6880 allow_undefined_flag=unsupported
6881 # Tell ltmain to make .lib files, not .a files.
6882 libext=lib
6883 # Tell ltmain to make .dll files, not .so files.
6884 shrext=".dll"
6885 # FIXME: Setting linknames here is a bad hack.
6886 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6887 # The linker will automatically build a .lib file if we build a DLL.
6888 old_archive_From_new_cmds='true'
6889 # FIXME: Should let the user specify the lib program.
6890 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6891 fix_srcfile_path='`cygpath -w "$srcfile"`'
6892 enable_shared_with_static_runtimes=yes
6893 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006894
John Criswell47fdd832003-07-14 16:52:07 +00006895 darwin* | rhapsody*)
6896 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6897 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006898 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006899 rhapsody* | darwin1.[012])
6900 allow_undefined_flag='-undefined suppress'
6901 ;;
6902 *) # Darwin 1.3 on
6903 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006904 ;;
6905 esac
John Criswell47fdd832003-07-14 16:52:07 +00006906 # FIXME: Relying on posixy $() will cause problems for
6907 # cross-compilation, but unfortunately the echo tests do not
6908 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6909 # `"' quotes if we put them in here... so don't!
6910 lt_int_apple_cc_single_mod=no
6911 output_verbose_link_cmd='echo'
6912 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6913 lt_int_apple_cc_single_mod=yes
6914 fi
6915 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6916 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6917 else
6918 archive_cmds='$CC -r ${wl}-bind_at_load -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'
6919 fi
6920 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6921 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6922 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6923 archive_expsym_cmds='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}'
6924 else
6925 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
6926 fi
6927 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6928 hardcode_direct=no
6929 hardcode_automatic=yes
6930 hardcode_shlibpath_var=unsupported
6931 whole_archive_flag_spec='-all_load $convenience'
6932 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006933 fi
John Criswell47fdd832003-07-14 16:52:07 +00006934 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006935
John Criswell47fdd832003-07-14 16:52:07 +00006936 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006938 hardcode_libdir_flag_spec='-L$libdir'
6939 hardcode_shlibpath_var=no
6940 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006941
John Criswell47fdd832003-07-14 16:52:07 +00006942 freebsd1*)
6943 ld_shlibs=no
6944 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006945
John Criswell47fdd832003-07-14 16:52:07 +00006946 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6947 # support. Future versions do this automatically, but an explicit c++rt0.o
6948 # does not break anything, and helps significantly (at the cost of a little
6949 # extra space).
6950 freebsd2.2*)
6951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6952 hardcode_libdir_flag_spec='-R$libdir'
6953 hardcode_direct=yes
6954 hardcode_shlibpath_var=no
6955 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006956
John Criswell47fdd832003-07-14 16:52:07 +00006957 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6958 freebsd2*)
6959 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6960 hardcode_direct=yes
6961 hardcode_minus_L=yes
6962 hardcode_shlibpath_var=no
6963 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006964
John Criswell47fdd832003-07-14 16:52:07 +00006965 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6966 freebsd*)
6967 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6968 hardcode_libdir_flag_spec='-R$libdir'
6969 hardcode_direct=yes
6970 hardcode_shlibpath_var=no
6971 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006972
John Criswell47fdd832003-07-14 16:52:07 +00006973 hpux9*)
6974 if test "$GCC" = yes; then
6975 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'
6976 else
6977 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'
6978 fi
6979 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6980 hardcode_libdir_separator=:
6981 hardcode_direct=yes
6982
6983 # hardcode_minus_L: Not really in the search PATH,
6984 # but as the default location of the library.
6985 hardcode_minus_L=yes
6986 export_dynamic_flag_spec='${wl}-E'
6987 ;;
6988
6989 hpux10* | hpux11*)
6990 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6991 case "$host_cpu" in
6992 hppa*64*|ia64*)
6993 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6994 ;;
6995 *)
6996 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6997 ;;
6998 esac
6999 else
7000 case "$host_cpu" in
7001 hppa*64*|ia64*)
7002 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7003 ;;
7004 *)
7005 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7006 ;;
7007 esac
7008 fi
7009 if test "$with_gnu_ld" = no; then
7010 case "$host_cpu" in
7011 hppa*64*)
7012 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7013 hardcode_libdir_flag_spec_ld='+b $libdir'
7014 hardcode_libdir_separator=:
7015 hardcode_direct=no
7016 hardcode_shlibpath_var=no
7017 ;;
7018 ia64*)
7019 hardcode_libdir_flag_spec='-L$libdir'
7020 hardcode_direct=no
7021 hardcode_shlibpath_var=no
7022
7023 # hardcode_minus_L: Not really in the search PATH,
7024 # but as the default location of the library.
7025 hardcode_minus_L=yes
7026 ;;
7027 *)
7028 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7029 hardcode_libdir_separator=:
7030 hardcode_direct=yes
7031 export_dynamic_flag_spec='${wl}-E'
7032
7033 # hardcode_minus_L: Not really in the search PATH,
7034 # but as the default location of the library.
7035 hardcode_minus_L=yes
7036 ;;
7037 esac
7038 fi
7039 ;;
7040
7041 irix5* | irix6* | nonstopux*)
7042 if test "$GCC" = yes; then
7043 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'
7044 else
7045 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'
7046 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7047 fi
7048 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7049 hardcode_libdir_separator=:
7050 link_all_deplibs=yes
7051 ;;
7052
7053 netbsd*)
7054 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7056 else
7057 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7058 fi
7059 hardcode_libdir_flag_spec='-R$libdir'
7060 hardcode_direct=yes
7061 hardcode_shlibpath_var=no
7062 ;;
7063
7064 newsos6)
7065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7066 hardcode_direct=yes
7067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7068 hardcode_libdir_separator=:
7069 hardcode_shlibpath_var=no
7070 ;;
7071
7072 openbsd*)
7073 hardcode_direct=yes
7074 hardcode_shlibpath_var=no
7075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7076 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7077 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7078 export_dynamic_flag_spec='${wl}-E'
7079 else
7080 case $host_os in
7081 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7082 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7083 hardcode_libdir_flag_spec='-R$libdir'
7084 ;;
7085 *)
7086 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7087 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7088 ;;
7089 esac
7090 fi
7091 ;;
7092
7093 os2*)
7094 hardcode_libdir_flag_spec='-L$libdir'
7095 hardcode_minus_L=yes
7096 allow_undefined_flag=unsupported
7097 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'
7098 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7099 ;;
7100
7101 osf3*)
7102 if test "$GCC" = yes; then
7103 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7104 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'
7105 else
7106 allow_undefined_flag=' -expect_unresolved \*'
7107 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'
7108 fi
7109 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7110 hardcode_libdir_separator=:
7111 ;;
7112
7113 osf4* | osf5*) # as osf3* with the addition of -msym flag
7114 if test "$GCC" = yes; then
7115 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7116 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'
7117 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7118 else
7119 allow_undefined_flag=' -expect_unresolved \*'
7120 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'
7121 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7122 $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'
7123
7124 # Both c and cxx compiler support -rpath directly
7125 hardcode_libdir_flag_spec='-rpath $libdir'
7126 fi
7127 hardcode_libdir_separator=:
7128 ;;
7129
7130 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007131 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7132 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007133 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007134 runpath_var=LD_RUN_PATH
7135 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007136 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007137
John Criswell47fdd832003-07-14 16:52:07 +00007138 solaris*)
7139 no_undefined_flag=' -z text'
7140 if test "$GCC" = yes; then
7141 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7142 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7143 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7144 else
7145 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7146 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7147 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7148 fi
7149 hardcode_libdir_flag_spec='-R$libdir'
7150 hardcode_shlibpath_var=no
7151 case $host_os in
7152 solaris2.[0-5] | solaris2.[0-5].*) ;;
7153 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7154 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7155 esac
7156 link_all_deplibs=yes
7157 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007158
John Criswell47fdd832003-07-14 16:52:07 +00007159 sunos4*)
7160 if test "x$host_vendor" = xsequent; then
7161 # Use $CC to link under sequent, because it throws in some extra .o
7162 # files that make .init and .fini sections work.
7163 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7164 else
7165 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7166 fi
7167 hardcode_libdir_flag_spec='-L$libdir'
7168 hardcode_direct=yes
7169 hardcode_minus_L=yes
7170 hardcode_shlibpath_var=no
7171 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007172
John Criswell47fdd832003-07-14 16:52:07 +00007173 sysv4)
7174 case $host_vendor in
7175 sni)
7176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7177 hardcode_direct=yes # is this really true???
7178 ;;
7179 siemens)
7180 ## LD is ld it makes a PLAMLIB
7181 ## CC just makes a GrossModule.
7182 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7183 reload_cmds='$CC -r -o $output$reload_objs'
7184 hardcode_direct=no
7185 ;;
7186 motorola)
7187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7188 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7189 ;;
7190 esac
7191 runpath_var='LD_RUN_PATH'
7192 hardcode_shlibpath_var=no
7193 ;;
7194
7195 sysv4.3*)
7196 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7197 hardcode_shlibpath_var=no
7198 export_dynamic_flag_spec='-Bexport'
7199 ;;
7200
7201 sysv4*MP*)
7202 if test -d /usr/nec; then
7203 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7204 hardcode_shlibpath_var=no
7205 runpath_var=LD_RUN_PATH
7206 hardcode_runpath_var=yes
7207 ld_shlibs=yes
7208 fi
7209 ;;
7210
7211 sysv4.2uw2*)
7212 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7213 hardcode_direct=yes
7214 hardcode_minus_L=no
7215 hardcode_shlibpath_var=no
7216 hardcode_runpath_var=yes
7217 runpath_var=LD_RUN_PATH
7218 ;;
7219
7220 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7221 no_undefined_flag='${wl}-z ${wl}text'
7222 if test "$GCC" = yes; then
7223 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7224 else
7225 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7226 fi
7227 runpath_var='LD_RUN_PATH'
7228 hardcode_shlibpath_var=no
7229 ;;
7230
7231 sysv5*)
7232 no_undefined_flag=' -z text'
7233 # $CC -shared without GNU ld will not create a library from C++
7234 # object files and a static libstdc++, better avoid it by now
7235 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7236 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7237 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7238 hardcode_libdir_flag_spec=
7239 hardcode_shlibpath_var=no
7240 runpath_var='LD_RUN_PATH'
7241 ;;
7242
7243 uts4*)
7244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7245 hardcode_libdir_flag_spec='-L$libdir'
7246 hardcode_shlibpath_var=no
7247 ;;
7248
7249 *)
7250 ld_shlibs=no
7251 ;;
7252 esac
7253 fi
7254
John Criswell7a73b802003-06-30 21:59:07 +00007255echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7256echo "${ECHO_T}$ld_shlibs" >&6
7257test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007258
John Criswell47fdd832003-07-14 16:52:07 +00007259variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7260if test "$GCC" = yes; then
7261 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7262fi
7263
7264#
7265# Do we need to explicitly link libc?
7266#
7267case "x$archive_cmds_need_lc" in
7268x|xyes)
7269 # Assume -lc should be added
7270 archive_cmds_need_lc=yes
7271
7272 if test "$enable_shared" = yes && test "$GCC" = yes; then
7273 case $archive_cmds in
7274 *'~'*)
7275 # FIXME: we may have to deal with multi-command sequences.
7276 ;;
7277 '$CC '*)
7278 # Test whether the compiler implicitly links with -lc since on some
7279 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7280 # to ld, don't add -lc before -lgcc.
7281 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7282echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7283 $rm conftest*
7284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7285
7286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7287 (eval $ac_compile) 2>&5
7288 ac_status=$?
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } 2>conftest.err; then
7291 soname=conftest
7292 lib=conftest
7293 libobjs=conftest.$ac_objext
7294 deplibs=
7295 wl=$lt_prog_compiler_wl
7296 compiler_flags=-v
7297 linker_flags=-v
7298 verstring=
7299 output_objdir=.
7300 libname=conftest
7301 lt_save_allow_undefined_flag=$allow_undefined_flag
7302 allow_undefined_flag=
7303 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7304 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7305 ac_status=$?
7306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307 (exit $ac_status); }
7308 then
7309 archive_cmds_need_lc=no
7310 else
7311 archive_cmds_need_lc=yes
7312 fi
7313 allow_undefined_flag=$lt_save_allow_undefined_flag
7314 else
7315 cat conftest.err 1>&5
7316 fi
7317 $rm conftest*
7318 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7319echo "${ECHO_T}$archive_cmds_need_lc" >&6
7320 ;;
7321 esac
7322 fi
7323 ;;
7324esac
7325
John Criswell7a73b802003-06-30 21:59:07 +00007326echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7327echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7328hardcode_action=
7329if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007330 test -n "$runpath_var " || \
7331 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007332
7333 # We can hardcode non-existant directories.
7334 if test "$hardcode_direct" != no &&
7335 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7336 # have to relink, otherwise we might link with an installed library
7337 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007338 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007339 test "$hardcode_minus_L" != no; then
7340 # Linking always hardcodes the temporary library directory.
7341 hardcode_action=relink
7342 else
7343 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7344 hardcode_action=immediate
7345 fi
7346else
7347 # We cannot hardcode anything, or else we can only hardcode existing
7348 # directories.
7349 hardcode_action=unsupported
7350fi
7351echo "$as_me:$LINENO: result: $hardcode_action" >&5
7352echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007353
John Criswell47fdd832003-07-14 16:52:07 +00007354if test "$hardcode_action" = relink; then
7355 # Fast installation is not supported
7356 enable_fast_install=no
7357elif test "$shlibpath_overrides_runpath" = yes ||
7358 test "$enable_shared" = no; then
7359 # Fast installation is not necessary
7360 enable_fast_install=needless
7361fi
7362
John Criswell7a73b802003-06-30 21:59:07 +00007363striplib=
7364old_striplib=
7365echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7366echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7367if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7368 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7369 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7370 echo "$as_me:$LINENO: result: yes" >&5
7371echo "${ECHO_T}yes" >&6
7372else
John Criswell47fdd832003-07-14 16:52:07 +00007373# FIXME - insert some real tests, host_os isn't really good enough
7374 case $host_os in
7375 darwin*)
7376 if test -n "$STRIP" ; then
7377 striplib="$STRIP -x"
7378 echo "$as_me:$LINENO: result: yes" >&5
7379echo "${ECHO_T}yes" >&6
7380 else
John Criswell7a73b802003-06-30 21:59:07 +00007381 echo "$as_me:$LINENO: result: no" >&5
7382echo "${ECHO_T}no" >&6
7383fi
John Criswell47fdd832003-07-14 16:52:07 +00007384 ;;
7385 *)
7386 echo "$as_me:$LINENO: result: no" >&5
7387echo "${ECHO_T}no" >&6
7388 ;;
7389 esac
7390fi
John Criswell7a73b802003-06-30 21:59:07 +00007391
John Criswell7a73b802003-06-30 21:59:07 +00007392echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7393echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7394library_names_spec=
7395libname_spec='lib$name'
7396soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007397shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007398postinstall_cmds=
7399postuninstall_cmds=
7400finish_cmds=
7401finish_eval=
7402shlibpath_var=
7403shlibpath_overrides_runpath=unknown
7404version_type=none
7405dynamic_linker="$host_os ld.so"
7406sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007407if test "$GCC" = yes; then
7408 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7409 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7410 # if the path contains ";" then we assume it to be the separator
7411 # otherwise default to the standard path separator (i.e. ":") - it is
7412 # assumed that no part of a normal pathname contains ";" but that should
7413 # okay in the real world where ";" in dirpaths is itself problematic.
7414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7415 else
7416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7417 fi
7418else
7419 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7420fi
7421need_lib_prefix=unknown
7422hardcode_into_libs=no
7423
7424# when you set need_version to no, make sure it does not cause -set_version
7425# flags to be left without arguments
7426need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007427
7428case $host_os in
7429aix3*)
7430 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007432 shlibpath_var=LIBPATH
7433
John Criswell47fdd832003-07-14 16:52:07 +00007434 # AIX 3 has no versioning support, so we append a major version to the name.
7435 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007436 ;;
7437
7438aix4* | aix5*)
7439 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007440 need_lib_prefix=no
7441 need_version=no
7442 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007443 if test "$host_cpu" = ia64; then
7444 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007445 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007446 shlibpath_var=LD_LIBRARY_PATH
7447 else
7448 # With GCC up to 2.95.x, collect2 would create an import file
7449 # for dependence libraries. The import file would start with
7450 # the line `#! .'. This would cause the generated library to
7451 # depend on `.', always an invalid library. This was fixed in
7452 # development snapshots of GCC prior to 3.0.
7453 case $host_os in
7454 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007455 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7456 echo ' yes '
7457 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7458 :
7459 else
7460 can_build_shared=no
7461 fi
7462 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007463 esac
John Criswell47fdd832003-07-14 16:52:07 +00007464 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7465 # soname into executable. Probably we can add versioning support to
7466 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007467 if test "$aix_use_runtimelinking" = yes; then
7468 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7469 # instead of lib<name>.a to let people know that these are not
7470 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007472 else
7473 # We preserve .a as extension for shared libraries through AIX4.2
7474 # and later when we are not doing run time linking.
7475 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007476 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007477 fi
7478 shlibpath_var=LIBPATH
7479 fi
7480 ;;
7481
7482amigaos*)
7483 library_names_spec='$libname.ixlibrary $libname.a'
7484 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7485 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'
7486 ;;
7487
7488beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007489 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007490 dynamic_linker="$host_os ld.so"
7491 shlibpath_var=LIBRARY_PATH
7492 ;;
7493
7494bsdi4*)
7495 version_type=linux
7496 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7498 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007499 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7500 shlibpath_var=LD_LIBRARY_PATH
7501 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7502 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007503 # the default ld.so.conf also contains /usr/contrib/lib and
7504 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7505 # libtool to hard-code these into programs
7506 ;;
7507
7508cygwin* | mingw* | pw32*)
7509 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007510 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007511 need_version=no
7512 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007513
John Criswell7a73b802003-06-30 21:59:07 +00007514 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007515 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007516 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007517 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7518 postinstall_cmds='base_file=`basename \${file}`~
7519 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007520 dldir=$destdir/`dirname \$dlpath`~
7521 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007522 $install_prog $dir/$dlname \$dldir/$dlname'
7523 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007524 dlpath=$dir/\$dldll~
7525 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007526 shlibpath_overrides_runpath=yes
7527
7528 case $host_os in
7529 cygwin*)
7530 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7531 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7532 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7533 ;;
7534 mingw*)
7535 # MinGW DLLs use traditional 'lib' prefix
7536 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7537 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7538 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7539 # It is most probably a Windows format PATH printed by
7540 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7541 # path with ; separators, and with drive letters. We can handle the
7542 # drive letters (cygwin fileutils understands them), so leave them,
7543 # especially as we might pass files found there to a mingw objdump,
7544 # which wouldn't understand a cygwinified path. Ahh.
7545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7546 else
7547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7548 fi
7549 ;;
7550 pw32*)
7551 # pw32 DLLs use 'pw' prefix rather than 'lib'
7552 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7553 ;;
7554 esac
John Criswell7a73b802003-06-30 21:59:07 +00007555 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007556
John Criswell7a73b802003-06-30 21:59:07 +00007557 *)
John Criswell47fdd832003-07-14 16:52:07 +00007558 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007559 ;;
7560 esac
7561 dynamic_linker='Win32 ld.exe'
7562 # FIXME: first we should search . and the directory the executable is in
7563 shlibpath_var=PATH
7564 ;;
7565
7566darwin* | rhapsody*)
7567 dynamic_linker="$host_os dyld"
7568 version_type=darwin
7569 need_lib_prefix=no
7570 need_version=no
7571 # FIXME: Relying on posixy $() will cause problems for
7572 # cross-compilation, but unfortunately the echo tests do not
7573 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007574 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7575 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007576 shlibpath_overrides_runpath=yes
7577 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007578 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7579 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7580 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7581 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"`
7582 fi
7583 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7584 ;;
7585
7586dgux*)
7587 version_type=linux
7588 need_lib_prefix=no
7589 need_version=no
7590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7591 soname_spec='${libname}${release}${shared_ext}$major'
7592 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007593 ;;
7594
7595freebsd1*)
7596 dynamic_linker=no
7597 ;;
7598
7599freebsd*)
7600 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7601 version_type=freebsd-$objformat
7602 case $version_type in
7603 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007605 need_version=no
7606 need_lib_prefix=no
7607 ;;
7608 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007609 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007610 need_version=yes
7611 ;;
7612 esac
7613 shlibpath_var=LD_LIBRARY_PATH
7614 case $host_os in
7615 freebsd2*)
7616 shlibpath_overrides_runpath=yes
7617 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007618 freebsd3.01* | freebsdelf3.01*)
7619 shlibpath_overrides_runpath=yes
7620 hardcode_into_libs=yes
7621 ;;
7622 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007623 shlibpath_overrides_runpath=no
7624 hardcode_into_libs=yes
7625 ;;
7626 esac
7627 ;;
7628
7629gnu*)
7630 version_type=linux
7631 need_lib_prefix=no
7632 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7634 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007635 shlibpath_var=LD_LIBRARY_PATH
7636 hardcode_into_libs=yes
7637 ;;
7638
7639hpux9* | hpux10* | hpux11*)
7640 # Give a soname corresponding to the major version so that dld.sl refuses to
7641 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007642 version_type=sunos
7643 need_lib_prefix=no
7644 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007645 case "$host_cpu" in
7646 ia64*)
7647 shrext='.so'
7648 hardcode_into_libs=yes
7649 dynamic_linker="$host_os dld.so"
7650 shlibpath_var=LD_LIBRARY_PATH
7651 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7653 soname_spec='${libname}${release}${shared_ext}$major'
7654 if test "X$HPUX_IA64_MODE" = X32; then
7655 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7656 else
7657 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7658 fi
7659 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7660 ;;
7661 hppa*64*)
7662 shrext='.sl'
7663 hardcode_into_libs=yes
7664 dynamic_linker="$host_os dld.sl"
7665 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7666 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7668 soname_spec='${libname}${release}${shared_ext}$major'
7669 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7670 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7671 ;;
7672 *)
7673 shrext='.sl'
7674 dynamic_linker="$host_os dld.sl"
7675 shlibpath_var=SHLIB_PATH
7676 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7678 soname_spec='${libname}${release}${shared_ext}$major'
7679 ;;
7680 esac
John Criswell7a73b802003-06-30 21:59:07 +00007681 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7682 postinstall_cmds='chmod 555 $lib'
7683 ;;
7684
John Criswell47fdd832003-07-14 16:52:07 +00007685irix5* | irix6* | nonstopux*)
7686 case $host_os in
7687 nonstopux*) version_type=nonstopux ;;
7688 *)
7689 if test "$lt_cv_prog_gnu_ld" = yes; then
7690 version_type=linux
7691 else
7692 version_type=irix
7693 fi ;;
7694 esac
John Criswell7a73b802003-06-30 21:59:07 +00007695 need_lib_prefix=no
7696 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007697 soname_spec='${libname}${release}${shared_ext}$major'
7698 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 +00007699 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007700 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007701 libsuff= shlibsuff=
7702 ;;
7703 *)
7704 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007705 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7706 libsuff= shlibsuff= libmagic=32-bit;;
7707 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7708 libsuff=32 shlibsuff=N32 libmagic=N32;;
7709 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7710 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007711 *) libsuff= shlibsuff= libmagic=never-match;;
7712 esac
7713 ;;
7714 esac
7715 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7716 shlibpath_overrides_runpath=no
7717 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7718 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007719 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007720 ;;
7721
7722# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007723linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007724 dynamic_linker=no
7725 ;;
7726
7727# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007728linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007729 version_type=linux
7730 need_lib_prefix=no
7731 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7733 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007734 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7735 shlibpath_var=LD_LIBRARY_PATH
7736 shlibpath_overrides_runpath=no
7737 # This implies no fast_install, which is unacceptable.
7738 # Some rework will be needed to allow for fast_install
7739 # before this can be enabled.
7740 hardcode_into_libs=yes
7741
7742 # We used to test for /lib/ld.so.1 and disable shared libraries on
7743 # powerpc, because MkLinux only supported shared libraries with the
7744 # GNU dynamic linker. Since this was broken with cross compilers,
7745 # most powerpc-linux boxes support dynamic linking these days and
7746 # people can always --disable-shared, the test was removed, and we
7747 # assume the GNU/Linux dynamic linker is in use.
7748 dynamic_linker='GNU/Linux ld.so'
7749 ;;
7750
7751netbsd*)
7752 version_type=sunos
7753 need_lib_prefix=no
7754 need_version=no
7755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007757 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7758 dynamic_linker='NetBSD (a.out) ld.so'
7759 else
John Criswell47fdd832003-07-14 16:52:07 +00007760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7761 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007762 dynamic_linker='NetBSD ld.elf_so'
7763 fi
7764 shlibpath_var=LD_LIBRARY_PATH
7765 shlibpath_overrides_runpath=yes
7766 hardcode_into_libs=yes
7767 ;;
7768
7769newsos6)
7770 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7772 shlibpath_var=LD_LIBRARY_PATH
7773 shlibpath_overrides_runpath=yes
7774 ;;
7775
7776nto-qnx)
7777 version_type=linux
7778 need_lib_prefix=no
7779 need_version=no
7780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7781 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007782 shlibpath_var=LD_LIBRARY_PATH
7783 shlibpath_overrides_runpath=yes
7784 ;;
7785
7786openbsd*)
7787 version_type=sunos
7788 need_lib_prefix=no
7789 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7792 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007793 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 +00007794 case $host_os in
7795 openbsd2.[89] | openbsd2.[89].*)
7796 shlibpath_overrides_runpath=no
7797 ;;
7798 *)
7799 shlibpath_overrides_runpath=yes
7800 ;;
7801 esac
John Criswell7a73b802003-06-30 21:59:07 +00007802 else
7803 shlibpath_overrides_runpath=yes
7804 fi
John Criswell7a73b802003-06-30 21:59:07 +00007805 ;;
7806
7807os2*)
7808 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007809 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007810 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007811 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007812 dynamic_linker='OS/2 ld.exe'
7813 shlibpath_var=LIBPATH
7814 ;;
7815
7816osf3* | osf4* | osf5*)
7817 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007818 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007819 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007820 soname_spec='${libname}${release}${shared_ext}$major'
7821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007822 shlibpath_var=LD_LIBRARY_PATH
7823 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7824 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7825 ;;
7826
7827sco3.2v5*)
7828 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007829 soname_spec='${libname}${release}${shared_ext}$major'
7830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007831 shlibpath_var=LD_LIBRARY_PATH
7832 ;;
7833
7834solaris*)
7835 version_type=linux
7836 need_lib_prefix=no
7837 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7839 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007840 shlibpath_var=LD_LIBRARY_PATH
7841 shlibpath_overrides_runpath=yes
7842 hardcode_into_libs=yes
7843 # ldd complains unless libraries are executable
7844 postinstall_cmds='chmod +x $lib'
7845 ;;
7846
7847sunos4*)
7848 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007850 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7851 shlibpath_var=LD_LIBRARY_PATH
7852 shlibpath_overrides_runpath=yes
7853 if test "$with_gnu_ld" = yes; then
7854 need_lib_prefix=no
7855 fi
7856 need_version=yes
7857 ;;
7858
7859sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7860 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7862 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007863 shlibpath_var=LD_LIBRARY_PATH
7864 case $host_vendor in
7865 sni)
7866 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007867 need_lib_prefix=no
7868 export_dynamic_flag_spec='${wl}-Blargedynsym'
7869 runpath_var=LD_RUN_PATH
7870 ;;
7871 siemens)
7872 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007873 ;;
7874 motorola)
7875 need_lib_prefix=no
7876 need_version=no
7877 shlibpath_overrides_runpath=no
7878 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7879 ;;
7880 esac
7881 ;;
7882
John Criswell7a73b802003-06-30 21:59:07 +00007883sysv4*MP*)
7884 if test -d /usr/nec ;then
7885 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007886 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7887 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007888 shlibpath_var=LD_LIBRARY_PATH
7889 fi
7890 ;;
7891
John Criswell47fdd832003-07-14 16:52:07 +00007892uts4*)
7893 version_type=linux
7894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7895 soname_spec='${libname}${release}${shared_ext}$major'
7896 shlibpath_var=LD_LIBRARY_PATH
7897 ;;
7898
John Criswell7a73b802003-06-30 21:59:07 +00007899*)
7900 dynamic_linker=no
7901 ;;
7902esac
7903echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7904echo "${ECHO_T}$dynamic_linker" >&6
7905test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007906
7907if test "x$enable_dlopen" != xyes; then
7908 enable_dlopen=unknown
7909 enable_dlopen_self=unknown
7910 enable_dlopen_self_static=unknown
7911else
7912 lt_cv_dlopen=no
7913 lt_cv_dlopen_libs=
7914
7915 case $host_os in
7916 beos*)
7917 lt_cv_dlopen="load_add_on"
7918 lt_cv_dlopen_libs=
7919 lt_cv_dlopen_self=yes
7920 ;;
7921
John Criswell47fdd832003-07-14 16:52:07 +00007922 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007923 lt_cv_dlopen="LoadLibrary"
7924 lt_cv_dlopen_libs=
7925 ;;
7926
John Criswell47fdd832003-07-14 16:52:07 +00007927 cygwin*)
7928 lt_cv_dlopen="dlopen"
7929 lt_cv_dlopen_libs=
7930 ;;
7931
7932 darwin*)
7933 # if libdl is installed we need to link against it
7934 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7935echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7936if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7938else
7939 ac_check_lib_save_LIBS=$LIBS
7940LIBS="-ldl $LIBS"
7941cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00007942/* confdefs.h. */
7943_ACEOF
7944cat confdefs.h >>conftest.$ac_ext
7945cat >>conftest.$ac_ext <<_ACEOF
7946/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007947
7948/* Override any gcc2 internal prototype to avoid an error. */
7949#ifdef __cplusplus
7950extern "C"
7951#endif
7952/* We use char because int might match the return type of a gcc2
7953 builtin and then its argument prototype would still apply. */
7954char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007955int
7956main ()
7957{
7958dlopen ();
7959 ;
7960 return 0;
7961}
7962_ACEOF
7963rm -f conftest.$ac_objext conftest$ac_exeext
7964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00007965 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00007966 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00007967 grep -v '^ *+' conftest.er1 >conftest.err
7968 rm -f conftest.er1
7969 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00007970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7971 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00007972 { ac_try='test -z "$ac_c_werror_flag"
7973 || test ! -s conftest.err'
7974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7975 (eval $ac_try) 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); }; } &&
7979 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00007980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 (eval $ac_try) 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 ac_cv_lib_dl_dlopen=yes
7986else
7987 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007988sed 's/^/| /' conftest.$ac_ext >&5
7989
John Criswell47fdd832003-07-14 16:52:07 +00007990ac_cv_lib_dl_dlopen=no
7991fi
Reid Spencer17041682004-09-05 17:48:32 +00007992rm -f conftest.err conftest.$ac_objext \
7993 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00007994LIBS=$ac_check_lib_save_LIBS
7995fi
7996echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7997echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7998if test $ac_cv_lib_dl_dlopen = yes; then
7999 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8000else
8001
8002 lt_cv_dlopen="dyld"
8003 lt_cv_dlopen_libs=
8004 lt_cv_dlopen_self=yes
8005
8006fi
8007
8008 ;;
8009
John Criswell7a73b802003-06-30 21:59:07 +00008010 *)
8011 echo "$as_me:$LINENO: checking for shl_load" >&5
8012echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8013if test "${ac_cv_func_shl_load+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015else
8016 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008017/* confdefs.h. */
8018_ACEOF
8019cat confdefs.h >>conftest.$ac_ext
8020cat >>conftest.$ac_ext <<_ACEOF
8021/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +00008022/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8024#define shl_load innocuous_shl_load
8025
John Criswell7a73b802003-06-30 21:59:07 +00008026/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008027 which can conflict with char shl_load (); below.
8028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8029 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +00008030
John Criswell0c38eaf2003-09-10 15:17:25 +00008031#ifdef __STDC__
8032# include <limits.h>
8033#else
8034# include <assert.h>
8035#endif
Reid Spencer17041682004-09-05 17:48:32 +00008036
8037#undef shl_load
8038
John Criswell7a73b802003-06-30 21:59:07 +00008039/* Override any gcc2 internal prototype to avoid an error. */
8040#ifdef __cplusplus
8041extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008042{
John Criswell7a73b802003-06-30 21:59:07 +00008043#endif
8044/* We use char because int might match the return type of a gcc2
8045 builtin and then its argument prototype would still apply. */
8046char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008047/* The GNU C library defines this for functions which it implements
8048 to always fail with ENOSYS. Some functions are actually named
8049 something starting with __ and the normal name is an alias. */
8050#if defined (__stub_shl_load) || defined (__stub___shl_load)
8051choke me
8052#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008053char (*f) () = shl_load;
8054#endif
8055#ifdef __cplusplus
8056}
John Criswell7a73b802003-06-30 21:59:07 +00008057#endif
8058
John Criswell0c38eaf2003-09-10 15:17:25 +00008059int
8060main ()
8061{
8062return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008063 ;
8064 return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext conftest$ac_exeext
8068if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008069 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008070 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008071 grep -v '^ *+' conftest.er1 >conftest.err
8072 rm -f conftest.er1
8073 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008076 { ac_try='test -z "$ac_c_werror_flag"
8077 || test ! -s conftest.err'
8078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8079 (eval $ac_try) 2>&5
8080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); }; } &&
8083 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8085 (eval $ac_try) 2>&5
8086 ac_status=$?
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); }; }; then
8089 ac_cv_func_shl_load=yes
8090else
8091 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008092sed 's/^/| /' conftest.$ac_ext >&5
8093
John Criswell7a73b802003-06-30 21:59:07 +00008094ac_cv_func_shl_load=no
8095fi
Reid Spencer17041682004-09-05 17:48:32 +00008096rm -f conftest.err conftest.$ac_objext \
8097 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008098fi
8099echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8100echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8101if test $ac_cv_func_shl_load = yes; then
8102 lt_cv_dlopen="shl_load"
8103else
8104 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8105echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8106if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8108else
8109 ac_check_lib_save_LIBS=$LIBS
8110LIBS="-ldld $LIBS"
8111cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008112/* confdefs.h. */
8113_ACEOF
8114cat confdefs.h >>conftest.$ac_ext
8115cat >>conftest.$ac_ext <<_ACEOF
8116/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008117
8118/* Override any gcc2 internal prototype to avoid an error. */
8119#ifdef __cplusplus
8120extern "C"
8121#endif
8122/* We use char because int might match the return type of a gcc2
8123 builtin and then its argument prototype would still apply. */
8124char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008125int
8126main ()
8127{
8128shl_load ();
8129 ;
8130 return 0;
8131}
8132_ACEOF
8133rm -f conftest.$ac_objext conftest$ac_exeext
8134if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008135 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008136 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008137 grep -v '^ *+' conftest.er1 >conftest.err
8138 rm -f conftest.er1
8139 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008142 { ac_try='test -z "$ac_c_werror_flag"
8143 || test ! -s conftest.err'
8144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145 (eval $ac_try) 2>&5
8146 ac_status=$?
8147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148 (exit $ac_status); }; } &&
8149 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151 (eval $ac_try) 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; }; then
8155 ac_cv_lib_dld_shl_load=yes
8156else
8157 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008158sed 's/^/| /' conftest.$ac_ext >&5
8159
John Criswell7a73b802003-06-30 21:59:07 +00008160ac_cv_lib_dld_shl_load=no
8161fi
Reid Spencer17041682004-09-05 17:48:32 +00008162rm -f conftest.err conftest.$ac_objext \
8163 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008164LIBS=$ac_check_lib_save_LIBS
8165fi
8166echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8167echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8168if test $ac_cv_lib_dld_shl_load = yes; then
8169 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8170else
8171 echo "$as_me:$LINENO: checking for dlopen" >&5
8172echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8173if test "${ac_cv_func_dlopen+set}" = set; then
8174 echo $ECHO_N "(cached) $ECHO_C" >&6
8175else
8176 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008177/* confdefs.h. */
8178_ACEOF
8179cat confdefs.h >>conftest.$ac_ext
8180cat >>conftest.$ac_ext <<_ACEOF
8181/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +00008182/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8184#define dlopen innocuous_dlopen
8185
John Criswell7a73b802003-06-30 21:59:07 +00008186/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008187 which can conflict with char dlopen (); below.
8188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8189 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +00008190
John Criswell0c38eaf2003-09-10 15:17:25 +00008191#ifdef __STDC__
8192# include <limits.h>
8193#else
8194# include <assert.h>
8195#endif
Reid Spencer17041682004-09-05 17:48:32 +00008196
8197#undef dlopen
8198
John Criswell7a73b802003-06-30 21:59:07 +00008199/* Override any gcc2 internal prototype to avoid an error. */
8200#ifdef __cplusplus
8201extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008202{
John Criswell7a73b802003-06-30 21:59:07 +00008203#endif
8204/* We use char because int might match the return type of a gcc2
8205 builtin and then its argument prototype would still apply. */
8206char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008207/* The GNU C library defines this for functions which it implements
8208 to always fail with ENOSYS. Some functions are actually named
8209 something starting with __ and the normal name is an alias. */
8210#if defined (__stub_dlopen) || defined (__stub___dlopen)
8211choke me
8212#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008213char (*f) () = dlopen;
8214#endif
8215#ifdef __cplusplus
8216}
John Criswell7a73b802003-06-30 21:59:07 +00008217#endif
8218
John Criswell0c38eaf2003-09-10 15:17:25 +00008219int
8220main ()
8221{
8222return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008223 ;
8224 return 0;
8225}
8226_ACEOF
8227rm -f conftest.$ac_objext conftest$ac_exeext
8228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008229 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008230 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008231 grep -v '^ *+' conftest.er1 >conftest.err
8232 rm -f conftest.er1
8233 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008236 { ac_try='test -z "$ac_c_werror_flag"
8237 || test ! -s conftest.err'
8238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8239 (eval $ac_try) 2>&5
8240 ac_status=$?
8241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8242 (exit $ac_status); }; } &&
8243 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8245 (eval $ac_try) 2>&5
8246 ac_status=$?
8247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8248 (exit $ac_status); }; }; then
8249 ac_cv_func_dlopen=yes
8250else
8251 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008252sed 's/^/| /' conftest.$ac_ext >&5
8253
John Criswell7a73b802003-06-30 21:59:07 +00008254ac_cv_func_dlopen=no
8255fi
Reid Spencer17041682004-09-05 17:48:32 +00008256rm -f conftest.err conftest.$ac_objext \
8257 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008258fi
8259echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8260echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8261if test $ac_cv_func_dlopen = yes; then
8262 lt_cv_dlopen="dlopen"
8263else
8264 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8265echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8266if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268else
8269 ac_check_lib_save_LIBS=$LIBS
8270LIBS="-ldl $LIBS"
8271cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008272/* confdefs.h. */
8273_ACEOF
8274cat confdefs.h >>conftest.$ac_ext
8275cat >>conftest.$ac_ext <<_ACEOF
8276/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008277
8278/* Override any gcc2 internal prototype to avoid an error. */
8279#ifdef __cplusplus
8280extern "C"
8281#endif
8282/* We use char because int might match the return type of a gcc2
8283 builtin and then its argument prototype would still apply. */
8284char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008285int
8286main ()
8287{
8288dlopen ();
8289 ;
8290 return 0;
8291}
8292_ACEOF
8293rm -f conftest.$ac_objext conftest$ac_exeext
8294if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008295 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008296 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008297 grep -v '^ *+' conftest.er1 >conftest.err
8298 rm -f conftest.er1
8299 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008302 { ac_try='test -z "$ac_c_werror_flag"
8303 || test ! -s conftest.err'
8304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8305 (eval $ac_try) 2>&5
8306 ac_status=$?
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8311 (eval $ac_try) 2>&5
8312 ac_status=$?
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); }; }; then
8315 ac_cv_lib_dl_dlopen=yes
8316else
8317 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008318sed 's/^/| /' conftest.$ac_ext >&5
8319
John Criswell7a73b802003-06-30 21:59:07 +00008320ac_cv_lib_dl_dlopen=no
8321fi
Reid Spencer17041682004-09-05 17:48:32 +00008322rm -f conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008324LIBS=$ac_check_lib_save_LIBS
8325fi
8326echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8327echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8328if test $ac_cv_lib_dl_dlopen = yes; then
8329 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8330else
8331 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8332echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8333if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8335else
8336 ac_check_lib_save_LIBS=$LIBS
8337LIBS="-lsvld $LIBS"
8338cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008339/* confdefs.h. */
8340_ACEOF
8341cat confdefs.h >>conftest.$ac_ext
8342cat >>conftest.$ac_ext <<_ACEOF
8343/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008344
8345/* Override any gcc2 internal prototype to avoid an error. */
8346#ifdef __cplusplus
8347extern "C"
8348#endif
8349/* We use char because int might match the return type of a gcc2
8350 builtin and then its argument prototype would still apply. */
8351char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008352int
8353main ()
8354{
8355dlopen ();
8356 ;
8357 return 0;
8358}
8359_ACEOF
8360rm -f conftest.$ac_objext conftest$ac_exeext
8361if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008362 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008363 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008364 grep -v '^ *+' conftest.er1 >conftest.err
8365 rm -f conftest.er1
8366 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8368 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008369 { ac_try='test -z "$ac_c_werror_flag"
8370 || test ! -s conftest.err'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; } &&
8376 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 (eval $ac_try) 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_lib_svld_dlopen=yes
8383else
8384 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008385sed 's/^/| /' conftest.$ac_ext >&5
8386
John Criswell7a73b802003-06-30 21:59:07 +00008387ac_cv_lib_svld_dlopen=no
8388fi
Reid Spencer17041682004-09-05 17:48:32 +00008389rm -f conftest.err conftest.$ac_objext \
8390 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008391LIBS=$ac_check_lib_save_LIBS
8392fi
8393echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8394echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8395if test $ac_cv_lib_svld_dlopen = yes; then
8396 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8397else
8398 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8399echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8400if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8401 echo $ECHO_N "(cached) $ECHO_C" >&6
8402else
8403 ac_check_lib_save_LIBS=$LIBS
8404LIBS="-ldld $LIBS"
8405cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008406/* confdefs.h. */
8407_ACEOF
8408cat confdefs.h >>conftest.$ac_ext
8409cat >>conftest.$ac_ext <<_ACEOF
8410/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008411
8412/* Override any gcc2 internal prototype to avoid an error. */
8413#ifdef __cplusplus
8414extern "C"
8415#endif
8416/* We use char because int might match the return type of a gcc2
8417 builtin and then its argument prototype would still apply. */
8418char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008419int
8420main ()
8421{
8422dld_link ();
8423 ;
8424 return 0;
8425}
8426_ACEOF
8427rm -f conftest.$ac_objext conftest$ac_exeext
8428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008429 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008430 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008436 { ac_try='test -z "$ac_c_werror_flag"
8437 || test ! -s conftest.err'
8438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439 (eval $ac_try) 2>&5
8440 ac_status=$?
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); }; } &&
8443 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8445 (eval $ac_try) 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); }; }; then
8449 ac_cv_lib_dld_dld_link=yes
8450else
8451 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008452sed 's/^/| /' conftest.$ac_ext >&5
8453
John Criswell7a73b802003-06-30 21:59:07 +00008454ac_cv_lib_dld_dld_link=no
8455fi
Reid Spencer17041682004-09-05 17:48:32 +00008456rm -f conftest.err conftest.$ac_objext \
8457 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008458LIBS=$ac_check_lib_save_LIBS
8459fi
8460echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8461echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8462if test $ac_cv_lib_dld_dld_link = yes; then
8463 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8464fi
8465
8466
8467fi
8468
8469
8470fi
8471
8472
8473fi
8474
8475
8476fi
8477
8478
8479fi
8480
8481 ;;
8482 esac
8483
8484 if test "x$lt_cv_dlopen" != xno; then
8485 enable_dlopen=yes
8486 else
8487 enable_dlopen=no
8488 fi
8489
8490 case $lt_cv_dlopen in
8491 dlopen)
8492 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008493 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008494
8495 save_LDFLAGS="$LDFLAGS"
8496 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8497
8498 save_LIBS="$LIBS"
8499 LIBS="$lt_cv_dlopen_libs $LIBS"
8500
8501 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8502echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8503if test "${lt_cv_dlopen_self+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8505else
8506 if test "$cross_compiling" = yes; then :
8507 lt_cv_dlopen_self=cross
8508else
John Criswell47fdd832003-07-14 16:52:07 +00008509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008510 lt_status=$lt_dlunknown
8511 cat > conftest.$ac_ext <<EOF
Reid Spencer4d68ba22004-09-07 16:35:45 +00008512#line 8512 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008513#include "confdefs.h"
8514
8515#if HAVE_DLFCN_H
8516#include <dlfcn.h>
8517#endif
8518
8519#include <stdio.h>
8520
8521#ifdef RTLD_GLOBAL
8522# define LT_DLGLOBAL RTLD_GLOBAL
8523#else
8524# ifdef DL_GLOBAL
8525# define LT_DLGLOBAL DL_GLOBAL
8526# else
8527# define LT_DLGLOBAL 0
8528# endif
8529#endif
8530
8531/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8532 find out it does not work in some platform. */
8533#ifndef LT_DLLAZY_OR_NOW
8534# ifdef RTLD_LAZY
8535# define LT_DLLAZY_OR_NOW RTLD_LAZY
8536# else
8537# ifdef DL_LAZY
8538# define LT_DLLAZY_OR_NOW DL_LAZY
8539# else
8540# ifdef RTLD_NOW
8541# define LT_DLLAZY_OR_NOW RTLD_NOW
8542# else
8543# ifdef DL_NOW
8544# define LT_DLLAZY_OR_NOW DL_NOW
8545# else
8546# define LT_DLLAZY_OR_NOW 0
8547# endif
8548# endif
8549# endif
8550# endif
8551#endif
8552
8553#ifdef __cplusplus
8554extern "C" void exit (int);
8555#endif
8556
8557void fnord() { int i=42;}
8558int main ()
8559{
8560 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8561 int status = $lt_dlunknown;
8562
8563 if (self)
8564 {
8565 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8566 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8567 /* dlclose (self); */
8568 }
8569
8570 exit (status);
8571}
8572EOF
8573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8574 (eval $ac_link) 2>&5
8575 ac_status=$?
8576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8578 (./conftest; exit; ) 2>/dev/null
8579 lt_status=$?
8580 case x$lt_status in
8581 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8582 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8583 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8584 esac
8585 else :
8586 # compilation failed
8587 lt_cv_dlopen_self=no
8588 fi
8589fi
8590rm -fr conftest*
8591
8592
8593fi
8594echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8595echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8596
8597 if test "x$lt_cv_dlopen_self" = xyes; then
8598 LDFLAGS="$LDFLAGS $link_static_flag"
8599 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8600echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8601if test "${lt_cv_dlopen_self_static+set}" = set; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8603else
8604 if test "$cross_compiling" = yes; then :
8605 lt_cv_dlopen_self_static=cross
8606else
John Criswell47fdd832003-07-14 16:52:07 +00008607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008608 lt_status=$lt_dlunknown
8609 cat > conftest.$ac_ext <<EOF
Reid Spencer4d68ba22004-09-07 16:35:45 +00008610#line 8610 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008611#include "confdefs.h"
8612
8613#if HAVE_DLFCN_H
8614#include <dlfcn.h>
8615#endif
8616
8617#include <stdio.h>
8618
8619#ifdef RTLD_GLOBAL
8620# define LT_DLGLOBAL RTLD_GLOBAL
8621#else
8622# ifdef DL_GLOBAL
8623# define LT_DLGLOBAL DL_GLOBAL
8624# else
8625# define LT_DLGLOBAL 0
8626# endif
8627#endif
8628
8629/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8630 find out it does not work in some platform. */
8631#ifndef LT_DLLAZY_OR_NOW
8632# ifdef RTLD_LAZY
8633# define LT_DLLAZY_OR_NOW RTLD_LAZY
8634# else
8635# ifdef DL_LAZY
8636# define LT_DLLAZY_OR_NOW DL_LAZY
8637# else
8638# ifdef RTLD_NOW
8639# define LT_DLLAZY_OR_NOW RTLD_NOW
8640# else
8641# ifdef DL_NOW
8642# define LT_DLLAZY_OR_NOW DL_NOW
8643# else
8644# define LT_DLLAZY_OR_NOW 0
8645# endif
8646# endif
8647# endif
8648# endif
8649#endif
8650
8651#ifdef __cplusplus
8652extern "C" void exit (int);
8653#endif
8654
8655void fnord() { int i=42;}
8656int main ()
8657{
8658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8659 int status = $lt_dlunknown;
8660
8661 if (self)
8662 {
8663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8664 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8665 /* dlclose (self); */
8666 }
8667
8668 exit (status);
8669}
8670EOF
8671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8672 (eval $ac_link) 2>&5
8673 ac_status=$?
8674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8675 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8676 (./conftest; exit; ) 2>/dev/null
8677 lt_status=$?
8678 case x$lt_status in
8679 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8680 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8681 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8682 esac
8683 else :
8684 # compilation failed
8685 lt_cv_dlopen_self_static=no
8686 fi
8687fi
8688rm -fr conftest*
8689
8690
8691fi
8692echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8693echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8694 fi
8695
8696 CPPFLAGS="$save_CPPFLAGS"
8697 LDFLAGS="$save_LDFLAGS"
8698 LIBS="$save_LIBS"
8699 ;;
8700 esac
8701
8702 case $lt_cv_dlopen_self in
8703 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8704 *) enable_dlopen_self=unknown ;;
8705 esac
8706
8707 case $lt_cv_dlopen_self_static in
8708 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8709 *) enable_dlopen_self_static=unknown ;;
8710 esac
8711fi
8712
8713
John Criswell47fdd832003-07-14 16:52:07 +00008714# Report which librarie types wil actually be built
8715echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8716echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8717echo "$as_me:$LINENO: result: $can_build_shared" >&5
8718echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008719
John Criswell47fdd832003-07-14 16:52:07 +00008720echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8721echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8722test "$can_build_shared" = "no" && enable_shared=no
8723
8724# On AIX, shared libraries and static libraries use the same namespace, and
8725# are all built from PIC.
8726case "$host_os" in
8727aix3*)
8728 test "$enable_shared" = yes && enable_static=no
8729 if test -n "$RANLIB"; then
8730 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8731 postinstall_cmds='$RANLIB $lib'
8732 fi
8733 ;;
8734
8735aix4*)
8736 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8737 test "$enable_shared" = yes && enable_static=no
8738 fi
8739 ;;
8740 darwin* | rhapsody*)
8741 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8742 archive_cmds_need_lc=no
8743 case "$host_os" in
8744 rhapsody* | darwin1.[012])
8745 allow_undefined_flag='-undefined suppress'
8746 ;;
8747 *) # Darwin 1.3 on
8748 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8749 ;;
8750 esac
8751 # FIXME: Relying on posixy $() will cause problems for
8752 # cross-compilation, but unfortunately the echo tests do not
8753 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8754 # `"' quotes if we put them in here... so don't!
8755 output_verbose_link_cmd='echo'
8756 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8757 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8758 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8759 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}'
8760 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8761 hardcode_direct=no
8762 hardcode_automatic=yes
8763 hardcode_shlibpath_var=unsupported
8764 whole_archive_flag_spec='-all_load $convenience'
8765 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008766 fi
John Criswell7a73b802003-06-30 21:59:07 +00008767 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008768esac
8769echo "$as_me:$LINENO: result: $enable_shared" >&5
8770echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008771
John Criswell47fdd832003-07-14 16:52:07 +00008772echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8773echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8774# Make sure either enable_shared or enable_static is yes.
8775test "$enable_shared" = yes || enable_static=yes
8776echo "$as_me:$LINENO: result: $enable_static" >&5
8777echo "${ECHO_T}$enable_static" >&6
8778
8779# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008780# libtool distribution, otherwise you forgot to ship ltmain.sh
8781# with your package, and you will get complaints that there are
8782# no rules to generate ltmain.sh.
8783if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008784 # See if we are running on zsh, and set the options which allow our commands through
8785 # without removal of \ escapes.
8786 if test -n "${ZSH_VERSION+set}" ; then
8787 setopt NO_GLOB_SUBST
8788 fi
John Criswell7a73b802003-06-30 21:59:07 +00008789 # Now quote all the things that may contain metacharacters while being
8790 # careful not to overquote the AC_SUBSTed values. We take copies of the
8791 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008792 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8793 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8794 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8795 deplibs_check_method reload_flag reload_cmds need_locks \
8796 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8797 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008798 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008799 old_postinstall_cmds old_postuninstall_cmds \
8800 compiler \
8801 CC \
8802 LD \
8803 lt_prog_compiler_wl \
8804 lt_prog_compiler_pic \
8805 lt_prog_compiler_static \
8806 lt_prog_compiler_no_builtin_flag \
8807 export_dynamic_flag_spec \
8808 thread_safe_flag_spec \
8809 whole_archive_flag_spec \
8810 enable_shared_with_static_runtimes \
8811 old_archive_cmds \
8812 old_archive_from_new_cmds \
8813 predep_objects \
8814 postdep_objects \
8815 predeps \
8816 postdeps \
8817 compiler_lib_search_path \
8818 archive_cmds \
8819 archive_expsym_cmds \
8820 postinstall_cmds \
8821 postuninstall_cmds \
8822 old_archive_from_expsyms_cmds \
8823 allow_undefined_flag \
8824 no_undefined_flag \
8825 export_symbols_cmds \
8826 hardcode_libdir_flag_spec \
8827 hardcode_libdir_flag_spec_ld \
8828 hardcode_libdir_separator \
8829 hardcode_automatic \
8830 module_cmds \
8831 module_expsym_cmds \
8832 lt_cv_prog_compiler_c_o \
8833 exclude_expsyms \
8834 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008835
8836 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008837 old_archive_cmds | \
8838 old_archive_from_new_cmds | \
8839 archive_cmds | \
8840 archive_expsym_cmds | \
8841 module_cmds | \
8842 module_expsym_cmds | \
8843 old_archive_from_expsyms_cmds | \
8844 export_symbols_cmds | \
8845 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008846 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008847 old_postinstall_cmds | old_postuninstall_cmds | \
8848 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008849 # Double-quote double-evaled strings.
8850 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8851 ;;
8852 *)
8853 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8854 ;;
8855 esac
8856 done
8857
John Criswell47fdd832003-07-14 16:52:07 +00008858 case $lt_echo in
8859 *'\$0 --fallback-echo"')
8860 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8861 ;;
8862 esac
8863
8864cfgfile="${ofile}T"
8865 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8866 $rm -f "$cfgfile"
8867 { echo "$as_me:$LINENO: creating $ofile" >&5
8868echo "$as_me: creating $ofile" >&6;}
8869
8870 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008871#! $SHELL
8872
John Criswell47fdd832003-07-14 16:52:07 +00008873# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008874# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8875# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8876#
John Criswell47fdd832003-07-14 16:52:07 +00008877# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8878# Free Software Foundation, Inc.
8879#
8880# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008881# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8882#
8883# This program is free software; you can redistribute it and/or modify
8884# it under the terms of the GNU General Public License as published by
8885# the Free Software Foundation; either version 2 of the License, or
8886# (at your option) any later version.
8887#
8888# This program is distributed in the hope that it will be useful, but
8889# WITHOUT ANY WARRANTY; without even the implied warranty of
8890# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8891# General Public License for more details.
8892#
8893# You should have received a copy of the GNU General Public License
8894# along with this program; if not, write to the Free Software
8895# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8896#
8897# As a special exception to the GNU General Public License, if you
8898# distribute this file as part of a program that contains a
8899# configuration script generated by Autoconf, you may include it under
8900# the same distribution terms that you use for the rest of that program.
8901
John Criswell47fdd832003-07-14 16:52:07 +00008902# A sed program that does not truncate output.
8903SED=$lt_SED
8904
John Criswell7a73b802003-06-30 21:59:07 +00008905# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008906Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008907
8908# The HP-UX ksh and POSIX shell print the target directory to stdout
8909# if CDPATH is set.
8910if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8911
John Criswell47fdd832003-07-14 16:52:07 +00008912# The names of the tagged configurations supported by this script.
8913available_tags=
8914
John Criswell7a73b802003-06-30 21:59:07 +00008915# ### BEGIN LIBTOOL CONFIG
8916
8917# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8918
8919# Shell to use when invoking shell scripts.
8920SHELL=$lt_SHELL
8921
8922# Whether or not to build shared libraries.
8923build_libtool_libs=$enable_shared
8924
8925# Whether or not to build static libraries.
8926build_old_libs=$enable_static
8927
8928# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008929build_libtool_need_lc=$archive_cmds_need_lc
8930
8931# Whether or not to disallow shared libs when runtime libs are static
8932allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008933
8934# Whether or not to optimize for fast installation.
8935fast_install=$enable_fast_install
8936
8937# The host system.
8938host_alias=$host_alias
8939host=$host
8940
8941# An echo program that does not interpret backslashes.
8942echo=$lt_echo
8943
8944# The archiver.
8945AR=$lt_AR
8946AR_FLAGS=$lt_AR_FLAGS
8947
John Criswell47fdd832003-07-14 16:52:07 +00008948# A C compiler.
8949LTCC=$lt_LTCC
8950
8951# A language-specific compiler.
8952CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008953
8954# Is the compiler the GNU C compiler?
8955with_gcc=$GCC
8956
John Criswell47fdd832003-07-14 16:52:07 +00008957# An ERE matcher.
8958EGREP=$lt_EGREP
8959
John Criswell7a73b802003-06-30 21:59:07 +00008960# The linker used to build libraries.
8961LD=$lt_LD
8962
8963# Whether we need hard or soft links.
8964LN_S=$lt_LN_S
8965
8966# A BSD-compatible nm program.
8967NM=$lt_NM
8968
8969# A symbol stripping program
8970STRIP=$STRIP
8971
8972# Used to examine libraries when file_magic_cmd begins "file"
8973MAGIC_CMD=$MAGIC_CMD
8974
8975# Used on cygwin: DLL creation program.
8976DLLTOOL="$DLLTOOL"
8977
8978# Used on cygwin: object dumper.
8979OBJDUMP="$OBJDUMP"
8980
8981# Used on cygwin: assembler.
8982AS="$AS"
8983
8984# The name of the directory that contains temporary libtool files.
8985objdir=$objdir
8986
8987# How to create reloadable object files.
8988reload_flag=$lt_reload_flag
8989reload_cmds=$lt_reload_cmds
8990
8991# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008992wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008993
8994# Object file suffix (normally "o").
8995objext="$ac_objext"
8996
8997# Old archive suffix (normally "a").
8998libext="$libext"
8999
John Criswell47fdd832003-07-14 16:52:07 +00009000# Shared library suffix (normally ".so").
9001shrext='$shrext'
9002
John Criswell7a73b802003-06-30 21:59:07 +00009003# Executable file suffix (normally "").
9004exeext="$exeext"
9005
9006# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009007pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009008pic_mode=$pic_mode
9009
John Criswell47fdd832003-07-14 16:52:07 +00009010# What is the maximum length of a command?
9011max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009012
John Criswell47fdd832003-07-14 16:52:07 +00009013# Does compiler simultaneously support -c and -o options?
9014compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009015
9016# Must we lock files when doing compilation ?
9017need_locks=$lt_need_locks
9018
9019# Do we need the lib prefix for modules?
9020need_lib_prefix=$need_lib_prefix
9021
9022# Do we need a version for libraries?
9023need_version=$need_version
9024
9025# Whether dlopen is supported.
9026dlopen_support=$enable_dlopen
9027
9028# Whether dlopen of programs is supported.
9029dlopen_self=$enable_dlopen_self
9030
9031# Whether dlopen of statically linked programs is supported.
9032dlopen_self_static=$enable_dlopen_self_static
9033
9034# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009035link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009036
9037# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009038no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009039
9040# Compiler flag to allow reflexive dlopens.
9041export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9042
9043# Compiler flag to generate shared objects directly from archives.
9044whole_archive_flag_spec=$lt_whole_archive_flag_spec
9045
9046# Compiler flag to generate thread-safe objects.
9047thread_safe_flag_spec=$lt_thread_safe_flag_spec
9048
9049# Library versioning type.
9050version_type=$version_type
9051
9052# Format of library name prefix.
9053libname_spec=$lt_libname_spec
9054
9055# List of archive names. First name is the real one, the rest are links.
9056# The last name is the one that the linker finds with -lNAME.
9057library_names_spec=$lt_library_names_spec
9058
9059# The coded name of the library, if different from the real name.
9060soname_spec=$lt_soname_spec
9061
9062# Commands used to build and install an old-style archive.
9063RANLIB=$lt_RANLIB
9064old_archive_cmds=$lt_old_archive_cmds
9065old_postinstall_cmds=$lt_old_postinstall_cmds
9066old_postuninstall_cmds=$lt_old_postuninstall_cmds
9067
9068# Create an old-style archive from a shared archive.
9069old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9070
9071# Create a temporary old-style archive to link instead of a shared archive.
9072old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9073
9074# Commands used to build and install a shared archive.
9075archive_cmds=$lt_archive_cmds
9076archive_expsym_cmds=$lt_archive_expsym_cmds
9077postinstall_cmds=$lt_postinstall_cmds
9078postuninstall_cmds=$lt_postuninstall_cmds
9079
John Criswell47fdd832003-07-14 16:52:07 +00009080# Commands used to build a loadable module (assumed same as above if empty)
9081module_cmds=$lt_module_cmds
9082module_expsym_cmds=$lt_module_expsym_cmds
9083
John Criswell7a73b802003-06-30 21:59:07 +00009084# Commands to strip libraries.
9085old_striplib=$lt_old_striplib
9086striplib=$lt_striplib
9087
John Criswell47fdd832003-07-14 16:52:07 +00009088# Dependencies to place before the objects being linked to create a
9089# shared library.
9090predep_objects=$lt_predep_objects
9091
9092# Dependencies to place after the objects being linked to create a
9093# shared library.
9094postdep_objects=$lt_postdep_objects
9095
9096# Dependencies to place before the objects being linked to create a
9097# shared library.
9098predeps=$lt_predeps
9099
9100# Dependencies to place after the objects being linked to create a
9101# shared library.
9102postdeps=$lt_postdeps
9103
9104# The library search path used internally by the compiler when linking
9105# a shared library.
9106compiler_lib_search_path=$lt_compiler_lib_search_path
9107
John Criswell7a73b802003-06-30 21:59:07 +00009108# Method to check whether dependent libraries are shared objects.
9109deplibs_check_method=$lt_deplibs_check_method
9110
9111# Command to use when deplibs_check_method == file_magic.
9112file_magic_cmd=$lt_file_magic_cmd
9113
9114# Flag that allows shared libraries with undefined symbols to be built.
9115allow_undefined_flag=$lt_allow_undefined_flag
9116
9117# Flag that forces no undefined symbols.
9118no_undefined_flag=$lt_no_undefined_flag
9119
9120# Commands used to finish a libtool library installation in a directory.
9121finish_cmds=$lt_finish_cmds
9122
9123# Same as above, but a single script fragment to be evaled but not shown.
9124finish_eval=$lt_finish_eval
9125
9126# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009127global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009128
9129# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009130global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009131
9132# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009133global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009134
9135# This is the shared library runtime path variable.
9136runpath_var=$runpath_var
9137
9138# This is the shared library path variable.
9139shlibpath_var=$shlibpath_var
9140
9141# Is shlibpath searched before the hard-coded library search path?
9142shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9143
9144# How to hardcode a shared library path into an executable.
9145hardcode_action=$hardcode_action
9146
9147# Whether we should hardcode library paths into libraries.
9148hardcode_into_libs=$hardcode_into_libs
9149
9150# Flag to hardcode \$libdir into a binary during linking.
9151# This must work even if \$libdir does not exist.
9152hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9153
John Criswell47fdd832003-07-14 16:52:07 +00009154# If ld is used when linking, flag to hardcode \$libdir into
9155# a binary during linking. This must work even if \$libdir does
9156# not exist.
9157hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9158
John Criswell7a73b802003-06-30 21:59:07 +00009159# Whether we need a single -rpath flag with a separated argument.
9160hardcode_libdir_separator=$lt_hardcode_libdir_separator
9161
John Criswell47fdd832003-07-14 16:52:07 +00009162# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009163# resulting binary.
9164hardcode_direct=$hardcode_direct
9165
9166# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9167# resulting binary.
9168hardcode_minus_L=$hardcode_minus_L
9169
9170# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9171# the resulting binary.
9172hardcode_shlibpath_var=$hardcode_shlibpath_var
9173
John Criswell47fdd832003-07-14 16:52:07 +00009174# Set to yes if building a shared library automatically hardcodes DIR into the library
9175# and all subsequent libraries and executables linked against it.
9176hardcode_automatic=$hardcode_automatic
9177
John Criswell7a73b802003-06-30 21:59:07 +00009178# Variables whose values should be saved in libtool wrapper scripts and
9179# restored at relink time.
9180variables_saved_for_relink="$variables_saved_for_relink"
9181
9182# Whether libtool must link a program against all its dependency libraries.
9183link_all_deplibs=$link_all_deplibs
9184
9185# Compile-time system search path for libraries
9186sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9187
9188# Run-time system search path for libraries
9189sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9190
9191# Fix the shell variable \$srcfile for the compiler.
9192fix_srcfile_path="$fix_srcfile_path"
9193
9194# Set to yes if exported symbols are required.
9195always_export_symbols=$always_export_symbols
9196
9197# The commands to list exported symbols.
9198export_symbols_cmds=$lt_export_symbols_cmds
9199
9200# The commands to extract the exported symbol list from a shared archive.
9201extract_expsyms_cmds=$lt_extract_expsyms_cmds
9202
9203# Symbols that should not be listed in the preloaded symbols.
9204exclude_expsyms=$lt_exclude_expsyms
9205
9206# Symbols that must always be exported.
9207include_expsyms=$lt_include_expsyms
9208
9209# ### END LIBTOOL CONFIG
9210
9211__EOF__
9212
John Criswell47fdd832003-07-14 16:52:07 +00009213
John Criswell7a73b802003-06-30 21:59:07 +00009214 case $host_os in
9215 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009216 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009217
9218# AIX sometimes has problems with the GCC collect2 program. For some
9219# reason, if we set the COLLECT_NAMES environment variable, the problems
9220# vanish in a puff of smoke.
9221if test "X${COLLECT_NAMES+set}" != Xset; then
9222 COLLECT_NAMES=
9223 export COLLECT_NAMES
9224fi
9225EOF
9226 ;;
9227 esac
9228
John Criswell7a73b802003-06-30 21:59:07 +00009229 # We use sed instead of cat because bash on DJGPP gets confused if
9230 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9231 # text mode, it properly converts lines to CR/LF. This bash problem
9232 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009233 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009234
John Criswell47fdd832003-07-14 16:52:07 +00009235 mv -f "$cfgfile" "$ofile" || \
9236 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009237 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009238
9239else
9240 # If there is no Makefile yet, we rely on a make rule to execute
9241 # `config.status --recheck' to rerun these tests and create the
9242 # libtool script then.
9243 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009244fi
John Criswell7a73b802003-06-30 21:59:07 +00009245
9246
John Criswell47fdd832003-07-14 16:52:07 +00009247ac_ext=c
9248ac_cpp='$CPP $CPPFLAGS'
9249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9251ac_compiler_gnu=$ac_cv_c_compiler_gnu
9252
9253CC="$lt_save_CC"
9254
9255
9256# Check whether --with-tags or --without-tags was given.
9257if test "${with_tags+set}" = set; then
9258 withval="$with_tags"
9259 tagnames="$withval"
9260fi;
9261
9262if test -f "$ltmain" && test -n "$tagnames"; then
9263 if test ! -f "${ofile}"; then
9264 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9265echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9266 fi
9267
9268 if test -z "$LTCC"; then
9269 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9270 if test -z "$LTCC"; then
9271 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9272echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9273 else
9274 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9275echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9276 fi
9277 fi
9278
9279 # Extract list of available tagged configurations in $ofile.
9280 # Note that this assumes the entire list is on one line.
9281 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9282
9283 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9284 for tagname in $tagnames; do
9285 IFS="$lt_save_ifs"
9286 # Check whether tagname contains only valid characters
9287 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9288 "") ;;
9289 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9290echo "$as_me: error: invalid tag name: $tagname" >&2;}
9291 { (exit 1); exit 1; }; }
9292 ;;
9293 esac
9294
9295 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9296 then
9297 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9298echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9299 { (exit 1); exit 1; }; }
9300 fi
9301
9302 # Update the list of available tags.
9303 if test -n "$tagname"; then
9304 echo appending configuration tag \"$tagname\" to $ofile
9305
9306 case $tagname in
9307 CXX)
9308 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9309 ac_ext=cc
9310ac_cpp='$CXXCPP $CPPFLAGS'
9311ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9312ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9313ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9314
9315
9316
9317
9318archive_cmds_need_lc_CXX=no
9319allow_undefined_flag_CXX=
9320always_export_symbols_CXX=no
9321archive_expsym_cmds_CXX=
9322export_dynamic_flag_spec_CXX=
9323hardcode_direct_CXX=no
9324hardcode_libdir_flag_spec_CXX=
9325hardcode_libdir_flag_spec_ld_CXX=
9326hardcode_libdir_separator_CXX=
9327hardcode_minus_L_CXX=no
9328hardcode_automatic_CXX=no
9329module_cmds_CXX=
9330module_expsym_cmds_CXX=
9331link_all_deplibs_CXX=unknown
9332old_archive_cmds_CXX=$old_archive_cmds
9333no_undefined_flag_CXX=
9334whole_archive_flag_spec_CXX=
9335enable_shared_with_static_runtimes_CXX=no
9336
9337# Dependencies to place before and after the object being linked:
9338predep_objects_CXX=
9339postdep_objects_CXX=
9340predeps_CXX=
9341postdeps_CXX=
9342compiler_lib_search_path_CXX=
9343
9344# Source file extension for C++ test sources.
9345ac_ext=cc
9346
9347# Object file extension for compiled C++ test sources.
9348objext=o
9349objext_CXX=$objext
9350
9351# Code to be used in simple compile tests
9352lt_simple_compile_test_code="int some_variable = 0;\n"
9353
9354# Code to be used in simple link tests
9355lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9356
9357# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9358
9359# If no C compiler was specified, use CC.
9360LTCC=${LTCC-"$CC"}
9361
9362# Allow CC to be a program name with arguments.
9363compiler=$CC
9364
9365
9366# Allow CC to be a program name with arguments.
9367lt_save_CC=$CC
9368lt_save_LD=$LD
9369lt_save_GCC=$GCC
9370GCC=$GXX
9371lt_save_with_gnu_ld=$with_gnu_ld
9372lt_save_path_LD=$lt_cv_path_LD
9373if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9374 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9375else
9376 unset lt_cv_prog_gnu_ld
9377fi
9378if test -n "${lt_cv_path_LDCXX+set}"; then
9379 lt_cv_path_LD=$lt_cv_path_LDCXX
9380else
9381 unset lt_cv_path_LD
9382fi
9383test -z "${LDCXX+set}" || LD=$LDCXX
9384CC=${CXX-"c++"}
9385compiler=$CC
9386compiler_CXX=$CC
9387cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9388
9389# We don't want -fno-exception wen compiling C++ code, so set the
9390# no_builtin_flag separately
9391if test "$GXX" = yes; then
9392 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9393else
9394 lt_prog_compiler_no_builtin_flag_CXX=
9395fi
9396
9397if test "$GXX" = yes; then
9398 # Set up default GNU C++ configuration
9399
9400
9401# Check whether --with-gnu-ld or --without-gnu-ld was given.
9402if test "${with_gnu_ld+set}" = set; then
9403 withval="$with_gnu_ld"
9404 test "$withval" = no || with_gnu_ld=yes
9405else
9406 with_gnu_ld=no
9407fi;
9408ac_prog=ld
9409if test "$GCC" = yes; then
9410 # Check if gcc -print-prog-name=ld gives a path.
9411 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9412echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9413 case $host in
9414 *-*-mingw*)
9415 # gcc leaves a trailing carriage return which upsets mingw
9416 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9417 *)
9418 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9419 esac
9420 case $ac_prog in
9421 # Accept absolute paths.
9422 [\\/]* | ?:[\\/]*)
9423 re_direlt='/[^/][^/]*/\.\./'
9424 # Canonicalize the path of ld
9425 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9426 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9427 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9428 done
9429 test -z "$LD" && LD="$ac_prog"
9430 ;;
9431 "")
9432 # If it fails, then pretend we aren't using GCC.
9433 ac_prog=ld
9434 ;;
9435 *)
9436 # If it is relative, then search for the first ld in PATH.
9437 with_gnu_ld=unknown
9438 ;;
9439 esac
9440elif test "$with_gnu_ld" = yes; then
9441 echo "$as_me:$LINENO: checking for GNU ld" >&5
9442echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9443else
9444 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9445echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9446fi
9447if test "${lt_cv_path_LD+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9449else
9450 if test -z "$LD"; then
9451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9452 for ac_dir in $PATH; do
9453 IFS="$lt_save_ifs"
9454 test -z "$ac_dir" && ac_dir=.
9455 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9456 lt_cv_path_LD="$ac_dir/$ac_prog"
9457 # Check to see if the program is GNU ld. I'd rather use --version,
9458 # but apparently some GNU ld's only accept -v.
9459 # Break only if it was the GNU/non-GNU ld that we prefer.
9460 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9461 *GNU* | *'with BFD'*)
9462 test "$with_gnu_ld" != no && break
9463 ;;
9464 *)
9465 test "$with_gnu_ld" != yes && break
9466 ;;
9467 esac
9468 fi
9469 done
9470 IFS="$lt_save_ifs"
9471else
9472 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9473fi
9474fi
9475
9476LD="$lt_cv_path_LD"
9477if test -n "$LD"; then
9478 echo "$as_me:$LINENO: result: $LD" >&5
9479echo "${ECHO_T}$LD" >&6
9480else
9481 echo "$as_me:$LINENO: result: no" >&5
9482echo "${ECHO_T}no" >&6
9483fi
9484test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9485echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9486 { (exit 1); exit 1; }; }
9487echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9488echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9489if test "${lt_cv_prog_gnu_ld+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9491else
9492 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9493case `"$LD" -v 2>&1 </dev/null` in
9494*GNU* | *'with BFD'*)
9495 lt_cv_prog_gnu_ld=yes
9496 ;;
9497*)
9498 lt_cv_prog_gnu_ld=no
9499 ;;
9500esac
9501fi
9502echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9503echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9504with_gnu_ld=$lt_cv_prog_gnu_ld
9505
9506
9507
9508 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9509 # archiving commands below assume that GNU ld is being used.
9510 if test "$with_gnu_ld" = yes; then
9511 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9512 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'
9513
9514 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9515 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9516
9517 # If archive_cmds runs LD, not CC, wlarc should be empty
9518 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9519 # investigate it a little bit more. (MM)
9520 wlarc='${wl}'
9521
9522 # ancient GNU ld didn't support --whole-archive et. al.
9523 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9524 grep 'no-whole-archive' > /dev/null; then
9525 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9526 else
9527 whole_archive_flag_spec_CXX=
9528 fi
9529 else
9530 with_gnu_ld=no
9531 wlarc=
9532
9533 # A generic and very simple default shared library creation
9534 # command for GNU C++ for the case where it uses the native
9535 # linker, instead of GNU ld. If possible, this setting should
9536 # overridden to take advantage of the native linker features on
9537 # the platform it is being used on.
9538 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9539 fi
9540
9541 # Commands to make compiler produce verbose output that lists
9542 # what "hidden" libraries, object files and flags are used when
9543 # linking a shared library.
9544 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9545
9546else
9547 GXX=no
9548 with_gnu_ld=no
9549 wlarc=
9550fi
9551
9552# PORTME: fill in a description of your system's C++ link characteristics
9553echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9554echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9555ld_shlibs_CXX=yes
9556case $host_os in
9557 aix3*)
9558 # FIXME: insert proper C++ library support
9559 ld_shlibs_CXX=no
9560 ;;
9561 aix4* | aix5*)
9562 if test "$host_cpu" = ia64; then
9563 # On IA64, the linker does run time linking by default, so we don't
9564 # have to do anything special.
9565 aix_use_runtimelinking=no
9566 exp_sym_flag='-Bexport'
9567 no_entry_flag=""
9568 else
9569 aix_use_runtimelinking=no
9570
9571 # Test if we are trying to use run time linking or normal
9572 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9573 # need to do runtime linking.
9574 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9575 for ld_flag in $LDFLAGS; do
9576 case $ld_flag in
9577 *-brtl*)
9578 aix_use_runtimelinking=yes
9579 break
9580 ;;
9581 esac
9582 done
9583 esac
9584
9585 exp_sym_flag='-bexport'
9586 no_entry_flag='-bnoentry'
9587 fi
9588
9589 # When large executables or shared objects are built, AIX ld can
9590 # have problems creating the table of contents. If linking a library
9591 # or program results in "error TOC overflow" add -mminimal-toc to
9592 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9593 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9594
9595 archive_cmds_CXX=''
9596 hardcode_direct_CXX=yes
9597 hardcode_libdir_separator_CXX=':'
9598 link_all_deplibs_CXX=yes
9599
9600 if test "$GXX" = yes; then
9601 case $host_os in aix4.012|aix4.012.*)
9602 # We only want to do this on AIX 4.2 and lower, the check
9603 # below for broken collect2 doesn't work under 4.3+
9604 collect2name=`${CC} -print-prog-name=collect2`
9605 if test -f "$collect2name" && \
9606 strings "$collect2name" | grep resolve_lib_name >/dev/null
9607 then
9608 # We have reworked collect2
9609 hardcode_direct_CXX=yes
9610 else
9611 # We have old collect2
9612 hardcode_direct_CXX=unsupported
9613 # It fails to find uninstalled libraries when the uninstalled
9614 # path is not listed in the libpath. Setting hardcode_minus_L
9615 # to unsupported forces relinking
9616 hardcode_minus_L_CXX=yes
9617 hardcode_libdir_flag_spec_CXX='-L$libdir'
9618 hardcode_libdir_separator_CXX=
9619 fi
9620 esac
9621 shared_flag='-shared'
9622 else
9623 # not using gcc
9624 if test "$host_cpu" = ia64; then
9625 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9626 # chokes on -Wl,-G. The following line is correct:
9627 shared_flag='-G'
9628 else
9629 if test "$aix_use_runtimelinking" = yes; then
9630 shared_flag='${wl}-G'
9631 else
9632 shared_flag='${wl}-bM:SRE'
9633 fi
9634 fi
9635 fi
9636
9637 # It seems that -bexpall does not export symbols beginning with
9638 # underscore (_), so it is better to generate a list of symbols to export.
9639 always_export_symbols_CXX=yes
9640 if test "$aix_use_runtimelinking" = yes; then
9641 # Warning - without using the other runtime loading flags (-brtl),
9642 # -berok will link without error, but may produce a broken library.
9643 allow_undefined_flag_CXX='-berok'
9644 # Determine the default libpath from the value encoded in an empty executable.
9645 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009646/* confdefs.h. */
9647_ACEOF
9648cat confdefs.h >>conftest.$ac_ext
9649cat >>conftest.$ac_ext <<_ACEOF
9650/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009651
John Criswell47fdd832003-07-14 16:52:07 +00009652int
9653main ()
9654{
9655
9656 ;
9657 return 0;
9658}
9659_ACEOF
9660rm -f conftest.$ac_objext conftest$ac_exeext
9661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00009662 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009663 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00009664 grep -v '^ *+' conftest.er1 >conftest.err
9665 rm -f conftest.er1
9666 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00009669 { ac_try='test -z "$ac_cxx_werror_flag"
9670 || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9672 (eval $ac_try) 2>&5
9673 ac_status=$?
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9678 (eval $ac_try) 2>&5
9679 ac_status=$?
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9682
9683aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9684}'`
9685# Check for a 64-bit object if we didn't find anything.
9686if 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; }
9687}'`; fi
9688else
9689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009690sed 's/^/| /' conftest.$ac_ext >&5
9691
John Criswell47fdd832003-07-14 16:52:07 +00009692fi
Reid Spencer17041682004-09-05 17:48:32 +00009693rm -f conftest.err conftest.$ac_objext \
9694 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009695if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9696
9697 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9698
9699 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"
9700 else
9701 if test "$host_cpu" = ia64; then
9702 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9703 allow_undefined_flag_CXX="-z nodefs"
9704 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"
9705 else
9706 # Determine the default libpath from the value encoded in an empty executable.
9707 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009708/* confdefs.h. */
9709_ACEOF
9710cat confdefs.h >>conftest.$ac_ext
9711cat >>conftest.$ac_ext <<_ACEOF
9712/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009713
John Criswell47fdd832003-07-14 16:52:07 +00009714int
9715main ()
9716{
9717
9718 ;
9719 return 0;
9720}
9721_ACEOF
9722rm -f conftest.$ac_objext conftest$ac_exeext
9723if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00009724 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009725 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00009726 grep -v '^ *+' conftest.er1 >conftest.err
9727 rm -f conftest.er1
9728 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00009731 { ac_try='test -z "$ac_cxx_werror_flag"
9732 || test ! -s conftest.err'
9733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9734 (eval $ac_try) 2>&5
9735 ac_status=$?
9736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9737 (exit $ac_status); }; } &&
9738 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9740 (eval $ac_try) 2>&5
9741 ac_status=$?
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; }; then
9744
9745aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9746}'`
9747# Check for a 64-bit object if we didn't find anything.
9748if 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; }
9749}'`; fi
9750else
9751 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009752sed 's/^/| /' conftest.$ac_ext >&5
9753
John Criswell47fdd832003-07-14 16:52:07 +00009754fi
Reid Spencer17041682004-09-05 17:48:32 +00009755rm -f conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009757if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9758
9759 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9760 # Warning - without using the other run time loading flags,
9761 # -berok will link without error, but may produce a broken library.
9762 no_undefined_flag_CXX=' ${wl}-bernotok'
9763 allow_undefined_flag_CXX=' ${wl}-berok'
9764 # -bexpall does not export symbols beginning with underscore (_)
9765 always_export_symbols_CXX=yes
9766 # Exported symbols can be pulled into shared objects from archives
9767 whole_archive_flag_spec_CXX=' '
9768 archive_cmds_need_lc_CXX=yes
9769 # This is similar to how AIX traditionally builds it's shared libraries.
9770 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'
9771 fi
9772 fi
9773 ;;
9774 chorus*)
9775 case $cc_basename in
9776 *)
9777 # FIXME: insert proper C++ library support
9778 ld_shlibs_CXX=no
9779 ;;
9780 esac
9781 ;;
9782
9783 cygwin* | mingw* | pw32*)
9784 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9785 # as there is no search path for DLLs.
9786 hardcode_libdir_flag_spec_CXX='-L$libdir'
9787 allow_undefined_flag_CXX=unsupported
9788 always_export_symbols_CXX=no
9789 enable_shared_with_static_runtimes_CXX=yes
9790
9791 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9792 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'
9793 # If the export-symbols file already is a .def file (1st line
9794 # is EXPORTS), use it as is; otherwise, prepend...
9795 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9796 cp $export_symbols $output_objdir/$soname.def;
9797 else
9798 echo EXPORTS > $output_objdir/$soname.def;
9799 cat $export_symbols >> $output_objdir/$soname.def;
9800 fi~
9801 $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'
9802 else
9803 ld_shlibs_CXX=no
9804 fi
9805 ;;
9806
9807 darwin* | rhapsody*)
9808 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9809 archive_cmds_need_lc_CXX=no
9810 case "$host_os" in
9811 rhapsody* | darwin1.[012])
9812 allow_undefined_flag_CXX='-undefined suppress'
9813 ;;
9814 *) # Darwin 1.3 on
9815 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9816 ;;
9817 esac
9818 lt_int_apple_cc_single_mod=no
9819 output_verbose_link_cmd='echo'
9820 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9821 lt_int_apple_cc_single_mod=yes
9822 fi
9823 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9824 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9825 else
9826 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
9827 fi
9828 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9829
9830 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9831 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9832 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}'
9833 else
9834 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
9835 fi
9836 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9837 hardcode_direct_CXX=no
9838 hardcode_automatic_CXX=yes
9839 hardcode_shlibpath_var_CXX=unsupported
9840 whole_archive_flag_spec_CXX='-all_load $convenience'
9841 link_all_deplibs_CXX=yes
9842 fi
9843 ;;
9844
9845 dgux*)
9846 case $cc_basename in
9847 ec++)
9848 # FIXME: insert proper C++ library support
9849 ld_shlibs_CXX=no
9850 ;;
9851 ghcx)
9852 # Green Hills C++ Compiler
9853 # FIXME: insert proper C++ library support
9854 ld_shlibs_CXX=no
9855 ;;
9856 *)
9857 # FIXME: insert proper C++ library support
9858 ld_shlibs_CXX=no
9859 ;;
9860 esac
9861 ;;
9862 freebsd12*)
9863 # C++ shared libraries reported to be fairly broken before switch to ELF
9864 ld_shlibs_CXX=no
9865 ;;
9866 freebsd-elf*)
9867 archive_cmds_need_lc_CXX=no
9868 ;;
9869 freebsd*)
9870 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9871 # conventions
9872 ld_shlibs_CXX=yes
9873 ;;
9874 gnu*)
9875 ;;
9876 hpux9*)
9877 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9878 hardcode_libdir_separator_CXX=:
9879 export_dynamic_flag_spec_CXX='${wl}-E'
9880 hardcode_direct_CXX=yes
9881 hardcode_minus_L_CXX=yes # Not in the search PATH,
9882 # but as the default
9883 # location of the library.
9884
9885 case $cc_basename in
9886 CC)
9887 # FIXME: insert proper C++ library support
9888 ld_shlibs_CXX=no
9889 ;;
9890 aCC)
9891 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'
9892 # Commands to make compiler produce verbose output that lists
9893 # what "hidden" libraries, object files and flags are used when
9894 # linking a shared library.
9895 #
9896 # There doesn't appear to be a way to prevent this compiler from
9897 # explicitly linking system object files so we need to strip them
9898 # from the output so that they don't get included in the library
9899 # dependencies.
9900 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
9901 ;;
9902 *)
9903 if test "$GXX" = yes; then
9904 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'
9905 else
9906 # FIXME: insert proper C++ library support
9907 ld_shlibs_CXX=no
9908 fi
9909 ;;
9910 esac
9911 ;;
9912 hpux10*|hpux11*)
9913 if test $with_gnu_ld = no; then
9914 case "$host_cpu" in
9915 hppa*64*)
9916 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9917 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9918 hardcode_libdir_separator_CXX=:
9919 ;;
9920 ia64*)
9921 hardcode_libdir_flag_spec_CXX='-L$libdir'
9922 ;;
9923 *)
9924 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9925 hardcode_libdir_separator_CXX=:
9926 export_dynamic_flag_spec_CXX='${wl}-E'
9927 ;;
9928 esac
9929 fi
9930 case "$host_cpu" in
9931 hppa*64*)
9932 hardcode_direct_CXX=no
9933 hardcode_shlibpath_var_CXX=no
9934 ;;
9935 ia64*)
9936 hardcode_direct_CXX=no
9937 hardcode_shlibpath_var_CXX=no
9938 hardcode_minus_L_CXX=yes # Not in the search PATH,
9939 # but as the default
9940 # location of the library.
9941 ;;
9942 *)
9943 hardcode_direct_CXX=yes
9944 hardcode_minus_L_CXX=yes # Not in the search PATH,
9945 # but as the default
9946 # location of the library.
9947 ;;
9948 esac
9949
9950 case $cc_basename in
9951 CC)
9952 # FIXME: insert proper C++ library support
9953 ld_shlibs_CXX=no
9954 ;;
9955 aCC)
9956 case "$host_cpu" in
9957 hppa*64*|ia64*)
9958 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9959 ;;
9960 *)
9961 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9962 ;;
9963 esac
9964 # Commands to make compiler produce verbose output that lists
9965 # what "hidden" libraries, object files and flags are used when
9966 # linking a shared library.
9967 #
9968 # There doesn't appear to be a way to prevent this compiler from
9969 # explicitly linking system object files so we need to strip them
9970 # from the output so that they don't get included in the library
9971 # dependencies.
9972 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'
9973 ;;
9974 *)
9975 if test "$GXX" = yes; then
9976 if test $with_gnu_ld = no; then
9977 case "$host_cpu" in
9978 ia64*|hppa*64*)
9979 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9980 ;;
9981 *)
9982 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'
9983 ;;
9984 esac
9985 fi
9986 else
9987 # FIXME: insert proper C++ library support
9988 ld_shlibs_CXX=no
9989 fi
9990 ;;
9991 esac
9992 ;;
9993 irix5* | irix6*)
9994 case $cc_basename in
9995 CC)
9996 # SGI C++
9997 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'
9998
9999 # Archives containing C++ object files must be created using
10000 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10001 # necessary to make sure instantiated templates are included
10002 # in the archive.
10003 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10004 ;;
10005 *)
10006 if test "$GXX" = yes; then
10007 if test "$with_gnu_ld" = no; then
10008 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'
10009 else
10010 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'
10011 fi
10012 fi
10013 link_all_deplibs_CXX=yes
10014 ;;
10015 esac
10016 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10017 hardcode_libdir_separator_CXX=:
10018 ;;
10019 linux*)
10020 case $cc_basename in
10021 KCC)
10022 # Kuck and Associates, Inc. (KAI) C++ Compiler
10023
10024 # KCC will only create a shared library if the output file
10025 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10026 # to its proper name (with version) after linking.
10027 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'
10028 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'
10029 # Commands to make compiler produce verbose output that lists
10030 # what "hidden" libraries, object files and flags are used when
10031 # linking a shared library.
10032 #
10033 # There doesn't appear to be a way to prevent this compiler from
10034 # explicitly linking system object files so we need to strip them
10035 # from the output so that they don't get included in the library
10036 # dependencies.
10037 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'
10038
10039 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10040 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10041
10042 # Archives containing C++ object files must be created using
10043 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10044 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10045 ;;
10046 icpc)
10047 # Intel C++
10048 with_gnu_ld=yes
10049 archive_cmds_need_lc_CXX=no
10050 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10051 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'
10052 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10053 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10054 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10055 ;;
10056 cxx)
10057 # Compaq C++
10058 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10059 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'
10060
10061 runpath_var=LD_RUN_PATH
10062 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10063 hardcode_libdir_separator_CXX=:
10064
10065 # Commands to make compiler produce verbose output that lists
10066 # what "hidden" libraries, object files and flags are used when
10067 # linking a shared library.
10068 #
10069 # There doesn't appear to be a way to prevent this compiler from
10070 # explicitly linking system object files so we need to strip them
10071 # from the output so that they don't get included in the library
10072 # dependencies.
10073 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'
10074 ;;
10075 esac
10076 ;;
10077 lynxos*)
10078 # FIXME: insert proper C++ library support
10079 ld_shlibs_CXX=no
10080 ;;
10081 m88k*)
10082 # FIXME: insert proper C++ library support
10083 ld_shlibs_CXX=no
10084 ;;
10085 mvs*)
10086 case $cc_basename in
10087 cxx)
10088 # FIXME: insert proper C++ library support
10089 ld_shlibs_CXX=no
10090 ;;
10091 *)
10092 # FIXME: insert proper C++ library support
10093 ld_shlibs_CXX=no
10094 ;;
10095 esac
10096 ;;
10097 netbsd*)
10098 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10099 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10100 wlarc=
10101 hardcode_libdir_flag_spec_CXX='-R$libdir'
10102 hardcode_direct_CXX=yes
10103 hardcode_shlibpath_var_CXX=no
10104 fi
10105 # Workaround some broken pre-1.5 toolchains
10106 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10107 ;;
10108 osf3*)
10109 case $cc_basename in
10110 KCC)
10111 # Kuck and Associates, Inc. (KAI) C++ Compiler
10112
10113 # KCC will only create a shared library if the output file
10114 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10115 # to its proper name (with version) after linking.
10116 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'
10117
10118 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10119 hardcode_libdir_separator_CXX=:
10120
10121 # Archives containing C++ object files must be created using
10122 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10123 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10124
10125 ;;
10126 RCC)
10127 # Rational C++ 2.4.1
10128 # FIXME: insert proper C++ library support
10129 ld_shlibs_CXX=no
10130 ;;
10131 cxx)
10132 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10133 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'
10134
10135 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10136 hardcode_libdir_separator_CXX=:
10137
10138 # Commands to make compiler produce verbose output that lists
10139 # what "hidden" libraries, object files and flags are used when
10140 # linking a shared library.
10141 #
10142 # There doesn't appear to be a way to prevent this compiler from
10143 # explicitly linking system object files so we need to strip them
10144 # from the output so that they don't get included in the library
10145 # dependencies.
10146 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'
10147 ;;
10148 *)
10149 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10150 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10151 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'
10152
10153 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10154 hardcode_libdir_separator_CXX=:
10155
10156 # Commands to make compiler produce verbose output that lists
10157 # what "hidden" libraries, object files and flags are used when
10158 # linking a shared library.
10159 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10160
10161 else
10162 # FIXME: insert proper C++ library support
10163 ld_shlibs_CXX=no
10164 fi
10165 ;;
10166 esac
10167 ;;
10168 osf4* | osf5*)
10169 case $cc_basename in
10170 KCC)
10171 # Kuck and Associates, Inc. (KAI) C++ Compiler
10172
10173 # KCC will only create a shared library if the output file
10174 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10175 # to its proper name (with version) after linking.
10176 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'
10177
10178 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10179 hardcode_libdir_separator_CXX=:
10180
10181 # Archives containing C++ object files must be created using
10182 # the KAI C++ compiler.
10183 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10184 ;;
10185 RCC)
10186 # Rational C++ 2.4.1
10187 # FIXME: insert proper C++ library support
10188 ld_shlibs_CXX=no
10189 ;;
10190 cxx)
10191 allow_undefined_flag_CXX=' -expect_unresolved \*'
10192 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'
10193 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10194 echo "-hidden">> $lib.exp~
10195 $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~
10196 $rm $lib.exp'
10197
10198 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10199 hardcode_libdir_separator_CXX=:
10200
10201 # Commands to make compiler produce verbose output that lists
10202 # what "hidden" libraries, object files and flags are used when
10203 # linking a shared library.
10204 #
10205 # There doesn't appear to be a way to prevent this compiler from
10206 # explicitly linking system object files so we need to strip them
10207 # from the output so that they don't get included in the library
10208 # dependencies.
10209 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'
10210 ;;
10211 *)
10212 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10213 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10214 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'
10215
10216 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10217 hardcode_libdir_separator_CXX=:
10218
10219 # Commands to make compiler produce verbose output that lists
10220 # what "hidden" libraries, object files and flags are used when
10221 # linking a shared library.
10222 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10223
10224 else
10225 # FIXME: insert proper C++ library support
10226 ld_shlibs_CXX=no
10227 fi
10228 ;;
10229 esac
10230 ;;
10231 psos*)
10232 # FIXME: insert proper C++ library support
10233 ld_shlibs_CXX=no
10234 ;;
10235 sco*)
10236 archive_cmds_need_lc_CXX=no
10237 case $cc_basename in
10238 CC)
10239 # FIXME: insert proper C++ library support
10240 ld_shlibs_CXX=no
10241 ;;
10242 *)
10243 # FIXME: insert proper C++ library support
10244 ld_shlibs_CXX=no
10245 ;;
10246 esac
10247 ;;
10248 sunos4*)
10249 case $cc_basename in
10250 CC)
10251 # Sun C++ 4.x
10252 # FIXME: insert proper C++ library support
10253 ld_shlibs_CXX=no
10254 ;;
10255 lcc)
10256 # Lucid
10257 # FIXME: insert proper C++ library support
10258 ld_shlibs_CXX=no
10259 ;;
10260 *)
10261 # FIXME: insert proper C++ library support
10262 ld_shlibs_CXX=no
10263 ;;
10264 esac
10265 ;;
10266 solaris*)
10267 case $cc_basename in
10268 CC)
10269 # Sun C++ 4.2, 5.x and Centerline C++
10270 no_undefined_flag_CXX=' -zdefs'
10271 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10272 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10273 $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'
10274
10275 hardcode_libdir_flag_spec_CXX='-R$libdir'
10276 hardcode_shlibpath_var_CXX=no
10277 case $host_os in
10278 solaris2.0-5 | solaris2.0-5.*) ;;
10279 *)
10280 # The C++ compiler is used as linker so we must use $wl
10281 # flag to pass the commands to the underlying system
10282 # linker.
10283 # Supported since Solaris 2.6 (maybe 2.5.1?)
10284 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10285 ;;
10286 esac
10287 link_all_deplibs_CXX=yes
10288
10289 # Commands to make compiler produce verbose output that lists
10290 # what "hidden" libraries, object files and flags are used when
10291 # linking a shared library.
10292 #
10293 # There doesn't appear to be a way to prevent this compiler from
10294 # explicitly linking system object files so we need to strip them
10295 # from the output so that they don't get included in the library
10296 # dependencies.
10297 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'
10298
10299 # Archives containing C++ object files must be created using
10300 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10301 # necessary to make sure instantiated templates are included
10302 # in the archive.
10303 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10304 ;;
10305 gcx)
10306 # Green Hills C++ Compiler
10307 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10308
10309 # The C++ compiler must be used to create the archive.
10310 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10311 ;;
10312 *)
10313 # GNU C++ compiler with Solaris linker
10314 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10315 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10316 if $CC --version | grep -v '^2\.7' > /dev/null; then
10317 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10318 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10319 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10320
10321 # Commands to make compiler produce verbose output that lists
10322 # what "hidden" libraries, object files and flags are used when
10323 # linking a shared library.
10324 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10325 else
10326 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10327 # platform.
10328 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10329 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10330 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10331
10332 # Commands to make compiler produce verbose output that lists
10333 # what "hidden" libraries, object files and flags are used when
10334 # linking a shared library.
10335 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10336 fi
10337
10338 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10339 fi
10340 ;;
10341 esac
10342 ;;
10343 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10344 archive_cmds_need_lc_CXX=no
10345 ;;
10346 tandem*)
10347 case $cc_basename in
10348 NCC)
10349 # NonStop-UX NCC 3.20
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 vxworks*)
10360 # FIXME: insert proper C++ library support
10361 ld_shlibs_CXX=no
10362 ;;
10363 *)
10364 # FIXME: insert proper C++ library support
10365 ld_shlibs_CXX=no
10366 ;;
10367esac
10368echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10369echo "${ECHO_T}$ld_shlibs_CXX" >&6
10370test "$ld_shlibs_CXX" = no && can_build_shared=no
10371
10372GCC_CXX="$GXX"
10373LD_CXX="$LD"
10374
Reid Spencer17041682004-09-05 17:48:32 +000010375## CAVEAT EMPTOR:
10376## There is no encapsulation within the following macros, do not change
10377## the running order or otherwise move them around unless you know exactly
10378## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000010379
10380cat > conftest.$ac_ext <<EOF
10381class Foo
10382{
10383public:
10384 Foo (void) { a = 0; }
10385private:
10386 int a;
10387};
10388EOF
10389
10390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10391 (eval $ac_compile) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); }; then
10395 # Parse the compiler output and extract the necessary
10396 # objects, libraries and library flags.
10397
10398 # Sentinel used to keep track of whether or not we are before
10399 # the conftest object file.
10400 pre_test_object_deps_done=no
10401
10402 # The `*' in the case matches for architectures that use `case' in
10403 # $output_verbose_cmd can trigger glob expansion during the loop
10404 # eval without this substitution.
10405 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10406
10407 for p in `eval $output_verbose_link_cmd`; do
10408 case $p in
10409
10410 -L* | -R* | -l*)
10411 # Some compilers place space between "-{L,R}" and the path.
10412 # Remove the space.
10413 if test $p = "-L" \
10414 || test $p = "-R"; then
10415 prev=$p
10416 continue
10417 else
10418 prev=
10419 fi
10420
10421 if test "$pre_test_object_deps_done" = no; then
10422 case $p in
10423 -L* | -R*)
10424 # Internal compiler library paths should come after those
10425 # provided the user. The postdeps already come after the
10426 # user supplied libs so there is no need to process them.
10427 if test -z "$compiler_lib_search_path_CXX"; then
10428 compiler_lib_search_path_CXX="${prev}${p}"
10429 else
10430 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10431 fi
10432 ;;
10433 # The "-l" case would never come before the object being
10434 # linked, so don't bother handling this case.
10435 esac
10436 else
10437 if test -z "$postdeps_CXX"; then
10438 postdeps_CXX="${prev}${p}"
10439 else
10440 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10441 fi
10442 fi
10443 ;;
10444
10445 *.$objext)
10446 # This assumes that the test object file only shows up
10447 # once in the compiler output.
10448 if test "$p" = "conftest.$objext"; then
10449 pre_test_object_deps_done=yes
10450 continue
10451 fi
10452
10453 if test "$pre_test_object_deps_done" = no; then
10454 if test -z "$predep_objects_CXX"; then
10455 predep_objects_CXX="$p"
10456 else
10457 predep_objects_CXX="$predep_objects_CXX $p"
10458 fi
10459 else
10460 if test -z "$postdep_objects_CXX"; then
10461 postdep_objects_CXX="$p"
10462 else
10463 postdep_objects_CXX="$postdep_objects_CXX $p"
10464 fi
10465 fi
10466 ;;
10467
10468 *) ;; # Ignore the rest.
10469
10470 esac
10471 done
10472
10473 # Clean up.
10474 rm -f a.out a.exe
10475else
10476 echo "libtool.m4: error: problem compiling CXX test program"
10477fi
10478
10479$rm -f confest.$objext
10480
10481case " $postdeps_CXX " in
10482*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10483esac
10484
10485lt_prog_compiler_wl_CXX=
10486lt_prog_compiler_pic_CXX=
10487lt_prog_compiler_static_CXX=
10488
10489echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10490echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10491
10492 # C++ specific cases for pic, static, wl, etc.
10493 if test "$GXX" = yes; then
10494 lt_prog_compiler_wl_CXX='-Wl,'
10495 lt_prog_compiler_static_CXX='-static'
10496
10497 case $host_os in
10498 aix*)
10499 # All AIX code is PIC.
10500 if test "$host_cpu" = ia64; then
10501 # AIX 5 now supports IA64 processor
10502 lt_prog_compiler_static_CXX='-Bstatic'
10503 fi
10504 ;;
10505 amigaos*)
10506 # FIXME: we need at least 68020 code to build shared libraries, but
10507 # adding the `-m68020' flag to GCC prevents building anything better,
10508 # like `-m68040'.
10509 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10510 ;;
10511 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10512 # PIC is the default for these OSes.
10513 ;;
10514 mingw* | os2* | pw32*)
10515 # This hack is so that the source file can tell whether it is being
10516 # built for inclusion in a dll (and should export symbols for example).
10517 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10518 ;;
10519 darwin* | rhapsody*)
10520 # PIC is the default on this platform
10521 # Common symbols not allowed in MH_DYLIB files
10522 lt_prog_compiler_pic_CXX='-fno-common'
10523 ;;
10524 *djgpp*)
10525 # DJGPP does not support shared libraries at all
10526 lt_prog_compiler_pic_CXX=
10527 ;;
10528 sysv4*MP*)
10529 if test -d /usr/nec; then
10530 lt_prog_compiler_pic_CXX=-Kconform_pic
10531 fi
10532 ;;
10533 hpux*)
10534 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10535 # not for PA HP-UX.
10536 case "$host_cpu" in
10537 hppa*64*|ia64*)
10538 ;;
10539 *)
10540 lt_prog_compiler_pic_CXX='-fPIC'
10541 ;;
10542 esac
10543 ;;
10544 *)
10545 lt_prog_compiler_pic_CXX='-fPIC'
10546 ;;
10547 esac
10548 else
10549 case $host_os in
10550 aix4* | aix5*)
10551 # All AIX code is PIC.
10552 if test "$host_cpu" = ia64; then
10553 # AIX 5 now supports IA64 processor
10554 lt_prog_compiler_static_CXX='-Bstatic'
10555 else
10556 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10557 fi
10558 ;;
10559 chorus*)
10560 case $cc_basename in
10561 cxch68)
10562 # Green Hills C++ Compiler
10563 # _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"
10564 ;;
10565 esac
10566 ;;
10567 dgux*)
10568 case $cc_basename in
10569 ec++)
10570 lt_prog_compiler_pic_CXX='-KPIC'
10571 ;;
10572 ghcx)
10573 # Green Hills C++ Compiler
10574 lt_prog_compiler_pic_CXX='-pic'
10575 ;;
10576 *)
10577 ;;
10578 esac
10579 ;;
10580 freebsd*)
10581 # FreeBSD uses GNU C++
10582 ;;
10583 hpux9* | hpux10* | hpux11*)
10584 case $cc_basename in
10585 CC)
10586 lt_prog_compiler_wl_CXX='-Wl,'
10587 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10588 if test "$host_cpu" != ia64; then
10589 lt_prog_compiler_pic_CXX='+Z'
10590 fi
10591 ;;
10592 aCC)
10593 lt_prog_compiler_wl_CXX='-Wl,'
10594 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10595 case "$host_cpu" in
10596 hppa*64*|ia64*)
10597 # +Z the default
10598 ;;
10599 *)
10600 lt_prog_compiler_pic_CXX='+Z'
10601 ;;
10602 esac
10603 ;;
10604 *)
10605 ;;
10606 esac
10607 ;;
10608 irix5* | irix6* | nonstopux*)
10609 case $cc_basename in
10610 CC)
10611 lt_prog_compiler_wl_CXX='-Wl,'
10612 lt_prog_compiler_static_CXX='-non_shared'
10613 # CC pic flag -KPIC is the default.
10614 ;;
10615 *)
10616 ;;
10617 esac
10618 ;;
10619 linux*)
10620 case $cc_basename in
10621 KCC)
10622 # KAI C++ Compiler
10623 lt_prog_compiler_wl_CXX='--backend -Wl,'
10624 lt_prog_compiler_pic_CXX='-fPIC'
10625 ;;
10626 icpc)
10627 # Intel C++
10628 lt_prog_compiler_wl_CXX='-Wl,'
10629 lt_prog_compiler_pic_CXX='-KPIC'
10630 lt_prog_compiler_static_CXX='-static'
10631 ;;
10632 cxx)
10633 # Compaq C++
10634 # Make sure the PIC flag is empty. It appears that all Alpha
10635 # Linux and Compaq Tru64 Unix objects are PIC.
10636 lt_prog_compiler_pic_CXX=
10637 lt_prog_compiler_static_CXX='-non_shared'
10638 ;;
10639 *)
10640 ;;
10641 esac
10642 ;;
10643 lynxos*)
10644 ;;
10645 m88k*)
10646 ;;
10647 mvs*)
10648 case $cc_basename in
10649 cxx)
10650 lt_prog_compiler_pic_CXX='-W c,exportall'
10651 ;;
10652 *)
10653 ;;
10654 esac
10655 ;;
10656 netbsd*)
10657 ;;
10658 osf3* | osf4* | osf5*)
10659 case $cc_basename in
10660 KCC)
10661 lt_prog_compiler_wl_CXX='--backend -Wl,'
10662 ;;
10663 RCC)
10664 # Rational C++ 2.4.1
10665 lt_prog_compiler_pic_CXX='-pic'
10666 ;;
10667 cxx)
10668 # Digital/Compaq C++
10669 lt_prog_compiler_wl_CXX='-Wl,'
10670 # Make sure the PIC flag is empty. It appears that all Alpha
10671 # Linux and Compaq Tru64 Unix objects are PIC.
10672 lt_prog_compiler_pic_CXX=
10673 lt_prog_compiler_static_CXX='-non_shared'
10674 ;;
10675 *)
10676 ;;
10677 esac
10678 ;;
10679 psos*)
10680 ;;
10681 sco*)
10682 case $cc_basename in
10683 CC)
10684 lt_prog_compiler_pic_CXX='-fPIC'
10685 ;;
10686 *)
10687 ;;
10688 esac
10689 ;;
10690 solaris*)
10691 case $cc_basename in
10692 CC)
10693 # Sun C++ 4.2, 5.x and Centerline C++
10694 lt_prog_compiler_pic_CXX='-KPIC'
10695 lt_prog_compiler_static_CXX='-Bstatic'
10696 lt_prog_compiler_wl_CXX='-Qoption ld '
10697 ;;
10698 gcx)
10699 # Green Hills C++ Compiler
10700 lt_prog_compiler_pic_CXX='-PIC'
10701 ;;
10702 *)
10703 ;;
10704 esac
10705 ;;
10706 sunos4*)
10707 case $cc_basename in
10708 CC)
10709 # Sun C++ 4.x
10710 lt_prog_compiler_pic_CXX='-pic'
10711 lt_prog_compiler_static_CXX='-Bstatic'
10712 ;;
10713 lcc)
10714 # Lucid
10715 lt_prog_compiler_pic_CXX='-pic'
10716 ;;
10717 *)
10718 ;;
10719 esac
10720 ;;
10721 tandem*)
10722 case $cc_basename in
10723 NCC)
10724 # NonStop-UX NCC 3.20
10725 lt_prog_compiler_pic_CXX='-KPIC'
10726 ;;
10727 *)
10728 ;;
10729 esac
10730 ;;
10731 unixware*)
10732 ;;
10733 vxworks*)
10734 ;;
10735 *)
10736 lt_prog_compiler_can_build_shared_CXX=no
10737 ;;
10738 esac
10739 fi
10740
10741echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10742echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10743
10744#
10745# Check to make sure the PIC flag actually works.
10746#
10747if test -n "$lt_prog_compiler_pic_CXX"; then
10748 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10749echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10750if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752else
10753 lt_prog_compiler_pic_works_CXX=no
10754 ac_outfile=conftest.$ac_objext
10755 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10756 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10757 # Insert the option either (1) after the last *FLAGS variable, or
10758 # (2) before a word containing "conftest.", or (3) at the end.
10759 # Note that $ac_compile itself does not contain backslashes and begins
10760 # with a dollar sign (not a hyphen), so the echo should work correctly.
10761 # The option is referenced via a variable to avoid confusing sed.
10762 lt_compile=`echo "$ac_compile" | $SED \
10763 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10765 -e 's:$: $lt_compiler_flag:'`
Reid Spencer4d68ba22004-09-07 16:35:45 +000010766 (eval echo "\"\$as_me:10766: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010767 (eval "$lt_compile" 2>conftest.err)
10768 ac_status=$?
10769 cat conftest.err >&5
Reid Spencer4d68ba22004-09-07 16:35:45 +000010770 echo "$as_me:10770: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010771 if (exit $ac_status) && test -s "$ac_outfile"; then
10772 # The compiler can only warn and ignore the option if not recognized
10773 # So say no if there are warnings
10774 if test ! -s conftest.err; then
10775 lt_prog_compiler_pic_works_CXX=yes
10776 fi
10777 fi
10778 $rm conftest*
10779
10780fi
10781echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10782echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10783
10784if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10785 case $lt_prog_compiler_pic_CXX in
10786 "" | " "*) ;;
10787 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10788 esac
10789else
10790 lt_prog_compiler_pic_CXX=
10791 lt_prog_compiler_can_build_shared_CXX=no
10792fi
10793
10794fi
10795case "$host_os" in
10796 # For platforms which do not support PIC, -DPIC is meaningless:
10797 *djgpp*)
10798 lt_prog_compiler_pic_CXX=
10799 ;;
10800 *)
10801 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10802 ;;
10803esac
10804
10805echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10806echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10807if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10808 echo $ECHO_N "(cached) $ECHO_C" >&6
10809else
10810 lt_cv_prog_compiler_c_o_CXX=no
10811 $rm -r conftest 2>/dev/null
10812 mkdir conftest
10813 cd conftest
10814 mkdir out
10815 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10816
10817 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10818 # that will create temporary files in the current directory regardless of
10819 # the output directory. Thus, making CWD read-only will cause this test
10820 # to fail, enabling locking or at least warning the user not to do parallel
10821 # builds.
10822 chmod -w .
10823
10824 lt_compiler_flag="-o out/conftest2.$ac_objext"
10825 # Insert the option either (1) after the last *FLAGS variable, or
10826 # (2) before a word containing "conftest.", or (3) at the end.
10827 # Note that $ac_compile itself does not contain backslashes and begins
10828 # with a dollar sign (not a hyphen), so the echo should work correctly.
10829 lt_compile=`echo "$ac_compile" | $SED \
10830 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10831 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10832 -e 's:$: $lt_compiler_flag:'`
Reid Spencer4d68ba22004-09-07 16:35:45 +000010833 (eval echo "\"\$as_me:10833: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010834 (eval "$lt_compile" 2>out/conftest.err)
10835 ac_status=$?
10836 cat out/conftest.err >&5
Reid Spencer4d68ba22004-09-07 16:35:45 +000010837 echo "$as_me:10837: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010838 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10839 then
10840 # The compiler can only warn and ignore the option if not recognized
10841 # So say no if there are warnings
10842 if test ! -s out/conftest.err; then
10843 lt_cv_prog_compiler_c_o_CXX=yes
10844 fi
10845 fi
10846 chmod u+w .
10847 $rm conftest* out/*
10848 rmdir out
10849 cd ..
10850 rmdir conftest
10851 $rm conftest*
10852
10853fi
10854echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10855echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10856
10857
10858hard_links="nottested"
10859if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10860 # do not overwrite the value of need_locks provided by the user
10861 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10862echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10863 hard_links=yes
10864 $rm conftest*
10865 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10866 touch conftest.a
10867 ln conftest.a conftest.b 2>&5 || hard_links=no
10868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10869 echo "$as_me:$LINENO: result: $hard_links" >&5
10870echo "${ECHO_T}$hard_links" >&6
10871 if test "$hard_links" = no; then
10872 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10873echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10874 need_locks=warn
10875 fi
10876else
10877 need_locks=no
10878fi
10879
10880echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10881echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10882
10883 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10884 case $host_os in
10885 aix4* | aix5*)
10886 # If we're using GNU nm, then we don't want the "-C" option.
10887 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10888 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10889 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'
10890 else
10891 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'
10892 fi
10893 ;;
10894 pw32*)
10895 export_symbols_cmds_CXX="$ltdll_cmds"
10896 ;;
10897 cygwin* | mingw*)
10898 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10899 ;;
10900 *)
10901 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10902 ;;
10903 esac
10904
10905echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10906echo "${ECHO_T}$ld_shlibs_CXX" >&6
10907test "$ld_shlibs_CXX" = no && can_build_shared=no
10908
10909variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10910if test "$GCC" = yes; then
10911 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10912fi
10913
10914#
10915# Do we need to explicitly link libc?
10916#
10917case "x$archive_cmds_need_lc_CXX" in
10918x|xyes)
10919 # Assume -lc should be added
10920 archive_cmds_need_lc_CXX=yes
10921
10922 if test "$enable_shared" = yes && test "$GCC" = yes; then
10923 case $archive_cmds_CXX in
10924 *'~'*)
10925 # FIXME: we may have to deal with multi-command sequences.
10926 ;;
10927 '$CC '*)
10928 # Test whether the compiler implicitly links with -lc since on some
10929 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10930 # to ld, don't add -lc before -lgcc.
10931 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10932echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10933 $rm conftest*
10934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10935
10936 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937 (eval $ac_compile) 2>&5
10938 ac_status=$?
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } 2>conftest.err; then
10941 soname=conftest
10942 lib=conftest
10943 libobjs=conftest.$ac_objext
10944 deplibs=
10945 wl=$lt_prog_compiler_wl_CXX
10946 compiler_flags=-v
10947 linker_flags=-v
10948 verstring=
10949 output_objdir=.
10950 libname=conftest
10951 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10952 allow_undefined_flag_CXX=
10953 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10954 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }
10958 then
10959 archive_cmds_need_lc_CXX=no
10960 else
10961 archive_cmds_need_lc_CXX=yes
10962 fi
10963 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10964 else
10965 cat conftest.err 1>&5
10966 fi
10967 $rm conftest*
10968 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10969echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10970 ;;
10971 esac
10972 fi
10973 ;;
10974esac
10975
10976echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10977echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10978hardcode_action_CXX=
10979if test -n "$hardcode_libdir_flag_spec_CXX" || \
10980 test -n "$runpath_var CXX" || \
10981 test "X$hardcode_automatic_CXX"="Xyes" ; then
10982
10983 # We can hardcode non-existant directories.
10984 if test "$hardcode_direct_CXX" != no &&
10985 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10986 # have to relink, otherwise we might link with an installed library
10987 # when we should be linking with a yet-to-be-installed one
10988 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10989 test "$hardcode_minus_L_CXX" != no; then
10990 # Linking always hardcodes the temporary library directory.
10991 hardcode_action_CXX=relink
10992 else
10993 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10994 hardcode_action_CXX=immediate
10995 fi
10996else
10997 # We cannot hardcode anything, or else we can only hardcode existing
10998 # directories.
10999 hardcode_action_CXX=unsupported
11000fi
11001echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11002echo "${ECHO_T}$hardcode_action_CXX" >&6
11003
11004if test "$hardcode_action_CXX" = relink; then
11005 # Fast installation is not supported
11006 enable_fast_install=no
11007elif test "$shlibpath_overrides_runpath" = yes ||
11008 test "$enable_shared" = no; then
11009 # Fast installation is not necessary
11010 enable_fast_install=needless
11011fi
11012
11013striplib=
11014old_striplib=
11015echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11016echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11017if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11018 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11019 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11020 echo "$as_me:$LINENO: result: yes" >&5
11021echo "${ECHO_T}yes" >&6
11022else
11023# FIXME - insert some real tests, host_os isn't really good enough
11024 case $host_os in
11025 darwin*)
11026 if test -n "$STRIP" ; then
11027 striplib="$STRIP -x"
11028 echo "$as_me:$LINENO: result: yes" >&5
11029echo "${ECHO_T}yes" >&6
11030 else
11031 echo "$as_me:$LINENO: result: no" >&5
11032echo "${ECHO_T}no" >&6
11033fi
11034 ;;
11035 *)
11036 echo "$as_me:$LINENO: result: no" >&5
11037echo "${ECHO_T}no" >&6
11038 ;;
11039 esac
11040fi
11041
11042echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11043echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11044library_names_spec=
11045libname_spec='lib$name'
11046soname_spec=
11047shrext=".so"
11048postinstall_cmds=
11049postuninstall_cmds=
11050finish_cmds=
11051finish_eval=
11052shlibpath_var=
11053shlibpath_overrides_runpath=unknown
11054version_type=none
11055dynamic_linker="$host_os ld.so"
11056sys_lib_dlsearch_path_spec="/lib /usr/lib"
11057if test "$GCC" = yes; then
11058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11059 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11060 # if the path contains ";" then we assume it to be the separator
11061 # otherwise default to the standard path separator (i.e. ":") - it is
11062 # assumed that no part of a normal pathname contains ";" but that should
11063 # okay in the real world where ";" in dirpaths is itself problematic.
11064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11065 else
11066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11067 fi
11068else
11069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11070fi
11071need_lib_prefix=unknown
11072hardcode_into_libs=no
11073
11074# when you set need_version to no, make sure it does not cause -set_version
11075# flags to be left without arguments
11076need_version=unknown
11077
11078case $host_os in
11079aix3*)
11080 version_type=linux
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11082 shlibpath_var=LIBPATH
11083
11084 # AIX 3 has no versioning support, so we append a major version to the name.
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 ;;
11087
11088aix4* | aix5*)
11089 version_type=linux
11090 need_lib_prefix=no
11091 need_version=no
11092 hardcode_into_libs=yes
11093 if test "$host_cpu" = ia64; then
11094 # AIX 5 supports IA64
11095 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 else
11098 # With GCC up to 2.95.x, collect2 would create an import file
11099 # for dependence libraries. The import file would start with
11100 # the line `#! .'. This would cause the generated library to
11101 # depend on `.', always an invalid library. This was fixed in
11102 # development snapshots of GCC prior to 3.0.
11103 case $host_os in
11104 aix4 | aix4.[01] | aix4.[01].*)
11105 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11106 echo ' yes '
11107 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11108 :
11109 else
11110 can_build_shared=no
11111 fi
11112 ;;
11113 esac
11114 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11115 # soname into executable. Probably we can add versioning support to
11116 # collect2, so additional links can be useful in future.
11117 if test "$aix_use_runtimelinking" = yes; then
11118 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11119 # instead of lib<name>.a to let people know that these are not
11120 # typical AIX shared libraries.
11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11122 else
11123 # We preserve .a as extension for shared libraries through AIX4.2
11124 # and later when we are not doing run time linking.
11125 library_names_spec='${libname}${release}.a $libname.a'
11126 soname_spec='${libname}${release}${shared_ext}$major'
11127 fi
11128 shlibpath_var=LIBPATH
11129 fi
11130 ;;
11131
11132amigaos*)
11133 library_names_spec='$libname.ixlibrary $libname.a'
11134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11135 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'
11136 ;;
11137
11138beos*)
11139 library_names_spec='${libname}${shared_ext}'
11140 dynamic_linker="$host_os ld.so"
11141 shlibpath_var=LIBRARY_PATH
11142 ;;
11143
11144bsdi4*)
11145 version_type=linux
11146 need_version=no
11147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11148 soname_spec='${libname}${release}${shared_ext}$major'
11149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11153 # the default ld.so.conf also contains /usr/contrib/lib and
11154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11155 # libtool to hard-code these into programs
11156 ;;
11157
11158cygwin* | mingw* | pw32*)
11159 version_type=windows
11160 shrext=".dll"
11161 need_version=no
11162 need_lib_prefix=no
11163
11164 case $GCC,$host_os in
11165 yes,cygwin* | yes,mingw* | yes,pw32*)
11166 library_names_spec='$libname.dll.a'
11167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11168 postinstall_cmds='base_file=`basename \${file}`~
11169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11170 dldir=$destdir/`dirname \$dlpath`~
11171 test -d \$dldir || mkdir -p \$dldir~
11172 $install_prog $dir/$dlname \$dldir/$dlname'
11173 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11174 dlpath=$dir/\$dldll~
11175 $rm \$dlpath'
11176 shlibpath_overrides_runpath=yes
11177
11178 case $host_os in
11179 cygwin*)
11180 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11181 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11182 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11183 ;;
11184 mingw*)
11185 # MinGW DLLs use traditional 'lib' prefix
11186 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11187 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11188 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11189 # It is most probably a Windows format PATH printed by
11190 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11191 # path with ; separators, and with drive letters. We can handle the
11192 # drive letters (cygwin fileutils understands them), so leave them,
11193 # especially as we might pass files found there to a mingw objdump,
11194 # which wouldn't understand a cygwinified path. Ahh.
11195 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11196 else
11197 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11198 fi
11199 ;;
11200 pw32*)
11201 # pw32 DLLs use 'pw' prefix rather than 'lib'
11202 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11203 ;;
11204 esac
11205 ;;
11206
11207 *)
11208 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11209 ;;
11210 esac
11211 dynamic_linker='Win32 ld.exe'
11212 # FIXME: first we should search . and the directory the executable is in
11213 shlibpath_var=PATH
11214 ;;
11215
11216darwin* | rhapsody*)
11217 dynamic_linker="$host_os dyld"
11218 version_type=darwin
11219 need_lib_prefix=no
11220 need_version=no
11221 # FIXME: Relying on posixy $() will cause problems for
11222 # cross-compilation, but unfortunately the echo tests do not
11223 # yet detect zsh echo's removal of \ escapes.
11224 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11225 soname_spec='${libname}${release}${major}$shared_ext'
11226 shlibpath_overrides_runpath=yes
11227 shlibpath_var=DYLD_LIBRARY_PATH
11228 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11229 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11230 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11231 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"`
11232 fi
11233 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11234 ;;
11235
11236dgux*)
11237 version_type=linux
11238 need_lib_prefix=no
11239 need_version=no
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11241 soname_spec='${libname}${release}${shared_ext}$major'
11242 shlibpath_var=LD_LIBRARY_PATH
11243 ;;
11244
11245freebsd1*)
11246 dynamic_linker=no
11247 ;;
11248
11249freebsd*)
11250 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11251 version_type=freebsd-$objformat
11252 case $version_type in
11253 freebsd-elf*)
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11255 need_version=no
11256 need_lib_prefix=no
11257 ;;
11258 freebsd-*)
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11260 need_version=yes
11261 ;;
11262 esac
11263 shlibpath_var=LD_LIBRARY_PATH
11264 case $host_os in
11265 freebsd2*)
11266 shlibpath_overrides_runpath=yes
11267 ;;
11268 freebsd3.01* | freebsdelf3.01*)
11269 shlibpath_overrides_runpath=yes
11270 hardcode_into_libs=yes
11271 ;;
11272 *) # from 3.2 on
11273 shlibpath_overrides_runpath=no
11274 hardcode_into_libs=yes
11275 ;;
11276 esac
11277 ;;
11278
11279gnu*)
11280 version_type=linux
11281 need_lib_prefix=no
11282 need_version=no
11283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11284 soname_spec='${libname}${release}${shared_ext}$major'
11285 shlibpath_var=LD_LIBRARY_PATH
11286 hardcode_into_libs=yes
11287 ;;
11288
11289hpux9* | hpux10* | hpux11*)
11290 # Give a soname corresponding to the major version so that dld.sl refuses to
11291 # link against other versions.
11292 version_type=sunos
11293 need_lib_prefix=no
11294 need_version=no
11295 case "$host_cpu" in
11296 ia64*)
11297 shrext='.so'
11298 hardcode_into_libs=yes
11299 dynamic_linker="$host_os dld.so"
11300 shlibpath_var=LD_LIBRARY_PATH
11301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11303 soname_spec='${libname}${release}${shared_ext}$major'
11304 if test "X$HPUX_IA64_MODE" = X32; then
11305 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11306 else
11307 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11308 fi
11309 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11310 ;;
11311 hppa*64*)
11312 shrext='.sl'
11313 hardcode_into_libs=yes
11314 dynamic_linker="$host_os dld.sl"
11315 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11316 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11320 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11321 ;;
11322 *)
11323 shrext='.sl'
11324 dynamic_linker="$host_os dld.sl"
11325 shlibpath_var=SHLIB_PATH
11326 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11328 soname_spec='${libname}${release}${shared_ext}$major'
11329 ;;
11330 esac
11331 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11332 postinstall_cmds='chmod 555 $lib'
11333 ;;
11334
11335irix5* | irix6* | nonstopux*)
11336 case $host_os in
11337 nonstopux*) version_type=nonstopux ;;
11338 *)
11339 if test "$lt_cv_prog_gnu_ld" = yes; then
11340 version_type=linux
11341 else
11342 version_type=irix
11343 fi ;;
11344 esac
11345 need_lib_prefix=no
11346 need_version=no
11347 soname_spec='${libname}${release}${shared_ext}$major'
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11349 case $host_os in
11350 irix5* | nonstopux*)
11351 libsuff= shlibsuff=
11352 ;;
11353 *)
11354 case $LD in # libtool.m4 will add one of these switches to LD
11355 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11356 libsuff= shlibsuff= libmagic=32-bit;;
11357 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11358 libsuff=32 shlibsuff=N32 libmagic=N32;;
11359 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11360 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11361 *) libsuff= shlibsuff= libmagic=never-match;;
11362 esac
11363 ;;
11364 esac
11365 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11366 shlibpath_overrides_runpath=no
11367 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11368 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11369 hardcode_into_libs=yes
11370 ;;
11371
11372# No shared lib support for Linux oldld, aout, or coff.
11373linux*oldld* | linux*aout* | linux*coff*)
11374 dynamic_linker=no
11375 ;;
11376
11377# This must be Linux ELF.
11378linux*)
11379 version_type=linux
11380 need_lib_prefix=no
11381 need_version=no
11382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11383 soname_spec='${libname}${release}${shared_ext}$major'
11384 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11385 shlibpath_var=LD_LIBRARY_PATH
11386 shlibpath_overrides_runpath=no
11387 # This implies no fast_install, which is unacceptable.
11388 # Some rework will be needed to allow for fast_install
11389 # before this can be enabled.
11390 hardcode_into_libs=yes
11391
11392 # We used to test for /lib/ld.so.1 and disable shared libraries on
11393 # powerpc, because MkLinux only supported shared libraries with the
11394 # GNU dynamic linker. Since this was broken with cross compilers,
11395 # most powerpc-linux boxes support dynamic linking these days and
11396 # people can always --disable-shared, the test was removed, and we
11397 # assume the GNU/Linux dynamic linker is in use.
11398 dynamic_linker='GNU/Linux ld.so'
11399 ;;
11400
11401netbsd*)
11402 version_type=sunos
11403 need_lib_prefix=no
11404 need_version=no
11405 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11408 dynamic_linker='NetBSD (a.out) ld.so'
11409 else
11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11411 soname_spec='${libname}${release}${shared_ext}$major'
11412 dynamic_linker='NetBSD ld.elf_so'
11413 fi
11414 shlibpath_var=LD_LIBRARY_PATH
11415 shlibpath_overrides_runpath=yes
11416 hardcode_into_libs=yes
11417 ;;
11418
11419newsos6)
11420 version_type=linux
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422 shlibpath_var=LD_LIBRARY_PATH
11423 shlibpath_overrides_runpath=yes
11424 ;;
11425
11426nto-qnx)
11427 version_type=linux
11428 need_lib_prefix=no
11429 need_version=no
11430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11431 soname_spec='${libname}${release}${shared_ext}$major'
11432 shlibpath_var=LD_LIBRARY_PATH
11433 shlibpath_overrides_runpath=yes
11434 ;;
11435
11436openbsd*)
11437 version_type=sunos
11438 need_lib_prefix=no
11439 need_version=no
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11442 shlibpath_var=LD_LIBRARY_PATH
11443 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11444 case $host_os in
11445 openbsd2.[89] | openbsd2.[89].*)
11446 shlibpath_overrides_runpath=no
11447 ;;
11448 *)
11449 shlibpath_overrides_runpath=yes
11450 ;;
11451 esac
11452 else
11453 shlibpath_overrides_runpath=yes
11454 fi
11455 ;;
11456
11457os2*)
11458 libname_spec='$name'
11459 shrext=".dll"
11460 need_lib_prefix=no
11461 library_names_spec='$libname${shared_ext} $libname.a'
11462 dynamic_linker='OS/2 ld.exe'
11463 shlibpath_var=LIBPATH
11464 ;;
11465
11466osf3* | osf4* | osf5*)
11467 version_type=osf
11468 need_lib_prefix=no
11469 need_version=no
11470 soname_spec='${libname}${release}${shared_ext}$major'
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11472 shlibpath_var=LD_LIBRARY_PATH
11473 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11474 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11475 ;;
11476
11477sco3.2v5*)
11478 version_type=osf
11479 soname_spec='${libname}${release}${shared_ext}$major'
11480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 ;;
11483
11484solaris*)
11485 version_type=linux
11486 need_lib_prefix=no
11487 need_version=no
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489 soname_spec='${libname}${release}${shared_ext}$major'
11490 shlibpath_var=LD_LIBRARY_PATH
11491 shlibpath_overrides_runpath=yes
11492 hardcode_into_libs=yes
11493 # ldd complains unless libraries are executable
11494 postinstall_cmds='chmod +x $lib'
11495 ;;
11496
11497sunos4*)
11498 version_type=sunos
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11500 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11501 shlibpath_var=LD_LIBRARY_PATH
11502 shlibpath_overrides_runpath=yes
11503 if test "$with_gnu_ld" = yes; then
11504 need_lib_prefix=no
11505 fi
11506 need_version=yes
11507 ;;
11508
11509sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11510 version_type=linux
11511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11512 soname_spec='${libname}${release}${shared_ext}$major'
11513 shlibpath_var=LD_LIBRARY_PATH
11514 case $host_vendor in
11515 sni)
11516 shlibpath_overrides_runpath=no
11517 need_lib_prefix=no
11518 export_dynamic_flag_spec='${wl}-Blargedynsym'
11519 runpath_var=LD_RUN_PATH
11520 ;;
11521 siemens)
11522 need_lib_prefix=no
11523 ;;
11524 motorola)
11525 need_lib_prefix=no
11526 need_version=no
11527 shlibpath_overrides_runpath=no
11528 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11529 ;;
11530 esac
11531 ;;
11532
11533sysv4*MP*)
11534 if test -d /usr/nec ;then
11535 version_type=linux
11536 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11537 soname_spec='$libname${shared_ext}.$major'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 fi
11540 ;;
11541
11542uts4*)
11543 version_type=linux
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11545 soname_spec='${libname}${release}${shared_ext}$major'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 ;;
11548
11549*)
11550 dynamic_linker=no
11551 ;;
11552esac
11553echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11554echo "${ECHO_T}$dynamic_linker" >&6
11555test "$dynamic_linker" = no && can_build_shared=no
11556
11557if test "x$enable_dlopen" != xyes; then
11558 enable_dlopen=unknown
11559 enable_dlopen_self=unknown
11560 enable_dlopen_self_static=unknown
11561else
11562 lt_cv_dlopen=no
11563 lt_cv_dlopen_libs=
11564
11565 case $host_os in
11566 beos*)
11567 lt_cv_dlopen="load_add_on"
11568 lt_cv_dlopen_libs=
11569 lt_cv_dlopen_self=yes
11570 ;;
11571
11572 mingw* | pw32*)
11573 lt_cv_dlopen="LoadLibrary"
11574 lt_cv_dlopen_libs=
11575 ;;
11576
11577 cygwin*)
11578 lt_cv_dlopen="dlopen"
11579 lt_cv_dlopen_libs=
11580 ;;
11581
11582 darwin*)
11583 # if libdl is installed we need to link against it
11584 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11585echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11586if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588else
11589 ac_check_lib_save_LIBS=$LIBS
11590LIBS="-ldl $LIBS"
11591cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011592/* confdefs.h. */
11593_ACEOF
11594cat confdefs.h >>conftest.$ac_ext
11595cat >>conftest.$ac_ext <<_ACEOF
11596/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011597
11598/* Override any gcc2 internal prototype to avoid an error. */
11599#ifdef __cplusplus
11600extern "C"
11601#endif
11602/* We use char because int might match the return type of a gcc2
11603 builtin and then its argument prototype would still apply. */
11604char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011605int
11606main ()
11607{
11608dlopen ();
11609 ;
11610 return 0;
11611}
11612_ACEOF
11613rm -f conftest.$ac_objext conftest$ac_exeext
11614if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011615 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011616 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011617 grep -v '^ *+' conftest.er1 >conftest.err
11618 rm -f conftest.er1
11619 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011622 { ac_try='test -z "$ac_cxx_werror_flag"
11623 || test ! -s conftest.err'
11624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11625 (eval $ac_try) 2>&5
11626 ac_status=$?
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; } &&
11629 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11631 (eval $ac_try) 2>&5
11632 ac_status=$?
11633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11634 (exit $ac_status); }; }; then
11635 ac_cv_lib_dl_dlopen=yes
11636else
11637 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011638sed 's/^/| /' conftest.$ac_ext >&5
11639
John Criswell47fdd832003-07-14 16:52:07 +000011640ac_cv_lib_dl_dlopen=no
11641fi
Reid Spencer17041682004-09-05 17:48:32 +000011642rm -f conftest.err conftest.$ac_objext \
11643 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011644LIBS=$ac_check_lib_save_LIBS
11645fi
11646echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11647echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11648if test $ac_cv_lib_dl_dlopen = yes; then
11649 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11650else
11651
11652 lt_cv_dlopen="dyld"
11653 lt_cv_dlopen_libs=
11654 lt_cv_dlopen_self=yes
11655
11656fi
11657
11658 ;;
11659
11660 *)
11661 echo "$as_me:$LINENO: checking for shl_load" >&5
11662echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11663if test "${ac_cv_func_shl_load+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11665else
11666 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011667/* confdefs.h. */
11668_ACEOF
11669cat confdefs.h >>conftest.$ac_ext
11670cat >>conftest.$ac_ext <<_ACEOF
11671/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000011672/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11674#define shl_load innocuous_shl_load
11675
John Criswell47fdd832003-07-14 16:52:07 +000011676/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011677 which can conflict with char shl_load (); below.
11678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11679 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000011680
John Criswell0c38eaf2003-09-10 15:17:25 +000011681#ifdef __STDC__
11682# include <limits.h>
11683#else
11684# include <assert.h>
11685#endif
Reid Spencer17041682004-09-05 17:48:32 +000011686
11687#undef shl_load
11688
John Criswell47fdd832003-07-14 16:52:07 +000011689/* Override any gcc2 internal prototype to avoid an error. */
11690#ifdef __cplusplus
11691extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011692{
John Criswell47fdd832003-07-14 16:52:07 +000011693#endif
11694/* We use char because int might match the return type of a gcc2
11695 builtin and then its argument prototype would still apply. */
11696char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011697/* The GNU C library defines this for functions which it implements
11698 to always fail with ENOSYS. Some functions are actually named
11699 something starting with __ and the normal name is an alias. */
11700#if defined (__stub_shl_load) || defined (__stub___shl_load)
11701choke me
11702#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011703char (*f) () = shl_load;
11704#endif
11705#ifdef __cplusplus
11706}
John Criswell47fdd832003-07-14 16:52:07 +000011707#endif
11708
John Criswell0c38eaf2003-09-10 15:17:25 +000011709int
11710main ()
11711{
11712return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011713 ;
11714 return 0;
11715}
11716_ACEOF
11717rm -f conftest.$ac_objext conftest$ac_exeext
11718if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011719 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011720 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011721 grep -v '^ *+' conftest.er1 >conftest.err
11722 rm -f conftest.er1
11723 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11725 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011726 { ac_try='test -z "$ac_cxx_werror_flag"
11727 || test ! -s conftest.err'
11728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11729 (eval $ac_try) 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; } &&
11733 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11735 (eval $ac_try) 2>&5
11736 ac_status=$?
11737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738 (exit $ac_status); }; }; then
11739 ac_cv_func_shl_load=yes
11740else
11741 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011742sed 's/^/| /' conftest.$ac_ext >&5
11743
John Criswell47fdd832003-07-14 16:52:07 +000011744ac_cv_func_shl_load=no
11745fi
Reid Spencer17041682004-09-05 17:48:32 +000011746rm -f conftest.err conftest.$ac_objext \
11747 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011748fi
11749echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11750echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11751if test $ac_cv_func_shl_load = yes; then
11752 lt_cv_dlopen="shl_load"
11753else
11754 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11755echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11756if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11757 echo $ECHO_N "(cached) $ECHO_C" >&6
11758else
11759 ac_check_lib_save_LIBS=$LIBS
11760LIBS="-ldld $LIBS"
11761cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011762/* confdefs.h. */
11763_ACEOF
11764cat confdefs.h >>conftest.$ac_ext
11765cat >>conftest.$ac_ext <<_ACEOF
11766/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011767
11768/* Override any gcc2 internal prototype to avoid an error. */
11769#ifdef __cplusplus
11770extern "C"
11771#endif
11772/* We use char because int might match the return type of a gcc2
11773 builtin and then its argument prototype would still apply. */
11774char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011775int
11776main ()
11777{
11778shl_load ();
11779 ;
11780 return 0;
11781}
11782_ACEOF
11783rm -f conftest.$ac_objext conftest$ac_exeext
11784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011785 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011786 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011787 grep -v '^ *+' conftest.er1 >conftest.err
11788 rm -f conftest.er1
11789 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011792 { ac_try='test -z "$ac_cxx_werror_flag"
11793 || test ! -s conftest.err'
11794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11795 (eval $ac_try) 2>&5
11796 ac_status=$?
11797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11798 (exit $ac_status); }; } &&
11799 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11801 (eval $ac_try) 2>&5
11802 ac_status=$?
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); }; }; then
11805 ac_cv_lib_dld_shl_load=yes
11806else
11807 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011808sed 's/^/| /' conftest.$ac_ext >&5
11809
John Criswell47fdd832003-07-14 16:52:07 +000011810ac_cv_lib_dld_shl_load=no
11811fi
Reid Spencer17041682004-09-05 17:48:32 +000011812rm -f conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011814LIBS=$ac_check_lib_save_LIBS
11815fi
11816echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11817echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11818if test $ac_cv_lib_dld_shl_load = yes; then
11819 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11820else
11821 echo "$as_me:$LINENO: checking for dlopen" >&5
11822echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11823if test "${ac_cv_func_dlopen+set}" = set; then
11824 echo $ECHO_N "(cached) $ECHO_C" >&6
11825else
11826 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011827/* confdefs.h. */
11828_ACEOF
11829cat confdefs.h >>conftest.$ac_ext
11830cat >>conftest.$ac_ext <<_ACEOF
11831/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000011832/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11834#define dlopen innocuous_dlopen
11835
John Criswell47fdd832003-07-14 16:52:07 +000011836/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011837 which can conflict with char dlopen (); below.
11838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11839 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000011840
John Criswell0c38eaf2003-09-10 15:17:25 +000011841#ifdef __STDC__
11842# include <limits.h>
11843#else
11844# include <assert.h>
11845#endif
Reid Spencer17041682004-09-05 17:48:32 +000011846
11847#undef dlopen
11848
John Criswell47fdd832003-07-14 16:52:07 +000011849/* Override any gcc2 internal prototype to avoid an error. */
11850#ifdef __cplusplus
11851extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011852{
John Criswell47fdd832003-07-14 16:52:07 +000011853#endif
11854/* We use char because int might match the return type of a gcc2
11855 builtin and then its argument prototype would still apply. */
11856char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011857/* The GNU C library defines this for functions which it implements
11858 to always fail with ENOSYS. Some functions are actually named
11859 something starting with __ and the normal name is an alias. */
11860#if defined (__stub_dlopen) || defined (__stub___dlopen)
11861choke me
11862#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011863char (*f) () = dlopen;
11864#endif
11865#ifdef __cplusplus
11866}
John Criswell47fdd832003-07-14 16:52:07 +000011867#endif
11868
John Criswell0c38eaf2003-09-10 15:17:25 +000011869int
11870main ()
11871{
11872return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011873 ;
11874 return 0;
11875}
11876_ACEOF
11877rm -f conftest.$ac_objext conftest$ac_exeext
11878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011879 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011880 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011881 grep -v '^ *+' conftest.er1 >conftest.err
11882 rm -f conftest.er1
11883 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11885 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011886 { ac_try='test -z "$ac_cxx_werror_flag"
11887 || test ! -s conftest.err'
11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889 (eval $ac_try) 2>&5
11890 ac_status=$?
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); }; } &&
11893 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11895 (eval $ac_try) 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; }; then
11899 ac_cv_func_dlopen=yes
11900else
11901 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011902sed 's/^/| /' conftest.$ac_ext >&5
11903
John Criswell47fdd832003-07-14 16:52:07 +000011904ac_cv_func_dlopen=no
11905fi
Reid Spencer17041682004-09-05 17:48:32 +000011906rm -f conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011908fi
11909echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11910echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11911if test $ac_cv_func_dlopen = yes; then
11912 lt_cv_dlopen="dlopen"
11913else
11914 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11915echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11916if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11917 echo $ECHO_N "(cached) $ECHO_C" >&6
11918else
11919 ac_check_lib_save_LIBS=$LIBS
11920LIBS="-ldl $LIBS"
11921cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011922/* confdefs.h. */
11923_ACEOF
11924cat confdefs.h >>conftest.$ac_ext
11925cat >>conftest.$ac_ext <<_ACEOF
11926/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011927
11928/* Override any gcc2 internal prototype to avoid an error. */
11929#ifdef __cplusplus
11930extern "C"
11931#endif
11932/* We use char because int might match the return type of a gcc2
11933 builtin and then its argument prototype would still apply. */
11934char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011935int
11936main ()
11937{
11938dlopen ();
11939 ;
11940 return 0;
11941}
11942_ACEOF
11943rm -f conftest.$ac_objext conftest$ac_exeext
11944if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011945 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011946 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011947 grep -v '^ *+' conftest.er1 >conftest.err
11948 rm -f conftest.er1
11949 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011952 { ac_try='test -z "$ac_cxx_werror_flag"
11953 || test ! -s conftest.err'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; } &&
11959 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11961 (eval $ac_try) 2>&5
11962 ac_status=$?
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); }; }; then
11965 ac_cv_lib_dl_dlopen=yes
11966else
11967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011968sed 's/^/| /' conftest.$ac_ext >&5
11969
John Criswell47fdd832003-07-14 16:52:07 +000011970ac_cv_lib_dl_dlopen=no
11971fi
Reid Spencer17041682004-09-05 17:48:32 +000011972rm -f conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011974LIBS=$ac_check_lib_save_LIBS
11975fi
11976echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11977echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11978if test $ac_cv_lib_dl_dlopen = yes; then
11979 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11980else
11981 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11982echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11983if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11984 echo $ECHO_N "(cached) $ECHO_C" >&6
11985else
11986 ac_check_lib_save_LIBS=$LIBS
11987LIBS="-lsvld $LIBS"
11988cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011989/* confdefs.h. */
11990_ACEOF
11991cat confdefs.h >>conftest.$ac_ext
11992cat >>conftest.$ac_ext <<_ACEOF
11993/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011994
11995/* Override any gcc2 internal prototype to avoid an error. */
11996#ifdef __cplusplus
11997extern "C"
11998#endif
11999/* We use char because int might match the return type of a gcc2
12000 builtin and then its argument prototype would still apply. */
12001char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012002int
12003main ()
12004{
12005dlopen ();
12006 ;
12007 return 0;
12008}
12009_ACEOF
12010rm -f conftest.$ac_objext conftest$ac_exeext
12011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000012012 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012013 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000012014 grep -v '^ *+' conftest.er1 >conftest.err
12015 rm -f conftest.er1
12016 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12018 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000012019 { ac_try='test -z "$ac_cxx_werror_flag"
12020 || test ! -s conftest.err'
12021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12022 (eval $ac_try) 2>&5
12023 ac_status=$?
12024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12025 (exit $ac_status); }; } &&
12026 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12028 (eval $ac_try) 2>&5
12029 ac_status=$?
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; }; then
12032 ac_cv_lib_svld_dlopen=yes
12033else
12034 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012035sed 's/^/| /' conftest.$ac_ext >&5
12036
John Criswell47fdd832003-07-14 16:52:07 +000012037ac_cv_lib_svld_dlopen=no
12038fi
Reid Spencer17041682004-09-05 17:48:32 +000012039rm -f conftest.err conftest.$ac_objext \
12040 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012041LIBS=$ac_check_lib_save_LIBS
12042fi
12043echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12044echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12045if test $ac_cv_lib_svld_dlopen = yes; then
12046 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12047else
12048 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12049echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12050if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12051 echo $ECHO_N "(cached) $ECHO_C" >&6
12052else
12053 ac_check_lib_save_LIBS=$LIBS
12054LIBS="-ldld $LIBS"
12055cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012056/* confdefs.h. */
12057_ACEOF
12058cat confdefs.h >>conftest.$ac_ext
12059cat >>conftest.$ac_ext <<_ACEOF
12060/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012061
12062/* Override any gcc2 internal prototype to avoid an error. */
12063#ifdef __cplusplus
12064extern "C"
12065#endif
12066/* We use char because int might match the return type of a gcc2
12067 builtin and then its argument prototype would still apply. */
12068char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012069int
12070main ()
12071{
12072dld_link ();
12073 ;
12074 return 0;
12075}
12076_ACEOF
12077rm -f conftest.$ac_objext conftest$ac_exeext
12078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000012079 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012080 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000012081 grep -v '^ *+' conftest.er1 >conftest.err
12082 rm -f conftest.er1
12083 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000012086 { ac_try='test -z "$ac_cxx_werror_flag"
12087 || test ! -s conftest.err'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; } &&
12093 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012094 { (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); }; }; then
12099 ac_cv_lib_dld_dld_link=yes
12100else
12101 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012102sed 's/^/| /' conftest.$ac_ext >&5
12103
John Criswell47fdd832003-07-14 16:52:07 +000012104ac_cv_lib_dld_dld_link=no
12105fi
Reid Spencer17041682004-09-05 17:48:32 +000012106rm -f conftest.err conftest.$ac_objext \
12107 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012108LIBS=$ac_check_lib_save_LIBS
12109fi
12110echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12111echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12112if test $ac_cv_lib_dld_dld_link = yes; then
12113 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12114fi
12115
12116
12117fi
12118
12119
12120fi
12121
12122
12123fi
12124
12125
12126fi
12127
12128
12129fi
12130
12131 ;;
12132 esac
12133
12134 if test "x$lt_cv_dlopen" != xno; then
12135 enable_dlopen=yes
12136 else
12137 enable_dlopen=no
12138 fi
12139
12140 case $lt_cv_dlopen in
12141 dlopen)
12142 save_CPPFLAGS="$CPPFLAGS"
12143 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12144
12145 save_LDFLAGS="$LDFLAGS"
12146 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12147
12148 save_LIBS="$LIBS"
12149 LIBS="$lt_cv_dlopen_libs $LIBS"
12150
12151 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12152echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12153if test "${lt_cv_dlopen_self+set}" = set; then
12154 echo $ECHO_N "(cached) $ECHO_C" >&6
12155else
12156 if test "$cross_compiling" = yes; then :
12157 lt_cv_dlopen_self=cross
12158else
12159 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12160 lt_status=$lt_dlunknown
12161 cat > conftest.$ac_ext <<EOF
Reid Spencer4d68ba22004-09-07 16:35:45 +000012162#line 12162 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012163#include "confdefs.h"
12164
12165#if HAVE_DLFCN_H
12166#include <dlfcn.h>
12167#endif
12168
12169#include <stdio.h>
12170
12171#ifdef RTLD_GLOBAL
12172# define LT_DLGLOBAL RTLD_GLOBAL
12173#else
12174# ifdef DL_GLOBAL
12175# define LT_DLGLOBAL DL_GLOBAL
12176# else
12177# define LT_DLGLOBAL 0
12178# endif
12179#endif
12180
12181/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12182 find out it does not work in some platform. */
12183#ifndef LT_DLLAZY_OR_NOW
12184# ifdef RTLD_LAZY
12185# define LT_DLLAZY_OR_NOW RTLD_LAZY
12186# else
12187# ifdef DL_LAZY
12188# define LT_DLLAZY_OR_NOW DL_LAZY
12189# else
12190# ifdef RTLD_NOW
12191# define LT_DLLAZY_OR_NOW RTLD_NOW
12192# else
12193# ifdef DL_NOW
12194# define LT_DLLAZY_OR_NOW DL_NOW
12195# else
12196# define LT_DLLAZY_OR_NOW 0
12197# endif
12198# endif
12199# endif
12200# endif
12201#endif
12202
12203#ifdef __cplusplus
12204extern "C" void exit (int);
12205#endif
12206
12207void fnord() { int i=42;}
12208int main ()
12209{
12210 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12211 int status = $lt_dlunknown;
12212
12213 if (self)
12214 {
12215 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12216 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12217 /* dlclose (self); */
12218 }
12219
12220 exit (status);
12221}
12222EOF
12223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12224 (eval $ac_link) 2>&5
12225 ac_status=$?
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12228 (./conftest; exit; ) 2>/dev/null
12229 lt_status=$?
12230 case x$lt_status in
12231 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12232 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12233 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12234 esac
12235 else :
12236 # compilation failed
12237 lt_cv_dlopen_self=no
12238 fi
12239fi
12240rm -fr conftest*
12241
12242
12243fi
12244echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12245echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12246
12247 if test "x$lt_cv_dlopen_self" = xyes; then
12248 LDFLAGS="$LDFLAGS $link_static_flag"
12249 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12250echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12251if test "${lt_cv_dlopen_self_static+set}" = set; then
12252 echo $ECHO_N "(cached) $ECHO_C" >&6
12253else
12254 if test "$cross_compiling" = yes; then :
12255 lt_cv_dlopen_self_static=cross
12256else
12257 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12258 lt_status=$lt_dlunknown
12259 cat > conftest.$ac_ext <<EOF
Reid Spencer4d68ba22004-09-07 16:35:45 +000012260#line 12260 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012261#include "confdefs.h"
12262
12263#if HAVE_DLFCN_H
12264#include <dlfcn.h>
12265#endif
12266
12267#include <stdio.h>
12268
12269#ifdef RTLD_GLOBAL
12270# define LT_DLGLOBAL RTLD_GLOBAL
12271#else
12272# ifdef DL_GLOBAL
12273# define LT_DLGLOBAL DL_GLOBAL
12274# else
12275# define LT_DLGLOBAL 0
12276# endif
12277#endif
12278
12279/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12280 find out it does not work in some platform. */
12281#ifndef LT_DLLAZY_OR_NOW
12282# ifdef RTLD_LAZY
12283# define LT_DLLAZY_OR_NOW RTLD_LAZY
12284# else
12285# ifdef DL_LAZY
12286# define LT_DLLAZY_OR_NOW DL_LAZY
12287# else
12288# ifdef RTLD_NOW
12289# define LT_DLLAZY_OR_NOW RTLD_NOW
12290# else
12291# ifdef DL_NOW
12292# define LT_DLLAZY_OR_NOW DL_NOW
12293# else
12294# define LT_DLLAZY_OR_NOW 0
12295# endif
12296# endif
12297# endif
12298# endif
12299#endif
12300
12301#ifdef __cplusplus
12302extern "C" void exit (int);
12303#endif
12304
12305void fnord() { int i=42;}
12306int main ()
12307{
12308 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12309 int status = $lt_dlunknown;
12310
12311 if (self)
12312 {
12313 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12314 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12315 /* dlclose (self); */
12316 }
12317
12318 exit (status);
12319}
12320EOF
12321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12322 (eval $ac_link) 2>&5
12323 ac_status=$?
12324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12325 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12326 (./conftest; exit; ) 2>/dev/null
12327 lt_status=$?
12328 case x$lt_status in
12329 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12330 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12331 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12332 esac
12333 else :
12334 # compilation failed
12335 lt_cv_dlopen_self_static=no
12336 fi
12337fi
12338rm -fr conftest*
12339
12340
12341fi
12342echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12343echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12344 fi
12345
12346 CPPFLAGS="$save_CPPFLAGS"
12347 LDFLAGS="$save_LDFLAGS"
12348 LIBS="$save_LIBS"
12349 ;;
12350 esac
12351
12352 case $lt_cv_dlopen_self in
12353 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12354 *) enable_dlopen_self=unknown ;;
12355 esac
12356
12357 case $lt_cv_dlopen_self_static in
12358 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12359 *) enable_dlopen_self_static=unknown ;;
12360 esac
12361fi
12362
12363
12364# The else clause should only fire when bootstrapping the
12365# libtool distribution, otherwise you forgot to ship ltmain.sh
12366# with your package, and you will get complaints that there are
12367# no rules to generate ltmain.sh.
12368if test -f "$ltmain"; then
12369 # See if we are running on zsh, and set the options which allow our commands through
12370 # without removal of \ escapes.
12371 if test -n "${ZSH_VERSION+set}" ; then
12372 setopt NO_GLOB_SUBST
12373 fi
12374 # Now quote all the things that may contain metacharacters while being
12375 # careful not to overquote the AC_SUBSTed values. We take copies of the
12376 # variables and quote the copies for generation of the libtool script.
12377 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12378 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12379 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12380 deplibs_check_method reload_flag reload_cmds need_locks \
12381 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12382 lt_cv_sys_global_symbol_to_c_name_address \
12383 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12384 old_postinstall_cmds old_postuninstall_cmds \
12385 compiler_CXX \
12386 CC_CXX \
12387 LD_CXX \
12388 lt_prog_compiler_wl_CXX \
12389 lt_prog_compiler_pic_CXX \
12390 lt_prog_compiler_static_CXX \
12391 lt_prog_compiler_no_builtin_flag_CXX \
12392 export_dynamic_flag_spec_CXX \
12393 thread_safe_flag_spec_CXX \
12394 whole_archive_flag_spec_CXX \
12395 enable_shared_with_static_runtimes_CXX \
12396 old_archive_cmds_CXX \
12397 old_archive_from_new_cmds_CXX \
12398 predep_objects_CXX \
12399 postdep_objects_CXX \
12400 predeps_CXX \
12401 postdeps_CXX \
12402 compiler_lib_search_path_CXX \
12403 archive_cmds_CXX \
12404 archive_expsym_cmds_CXX \
12405 postinstall_cmds_CXX \
12406 postuninstall_cmds_CXX \
12407 old_archive_from_expsyms_cmds_CXX \
12408 allow_undefined_flag_CXX \
12409 no_undefined_flag_CXX \
12410 export_symbols_cmds_CXX \
12411 hardcode_libdir_flag_spec_CXX \
12412 hardcode_libdir_flag_spec_ld_CXX \
12413 hardcode_libdir_separator_CXX \
12414 hardcode_automatic_CXX \
12415 module_cmds_CXX \
12416 module_expsym_cmds_CXX \
12417 lt_cv_prog_compiler_c_o_CXX \
12418 exclude_expsyms_CXX \
12419 include_expsyms_CXX; do
12420
12421 case $var in
12422 old_archive_cmds_CXX | \
12423 old_archive_from_new_cmds_CXX | \
12424 archive_cmds_CXX | \
12425 archive_expsym_cmds_CXX | \
12426 module_cmds_CXX | \
12427 module_expsym_cmds_CXX | \
12428 old_archive_from_expsyms_cmds_CXX | \
12429 export_symbols_cmds_CXX | \
12430 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12431 postinstall_cmds | postuninstall_cmds | \
12432 old_postinstall_cmds | old_postuninstall_cmds | \
12433 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12434 # Double-quote double-evaled strings.
12435 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12436 ;;
12437 *)
12438 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12439 ;;
12440 esac
12441 done
12442
12443 case $lt_echo in
12444 *'\$0 --fallback-echo"')
12445 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12446 ;;
12447 esac
12448
12449cfgfile="$ofile"
12450
12451 cat <<__EOF__ >> "$cfgfile"
12452# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12453
12454# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12455
12456# Shell to use when invoking shell scripts.
12457SHELL=$lt_SHELL
12458
12459# Whether or not to build shared libraries.
12460build_libtool_libs=$enable_shared
12461
12462# Whether or not to build static libraries.
12463build_old_libs=$enable_static
12464
12465# Whether or not to add -lc for building shared libraries.
12466build_libtool_need_lc=$archive_cmds_need_lc_CXX
12467
12468# Whether or not to disallow shared libs when runtime libs are static
12469allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12470
12471# Whether or not to optimize for fast installation.
12472fast_install=$enable_fast_install
12473
12474# The host system.
12475host_alias=$host_alias
12476host=$host
12477
12478# An echo program that does not interpret backslashes.
12479echo=$lt_echo
12480
12481# The archiver.
12482AR=$lt_AR
12483AR_FLAGS=$lt_AR_FLAGS
12484
12485# A C compiler.
12486LTCC=$lt_LTCC
12487
12488# A language-specific compiler.
12489CC=$lt_compiler_CXX
12490
12491# Is the compiler the GNU C compiler?
12492with_gcc=$GCC_CXX
12493
12494# An ERE matcher.
12495EGREP=$lt_EGREP
12496
12497# The linker used to build libraries.
12498LD=$lt_LD_CXX
12499
12500# Whether we need hard or soft links.
12501LN_S=$lt_LN_S
12502
12503# A BSD-compatible nm program.
12504NM=$lt_NM
12505
12506# A symbol stripping program
12507STRIP=$STRIP
12508
12509# Used to examine libraries when file_magic_cmd begins "file"
12510MAGIC_CMD=$MAGIC_CMD
12511
12512# Used on cygwin: DLL creation program.
12513DLLTOOL="$DLLTOOL"
12514
12515# Used on cygwin: object dumper.
12516OBJDUMP="$OBJDUMP"
12517
12518# Used on cygwin: assembler.
12519AS="$AS"
12520
12521# The name of the directory that contains temporary libtool files.
12522objdir=$objdir
12523
12524# How to create reloadable object files.
12525reload_flag=$lt_reload_flag
12526reload_cmds=$lt_reload_cmds
12527
12528# How to pass a linker flag through the compiler.
12529wl=$lt_lt_prog_compiler_wl_CXX
12530
12531# Object file suffix (normally "o").
12532objext="$ac_objext"
12533
12534# Old archive suffix (normally "a").
12535libext="$libext"
12536
12537# Shared library suffix (normally ".so").
12538shrext='$shrext'
12539
12540# Executable file suffix (normally "").
12541exeext="$exeext"
12542
12543# Additional compiler flags for building library objects.
12544pic_flag=$lt_lt_prog_compiler_pic_CXX
12545pic_mode=$pic_mode
12546
12547# What is the maximum length of a command?
12548max_cmd_len=$lt_cv_sys_max_cmd_len
12549
12550# Does compiler simultaneously support -c and -o options?
12551compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12552
12553# Must we lock files when doing compilation ?
12554need_locks=$lt_need_locks
12555
12556# Do we need the lib prefix for modules?
12557need_lib_prefix=$need_lib_prefix
12558
12559# Do we need a version for libraries?
12560need_version=$need_version
12561
12562# Whether dlopen is supported.
12563dlopen_support=$enable_dlopen
12564
12565# Whether dlopen of programs is supported.
12566dlopen_self=$enable_dlopen_self
12567
12568# Whether dlopen of statically linked programs is supported.
12569dlopen_self_static=$enable_dlopen_self_static
12570
12571# Compiler flag to prevent dynamic linking.
12572link_static_flag=$lt_lt_prog_compiler_static_CXX
12573
12574# Compiler flag to turn off builtin functions.
12575no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12576
12577# Compiler flag to allow reflexive dlopens.
12578export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12579
12580# Compiler flag to generate shared objects directly from archives.
12581whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12582
12583# Compiler flag to generate thread-safe objects.
12584thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12585
12586# Library versioning type.
12587version_type=$version_type
12588
12589# Format of library name prefix.
12590libname_spec=$lt_libname_spec
12591
12592# List of archive names. First name is the real one, the rest are links.
12593# The last name is the one that the linker finds with -lNAME.
12594library_names_spec=$lt_library_names_spec
12595
12596# The coded name of the library, if different from the real name.
12597soname_spec=$lt_soname_spec
12598
12599# Commands used to build and install an old-style archive.
12600RANLIB=$lt_RANLIB
12601old_archive_cmds=$lt_old_archive_cmds_CXX
12602old_postinstall_cmds=$lt_old_postinstall_cmds
12603old_postuninstall_cmds=$lt_old_postuninstall_cmds
12604
12605# Create an old-style archive from a shared archive.
12606old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12607
12608# Create a temporary old-style archive to link instead of a shared archive.
12609old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12610
12611# Commands used to build and install a shared archive.
12612archive_cmds=$lt_archive_cmds_CXX
12613archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12614postinstall_cmds=$lt_postinstall_cmds
12615postuninstall_cmds=$lt_postuninstall_cmds
12616
12617# Commands used to build a loadable module (assumed same as above if empty)
12618module_cmds=$lt_module_cmds_CXX
12619module_expsym_cmds=$lt_module_expsym_cmds_CXX
12620
12621# Commands to strip libraries.
12622old_striplib=$lt_old_striplib
12623striplib=$lt_striplib
12624
12625# Dependencies to place before the objects being linked to create a
12626# shared library.
12627predep_objects=$lt_predep_objects_CXX
12628
12629# Dependencies to place after the objects being linked to create a
12630# shared library.
12631postdep_objects=$lt_postdep_objects_CXX
12632
12633# Dependencies to place before the objects being linked to create a
12634# shared library.
12635predeps=$lt_predeps_CXX
12636
12637# Dependencies to place after the objects being linked to create a
12638# shared library.
12639postdeps=$lt_postdeps_CXX
12640
12641# The library search path used internally by the compiler when linking
12642# a shared library.
12643compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12644
12645# Method to check whether dependent libraries are shared objects.
12646deplibs_check_method=$lt_deplibs_check_method
12647
12648# Command to use when deplibs_check_method == file_magic.
12649file_magic_cmd=$lt_file_magic_cmd
12650
12651# Flag that allows shared libraries with undefined symbols to be built.
12652allow_undefined_flag=$lt_allow_undefined_flag_CXX
12653
12654# Flag that forces no undefined symbols.
12655no_undefined_flag=$lt_no_undefined_flag_CXX
12656
12657# Commands used to finish a libtool library installation in a directory.
12658finish_cmds=$lt_finish_cmds
12659
12660# Same as above, but a single script fragment to be evaled but not shown.
12661finish_eval=$lt_finish_eval
12662
12663# Take the output of nm and produce a listing of raw symbols and C names.
12664global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12665
12666# Transform the output of nm in a proper C declaration
12667global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12668
12669# Transform the output of nm in a C name address pair
12670global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12671
12672# This is the shared library runtime path variable.
12673runpath_var=$runpath_var
12674
12675# This is the shared library path variable.
12676shlibpath_var=$shlibpath_var
12677
12678# Is shlibpath searched before the hard-coded library search path?
12679shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12680
12681# How to hardcode a shared library path into an executable.
12682hardcode_action=$hardcode_action_CXX
12683
12684# Whether we should hardcode library paths into libraries.
12685hardcode_into_libs=$hardcode_into_libs
12686
12687# Flag to hardcode \$libdir into a binary during linking.
12688# This must work even if \$libdir does not exist.
12689hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12690
12691# If ld is used when linking, flag to hardcode \$libdir into
12692# a binary during linking. This must work even if \$libdir does
12693# not exist.
12694hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12695
12696# Whether we need a single -rpath flag with a separated argument.
12697hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12698
12699# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12700# resulting binary.
12701hardcode_direct=$hardcode_direct_CXX
12702
12703# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12704# resulting binary.
12705hardcode_minus_L=$hardcode_minus_L_CXX
12706
12707# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12708# the resulting binary.
12709hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12710
12711# Set to yes if building a shared library automatically hardcodes DIR into the library
12712# and all subsequent libraries and executables linked against it.
12713hardcode_automatic=$hardcode_automatic_CXX
12714
12715# Variables whose values should be saved in libtool wrapper scripts and
12716# restored at relink time.
12717variables_saved_for_relink="$variables_saved_for_relink"
12718
12719# Whether libtool must link a program against all its dependency libraries.
12720link_all_deplibs=$link_all_deplibs_CXX
12721
12722# Compile-time system search path for libraries
12723sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12724
12725# Run-time system search path for libraries
12726sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12727
12728# Fix the shell variable \$srcfile for the compiler.
12729fix_srcfile_path="$fix_srcfile_path_CXX"
12730
12731# Set to yes if exported symbols are required.
12732always_export_symbols=$always_export_symbols_CXX
12733
12734# The commands to list exported symbols.
12735export_symbols_cmds=$lt_export_symbols_cmds_CXX
12736
12737# The commands to extract the exported symbol list from a shared archive.
12738extract_expsyms_cmds=$lt_extract_expsyms_cmds
12739
12740# Symbols that should not be listed in the preloaded symbols.
12741exclude_expsyms=$lt_exclude_expsyms_CXX
12742
12743# Symbols that must always be exported.
12744include_expsyms=$lt_include_expsyms_CXX
12745
12746# ### END LIBTOOL TAG CONFIG: $tagname
12747
12748__EOF__
12749
12750
12751else
12752 # If there is no Makefile yet, we rely on a make rule to execute
12753 # `config.status --recheck' to rerun these tests and create the
12754 # libtool script then.
12755 test -f Makefile && make "$ltmain"
12756fi
12757
12758
12759ac_ext=c
12760ac_cpp='$CPP $CPPFLAGS'
12761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12763ac_compiler_gnu=$ac_cv_c_compiler_gnu
12764
12765CC=$lt_save_CC
12766LDCXX=$LD
12767LD=$lt_save_LD
12768GCC=$lt_save_GCC
12769with_gnu_ldcxx=$with_gnu_ld
12770with_gnu_ld=$lt_save_with_gnu_ld
12771lt_cv_path_LDCXX=$lt_cv_path_LD
12772lt_cv_path_LD=$lt_save_path_LD
12773lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12774lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12775
12776 else
12777 tagname=""
12778 fi
12779 ;;
12780
12781 F77)
12782 if test -n "$F77" && test "X$F77" != "Xno"; then
12783
12784ac_ext=f
12785ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12786ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12787ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12788
12789
12790archive_cmds_need_lc_F77=no
12791allow_undefined_flag_F77=
12792always_export_symbols_F77=no
12793archive_expsym_cmds_F77=
12794export_dynamic_flag_spec_F77=
12795hardcode_direct_F77=no
12796hardcode_libdir_flag_spec_F77=
12797hardcode_libdir_flag_spec_ld_F77=
12798hardcode_libdir_separator_F77=
12799hardcode_minus_L_F77=no
12800hardcode_automatic_F77=no
12801module_cmds_F77=
12802module_expsym_cmds_F77=
12803link_all_deplibs_F77=unknown
12804old_archive_cmds_F77=$old_archive_cmds
12805no_undefined_flag_F77=
12806whole_archive_flag_spec_F77=
12807enable_shared_with_static_runtimes_F77=no
12808
12809# Source file extension for f77 test sources.
12810ac_ext=f
12811
12812# Object file extension for compiled f77 test sources.
12813objext=o
12814objext_F77=$objext
12815
12816# Code to be used in simple compile tests
12817lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12818
12819# Code to be used in simple link tests
12820lt_simple_link_test_code=" program t\n end\n"
12821
12822# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12823
12824# If no C compiler was specified, use CC.
12825LTCC=${LTCC-"$CC"}
12826
12827# Allow CC to be a program name with arguments.
12828compiler=$CC
12829
12830
12831# Allow CC to be a program name with arguments.
12832lt_save_CC="$CC"
12833CC=${F77-"f77"}
12834compiler=$CC
12835compiler_F77=$CC
12836cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12837
12838echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12839echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12840echo "$as_me:$LINENO: result: $can_build_shared" >&5
12841echo "${ECHO_T}$can_build_shared" >&6
12842
12843echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12844echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12845test "$can_build_shared" = "no" && enable_shared=no
12846
12847# On AIX, shared libraries and static libraries use the same namespace, and
12848# are all built from PIC.
12849case "$host_os" in
12850aix3*)
12851 test "$enable_shared" = yes && enable_static=no
12852 if test -n "$RANLIB"; then
12853 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12854 postinstall_cmds='$RANLIB $lib'
12855 fi
12856 ;;
12857aix4*)
12858 test "$enable_shared" = yes && enable_static=no
12859 ;;
12860esac
12861echo "$as_me:$LINENO: result: $enable_shared" >&5
12862echo "${ECHO_T}$enable_shared" >&6
12863
12864echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12865echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12866# Make sure either enable_shared or enable_static is yes.
12867test "$enable_shared" = yes || enable_static=yes
12868echo "$as_me:$LINENO: result: $enable_static" >&5
12869echo "${ECHO_T}$enable_static" >&6
12870
12871test "$ld_shlibs_F77" = no && can_build_shared=no
12872
12873GCC_F77="$G77"
12874LD_F77="$LD"
12875
12876lt_prog_compiler_wl_F77=
12877lt_prog_compiler_pic_F77=
12878lt_prog_compiler_static_F77=
12879
12880echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12881echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12882
12883 if test "$GCC" = yes; then
12884 lt_prog_compiler_wl_F77='-Wl,'
12885 lt_prog_compiler_static_F77='-static'
12886
12887 case $host_os in
12888 aix*)
12889 # All AIX code is PIC.
12890 if test "$host_cpu" = ia64; then
12891 # AIX 5 now supports IA64 processor
12892 lt_prog_compiler_static_F77='-Bstatic'
12893 fi
12894 ;;
12895
12896 amigaos*)
12897 # FIXME: we need at least 68020 code to build shared libraries, but
12898 # adding the `-m68020' flag to GCC prevents building anything better,
12899 # like `-m68040'.
12900 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12901 ;;
12902
12903 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12904 # PIC is the default for these OSes.
12905 ;;
12906
12907 mingw* | pw32* | os2*)
12908 # This hack is so that the source file can tell whether it is being
12909 # built for inclusion in a dll (and should export symbols for example).
12910 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12911 ;;
12912
12913 darwin* | rhapsody*)
12914 # PIC is the default on this platform
12915 # Common symbols not allowed in MH_DYLIB files
12916 lt_prog_compiler_pic_F77='-fno-common'
12917 ;;
12918
12919 msdosdjgpp*)
12920 # Just because we use GCC doesn't mean we suddenly get shared libraries
12921 # on systems that don't support them.
12922 lt_prog_compiler_can_build_shared_F77=no
12923 enable_shared=no
12924 ;;
12925
12926 sysv4*MP*)
12927 if test -d /usr/nec; then
12928 lt_prog_compiler_pic_F77=-Kconform_pic
12929 fi
12930 ;;
12931
12932 hpux*)
12933 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12934 # not for PA HP-UX.
12935 case "$host_cpu" in
12936 hppa*64*|ia64*)
12937 # +Z the default
12938 ;;
12939 *)
12940 lt_prog_compiler_pic_F77='-fPIC'
12941 ;;
12942 esac
12943 ;;
12944
12945 *)
12946 lt_prog_compiler_pic_F77='-fPIC'
12947 ;;
12948 esac
12949 else
12950 # PORTME Check for flag to pass linker flags through the system compiler.
12951 case $host_os in
12952 aix*)
12953 lt_prog_compiler_wl_F77='-Wl,'
12954 if test "$host_cpu" = ia64; then
12955 # AIX 5 now supports IA64 processor
12956 lt_prog_compiler_static_F77='-Bstatic'
12957 else
12958 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12959 fi
12960 ;;
12961
12962 mingw* | pw32* | os2*)
12963 # This hack is so that the source file can tell whether it is being
12964 # built for inclusion in a dll (and should export symbols for example).
12965 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12966 ;;
12967
12968 hpux9* | hpux10* | hpux11*)
12969 lt_prog_compiler_wl_F77='-Wl,'
12970 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12971 # not for PA HP-UX.
12972 case "$host_cpu" in
12973 hppa*64*|ia64*)
12974 # +Z the default
12975 ;;
12976 *)
12977 lt_prog_compiler_pic_F77='+Z'
12978 ;;
12979 esac
12980 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12981 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12982 ;;
12983
12984 irix5* | irix6* | nonstopux*)
12985 lt_prog_compiler_wl_F77='-Wl,'
12986 # PIC (with -KPIC) is the default.
12987 lt_prog_compiler_static_F77='-non_shared'
12988 ;;
12989
12990 newsos6)
12991 lt_prog_compiler_pic_F77='-KPIC'
12992 lt_prog_compiler_static_F77='-Bstatic'
12993 ;;
12994
12995 linux*)
12996 case $CC in
12997 icc|ecc)
12998 lt_prog_compiler_wl_F77='-Wl,'
12999 lt_prog_compiler_pic_F77='-KPIC'
13000 lt_prog_compiler_static_F77='-static'
13001 ;;
13002 ccc)
13003 lt_prog_compiler_wl_F77='-Wl,'
13004 # All Alpha code is PIC.
13005 lt_prog_compiler_static_F77='-non_shared'
13006 ;;
13007 esac
13008 ;;
13009
13010 osf3* | osf4* | osf5*)
13011 lt_prog_compiler_wl_F77='-Wl,'
13012 # All OSF/1 code is PIC.
13013 lt_prog_compiler_static_F77='-non_shared'
13014 ;;
13015
13016 sco3.2v5*)
13017 lt_prog_compiler_pic_F77='-Kpic'
13018 lt_prog_compiler_static_F77='-dn'
13019 ;;
13020
13021 solaris*)
13022 lt_prog_compiler_wl_F77='-Wl,'
13023 lt_prog_compiler_pic_F77='-KPIC'
13024 lt_prog_compiler_static_F77='-Bstatic'
13025 ;;
13026
13027 sunos4*)
13028 lt_prog_compiler_wl_F77='-Qoption ld '
13029 lt_prog_compiler_pic_F77='-PIC'
13030 lt_prog_compiler_static_F77='-Bstatic'
13031 ;;
13032
13033 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13034 lt_prog_compiler_wl_F77='-Wl,'
13035 lt_prog_compiler_pic_F77='-KPIC'
13036 lt_prog_compiler_static_F77='-Bstatic'
13037 ;;
13038
13039 sysv4*MP*)
13040 if test -d /usr/nec ;then
13041 lt_prog_compiler_pic_F77='-Kconform_pic'
13042 lt_prog_compiler_static_F77='-Bstatic'
13043 fi
13044 ;;
13045
13046 uts4*)
13047 lt_prog_compiler_pic_F77='-pic'
13048 lt_prog_compiler_static_F77='-Bstatic'
13049 ;;
13050
13051 *)
13052 lt_prog_compiler_can_build_shared_F77=no
13053 ;;
13054 esac
13055 fi
13056
13057echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13058echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13059
13060#
13061# Check to make sure the PIC flag actually works.
13062#
13063if test -n "$lt_prog_compiler_pic_F77"; then
13064 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13065echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13066if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13067 echo $ECHO_N "(cached) $ECHO_C" >&6
13068else
13069 lt_prog_compiler_pic_works_F77=no
13070 ac_outfile=conftest.$ac_objext
13071 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13072 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13073 # Insert the option either (1) after the last *FLAGS variable, or
13074 # (2) before a word containing "conftest.", or (3) at the end.
13075 # Note that $ac_compile itself does not contain backslashes and begins
13076 # with a dollar sign (not a hyphen), so the echo should work correctly.
13077 # The option is referenced via a variable to avoid confusing sed.
13078 lt_compile=`echo "$ac_compile" | $SED \
13079 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13080 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13081 -e 's:$: $lt_compiler_flag:'`
Reid Spencer4d68ba22004-09-07 16:35:45 +000013082 (eval echo "\"\$as_me:13082: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013083 (eval "$lt_compile" 2>conftest.err)
13084 ac_status=$?
13085 cat conftest.err >&5
Reid Spencer4d68ba22004-09-07 16:35:45 +000013086 echo "$as_me:13086: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013087 if (exit $ac_status) && test -s "$ac_outfile"; then
13088 # The compiler can only warn and ignore the option if not recognized
13089 # So say no if there are warnings
13090 if test ! -s conftest.err; then
13091 lt_prog_compiler_pic_works_F77=yes
13092 fi
13093 fi
13094 $rm conftest*
13095
13096fi
13097echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13098echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13099
13100if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13101 case $lt_prog_compiler_pic_F77 in
13102 "" | " "*) ;;
13103 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13104 esac
13105else
13106 lt_prog_compiler_pic_F77=
13107 lt_prog_compiler_can_build_shared_F77=no
13108fi
13109
13110fi
13111case "$host_os" in
13112 # For platforms which do not support PIC, -DPIC is meaningless:
13113 *djgpp*)
13114 lt_prog_compiler_pic_F77=
13115 ;;
13116 *)
13117 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13118 ;;
13119esac
13120
13121echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13122echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13123if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13124 echo $ECHO_N "(cached) $ECHO_C" >&6
13125else
13126 lt_cv_prog_compiler_c_o_F77=no
13127 $rm -r conftest 2>/dev/null
13128 mkdir conftest
13129 cd conftest
13130 mkdir out
13131 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13132
13133 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13134 # that will create temporary files in the current directory regardless of
13135 # the output directory. Thus, making CWD read-only will cause this test
13136 # to fail, enabling locking or at least warning the user not to do parallel
13137 # builds.
13138 chmod -w .
13139
13140 lt_compiler_flag="-o out/conftest2.$ac_objext"
13141 # Insert the option either (1) after the last *FLAGS variable, or
13142 # (2) before a word containing "conftest.", or (3) at the end.
13143 # Note that $ac_compile itself does not contain backslashes and begins
13144 # with a dollar sign (not a hyphen), so the echo should work correctly.
13145 lt_compile=`echo "$ac_compile" | $SED \
13146 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13148 -e 's:$: $lt_compiler_flag:'`
Reid Spencer4d68ba22004-09-07 16:35:45 +000013149 (eval echo "\"\$as_me:13149: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013150 (eval "$lt_compile" 2>out/conftest.err)
13151 ac_status=$?
13152 cat out/conftest.err >&5
Reid Spencer4d68ba22004-09-07 16:35:45 +000013153 echo "$as_me:13153: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013154 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13155 then
13156 # The compiler can only warn and ignore the option if not recognized
13157 # So say no if there are warnings
13158 if test ! -s out/conftest.err; then
13159 lt_cv_prog_compiler_c_o_F77=yes
13160 fi
13161 fi
13162 chmod u+w .
13163 $rm conftest* out/*
13164 rmdir out
13165 cd ..
13166 rmdir conftest
13167 $rm conftest*
13168
13169fi
13170echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13171echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13172
13173
13174hard_links="nottested"
13175if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13176 # do not overwrite the value of need_locks provided by the user
13177 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13178echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13179 hard_links=yes
13180 $rm conftest*
13181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13182 touch conftest.a
13183 ln conftest.a conftest.b 2>&5 || hard_links=no
13184 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13185 echo "$as_me:$LINENO: result: $hard_links" >&5
13186echo "${ECHO_T}$hard_links" >&6
13187 if test "$hard_links" = no; then
13188 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13189echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13190 need_locks=warn
13191 fi
13192else
13193 need_locks=no
13194fi
13195
13196echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13197echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13198
13199 runpath_var=
13200 allow_undefined_flag_F77=
13201 enable_shared_with_static_runtimes_F77=no
13202 archive_cmds_F77=
13203 archive_expsym_cmds_F77=
13204 old_archive_From_new_cmds_F77=
13205 old_archive_from_expsyms_cmds_F77=
13206 export_dynamic_flag_spec_F77=
13207 whole_archive_flag_spec_F77=
13208 thread_safe_flag_spec_F77=
13209 hardcode_libdir_flag_spec_F77=
13210 hardcode_libdir_flag_spec_ld_F77=
13211 hardcode_libdir_separator_F77=
13212 hardcode_direct_F77=no
13213 hardcode_minus_L_F77=no
13214 hardcode_shlibpath_var_F77=unsupported
13215 link_all_deplibs_F77=unknown
13216 hardcode_automatic_F77=no
13217 module_cmds_F77=
13218 module_expsym_cmds_F77=
13219 always_export_symbols_F77=no
13220 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13221 # include_expsyms should be a list of space-separated symbols to be *always*
13222 # included in the symbol list
13223 include_expsyms_F77=
13224 # exclude_expsyms can be an extended regexp of symbols to exclude
13225 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13226 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13227 # as well as any symbol that contains `d'.
13228 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13229 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13230 # platforms (ab)use it in PIC code, but their linkers get confused if
13231 # the symbol is explicitly referenced. Since portable code cannot
13232 # rely on this symbol name, it's probably fine to never include it in
13233 # preloaded symbol tables.
13234 extract_expsyms_cmds=
13235
13236 case $host_os in
13237 cygwin* | mingw* | pw32*)
13238 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13239 # When not using gcc, we currently assume that we are using
13240 # Microsoft Visual C++.
13241 if test "$GCC" != yes; then
13242 with_gnu_ld=no
13243 fi
13244 ;;
13245 openbsd*)
13246 with_gnu_ld=no
13247 ;;
13248 esac
13249
13250 ld_shlibs_F77=yes
13251 if test "$with_gnu_ld" = yes; then
13252 # If archive_cmds runs LD, not CC, wlarc should be empty
13253 wlarc='${wl}'
13254
13255 # See if GNU ld supports shared libraries.
13256 case $host_os in
13257 aix3* | aix4* | aix5*)
13258 # On AIX/PPC, the GNU linker is very broken
13259 if test "$host_cpu" != ia64; then
13260 ld_shlibs_F77=no
13261 cat <<EOF 1>&2
13262
13263*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13264*** to be unable to reliably create shared libraries on AIX.
13265*** Therefore, libtool is disabling shared libraries support. If you
13266*** really care for shared libraries, you may want to modify your PATH
13267*** so that a non-GNU linker is found, and then restart.
13268
13269EOF
13270 fi
13271 ;;
13272
13273 amigaos*)
13274 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)'
13275 hardcode_libdir_flag_spec_F77='-L$libdir'
13276 hardcode_minus_L_F77=yes
13277
13278 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13279 # that the semantics of dynamic libraries on AmigaOS, at least up
13280 # to version 4, is to share data among multiple programs linked
13281 # with the same dynamic library. Since this doesn't match the
13282 # behavior of shared libraries on other platforms, we can't use
13283 # them.
13284 ld_shlibs_F77=no
13285 ;;
13286
13287 beos*)
13288 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13289 allow_undefined_flag_F77=unsupported
13290 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13291 # support --undefined. This deserves some investigation. FIXME
13292 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13293 else
13294 ld_shlibs_F77=no
13295 fi
13296 ;;
13297
13298 cygwin* | mingw* | pw32*)
13299 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13300 # as there is no search path for DLLs.
13301 hardcode_libdir_flag_spec_F77='-L$libdir'
13302 allow_undefined_flag_F77=unsupported
13303 always_export_symbols_F77=no
13304 enable_shared_with_static_runtimes_F77=yes
13305 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13306
13307 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13308 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13309 # If the export-symbols file already is a .def file (1st line
13310 # is EXPORTS), use it as is; otherwise, prepend...
13311 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13312 cp $export_symbols $output_objdir/$soname.def;
13313 else
13314 echo EXPORTS > $output_objdir/$soname.def;
13315 cat $export_symbols >> $output_objdir/$soname.def;
13316 fi~
13317 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13318 else
13319 ld_shlibs=no
13320 fi
13321 ;;
13322
13323 netbsd*)
13324 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13325 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13326 wlarc=
13327 else
13328 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13329 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13330 fi
13331 ;;
13332
13333 solaris* | sysv5*)
13334 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13335 ld_shlibs_F77=no
13336 cat <<EOF 1>&2
13337
13338*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13339*** create shared libraries on Solaris systems. Therefore, libtool
13340*** is disabling shared libraries support. We urge you to upgrade GNU
13341*** binutils to release 2.9.1 or newer. Another option is to modify
13342*** your PATH or compiler configuration so that the native linker is
13343*** used, and then restart.
13344
13345EOF
13346 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13347 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13348 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13349 else
13350 ld_shlibs_F77=no
13351 fi
13352 ;;
13353
13354 sunos4*)
13355 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13356 wlarc=
13357 hardcode_direct_F77=yes
13358 hardcode_shlibpath_var_F77=no
13359 ;;
13360
13361 *)
13362 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13363 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13364 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13365 else
13366 ld_shlibs_F77=no
13367 fi
13368 ;;
13369 esac
13370
13371 if test "$ld_shlibs_F77" = yes; then
13372 runpath_var=LD_RUN_PATH
13373 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13374 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13375 # ancient GNU ld didn't support --whole-archive et. al.
13376 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13377 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13378 else
13379 whole_archive_flag_spec_F77=
13380 fi
13381 fi
13382 else
13383 # PORTME fill in a description of your system's linker (not GNU ld)
13384 case $host_os in
13385 aix3*)
13386 allow_undefined_flag_F77=unsupported
13387 always_export_symbols_F77=yes
13388 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'
13389 # Note: this linker hardcodes the directories in LIBPATH if there
13390 # are no directories specified by -L.
13391 hardcode_minus_L_F77=yes
13392 if test "$GCC" = yes && test -z "$link_static_flag"; then
13393 # Neither direct hardcoding nor static linking is supported with a
13394 # broken collect2.
13395 hardcode_direct_F77=unsupported
13396 fi
13397 ;;
13398
13399 aix4* | aix5*)
13400 if test "$host_cpu" = ia64; then
13401 # On IA64, the linker does run time linking by default, so we don't
13402 # have to do anything special.
13403 aix_use_runtimelinking=no
13404 exp_sym_flag='-Bexport'
13405 no_entry_flag=""
13406 else
13407 # If we're using GNU nm, then we don't want the "-C" option.
13408 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13409 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13410 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'
13411 else
13412 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'
13413 fi
13414 aix_use_runtimelinking=no
13415
13416 # Test if we are trying to use run time linking or normal
13417 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13418 # need to do runtime linking.
13419 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13420 for ld_flag in $LDFLAGS; do
13421 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13422 aix_use_runtimelinking=yes
13423 break
13424 fi
13425 done
13426 esac
13427
13428 exp_sym_flag='-bexport'
13429 no_entry_flag='-bnoentry'
13430 fi
13431
13432 # When large executables or shared objects are built, AIX ld can
13433 # have problems creating the table of contents. If linking a library
13434 # or program results in "error TOC overflow" add -mminimal-toc to
13435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13437
13438 archive_cmds_F77=''
13439 hardcode_direct_F77=yes
13440 hardcode_libdir_separator_F77=':'
13441 link_all_deplibs_F77=yes
13442
13443 if test "$GCC" = yes; then
13444 case $host_os in aix4.012|aix4.012.*)
13445 # We only want to do this on AIX 4.2 and lower, the check
13446 # below for broken collect2 doesn't work under 4.3+
13447 collect2name=`${CC} -print-prog-name=collect2`
13448 if test -f "$collect2name" && \
13449 strings "$collect2name" | grep resolve_lib_name >/dev/null
13450 then
13451 # We have reworked collect2
13452 hardcode_direct_F77=yes
13453 else
13454 # We have old collect2
13455 hardcode_direct_F77=unsupported
13456 # It fails to find uninstalled libraries when the uninstalled
13457 # path is not listed in the libpath. Setting hardcode_minus_L
13458 # to unsupported forces relinking
13459 hardcode_minus_L_F77=yes
13460 hardcode_libdir_flag_spec_F77='-L$libdir'
13461 hardcode_libdir_separator_F77=
13462 fi
13463 esac
13464 shared_flag='-shared'
13465 else
13466 # not using gcc
13467 if test "$host_cpu" = ia64; then
13468 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13469 # chokes on -Wl,-G. The following line is correct:
13470 shared_flag='-G'
13471 else
13472 if test "$aix_use_runtimelinking" = yes; then
13473 shared_flag='${wl}-G'
13474 else
13475 shared_flag='${wl}-bM:SRE'
13476 fi
13477 fi
13478 fi
13479
13480 # It seems that -bexpall does not export symbols beginning with
13481 # underscore (_), so it is better to generate a list of symbols to export.
13482 always_export_symbols_F77=yes
13483 if test "$aix_use_runtimelinking" = yes; then
13484 # Warning - without using the other runtime loading flags (-brtl),
13485 # -berok will link without error, but may produce a broken library.
13486 allow_undefined_flag_F77='-berok'
13487 # Determine the default libpath from the value encoded in an empty executable.
13488 cat >conftest.$ac_ext <<_ACEOF
13489 program main
13490
13491 end
13492_ACEOF
13493rm -f conftest.$ac_objext conftest$ac_exeext
13494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000013495 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013496 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000013497 grep -v '^ *+' conftest.er1 >conftest.err
13498 rm -f conftest.er1
13499 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000013502 { ac_try='test -z "$ac_f77_werror_flag"
13503 || test ! -s conftest.err'
13504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13505 (eval $ac_try) 2>&5
13506 ac_status=$?
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; } &&
13509 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13511 (eval $ac_try) 2>&5
13512 ac_status=$?
13513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13514 (exit $ac_status); }; }; then
13515
13516aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13517}'`
13518# Check for a 64-bit object if we didn't find anything.
13519if 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; }
13520}'`; fi
13521else
13522 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013523sed 's/^/| /' conftest.$ac_ext >&5
13524
John Criswell47fdd832003-07-14 16:52:07 +000013525fi
Reid Spencer17041682004-09-05 17:48:32 +000013526rm -f conftest.err conftest.$ac_objext \
13527 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013528if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13529
13530 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13531 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"
13532 else
13533 if test "$host_cpu" = ia64; then
13534 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13535 allow_undefined_flag_F77="-z nodefs"
13536 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"
13537 else
13538 # Determine the default libpath from the value encoded in an empty executable.
13539 cat >conftest.$ac_ext <<_ACEOF
13540 program main
13541
13542 end
13543_ACEOF
13544rm -f conftest.$ac_objext conftest$ac_exeext
13545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000013546 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013547 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000013548 grep -v '^ *+' conftest.er1 >conftest.err
13549 rm -f conftest.er1
13550 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000013553 { ac_try='test -z "$ac_f77_werror_flag"
13554 || test ! -s conftest.err'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13557 ac_status=$?
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; } &&
13560 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13562 (eval $ac_try) 2>&5
13563 ac_status=$?
13564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13565 (exit $ac_status); }; }; then
13566
13567aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13568}'`
13569# Check for a 64-bit object if we didn't find anything.
13570if 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; }
13571}'`; fi
13572else
13573 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013574sed 's/^/| /' conftest.$ac_ext >&5
13575
John Criswell47fdd832003-07-14 16:52:07 +000013576fi
Reid Spencer17041682004-09-05 17:48:32 +000013577rm -f conftest.err conftest.$ac_objext \
13578 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013579if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13580
13581 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13582 # Warning - without using the other run time loading flags,
13583 # -berok will link without error, but may produce a broken library.
13584 no_undefined_flag_F77=' ${wl}-bernotok'
13585 allow_undefined_flag_F77=' ${wl}-berok'
13586 # -bexpall does not export symbols beginning with underscore (_)
13587 always_export_symbols_F77=yes
13588 # Exported symbols can be pulled into shared objects from archives
13589 whole_archive_flag_spec_F77=' '
13590 archive_cmds_need_lc_F77=yes
13591 # This is similar to how AIX traditionally builds it's shared libraries.
13592 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'
13593 fi
13594 fi
13595 ;;
13596
13597 amigaos*)
13598 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)'
13599 hardcode_libdir_flag_spec_F77='-L$libdir'
13600 hardcode_minus_L_F77=yes
13601 # see comment about different semantics on the GNU ld section
13602 ld_shlibs_F77=no
13603 ;;
13604
13605 bsdi4*)
13606 export_dynamic_flag_spec_F77=-rdynamic
13607 ;;
13608
13609 cygwin* | mingw* | pw32*)
13610 # When not using gcc, we currently assume that we are using
13611 # Microsoft Visual C++.
13612 # hardcode_libdir_flag_spec is actually meaningless, as there is
13613 # no search path for DLLs.
13614 hardcode_libdir_flag_spec_F77=' '
13615 allow_undefined_flag_F77=unsupported
13616 # Tell ltmain to make .lib files, not .a files.
13617 libext=lib
13618 # Tell ltmain to make .dll files, not .so files.
13619 shrext=".dll"
13620 # FIXME: Setting linknames here is a bad hack.
13621 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13622 # The linker will automatically build a .lib file if we build a DLL.
13623 old_archive_From_new_cmds_F77='true'
13624 # FIXME: Should let the user specify the lib program.
13625 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13626 fix_srcfile_path='`cygpath -w "$srcfile"`'
13627 enable_shared_with_static_runtimes_F77=yes
13628 ;;
13629
13630 darwin* | rhapsody*)
13631 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13632 archive_cmds_need_lc_F77=no
13633 case "$host_os" in
13634 rhapsody* | darwin1.[012])
13635 allow_undefined_flag_F77='-undefined suppress'
13636 ;;
13637 *) # Darwin 1.3 on
13638 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13639 ;;
13640 esac
13641 # FIXME: Relying on posixy $() will cause problems for
13642 # cross-compilation, but unfortunately the echo tests do not
13643 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13644 # `"' quotes if we put them in here... so don't!
13645 lt_int_apple_cc_single_mod=no
13646 output_verbose_link_cmd='echo'
13647 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13648 lt_int_apple_cc_single_mod=yes
13649 fi
13650 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13651 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13652 else
13653 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13654 fi
13655 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13656 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13657 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13658 archive_expsym_cmds_F77='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}'
13659 else
13660 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13661 fi
13662 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13663 hardcode_direct_F77=no
13664 hardcode_automatic_F77=yes
13665 hardcode_shlibpath_var_F77=unsupported
13666 whole_archive_flag_spec_F77='-all_load $convenience'
13667 link_all_deplibs_F77=yes
13668 fi
13669 ;;
13670
13671 dgux*)
13672 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13673 hardcode_libdir_flag_spec_F77='-L$libdir'
13674 hardcode_shlibpath_var_F77=no
13675 ;;
13676
13677 freebsd1*)
13678 ld_shlibs_F77=no
13679 ;;
13680
13681 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13682 # support. Future versions do this automatically, but an explicit c++rt0.o
13683 # does not break anything, and helps significantly (at the cost of a little
13684 # extra space).
13685 freebsd2.2*)
13686 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13687 hardcode_libdir_flag_spec_F77='-R$libdir'
13688 hardcode_direct_F77=yes
13689 hardcode_shlibpath_var_F77=no
13690 ;;
13691
13692 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13693 freebsd2*)
13694 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13695 hardcode_direct_F77=yes
13696 hardcode_minus_L_F77=yes
13697 hardcode_shlibpath_var_F77=no
13698 ;;
13699
13700 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13701 freebsd*)
13702 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13703 hardcode_libdir_flag_spec_F77='-R$libdir'
13704 hardcode_direct_F77=yes
13705 hardcode_shlibpath_var_F77=no
13706 ;;
13707
13708 hpux9*)
13709 if test "$GCC" = yes; then
13710 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'
13711 else
13712 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'
13713 fi
13714 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13715 hardcode_libdir_separator_F77=:
13716 hardcode_direct_F77=yes
13717
13718 # hardcode_minus_L: Not really in the search PATH,
13719 # but as the default location of the library.
13720 hardcode_minus_L_F77=yes
13721 export_dynamic_flag_spec_F77='${wl}-E'
13722 ;;
13723
13724 hpux10* | hpux11*)
13725 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13726 case "$host_cpu" in
13727 hppa*64*|ia64*)
13728 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13729 ;;
13730 *)
13731 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13732 ;;
13733 esac
13734 else
13735 case "$host_cpu" in
13736 hppa*64*|ia64*)
13737 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13738 ;;
13739 *)
13740 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13741 ;;
13742 esac
13743 fi
13744 if test "$with_gnu_ld" = no; then
13745 case "$host_cpu" in
13746 hppa*64*)
13747 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13748 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13749 hardcode_libdir_separator_F77=:
13750 hardcode_direct_F77=no
13751 hardcode_shlibpath_var_F77=no
13752 ;;
13753 ia64*)
13754 hardcode_libdir_flag_spec_F77='-L$libdir'
13755 hardcode_direct_F77=no
13756 hardcode_shlibpath_var_F77=no
13757
13758 # hardcode_minus_L: Not really in the search PATH,
13759 # but as the default location of the library.
13760 hardcode_minus_L_F77=yes
13761 ;;
13762 *)
13763 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13764 hardcode_libdir_separator_F77=:
13765 hardcode_direct_F77=yes
13766 export_dynamic_flag_spec_F77='${wl}-E'
13767
13768 # hardcode_minus_L: Not really in the search PATH,
13769 # but as the default location of the library.
13770 hardcode_minus_L_F77=yes
13771 ;;
13772 esac
13773 fi
13774 ;;
13775
13776 irix5* | irix6* | nonstopux*)
13777 if test "$GCC" = yes; then
13778 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'
13779 else
13780 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'
13781 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13782 fi
13783 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13784 hardcode_libdir_separator_F77=:
13785 link_all_deplibs_F77=yes
13786 ;;
13787
13788 netbsd*)
13789 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13790 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13791 else
13792 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13793 fi
13794 hardcode_libdir_flag_spec_F77='-R$libdir'
13795 hardcode_direct_F77=yes
13796 hardcode_shlibpath_var_F77=no
13797 ;;
13798
13799 newsos6)
13800 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13801 hardcode_direct_F77=yes
13802 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13803 hardcode_libdir_separator_F77=:
13804 hardcode_shlibpath_var_F77=no
13805 ;;
13806
13807 openbsd*)
13808 hardcode_direct_F77=yes
13809 hardcode_shlibpath_var_F77=no
13810 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13811 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13812 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13813 export_dynamic_flag_spec_F77='${wl}-E'
13814 else
13815 case $host_os in
13816 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13817 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13818 hardcode_libdir_flag_spec_F77='-R$libdir'
13819 ;;
13820 *)
13821 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13822 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13823 ;;
13824 esac
13825 fi
13826 ;;
13827
13828 os2*)
13829 hardcode_libdir_flag_spec_F77='-L$libdir'
13830 hardcode_minus_L_F77=yes
13831 allow_undefined_flag_F77=unsupported
13832 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'
13833 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13834 ;;
13835
13836 osf3*)
13837 if test "$GCC" = yes; then
13838 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13839 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'
13840 else
13841 allow_undefined_flag_F77=' -expect_unresolved \*'
13842 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'
13843 fi
13844 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13845 hardcode_libdir_separator_F77=:
13846 ;;
13847
13848 osf4* | osf5*) # as osf3* with the addition of -msym flag
13849 if test "$GCC" = yes; then
13850 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13851 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'
13852 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13853 else
13854 allow_undefined_flag_F77=' -expect_unresolved \*'
13855 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'
13856 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~
13857 $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'
13858
13859 # Both c and cxx compiler support -rpath directly
13860 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13861 fi
13862 hardcode_libdir_separator_F77=:
13863 ;;
13864
13865 sco3.2v5*)
13866 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13867 hardcode_shlibpath_var_F77=no
13868 export_dynamic_flag_spec_F77='${wl}-Bexport'
13869 runpath_var=LD_RUN_PATH
13870 hardcode_runpath_var=yes
13871 ;;
13872
13873 solaris*)
13874 no_undefined_flag_F77=' -z text'
13875 if test "$GCC" = yes; then
13876 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13877 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13878 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13879 else
13880 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13881 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13882 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13883 fi
13884 hardcode_libdir_flag_spec_F77='-R$libdir'
13885 hardcode_shlibpath_var_F77=no
13886 case $host_os in
13887 solaris2.[0-5] | solaris2.[0-5].*) ;;
13888 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13889 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13890 esac
13891 link_all_deplibs_F77=yes
13892 ;;
13893
13894 sunos4*)
13895 if test "x$host_vendor" = xsequent; then
13896 # Use $CC to link under sequent, because it throws in some extra .o
13897 # files that make .init and .fini sections work.
13898 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13899 else
13900 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13901 fi
13902 hardcode_libdir_flag_spec_F77='-L$libdir'
13903 hardcode_direct_F77=yes
13904 hardcode_minus_L_F77=yes
13905 hardcode_shlibpath_var_F77=no
13906 ;;
13907
13908 sysv4)
13909 case $host_vendor in
13910 sni)
13911 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13912 hardcode_direct_F77=yes # is this really true???
13913 ;;
13914 siemens)
13915 ## LD is ld it makes a PLAMLIB
13916 ## CC just makes a GrossModule.
13917 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13918 reload_cmds_F77='$CC -r -o $output$reload_objs'
13919 hardcode_direct_F77=no
13920 ;;
13921 motorola)
13922 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13923 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13924 ;;
13925 esac
13926 runpath_var='LD_RUN_PATH'
13927 hardcode_shlibpath_var_F77=no
13928 ;;
13929
13930 sysv4.3*)
13931 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13932 hardcode_shlibpath_var_F77=no
13933 export_dynamic_flag_spec_F77='-Bexport'
13934 ;;
13935
13936 sysv4*MP*)
13937 if test -d /usr/nec; then
13938 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13939 hardcode_shlibpath_var_F77=no
13940 runpath_var=LD_RUN_PATH
13941 hardcode_runpath_var=yes
13942 ld_shlibs_F77=yes
13943 fi
13944 ;;
13945
13946 sysv4.2uw2*)
13947 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13948 hardcode_direct_F77=yes
13949 hardcode_minus_L_F77=no
13950 hardcode_shlibpath_var_F77=no
13951 hardcode_runpath_var=yes
13952 runpath_var=LD_RUN_PATH
13953 ;;
13954
13955 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13956 no_undefined_flag_F77='${wl}-z ${wl}text'
13957 if test "$GCC" = yes; then
13958 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13959 else
13960 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13961 fi
13962 runpath_var='LD_RUN_PATH'
13963 hardcode_shlibpath_var_F77=no
13964 ;;
13965
13966 sysv5*)
13967 no_undefined_flag_F77=' -z text'
13968 # $CC -shared without GNU ld will not create a library from C++
13969 # object files and a static libstdc++, better avoid it by now
13970 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13971 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13972 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13973 hardcode_libdir_flag_spec_F77=
13974 hardcode_shlibpath_var_F77=no
13975 runpath_var='LD_RUN_PATH'
13976 ;;
13977
13978 uts4*)
13979 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13980 hardcode_libdir_flag_spec_F77='-L$libdir'
13981 hardcode_shlibpath_var_F77=no
13982 ;;
13983
13984 *)
13985 ld_shlibs_F77=no
13986 ;;
13987 esac
13988 fi
13989
13990echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13991echo "${ECHO_T}$ld_shlibs_F77" >&6
13992test "$ld_shlibs_F77" = no && can_build_shared=no
13993
13994variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13995if test "$GCC" = yes; then
13996 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13997fi
13998
13999#
14000# Do we need to explicitly link libc?
14001#
14002case "x$archive_cmds_need_lc_F77" in
14003x|xyes)
14004 # Assume -lc should be added
14005 archive_cmds_need_lc_F77=yes
14006
14007 if test "$enable_shared" = yes && test "$GCC" = yes; then
14008 case $archive_cmds_F77 in
14009 *'~'*)
14010 # FIXME: we may have to deal with multi-command sequences.
14011 ;;
14012 '$CC '*)
14013 # Test whether the compiler implicitly links with -lc since on some
14014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14015 # to ld, don't add -lc before -lgcc.
14016 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14017echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14018 $rm conftest*
14019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14020
14021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14022 (eval $ac_compile) 2>&5
14023 ac_status=$?
14024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14025 (exit $ac_status); } 2>conftest.err; then
14026 soname=conftest
14027 lib=conftest
14028 libobjs=conftest.$ac_objext
14029 deplibs=
14030 wl=$lt_prog_compiler_wl_F77
14031 compiler_flags=-v
14032 linker_flags=-v
14033 verstring=
14034 output_objdir=.
14035 libname=conftest
14036 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14037 allow_undefined_flag_F77=
14038 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14039 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14040 ac_status=$?
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }
14043 then
14044 archive_cmds_need_lc_F77=no
14045 else
14046 archive_cmds_need_lc_F77=yes
14047 fi
14048 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14049 else
14050 cat conftest.err 1>&5
14051 fi
14052 $rm conftest*
14053 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14054echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14055 ;;
14056 esac
14057 fi
14058 ;;
14059esac
14060
14061echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14062echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14063hardcode_action_F77=
14064if test -n "$hardcode_libdir_flag_spec_F77" || \
14065 test -n "$runpath_var F77" || \
14066 test "X$hardcode_automatic_F77"="Xyes" ; then
14067
14068 # We can hardcode non-existant directories.
14069 if test "$hardcode_direct_F77" != no &&
14070 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14071 # have to relink, otherwise we might link with an installed library
14072 # when we should be linking with a yet-to-be-installed one
14073 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14074 test "$hardcode_minus_L_F77" != no; then
14075 # Linking always hardcodes the temporary library directory.
14076 hardcode_action_F77=relink
14077 else
14078 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14079 hardcode_action_F77=immediate
14080 fi
14081else
14082 # We cannot hardcode anything, or else we can only hardcode existing
14083 # directories.
14084 hardcode_action_F77=unsupported
14085fi
14086echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14087echo "${ECHO_T}$hardcode_action_F77" >&6
14088
14089if test "$hardcode_action_F77" = relink; then
14090 # Fast installation is not supported
14091 enable_fast_install=no
14092elif test "$shlibpath_overrides_runpath" = yes ||
14093 test "$enable_shared" = no; then
14094 # Fast installation is not necessary
14095 enable_fast_install=needless
14096fi
14097
14098striplib=
14099old_striplib=
14100echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14101echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14102if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14103 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14104 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14105 echo "$as_me:$LINENO: result: yes" >&5
14106echo "${ECHO_T}yes" >&6
14107else
14108# FIXME - insert some real tests, host_os isn't really good enough
14109 case $host_os in
14110 darwin*)
14111 if test -n "$STRIP" ; then
14112 striplib="$STRIP -x"
14113 echo "$as_me:$LINENO: result: yes" >&5
14114echo "${ECHO_T}yes" >&6
14115 else
14116 echo "$as_me:$LINENO: result: no" >&5
14117echo "${ECHO_T}no" >&6
14118fi
14119 ;;
14120 *)
14121 echo "$as_me:$LINENO: result: no" >&5
14122echo "${ECHO_T}no" >&6
14123 ;;
14124 esac
14125fi
14126
14127echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14128echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14129library_names_spec=
14130libname_spec='lib$name'
14131soname_spec=
14132shrext=".so"
14133postinstall_cmds=
14134postuninstall_cmds=
14135finish_cmds=
14136finish_eval=
14137shlibpath_var=
14138shlibpath_overrides_runpath=unknown
14139version_type=none
14140dynamic_linker="$host_os ld.so"
14141sys_lib_dlsearch_path_spec="/lib /usr/lib"
14142if test "$GCC" = yes; then
14143 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14144 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14145 # if the path contains ";" then we assume it to be the separator
14146 # otherwise default to the standard path separator (i.e. ":") - it is
14147 # assumed that no part of a normal pathname contains ";" but that should
14148 # okay in the real world where ";" in dirpaths is itself problematic.
14149 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14150 else
14151 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14152 fi
14153else
14154 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14155fi
14156need_lib_prefix=unknown
14157hardcode_into_libs=no
14158
14159# when you set need_version to no, make sure it does not cause -set_version
14160# flags to be left without arguments
14161need_version=unknown
14162
14163case $host_os in
14164aix3*)
14165 version_type=linux
14166 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14167 shlibpath_var=LIBPATH
14168
14169 # AIX 3 has no versioning support, so we append a major version to the name.
14170 soname_spec='${libname}${release}${shared_ext}$major'
14171 ;;
14172
14173aix4* | aix5*)
14174 version_type=linux
14175 need_lib_prefix=no
14176 need_version=no
14177 hardcode_into_libs=yes
14178 if test "$host_cpu" = ia64; then
14179 # AIX 5 supports IA64
14180 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14181 shlibpath_var=LD_LIBRARY_PATH
14182 else
14183 # With GCC up to 2.95.x, collect2 would create an import file
14184 # for dependence libraries. The import file would start with
14185 # the line `#! .'. This would cause the generated library to
14186 # depend on `.', always an invalid library. This was fixed in
14187 # development snapshots of GCC prior to 3.0.
14188 case $host_os in
14189 aix4 | aix4.[01] | aix4.[01].*)
14190 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14191 echo ' yes '
14192 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14193 :
14194 else
14195 can_build_shared=no
14196 fi
14197 ;;
14198 esac
14199 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14200 # soname into executable. Probably we can add versioning support to
14201 # collect2, so additional links can be useful in future.
14202 if test "$aix_use_runtimelinking" = yes; then
14203 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14204 # instead of lib<name>.a to let people know that these are not
14205 # typical AIX shared libraries.
14206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14207 else
14208 # We preserve .a as extension for shared libraries through AIX4.2
14209 # and later when we are not doing run time linking.
14210 library_names_spec='${libname}${release}.a $libname.a'
14211 soname_spec='${libname}${release}${shared_ext}$major'
14212 fi
14213 shlibpath_var=LIBPATH
14214 fi
14215 ;;
14216
14217amigaos*)
14218 library_names_spec='$libname.ixlibrary $libname.a'
14219 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14220 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'
14221 ;;
14222
14223beos*)
14224 library_names_spec='${libname}${shared_ext}'
14225 dynamic_linker="$host_os ld.so"
14226 shlibpath_var=LIBRARY_PATH
14227 ;;
14228
14229bsdi4*)
14230 version_type=linux
14231 need_version=no
14232 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14233 soname_spec='${libname}${release}${shared_ext}$major'
14234 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14235 shlibpath_var=LD_LIBRARY_PATH
14236 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14237 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14238 # the default ld.so.conf also contains /usr/contrib/lib and
14239 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14240 # libtool to hard-code these into programs
14241 ;;
14242
14243cygwin* | mingw* | pw32*)
14244 version_type=windows
14245 shrext=".dll"
14246 need_version=no
14247 need_lib_prefix=no
14248
14249 case $GCC,$host_os in
14250 yes,cygwin* | yes,mingw* | yes,pw32*)
14251 library_names_spec='$libname.dll.a'
14252 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14253 postinstall_cmds='base_file=`basename \${file}`~
14254 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14255 dldir=$destdir/`dirname \$dlpath`~
14256 test -d \$dldir || mkdir -p \$dldir~
14257 $install_prog $dir/$dlname \$dldir/$dlname'
14258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14259 dlpath=$dir/\$dldll~
14260 $rm \$dlpath'
14261 shlibpath_overrides_runpath=yes
14262
14263 case $host_os in
14264 cygwin*)
14265 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14266 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14267 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14268 ;;
14269 mingw*)
14270 # MinGW DLLs use traditional 'lib' prefix
14271 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14272 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14273 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14274 # It is most probably a Windows format PATH printed by
14275 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14276 # path with ; separators, and with drive letters. We can handle the
14277 # drive letters (cygwin fileutils understands them), so leave them,
14278 # especially as we might pass files found there to a mingw objdump,
14279 # which wouldn't understand a cygwinified path. Ahh.
14280 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14281 else
14282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14283 fi
14284 ;;
14285 pw32*)
14286 # pw32 DLLs use 'pw' prefix rather than 'lib'
14287 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14288 ;;
14289 esac
14290 ;;
14291
14292 *)
14293 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14294 ;;
14295 esac
14296 dynamic_linker='Win32 ld.exe'
14297 # FIXME: first we should search . and the directory the executable is in
14298 shlibpath_var=PATH
14299 ;;
14300
14301darwin* | rhapsody*)
14302 dynamic_linker="$host_os dyld"
14303 version_type=darwin
14304 need_lib_prefix=no
14305 need_version=no
14306 # FIXME: Relying on posixy $() will cause problems for
14307 # cross-compilation, but unfortunately the echo tests do not
14308 # yet detect zsh echo's removal of \ escapes.
14309 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14310 soname_spec='${libname}${release}${major}$shared_ext'
14311 shlibpath_overrides_runpath=yes
14312 shlibpath_var=DYLD_LIBRARY_PATH
14313 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14314 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14315 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14316 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"`
14317 fi
14318 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14319 ;;
14320
14321dgux*)
14322 version_type=linux
14323 need_lib_prefix=no
14324 need_version=no
14325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14326 soname_spec='${libname}${release}${shared_ext}$major'
14327 shlibpath_var=LD_LIBRARY_PATH
14328 ;;
14329
14330freebsd1*)
14331 dynamic_linker=no
14332 ;;
14333
14334freebsd*)
14335 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14336 version_type=freebsd-$objformat
14337 case $version_type in
14338 freebsd-elf*)
14339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14340 need_version=no
14341 need_lib_prefix=no
14342 ;;
14343 freebsd-*)
14344 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14345 need_version=yes
14346 ;;
14347 esac
14348 shlibpath_var=LD_LIBRARY_PATH
14349 case $host_os in
14350 freebsd2*)
14351 shlibpath_overrides_runpath=yes
14352 ;;
14353 freebsd3.01* | freebsdelf3.01*)
14354 shlibpath_overrides_runpath=yes
14355 hardcode_into_libs=yes
14356 ;;
14357 *) # from 3.2 on
14358 shlibpath_overrides_runpath=no
14359 hardcode_into_libs=yes
14360 ;;
14361 esac
14362 ;;
14363
14364gnu*)
14365 version_type=linux
14366 need_lib_prefix=no
14367 need_version=no
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14369 soname_spec='${libname}${release}${shared_ext}$major'
14370 shlibpath_var=LD_LIBRARY_PATH
14371 hardcode_into_libs=yes
14372 ;;
14373
14374hpux9* | hpux10* | hpux11*)
14375 # Give a soname corresponding to the major version so that dld.sl refuses to
14376 # link against other versions.
14377 version_type=sunos
14378 need_lib_prefix=no
14379 need_version=no
14380 case "$host_cpu" in
14381 ia64*)
14382 shrext='.so'
14383 hardcode_into_libs=yes
14384 dynamic_linker="$host_os dld.so"
14385 shlibpath_var=LD_LIBRARY_PATH
14386 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14388 soname_spec='${libname}${release}${shared_ext}$major'
14389 if test "X$HPUX_IA64_MODE" = X32; then
14390 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14391 else
14392 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14393 fi
14394 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14395 ;;
14396 hppa*64*)
14397 shrext='.sl'
14398 hardcode_into_libs=yes
14399 dynamic_linker="$host_os dld.sl"
14400 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14401 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14403 soname_spec='${libname}${release}${shared_ext}$major'
14404 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14405 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14406 ;;
14407 *)
14408 shrext='.sl'
14409 dynamic_linker="$host_os dld.sl"
14410 shlibpath_var=SHLIB_PATH
14411 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14413 soname_spec='${libname}${release}${shared_ext}$major'
14414 ;;
14415 esac
14416 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14417 postinstall_cmds='chmod 555 $lib'
14418 ;;
14419
14420irix5* | irix6* | nonstopux*)
14421 case $host_os in
14422 nonstopux*) version_type=nonstopux ;;
14423 *)
14424 if test "$lt_cv_prog_gnu_ld" = yes; then
14425 version_type=linux
14426 else
14427 version_type=irix
14428 fi ;;
14429 esac
14430 need_lib_prefix=no
14431 need_version=no
14432 soname_spec='${libname}${release}${shared_ext}$major'
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14434 case $host_os in
14435 irix5* | nonstopux*)
14436 libsuff= shlibsuff=
14437 ;;
14438 *)
14439 case $LD in # libtool.m4 will add one of these switches to LD
14440 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14441 libsuff= shlibsuff= libmagic=32-bit;;
14442 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14443 libsuff=32 shlibsuff=N32 libmagic=N32;;
14444 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14445 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14446 *) libsuff= shlibsuff= libmagic=never-match;;
14447 esac
14448 ;;
14449 esac
14450 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14451 shlibpath_overrides_runpath=no
14452 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14453 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14454 hardcode_into_libs=yes
14455 ;;
14456
14457# No shared lib support for Linux oldld, aout, or coff.
14458linux*oldld* | linux*aout* | linux*coff*)
14459 dynamic_linker=no
14460 ;;
14461
14462# This must be Linux ELF.
14463linux*)
14464 version_type=linux
14465 need_lib_prefix=no
14466 need_version=no
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468 soname_spec='${libname}${release}${shared_ext}$major'
14469 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14470 shlibpath_var=LD_LIBRARY_PATH
14471 shlibpath_overrides_runpath=no
14472 # This implies no fast_install, which is unacceptable.
14473 # Some rework will be needed to allow for fast_install
14474 # before this can be enabled.
14475 hardcode_into_libs=yes
14476
14477 # We used to test for /lib/ld.so.1 and disable shared libraries on
14478 # powerpc, because MkLinux only supported shared libraries with the
14479 # GNU dynamic linker. Since this was broken with cross compilers,
14480 # most powerpc-linux boxes support dynamic linking these days and
14481 # people can always --disable-shared, the test was removed, and we
14482 # assume the GNU/Linux dynamic linker is in use.
14483 dynamic_linker='GNU/Linux ld.so'
14484 ;;
14485
14486netbsd*)
14487 version_type=sunos
14488 need_lib_prefix=no
14489 need_version=no
14490 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14493 dynamic_linker='NetBSD (a.out) ld.so'
14494 else
14495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14496 soname_spec='${libname}${release}${shared_ext}$major'
14497 dynamic_linker='NetBSD ld.elf_so'
14498 fi
14499 shlibpath_var=LD_LIBRARY_PATH
14500 shlibpath_overrides_runpath=yes
14501 hardcode_into_libs=yes
14502 ;;
14503
14504newsos6)
14505 version_type=linux
14506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507 shlibpath_var=LD_LIBRARY_PATH
14508 shlibpath_overrides_runpath=yes
14509 ;;
14510
14511nto-qnx)
14512 version_type=linux
14513 need_lib_prefix=no
14514 need_version=no
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 shlibpath_overrides_runpath=yes
14519 ;;
14520
14521openbsd*)
14522 version_type=sunos
14523 need_lib_prefix=no
14524 need_version=no
14525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14527 shlibpath_var=LD_LIBRARY_PATH
14528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14529 case $host_os in
14530 openbsd2.[89] | openbsd2.[89].*)
14531 shlibpath_overrides_runpath=no
14532 ;;
14533 *)
14534 shlibpath_overrides_runpath=yes
14535 ;;
14536 esac
14537 else
14538 shlibpath_overrides_runpath=yes
14539 fi
14540 ;;
14541
14542os2*)
14543 libname_spec='$name'
14544 shrext=".dll"
14545 need_lib_prefix=no
14546 library_names_spec='$libname${shared_ext} $libname.a'
14547 dynamic_linker='OS/2 ld.exe'
14548 shlibpath_var=LIBPATH
14549 ;;
14550
14551osf3* | osf4* | osf5*)
14552 version_type=osf
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${shared_ext}'
14557 shlibpath_var=LD_LIBRARY_PATH
14558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14560 ;;
14561
14562sco3.2v5*)
14563 version_type=osf
14564 soname_spec='${libname}${release}${shared_ext}$major'
14565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14566 shlibpath_var=LD_LIBRARY_PATH
14567 ;;
14568
14569solaris*)
14570 version_type=linux
14571 need_lib_prefix=no
14572 need_version=no
14573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14574 soname_spec='${libname}${release}${shared_ext}$major'
14575 shlibpath_var=LD_LIBRARY_PATH
14576 shlibpath_overrides_runpath=yes
14577 hardcode_into_libs=yes
14578 # ldd complains unless libraries are executable
14579 postinstall_cmds='chmod +x $lib'
14580 ;;
14581
14582sunos4*)
14583 version_type=sunos
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14585 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14586 shlibpath_var=LD_LIBRARY_PATH
14587 shlibpath_overrides_runpath=yes
14588 if test "$with_gnu_ld" = yes; then
14589 need_lib_prefix=no
14590 fi
14591 need_version=yes
14592 ;;
14593
14594sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14595 version_type=linux
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 shlibpath_var=LD_LIBRARY_PATH
14599 case $host_vendor in
14600 sni)
14601 shlibpath_overrides_runpath=no
14602 need_lib_prefix=no
14603 export_dynamic_flag_spec='${wl}-Blargedynsym'
14604 runpath_var=LD_RUN_PATH
14605 ;;
14606 siemens)
14607 need_lib_prefix=no
14608 ;;
14609 motorola)
14610 need_lib_prefix=no
14611 need_version=no
14612 shlibpath_overrides_runpath=no
14613 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14614 ;;
14615 esac
14616 ;;
14617
14618sysv4*MP*)
14619 if test -d /usr/nec ;then
14620 version_type=linux
14621 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14622 soname_spec='$libname${shared_ext}.$major'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 fi
14625 ;;
14626
14627uts4*)
14628 version_type=linux
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14630 soname_spec='${libname}${release}${shared_ext}$major'
14631 shlibpath_var=LD_LIBRARY_PATH
14632 ;;
14633
14634*)
14635 dynamic_linker=no
14636 ;;
14637esac
14638echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14639echo "${ECHO_T}$dynamic_linker" >&6
14640test "$dynamic_linker" = no && can_build_shared=no
14641
14642
14643# The else clause should only fire when bootstrapping the
14644# libtool distribution, otherwise you forgot to ship ltmain.sh
14645# with your package, and you will get complaints that there are
14646# no rules to generate ltmain.sh.
14647if test -f "$ltmain"; then
14648 # See if we are running on zsh, and set the options which allow our commands through
14649 # without removal of \ escapes.
14650 if test -n "${ZSH_VERSION+set}" ; then
14651 setopt NO_GLOB_SUBST
14652 fi
14653 # Now quote all the things that may contain metacharacters while being
14654 # careful not to overquote the AC_SUBSTed values. We take copies of the
14655 # variables and quote the copies for generation of the libtool script.
14656 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14657 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14658 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14659 deplibs_check_method reload_flag reload_cmds need_locks \
14660 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14661 lt_cv_sys_global_symbol_to_c_name_address \
14662 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14663 old_postinstall_cmds old_postuninstall_cmds \
14664 compiler_F77 \
14665 CC_F77 \
14666 LD_F77 \
14667 lt_prog_compiler_wl_F77 \
14668 lt_prog_compiler_pic_F77 \
14669 lt_prog_compiler_static_F77 \
14670 lt_prog_compiler_no_builtin_flag_F77 \
14671 export_dynamic_flag_spec_F77 \
14672 thread_safe_flag_spec_F77 \
14673 whole_archive_flag_spec_F77 \
14674 enable_shared_with_static_runtimes_F77 \
14675 old_archive_cmds_F77 \
14676 old_archive_from_new_cmds_F77 \
14677 predep_objects_F77 \
14678 postdep_objects_F77 \
14679 predeps_F77 \
14680 postdeps_F77 \
14681 compiler_lib_search_path_F77 \
14682 archive_cmds_F77 \
14683 archive_expsym_cmds_F77 \
14684 postinstall_cmds_F77 \
14685 postuninstall_cmds_F77 \
14686 old_archive_from_expsyms_cmds_F77 \
14687 allow_undefined_flag_F77 \
14688 no_undefined_flag_F77 \
14689 export_symbols_cmds_F77 \
14690 hardcode_libdir_flag_spec_F77 \
14691 hardcode_libdir_flag_spec_ld_F77 \
14692 hardcode_libdir_separator_F77 \
14693 hardcode_automatic_F77 \
14694 module_cmds_F77 \
14695 module_expsym_cmds_F77 \
14696 lt_cv_prog_compiler_c_o_F77 \
14697 exclude_expsyms_F77 \
14698 include_expsyms_F77; do
14699
14700 case $var in
14701 old_archive_cmds_F77 | \
14702 old_archive_from_new_cmds_F77 | \
14703 archive_cmds_F77 | \
14704 archive_expsym_cmds_F77 | \
14705 module_cmds_F77 | \
14706 module_expsym_cmds_F77 | \
14707 old_archive_from_expsyms_cmds_F77 | \
14708 export_symbols_cmds_F77 | \
14709 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14710 postinstall_cmds | postuninstall_cmds | \
14711 old_postinstall_cmds | old_postuninstall_cmds | \
14712 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14713 # Double-quote double-evaled strings.
14714 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14715 ;;
14716 *)
14717 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14718 ;;
14719 esac
14720 done
14721
14722 case $lt_echo in
14723 *'\$0 --fallback-echo"')
14724 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14725 ;;
14726 esac
14727
14728cfgfile="$ofile"
14729
14730 cat <<__EOF__ >> "$cfgfile"
14731# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14732
14733# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14734
14735# Shell to use when invoking shell scripts.
14736SHELL=$lt_SHELL
14737
14738# Whether or not to build shared libraries.
14739build_libtool_libs=$enable_shared
14740
14741# Whether or not to build static libraries.
14742build_old_libs=$enable_static
14743
14744# Whether or not to add -lc for building shared libraries.
14745build_libtool_need_lc=$archive_cmds_need_lc_F77
14746
14747# Whether or not to disallow shared libs when runtime libs are static
14748allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14749
14750# Whether or not to optimize for fast installation.
14751fast_install=$enable_fast_install
14752
14753# The host system.
14754host_alias=$host_alias
14755host=$host
14756
14757# An echo program that does not interpret backslashes.
14758echo=$lt_echo
14759
14760# The archiver.
14761AR=$lt_AR
14762AR_FLAGS=$lt_AR_FLAGS
14763
14764# A C compiler.
14765LTCC=$lt_LTCC
14766
14767# A language-specific compiler.
14768CC=$lt_compiler_F77
14769
14770# Is the compiler the GNU C compiler?
14771with_gcc=$GCC_F77
14772
14773# An ERE matcher.
14774EGREP=$lt_EGREP
14775
14776# The linker used to build libraries.
14777LD=$lt_LD_F77
14778
14779# Whether we need hard or soft links.
14780LN_S=$lt_LN_S
14781
14782# A BSD-compatible nm program.
14783NM=$lt_NM
14784
14785# A symbol stripping program
14786STRIP=$STRIP
14787
14788# Used to examine libraries when file_magic_cmd begins "file"
14789MAGIC_CMD=$MAGIC_CMD
14790
14791# Used on cygwin: DLL creation program.
14792DLLTOOL="$DLLTOOL"
14793
14794# Used on cygwin: object dumper.
14795OBJDUMP="$OBJDUMP"
14796
14797# Used on cygwin: assembler.
14798AS="$AS"
14799
14800# The name of the directory that contains temporary libtool files.
14801objdir=$objdir
14802
14803# How to create reloadable object files.
14804reload_flag=$lt_reload_flag
14805reload_cmds=$lt_reload_cmds
14806
14807# How to pass a linker flag through the compiler.
14808wl=$lt_lt_prog_compiler_wl_F77
14809
14810# Object file suffix (normally "o").
14811objext="$ac_objext"
14812
14813# Old archive suffix (normally "a").
14814libext="$libext"
14815
14816# Shared library suffix (normally ".so").
14817shrext='$shrext'
14818
14819# Executable file suffix (normally "").
14820exeext="$exeext"
14821
14822# Additional compiler flags for building library objects.
14823pic_flag=$lt_lt_prog_compiler_pic_F77
14824pic_mode=$pic_mode
14825
14826# What is the maximum length of a command?
14827max_cmd_len=$lt_cv_sys_max_cmd_len
14828
14829# Does compiler simultaneously support -c and -o options?
14830compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14831
14832# Must we lock files when doing compilation ?
14833need_locks=$lt_need_locks
14834
14835# Do we need the lib prefix for modules?
14836need_lib_prefix=$need_lib_prefix
14837
14838# Do we need a version for libraries?
14839need_version=$need_version
14840
14841# Whether dlopen is supported.
14842dlopen_support=$enable_dlopen
14843
14844# Whether dlopen of programs is supported.
14845dlopen_self=$enable_dlopen_self
14846
14847# Whether dlopen of statically linked programs is supported.
14848dlopen_self_static=$enable_dlopen_self_static
14849
14850# Compiler flag to prevent dynamic linking.
14851link_static_flag=$lt_lt_prog_compiler_static_F77
14852
14853# Compiler flag to turn off builtin functions.
14854no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14855
14856# Compiler flag to allow reflexive dlopens.
14857export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14858
14859# Compiler flag to generate shared objects directly from archives.
14860whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14861
14862# Compiler flag to generate thread-safe objects.
14863thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14864
14865# Library versioning type.
14866version_type=$version_type
14867
14868# Format of library name prefix.
14869libname_spec=$lt_libname_spec
14870
14871# List of archive names. First name is the real one, the rest are links.
14872# The last name is the one that the linker finds with -lNAME.
14873library_names_spec=$lt_library_names_spec
14874
14875# The coded name of the library, if different from the real name.
14876soname_spec=$lt_soname_spec
14877
14878# Commands used to build and install an old-style archive.
14879RANLIB=$lt_RANLIB
14880old_archive_cmds=$lt_old_archive_cmds_F77
14881old_postinstall_cmds=$lt_old_postinstall_cmds
14882old_postuninstall_cmds=$lt_old_postuninstall_cmds
14883
14884# Create an old-style archive from a shared archive.
14885old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14886
14887# Create a temporary old-style archive to link instead of a shared archive.
14888old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14889
14890# Commands used to build and install a shared archive.
14891archive_cmds=$lt_archive_cmds_F77
14892archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14893postinstall_cmds=$lt_postinstall_cmds
14894postuninstall_cmds=$lt_postuninstall_cmds
14895
14896# Commands used to build a loadable module (assumed same as above if empty)
14897module_cmds=$lt_module_cmds_F77
14898module_expsym_cmds=$lt_module_expsym_cmds_F77
14899
14900# Commands to strip libraries.
14901old_striplib=$lt_old_striplib
14902striplib=$lt_striplib
14903
14904# Dependencies to place before the objects being linked to create a
14905# shared library.
14906predep_objects=$lt_predep_objects_F77
14907
14908# Dependencies to place after the objects being linked to create a
14909# shared library.
14910postdep_objects=$lt_postdep_objects_F77
14911
14912# Dependencies to place before the objects being linked to create a
14913# shared library.
14914predeps=$lt_predeps_F77
14915
14916# Dependencies to place after the objects being linked to create a
14917# shared library.
14918postdeps=$lt_postdeps_F77
14919
14920# The library search path used internally by the compiler when linking
14921# a shared library.
14922compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14923
14924# Method to check whether dependent libraries are shared objects.
14925deplibs_check_method=$lt_deplibs_check_method
14926
14927# Command to use when deplibs_check_method == file_magic.
14928file_magic_cmd=$lt_file_magic_cmd
14929
14930# Flag that allows shared libraries with undefined symbols to be built.
14931allow_undefined_flag=$lt_allow_undefined_flag_F77
14932
14933# Flag that forces no undefined symbols.
14934no_undefined_flag=$lt_no_undefined_flag_F77
14935
14936# Commands used to finish a libtool library installation in a directory.
14937finish_cmds=$lt_finish_cmds
14938
14939# Same as above, but a single script fragment to be evaled but not shown.
14940finish_eval=$lt_finish_eval
14941
14942# Take the output of nm and produce a listing of raw symbols and C names.
14943global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14944
14945# Transform the output of nm in a proper C declaration
14946global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14947
14948# Transform the output of nm in a C name address pair
14949global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14950
14951# This is the shared library runtime path variable.
14952runpath_var=$runpath_var
14953
14954# This is the shared library path variable.
14955shlibpath_var=$shlibpath_var
14956
14957# Is shlibpath searched before the hard-coded library search path?
14958shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14959
14960# How to hardcode a shared library path into an executable.
14961hardcode_action=$hardcode_action_F77
14962
14963# Whether we should hardcode library paths into libraries.
14964hardcode_into_libs=$hardcode_into_libs
14965
14966# Flag to hardcode \$libdir into a binary during linking.
14967# This must work even if \$libdir does not exist.
14968hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14969
14970# If ld is used when linking, flag to hardcode \$libdir into
14971# a binary during linking. This must work even if \$libdir does
14972# not exist.
14973hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14974
14975# Whether we need a single -rpath flag with a separated argument.
14976hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14977
14978# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14979# resulting binary.
14980hardcode_direct=$hardcode_direct_F77
14981
14982# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14983# resulting binary.
14984hardcode_minus_L=$hardcode_minus_L_F77
14985
14986# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14987# the resulting binary.
14988hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14989
14990# Set to yes if building a shared library automatically hardcodes DIR into the library
14991# and all subsequent libraries and executables linked against it.
14992hardcode_automatic=$hardcode_automatic_F77
14993
14994# Variables whose values should be saved in libtool wrapper scripts and
14995# restored at relink time.
14996variables_saved_for_relink="$variables_saved_for_relink"
14997
14998# Whether libtool must link a program against all its dependency libraries.
14999link_all_deplibs=$link_all_deplibs_F77
15000
15001# Compile-time system search path for libraries
15002sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15003
15004# Run-time system search path for libraries
15005sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15006
15007# Fix the shell variable \$srcfile for the compiler.
15008fix_srcfile_path="$fix_srcfile_path_F77"
15009
15010# Set to yes if exported symbols are required.
15011always_export_symbols=$always_export_symbols_F77
15012
15013# The commands to list exported symbols.
15014export_symbols_cmds=$lt_export_symbols_cmds_F77
15015
15016# The commands to extract the exported symbol list from a shared archive.
15017extract_expsyms_cmds=$lt_extract_expsyms_cmds
15018
15019# Symbols that should not be listed in the preloaded symbols.
15020exclude_expsyms=$lt_exclude_expsyms_F77
15021
15022# Symbols that must always be exported.
15023include_expsyms=$lt_include_expsyms_F77
15024
15025# ### END LIBTOOL TAG CONFIG: $tagname
15026
15027__EOF__
15028
15029
15030else
15031 # If there is no Makefile yet, we rely on a make rule to execute
15032 # `config.status --recheck' to rerun these tests and create the
15033 # libtool script then.
15034 test -f Makefile && make "$ltmain"
15035fi
15036
15037
15038ac_ext=c
15039ac_cpp='$CPP $CPPFLAGS'
15040ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15041ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15042ac_compiler_gnu=$ac_cv_c_compiler_gnu
15043
15044CC="$lt_save_CC"
15045
15046 else
15047 tagname=""
15048 fi
15049 ;;
15050
15051 GCJ)
15052 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15053
15054
15055
15056# Source file extension for Java test sources.
15057ac_ext=java
15058
15059# Object file extension for compiled Java test sources.
15060objext=o
15061objext_GCJ=$objext
15062
15063# Code to be used in simple compile tests
15064lt_simple_compile_test_code="class foo {}\n"
15065
15066# Code to be used in simple link tests
15067lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15068
15069# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15070
15071# If no C compiler was specified, use CC.
15072LTCC=${LTCC-"$CC"}
15073
15074# Allow CC to be a program name with arguments.
15075compiler=$CC
15076
15077
15078# Allow CC to be a program name with arguments.
15079lt_save_CC="$CC"
15080CC=${GCJ-"gcj"}
15081compiler=$CC
15082compiler_GCJ=$CC
15083
15084# GCJ did not exist at the time GCC didn't implicitly link libc in.
15085archive_cmds_need_lc_GCJ=no
15086
Reid Spencer17041682004-09-05 17:48:32 +000015087## CAVEAT EMPTOR:
15088## There is no encapsulation within the following macros, do not change
15089## the running order or otherwise move them around unless you know exactly
15090## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000015091
15092lt_prog_compiler_no_builtin_flag_GCJ=
15093
15094if test "$GCC" = yes; then
15095 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15096
15097 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15098echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15099if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15100 echo $ECHO_N "(cached) $ECHO_C" >&6
15101else
15102 lt_cv_prog_compiler_rtti_exceptions=no
15103 ac_outfile=conftest.$ac_objext
15104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15105 lt_compiler_flag="-fno-rtti -fno-exceptions"
15106 # Insert the option either (1) after the last *FLAGS variable, or
15107 # (2) before a word containing "conftest.", or (3) at the end.
15108 # Note that $ac_compile itself does not contain backslashes and begins
15109 # with a dollar sign (not a hyphen), so the echo should work correctly.
15110 # The option is referenced via a variable to avoid confusing sed.
15111 lt_compile=`echo "$ac_compile" | $SED \
15112 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15114 -e 's:$: $lt_compiler_flag:'`
Reid Spencer4d68ba22004-09-07 16:35:45 +000015115 (eval echo "\"\$as_me:15115: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015116 (eval "$lt_compile" 2>conftest.err)
15117 ac_status=$?
15118 cat conftest.err >&5
Reid Spencer4d68ba22004-09-07 16:35:45 +000015119 echo "$as_me:15119: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015120 if (exit $ac_status) && test -s "$ac_outfile"; then
15121 # The compiler can only warn and ignore the option if not recognized
15122 # So say no if there are warnings
15123 if test ! -s conftest.err; then
15124 lt_cv_prog_compiler_rtti_exceptions=yes
15125 fi
15126 fi
15127 $rm conftest*
15128
15129fi
15130echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15131echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15132
15133if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15134 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15135else
15136 :
15137fi
15138
15139fi
15140
15141lt_prog_compiler_wl_GCJ=
15142lt_prog_compiler_pic_GCJ=
15143lt_prog_compiler_static_GCJ=
15144
15145echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15146echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15147
15148 if test "$GCC" = yes; then
15149 lt_prog_compiler_wl_GCJ='-Wl,'
15150 lt_prog_compiler_static_GCJ='-static'
15151
15152 case $host_os in
15153 aix*)
15154 # All AIX code is PIC.
15155 if test "$host_cpu" = ia64; then
15156 # AIX 5 now supports IA64 processor
15157 lt_prog_compiler_static_GCJ='-Bstatic'
15158 fi
15159 ;;
15160
15161 amigaos*)
15162 # FIXME: we need at least 68020 code to build shared libraries, but
15163 # adding the `-m68020' flag to GCC prevents building anything better,
15164 # like `-m68040'.
15165 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15166 ;;
15167
15168 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15169 # PIC is the default for these OSes.
15170 ;;
15171
15172 mingw* | pw32* | os2*)
15173 # This hack is so that the source file can tell whether it is being
15174 # built for inclusion in a dll (and should export symbols for example).
15175 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15176 ;;
15177
15178 darwin* | rhapsody*)
15179 # PIC is the default on this platform
15180 # Common symbols not allowed in MH_DYLIB files
15181 lt_prog_compiler_pic_GCJ='-fno-common'
15182 ;;
15183
15184 msdosdjgpp*)
15185 # Just because we use GCC doesn't mean we suddenly get shared libraries
15186 # on systems that don't support them.
15187 lt_prog_compiler_can_build_shared_GCJ=no
15188 enable_shared=no
15189 ;;
15190
15191 sysv4*MP*)
15192 if test -d /usr/nec; then
15193 lt_prog_compiler_pic_GCJ=-Kconform_pic
15194 fi
15195 ;;
15196
15197 hpux*)
15198 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15199 # not for PA HP-UX.
15200 case "$host_cpu" in
15201 hppa*64*|ia64*)
15202 # +Z the default
15203 ;;
15204 *)
15205 lt_prog_compiler_pic_GCJ='-fPIC'
15206 ;;
15207 esac
15208 ;;
15209
15210 *)
15211 lt_prog_compiler_pic_GCJ='-fPIC'
15212 ;;
15213 esac
15214 else
15215 # PORTME Check for flag to pass linker flags through the system compiler.
15216 case $host_os in
15217 aix*)
15218 lt_prog_compiler_wl_GCJ='-Wl,'
15219 if test "$host_cpu" = ia64; then
15220 # AIX 5 now supports IA64 processor
15221 lt_prog_compiler_static_GCJ='-Bstatic'
15222 else
15223 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15224 fi
15225 ;;
15226
15227 mingw* | pw32* | os2*)
15228 # This hack is so that the source file can tell whether it is being
15229 # built for inclusion in a dll (and should export symbols for example).
15230 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15231 ;;
15232
15233 hpux9* | hpux10* | hpux11*)
15234 lt_prog_compiler_wl_GCJ='-Wl,'
15235 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15236 # not for PA HP-UX.
15237 case "$host_cpu" in
15238 hppa*64*|ia64*)
15239 # +Z the default
15240 ;;
15241 *)
15242 lt_prog_compiler_pic_GCJ='+Z'
15243 ;;
15244 esac
15245 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15246 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15247 ;;
15248
15249 irix5* | irix6* | nonstopux*)
15250 lt_prog_compiler_wl_GCJ='-Wl,'
15251 # PIC (with -KPIC) is the default.
15252 lt_prog_compiler_static_GCJ='-non_shared'
15253 ;;
15254
15255 newsos6)
15256 lt_prog_compiler_pic_GCJ='-KPIC'
15257 lt_prog_compiler_static_GCJ='-Bstatic'
15258 ;;
15259
15260 linux*)
15261 case $CC in
15262 icc|ecc)
15263 lt_prog_compiler_wl_GCJ='-Wl,'
15264 lt_prog_compiler_pic_GCJ='-KPIC'
15265 lt_prog_compiler_static_GCJ='-static'
15266 ;;
15267 ccc)
15268 lt_prog_compiler_wl_GCJ='-Wl,'
15269 # All Alpha code is PIC.
15270 lt_prog_compiler_static_GCJ='-non_shared'
15271 ;;
15272 esac
15273 ;;
15274
15275 osf3* | osf4* | osf5*)
15276 lt_prog_compiler_wl_GCJ='-Wl,'
15277 # All OSF/1 code is PIC.
15278 lt_prog_compiler_static_GCJ='-non_shared'
15279 ;;
15280
15281 sco3.2v5*)
15282 lt_prog_compiler_pic_GCJ='-Kpic'
15283 lt_prog_compiler_static_GCJ='-dn'
15284 ;;
15285
15286 solaris*)
15287 lt_prog_compiler_wl_GCJ='-Wl,'
15288 lt_prog_compiler_pic_GCJ='-KPIC'
15289 lt_prog_compiler_static_GCJ='-Bstatic'
15290 ;;
15291
15292 sunos4*)
15293 lt_prog_compiler_wl_GCJ='-Qoption ld '
15294 lt_prog_compiler_pic_GCJ='-PIC'
15295 lt_prog_compiler_static_GCJ='-Bstatic'
15296 ;;
15297
15298 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15299 lt_prog_compiler_wl_GCJ='-Wl,'
15300 lt_prog_compiler_pic_GCJ='-KPIC'
15301 lt_prog_compiler_static_GCJ='-Bstatic'
15302 ;;
15303
15304 sysv4*MP*)
15305 if test -d /usr/nec ;then
15306 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15307 lt_prog_compiler_static_GCJ='-Bstatic'
15308 fi
15309 ;;
15310
15311 uts4*)
15312 lt_prog_compiler_pic_GCJ='-pic'
15313 lt_prog_compiler_static_GCJ='-Bstatic'
15314 ;;
15315
15316 *)
15317 lt_prog_compiler_can_build_shared_GCJ=no
15318 ;;
15319 esac
15320 fi
15321
15322echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15323echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15324
15325#
15326# Check to make sure the PIC flag actually works.
15327#
15328if test -n "$lt_prog_compiler_pic_GCJ"; then
15329 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15330echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15331if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15333else
15334 lt_prog_compiler_pic_works_GCJ=no
15335 ac_outfile=conftest.$ac_objext
15336 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15337 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15338 # Insert the option either (1) after the last *FLAGS variable, or
15339 # (2) before a word containing "conftest.", or (3) at the end.
15340 # Note that $ac_compile itself does not contain backslashes and begins
15341 # with a dollar sign (not a hyphen), so the echo should work correctly.
15342 # The option is referenced via a variable to avoid confusing sed.
15343 lt_compile=`echo "$ac_compile" | $SED \
15344 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15345 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15346 -e 's:$: $lt_compiler_flag:'`
Reid Spencer4d68ba22004-09-07 16:35:45 +000015347 (eval echo "\"\$as_me:15347: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015348 (eval "$lt_compile" 2>conftest.err)
15349 ac_status=$?
15350 cat conftest.err >&5
Reid Spencer4d68ba22004-09-07 16:35:45 +000015351 echo "$as_me:15351: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015352 if (exit $ac_status) && test -s "$ac_outfile"; then
15353 # The compiler can only warn and ignore the option if not recognized
15354 # So say no if there are warnings
15355 if test ! -s conftest.err; then
15356 lt_prog_compiler_pic_works_GCJ=yes
15357 fi
15358 fi
15359 $rm conftest*
15360
15361fi
15362echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15363echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15364
15365if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15366 case $lt_prog_compiler_pic_GCJ in
15367 "" | " "*) ;;
15368 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15369 esac
15370else
15371 lt_prog_compiler_pic_GCJ=
15372 lt_prog_compiler_can_build_shared_GCJ=no
15373fi
15374
15375fi
15376case "$host_os" in
15377 # For platforms which do not support PIC, -DPIC is meaningless:
15378 *djgpp*)
15379 lt_prog_compiler_pic_GCJ=
15380 ;;
15381 *)
15382 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15383 ;;
15384esac
15385
15386echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15387echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15388if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15389 echo $ECHO_N "(cached) $ECHO_C" >&6
15390else
15391 lt_cv_prog_compiler_c_o_GCJ=no
15392 $rm -r conftest 2>/dev/null
15393 mkdir conftest
15394 cd conftest
15395 mkdir out
15396 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15397
15398 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15399 # that will create temporary files in the current directory regardless of
15400 # the output directory. Thus, making CWD read-only will cause this test
15401 # to fail, enabling locking or at least warning the user not to do parallel
15402 # builds.
15403 chmod -w .
15404
15405 lt_compiler_flag="-o out/conftest2.$ac_objext"
15406 # Insert the option either (1) after the last *FLAGS variable, or
15407 # (2) before a word containing "conftest.", or (3) at the end.
15408 # Note that $ac_compile itself does not contain backslashes and begins
15409 # with a dollar sign (not a hyphen), so the echo should work correctly.
15410 lt_compile=`echo "$ac_compile" | $SED \
15411 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15413 -e 's:$: $lt_compiler_flag:'`
Reid Spencer4d68ba22004-09-07 16:35:45 +000015414 (eval echo "\"\$as_me:15414: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015415 (eval "$lt_compile" 2>out/conftest.err)
15416 ac_status=$?
15417 cat out/conftest.err >&5
Reid Spencer4d68ba22004-09-07 16:35:45 +000015418 echo "$as_me:15418: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015419 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15420 then
15421 # The compiler can only warn and ignore the option if not recognized
15422 # So say no if there are warnings
15423 if test ! -s out/conftest.err; then
15424 lt_cv_prog_compiler_c_o_GCJ=yes
15425 fi
15426 fi
15427 chmod u+w .
15428 $rm conftest* out/*
15429 rmdir out
15430 cd ..
15431 rmdir conftest
15432 $rm conftest*
15433
15434fi
15435echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15436echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15437
15438
15439hard_links="nottested"
15440if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15441 # do not overwrite the value of need_locks provided by the user
15442 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15443echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15444 hard_links=yes
15445 $rm conftest*
15446 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15447 touch conftest.a
15448 ln conftest.a conftest.b 2>&5 || hard_links=no
15449 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15450 echo "$as_me:$LINENO: result: $hard_links" >&5
15451echo "${ECHO_T}$hard_links" >&6
15452 if test "$hard_links" = no; then
15453 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15454echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15455 need_locks=warn
15456 fi
15457else
15458 need_locks=no
15459fi
15460
15461echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15462echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15463
15464 runpath_var=
15465 allow_undefined_flag_GCJ=
15466 enable_shared_with_static_runtimes_GCJ=no
15467 archive_cmds_GCJ=
15468 archive_expsym_cmds_GCJ=
15469 old_archive_From_new_cmds_GCJ=
15470 old_archive_from_expsyms_cmds_GCJ=
15471 export_dynamic_flag_spec_GCJ=
15472 whole_archive_flag_spec_GCJ=
15473 thread_safe_flag_spec_GCJ=
15474 hardcode_libdir_flag_spec_GCJ=
15475 hardcode_libdir_flag_spec_ld_GCJ=
15476 hardcode_libdir_separator_GCJ=
15477 hardcode_direct_GCJ=no
15478 hardcode_minus_L_GCJ=no
15479 hardcode_shlibpath_var_GCJ=unsupported
15480 link_all_deplibs_GCJ=unknown
15481 hardcode_automatic_GCJ=no
15482 module_cmds_GCJ=
15483 module_expsym_cmds_GCJ=
15484 always_export_symbols_GCJ=no
15485 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15486 # include_expsyms should be a list of space-separated symbols to be *always*
15487 # included in the symbol list
15488 include_expsyms_GCJ=
15489 # exclude_expsyms can be an extended regexp of symbols to exclude
15490 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15491 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15492 # as well as any symbol that contains `d'.
15493 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15494 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15495 # platforms (ab)use it in PIC code, but their linkers get confused if
15496 # the symbol is explicitly referenced. Since portable code cannot
15497 # rely on this symbol name, it's probably fine to never include it in
15498 # preloaded symbol tables.
15499 extract_expsyms_cmds=
15500
15501 case $host_os in
15502 cygwin* | mingw* | pw32*)
15503 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15504 # When not using gcc, we currently assume that we are using
15505 # Microsoft Visual C++.
15506 if test "$GCC" != yes; then
15507 with_gnu_ld=no
15508 fi
15509 ;;
15510 openbsd*)
15511 with_gnu_ld=no
15512 ;;
15513 esac
15514
15515 ld_shlibs_GCJ=yes
15516 if test "$with_gnu_ld" = yes; then
15517 # If archive_cmds runs LD, not CC, wlarc should be empty
15518 wlarc='${wl}'
15519
15520 # See if GNU ld supports shared libraries.
15521 case $host_os in
15522 aix3* | aix4* | aix5*)
15523 # On AIX/PPC, the GNU linker is very broken
15524 if test "$host_cpu" != ia64; then
15525 ld_shlibs_GCJ=no
15526 cat <<EOF 1>&2
15527
15528*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15529*** to be unable to reliably create shared libraries on AIX.
15530*** Therefore, libtool is disabling shared libraries support. If you
15531*** really care for shared libraries, you may want to modify your PATH
15532*** so that a non-GNU linker is found, and then restart.
15533
15534EOF
15535 fi
15536 ;;
15537
15538 amigaos*)
15539 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)'
15540 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15541 hardcode_minus_L_GCJ=yes
15542
15543 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15544 # that the semantics of dynamic libraries on AmigaOS, at least up
15545 # to version 4, is to share data among multiple programs linked
15546 # with the same dynamic library. Since this doesn't match the
15547 # behavior of shared libraries on other platforms, we can't use
15548 # them.
15549 ld_shlibs_GCJ=no
15550 ;;
15551
15552 beos*)
15553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15554 allow_undefined_flag_GCJ=unsupported
15555 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15556 # support --undefined. This deserves some investigation. FIXME
15557 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15558 else
15559 ld_shlibs_GCJ=no
15560 fi
15561 ;;
15562
15563 cygwin* | mingw* | pw32*)
15564 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15565 # as there is no search path for DLLs.
15566 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15567 allow_undefined_flag_GCJ=unsupported
15568 always_export_symbols_GCJ=no
15569 enable_shared_with_static_runtimes_GCJ=yes
15570 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15571
15572 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15573 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15574 # If the export-symbols file already is a .def file (1st line
15575 # is EXPORTS), use it as is; otherwise, prepend...
15576 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15577 cp $export_symbols $output_objdir/$soname.def;
15578 else
15579 echo EXPORTS > $output_objdir/$soname.def;
15580 cat $export_symbols >> $output_objdir/$soname.def;
15581 fi~
15582 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15583 else
15584 ld_shlibs=no
15585 fi
15586 ;;
15587
15588 netbsd*)
15589 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15590 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15591 wlarc=
15592 else
15593 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15594 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15595 fi
15596 ;;
15597
15598 solaris* | sysv5*)
15599 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15600 ld_shlibs_GCJ=no
15601 cat <<EOF 1>&2
15602
15603*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15604*** create shared libraries on Solaris systems. Therefore, libtool
15605*** is disabling shared libraries support. We urge you to upgrade GNU
15606*** binutils to release 2.9.1 or newer. Another option is to modify
15607*** your PATH or compiler configuration so that the native linker is
15608*** used, and then restart.
15609
15610EOF
15611 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15612 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15613 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15614 else
15615 ld_shlibs_GCJ=no
15616 fi
15617 ;;
15618
15619 sunos4*)
15620 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15621 wlarc=
15622 hardcode_direct_GCJ=yes
15623 hardcode_shlibpath_var_GCJ=no
15624 ;;
15625
15626 *)
15627 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15628 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15630 else
15631 ld_shlibs_GCJ=no
15632 fi
15633 ;;
15634 esac
15635
15636 if test "$ld_shlibs_GCJ" = yes; then
15637 runpath_var=LD_RUN_PATH
15638 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15639 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15640 # ancient GNU ld didn't support --whole-archive et. al.
15641 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15642 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15643 else
15644 whole_archive_flag_spec_GCJ=
15645 fi
15646 fi
15647 else
15648 # PORTME fill in a description of your system's linker (not GNU ld)
15649 case $host_os in
15650 aix3*)
15651 allow_undefined_flag_GCJ=unsupported
15652 always_export_symbols_GCJ=yes
15653 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'
15654 # Note: this linker hardcodes the directories in LIBPATH if there
15655 # are no directories specified by -L.
15656 hardcode_minus_L_GCJ=yes
15657 if test "$GCC" = yes && test -z "$link_static_flag"; then
15658 # Neither direct hardcoding nor static linking is supported with a
15659 # broken collect2.
15660 hardcode_direct_GCJ=unsupported
15661 fi
15662 ;;
15663
15664 aix4* | aix5*)
15665 if test "$host_cpu" = ia64; then
15666 # On IA64, the linker does run time linking by default, so we don't
15667 # have to do anything special.
15668 aix_use_runtimelinking=no
15669 exp_sym_flag='-Bexport'
15670 no_entry_flag=""
15671 else
15672 # If we're using GNU nm, then we don't want the "-C" option.
15673 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15674 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15675 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'
15676 else
15677 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'
15678 fi
15679 aix_use_runtimelinking=no
15680
15681 # Test if we are trying to use run time linking or normal
15682 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15683 # need to do runtime linking.
15684 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15685 for ld_flag in $LDFLAGS; do
15686 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15687 aix_use_runtimelinking=yes
15688 break
15689 fi
15690 done
15691 esac
15692
15693 exp_sym_flag='-bexport'
15694 no_entry_flag='-bnoentry'
15695 fi
15696
15697 # When large executables or shared objects are built, AIX ld can
15698 # have problems creating the table of contents. If linking a library
15699 # or program results in "error TOC overflow" add -mminimal-toc to
15700 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15701 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15702
15703 archive_cmds_GCJ=''
15704 hardcode_direct_GCJ=yes
15705 hardcode_libdir_separator_GCJ=':'
15706 link_all_deplibs_GCJ=yes
15707
15708 if test "$GCC" = yes; then
15709 case $host_os in aix4.012|aix4.012.*)
15710 # We only want to do this on AIX 4.2 and lower, the check
15711 # below for broken collect2 doesn't work under 4.3+
15712 collect2name=`${CC} -print-prog-name=collect2`
15713 if test -f "$collect2name" && \
15714 strings "$collect2name" | grep resolve_lib_name >/dev/null
15715 then
15716 # We have reworked collect2
15717 hardcode_direct_GCJ=yes
15718 else
15719 # We have old collect2
15720 hardcode_direct_GCJ=unsupported
15721 # It fails to find uninstalled libraries when the uninstalled
15722 # path is not listed in the libpath. Setting hardcode_minus_L
15723 # to unsupported forces relinking
15724 hardcode_minus_L_GCJ=yes
15725 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15726 hardcode_libdir_separator_GCJ=
15727 fi
15728 esac
15729 shared_flag='-shared'
15730 else
15731 # not using gcc
15732 if test "$host_cpu" = ia64; then
15733 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15734 # chokes on -Wl,-G. The following line is correct:
15735 shared_flag='-G'
15736 else
15737 if test "$aix_use_runtimelinking" = yes; then
15738 shared_flag='${wl}-G'
15739 else
15740 shared_flag='${wl}-bM:SRE'
15741 fi
15742 fi
15743 fi
15744
15745 # It seems that -bexpall does not export symbols beginning with
15746 # underscore (_), so it is better to generate a list of symbols to export.
15747 always_export_symbols_GCJ=yes
15748 if test "$aix_use_runtimelinking" = yes; then
15749 # Warning - without using the other runtime loading flags (-brtl),
15750 # -berok will link without error, but may produce a broken library.
15751 allow_undefined_flag_GCJ='-berok'
15752 # Determine the default libpath from the value encoded in an empty executable.
15753 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015754/* confdefs.h. */
15755_ACEOF
15756cat confdefs.h >>conftest.$ac_ext
15757cat >>conftest.$ac_ext <<_ACEOF
15758/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015759
John Criswell47fdd832003-07-14 16:52:07 +000015760int
15761main ()
15762{
15763
15764 ;
15765 return 0;
15766}
15767_ACEOF
15768rm -f conftest.$ac_objext conftest$ac_exeext
15769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000015770 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015771 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000015772 grep -v '^ *+' conftest.er1 >conftest.err
15773 rm -f conftest.er1
15774 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000015777 { ac_try='test -z "$ac_c_werror_flag"
15778 || test ! -s conftest.err'
15779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15780 (eval $ac_try) 2>&5
15781 ac_status=$?
15782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15783 (exit $ac_status); }; } &&
15784 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15786 (eval $ac_try) 2>&5
15787 ac_status=$?
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); }; }; then
15790
15791aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15792}'`
15793# Check for a 64-bit object if we didn't find anything.
15794if 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; }
15795}'`; fi
15796else
15797 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015798sed 's/^/| /' conftest.$ac_ext >&5
15799
John Criswell47fdd832003-07-14 16:52:07 +000015800fi
Reid Spencer17041682004-09-05 17:48:32 +000015801rm -f conftest.err conftest.$ac_objext \
15802 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015803if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15804
15805 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15806 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"
15807 else
15808 if test "$host_cpu" = ia64; then
15809 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15810 allow_undefined_flag_GCJ="-z nodefs"
15811 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"
15812 else
15813 # Determine the default libpath from the value encoded in an empty executable.
15814 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015815/* confdefs.h. */
15816_ACEOF
15817cat confdefs.h >>conftest.$ac_ext
15818cat >>conftest.$ac_ext <<_ACEOF
15819/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015820
John Criswell47fdd832003-07-14 16:52:07 +000015821int
15822main ()
15823{
15824
15825 ;
15826 return 0;
15827}
15828_ACEOF
15829rm -f conftest.$ac_objext conftest$ac_exeext
15830if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000015831 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015832 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000015833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
15835 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000015838 { ac_try='test -z "$ac_c_werror_flag"
15839 || test ! -s conftest.err'
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15842 ac_status=$?
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; } &&
15845 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15848 ac_status=$?
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }; then
15851
15852aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15853}'`
15854# Check for a 64-bit object if we didn't find anything.
15855if 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; }
15856}'`; fi
15857else
15858 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015859sed 's/^/| /' conftest.$ac_ext >&5
15860
John Criswell47fdd832003-07-14 16:52:07 +000015861fi
Reid Spencer17041682004-09-05 17:48:32 +000015862rm -f conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015864if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15865
15866 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15867 # Warning - without using the other run time loading flags,
15868 # -berok will link without error, but may produce a broken library.
15869 no_undefined_flag_GCJ=' ${wl}-bernotok'
15870 allow_undefined_flag_GCJ=' ${wl}-berok'
15871 # -bexpall does not export symbols beginning with underscore (_)
15872 always_export_symbols_GCJ=yes
15873 # Exported symbols can be pulled into shared objects from archives
15874 whole_archive_flag_spec_GCJ=' '
15875 archive_cmds_need_lc_GCJ=yes
15876 # This is similar to how AIX traditionally builds it's shared libraries.
15877 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'
15878 fi
15879 fi
15880 ;;
15881
15882 amigaos*)
15883 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)'
15884 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15885 hardcode_minus_L_GCJ=yes
15886 # see comment about different semantics on the GNU ld section
15887 ld_shlibs_GCJ=no
15888 ;;
15889
15890 bsdi4*)
15891 export_dynamic_flag_spec_GCJ=-rdynamic
15892 ;;
15893
15894 cygwin* | mingw* | pw32*)
15895 # When not using gcc, we currently assume that we are using
15896 # Microsoft Visual C++.
15897 # hardcode_libdir_flag_spec is actually meaningless, as there is
15898 # no search path for DLLs.
15899 hardcode_libdir_flag_spec_GCJ=' '
15900 allow_undefined_flag_GCJ=unsupported
15901 # Tell ltmain to make .lib files, not .a files.
15902 libext=lib
15903 # Tell ltmain to make .dll files, not .so files.
15904 shrext=".dll"
15905 # FIXME: Setting linknames here is a bad hack.
15906 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15907 # The linker will automatically build a .lib file if we build a DLL.
15908 old_archive_From_new_cmds_GCJ='true'
15909 # FIXME: Should let the user specify the lib program.
15910 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15911 fix_srcfile_path='`cygpath -w "$srcfile"`'
15912 enable_shared_with_static_runtimes_GCJ=yes
15913 ;;
15914
15915 darwin* | rhapsody*)
15916 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15917 archive_cmds_need_lc_GCJ=no
15918 case "$host_os" in
15919 rhapsody* | darwin1.[012])
15920 allow_undefined_flag_GCJ='-undefined suppress'
15921 ;;
15922 *) # Darwin 1.3 on
15923 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15924 ;;
15925 esac
15926 # FIXME: Relying on posixy $() will cause problems for
15927 # cross-compilation, but unfortunately the echo tests do not
15928 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15929 # `"' quotes if we put them in here... so don't!
15930 lt_int_apple_cc_single_mod=no
15931 output_verbose_link_cmd='echo'
15932 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15933 lt_int_apple_cc_single_mod=yes
15934 fi
15935 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15936 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15937 else
15938 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
15939 fi
15940 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15941 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15942 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15943 archive_expsym_cmds_GCJ='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}'
15944 else
15945 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15946 fi
15947 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15948 hardcode_direct_GCJ=no
15949 hardcode_automatic_GCJ=yes
15950 hardcode_shlibpath_var_GCJ=unsupported
15951 whole_archive_flag_spec_GCJ='-all_load $convenience'
15952 link_all_deplibs_GCJ=yes
15953 fi
15954 ;;
15955
15956 dgux*)
15957 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15958 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15959 hardcode_shlibpath_var_GCJ=no
15960 ;;
15961
15962 freebsd1*)
15963 ld_shlibs_GCJ=no
15964 ;;
15965
15966 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15967 # support. Future versions do this automatically, but an explicit c++rt0.o
15968 # does not break anything, and helps significantly (at the cost of a little
15969 # extra space).
15970 freebsd2.2*)
15971 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15972 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15973 hardcode_direct_GCJ=yes
15974 hardcode_shlibpath_var_GCJ=no
15975 ;;
15976
15977 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15978 freebsd2*)
15979 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15980 hardcode_direct_GCJ=yes
15981 hardcode_minus_L_GCJ=yes
15982 hardcode_shlibpath_var_GCJ=no
15983 ;;
15984
15985 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15986 freebsd*)
15987 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15988 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15989 hardcode_direct_GCJ=yes
15990 hardcode_shlibpath_var_GCJ=no
15991 ;;
15992
15993 hpux9*)
15994 if test "$GCC" = yes; then
15995 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'
15996 else
15997 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'
15998 fi
15999 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16000 hardcode_libdir_separator_GCJ=:
16001 hardcode_direct_GCJ=yes
16002
16003 # hardcode_minus_L: Not really in the search PATH,
16004 # but as the default location of the library.
16005 hardcode_minus_L_GCJ=yes
16006 export_dynamic_flag_spec_GCJ='${wl}-E'
16007 ;;
16008
16009 hpux10* | hpux11*)
16010 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16011 case "$host_cpu" in
16012 hppa*64*|ia64*)
16013 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16014 ;;
16015 *)
16016 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16017 ;;
16018 esac
16019 else
16020 case "$host_cpu" in
16021 hppa*64*|ia64*)
16022 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16023 ;;
16024 *)
16025 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16026 ;;
16027 esac
16028 fi
16029 if test "$with_gnu_ld" = no; then
16030 case "$host_cpu" in
16031 hppa*64*)
16032 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16033 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16034 hardcode_libdir_separator_GCJ=:
16035 hardcode_direct_GCJ=no
16036 hardcode_shlibpath_var_GCJ=no
16037 ;;
16038 ia64*)
16039 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16040 hardcode_direct_GCJ=no
16041 hardcode_shlibpath_var_GCJ=no
16042
16043 # hardcode_minus_L: Not really in the search PATH,
16044 # but as the default location of the library.
16045 hardcode_minus_L_GCJ=yes
16046 ;;
16047 *)
16048 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16049 hardcode_libdir_separator_GCJ=:
16050 hardcode_direct_GCJ=yes
16051 export_dynamic_flag_spec_GCJ='${wl}-E'
16052
16053 # hardcode_minus_L: Not really in the search PATH,
16054 # but as the default location of the library.
16055 hardcode_minus_L_GCJ=yes
16056 ;;
16057 esac
16058 fi
16059 ;;
16060
16061 irix5* | irix6* | nonstopux*)
16062 if test "$GCC" = yes; then
16063 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'
16064 else
16065 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'
16066 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16067 fi
16068 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16069 hardcode_libdir_separator_GCJ=:
16070 link_all_deplibs_GCJ=yes
16071 ;;
16072
16073 netbsd*)
16074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16075 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16076 else
16077 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16078 fi
16079 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16080 hardcode_direct_GCJ=yes
16081 hardcode_shlibpath_var_GCJ=no
16082 ;;
16083
16084 newsos6)
16085 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16086 hardcode_direct_GCJ=yes
16087 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16088 hardcode_libdir_separator_GCJ=:
16089 hardcode_shlibpath_var_GCJ=no
16090 ;;
16091
16092 openbsd*)
16093 hardcode_direct_GCJ=yes
16094 hardcode_shlibpath_var_GCJ=no
16095 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16096 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16097 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16098 export_dynamic_flag_spec_GCJ='${wl}-E'
16099 else
16100 case $host_os in
16101 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16102 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16103 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16104 ;;
16105 *)
16106 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16107 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16108 ;;
16109 esac
16110 fi
16111 ;;
16112
16113 os2*)
16114 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16115 hardcode_minus_L_GCJ=yes
16116 allow_undefined_flag_GCJ=unsupported
16117 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'
16118 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16119 ;;
16120
16121 osf3*)
16122 if test "$GCC" = yes; then
16123 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16124 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'
16125 else
16126 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16127 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'
16128 fi
16129 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16130 hardcode_libdir_separator_GCJ=:
16131 ;;
16132
16133 osf4* | osf5*) # as osf3* with the addition of -msym flag
16134 if test "$GCC" = yes; then
16135 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16136 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'
16137 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16138 else
16139 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16140 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'
16141 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~
16142 $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'
16143
16144 # Both c and cxx compiler support -rpath directly
16145 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16146 fi
16147 hardcode_libdir_separator_GCJ=:
16148 ;;
16149
16150 sco3.2v5*)
16151 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16152 hardcode_shlibpath_var_GCJ=no
16153 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16154 runpath_var=LD_RUN_PATH
16155 hardcode_runpath_var=yes
16156 ;;
16157
16158 solaris*)
16159 no_undefined_flag_GCJ=' -z text'
16160 if test "$GCC" = yes; then
16161 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16162 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16163 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16164 else
16165 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16166 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16167 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16168 fi
16169 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16170 hardcode_shlibpath_var_GCJ=no
16171 case $host_os in
16172 solaris2.[0-5] | solaris2.[0-5].*) ;;
16173 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16174 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16175 esac
16176 link_all_deplibs_GCJ=yes
16177 ;;
16178
16179 sunos4*)
16180 if test "x$host_vendor" = xsequent; then
16181 # Use $CC to link under sequent, because it throws in some extra .o
16182 # files that make .init and .fini sections work.
16183 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16184 else
16185 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16186 fi
16187 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16188 hardcode_direct_GCJ=yes
16189 hardcode_minus_L_GCJ=yes
16190 hardcode_shlibpath_var_GCJ=no
16191 ;;
16192
16193 sysv4)
16194 case $host_vendor in
16195 sni)
16196 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16197 hardcode_direct_GCJ=yes # is this really true???
16198 ;;
16199 siemens)
16200 ## LD is ld it makes a PLAMLIB
16201 ## CC just makes a GrossModule.
16202 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16203 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16204 hardcode_direct_GCJ=no
16205 ;;
16206 motorola)
16207 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16208 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16209 ;;
16210 esac
16211 runpath_var='LD_RUN_PATH'
16212 hardcode_shlibpath_var_GCJ=no
16213 ;;
16214
16215 sysv4.3*)
16216 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16217 hardcode_shlibpath_var_GCJ=no
16218 export_dynamic_flag_spec_GCJ='-Bexport'
16219 ;;
16220
16221 sysv4*MP*)
16222 if test -d /usr/nec; then
16223 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16224 hardcode_shlibpath_var_GCJ=no
16225 runpath_var=LD_RUN_PATH
16226 hardcode_runpath_var=yes
16227 ld_shlibs_GCJ=yes
16228 fi
16229 ;;
16230
16231 sysv4.2uw2*)
16232 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16233 hardcode_direct_GCJ=yes
16234 hardcode_minus_L_GCJ=no
16235 hardcode_shlibpath_var_GCJ=no
16236 hardcode_runpath_var=yes
16237 runpath_var=LD_RUN_PATH
16238 ;;
16239
16240 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16241 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16242 if test "$GCC" = yes; then
16243 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16244 else
16245 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16246 fi
16247 runpath_var='LD_RUN_PATH'
16248 hardcode_shlibpath_var_GCJ=no
16249 ;;
16250
16251 sysv5*)
16252 no_undefined_flag_GCJ=' -z text'
16253 # $CC -shared without GNU ld will not create a library from C++
16254 # object files and a static libstdc++, better avoid it by now
16255 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16257 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16258 hardcode_libdir_flag_spec_GCJ=
16259 hardcode_shlibpath_var_GCJ=no
16260 runpath_var='LD_RUN_PATH'
16261 ;;
16262
16263 uts4*)
16264 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16265 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16266 hardcode_shlibpath_var_GCJ=no
16267 ;;
16268
16269 *)
16270 ld_shlibs_GCJ=no
16271 ;;
16272 esac
16273 fi
16274
16275echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16276echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16277test "$ld_shlibs_GCJ" = no && can_build_shared=no
16278
16279variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16280if test "$GCC" = yes; then
16281 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16282fi
16283
16284#
16285# Do we need to explicitly link libc?
16286#
16287case "x$archive_cmds_need_lc_GCJ" in
16288x|xyes)
16289 # Assume -lc should be added
16290 archive_cmds_need_lc_GCJ=yes
16291
16292 if test "$enable_shared" = yes && test "$GCC" = yes; then
16293 case $archive_cmds_GCJ in
16294 *'~'*)
16295 # FIXME: we may have to deal with multi-command sequences.
16296 ;;
16297 '$CC '*)
16298 # Test whether the compiler implicitly links with -lc since on some
16299 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16300 # to ld, don't add -lc before -lgcc.
16301 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16302echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16303 $rm conftest*
16304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16305
16306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16307 (eval $ac_compile) 2>&5
16308 ac_status=$?
16309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310 (exit $ac_status); } 2>conftest.err; then
16311 soname=conftest
16312 lib=conftest
16313 libobjs=conftest.$ac_objext
16314 deplibs=
16315 wl=$lt_prog_compiler_wl_GCJ
16316 compiler_flags=-v
16317 linker_flags=-v
16318 verstring=
16319 output_objdir=.
16320 libname=conftest
16321 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16322 allow_undefined_flag_GCJ=
16323 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16324 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16325 ac_status=$?
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); }
16328 then
16329 archive_cmds_need_lc_GCJ=no
16330 else
16331 archive_cmds_need_lc_GCJ=yes
16332 fi
16333 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16334 else
16335 cat conftest.err 1>&5
16336 fi
16337 $rm conftest*
16338 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16339echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16340 ;;
16341 esac
16342 fi
16343 ;;
16344esac
16345
16346echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16347echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16348hardcode_action_GCJ=
16349if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16350 test -n "$runpath_var GCJ" || \
16351 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16352
16353 # We can hardcode non-existant directories.
16354 if test "$hardcode_direct_GCJ" != no &&
16355 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16356 # have to relink, otherwise we might link with an installed library
16357 # when we should be linking with a yet-to-be-installed one
16358 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16359 test "$hardcode_minus_L_GCJ" != no; then
16360 # Linking always hardcodes the temporary library directory.
16361 hardcode_action_GCJ=relink
16362 else
16363 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16364 hardcode_action_GCJ=immediate
16365 fi
16366else
16367 # We cannot hardcode anything, or else we can only hardcode existing
16368 # directories.
16369 hardcode_action_GCJ=unsupported
16370fi
16371echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16372echo "${ECHO_T}$hardcode_action_GCJ" >&6
16373
16374if test "$hardcode_action_GCJ" = relink; then
16375 # Fast installation is not supported
16376 enable_fast_install=no
16377elif test "$shlibpath_overrides_runpath" = yes ||
16378 test "$enable_shared" = no; then
16379 # Fast installation is not necessary
16380 enable_fast_install=needless
16381fi
16382
16383striplib=
16384old_striplib=
16385echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16386echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16387if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16388 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16389 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16390 echo "$as_me:$LINENO: result: yes" >&5
16391echo "${ECHO_T}yes" >&6
16392else
16393# FIXME - insert some real tests, host_os isn't really good enough
16394 case $host_os in
16395 darwin*)
16396 if test -n "$STRIP" ; then
16397 striplib="$STRIP -x"
16398 echo "$as_me:$LINENO: result: yes" >&5
16399echo "${ECHO_T}yes" >&6
16400 else
16401 echo "$as_me:$LINENO: result: no" >&5
16402echo "${ECHO_T}no" >&6
16403fi
16404 ;;
16405 *)
16406 echo "$as_me:$LINENO: result: no" >&5
16407echo "${ECHO_T}no" >&6
16408 ;;
16409 esac
16410fi
16411
16412echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16413echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16414library_names_spec=
16415libname_spec='lib$name'
16416soname_spec=
16417shrext=".so"
16418postinstall_cmds=
16419postuninstall_cmds=
16420finish_cmds=
16421finish_eval=
16422shlibpath_var=
16423shlibpath_overrides_runpath=unknown
16424version_type=none
16425dynamic_linker="$host_os ld.so"
16426sys_lib_dlsearch_path_spec="/lib /usr/lib"
16427if test "$GCC" = yes; then
16428 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16429 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16430 # if the path contains ";" then we assume it to be the separator
16431 # otherwise default to the standard path separator (i.e. ":") - it is
16432 # assumed that no part of a normal pathname contains ";" but that should
16433 # okay in the real world where ";" in dirpaths is itself problematic.
16434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16435 else
16436 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16437 fi
16438else
16439 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16440fi
16441need_lib_prefix=unknown
16442hardcode_into_libs=no
16443
16444# when you set need_version to no, make sure it does not cause -set_version
16445# flags to be left without arguments
16446need_version=unknown
16447
16448case $host_os in
16449aix3*)
16450 version_type=linux
16451 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16452 shlibpath_var=LIBPATH
16453
16454 # AIX 3 has no versioning support, so we append a major version to the name.
16455 soname_spec='${libname}${release}${shared_ext}$major'
16456 ;;
16457
16458aix4* | aix5*)
16459 version_type=linux
16460 need_lib_prefix=no
16461 need_version=no
16462 hardcode_into_libs=yes
16463 if test "$host_cpu" = ia64; then
16464 # AIX 5 supports IA64
16465 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16466 shlibpath_var=LD_LIBRARY_PATH
16467 else
16468 # With GCC up to 2.95.x, collect2 would create an import file
16469 # for dependence libraries. The import file would start with
16470 # the line `#! .'. This would cause the generated library to
16471 # depend on `.', always an invalid library. This was fixed in
16472 # development snapshots of GCC prior to 3.0.
16473 case $host_os in
16474 aix4 | aix4.[01] | aix4.[01].*)
16475 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16476 echo ' yes '
16477 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16478 :
16479 else
16480 can_build_shared=no
16481 fi
16482 ;;
16483 esac
16484 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16485 # soname into executable. Probably we can add versioning support to
16486 # collect2, so additional links can be useful in future.
16487 if test "$aix_use_runtimelinking" = yes; then
16488 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16489 # instead of lib<name>.a to let people know that these are not
16490 # typical AIX shared libraries.
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492 else
16493 # We preserve .a as extension for shared libraries through AIX4.2
16494 # and later when we are not doing run time linking.
16495 library_names_spec='${libname}${release}.a $libname.a'
16496 soname_spec='${libname}${release}${shared_ext}$major'
16497 fi
16498 shlibpath_var=LIBPATH
16499 fi
16500 ;;
16501
16502amigaos*)
16503 library_names_spec='$libname.ixlibrary $libname.a'
16504 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16505 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'
16506 ;;
16507
16508beos*)
16509 library_names_spec='${libname}${shared_ext}'
16510 dynamic_linker="$host_os ld.so"
16511 shlibpath_var=LIBRARY_PATH
16512 ;;
16513
16514bsdi4*)
16515 version_type=linux
16516 need_version=no
16517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16518 soname_spec='${libname}${release}${shared_ext}$major'
16519 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16520 shlibpath_var=LD_LIBRARY_PATH
16521 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16522 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16523 # the default ld.so.conf also contains /usr/contrib/lib and
16524 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16525 # libtool to hard-code these into programs
16526 ;;
16527
16528cygwin* | mingw* | pw32*)
16529 version_type=windows
16530 shrext=".dll"
16531 need_version=no
16532 need_lib_prefix=no
16533
16534 case $GCC,$host_os in
16535 yes,cygwin* | yes,mingw* | yes,pw32*)
16536 library_names_spec='$libname.dll.a'
16537 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16538 postinstall_cmds='base_file=`basename \${file}`~
16539 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16540 dldir=$destdir/`dirname \$dlpath`~
16541 test -d \$dldir || mkdir -p \$dldir~
16542 $install_prog $dir/$dlname \$dldir/$dlname'
16543 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16544 dlpath=$dir/\$dldll~
16545 $rm \$dlpath'
16546 shlibpath_overrides_runpath=yes
16547
16548 case $host_os in
16549 cygwin*)
16550 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16551 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16552 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16553 ;;
16554 mingw*)
16555 # MinGW DLLs use traditional 'lib' prefix
16556 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16557 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16558 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16559 # It is most probably a Windows format PATH printed by
16560 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16561 # path with ; separators, and with drive letters. We can handle the
16562 # drive letters (cygwin fileutils understands them), so leave them,
16563 # especially as we might pass files found there to a mingw objdump,
16564 # which wouldn't understand a cygwinified path. Ahh.
16565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16566 else
16567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16568 fi
16569 ;;
16570 pw32*)
16571 # pw32 DLLs use 'pw' prefix rather than 'lib'
16572 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16573 ;;
16574 esac
16575 ;;
16576
16577 *)
16578 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16579 ;;
16580 esac
16581 dynamic_linker='Win32 ld.exe'
16582 # FIXME: first we should search . and the directory the executable is in
16583 shlibpath_var=PATH
16584 ;;
16585
16586darwin* | rhapsody*)
16587 dynamic_linker="$host_os dyld"
16588 version_type=darwin
16589 need_lib_prefix=no
16590 need_version=no
16591 # FIXME: Relying on posixy $() will cause problems for
16592 # cross-compilation, but unfortunately the echo tests do not
16593 # yet detect zsh echo's removal of \ escapes.
16594 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16595 soname_spec='${libname}${release}${major}$shared_ext'
16596 shlibpath_overrides_runpath=yes
16597 shlibpath_var=DYLD_LIBRARY_PATH
16598 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16599 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16600 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16601 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"`
16602 fi
16603 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16604 ;;
16605
16606dgux*)
16607 version_type=linux
16608 need_lib_prefix=no
16609 need_version=no
16610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16611 soname_spec='${libname}${release}${shared_ext}$major'
16612 shlibpath_var=LD_LIBRARY_PATH
16613 ;;
16614
16615freebsd1*)
16616 dynamic_linker=no
16617 ;;
16618
16619freebsd*)
16620 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16621 version_type=freebsd-$objformat
16622 case $version_type in
16623 freebsd-elf*)
16624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16625 need_version=no
16626 need_lib_prefix=no
16627 ;;
16628 freebsd-*)
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16630 need_version=yes
16631 ;;
16632 esac
16633 shlibpath_var=LD_LIBRARY_PATH
16634 case $host_os in
16635 freebsd2*)
16636 shlibpath_overrides_runpath=yes
16637 ;;
16638 freebsd3.01* | freebsdelf3.01*)
16639 shlibpath_overrides_runpath=yes
16640 hardcode_into_libs=yes
16641 ;;
16642 *) # from 3.2 on
16643 shlibpath_overrides_runpath=no
16644 hardcode_into_libs=yes
16645 ;;
16646 esac
16647 ;;
16648
16649gnu*)
16650 version_type=linux
16651 need_lib_prefix=no
16652 need_version=no
16653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16654 soname_spec='${libname}${release}${shared_ext}$major'
16655 shlibpath_var=LD_LIBRARY_PATH
16656 hardcode_into_libs=yes
16657 ;;
16658
16659hpux9* | hpux10* | hpux11*)
16660 # Give a soname corresponding to the major version so that dld.sl refuses to
16661 # link against other versions.
16662 version_type=sunos
16663 need_lib_prefix=no
16664 need_version=no
16665 case "$host_cpu" in
16666 ia64*)
16667 shrext='.so'
16668 hardcode_into_libs=yes
16669 dynamic_linker="$host_os dld.so"
16670 shlibpath_var=LD_LIBRARY_PATH
16671 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673 soname_spec='${libname}${release}${shared_ext}$major'
16674 if test "X$HPUX_IA64_MODE" = X32; then
16675 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16676 else
16677 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16678 fi
16679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16680 ;;
16681 hppa*64*)
16682 shrext='.sl'
16683 hardcode_into_libs=yes
16684 dynamic_linker="$host_os dld.sl"
16685 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16688 soname_spec='${libname}${release}${shared_ext}$major'
16689 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16690 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16691 ;;
16692 *)
16693 shrext='.sl'
16694 dynamic_linker="$host_os dld.sl"
16695 shlibpath_var=SHLIB_PATH
16696 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16698 soname_spec='${libname}${release}${shared_ext}$major'
16699 ;;
16700 esac
16701 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16702 postinstall_cmds='chmod 555 $lib'
16703 ;;
16704
16705irix5* | irix6* | nonstopux*)
16706 case $host_os in
16707 nonstopux*) version_type=nonstopux ;;
16708 *)
16709 if test "$lt_cv_prog_gnu_ld" = yes; then
16710 version_type=linux
16711 else
16712 version_type=irix
16713 fi ;;
16714 esac
16715 need_lib_prefix=no
16716 need_version=no
16717 soname_spec='${libname}${release}${shared_ext}$major'
16718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16719 case $host_os in
16720 irix5* | nonstopux*)
16721 libsuff= shlibsuff=
16722 ;;
16723 *)
16724 case $LD in # libtool.m4 will add one of these switches to LD
16725 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16726 libsuff= shlibsuff= libmagic=32-bit;;
16727 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16728 libsuff=32 shlibsuff=N32 libmagic=N32;;
16729 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16730 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16731 *) libsuff= shlibsuff= libmagic=never-match;;
16732 esac
16733 ;;
16734 esac
16735 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16736 shlibpath_overrides_runpath=no
16737 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16738 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16739 hardcode_into_libs=yes
16740 ;;
16741
16742# No shared lib support for Linux oldld, aout, or coff.
16743linux*oldld* | linux*aout* | linux*coff*)
16744 dynamic_linker=no
16745 ;;
16746
16747# This must be Linux ELF.
16748linux*)
16749 version_type=linux
16750 need_lib_prefix=no
16751 need_version=no
16752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16753 soname_spec='${libname}${release}${shared_ext}$major'
16754 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16755 shlibpath_var=LD_LIBRARY_PATH
16756 shlibpath_overrides_runpath=no
16757 # This implies no fast_install, which is unacceptable.
16758 # Some rework will be needed to allow for fast_install
16759 # before this can be enabled.
16760 hardcode_into_libs=yes
16761
16762 # We used to test for /lib/ld.so.1 and disable shared libraries on
16763 # powerpc, because MkLinux only supported shared libraries with the
16764 # GNU dynamic linker. Since this was broken with cross compilers,
16765 # most powerpc-linux boxes support dynamic linking these days and
16766 # people can always --disable-shared, the test was removed, and we
16767 # assume the GNU/Linux dynamic linker is in use.
16768 dynamic_linker='GNU/Linux ld.so'
16769 ;;
16770
16771netbsd*)
16772 version_type=sunos
16773 need_lib_prefix=no
16774 need_version=no
16775 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16777 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16778 dynamic_linker='NetBSD (a.out) ld.so'
16779 else
16780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16781 soname_spec='${libname}${release}${shared_ext}$major'
16782 dynamic_linker='NetBSD ld.elf_so'
16783 fi
16784 shlibpath_var=LD_LIBRARY_PATH
16785 shlibpath_overrides_runpath=yes
16786 hardcode_into_libs=yes
16787 ;;
16788
16789newsos6)
16790 version_type=linux
16791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16792 shlibpath_var=LD_LIBRARY_PATH
16793 shlibpath_overrides_runpath=yes
16794 ;;
16795
16796nto-qnx)
16797 version_type=linux
16798 need_lib_prefix=no
16799 need_version=no
16800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16801 soname_spec='${libname}${release}${shared_ext}$major'
16802 shlibpath_var=LD_LIBRARY_PATH
16803 shlibpath_overrides_runpath=yes
16804 ;;
16805
16806openbsd*)
16807 version_type=sunos
16808 need_lib_prefix=no
16809 need_version=no
16810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16811 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16812 shlibpath_var=LD_LIBRARY_PATH
16813 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16814 case $host_os in
16815 openbsd2.[89] | openbsd2.[89].*)
16816 shlibpath_overrides_runpath=no
16817 ;;
16818 *)
16819 shlibpath_overrides_runpath=yes
16820 ;;
16821 esac
16822 else
16823 shlibpath_overrides_runpath=yes
16824 fi
16825 ;;
16826
16827os2*)
16828 libname_spec='$name'
16829 shrext=".dll"
16830 need_lib_prefix=no
16831 library_names_spec='$libname${shared_ext} $libname.a'
16832 dynamic_linker='OS/2 ld.exe'
16833 shlibpath_var=LIBPATH
16834 ;;
16835
16836osf3* | osf4* | osf5*)
16837 version_type=osf
16838 need_lib_prefix=no
16839 need_version=no
16840 soname_spec='${libname}${release}${shared_ext}$major'
16841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16842 shlibpath_var=LD_LIBRARY_PATH
16843 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16844 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16845 ;;
16846
16847sco3.2v5*)
16848 version_type=osf
16849 soname_spec='${libname}${release}${shared_ext}$major'
16850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16851 shlibpath_var=LD_LIBRARY_PATH
16852 ;;
16853
16854solaris*)
16855 version_type=linux
16856 need_lib_prefix=no
16857 need_version=no
16858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16859 soname_spec='${libname}${release}${shared_ext}$major'
16860 shlibpath_var=LD_LIBRARY_PATH
16861 shlibpath_overrides_runpath=yes
16862 hardcode_into_libs=yes
16863 # ldd complains unless libraries are executable
16864 postinstall_cmds='chmod +x $lib'
16865 ;;
16866
16867sunos4*)
16868 version_type=sunos
16869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16870 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16871 shlibpath_var=LD_LIBRARY_PATH
16872 shlibpath_overrides_runpath=yes
16873 if test "$with_gnu_ld" = yes; then
16874 need_lib_prefix=no
16875 fi
16876 need_version=yes
16877 ;;
16878
16879sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16880 version_type=linux
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882 soname_spec='${libname}${release}${shared_ext}$major'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 case $host_vendor in
16885 sni)
16886 shlibpath_overrides_runpath=no
16887 need_lib_prefix=no
16888 export_dynamic_flag_spec='${wl}-Blargedynsym'
16889 runpath_var=LD_RUN_PATH
16890 ;;
16891 siemens)
16892 need_lib_prefix=no
16893 ;;
16894 motorola)
16895 need_lib_prefix=no
16896 need_version=no
16897 shlibpath_overrides_runpath=no
16898 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16899 ;;
16900 esac
16901 ;;
16902
16903sysv4*MP*)
16904 if test -d /usr/nec ;then
16905 version_type=linux
16906 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16907 soname_spec='$libname${shared_ext}.$major'
16908 shlibpath_var=LD_LIBRARY_PATH
16909 fi
16910 ;;
16911
16912uts4*)
16913 version_type=linux
16914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16915 soname_spec='${libname}${release}${shared_ext}$major'
16916 shlibpath_var=LD_LIBRARY_PATH
16917 ;;
16918
16919*)
16920 dynamic_linker=no
16921 ;;
16922esac
16923echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16924echo "${ECHO_T}$dynamic_linker" >&6
16925test "$dynamic_linker" = no && can_build_shared=no
16926
16927if test "x$enable_dlopen" != xyes; then
16928 enable_dlopen=unknown
16929 enable_dlopen_self=unknown
16930 enable_dlopen_self_static=unknown
16931else
16932 lt_cv_dlopen=no
16933 lt_cv_dlopen_libs=
16934
16935 case $host_os in
16936 beos*)
16937 lt_cv_dlopen="load_add_on"
16938 lt_cv_dlopen_libs=
16939 lt_cv_dlopen_self=yes
16940 ;;
16941
16942 mingw* | pw32*)
16943 lt_cv_dlopen="LoadLibrary"
16944 lt_cv_dlopen_libs=
16945 ;;
16946
16947 cygwin*)
16948 lt_cv_dlopen="dlopen"
16949 lt_cv_dlopen_libs=
16950 ;;
16951
16952 darwin*)
16953 # if libdl is installed we need to link against it
16954 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16955echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16956if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16957 echo $ECHO_N "(cached) $ECHO_C" >&6
16958else
16959 ac_check_lib_save_LIBS=$LIBS
16960LIBS="-ldl $LIBS"
16961cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016962/* confdefs.h. */
16963_ACEOF
16964cat confdefs.h >>conftest.$ac_ext
16965cat >>conftest.$ac_ext <<_ACEOF
16966/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016967
16968/* Override any gcc2 internal prototype to avoid an error. */
16969#ifdef __cplusplus
16970extern "C"
16971#endif
16972/* We use char because int might match the return type of a gcc2
16973 builtin and then its argument prototype would still apply. */
16974char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016975int
16976main ()
16977{
16978dlopen ();
16979 ;
16980 return 0;
16981}
16982_ACEOF
16983rm -f conftest.$ac_objext conftest$ac_exeext
16984if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000016985 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016986 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000016987 grep -v '^ *+' conftest.er1 >conftest.err
16988 rm -f conftest.er1
16989 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16991 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000016992 { ac_try='test -z "$ac_c_werror_flag"
16993 || test ! -s conftest.err'
16994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16995 (eval $ac_try) 2>&5
16996 ac_status=$?
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); }; } &&
16999 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17001 (eval $ac_try) 2>&5
17002 ac_status=$?
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; }; then
17005 ac_cv_lib_dl_dlopen=yes
17006else
17007 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017008sed 's/^/| /' conftest.$ac_ext >&5
17009
John Criswell47fdd832003-07-14 16:52:07 +000017010ac_cv_lib_dl_dlopen=no
17011fi
Reid Spencer17041682004-09-05 17:48:32 +000017012rm -f conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017014LIBS=$ac_check_lib_save_LIBS
17015fi
17016echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17017echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17018if test $ac_cv_lib_dl_dlopen = yes; then
17019 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17020else
17021
17022 lt_cv_dlopen="dyld"
17023 lt_cv_dlopen_libs=
17024 lt_cv_dlopen_self=yes
17025
17026fi
17027
17028 ;;
17029
17030 *)
17031 echo "$as_me:$LINENO: checking for shl_load" >&5
17032echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17033if test "${ac_cv_func_shl_load+set}" = set; then
17034 echo $ECHO_N "(cached) $ECHO_C" >&6
17035else
17036 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017037/* confdefs.h. */
17038_ACEOF
17039cat confdefs.h >>conftest.$ac_ext
17040cat >>conftest.$ac_ext <<_ACEOF
17041/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000017042/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17044#define shl_load innocuous_shl_load
17045
John Criswell47fdd832003-07-14 16:52:07 +000017046/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017047 which can conflict with char shl_load (); below.
17048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17049 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000017050
John Criswell0c38eaf2003-09-10 15:17:25 +000017051#ifdef __STDC__
17052# include <limits.h>
17053#else
17054# include <assert.h>
17055#endif
Reid Spencer17041682004-09-05 17:48:32 +000017056
17057#undef shl_load
17058
John Criswell47fdd832003-07-14 16:52:07 +000017059/* Override any gcc2 internal prototype to avoid an error. */
17060#ifdef __cplusplus
17061extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017062{
John Criswell47fdd832003-07-14 16:52:07 +000017063#endif
17064/* We use char because int might match the return type of a gcc2
17065 builtin and then its argument prototype would still apply. */
17066char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017067/* The GNU C library defines this for functions which it implements
17068 to always fail with ENOSYS. Some functions are actually named
17069 something starting with __ and the normal name is an alias. */
17070#if defined (__stub_shl_load) || defined (__stub___shl_load)
17071choke me
17072#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017073char (*f) () = shl_load;
17074#endif
17075#ifdef __cplusplus
17076}
John Criswell47fdd832003-07-14 16:52:07 +000017077#endif
17078
John Criswell0c38eaf2003-09-10 15:17:25 +000017079int
17080main ()
17081{
17082return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017083 ;
17084 return 0;
17085}
17086_ACEOF
17087rm -f conftest.$ac_objext conftest$ac_exeext
17088if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017089 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017090 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017091 grep -v '^ *+' conftest.er1 >conftest.err
17092 rm -f conftest.er1
17093 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017096 { ac_try='test -z "$ac_c_werror_flag"
17097 || test ! -s conftest.err'
17098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17099 (eval $ac_try) 2>&5
17100 ac_status=$?
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); }; } &&
17103 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17105 (eval $ac_try) 2>&5
17106 ac_status=$?
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109 ac_cv_func_shl_load=yes
17110else
17111 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017112sed 's/^/| /' conftest.$ac_ext >&5
17113
John Criswell47fdd832003-07-14 16:52:07 +000017114ac_cv_func_shl_load=no
17115fi
Reid Spencer17041682004-09-05 17:48:32 +000017116rm -f conftest.err conftest.$ac_objext \
17117 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017118fi
17119echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17120echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17121if test $ac_cv_func_shl_load = yes; then
17122 lt_cv_dlopen="shl_load"
17123else
17124 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17125echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17126if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17128else
17129 ac_check_lib_save_LIBS=$LIBS
17130LIBS="-ldld $LIBS"
17131cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017132/* confdefs.h. */
17133_ACEOF
17134cat confdefs.h >>conftest.$ac_ext
17135cat >>conftest.$ac_ext <<_ACEOF
17136/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017137
17138/* Override any gcc2 internal prototype to avoid an error. */
17139#ifdef __cplusplus
17140extern "C"
17141#endif
17142/* We use char because int might match the return type of a gcc2
17143 builtin and then its argument prototype would still apply. */
17144char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017145int
17146main ()
17147{
17148shl_load ();
17149 ;
17150 return 0;
17151}
17152_ACEOF
17153rm -f conftest.$ac_objext conftest$ac_exeext
17154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017155 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017156 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017157 grep -v '^ *+' conftest.er1 >conftest.err
17158 rm -f conftest.er1
17159 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017162 { ac_try='test -z "$ac_c_werror_flag"
17163 || test ! -s conftest.err'
17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17165 (eval $ac_try) 2>&5
17166 ac_status=$?
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); }; } &&
17169 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17171 (eval $ac_try) 2>&5
17172 ac_status=$?
17173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17174 (exit $ac_status); }; }; then
17175 ac_cv_lib_dld_shl_load=yes
17176else
17177 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017178sed 's/^/| /' conftest.$ac_ext >&5
17179
John Criswell47fdd832003-07-14 16:52:07 +000017180ac_cv_lib_dld_shl_load=no
17181fi
Reid Spencer17041682004-09-05 17:48:32 +000017182rm -f conftest.err conftest.$ac_objext \
17183 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017184LIBS=$ac_check_lib_save_LIBS
17185fi
17186echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17187echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17188if test $ac_cv_lib_dld_shl_load = yes; then
17189 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17190else
17191 echo "$as_me:$LINENO: checking for dlopen" >&5
17192echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17193if test "${ac_cv_func_dlopen+set}" = set; then
17194 echo $ECHO_N "(cached) $ECHO_C" >&6
17195else
17196 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017197/* confdefs.h. */
17198_ACEOF
17199cat confdefs.h >>conftest.$ac_ext
17200cat >>conftest.$ac_ext <<_ACEOF
17201/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000017202/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17204#define dlopen innocuous_dlopen
17205
John Criswell47fdd832003-07-14 16:52:07 +000017206/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017207 which can conflict with char dlopen (); below.
17208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17209 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000017210
John Criswell0c38eaf2003-09-10 15:17:25 +000017211#ifdef __STDC__
17212# include <limits.h>
17213#else
17214# include <assert.h>
17215#endif
Reid Spencer17041682004-09-05 17:48:32 +000017216
17217#undef dlopen
17218
John Criswell47fdd832003-07-14 16:52:07 +000017219/* Override any gcc2 internal prototype to avoid an error. */
17220#ifdef __cplusplus
17221extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017222{
John Criswell47fdd832003-07-14 16:52:07 +000017223#endif
17224/* We use char because int might match the return type of a gcc2
17225 builtin and then its argument prototype would still apply. */
17226char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017227/* The GNU C library defines this for functions which it implements
17228 to always fail with ENOSYS. Some functions are actually named
17229 something starting with __ and the normal name is an alias. */
17230#if defined (__stub_dlopen) || defined (__stub___dlopen)
17231choke me
17232#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017233char (*f) () = dlopen;
17234#endif
17235#ifdef __cplusplus
17236}
John Criswell47fdd832003-07-14 16:52:07 +000017237#endif
17238
John Criswell0c38eaf2003-09-10 15:17:25 +000017239int
17240main ()
17241{
17242return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017243 ;
17244 return 0;
17245}
17246_ACEOF
17247rm -f conftest.$ac_objext conftest$ac_exeext
17248if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017249 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017250 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017251 grep -v '^ *+' conftest.er1 >conftest.err
17252 rm -f conftest.er1
17253 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17255 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017256 { ac_try='test -z "$ac_c_werror_flag"
17257 || test ! -s conftest.err'
17258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17259 (eval $ac_try) 2>&5
17260 ac_status=$?
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; } &&
17263 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17265 (eval $ac_try) 2>&5
17266 ac_status=$?
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 ac_cv_func_dlopen=yes
17270else
17271 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017272sed 's/^/| /' conftest.$ac_ext >&5
17273
John Criswell47fdd832003-07-14 16:52:07 +000017274ac_cv_func_dlopen=no
17275fi
Reid Spencer17041682004-09-05 17:48:32 +000017276rm -f conftest.err conftest.$ac_objext \
17277 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017278fi
17279echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17280echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17281if test $ac_cv_func_dlopen = yes; then
17282 lt_cv_dlopen="dlopen"
17283else
17284 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17285echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17286if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17287 echo $ECHO_N "(cached) $ECHO_C" >&6
17288else
17289 ac_check_lib_save_LIBS=$LIBS
17290LIBS="-ldl $LIBS"
17291cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017292/* confdefs.h. */
17293_ACEOF
17294cat confdefs.h >>conftest.$ac_ext
17295cat >>conftest.$ac_ext <<_ACEOF
17296/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017297
17298/* Override any gcc2 internal prototype to avoid an error. */
17299#ifdef __cplusplus
17300extern "C"
17301#endif
17302/* We use char because int might match the return type of a gcc2
17303 builtin and then its argument prototype would still apply. */
17304char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017305int
17306main ()
17307{
17308dlopen ();
17309 ;
17310 return 0;
17311}
17312_ACEOF
17313rm -f conftest.$ac_objext conftest$ac_exeext
17314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017315 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017316 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017317 grep -v '^ *+' conftest.er1 >conftest.err
17318 rm -f conftest.er1
17319 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17321 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017322 { ac_try='test -z "$ac_c_werror_flag"
17323 || test ! -s conftest.err'
17324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17325 (eval $ac_try) 2>&5
17326 ac_status=$?
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); }; } &&
17329 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17331 (eval $ac_try) 2>&5
17332 ac_status=$?
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); }; }; then
17335 ac_cv_lib_dl_dlopen=yes
17336else
17337 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017338sed 's/^/| /' conftest.$ac_ext >&5
17339
John Criswell47fdd832003-07-14 16:52:07 +000017340ac_cv_lib_dl_dlopen=no
17341fi
Reid Spencer17041682004-09-05 17:48:32 +000017342rm -f conftest.err conftest.$ac_objext \
17343 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017344LIBS=$ac_check_lib_save_LIBS
17345fi
17346echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17347echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17348if test $ac_cv_lib_dl_dlopen = yes; then
17349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17350else
17351 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17352echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17353if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17354 echo $ECHO_N "(cached) $ECHO_C" >&6
17355else
17356 ac_check_lib_save_LIBS=$LIBS
17357LIBS="-lsvld $LIBS"
17358cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017359/* confdefs.h. */
17360_ACEOF
17361cat confdefs.h >>conftest.$ac_ext
17362cat >>conftest.$ac_ext <<_ACEOF
17363/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017364
17365/* Override any gcc2 internal prototype to avoid an error. */
17366#ifdef __cplusplus
17367extern "C"
17368#endif
17369/* We use char because int might match the return type of a gcc2
17370 builtin and then its argument prototype would still apply. */
17371char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017372int
17373main ()
17374{
17375dlopen ();
17376 ;
17377 return 0;
17378}
17379_ACEOF
17380rm -f conftest.$ac_objext conftest$ac_exeext
17381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017382 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017383 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017384 grep -v '^ *+' conftest.er1 >conftest.err
17385 rm -f conftest.er1
17386 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017389 { ac_try='test -z "$ac_c_werror_flag"
17390 || test ! -s conftest.err'
17391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17392 (eval $ac_try) 2>&5
17393 ac_status=$?
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); }; } &&
17396 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17398 (eval $ac_try) 2>&5
17399 ac_status=$?
17400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17401 (exit $ac_status); }; }; then
17402 ac_cv_lib_svld_dlopen=yes
17403else
17404 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017405sed 's/^/| /' conftest.$ac_ext >&5
17406
John Criswell47fdd832003-07-14 16:52:07 +000017407ac_cv_lib_svld_dlopen=no
17408fi
Reid Spencer17041682004-09-05 17:48:32 +000017409rm -f conftest.err conftest.$ac_objext \
17410 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017411LIBS=$ac_check_lib_save_LIBS
17412fi
17413echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17414echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17415if test $ac_cv_lib_svld_dlopen = yes; then
17416 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17417else
17418 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17419echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17420if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17421 echo $ECHO_N "(cached) $ECHO_C" >&6
17422else
17423 ac_check_lib_save_LIBS=$LIBS
17424LIBS="-ldld $LIBS"
17425cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017426/* confdefs.h. */
17427_ACEOF
17428cat confdefs.h >>conftest.$ac_ext
17429cat >>conftest.$ac_ext <<_ACEOF
17430/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017431
17432/* Override any gcc2 internal prototype to avoid an error. */
17433#ifdef __cplusplus
17434extern "C"
17435#endif
17436/* We use char because int might match the return type of a gcc2
17437 builtin and then its argument prototype would still apply. */
17438char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017439int
17440main ()
17441{
17442dld_link ();
17443 ;
17444 return 0;
17445}
17446_ACEOF
17447rm -f conftest.$ac_objext conftest$ac_exeext
17448if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017449 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017450 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017451 grep -v '^ *+' conftest.er1 >conftest.err
17452 rm -f conftest.er1
17453 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017456 { ac_try='test -z "$ac_c_werror_flag"
17457 || test ! -s conftest.err'
17458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17459 (eval $ac_try) 2>&5
17460 ac_status=$?
17461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); }; } &&
17463 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17465 (eval $ac_try) 2>&5
17466 ac_status=$?
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); }; }; then
17469 ac_cv_lib_dld_dld_link=yes
17470else
17471 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017472sed 's/^/| /' conftest.$ac_ext >&5
17473
John Criswell47fdd832003-07-14 16:52:07 +000017474ac_cv_lib_dld_dld_link=no
17475fi
Reid Spencer17041682004-09-05 17:48:32 +000017476rm -f conftest.err conftest.$ac_objext \
17477 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017478LIBS=$ac_check_lib_save_LIBS
17479fi
17480echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17481echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17482if test $ac_cv_lib_dld_dld_link = yes; then
17483 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17484fi
17485
17486
17487fi
17488
17489
17490fi
17491
17492
17493fi
17494
17495
17496fi
17497
17498
17499fi
17500
17501 ;;
17502 esac
17503
17504 if test "x$lt_cv_dlopen" != xno; then
17505 enable_dlopen=yes
17506 else
17507 enable_dlopen=no
17508 fi
17509
17510 case $lt_cv_dlopen in
17511 dlopen)
17512 save_CPPFLAGS="$CPPFLAGS"
17513 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17514
17515 save_LDFLAGS="$LDFLAGS"
17516 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17517
17518 save_LIBS="$LIBS"
17519 LIBS="$lt_cv_dlopen_libs $LIBS"
17520
17521 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17522echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17523if test "${lt_cv_dlopen_self+set}" = set; then
17524 echo $ECHO_N "(cached) $ECHO_C" >&6
17525else
17526 if test "$cross_compiling" = yes; then :
17527 lt_cv_dlopen_self=cross
17528else
17529 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17530 lt_status=$lt_dlunknown
17531 cat > conftest.$ac_ext <<EOF
Reid Spencer4d68ba22004-09-07 16:35:45 +000017532#line 17532 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017533#include "confdefs.h"
17534
17535#if HAVE_DLFCN_H
17536#include <dlfcn.h>
17537#endif
17538
17539#include <stdio.h>
17540
17541#ifdef RTLD_GLOBAL
17542# define LT_DLGLOBAL RTLD_GLOBAL
17543#else
17544# ifdef DL_GLOBAL
17545# define LT_DLGLOBAL DL_GLOBAL
17546# else
17547# define LT_DLGLOBAL 0
17548# endif
17549#endif
17550
17551/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17552 find out it does not work in some platform. */
17553#ifndef LT_DLLAZY_OR_NOW
17554# ifdef RTLD_LAZY
17555# define LT_DLLAZY_OR_NOW RTLD_LAZY
17556# else
17557# ifdef DL_LAZY
17558# define LT_DLLAZY_OR_NOW DL_LAZY
17559# else
17560# ifdef RTLD_NOW
17561# define LT_DLLAZY_OR_NOW RTLD_NOW
17562# else
17563# ifdef DL_NOW
17564# define LT_DLLAZY_OR_NOW DL_NOW
17565# else
17566# define LT_DLLAZY_OR_NOW 0
17567# endif
17568# endif
17569# endif
17570# endif
17571#endif
17572
17573#ifdef __cplusplus
17574extern "C" void exit (int);
17575#endif
17576
17577void fnord() { int i=42;}
17578int main ()
17579{
17580 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17581 int status = $lt_dlunknown;
17582
17583 if (self)
17584 {
17585 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17586 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17587 /* dlclose (self); */
17588 }
17589
17590 exit (status);
17591}
17592EOF
17593 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17594 (eval $ac_link) 2>&5
17595 ac_status=$?
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17598 (./conftest; exit; ) 2>/dev/null
17599 lt_status=$?
17600 case x$lt_status in
17601 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17602 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17603 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17604 esac
17605 else :
17606 # compilation failed
17607 lt_cv_dlopen_self=no
17608 fi
17609fi
17610rm -fr conftest*
17611
17612
17613fi
17614echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17615echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17616
17617 if test "x$lt_cv_dlopen_self" = xyes; then
17618 LDFLAGS="$LDFLAGS $link_static_flag"
17619 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17620echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17621if test "${lt_cv_dlopen_self_static+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17623else
17624 if test "$cross_compiling" = yes; then :
17625 lt_cv_dlopen_self_static=cross
17626else
17627 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17628 lt_status=$lt_dlunknown
17629 cat > conftest.$ac_ext <<EOF
Reid Spencer4d68ba22004-09-07 16:35:45 +000017630#line 17630 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017631#include "confdefs.h"
17632
17633#if HAVE_DLFCN_H
17634#include <dlfcn.h>
17635#endif
17636
17637#include <stdio.h>
17638
17639#ifdef RTLD_GLOBAL
17640# define LT_DLGLOBAL RTLD_GLOBAL
17641#else
17642# ifdef DL_GLOBAL
17643# define LT_DLGLOBAL DL_GLOBAL
17644# else
17645# define LT_DLGLOBAL 0
17646# endif
17647#endif
17648
17649/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17650 find out it does not work in some platform. */
17651#ifndef LT_DLLAZY_OR_NOW
17652# ifdef RTLD_LAZY
17653# define LT_DLLAZY_OR_NOW RTLD_LAZY
17654# else
17655# ifdef DL_LAZY
17656# define LT_DLLAZY_OR_NOW DL_LAZY
17657# else
17658# ifdef RTLD_NOW
17659# define LT_DLLAZY_OR_NOW RTLD_NOW
17660# else
17661# ifdef DL_NOW
17662# define LT_DLLAZY_OR_NOW DL_NOW
17663# else
17664# define LT_DLLAZY_OR_NOW 0
17665# endif
17666# endif
17667# endif
17668# endif
17669#endif
17670
17671#ifdef __cplusplus
17672extern "C" void exit (int);
17673#endif
17674
17675void fnord() { int i=42;}
17676int main ()
17677{
17678 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17679 int status = $lt_dlunknown;
17680
17681 if (self)
17682 {
17683 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17684 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17685 /* dlclose (self); */
17686 }
17687
17688 exit (status);
17689}
17690EOF
17691 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17692 (eval $ac_link) 2>&5
17693 ac_status=$?
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17696 (./conftest; exit; ) 2>/dev/null
17697 lt_status=$?
17698 case x$lt_status in
17699 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17700 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17701 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17702 esac
17703 else :
17704 # compilation failed
17705 lt_cv_dlopen_self_static=no
17706 fi
17707fi
17708rm -fr conftest*
17709
17710
17711fi
17712echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17713echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17714 fi
17715
17716 CPPFLAGS="$save_CPPFLAGS"
17717 LDFLAGS="$save_LDFLAGS"
17718 LIBS="$save_LIBS"
17719 ;;
17720 esac
17721
17722 case $lt_cv_dlopen_self in
17723 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17724 *) enable_dlopen_self=unknown ;;
17725 esac
17726
17727 case $lt_cv_dlopen_self_static in
17728 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17729 *) enable_dlopen_self_static=unknown ;;
17730 esac
17731fi
17732
17733
17734# The else clause should only fire when bootstrapping the
17735# libtool distribution, otherwise you forgot to ship ltmain.sh
17736# with your package, and you will get complaints that there are
17737# no rules to generate ltmain.sh.
17738if test -f "$ltmain"; then
17739 # See if we are running on zsh, and set the options which allow our commands through
17740 # without removal of \ escapes.
17741 if test -n "${ZSH_VERSION+set}" ; then
17742 setopt NO_GLOB_SUBST
17743 fi
17744 # Now quote all the things that may contain metacharacters while being
17745 # careful not to overquote the AC_SUBSTed values. We take copies of the
17746 # variables and quote the copies for generation of the libtool script.
17747 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17748 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17749 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17750 deplibs_check_method reload_flag reload_cmds need_locks \
17751 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17752 lt_cv_sys_global_symbol_to_c_name_address \
17753 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17754 old_postinstall_cmds old_postuninstall_cmds \
17755 compiler_GCJ \
17756 CC_GCJ \
17757 LD_GCJ \
17758 lt_prog_compiler_wl_GCJ \
17759 lt_prog_compiler_pic_GCJ \
17760 lt_prog_compiler_static_GCJ \
17761 lt_prog_compiler_no_builtin_flag_GCJ \
17762 export_dynamic_flag_spec_GCJ \
17763 thread_safe_flag_spec_GCJ \
17764 whole_archive_flag_spec_GCJ \
17765 enable_shared_with_static_runtimes_GCJ \
17766 old_archive_cmds_GCJ \
17767 old_archive_from_new_cmds_GCJ \
17768 predep_objects_GCJ \
17769 postdep_objects_GCJ \
17770 predeps_GCJ \
17771 postdeps_GCJ \
17772 compiler_lib_search_path_GCJ \
17773 archive_cmds_GCJ \
17774 archive_expsym_cmds_GCJ \
17775 postinstall_cmds_GCJ \
17776 postuninstall_cmds_GCJ \
17777 old_archive_from_expsyms_cmds_GCJ \
17778 allow_undefined_flag_GCJ \
17779 no_undefined_flag_GCJ \
17780 export_symbols_cmds_GCJ \
17781 hardcode_libdir_flag_spec_GCJ \
17782 hardcode_libdir_flag_spec_ld_GCJ \
17783 hardcode_libdir_separator_GCJ \
17784 hardcode_automatic_GCJ \
17785 module_cmds_GCJ \
17786 module_expsym_cmds_GCJ \
17787 lt_cv_prog_compiler_c_o_GCJ \
17788 exclude_expsyms_GCJ \
17789 include_expsyms_GCJ; do
17790
17791 case $var in
17792 old_archive_cmds_GCJ | \
17793 old_archive_from_new_cmds_GCJ | \
17794 archive_cmds_GCJ | \
17795 archive_expsym_cmds_GCJ | \
17796 module_cmds_GCJ | \
17797 module_expsym_cmds_GCJ | \
17798 old_archive_from_expsyms_cmds_GCJ | \
17799 export_symbols_cmds_GCJ | \
17800 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17801 postinstall_cmds | postuninstall_cmds | \
17802 old_postinstall_cmds | old_postuninstall_cmds | \
17803 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17804 # Double-quote double-evaled strings.
17805 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17806 ;;
17807 *)
17808 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17809 ;;
17810 esac
17811 done
17812
17813 case $lt_echo in
17814 *'\$0 --fallback-echo"')
17815 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17816 ;;
17817 esac
17818
17819cfgfile="$ofile"
17820
17821 cat <<__EOF__ >> "$cfgfile"
17822# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17823
17824# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17825
17826# Shell to use when invoking shell scripts.
17827SHELL=$lt_SHELL
17828
17829# Whether or not to build shared libraries.
17830build_libtool_libs=$enable_shared
17831
17832# Whether or not to build static libraries.
17833build_old_libs=$enable_static
17834
17835# Whether or not to add -lc for building shared libraries.
17836build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17837
17838# Whether or not to disallow shared libs when runtime libs are static
17839allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17840
17841# Whether or not to optimize for fast installation.
17842fast_install=$enable_fast_install
17843
17844# The host system.
17845host_alias=$host_alias
17846host=$host
17847
17848# An echo program that does not interpret backslashes.
17849echo=$lt_echo
17850
17851# The archiver.
17852AR=$lt_AR
17853AR_FLAGS=$lt_AR_FLAGS
17854
17855# A C compiler.
17856LTCC=$lt_LTCC
17857
17858# A language-specific compiler.
17859CC=$lt_compiler_GCJ
17860
17861# Is the compiler the GNU C compiler?
17862with_gcc=$GCC_GCJ
17863
17864# An ERE matcher.
17865EGREP=$lt_EGREP
17866
17867# The linker used to build libraries.
17868LD=$lt_LD_GCJ
17869
17870# Whether we need hard or soft links.
17871LN_S=$lt_LN_S
17872
17873# A BSD-compatible nm program.
17874NM=$lt_NM
17875
17876# A symbol stripping program
17877STRIP=$STRIP
17878
17879# Used to examine libraries when file_magic_cmd begins "file"
17880MAGIC_CMD=$MAGIC_CMD
17881
17882# Used on cygwin: DLL creation program.
17883DLLTOOL="$DLLTOOL"
17884
17885# Used on cygwin: object dumper.
17886OBJDUMP="$OBJDUMP"
17887
17888# Used on cygwin: assembler.
17889AS="$AS"
17890
17891# The name of the directory that contains temporary libtool files.
17892objdir=$objdir
17893
17894# How to create reloadable object files.
17895reload_flag=$lt_reload_flag
17896reload_cmds=$lt_reload_cmds
17897
17898# How to pass a linker flag through the compiler.
17899wl=$lt_lt_prog_compiler_wl_GCJ
17900
17901# Object file suffix (normally "o").
17902objext="$ac_objext"
17903
17904# Old archive suffix (normally "a").
17905libext="$libext"
17906
17907# Shared library suffix (normally ".so").
17908shrext='$shrext'
17909
17910# Executable file suffix (normally "").
17911exeext="$exeext"
17912
17913# Additional compiler flags for building library objects.
17914pic_flag=$lt_lt_prog_compiler_pic_GCJ
17915pic_mode=$pic_mode
17916
17917# What is the maximum length of a command?
17918max_cmd_len=$lt_cv_sys_max_cmd_len
17919
17920# Does compiler simultaneously support -c and -o options?
17921compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17922
17923# Must we lock files when doing compilation ?
17924need_locks=$lt_need_locks
17925
17926# Do we need the lib prefix for modules?
17927need_lib_prefix=$need_lib_prefix
17928
17929# Do we need a version for libraries?
17930need_version=$need_version
17931
17932# Whether dlopen is supported.
17933dlopen_support=$enable_dlopen
17934
17935# Whether dlopen of programs is supported.
17936dlopen_self=$enable_dlopen_self
17937
17938# Whether dlopen of statically linked programs is supported.
17939dlopen_self_static=$enable_dlopen_self_static
17940
17941# Compiler flag to prevent dynamic linking.
17942link_static_flag=$lt_lt_prog_compiler_static_GCJ
17943
17944# Compiler flag to turn off builtin functions.
17945no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17946
17947# Compiler flag to allow reflexive dlopens.
17948export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17949
17950# Compiler flag to generate shared objects directly from archives.
17951whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17952
17953# Compiler flag to generate thread-safe objects.
17954thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17955
17956# Library versioning type.
17957version_type=$version_type
17958
17959# Format of library name prefix.
17960libname_spec=$lt_libname_spec
17961
17962# List of archive names. First name is the real one, the rest are links.
17963# The last name is the one that the linker finds with -lNAME.
17964library_names_spec=$lt_library_names_spec
17965
17966# The coded name of the library, if different from the real name.
17967soname_spec=$lt_soname_spec
17968
17969# Commands used to build and install an old-style archive.
17970RANLIB=$lt_RANLIB
17971old_archive_cmds=$lt_old_archive_cmds_GCJ
17972old_postinstall_cmds=$lt_old_postinstall_cmds
17973old_postuninstall_cmds=$lt_old_postuninstall_cmds
17974
17975# Create an old-style archive from a shared archive.
17976old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17977
17978# Create a temporary old-style archive to link instead of a shared archive.
17979old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17980
17981# Commands used to build and install a shared archive.
17982archive_cmds=$lt_archive_cmds_GCJ
17983archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17984postinstall_cmds=$lt_postinstall_cmds
17985postuninstall_cmds=$lt_postuninstall_cmds
17986
17987# Commands used to build a loadable module (assumed same as above if empty)
17988module_cmds=$lt_module_cmds_GCJ
17989module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17990
17991# Commands to strip libraries.
17992old_striplib=$lt_old_striplib
17993striplib=$lt_striplib
17994
17995# Dependencies to place before the objects being linked to create a
17996# shared library.
17997predep_objects=$lt_predep_objects_GCJ
17998
17999# Dependencies to place after the objects being linked to create a
18000# shared library.
18001postdep_objects=$lt_postdep_objects_GCJ
18002
18003# Dependencies to place before the objects being linked to create a
18004# shared library.
18005predeps=$lt_predeps_GCJ
18006
18007# Dependencies to place after the objects being linked to create a
18008# shared library.
18009postdeps=$lt_postdeps_GCJ
18010
18011# The library search path used internally by the compiler when linking
18012# a shared library.
18013compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18014
18015# Method to check whether dependent libraries are shared objects.
18016deplibs_check_method=$lt_deplibs_check_method
18017
18018# Command to use when deplibs_check_method == file_magic.
18019file_magic_cmd=$lt_file_magic_cmd
18020
18021# Flag that allows shared libraries with undefined symbols to be built.
18022allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18023
18024# Flag that forces no undefined symbols.
18025no_undefined_flag=$lt_no_undefined_flag_GCJ
18026
18027# Commands used to finish a libtool library installation in a directory.
18028finish_cmds=$lt_finish_cmds
18029
18030# Same as above, but a single script fragment to be evaled but not shown.
18031finish_eval=$lt_finish_eval
18032
18033# Take the output of nm and produce a listing of raw symbols and C names.
18034global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18035
18036# Transform the output of nm in a proper C declaration
18037global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18038
18039# Transform the output of nm in a C name address pair
18040global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18041
18042# This is the shared library runtime path variable.
18043runpath_var=$runpath_var
18044
18045# This is the shared library path variable.
18046shlibpath_var=$shlibpath_var
18047
18048# Is shlibpath searched before the hard-coded library search path?
18049shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18050
18051# How to hardcode a shared library path into an executable.
18052hardcode_action=$hardcode_action_GCJ
18053
18054# Whether we should hardcode library paths into libraries.
18055hardcode_into_libs=$hardcode_into_libs
18056
18057# Flag to hardcode \$libdir into a binary during linking.
18058# This must work even if \$libdir does not exist.
18059hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18060
18061# If ld is used when linking, flag to hardcode \$libdir into
18062# a binary during linking. This must work even if \$libdir does
18063# not exist.
18064hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18065
18066# Whether we need a single -rpath flag with a separated argument.
18067hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18068
18069# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18070# resulting binary.
18071hardcode_direct=$hardcode_direct_GCJ
18072
18073# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18074# resulting binary.
18075hardcode_minus_L=$hardcode_minus_L_GCJ
18076
18077# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18078# the resulting binary.
18079hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18080
18081# Set to yes if building a shared library automatically hardcodes DIR into the library
18082# and all subsequent libraries and executables linked against it.
18083hardcode_automatic=$hardcode_automatic_GCJ
18084
18085# Variables whose values should be saved in libtool wrapper scripts and
18086# restored at relink time.
18087variables_saved_for_relink="$variables_saved_for_relink"
18088
18089# Whether libtool must link a program against all its dependency libraries.
18090link_all_deplibs=$link_all_deplibs_GCJ
18091
18092# Compile-time system search path for libraries
18093sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18094
18095# Run-time system search path for libraries
18096sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18097
18098# Fix the shell variable \$srcfile for the compiler.
18099fix_srcfile_path="$fix_srcfile_path_GCJ"
18100
18101# Set to yes if exported symbols are required.
18102always_export_symbols=$always_export_symbols_GCJ
18103
18104# The commands to list exported symbols.
18105export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18106
18107# The commands to extract the exported symbol list from a shared archive.
18108extract_expsyms_cmds=$lt_extract_expsyms_cmds
18109
18110# Symbols that should not be listed in the preloaded symbols.
18111exclude_expsyms=$lt_exclude_expsyms_GCJ
18112
18113# Symbols that must always be exported.
18114include_expsyms=$lt_include_expsyms_GCJ
18115
18116# ### END LIBTOOL TAG CONFIG: $tagname
18117
18118__EOF__
18119
18120
18121else
18122 # If there is no Makefile yet, we rely on a make rule to execute
18123 # `config.status --recheck' to rerun these tests and create the
18124 # libtool script then.
18125 test -f Makefile && make "$ltmain"
18126fi
18127
18128
18129ac_ext=c
18130ac_cpp='$CPP $CPPFLAGS'
18131ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18132ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18133ac_compiler_gnu=$ac_cv_c_compiler_gnu
18134
18135CC="$lt_save_CC"
18136
18137 else
18138 tagname=""
18139 fi
18140 ;;
18141
18142 RC)
18143
18144
18145
18146# Source file extension for RC test sources.
18147ac_ext=rc
18148
18149# Object file extension for compiled RC test sources.
18150objext=o
18151objext_RC=$objext
18152
18153# Code to be used in simple compile tests
18154lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18155
18156# Code to be used in simple link tests
18157lt_simple_link_test_code="$lt_simple_compile_test_code"
18158
18159# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18160
18161# If no C compiler was specified, use CC.
18162LTCC=${LTCC-"$CC"}
18163
18164# Allow CC to be a program name with arguments.
18165compiler=$CC
18166
18167
18168# Allow CC to be a program name with arguments.
18169lt_save_CC="$CC"
18170CC=${RC-"windres"}
18171compiler=$CC
18172compiler_RC=$CC
18173lt_cv_prog_compiler_c_o_RC=yes
18174
18175# The else clause should only fire when bootstrapping the
18176# libtool distribution, otherwise you forgot to ship ltmain.sh
18177# with your package, and you will get complaints that there are
18178# no rules to generate ltmain.sh.
18179if test -f "$ltmain"; then
18180 # See if we are running on zsh, and set the options which allow our commands through
18181 # without removal of \ escapes.
18182 if test -n "${ZSH_VERSION+set}" ; then
18183 setopt NO_GLOB_SUBST
18184 fi
18185 # Now quote all the things that may contain metacharacters while being
18186 # careful not to overquote the AC_SUBSTed values. We take copies of the
18187 # variables and quote the copies for generation of the libtool script.
18188 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18189 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18190 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18191 deplibs_check_method reload_flag reload_cmds need_locks \
18192 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18193 lt_cv_sys_global_symbol_to_c_name_address \
18194 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18195 old_postinstall_cmds old_postuninstall_cmds \
18196 compiler_RC \
18197 CC_RC \
18198 LD_RC \
18199 lt_prog_compiler_wl_RC \
18200 lt_prog_compiler_pic_RC \
18201 lt_prog_compiler_static_RC \
18202 lt_prog_compiler_no_builtin_flag_RC \
18203 export_dynamic_flag_spec_RC \
18204 thread_safe_flag_spec_RC \
18205 whole_archive_flag_spec_RC \
18206 enable_shared_with_static_runtimes_RC \
18207 old_archive_cmds_RC \
18208 old_archive_from_new_cmds_RC \
18209 predep_objects_RC \
18210 postdep_objects_RC \
18211 predeps_RC \
18212 postdeps_RC \
18213 compiler_lib_search_path_RC \
18214 archive_cmds_RC \
18215 archive_expsym_cmds_RC \
18216 postinstall_cmds_RC \
18217 postuninstall_cmds_RC \
18218 old_archive_from_expsyms_cmds_RC \
18219 allow_undefined_flag_RC \
18220 no_undefined_flag_RC \
18221 export_symbols_cmds_RC \
18222 hardcode_libdir_flag_spec_RC \
18223 hardcode_libdir_flag_spec_ld_RC \
18224 hardcode_libdir_separator_RC \
18225 hardcode_automatic_RC \
18226 module_cmds_RC \
18227 module_expsym_cmds_RC \
18228 lt_cv_prog_compiler_c_o_RC \
18229 exclude_expsyms_RC \
18230 include_expsyms_RC; do
18231
18232 case $var in
18233 old_archive_cmds_RC | \
18234 old_archive_from_new_cmds_RC | \
18235 archive_cmds_RC | \
18236 archive_expsym_cmds_RC | \
18237 module_cmds_RC | \
18238 module_expsym_cmds_RC | \
18239 old_archive_from_expsyms_cmds_RC | \
18240 export_symbols_cmds_RC | \
18241 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18242 postinstall_cmds | postuninstall_cmds | \
18243 old_postinstall_cmds | old_postuninstall_cmds | \
18244 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18245 # Double-quote double-evaled strings.
18246 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18247 ;;
18248 *)
18249 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18250 ;;
18251 esac
18252 done
18253
18254 case $lt_echo in
18255 *'\$0 --fallback-echo"')
18256 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18257 ;;
18258 esac
18259
18260cfgfile="$ofile"
18261
18262 cat <<__EOF__ >> "$cfgfile"
18263# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18264
18265# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18266
18267# Shell to use when invoking shell scripts.
18268SHELL=$lt_SHELL
18269
18270# Whether or not to build shared libraries.
18271build_libtool_libs=$enable_shared
18272
18273# Whether or not to build static libraries.
18274build_old_libs=$enable_static
18275
18276# Whether or not to add -lc for building shared libraries.
18277build_libtool_need_lc=$archive_cmds_need_lc_RC
18278
18279# Whether or not to disallow shared libs when runtime libs are static
18280allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18281
18282# Whether or not to optimize for fast installation.
18283fast_install=$enable_fast_install
18284
18285# The host system.
18286host_alias=$host_alias
18287host=$host
18288
18289# An echo program that does not interpret backslashes.
18290echo=$lt_echo
18291
18292# The archiver.
18293AR=$lt_AR
18294AR_FLAGS=$lt_AR_FLAGS
18295
18296# A C compiler.
18297LTCC=$lt_LTCC
18298
18299# A language-specific compiler.
18300CC=$lt_compiler_RC
18301
18302# Is the compiler the GNU C compiler?
18303with_gcc=$GCC_RC
18304
18305# An ERE matcher.
18306EGREP=$lt_EGREP
18307
18308# The linker used to build libraries.
18309LD=$lt_LD_RC
18310
18311# Whether we need hard or soft links.
18312LN_S=$lt_LN_S
18313
18314# A BSD-compatible nm program.
18315NM=$lt_NM
18316
18317# A symbol stripping program
18318STRIP=$STRIP
18319
18320# Used to examine libraries when file_magic_cmd begins "file"
18321MAGIC_CMD=$MAGIC_CMD
18322
18323# Used on cygwin: DLL creation program.
18324DLLTOOL="$DLLTOOL"
18325
18326# Used on cygwin: object dumper.
18327OBJDUMP="$OBJDUMP"
18328
18329# Used on cygwin: assembler.
18330AS="$AS"
18331
18332# The name of the directory that contains temporary libtool files.
18333objdir=$objdir
18334
18335# How to create reloadable object files.
18336reload_flag=$lt_reload_flag
18337reload_cmds=$lt_reload_cmds
18338
18339# How to pass a linker flag through the compiler.
18340wl=$lt_lt_prog_compiler_wl_RC
18341
18342# Object file suffix (normally "o").
18343objext="$ac_objext"
18344
18345# Old archive suffix (normally "a").
18346libext="$libext"
18347
18348# Shared library suffix (normally ".so").
18349shrext='$shrext'
18350
18351# Executable file suffix (normally "").
18352exeext="$exeext"
18353
18354# Additional compiler flags for building library objects.
18355pic_flag=$lt_lt_prog_compiler_pic_RC
18356pic_mode=$pic_mode
18357
18358# What is the maximum length of a command?
18359max_cmd_len=$lt_cv_sys_max_cmd_len
18360
18361# Does compiler simultaneously support -c and -o options?
18362compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18363
18364# Must we lock files when doing compilation ?
18365need_locks=$lt_need_locks
18366
18367# Do we need the lib prefix for modules?
18368need_lib_prefix=$need_lib_prefix
18369
18370# Do we need a version for libraries?
18371need_version=$need_version
18372
18373# Whether dlopen is supported.
18374dlopen_support=$enable_dlopen
18375
18376# Whether dlopen of programs is supported.
18377dlopen_self=$enable_dlopen_self
18378
18379# Whether dlopen of statically linked programs is supported.
18380dlopen_self_static=$enable_dlopen_self_static
18381
18382# Compiler flag to prevent dynamic linking.
18383link_static_flag=$lt_lt_prog_compiler_static_RC
18384
18385# Compiler flag to turn off builtin functions.
18386no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18387
18388# Compiler flag to allow reflexive dlopens.
18389export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18390
18391# Compiler flag to generate shared objects directly from archives.
18392whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18393
18394# Compiler flag to generate thread-safe objects.
18395thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18396
18397# Library versioning type.
18398version_type=$version_type
18399
18400# Format of library name prefix.
18401libname_spec=$lt_libname_spec
18402
18403# List of archive names. First name is the real one, the rest are links.
18404# The last name is the one that the linker finds with -lNAME.
18405library_names_spec=$lt_library_names_spec
18406
18407# The coded name of the library, if different from the real name.
18408soname_spec=$lt_soname_spec
18409
18410# Commands used to build and install an old-style archive.
18411RANLIB=$lt_RANLIB
18412old_archive_cmds=$lt_old_archive_cmds_RC
18413old_postinstall_cmds=$lt_old_postinstall_cmds
18414old_postuninstall_cmds=$lt_old_postuninstall_cmds
18415
18416# Create an old-style archive from a shared archive.
18417old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18418
18419# Create a temporary old-style archive to link instead of a shared archive.
18420old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18421
18422# Commands used to build and install a shared archive.
18423archive_cmds=$lt_archive_cmds_RC
18424archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18425postinstall_cmds=$lt_postinstall_cmds
18426postuninstall_cmds=$lt_postuninstall_cmds
18427
18428# Commands used to build a loadable module (assumed same as above if empty)
18429module_cmds=$lt_module_cmds_RC
18430module_expsym_cmds=$lt_module_expsym_cmds_RC
18431
18432# Commands to strip libraries.
18433old_striplib=$lt_old_striplib
18434striplib=$lt_striplib
18435
18436# Dependencies to place before the objects being linked to create a
18437# shared library.
18438predep_objects=$lt_predep_objects_RC
18439
18440# Dependencies to place after the objects being linked to create a
18441# shared library.
18442postdep_objects=$lt_postdep_objects_RC
18443
18444# Dependencies to place before the objects being linked to create a
18445# shared library.
18446predeps=$lt_predeps_RC
18447
18448# Dependencies to place after the objects being linked to create a
18449# shared library.
18450postdeps=$lt_postdeps_RC
18451
18452# The library search path used internally by the compiler when linking
18453# a shared library.
18454compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18455
18456# Method to check whether dependent libraries are shared objects.
18457deplibs_check_method=$lt_deplibs_check_method
18458
18459# Command to use when deplibs_check_method == file_magic.
18460file_magic_cmd=$lt_file_magic_cmd
18461
18462# Flag that allows shared libraries with undefined symbols to be built.
18463allow_undefined_flag=$lt_allow_undefined_flag_RC
18464
18465# Flag that forces no undefined symbols.
18466no_undefined_flag=$lt_no_undefined_flag_RC
18467
18468# Commands used to finish a libtool library installation in a directory.
18469finish_cmds=$lt_finish_cmds
18470
18471# Same as above, but a single script fragment to be evaled but not shown.
18472finish_eval=$lt_finish_eval
18473
18474# Take the output of nm and produce a listing of raw symbols and C names.
18475global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18476
18477# Transform the output of nm in a proper C declaration
18478global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18479
18480# Transform the output of nm in a C name address pair
18481global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18482
18483# This is the shared library runtime path variable.
18484runpath_var=$runpath_var
18485
18486# This is the shared library path variable.
18487shlibpath_var=$shlibpath_var
18488
18489# Is shlibpath searched before the hard-coded library search path?
18490shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18491
18492# How to hardcode a shared library path into an executable.
18493hardcode_action=$hardcode_action_RC
18494
18495# Whether we should hardcode library paths into libraries.
18496hardcode_into_libs=$hardcode_into_libs
18497
18498# Flag to hardcode \$libdir into a binary during linking.
18499# This must work even if \$libdir does not exist.
18500hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18501
18502# If ld is used when linking, flag to hardcode \$libdir into
18503# a binary during linking. This must work even if \$libdir does
18504# not exist.
18505hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18506
18507# Whether we need a single -rpath flag with a separated argument.
18508hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18509
18510# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18511# resulting binary.
18512hardcode_direct=$hardcode_direct_RC
18513
18514# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18515# resulting binary.
18516hardcode_minus_L=$hardcode_minus_L_RC
18517
18518# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18519# the resulting binary.
18520hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18521
18522# Set to yes if building a shared library automatically hardcodes DIR into the library
18523# and all subsequent libraries and executables linked against it.
18524hardcode_automatic=$hardcode_automatic_RC
18525
18526# Variables whose values should be saved in libtool wrapper scripts and
18527# restored at relink time.
18528variables_saved_for_relink="$variables_saved_for_relink"
18529
18530# Whether libtool must link a program against all its dependency libraries.
18531link_all_deplibs=$link_all_deplibs_RC
18532
18533# Compile-time system search path for libraries
18534sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18535
18536# Run-time system search path for libraries
18537sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18538
18539# Fix the shell variable \$srcfile for the compiler.
18540fix_srcfile_path="$fix_srcfile_path_RC"
18541
18542# Set to yes if exported symbols are required.
18543always_export_symbols=$always_export_symbols_RC
18544
18545# The commands to list exported symbols.
18546export_symbols_cmds=$lt_export_symbols_cmds_RC
18547
18548# The commands to extract the exported symbol list from a shared archive.
18549extract_expsyms_cmds=$lt_extract_expsyms_cmds
18550
18551# Symbols that should not be listed in the preloaded symbols.
18552exclude_expsyms=$lt_exclude_expsyms_RC
18553
18554# Symbols that must always be exported.
18555include_expsyms=$lt_include_expsyms_RC
18556
18557# ### END LIBTOOL TAG CONFIG: $tagname
18558
18559__EOF__
18560
18561
18562else
18563 # If there is no Makefile yet, we rely on a make rule to execute
18564 # `config.status --recheck' to rerun these tests and create the
18565 # libtool script then.
18566 test -f Makefile && make "$ltmain"
18567fi
18568
18569
18570ac_ext=c
18571ac_cpp='$CPP $CPPFLAGS'
18572ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18573ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18574ac_compiler_gnu=$ac_cv_c_compiler_gnu
18575
18576CC="$lt_save_CC"
18577
18578 ;;
18579
18580 *)
18581 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18582echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18583 { (exit 1); exit 1; }; }
18584 ;;
18585 esac
18586
18587 # Append the new tag name to the list of available tags.
18588 if test -n "$tagname" ; then
18589 available_tags="$available_tags $tagname"
18590 fi
18591 fi
18592 done
18593 IFS="$lt_save_ifs"
18594
18595 # Now substitute the updated list of available tags.
18596 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18597 mv "${ofile}T" "$ofile"
18598 chmod +x "$ofile"
18599 else
18600 rm -f "${ofile}T"
18601 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18602echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18603 { (exit 1); exit 1; }; }
18604 fi
18605fi
John Criswell7a73b802003-06-30 21:59:07 +000018606
18607
18608
18609# This can be used to rebuild libtool when needed
18610LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18611
18612# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018613LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018614
18615# Prevent multiple expansion
18616
18617
18618
John Criswell47fdd832003-07-14 16:52:07 +000018619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
John Criswell7a73b802003-06-30 21:59:07 +000018637# Extract the first word of "dot", so it can be a program name with args.
18638set dummy dot; ac_word=$2
18639echo "$as_me:$LINENO: checking for $ac_word" >&5
18640echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18641if test "${ac_cv_path_DOT+set}" = set; then
18642 echo $ECHO_N "(cached) $ECHO_C" >&6
18643else
18644 case $DOT in
18645 [\\/]* | ?:[\\/]*)
18646 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18647 ;;
18648 *)
18649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18650for as_dir in $PATH
18651do
18652 IFS=$as_save_IFS
18653 test -z "$as_dir" && as_dir=.
18654 for ac_exec_ext in '' $ac_executable_extensions; do
18655 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18656 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18658 break 2
18659 fi
18660done
18661done
18662
Brian Gaeke26be9c52004-01-13 06:43:16 +000018663 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018664 ;;
18665esac
18666fi
18667DOT=$ac_cv_path_DOT
18668
18669if test -n "$DOT"; then
18670 echo "$as_me:$LINENO: result: $DOT" >&5
18671echo "${ECHO_T}$DOT" >&6
18672else
18673 echo "$as_me:$LINENO: result: no" >&5
18674echo "${ECHO_T}no" >&6
18675fi
18676
18677# Extract the first word of "etags", so it can be a program name with args.
18678set dummy etags; ac_word=$2
18679echo "$as_me:$LINENO: checking for $ac_word" >&5
18680echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18681if test "${ac_cv_path_ETAGS+set}" = set; then
18682 echo $ECHO_N "(cached) $ECHO_C" >&6
18683else
18684 case $ETAGS in
18685 [\\/]* | ?:[\\/]*)
18686 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18687 ;;
18688 *)
18689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18690for as_dir in $PATH
18691do
18692 IFS=$as_save_IFS
18693 test -z "$as_dir" && as_dir=.
18694 for ac_exec_ext in '' $ac_executable_extensions; do
18695 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18696 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18697 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18698 break 2
18699 fi
18700done
18701done
18702
Brian Gaeke26be9c52004-01-13 06:43:16 +000018703 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018704 ;;
18705esac
18706fi
18707ETAGS=$ac_cv_path_ETAGS
18708
18709if test -n "$ETAGS"; then
18710 echo "$as_me:$LINENO: result: $ETAGS" >&5
18711echo "${ECHO_T}$ETAGS" >&6
18712else
18713 echo "$as_me:$LINENO: result: no" >&5
18714echo "${ECHO_T}no" >&6
18715fi
18716
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018717etags_version=`$ETAGS --version 2>&1`
18718case "$etags_version" in
18719 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18720 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18721 *) ETAGSFLAGS="" ;;
18722esac
18723ETAGSFLAGS=$ETAGSFLAGS
18724
John Criswellde00db22003-08-25 16:49:54 +000018725# Extract the first word of "python", so it can be a program name with args.
18726set dummy python; ac_word=$2
18727echo "$as_me:$LINENO: checking for $ac_word" >&5
18728echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18729if test "${ac_cv_path_PYTHON+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18731else
18732 case $PYTHON in
18733 [\\/]* | ?:[\\/]*)
18734 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18735 ;;
18736 *)
18737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18738for as_dir in $PATH
18739do
18740 IFS=$as_save_IFS
18741 test -z "$as_dir" && as_dir=.
18742 for ac_exec_ext in '' $ac_executable_extensions; do
18743 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18744 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18746 break 2
18747 fi
18748done
18749done
18750
Brian Gaeke26be9c52004-01-13 06:43:16 +000018751 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018752 ;;
18753esac
18754fi
18755PYTHON=$ac_cv_path_PYTHON
18756
18757if test -n "$PYTHON"; then
18758 echo "$as_me:$LINENO: result: $PYTHON" >&5
18759echo "${ECHO_T}$PYTHON" >&6
18760else
18761 echo "$as_me:$LINENO: result: no" >&5
18762echo "${ECHO_T}no" >&6
18763fi
18764
Brian Gaeke26be9c52004-01-13 06:43:16 +000018765if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018766then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018767 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18768echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018769fi
John Criswellde00db22003-08-25 16:49:54 +000018770# Extract the first word of "qmtest", so it can be a program name with args.
18771set dummy qmtest; ac_word=$2
18772echo "$as_me:$LINENO: checking for $ac_word" >&5
18773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18774if test "${ac_cv_path_QMTEST+set}" = set; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
18776else
18777 case $QMTEST in
18778 [\\/]* | ?:[\\/]*)
18779 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18780 ;;
18781 *)
18782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18783for as_dir in $PATH
18784do
18785 IFS=$as_save_IFS
18786 test -z "$as_dir" && as_dir=.
18787 for ac_exec_ext in '' $ac_executable_extensions; do
18788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18789 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18791 break 2
18792 fi
18793done
18794done
18795
Brian Gaeke26be9c52004-01-13 06:43:16 +000018796 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018797 ;;
18798esac
18799fi
18800QMTEST=$ac_cv_path_QMTEST
18801
18802if test -n "$QMTEST"; then
18803 echo "$as_me:$LINENO: result: $QMTEST" >&5
18804echo "${ECHO_T}$QMTEST" >&6
18805else
18806 echo "$as_me:$LINENO: result: no" >&5
18807echo "${ECHO_T}no" >&6
18808fi
18809
Brian Gaeke26be9c52004-01-13 06:43:16 +000018810if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018811then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018812 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18813echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018814fi
John Criswellde00db22003-08-25 16:49:54 +000018815
18816pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18817pymajor=`echo $pyversion | cut -d. -f1`
18818pyminor=`echo $pyversion | cut -d. -f2`
18819
18820if test "$pymajor" -ge "2"
18821then
18822 if test "$pymajor" -eq "2"
18823 then
18824 if test "$pyminor" -lt "2"
18825 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018826 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18827echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018828 fi
18829 fi
18830else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018831 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18832echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018833fi
John Criswell7a73b802003-06-30 21:59:07 +000018834
18835
18836
18837
John Criswell7a73b802003-06-30 21:59:07 +000018838echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18839echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18840if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18841 echo $ECHO_N "(cached) $ECHO_C" >&6
18842else
18843 ac_check_lib_save_LIBS=$LIBS
18844LIBS="-lelf $LIBS"
18845cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018846/* confdefs.h. */
18847_ACEOF
18848cat confdefs.h >>conftest.$ac_ext
18849cat >>conftest.$ac_ext <<_ACEOF
18850/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018851
18852/* Override any gcc2 internal prototype to avoid an error. */
18853#ifdef __cplusplus
18854extern "C"
18855#endif
18856/* We use char because int might match the return type of a gcc2
18857 builtin and then its argument prototype would still apply. */
18858char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018859int
18860main ()
18861{
18862elf_begin ();
18863 ;
18864 return 0;
18865}
18866_ACEOF
18867rm -f conftest.$ac_objext conftest$ac_exeext
18868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000018869 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000018870 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000018871 grep -v '^ *+' conftest.er1 >conftest.err
18872 rm -f conftest.er1
18873 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000018874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000018876 { ac_try='test -z "$ac_c_werror_flag"
18877 || test ! -s conftest.err'
18878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18879 (eval $ac_try) 2>&5
18880 ac_status=$?
18881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18882 (exit $ac_status); }; } &&
18883 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18885 (eval $ac_try) 2>&5
18886 ac_status=$?
18887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888 (exit $ac_status); }; }; then
18889 ac_cv_lib_elf_elf_begin=yes
18890else
18891 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018892sed 's/^/| /' conftest.$ac_ext >&5
18893
John Criswell7a73b802003-06-30 21:59:07 +000018894ac_cv_lib_elf_elf_begin=no
18895fi
Reid Spencer17041682004-09-05 17:48:32 +000018896rm -f conftest.err conftest.$ac_objext \
18897 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018898LIBS=$ac_check_lib_save_LIBS
18899fi
18900echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18901echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18902if test $ac_cv_lib_elf_elf_begin = yes; then
18903 cat >>confdefs.h <<_ACEOF
18904#define HAVE_LIBELF 1
18905_ACEOF
18906
18907 LIBS="-lelf $LIBS"
18908
18909fi
18910
18911
18912echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18913echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18914if test "${ac_cv_search_dlopen+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18916else
18917 ac_func_search_save_LIBS=$LIBS
18918ac_cv_search_dlopen=no
18919cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018920/* confdefs.h. */
18921_ACEOF
18922cat confdefs.h >>conftest.$ac_ext
18923cat >>conftest.$ac_ext <<_ACEOF
18924/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018925
18926/* Override any gcc2 internal prototype to avoid an error. */
18927#ifdef __cplusplus
18928extern "C"
18929#endif
18930/* We use char because int might match the return type of a gcc2
18931 builtin and then its argument prototype would still apply. */
18932char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018933int
18934main ()
18935{
18936dlopen ();
18937 ;
18938 return 0;
18939}
18940_ACEOF
18941rm -f conftest.$ac_objext conftest$ac_exeext
18942if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000018943 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000018944 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000018945 grep -v '^ *+' conftest.er1 >conftest.err
18946 rm -f conftest.er1
18947 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000018948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000018950 { ac_try='test -z "$ac_c_werror_flag"
18951 || test ! -s conftest.err'
18952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18953 (eval $ac_try) 2>&5
18954 ac_status=$?
18955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18956 (exit $ac_status); }; } &&
18957 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18959 (eval $ac_try) 2>&5
18960 ac_status=$?
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ac_cv_search_dlopen="none required"
18964else
18965 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018966sed 's/^/| /' conftest.$ac_ext >&5
18967
John Criswell7a73b802003-06-30 21:59:07 +000018968fi
Reid Spencer17041682004-09-05 17:48:32 +000018969rm -f conftest.err conftest.$ac_objext \
18970 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018971if test "$ac_cv_search_dlopen" = no; then
18972 for ac_lib in dl; do
18973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18974 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018975/* confdefs.h. */
18976_ACEOF
18977cat confdefs.h >>conftest.$ac_ext
18978cat >>conftest.$ac_ext <<_ACEOF
18979/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018980
18981/* Override any gcc2 internal prototype to avoid an error. */
18982#ifdef __cplusplus
18983extern "C"
18984#endif
18985/* We use char because int might match the return type of a gcc2
18986 builtin and then its argument prototype would still apply. */
18987char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018988int
18989main ()
18990{
18991dlopen ();
18992 ;
18993 return 0;
18994}
18995_ACEOF
18996rm -f conftest.$ac_objext conftest$ac_exeext
18997if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000018998 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000018999 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019000 grep -v '^ *+' conftest.er1 >conftest.err
19001 rm -f conftest.er1
19002 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19004 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019005 { ac_try='test -z "$ac_c_werror_flag"
19006 || test ! -s conftest.err'
19007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19008 (eval $ac_try) 2>&5
19009 ac_status=$?
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; } &&
19012 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19014 (eval $ac_try) 2>&5
19015 ac_status=$?
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); }; }; then
19018 ac_cv_search_dlopen="-l$ac_lib"
19019break
19020else
19021 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019022sed 's/^/| /' conftest.$ac_ext >&5
19023
John Criswell7a73b802003-06-30 21:59:07 +000019024fi
Reid Spencer17041682004-09-05 17:48:32 +000019025rm -f conftest.err conftest.$ac_objext \
19026 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019027 done
19028fi
19029LIBS=$ac_func_search_save_LIBS
19030fi
19031echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19032echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19033if test "$ac_cv_search_dlopen" != no; then
19034 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019035
19036cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019037#define HAVE_DLOPEN 1
19038_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019039
19040else
Brian Gaekec45be042003-10-07 06:01:34 +000019041 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19042echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019043fi
19044
19045
19046echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19047echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19048if test "${ac_cv_search_mallinfo+set}" = set; then
19049 echo $ECHO_N "(cached) $ECHO_C" >&6
19050else
19051 ac_func_search_save_LIBS=$LIBS
19052ac_cv_search_mallinfo=no
19053cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019054/* confdefs.h. */
19055_ACEOF
19056cat confdefs.h >>conftest.$ac_ext
19057cat >>conftest.$ac_ext <<_ACEOF
19058/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019059
19060/* Override any gcc2 internal prototype to avoid an error. */
19061#ifdef __cplusplus
19062extern "C"
19063#endif
19064/* We use char because int might match the return type of a gcc2
19065 builtin and then its argument prototype would still apply. */
19066char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019067int
19068main ()
19069{
19070mallinfo ();
19071 ;
19072 return 0;
19073}
19074_ACEOF
19075rm -f conftest.$ac_objext conftest$ac_exeext
19076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019077 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019078 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019079 grep -v '^ *+' conftest.er1 >conftest.err
19080 rm -f conftest.er1
19081 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019084 { ac_try='test -z "$ac_c_werror_flag"
19085 || test ! -s conftest.err'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19088 ac_status=$?
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; } &&
19091 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19093 (eval $ac_try) 2>&5
19094 ac_status=$?
19095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19096 (exit $ac_status); }; }; then
19097 ac_cv_search_mallinfo="none required"
19098else
19099 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019100sed 's/^/| /' conftest.$ac_ext >&5
19101
John Criswell7a73b802003-06-30 21:59:07 +000019102fi
Reid Spencer17041682004-09-05 17:48:32 +000019103rm -f conftest.err conftest.$ac_objext \
19104 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019105if test "$ac_cv_search_mallinfo" = no; then
19106 for ac_lib in malloc; do
19107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19108 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019109/* confdefs.h. */
19110_ACEOF
19111cat confdefs.h >>conftest.$ac_ext
19112cat >>conftest.$ac_ext <<_ACEOF
19113/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019114
19115/* Override any gcc2 internal prototype to avoid an error. */
19116#ifdef __cplusplus
19117extern "C"
19118#endif
19119/* We use char because int might match the return type of a gcc2
19120 builtin and then its argument prototype would still apply. */
19121char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019122int
19123main ()
19124{
19125mallinfo ();
19126 ;
19127 return 0;
19128}
19129_ACEOF
19130rm -f conftest.$ac_objext conftest$ac_exeext
19131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019132 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019133 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019134 grep -v '^ *+' conftest.er1 >conftest.err
19135 rm -f conftest.er1
19136 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19138 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019139 { ac_try='test -z "$ac_c_werror_flag"
19140 || test ! -s conftest.err'
19141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19142 (eval $ac_try) 2>&5
19143 ac_status=$?
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); }; } &&
19146 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19148 (eval $ac_try) 2>&5
19149 ac_status=$?
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); }; }; then
19152 ac_cv_search_mallinfo="-l$ac_lib"
19153break
19154else
19155 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019156sed 's/^/| /' conftest.$ac_ext >&5
19157
John Criswell7a73b802003-06-30 21:59:07 +000019158fi
Reid Spencer17041682004-09-05 17:48:32 +000019159rm -f conftest.err conftest.$ac_objext \
19160 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019161 done
19162fi
19163LIBS=$ac_func_search_save_LIBS
19164fi
19165echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19166echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19167if test "$ac_cv_search_mallinfo" != no; then
19168 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019169
19170cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019171#define HAVE_MALLINFO 1
19172_ACEOF
19173
19174fi
19175
19176
Brian Gaeke5f268f72003-12-05 19:29:01 +000019177echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19178echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19179if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19181else
19182 ac_func_search_save_LIBS=$LIBS
19183ac_cv_search_pthread_mutex_lock=no
19184cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019185/* confdefs.h. */
19186_ACEOF
19187cat confdefs.h >>conftest.$ac_ext
19188cat >>conftest.$ac_ext <<_ACEOF
19189/* end confdefs.h. */
19190
19191/* Override any gcc2 internal prototype to avoid an error. */
19192#ifdef __cplusplus
19193extern "C"
19194#endif
19195/* We use char because int might match the return type of a gcc2
19196 builtin and then its argument prototype would still apply. */
19197char pthread_mutex_lock ();
19198int
19199main ()
19200{
19201pthread_mutex_lock ();
19202 ;
19203 return 0;
19204}
19205_ACEOF
19206rm -f conftest.$ac_objext conftest$ac_exeext
19207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019208 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019209 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019210 grep -v '^ *+' conftest.er1 >conftest.err
19211 rm -f conftest.er1
19212 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019215 { ac_try='test -z "$ac_c_werror_flag"
19216 || test ! -s conftest.err'
19217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19218 (eval $ac_try) 2>&5
19219 ac_status=$?
19220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19221 (exit $ac_status); }; } &&
19222 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19224 (eval $ac_try) 2>&5
19225 ac_status=$?
19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19227 (exit $ac_status); }; }; then
19228 ac_cv_search_pthread_mutex_lock="none required"
19229else
19230 echo "$as_me: failed program was:" >&5
19231sed 's/^/| /' conftest.$ac_ext >&5
19232
19233fi
Reid Spencer17041682004-09-05 17:48:32 +000019234rm -f conftest.err conftest.$ac_objext \
19235 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019236if test "$ac_cv_search_pthread_mutex_lock" = no; then
19237 for ac_lib in pthread; do
19238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19239 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019240/* confdefs.h. */
19241_ACEOF
19242cat confdefs.h >>conftest.$ac_ext
19243cat >>conftest.$ac_ext <<_ACEOF
19244/* end confdefs.h. */
19245
19246/* Override any gcc2 internal prototype to avoid an error. */
19247#ifdef __cplusplus
19248extern "C"
19249#endif
19250/* We use char because int might match the return type of a gcc2
19251 builtin and then its argument prototype would still apply. */
19252char pthread_mutex_lock ();
19253int
19254main ()
19255{
19256pthread_mutex_lock ();
19257 ;
19258 return 0;
19259}
19260_ACEOF
19261rm -f conftest.$ac_objext conftest$ac_exeext
19262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019263 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019264 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019265 grep -v '^ *+' conftest.er1 >conftest.err
19266 rm -f conftest.er1
19267 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019270 { ac_try='test -z "$ac_c_werror_flag"
19271 || test ! -s conftest.err'
19272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19273 (eval $ac_try) 2>&5
19274 ac_status=$?
19275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19276 (exit $ac_status); }; } &&
19277 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19279 (eval $ac_try) 2>&5
19280 ac_status=$?
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; }; then
19283 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19284break
19285else
19286 echo "$as_me: failed program was:" >&5
19287sed 's/^/| /' conftest.$ac_ext >&5
19288
19289fi
Reid Spencer17041682004-09-05 17:48:32 +000019290rm -f conftest.err conftest.$ac_objext \
19291 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019292 done
19293fi
19294LIBS=$ac_func_search_save_LIBS
19295fi
19296echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19297echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19298if test "$ac_cv_search_pthread_mutex_lock" != no; then
19299 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000019300 HAVE_PTHREAD_MUTEX_LOCK=1
19301else
19302 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000019303fi
19304
19305
Brian Gaekec9a410c2004-02-23 21:30:37 +000019306
John Criswell7a73b802003-06-30 21:59:07 +000019307echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19308echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19309if test "${ac_cv_header_stdc+set}" = set; then
19310 echo $ECHO_N "(cached) $ECHO_C" >&6
19311else
19312 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019313/* confdefs.h. */
19314_ACEOF
19315cat confdefs.h >>conftest.$ac_ext
19316cat >>conftest.$ac_ext <<_ACEOF
19317/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019318#include <stdlib.h>
19319#include <stdarg.h>
19320#include <string.h>
19321#include <float.h>
19322
John Criswell0c38eaf2003-09-10 15:17:25 +000019323int
19324main ()
19325{
19326
19327 ;
19328 return 0;
19329}
John Criswell7a73b802003-06-30 21:59:07 +000019330_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019331rm -f conftest.$ac_objext
19332if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019333 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019334 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019335 grep -v '^ *+' conftest.er1 >conftest.err
19336 rm -f conftest.er1
19337 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019339 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019340 { ac_try='test -z "$ac_c_werror_flag"
19341 || test ! -s conftest.err'
19342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19343 (eval $ac_try) 2>&5
19344 ac_status=$?
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; } &&
19347 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000019348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19349 (eval $ac_try) 2>&5
19350 ac_status=$?
19351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019353 ac_cv_header_stdc=yes
19354else
19355 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019356sed 's/^/| /' conftest.$ac_ext >&5
19357
19358ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019359fi
Reid Spencer17041682004-09-05 17:48:32 +000019360rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019361
19362if test $ac_cv_header_stdc = yes; then
19363 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19364 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019365/* confdefs.h. */
19366_ACEOF
19367cat confdefs.h >>conftest.$ac_ext
19368cat >>conftest.$ac_ext <<_ACEOF
19369/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019370#include <string.h>
19371
19372_ACEOF
19373if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019374 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019375 :
19376else
19377 ac_cv_header_stdc=no
19378fi
19379rm -f conftest*
19380
19381fi
19382
19383if test $ac_cv_header_stdc = yes; then
19384 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19385 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019386/* confdefs.h. */
19387_ACEOF
19388cat confdefs.h >>conftest.$ac_ext
19389cat >>conftest.$ac_ext <<_ACEOF
19390/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019391#include <stdlib.h>
19392
19393_ACEOF
19394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019395 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019396 :
19397else
19398 ac_cv_header_stdc=no
19399fi
19400rm -f conftest*
19401
19402fi
19403
19404if test $ac_cv_header_stdc = yes; then
19405 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19406 if test "$cross_compiling" = yes; then
19407 :
19408else
19409 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019410/* confdefs.h. */
19411_ACEOF
19412cat confdefs.h >>conftest.$ac_ext
19413cat >>conftest.$ac_ext <<_ACEOF
19414/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019415#include <ctype.h>
19416#if ((' ' & 0x0FF) == 0x020)
19417# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19418# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19419#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019420# define ISLOWER(c) \
Reid Spencer17041682004-09-05 17:48:32 +000019421 (('a' <= (c) && (c) <= 'i') \
19422 || ('j' <= (c) && (c) <= 'r') \
19423 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000019424# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19425#endif
19426
19427#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19428int
19429main ()
19430{
19431 int i;
19432 for (i = 0; i < 256; i++)
19433 if (XOR (islower (i), ISLOWER (i))
Reid Spencer17041682004-09-05 17:48:32 +000019434 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000019435 exit(2);
19436 exit (0);
19437}
19438_ACEOF
19439rm -f conftest$ac_exeext
19440if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19441 (eval $ac_link) 2>&5
19442 ac_status=$?
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19446 (eval $ac_try) 2>&5
19447 ac_status=$?
19448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19449 (exit $ac_status); }; }; then
19450 :
19451else
19452 echo "$as_me: program exited with status $ac_status" >&5
19453echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019454sed 's/^/| /' conftest.$ac_ext >&5
19455
John Criswell7a73b802003-06-30 21:59:07 +000019456( exit $ac_status )
19457ac_cv_header_stdc=no
19458fi
Reid Spencer17041682004-09-05 17:48:32 +000019459rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019460fi
19461fi
19462fi
19463echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19464echo "${ECHO_T}$ac_cv_header_stdc" >&6
19465if test $ac_cv_header_stdc = yes; then
19466
19467cat >>confdefs.h <<\_ACEOF
19468#define STDC_HEADERS 1
19469_ACEOF
19470
19471fi
19472
19473echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19474echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19475if test "${ac_cv_header_sys_wait_h+set}" = set; then
19476 echo $ECHO_N "(cached) $ECHO_C" >&6
19477else
19478 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019479/* confdefs.h. */
19480_ACEOF
19481cat confdefs.h >>conftest.$ac_ext
19482cat >>conftest.$ac_ext <<_ACEOF
19483/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019484#include <sys/types.h>
19485#include <sys/wait.h>
19486#ifndef WEXITSTATUS
19487# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19488#endif
19489#ifndef WIFEXITED
19490# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19491#endif
19492
John Criswell7a73b802003-06-30 21:59:07 +000019493int
19494main ()
19495{
19496 int s;
19497 wait (&s);
19498 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19499 ;
19500 return 0;
19501}
19502_ACEOF
19503rm -f conftest.$ac_objext
19504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019505 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019506 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019507 grep -v '^ *+' conftest.er1 >conftest.err
19508 rm -f conftest.er1
19509 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019512 { ac_try='test -z "$ac_c_werror_flag"
19513 || test ! -s conftest.err'
19514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19515 (eval $ac_try) 2>&5
19516 ac_status=$?
19517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); }; } &&
19519 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19521 (eval $ac_try) 2>&5
19522 ac_status=$?
19523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19524 (exit $ac_status); }; }; then
19525 ac_cv_header_sys_wait_h=yes
19526else
19527 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019528sed 's/^/| /' conftest.$ac_ext >&5
19529
John Criswell7a73b802003-06-30 21:59:07 +000019530ac_cv_header_sys_wait_h=no
19531fi
Reid Spencer17041682004-09-05 17:48:32 +000019532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019533fi
19534echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19535echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19536if test $ac_cv_header_sys_wait_h = yes; then
19537
19538cat >>confdefs.h <<\_ACEOF
19539#define HAVE_SYS_WAIT_H 1
19540_ACEOF
19541
19542fi
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
Brian Gaeke26be9c52004-01-13 06:43:16 +000019553
Brian Gaekef5261472004-02-20 06:40:57 +000019554
John Criswellb2815e02004-05-27 20:40:39 +000019555
19556for 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 +000019557do
19558as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19559if eval "test \"\${$as_ac_Header+set}\" = set"; then
19560 echo "$as_me:$LINENO: checking for $ac_header" >&5
19561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19562if eval "test \"\${$as_ac_Header+set}\" = set"; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19564fi
19565echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19566echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19567else
19568 # Is the header compilable?
19569echo "$as_me:$LINENO: checking $ac_header usability" >&5
19570echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19571cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019572/* confdefs.h. */
19573_ACEOF
19574cat confdefs.h >>conftest.$ac_ext
19575cat >>conftest.$ac_ext <<_ACEOF
19576/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019577$ac_includes_default
19578#include <$ac_header>
19579_ACEOF
19580rm -f conftest.$ac_objext
19581if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019582 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019583 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019584 grep -v '^ *+' conftest.er1 >conftest.err
19585 rm -f conftest.er1
19586 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19588 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019589 { ac_try='test -z "$ac_c_werror_flag"
19590 || test ! -s conftest.err'
19591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; } &&
19596 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19599 ac_status=$?
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; }; then
19602 ac_header_compiler=yes
19603else
19604 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019605sed 's/^/| /' conftest.$ac_ext >&5
19606
John Criswell7a73b802003-06-30 21:59:07 +000019607ac_header_compiler=no
19608fi
Reid Spencer17041682004-09-05 17:48:32 +000019609rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019610echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19611echo "${ECHO_T}$ac_header_compiler" >&6
19612
19613# Is the header present?
19614echo "$as_me:$LINENO: checking $ac_header presence" >&5
19615echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19616cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019617/* confdefs.h. */
19618_ACEOF
19619cat confdefs.h >>conftest.$ac_ext
19620cat >>conftest.$ac_ext <<_ACEOF
19621/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019622#include <$ac_header>
19623_ACEOF
19624if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19626 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019627 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019628 rm -f conftest.er1
19629 cat conftest.err >&5
19630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19631 (exit $ac_status); } >/dev/null; then
19632 if test -s conftest.err; then
19633 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000019634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000019635 else
19636 ac_cpp_err=
19637 fi
19638else
19639 ac_cpp_err=yes
19640fi
19641if test -z "$ac_cpp_err"; then
19642 ac_header_preproc=yes
19643else
19644 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019645sed 's/^/| /' conftest.$ac_ext >&5
19646
John Criswell7a73b802003-06-30 21:59:07 +000019647 ac_header_preproc=no
19648fi
19649rm -f conftest.err conftest.$ac_ext
19650echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19651echo "${ECHO_T}$ac_header_preproc" >&6
19652
19653# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000019654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19655 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000019656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19657echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19659echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19660 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000019661 ;;
Reid Spencer17041682004-09-05 17:48:32 +000019662 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000019663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19664echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19666echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19668echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19670echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19672echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19674echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019675 (
19676 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000019677## ----------------------------------- ##
19678## Report this to llvmbugs@cs.uiuc.edu ##
19679## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000019680_ASBOX
19681 ) |
19682 sed "s/^/$as_me: WARNING: /" >&2
19683 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019684esac
19685echo "$as_me:$LINENO: checking for $ac_header" >&5
19686echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19687if eval "test \"\${$as_ac_Header+set}\" = set"; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19689else
Reid Spencer17041682004-09-05 17:48:32 +000019690 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000019691fi
19692echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19693echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19694
19695fi
19696if test `eval echo '${'$as_ac_Header'}'` = yes; then
19697 cat >>confdefs.h <<_ACEOF
19698#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19699_ACEOF
19700
19701fi
19702
19703done
19704
19705
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019706if test "${ac_cv_header_sys_types_h+set}" = set; then
19707 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19708echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19709if test "${ac_cv_header_sys_types_h+set}" = set; then
19710 echo $ECHO_N "(cached) $ECHO_C" >&6
19711fi
19712echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19713echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19714else
19715 # Is the header compilable?
19716echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19717echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19718cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019719/* confdefs.h. */
19720_ACEOF
19721cat confdefs.h >>conftest.$ac_ext
19722cat >>conftest.$ac_ext <<_ACEOF
19723/* end confdefs.h. */
19724$ac_includes_default
19725#include <sys/types.h>
19726_ACEOF
19727rm -f conftest.$ac_objext
19728if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019729 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019730 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019731 grep -v '^ *+' conftest.er1 >conftest.err
19732 rm -f conftest.er1
19733 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19735 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019736 { ac_try='test -z "$ac_c_werror_flag"
19737 || test ! -s conftest.err'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19740 ac_status=$?
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; } &&
19743 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; }; then
19749 ac_header_compiler=yes
19750else
19751 echo "$as_me: failed program was:" >&5
19752sed 's/^/| /' conftest.$ac_ext >&5
19753
19754ac_header_compiler=no
19755fi
Reid Spencer17041682004-09-05 17:48:32 +000019756rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019757echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19758echo "${ECHO_T}$ac_header_compiler" >&6
19759
19760# Is the header present?
19761echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19762echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19763cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019764/* confdefs.h. */
19765_ACEOF
19766cat confdefs.h >>conftest.$ac_ext
19767cat >>conftest.$ac_ext <<_ACEOF
19768/* end confdefs.h. */
19769#include <sys/types.h>
19770_ACEOF
19771if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19773 ac_status=$?
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } >/dev/null; then
19779 if test -s conftest.err; then
19780 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000019781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019782 else
19783 ac_cpp_err=
19784 fi
19785else
19786 ac_cpp_err=yes
19787fi
19788if test -z "$ac_cpp_err"; then
19789 ac_header_preproc=yes
19790else
19791 echo "$as_me: failed program was:" >&5
19792sed 's/^/| /' conftest.$ac_ext >&5
19793
19794 ac_header_preproc=no
19795fi
19796rm -f conftest.err conftest.$ac_ext
19797echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19798echo "${ECHO_T}$ac_header_preproc" >&6
19799
19800# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000019801case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19802 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019803 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19804echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019805 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19806echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19807 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000019808 ;;
Reid Spencer17041682004-09-05 17:48:32 +000019809 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000019810 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19811echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019812 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19813echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19814 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19815echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19816 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
19817echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019818 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19819echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019820 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19821echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019822 (
19823 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000019824## ----------------------------------- ##
19825## Report this to llvmbugs@cs.uiuc.edu ##
19826## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019827_ASBOX
19828 ) |
19829 sed "s/^/$as_me: WARNING: /" >&2
19830 ;;
19831esac
19832echo "$as_me:$LINENO: checking for sys/types.h" >&5
19833echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19834if test "${ac_cv_header_sys_types_h+set}" = set; then
19835 echo $ECHO_N "(cached) $ECHO_C" >&6
19836else
19837 ac_cv_header_sys_types_h=$ac_header_preproc
19838fi
19839echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19840echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19841
19842fi
19843if test $ac_cv_header_sys_types_h = yes; then
19844 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19845else
19846 INCLUDE_SYS_TYPES_H=''
19847fi
19848
19849
19850
19851if test "${ac_cv_header_inttypes_h+set}" = set; then
19852 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19853echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19854if test "${ac_cv_header_inttypes_h+set}" = set; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19856fi
19857echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19858echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19859else
19860 # Is the header compilable?
19861echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19862echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19863cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019864/* confdefs.h. */
19865_ACEOF
19866cat confdefs.h >>conftest.$ac_ext
19867cat >>conftest.$ac_ext <<_ACEOF
19868/* end confdefs.h. */
19869$ac_includes_default
19870#include <inttypes.h>
19871_ACEOF
19872rm -f conftest.$ac_objext
19873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019874 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019875 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019876 grep -v '^ *+' conftest.er1 >conftest.err
19877 rm -f conftest.er1
19878 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19880 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019881 { ac_try='test -z "$ac_c_werror_flag"
19882 || test ! -s conftest.err'
19883 { (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); }; } &&
19888 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19890 (eval $ac_try) 2>&5
19891 ac_status=$?
19892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19893 (exit $ac_status); }; }; then
19894 ac_header_compiler=yes
19895else
19896 echo "$as_me: failed program was:" >&5
19897sed 's/^/| /' conftest.$ac_ext >&5
19898
19899ac_header_compiler=no
19900fi
Reid Spencer17041682004-09-05 17:48:32 +000019901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019902echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19903echo "${ECHO_T}$ac_header_compiler" >&6
19904
19905# Is the header present?
19906echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19907echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19908cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019909/* confdefs.h. */
19910_ACEOF
19911cat confdefs.h >>conftest.$ac_ext
19912cat >>conftest.$ac_ext <<_ACEOF
19913/* end confdefs.h. */
19914#include <inttypes.h>
19915_ACEOF
19916if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19917 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19918 ac_status=$?
19919 grep -v '^ *+' conftest.er1 >conftest.err
19920 rm -f conftest.er1
19921 cat conftest.err >&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); } >/dev/null; then
19924 if test -s conftest.err; then
19925 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000019926 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019927 else
19928 ac_cpp_err=
19929 fi
19930else
19931 ac_cpp_err=yes
19932fi
19933if test -z "$ac_cpp_err"; then
19934 ac_header_preproc=yes
19935else
19936 echo "$as_me: failed program was:" >&5
19937sed 's/^/| /' conftest.$ac_ext >&5
19938
19939 ac_header_preproc=no
19940fi
19941rm -f conftest.err conftest.$ac_ext
19942echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19943echo "${ECHO_T}$ac_header_preproc" >&6
19944
19945# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000019946case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19947 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019948 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19949echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019950 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
19951echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
19952 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000019953 ;;
Reid Spencer17041682004-09-05 17:48:32 +000019954 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000019955 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19956echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019957 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19958echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19959 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
19960echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
19961 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
19962echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019963 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19964echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019965 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
19966echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019967 (
19968 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000019969## ----------------------------------- ##
19970## Report this to llvmbugs@cs.uiuc.edu ##
19971## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019972_ASBOX
19973 ) |
19974 sed "s/^/$as_me: WARNING: /" >&2
19975 ;;
19976esac
19977echo "$as_me:$LINENO: checking for inttypes.h" >&5
19978echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19979if test "${ac_cv_header_inttypes_h+set}" = set; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19981else
19982 ac_cv_header_inttypes_h=$ac_header_preproc
19983fi
19984echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19985echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19986
19987fi
19988if test $ac_cv_header_inttypes_h = yes; then
19989 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19990else
19991 INCLUDE_INTTYPES_H=''
19992fi
19993
19994
19995
John Criswell7ed43ad2004-07-19 16:12:29 +000019996if test "${ac_cv_header_stdint_h+set}" = set; then
19997 echo "$as_me:$LINENO: checking for stdint.h" >&5
19998echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19999if test "${ac_cv_header_stdint_h+set}" = set; then
20000 echo $ECHO_N "(cached) $ECHO_C" >&6
20001fi
20002echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20003echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20004else
20005 # Is the header compilable?
20006echo "$as_me:$LINENO: checking stdint.h usability" >&5
20007echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20008cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020009/* confdefs.h. */
20010_ACEOF
20011cat confdefs.h >>conftest.$ac_ext
20012cat >>conftest.$ac_ext <<_ACEOF
20013/* end confdefs.h. */
20014$ac_includes_default
20015#include <stdint.h>
20016_ACEOF
20017rm -f conftest.$ac_objext
20018if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020019 (eval $ac_compile) 2>conftest.er1
John Criswell7ed43ad2004-07-19 16:12:29 +000020020 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020021 grep -v '^ *+' conftest.er1 >conftest.err
20022 rm -f conftest.er1
20023 cat conftest.err >&5
John Criswell7ed43ad2004-07-19 16:12:29 +000020024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020026 { ac_try='test -z "$ac_c_werror_flag"
20027 || test ! -s conftest.err'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20030 ac_status=$?
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; } &&
20033 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000020034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20035 (eval $ac_try) 2>&5
20036 ac_status=$?
20037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038 (exit $ac_status); }; }; then
20039 ac_header_compiler=yes
20040else
20041 echo "$as_me: failed program was:" >&5
20042sed 's/^/| /' conftest.$ac_ext >&5
20043
20044ac_header_compiler=no
20045fi
Reid Spencer17041682004-09-05 17:48:32 +000020046rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000020047echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20048echo "${ECHO_T}$ac_header_compiler" >&6
20049
20050# Is the header present?
20051echo "$as_me:$LINENO: checking stdint.h presence" >&5
20052echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20053cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020054/* confdefs.h. */
20055_ACEOF
20056cat confdefs.h >>conftest.$ac_ext
20057cat >>conftest.$ac_ext <<_ACEOF
20058/* end confdefs.h. */
20059#include <stdint.h>
20060_ACEOF
20061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20062 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20063 ac_status=$?
20064 grep -v '^ *+' conftest.er1 >conftest.err
20065 rm -f conftest.er1
20066 cat conftest.err >&5
20067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20068 (exit $ac_status); } >/dev/null; then
20069 if test -s conftest.err; then
20070 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000020071 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7ed43ad2004-07-19 16:12:29 +000020072 else
20073 ac_cpp_err=
20074 fi
20075else
20076 ac_cpp_err=yes
20077fi
20078if test -z "$ac_cpp_err"; then
20079 ac_header_preproc=yes
20080else
20081 echo "$as_me: failed program was:" >&5
20082sed 's/^/| /' conftest.$ac_ext >&5
20083
20084 ac_header_preproc=no
20085fi
20086rm -f conftest.err conftest.$ac_ext
20087echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20088echo "${ECHO_T}$ac_header_preproc" >&6
20089
20090# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000020091case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20092 yes:no: )
John Criswell7ed43ad2004-07-19 16:12:29 +000020093 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20094echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000020095 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20096echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20097 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000020098 ;;
Reid Spencer17041682004-09-05 17:48:32 +000020099 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000020100 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20101echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000020102 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20103echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20104 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20105echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20106 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20107echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000020108 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20109echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000020110 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20111echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000020112 (
20113 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000020114## ----------------------------------- ##
20115## Report this to llvmbugs@cs.uiuc.edu ##
20116## ----------------------------------- ##
John Criswell7ed43ad2004-07-19 16:12:29 +000020117_ASBOX
20118 ) |
20119 sed "s/^/$as_me: WARNING: /" >&2
20120 ;;
20121esac
20122echo "$as_me:$LINENO: checking for stdint.h" >&5
20123echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20124if test "${ac_cv_header_stdint_h+set}" = set; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20126else
20127 ac_cv_header_stdint_h=$ac_header_preproc
20128fi
20129echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20130echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20131
20132fi
20133if test $ac_cv_header_stdint_h = yes; then
20134 INCLUDE_STDINT_H='#include <stdint.h>'
20135else
20136 INCLUDE_STDINT_H=''
20137fi
20138
20139
20140
20141
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020142
John Criswell7a73b802003-06-30 21:59:07 +000020143echo "$as_me:$LINENO: checking for pid_t" >&5
20144echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20145if test "${ac_cv_type_pid_t+set}" = set; then
20146 echo $ECHO_N "(cached) $ECHO_C" >&6
20147else
20148 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020149/* confdefs.h. */
20150_ACEOF
20151cat confdefs.h >>conftest.$ac_ext
20152cat >>conftest.$ac_ext <<_ACEOF
20153/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020154$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020155int
20156main ()
20157{
20158if ((pid_t *) 0)
20159 return 0;
20160if (sizeof (pid_t))
20161 return 0;
20162 ;
20163 return 0;
20164}
20165_ACEOF
20166rm -f conftest.$ac_objext
20167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020168 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020169 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020170 grep -v '^ *+' conftest.er1 >conftest.err
20171 rm -f conftest.er1
20172 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020175 { ac_try='test -z "$ac_c_werror_flag"
20176 || test ! -s conftest.err'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; } &&
20182 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; }; then
20188 ac_cv_type_pid_t=yes
20189else
20190 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020191sed 's/^/| /' conftest.$ac_ext >&5
20192
John Criswell7a73b802003-06-30 21:59:07 +000020193ac_cv_type_pid_t=no
20194fi
Reid Spencer17041682004-09-05 17:48:32 +000020195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020196fi
20197echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20198echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20199if test $ac_cv_type_pid_t = yes; then
20200 :
20201else
20202
20203cat >>confdefs.h <<_ACEOF
20204#define pid_t int
20205_ACEOF
20206
20207fi
20208
20209echo "$as_me:$LINENO: checking for size_t" >&5
20210echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20211if test "${ac_cv_type_size_t+set}" = set; then
20212 echo $ECHO_N "(cached) $ECHO_C" >&6
20213else
20214 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020215/* confdefs.h. */
20216_ACEOF
20217cat confdefs.h >>conftest.$ac_ext
20218cat >>conftest.$ac_ext <<_ACEOF
20219/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020220$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020221int
20222main ()
20223{
20224if ((size_t *) 0)
20225 return 0;
20226if (sizeof (size_t))
20227 return 0;
20228 ;
20229 return 0;
20230}
20231_ACEOF
20232rm -f conftest.$ac_objext
20233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020234 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020235 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020236 grep -v '^ *+' conftest.er1 >conftest.err
20237 rm -f conftest.er1
20238 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020241 { ac_try='test -z "$ac_c_werror_flag"
20242 || test ! -s conftest.err'
20243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20244 (eval $ac_try) 2>&5
20245 ac_status=$?
20246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247 (exit $ac_status); }; } &&
20248 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20250 (eval $ac_try) 2>&5
20251 ac_status=$?
20252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20253 (exit $ac_status); }; }; then
20254 ac_cv_type_size_t=yes
20255else
20256 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020257sed 's/^/| /' conftest.$ac_ext >&5
20258
John Criswell7a73b802003-06-30 21:59:07 +000020259ac_cv_type_size_t=no
20260fi
Reid Spencer17041682004-09-05 17:48:32 +000020261rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020262fi
20263echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20264echo "${ECHO_T}$ac_cv_type_size_t" >&6
20265if test $ac_cv_type_size_t = yes; then
20266 :
20267else
20268
20269cat >>confdefs.h <<_ACEOF
20270#define size_t unsigned
20271_ACEOF
20272
20273fi
20274
20275echo "$as_me:$LINENO: checking for int64_t" >&5
20276echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20277if test "${ac_cv_type_int64_t+set}" = set; then
20278 echo $ECHO_N "(cached) $ECHO_C" >&6
20279else
20280 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020281/* confdefs.h. */
20282_ACEOF
20283cat confdefs.h >>conftest.$ac_ext
20284cat >>conftest.$ac_ext <<_ACEOF
20285/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020286$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020287int
20288main ()
20289{
20290if ((int64_t *) 0)
20291 return 0;
20292if (sizeof (int64_t))
20293 return 0;
20294 ;
20295 return 0;
20296}
20297_ACEOF
20298rm -f conftest.$ac_objext
20299if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020300 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020301 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020302 grep -v '^ *+' conftest.er1 >conftest.err
20303 rm -f conftest.er1
20304 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020307 { ac_try='test -z "$ac_c_werror_flag"
20308 || test ! -s conftest.err'
20309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20310 (eval $ac_try) 2>&5
20311 ac_status=$?
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); }; } &&
20314 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20316 (eval $ac_try) 2>&5
20317 ac_status=$?
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }; }; then
20320 ac_cv_type_int64_t=yes
20321else
20322 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020323sed 's/^/| /' conftest.$ac_ext >&5
20324
John Criswell7a73b802003-06-30 21:59:07 +000020325ac_cv_type_int64_t=no
20326fi
Reid Spencer17041682004-09-05 17:48:32 +000020327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020328fi
20329echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20330echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20331if test $ac_cv_type_int64_t = yes; then
20332
20333cat >>confdefs.h <<_ACEOF
20334#define HAVE_INT64_T 1
20335_ACEOF
20336
20337
20338else
20339 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20340echo "$as_me: error: Type int64_t required but not found" >&2;}
20341 { (exit 1); exit 1; }; }
20342fi
20343
20344echo "$as_me:$LINENO: checking for uint64_t" >&5
20345echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20346if test "${ac_cv_type_uint64_t+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20348else
20349 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020350/* confdefs.h. */
20351_ACEOF
20352cat confdefs.h >>conftest.$ac_ext
20353cat >>conftest.$ac_ext <<_ACEOF
20354/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020355$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020356int
20357main ()
20358{
20359if ((uint64_t *) 0)
20360 return 0;
20361if (sizeof (uint64_t))
20362 return 0;
20363 ;
20364 return 0;
20365}
20366_ACEOF
20367rm -f conftest.$ac_objext
20368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020369 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020370 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020371 grep -v '^ *+' conftest.er1 >conftest.err
20372 rm -f conftest.er1
20373 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020376 { ac_try='test -z "$ac_c_werror_flag"
20377 || test ! -s conftest.err'
20378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20379 (eval $ac_try) 2>&5
20380 ac_status=$?
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }; } &&
20383 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20385 (eval $ac_try) 2>&5
20386 ac_status=$?
20387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20388 (exit $ac_status); }; }; then
20389 ac_cv_type_uint64_t=yes
20390else
20391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020392sed 's/^/| /' conftest.$ac_ext >&5
20393
John Criswell7a73b802003-06-30 21:59:07 +000020394ac_cv_type_uint64_t=no
20395fi
Reid Spencer17041682004-09-05 17:48:32 +000020396rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020397fi
20398echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20399echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20400if test $ac_cv_type_uint64_t = yes; then
20401
20402cat >>confdefs.h <<_ACEOF
20403#define HAVE_UINT64_T 1
20404_ACEOF
20405
20406
20407else
Misha Brukmanceca9042004-09-02 23:02:30 +000020408 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000020409echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20410if test "${ac_cv_type_u_int64_t+set}" = set; then
20411 echo $ECHO_N "(cached) $ECHO_C" >&6
20412else
20413 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000020414/* confdefs.h. */
20415_ACEOF
20416cat confdefs.h >>conftest.$ac_ext
20417cat >>conftest.$ac_ext <<_ACEOF
20418/* end confdefs.h. */
20419$ac_includes_default
20420int
20421main ()
20422{
20423if ((u_int64_t *) 0)
20424 return 0;
20425if (sizeof (u_int64_t))
20426 return 0;
20427 ;
20428 return 0;
20429}
20430_ACEOF
20431rm -f conftest.$ac_objext
20432if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020433 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000020434 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020435 grep -v '^ *+' conftest.er1 >conftest.err
20436 rm -f conftest.er1
20437 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000020438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020440 { ac_try='test -z "$ac_c_werror_flag"
20441 || test ! -s conftest.err'
20442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20443 (eval $ac_try) 2>&5
20444 ac_status=$?
20445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446 (exit $ac_status); }; } &&
20447 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000020448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20449 (eval $ac_try) 2>&5
20450 ac_status=$?
20451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); }; }; then
20453 ac_cv_type_u_int64_t=yes
20454else
20455 echo "$as_me: failed program was:" >&5
20456sed 's/^/| /' conftest.$ac_ext >&5
20457
20458ac_cv_type_u_int64_t=no
20459fi
Reid Spencer17041682004-09-05 17:48:32 +000020460rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000020461fi
20462echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20463echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20464if test $ac_cv_type_u_int64_t = yes; then
20465
20466cat >>confdefs.h <<_ACEOF
20467#define HAVE_U_INT64_T 1
20468_ACEOF
20469
20470
Misha Brukmanceca9042004-09-02 23:02:30 +000020471else
20472 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20473echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20474 { (exit 1); exit 1; }; }
20475fi
20476
John Criswell679ff312004-09-02 18:44:44 +000020477fi
20478
John Criswell7a73b802003-06-30 21:59:07 +000020479echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20480echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20481if test "${ac_cv_header_time+set}" = set; then
20482 echo $ECHO_N "(cached) $ECHO_C" >&6
20483else
20484 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020485/* confdefs.h. */
20486_ACEOF
20487cat confdefs.h >>conftest.$ac_ext
20488cat >>conftest.$ac_ext <<_ACEOF
20489/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020490#include <sys/types.h>
20491#include <sys/time.h>
20492#include <time.h>
20493
John Criswell7a73b802003-06-30 21:59:07 +000020494int
20495main ()
20496{
20497if ((struct tm *) 0)
20498return 0;
20499 ;
20500 return 0;
20501}
20502_ACEOF
20503rm -f conftest.$ac_objext
20504if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020505 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020506 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020507 grep -v '^ *+' conftest.er1 >conftest.err
20508 rm -f conftest.er1
20509 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020512 { ac_try='test -z "$ac_c_werror_flag"
20513 || test ! -s conftest.err'
20514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20515 (eval $ac_try) 2>&5
20516 ac_status=$?
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); }; } &&
20519 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20521 (eval $ac_try) 2>&5
20522 ac_status=$?
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; }; then
20525 ac_cv_header_time=yes
20526else
20527 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020528sed 's/^/| /' conftest.$ac_ext >&5
20529
John Criswell7a73b802003-06-30 21:59:07 +000020530ac_cv_header_time=no
20531fi
Reid Spencer17041682004-09-05 17:48:32 +000020532rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020533fi
20534echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20535echo "${ECHO_T}$ac_cv_header_time" >&6
20536if test $ac_cv_header_time = yes; then
20537
20538cat >>confdefs.h <<\_ACEOF
20539#define TIME_WITH_SYS_TIME 1
20540_ACEOF
20541
20542fi
20543
20544echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20545echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20546if test "${ac_cv_struct_tm+set}" = set; then
20547 echo $ECHO_N "(cached) $ECHO_C" >&6
20548else
20549 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020550/* confdefs.h. */
20551_ACEOF
20552cat confdefs.h >>conftest.$ac_ext
20553cat >>conftest.$ac_ext <<_ACEOF
20554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020555#include <sys/types.h>
20556#include <time.h>
20557
John Criswell7a73b802003-06-30 21:59:07 +000020558int
20559main ()
20560{
20561struct tm *tp; tp->tm_sec;
20562 ;
20563 return 0;
20564}
20565_ACEOF
20566rm -f conftest.$ac_objext
20567if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020568 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020569 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020570 grep -v '^ *+' conftest.er1 >conftest.err
20571 rm -f conftest.er1
20572 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020575 { ac_try='test -z "$ac_c_werror_flag"
20576 || test ! -s conftest.err'
20577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20578 (eval $ac_try) 2>&5
20579 ac_status=$?
20580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20581 (exit $ac_status); }; } &&
20582 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20584 (eval $ac_try) 2>&5
20585 ac_status=$?
20586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20587 (exit $ac_status); }; }; then
20588 ac_cv_struct_tm=time.h
20589else
20590 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020591sed 's/^/| /' conftest.$ac_ext >&5
20592
John Criswell7a73b802003-06-30 21:59:07 +000020593ac_cv_struct_tm=sys/time.h
20594fi
Reid Spencer17041682004-09-05 17:48:32 +000020595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020596fi
20597echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20598echo "${ECHO_T}$ac_cv_struct_tm" >&6
20599if test $ac_cv_struct_tm = sys/time.h; then
20600
20601cat >>confdefs.h <<\_ACEOF
20602#define TM_IN_SYS_TIME 1
20603_ACEOF
20604
20605fi
20606
20607
John Criswella0137d32003-10-13 16:22:01 +000020608
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020609 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20610echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
John Criswella0137d32003-10-13 16:22:01 +000020611
20612
20613 ac_ext=c
20614ac_cpp='$CPP $CPPFLAGS'
20615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617ac_compiler_gnu=$ac_cv_c_compiler_gnu
20618
20619 if test "$cross_compiling" = yes; then
20620 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20621See \`config.log' for more details." >&5
20622echo "$as_me: error: cannot run test program while cross compiling
20623See \`config.log' for more details." >&2;}
20624 { (exit 1); exit 1; }; }
20625else
20626 cat >conftest.$ac_ext <<_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000020627/* confdefs.h. */
20628_ACEOF
20629cat confdefs.h >>conftest.$ac_ext
20630cat >>conftest.$ac_ext <<_ACEOF
20631/* end confdefs.h. */
20632#include <stdio.h>
20633 #include <stdlib.h>
20634int
20635main ()
20636{
20637
20638 volatile double A, B;
20639 char Buffer[100];
20640 A = 1;
20641 A /= 10.0;
20642 sprintf(Buffer, "%a", A);
20643 B = atof(Buffer);
20644 if (A != B)
20645 return (1);
20646 if (A != 0x1.999999999999ap-4)
20647 return (1);
20648 return (0);
20649 ;
20650 return 0;
20651}
20652_ACEOF
20653rm -f conftest$ac_exeext
20654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20655 (eval $ac_link) 2>&5
20656 ac_status=$?
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20660 (eval $ac_try) 2>&5
20661 ac_status=$?
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); }; }; then
20664 ac_c_printf_a=yes
20665else
20666 echo "$as_me: program exited with status $ac_status" >&5
20667echo "$as_me: failed program was:" >&5
20668sed 's/^/| /' conftest.$ac_ext >&5
20669
20670( exit $ac_status )
20671ac_c_printf_a=no
20672fi
Reid Spencer17041682004-09-05 17:48:32 +000020673rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000020674fi
20675 ac_ext=c
20676ac_cpp='$CPP $CPPFLAGS'
20677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20679ac_compiler_gnu=$ac_cv_c_compiler_gnu
20680
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020681 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20682echo "${ECHO_T}$ac_c_printf_a" >&6
John Criswella0137d32003-10-13 16:22:01 +000020683 if test "$ac_c_printf_a" = "yes"; then
20684
20685cat >>confdefs.h <<\_ACEOF
20686#define HAVE_PRINTF_A 1
20687_ACEOF
20688
20689 fi
20690
20691
John Criswell0021c312004-02-13 21:57:29 +000020692echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20693echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20694if test "${ac_cv_c_bigendian+set}" = set; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20696else
20697 # See if sys/param.h defines the BYTE_ORDER macro.
20698cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020699/* confdefs.h. */
20700_ACEOF
20701cat confdefs.h >>conftest.$ac_ext
20702cat >>conftest.$ac_ext <<_ACEOF
20703/* end confdefs.h. */
20704#include <sys/types.h>
20705#include <sys/param.h>
20706
20707int
20708main ()
20709{
20710#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20711 bogus endian macros
20712#endif
20713
20714 ;
20715 return 0;
20716}
20717_ACEOF
20718rm -f conftest.$ac_objext
20719if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020720 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020721 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020722 grep -v '^ *+' conftest.er1 >conftest.err
20723 rm -f conftest.er1
20724 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020727 { ac_try='test -z "$ac_c_werror_flag"
20728 || test ! -s conftest.err'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20731 ac_status=$?
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; } &&
20734 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20737 ac_status=$?
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; }; then
20740 # It does; now see whether it defined to BIG_ENDIAN or not.
20741cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020742/* confdefs.h. */
20743_ACEOF
20744cat confdefs.h >>conftest.$ac_ext
20745cat >>conftest.$ac_ext <<_ACEOF
20746/* end confdefs.h. */
20747#include <sys/types.h>
20748#include <sys/param.h>
20749
20750int
20751main ()
20752{
20753#if BYTE_ORDER != BIG_ENDIAN
20754 not big endian
20755#endif
20756
20757 ;
20758 return 0;
20759}
20760_ACEOF
20761rm -f conftest.$ac_objext
20762if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020763 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020764 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020765 grep -v '^ *+' conftest.er1 >conftest.err
20766 rm -f conftest.er1
20767 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20769 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020770 { ac_try='test -z "$ac_c_werror_flag"
20771 || test ! -s conftest.err'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20774 ac_status=$?
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; } &&
20777 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20779 (eval $ac_try) 2>&5
20780 ac_status=$?
20781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20782 (exit $ac_status); }; }; then
20783 ac_cv_c_bigendian=yes
20784else
20785 echo "$as_me: failed program was:" >&5
20786sed 's/^/| /' conftest.$ac_ext >&5
20787
20788ac_cv_c_bigendian=no
20789fi
Reid Spencer17041682004-09-05 17:48:32 +000020790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020791else
20792 echo "$as_me: failed program was:" >&5
20793sed 's/^/| /' conftest.$ac_ext >&5
20794
20795# It does not; compile a test program.
20796if test "$cross_compiling" = yes; then
20797 # try to guess the endianness by grepping values into an object file
20798 ac_cv_c_bigendian=unknown
20799 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020800/* confdefs.h. */
20801_ACEOF
20802cat confdefs.h >>conftest.$ac_ext
20803cat >>conftest.$ac_ext <<_ACEOF
20804/* end confdefs.h. */
20805short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20806short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20807void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20808short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20809short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20810void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20811int
20812main ()
20813{
20814 _ascii (); _ebcdic ();
20815 ;
20816 return 0;
20817}
20818_ACEOF
20819rm -f conftest.$ac_objext
20820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020821 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020822 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020823 grep -v '^ *+' conftest.er1 >conftest.err
20824 rm -f conftest.er1
20825 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20827 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020828 { ac_try='test -z "$ac_c_werror_flag"
20829 || test ! -s conftest.err'
20830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20831 (eval $ac_try) 2>&5
20832 ac_status=$?
20833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20834 (exit $ac_status); }; } &&
20835 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20837 (eval $ac_try) 2>&5
20838 ac_status=$?
20839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20840 (exit $ac_status); }; }; then
20841 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20842 ac_cv_c_bigendian=yes
20843fi
20844if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20845 if test "$ac_cv_c_bigendian" = unknown; then
20846 ac_cv_c_bigendian=no
20847 else
20848 # finding both strings is unlikely to happen, but who knows?
20849 ac_cv_c_bigendian=unknown
20850 fi
20851fi
20852else
20853 echo "$as_me: failed program was:" >&5
20854sed 's/^/| /' conftest.$ac_ext >&5
20855
20856fi
Reid Spencer17041682004-09-05 17:48:32 +000020857rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020858else
20859 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020860/* confdefs.h. */
20861_ACEOF
20862cat confdefs.h >>conftest.$ac_ext
20863cat >>conftest.$ac_ext <<_ACEOF
20864/* end confdefs.h. */
20865int
20866main ()
20867{
20868 /* Are we little or big endian? From Harbison&Steele. */
20869 union
20870 {
20871 long l;
20872 char c[sizeof (long)];
20873 } u;
20874 u.l = 1;
20875 exit (u.c[sizeof (long) - 1] == 1);
20876}
20877_ACEOF
20878rm -f conftest$ac_exeext
20879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20880 (eval $ac_link) 2>&5
20881 ac_status=$?
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; }; then
20889 ac_cv_c_bigendian=no
20890else
20891 echo "$as_me: program exited with status $ac_status" >&5
20892echo "$as_me: failed program was:" >&5
20893sed 's/^/| /' conftest.$ac_ext >&5
20894
20895( exit $ac_status )
20896ac_cv_c_bigendian=yes
20897fi
Reid Spencer17041682004-09-05 17:48:32 +000020898rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020899fi
20900fi
Reid Spencer17041682004-09-05 17:48:32 +000020901rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020902fi
20903echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20904echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20905case $ac_cv_c_bigendian in
20906 yes)
20907 ENDIAN=big
20908 ;;
20909 no)
20910 ENDIAN=little
20911 ;;
20912 *)
20913 { { echo "$as_me:$LINENO: error: unknown endianness
20914presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20915echo "$as_me: error: unknown endianness
20916presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20917 { (exit 1); exit 1; }; } ;;
20918esac
20919
20920
John Criswell7a73b802003-06-30 21:59:07 +000020921echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20922echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20923if test "${ac_cv_cxx_namespaces+set}" = set; then
20924 echo $ECHO_N "(cached) $ECHO_C" >&6
20925else
20926
20927
20928 ac_ext=cc
20929ac_cpp='$CXXCPP $CPPFLAGS'
20930ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20931ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20932ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20933
20934 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020935/* confdefs.h. */
20936_ACEOF
20937cat confdefs.h >>conftest.$ac_ext
20938cat >>conftest.$ac_ext <<_ACEOF
20939/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020940namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020941int
20942main ()
20943{
20944using namespace Outer::Inner; return i;
20945 ;
20946 return 0;
20947}
20948_ACEOF
20949rm -f conftest.$ac_objext
20950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020951 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020952 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020953 grep -v '^ *+' conftest.er1 >conftest.err
20954 rm -f conftest.er1
20955 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020958 { ac_try='test -z "$ac_cxx_werror_flag"
20959 || test ! -s conftest.err'
20960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20961 (eval $ac_try) 2>&5
20962 ac_status=$?
20963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20964 (exit $ac_status); }; } &&
20965 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20967 (eval $ac_try) 2>&5
20968 ac_status=$?
20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20970 (exit $ac_status); }; }; then
20971 ac_cv_cxx_namespaces=yes
20972else
20973 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020974sed 's/^/| /' conftest.$ac_ext >&5
20975
John Criswell7a73b802003-06-30 21:59:07 +000020976ac_cv_cxx_namespaces=no
20977fi
Reid Spencer17041682004-09-05 17:48:32 +000020978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020979 ac_ext=c
20980ac_cpp='$CPP $CPPFLAGS'
20981ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20982ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20983ac_compiler_gnu=$ac_cv_c_compiler_gnu
20984
20985
20986fi
20987echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20988echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20989if test "$ac_cv_cxx_namespaces" = yes; then
20990
20991cat >>confdefs.h <<\_ACEOF
20992#define HAVE_NAMESPACES
20993_ACEOF
20994
20995fi
20996
Brian Gaeke90583492003-11-10 03:06:28 +000020997echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20998echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20999if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021000 echo $ECHO_N "(cached) $ECHO_C" >&6
21001else
21002
21003
21004
21005 ac_ext=cc
21006ac_cpp='$CXXCPP $CPPFLAGS'
21007ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21008ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21009ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21010
21011 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021012/* confdefs.h. */
21013_ACEOF
21014cat confdefs.h >>conftest.$ac_ext
21015cat >>conftest.$ac_ext <<_ACEOF
21016/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021017#include <ext/hash_map>
21018#ifdef HAVE_NAMESPACES
21019using namespace std;
21020#endif
John Criswell7a73b802003-06-30 21:59:07 +000021021int
21022main ()
21023{
Brian Gaeke90583492003-11-10 03:06:28 +000021024hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021025 ;
21026 return 0;
21027}
21028_ACEOF
21029rm -f conftest.$ac_objext
21030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021031 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021032 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021033 grep -v '^ *+' conftest.er1 >conftest.err
21034 rm -f conftest.er1
21035 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21037 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021038 { ac_try='test -z "$ac_cxx_werror_flag"
21039 || test ! -s conftest.err'
21040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21041 (eval $ac_try) 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; } &&
21045 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21047 (eval $ac_try) 2>&5
21048 ac_status=$?
21049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21050 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021051 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000021052else
21053 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021054sed 's/^/| /' conftest.$ac_ext >&5
21055
Brian Gaeke90583492003-11-10 03:06:28 +000021056ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021057fi
Reid Spencer17041682004-09-05 17:48:32 +000021058rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021059 ac_ext=c
21060ac_cpp='$CPP $CPPFLAGS'
21061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21063ac_compiler_gnu=$ac_cv_c_compiler_gnu
21064
John Criswell7a73b802003-06-30 21:59:07 +000021065fi
Brian Gaeke90583492003-11-10 03:06:28 +000021066echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21067echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021068 HAVE_STD_EXT_HASH_MAP=0
21069 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21070 then
21071 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021072 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021073
Brian Gaeke90583492003-11-10 03:06:28 +000021074 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21075echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21076if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21077 echo $ECHO_N "(cached) $ECHO_C" >&6
21078else
21079
21080
21081
21082 ac_ext=cc
21083ac_cpp='$CXXCPP $CPPFLAGS'
21084ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21085ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21086ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21087
21088 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021089/* confdefs.h. */
21090_ACEOF
21091cat confdefs.h >>conftest.$ac_ext
21092cat >>conftest.$ac_ext <<_ACEOF
21093/* end confdefs.h. */
21094#include <ext/hash_map>
21095#ifdef HAVE_NAMESPACES
21096using namespace __gnu_cxx;
21097#endif
21098int
21099main ()
21100{
21101hash_map<int,int> t;
21102 ;
21103 return 0;
21104}
21105_ACEOF
21106rm -f conftest.$ac_objext
21107if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021108 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021109 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021110 grep -v '^ *+' conftest.er1 >conftest.err
21111 rm -f conftest.er1
21112 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021115 { ac_try='test -z "$ac_cxx_werror_flag"
21116 || test ! -s conftest.err'
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21119 ac_status=$?
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; } &&
21122 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21124 (eval $ac_try) 2>&5
21125 ac_status=$?
21126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21127 (exit $ac_status); }; }; then
21128 ac_cv_cxx_have_gnu_ext_hash_map=yes
21129else
21130 echo "$as_me: failed program was:" >&5
21131sed 's/^/| /' conftest.$ac_ext >&5
21132
21133ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021134fi
Reid Spencer17041682004-09-05 17:48:32 +000021135rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021136 ac_ext=c
21137ac_cpp='$CPP $CPPFLAGS'
21138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21140ac_compiler_gnu=$ac_cv_c_compiler_gnu
21141
21142fi
21143echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21144echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021145 HAVE_GNU_EXT_HASH_MAP=0
21146 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21147 then
21148 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021149 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021150
Brian Gaeke90583492003-11-10 03:06:28 +000021151 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21152echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21153if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21154 echo $ECHO_N "(cached) $ECHO_C" >&6
21155else
John Criswell7a73b802003-06-30 21:59:07 +000021156
Brian Gaeke90583492003-11-10 03:06:28 +000021157
21158
21159 ac_ext=cc
21160ac_cpp='$CXXCPP $CPPFLAGS'
21161ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21162ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21163ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21164
21165 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021166/* confdefs.h. */
21167_ACEOF
21168cat confdefs.h >>conftest.$ac_ext
21169cat >>conftest.$ac_ext <<_ACEOF
21170/* end confdefs.h. */
21171#include <hash_map>
21172int
21173main ()
21174{
21175hash_map<int,int> t;
21176 ;
21177 return 0;
21178}
21179_ACEOF
21180rm -f conftest.$ac_objext
21181if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021182 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021183 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021184 grep -v '^ *+' conftest.er1 >conftest.err
21185 rm -f conftest.er1
21186 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021189 { ac_try='test -z "$ac_cxx_werror_flag"
21190 || test ! -s conftest.err'
21191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21192 (eval $ac_try) 2>&5
21193 ac_status=$?
21194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21195 (exit $ac_status); }; } &&
21196 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21198 (eval $ac_try) 2>&5
21199 ac_status=$?
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); }; }; then
21202 ac_cv_cxx_have_global_hash_map=yes
21203else
21204 echo "$as_me: failed program was:" >&5
21205sed 's/^/| /' conftest.$ac_ext >&5
21206
21207ac_cv_cxx_have_global_hash_map=no
21208fi
Reid Spencer17041682004-09-05 17:48:32 +000021209rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021210 ac_ext=c
21211ac_cpp='$CPP $CPPFLAGS'
21212ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21213ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21214ac_compiler_gnu=$ac_cv_c_compiler_gnu
21215
21216fi
21217echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21218echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021219 HAVE_GLOBAL_HASH_MAP=0
21220 if test "$ac_cv_cxx_have_global_hash_map" = yes
21221 then
21222 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021223 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021224
Brian Gaeke90583492003-11-10 03:06:28 +000021225echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21226echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21227if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021228 echo $ECHO_N "(cached) $ECHO_C" >&6
21229else
21230
21231
21232
21233 ac_ext=cc
21234ac_cpp='$CXXCPP $CPPFLAGS'
21235ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21236ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21237ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21238
21239 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021240/* confdefs.h. */
21241_ACEOF
21242cat confdefs.h >>conftest.$ac_ext
21243cat >>conftest.$ac_ext <<_ACEOF
21244/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021245#include <ext/hash_set>
21246#ifdef HAVE_NAMESPACES
21247using namespace std;
21248#endif
John Criswell7a73b802003-06-30 21:59:07 +000021249int
21250main ()
21251{
Brian Gaeke90583492003-11-10 03:06:28 +000021252hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021253 ;
21254 return 0;
21255}
21256_ACEOF
21257rm -f conftest.$ac_objext
21258if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021259 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021260 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021261 grep -v '^ *+' conftest.er1 >conftest.err
21262 rm -f conftest.er1
21263 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021266 { ac_try='test -z "$ac_cxx_werror_flag"
21267 || test ! -s conftest.err'
21268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21269 (eval $ac_try) 2>&5
21270 ac_status=$?
21271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21272 (exit $ac_status); }; } &&
21273 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21275 (eval $ac_try) 2>&5
21276 ac_status=$?
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021279 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021280else
21281 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021282sed 's/^/| /' conftest.$ac_ext >&5
21283
Brian Gaeke90583492003-11-10 03:06:28 +000021284ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021285fi
Reid Spencer17041682004-09-05 17:48:32 +000021286rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021287 ac_ext=c
21288ac_cpp='$CPP $CPPFLAGS'
21289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21291ac_compiler_gnu=$ac_cv_c_compiler_gnu
21292
21293fi
21294echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21295echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021296 HAVE_STD_EXT_HASH_SET=0
21297 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21298 then
21299 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021300 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021301
Brian Gaeke90583492003-11-10 03:06:28 +000021302 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21303echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21304if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21306else
21307
21308
21309
21310 ac_ext=cc
21311ac_cpp='$CXXCPP $CPPFLAGS'
21312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21315
John Criswell7a73b802003-06-30 21:59:07 +000021316 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021317/* confdefs.h. */
21318_ACEOF
21319cat confdefs.h >>conftest.$ac_ext
21320cat >>conftest.$ac_ext <<_ACEOF
21321/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021322#include <ext/hash_set>
21323#ifdef HAVE_NAMESPACES
21324using namespace __gnu_cxx;
21325#endif
John Criswell7a73b802003-06-30 21:59:07 +000021326int
21327main ()
21328{
Brian Gaeke90583492003-11-10 03:06:28 +000021329hash_set<int> t;
21330 ;
21331 return 0;
21332}
21333_ACEOF
21334rm -f conftest.$ac_objext
21335if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021336 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021337 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021338 grep -v '^ *+' conftest.er1 >conftest.err
21339 rm -f conftest.er1
21340 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21342 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021343 { ac_try='test -z "$ac_cxx_werror_flag"
21344 || test ! -s conftest.err'
21345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21346 (eval $ac_try) 2>&5
21347 ac_status=$?
21348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21349 (exit $ac_status); }; } &&
21350 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21352 (eval $ac_try) 2>&5
21353 ac_status=$?
21354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21355 (exit $ac_status); }; }; then
21356 ac_cv_cxx_have_gnu_ext_hash_set=yes
21357else
21358 echo "$as_me: failed program was:" >&5
21359sed 's/^/| /' conftest.$ac_ext >&5
21360
21361ac_cv_cxx_have_gnu_ext_hash_set=no
21362fi
Reid Spencer17041682004-09-05 17:48:32 +000021363rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021364 ac_ext=c
21365ac_cpp='$CPP $CPPFLAGS'
21366ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21367ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21368ac_compiler_gnu=$ac_cv_c_compiler_gnu
21369
21370fi
21371echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21372echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021373 HAVE_GNU_EXT_HASH_SET=0
21374 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21375 then
21376 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021377 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021378
Brian Gaeke90583492003-11-10 03:06:28 +000021379 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21380echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21381if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21383else
21384
21385
21386
21387 ac_ext=cc
21388ac_cpp='$CXXCPP $CPPFLAGS'
21389ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21390ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21391ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21392
21393 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021394/* confdefs.h. */
21395_ACEOF
21396cat confdefs.h >>conftest.$ac_ext
21397cat >>conftest.$ac_ext <<_ACEOF
21398/* end confdefs.h. */
21399#include <hash_set>
21400int
21401main ()
21402{
John Criswell7a73b802003-06-30 21:59:07 +000021403hash_set<int> t; return 0;
21404 ;
21405 return 0;
21406}
21407_ACEOF
21408rm -f conftest.$ac_objext
21409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021410 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021411 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021412 grep -v '^ *+' conftest.er1 >conftest.err
21413 rm -f conftest.er1
21414 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21416 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021417 { ac_try='test -z "$ac_cxx_werror_flag"
21418 || test ! -s conftest.err'
21419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420 (eval $ac_try) 2>&5
21421 ac_status=$?
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; } &&
21424 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21426 (eval $ac_try) 2>&5
21427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021430 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021431else
21432 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021433sed 's/^/| /' conftest.$ac_ext >&5
21434
Brian Gaeke90583492003-11-10 03:06:28 +000021435ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021436fi
Reid Spencer17041682004-09-05 17:48:32 +000021437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021438 ac_ext=c
21439ac_cpp='$CPP $CPPFLAGS'
21440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21442ac_compiler_gnu=$ac_cv_c_compiler_gnu
21443
John Criswell7a73b802003-06-30 21:59:07 +000021444fi
Brian Gaeke90583492003-11-10 03:06:28 +000021445echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21446echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021447 HAVE_GLOBAL_HASH_SET=0
21448 if test "$ac_cv_cxx_have_global_hash_set" = yes
21449 then
21450 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021451 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021452
John Criswell7a73b802003-06-30 21:59:07 +000021453echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21454echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21455if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21457else
21458
21459
21460
21461 ac_ext=cc
21462ac_cpp='$CXXCPP $CPPFLAGS'
21463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21466
21467 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021468/* confdefs.h. */
21469_ACEOF
21470cat confdefs.h >>conftest.$ac_ext
21471cat >>conftest.$ac_ext <<_ACEOF
21472/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021473#include <iterator>
21474#ifdef HAVE_NAMESPACES
21475using namespace std;
21476#endif
John Criswell7a73b802003-06-30 21:59:07 +000021477int
21478main ()
21479{
21480iterator<int,int,int> t; return 0;
21481 ;
21482 return 0;
21483}
21484_ACEOF
21485rm -f conftest.$ac_objext
21486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021487 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021488 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021489 grep -v '^ *+' conftest.er1 >conftest.err
21490 rm -f conftest.er1
21491 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021494 { ac_try='test -z "$ac_cxx_werror_flag"
21495 || test ! -s conftest.err'
21496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21497 (eval $ac_try) 2>&5
21498 ac_status=$?
21499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21500 (exit $ac_status); }; } &&
21501 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21503 (eval $ac_try) 2>&5
21504 ac_status=$?
21505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21506 (exit $ac_status); }; }; then
21507 ac_cv_cxx_have_std_iterator=yes
21508else
21509 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021510sed 's/^/| /' conftest.$ac_ext >&5
21511
John Criswell7a73b802003-06-30 21:59:07 +000021512ac_cv_cxx_have_std_iterator=no
21513fi
Reid Spencer17041682004-09-05 17:48:32 +000021514rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021515 ac_ext=c
21516ac_cpp='$CPP $CPPFLAGS'
21517ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21518ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21519ac_compiler_gnu=$ac_cv_c_compiler_gnu
21520
21521
21522fi
21523echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21524echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021525HAVE_STD_ITERATOR=0
21526if test "$ac_cv_cxx_have_std_iterator" = yes
21527then
21528 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021529fi
21530
21531echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21532echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21533if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21534 echo $ECHO_N "(cached) $ECHO_C" >&6
21535else
21536
21537
21538
21539 ac_ext=cc
21540ac_cpp='$CXXCPP $CPPFLAGS'
21541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21544
21545 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021546/* confdefs.h. */
21547_ACEOF
21548cat confdefs.h >>conftest.$ac_ext
21549cat >>conftest.$ac_ext <<_ACEOF
21550/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021551#include <iterator>
21552#ifdef HAVE_NAMESPACES
21553using namespace std;
21554#endif
John Criswell7a73b802003-06-30 21:59:07 +000021555int
21556main ()
21557{
John Criswellc78022e2003-07-29 19:11:58 +000021558bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021559 ;
21560 return 0;
21561}
21562_ACEOF
21563rm -f conftest.$ac_objext
21564if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021565 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021566 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021567 grep -v '^ *+' conftest.er1 >conftest.err
21568 rm -f conftest.er1
21569 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21571 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021572 { ac_try='test -z "$ac_cxx_werror_flag"
21573 || test ! -s conftest.err'
21574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21575 (eval $ac_try) 2>&5
21576 ac_status=$?
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); }; } &&
21579 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21581 (eval $ac_try) 2>&5
21582 ac_status=$?
21583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21584 (exit $ac_status); }; }; then
21585 ac_cv_cxx_have_bi_iterator=yes
21586else
21587 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021588sed 's/^/| /' conftest.$ac_ext >&5
21589
John Criswell7a73b802003-06-30 21:59:07 +000021590ac_cv_cxx_have_bi_iterator=no
21591fi
Reid Spencer17041682004-09-05 17:48:32 +000021592rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021593 ac_ext=c
21594ac_cpp='$CPP $CPPFLAGS'
21595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21597ac_compiler_gnu=$ac_cv_c_compiler_gnu
21598
21599
21600fi
21601echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21602echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021603HAVE_BI_ITERATOR=0
21604if test "$ac_cv_cxx_have_bi_iterator" = yes
21605then
21606 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021607fi
21608
21609echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21610echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21611if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21612 echo $ECHO_N "(cached) $ECHO_C" >&6
21613else
21614
21615
21616
21617 ac_ext=cc
21618ac_cpp='$CXXCPP $CPPFLAGS'
21619ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21620ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21621ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21622
21623 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021624/* confdefs.h. */
21625_ACEOF
21626cat confdefs.h >>conftest.$ac_ext
21627cat >>conftest.$ac_ext <<_ACEOF
21628/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021629#include <iterator>
21630#ifdef HAVE_NAMESPACES
21631using namespace std;
21632#endif
John Criswell7a73b802003-06-30 21:59:07 +000021633int
21634main ()
21635{
John Criswellc78022e2003-07-29 19:11:58 +000021636forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021637 ;
21638 return 0;
21639}
21640_ACEOF
21641rm -f conftest.$ac_objext
21642if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021643 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021644 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021645 grep -v '^ *+' conftest.er1 >conftest.err
21646 rm -f conftest.er1
21647 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021650 { ac_try='test -z "$ac_cxx_werror_flag"
21651 || test ! -s conftest.err'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21654 ac_status=$?
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; } &&
21657 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21659 (eval $ac_try) 2>&5
21660 ac_status=$?
21661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21662 (exit $ac_status); }; }; then
21663 ac_cv_cxx_have_fwd_iterator=yes
21664else
21665 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021666sed 's/^/| /' conftest.$ac_ext >&5
21667
John Criswell7a73b802003-06-30 21:59:07 +000021668ac_cv_cxx_have_fwd_iterator=no
21669fi
Reid Spencer17041682004-09-05 17:48:32 +000021670rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021671 ac_ext=c
21672ac_cpp='$CPP $CPPFLAGS'
21673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21675ac_compiler_gnu=$ac_cv_c_compiler_gnu
21676
21677
21678fi
21679echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21680echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021681HAVE_FWD_ITERATOR=0
21682if test "$ac_cv_cxx_have_fwd_iterator" = yes
21683then
21684 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021685fi
21686
21687
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021688
21689echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21690echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21691if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21692 echo $ECHO_N "(cached) $ECHO_C" >&6
21693else
21694 ac_ext=cc
21695ac_cpp='$CXXCPP $CPPFLAGS'
21696ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21697ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21698ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21699
21700 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021701/* confdefs.h. */
21702_ACEOF
21703cat confdefs.h >>conftest.$ac_ext
21704cat >>conftest.$ac_ext <<_ACEOF
21705/* end confdefs.h. */
21706#include <math.h>
21707 int foo(float f) {return isnan(f);}
21708_ACEOF
21709rm -f conftest.$ac_objext
21710if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021711 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021712 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021713 grep -v '^ *+' conftest.er1 >conftest.err
21714 rm -f conftest.er1
21715 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21717 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021718 { ac_try='test -z "$ac_cxx_werror_flag"
21719 || test ! -s conftest.err'
21720 { (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); }; } &&
21725 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21727 (eval $ac_try) 2>&5
21728 ac_status=$?
21729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21730 (exit $ac_status); }; }; then
21731 ac_cv_func_isnan_in_math_h=yes
21732else
21733 echo "$as_me: failed program was:" >&5
21734sed 's/^/| /' conftest.$ac_ext >&5
21735
21736ac_cv_func_isnan_in_math_h=no
21737fi
Reid Spencer17041682004-09-05 17:48:32 +000021738rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021739 ac_ext=c
21740ac_cpp='$CPP $CPPFLAGS'
21741ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21742ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21743ac_compiler_gnu=$ac_cv_c_compiler_gnu
21744
21745fi
21746echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21747echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21748 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21749 then
21750
21751cat >>confdefs.h <<\_ACEOF
21752#define HAVE_ISNAN_IN_MATH_H 1
21753_ACEOF
21754
21755 fi
21756echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21757echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21758if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21759 echo $ECHO_N "(cached) $ECHO_C" >&6
21760else
21761 ac_ext=cc
21762ac_cpp='$CXXCPP $CPPFLAGS'
21763ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21764ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21765ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21766
21767 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021768/* confdefs.h. */
21769_ACEOF
21770cat confdefs.h >>conftest.$ac_ext
21771cat >>conftest.$ac_ext <<_ACEOF
21772/* end confdefs.h. */
21773#include <cmath>
21774 int foo(float f) {return isnan(f);}
21775_ACEOF
21776rm -f conftest.$ac_objext
21777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021778 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021779 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021780 grep -v '^ *+' conftest.er1 >conftest.err
21781 rm -f conftest.er1
21782 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21784 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021785 { ac_try='test -z "$ac_cxx_werror_flag"
21786 || test ! -s conftest.err'
21787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21788 (eval $ac_try) 2>&5
21789 ac_status=$?
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); }; } &&
21792 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21795 ac_status=$?
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 ac_cv_func_isnan_in_cmath=yes
21799else
21800 echo "$as_me: failed program was:" >&5
21801sed 's/^/| /' conftest.$ac_ext >&5
21802
21803ac_cv_func_isnan_in_cmath=no
21804fi
Reid Spencer17041682004-09-05 17:48:32 +000021805rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021806 ac_ext=c
21807ac_cpp='$CPP $CPPFLAGS'
21808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21810ac_compiler_gnu=$ac_cv_c_compiler_gnu
21811
21812fi
21813echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21814echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21815 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21816 then
21817
21818cat >>confdefs.h <<\_ACEOF
21819#define HAVE_ISNAN_IN_CMATH 1
21820_ACEOF
21821
21822 fi
21823echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21824echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21825if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21826 echo $ECHO_N "(cached) $ECHO_C" >&6
21827else
21828 ac_ext=cc
21829ac_cpp='$CXXCPP $CPPFLAGS'
21830ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21831ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21832ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21833
21834 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021835/* confdefs.h. */
21836_ACEOF
21837cat confdefs.h >>conftest.$ac_ext
21838cat >>conftest.$ac_ext <<_ACEOF
21839/* end confdefs.h. */
21840#include <cmath>
21841 using std::isnan; int foo(float f) {return isnan(f);}
21842_ACEOF
21843rm -f conftest.$ac_objext
21844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021845 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021846 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021847 grep -v '^ *+' conftest.er1 >conftest.err
21848 rm -f conftest.er1
21849 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021852 { ac_try='test -z "$ac_cxx_werror_flag"
21853 || test ! -s conftest.err'
21854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21855 (eval $ac_try) 2>&5
21856 ac_status=$?
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); }; } &&
21859 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21861 (eval $ac_try) 2>&5
21862 ac_status=$?
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); }; }; then
21865 ac_cv_func_std_isnan_in_cmath=yes
21866else
21867 echo "$as_me: failed program was:" >&5
21868sed 's/^/| /' conftest.$ac_ext >&5
21869
21870ac_cv_func_std_isnan_in_cmath=no
21871fi
Reid Spencer17041682004-09-05 17:48:32 +000021872rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021873 ac_ext=c
21874ac_cpp='$CPP $CPPFLAGS'
21875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21877ac_compiler_gnu=$ac_cv_c_compiler_gnu
21878
21879fi
21880echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21881echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21882 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21883 then
21884
21885cat >>confdefs.h <<\_ACEOF
21886#define HAVE_STD_ISNAN_IN_CMATH 1
21887_ACEOF
21888
21889 fi
21890
21891
Brian Gaeke52a551d2004-07-21 03:14:12 +000021892echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21893echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21894if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21895 echo $ECHO_N "(cached) $ECHO_C" >&6
21896else
21897 ac_ext=cc
21898ac_cpp='$CXXCPP $CPPFLAGS'
21899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21902
21903 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021904/* confdefs.h. */
21905_ACEOF
21906cat confdefs.h >>conftest.$ac_ext
21907cat >>conftest.$ac_ext <<_ACEOF
21908/* end confdefs.h. */
21909#include <math.h>
21910 int foo(float f) {return isinf(f);}
21911_ACEOF
21912rm -f conftest.$ac_objext
21913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021914 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000021915 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021916 grep -v '^ *+' conftest.er1 >conftest.err
21917 rm -f conftest.er1
21918 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021921 { ac_try='test -z "$ac_cxx_werror_flag"
21922 || test ! -s conftest.err'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21925 ac_status=$?
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; } &&
21928 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000021929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21930 (eval $ac_try) 2>&5
21931 ac_status=$?
21932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21933 (exit $ac_status); }; }; then
21934 ac_cv_func_isinf_in_math_h=yes
21935else
21936 echo "$as_me: failed program was:" >&5
21937sed 's/^/| /' conftest.$ac_ext >&5
21938
21939ac_cv_func_isinf_in_math_h=no
21940fi
Reid Spencer17041682004-09-05 17:48:32 +000021941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000021942 ac_ext=c
21943ac_cpp='$CPP $CPPFLAGS'
21944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21946ac_compiler_gnu=$ac_cv_c_compiler_gnu
21947
21948fi
21949echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21950echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21951 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21952 then
21953
21954cat >>confdefs.h <<\_ACEOF
21955#define HAVE_ISINF_IN_MATH_H 1
21956_ACEOF
21957
21958 fi
21959echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21960echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21961if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21962 echo $ECHO_N "(cached) $ECHO_C" >&6
21963else
21964 ac_ext=cc
21965ac_cpp='$CXXCPP $CPPFLAGS'
21966ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21967ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21968ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21969
21970 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021971/* confdefs.h. */
21972_ACEOF
21973cat confdefs.h >>conftest.$ac_ext
21974cat >>conftest.$ac_ext <<_ACEOF
21975/* end confdefs.h. */
21976#include <cmath>
21977 int foo(float f) {return isinf(f);}
21978_ACEOF
21979rm -f conftest.$ac_objext
21980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021981 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000021982 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021983 grep -v '^ *+' conftest.er1 >conftest.err
21984 rm -f conftest.er1
21985 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021988 { ac_try='test -z "$ac_cxx_werror_flag"
21989 || test ! -s conftest.err'
21990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21991 (eval $ac_try) 2>&5
21992 ac_status=$?
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); }; } &&
21995 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000021996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21997 (eval $ac_try) 2>&5
21998 ac_status=$?
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); }; }; then
22001 ac_cv_func_isinf_in_cmath=yes
22002else
22003 echo "$as_me: failed program was:" >&5
22004sed 's/^/| /' conftest.$ac_ext >&5
22005
22006ac_cv_func_isinf_in_cmath=no
22007fi
Reid Spencer17041682004-09-05 17:48:32 +000022008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022009 ac_ext=c
22010ac_cpp='$CPP $CPPFLAGS'
22011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22013ac_compiler_gnu=$ac_cv_c_compiler_gnu
22014
22015fi
22016echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
22017echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
22018 if test "$ac_cv_func_isinf_in_cmath" = "yes"
22019 then
22020
22021cat >>confdefs.h <<\_ACEOF
22022#define HAVE_ISINF_IN_CMATH 1
22023_ACEOF
22024
22025 fi
22026echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
22027echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
22028if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
22029 echo $ECHO_N "(cached) $ECHO_C" >&6
22030else
22031 ac_ext=cc
22032ac_cpp='$CXXCPP $CPPFLAGS'
22033ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22034ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22035ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22036
22037 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022038/* confdefs.h. */
22039_ACEOF
22040cat confdefs.h >>conftest.$ac_ext
22041cat >>conftest.$ac_ext <<_ACEOF
22042/* end confdefs.h. */
22043#include <cmath>
22044 using std::isinf; int foo(float f) {return isinf(f);}
22045_ACEOF
22046rm -f conftest.$ac_objext
22047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022048 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022049 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022050 grep -v '^ *+' conftest.er1 >conftest.err
22051 rm -f conftest.er1
22052 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022055 { ac_try='test -z "$ac_cxx_werror_flag"
22056 || test ! -s conftest.err'
22057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22058 (eval $ac_try) 2>&5
22059 ac_status=$?
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); }; } &&
22062 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22065 ac_status=$?
22066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; }; then
22068 ac_cv_func_std_isinf_in_cmath=yes
22069else
22070 echo "$as_me: failed program was:" >&5
22071sed 's/^/| /' conftest.$ac_ext >&5
22072
22073ac_cv_func_std_isinf_in_cmath=no
22074fi
Reid Spencer17041682004-09-05 17:48:32 +000022075rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022076 ac_ext=c
22077ac_cpp='$CPP $CPPFLAGS'
22078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22080ac_compiler_gnu=$ac_cv_c_compiler_gnu
22081
22082fi
22083echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22084echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22085 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22086 then
22087
22088cat >>confdefs.h <<\_ACEOF
22089#define HAVE_STD_ISINF_IN_CMATH 1
22090_ACEOF
22091
22092 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000022093echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22094echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22095if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22096 echo $ECHO_N "(cached) $ECHO_C" >&6
22097else
22098 ac_ext=cc
22099ac_cpp='$CXXCPP $CPPFLAGS'
22100ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22101ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22102ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22103
22104 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000022105/* confdefs.h. */
22106_ACEOF
22107cat confdefs.h >>conftest.$ac_ext
22108cat >>conftest.$ac_ext <<_ACEOF
22109/* end confdefs.h. */
22110#include <ieeefp.h>
22111 int foo(float f) {return finite(f);}
22112_ACEOF
22113rm -f conftest.$ac_objext
22114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022115 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000022116 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022117 grep -v '^ *+' conftest.er1 >conftest.err
22118 rm -f conftest.er1
22119 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000022120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022122 { ac_try='test -z "$ac_cxx_werror_flag"
22123 || test ! -s conftest.err'
22124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22125 (eval $ac_try) 2>&5
22126 ac_status=$?
22127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22128 (exit $ac_status); }; } &&
22129 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000022130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22131 (eval $ac_try) 2>&5
22132 ac_status=$?
22133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134 (exit $ac_status); }; }; then
22135 ac_cv_func_finite_in_ieeefp_h=yes
22136else
22137 echo "$as_me: failed program was:" >&5
22138sed 's/^/| /' conftest.$ac_ext >&5
22139
22140ac_cv_func_finite_in_ieeefp_h=no
22141fi
Reid Spencer17041682004-09-05 17:48:32 +000022142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeked59a6472004-07-21 03:33:58 +000022143 ac_ext=c
22144ac_cpp='$CPP $CPPFLAGS'
22145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22147ac_compiler_gnu=$ac_cv_c_compiler_gnu
22148
22149fi
22150echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22151echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22152 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22153 then
22154
22155cat >>confdefs.h <<\_ACEOF
22156#define HAVE_FINITE_IN_IEEEFP_H 1
22157_ACEOF
22158
22159 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000022160
22161
John Criswell7a73b802003-06-30 21:59:07 +000022162# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22163# for constant arguments. Useless!
22164echo "$as_me:$LINENO: checking for working alloca.h" >&5
22165echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22166if test "${ac_cv_working_alloca_h+set}" = set; then
22167 echo $ECHO_N "(cached) $ECHO_C" >&6
22168else
22169 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022170/* confdefs.h. */
22171_ACEOF
22172cat confdefs.h >>conftest.$ac_ext
22173cat >>conftest.$ac_ext <<_ACEOF
22174/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022175#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000022176int
22177main ()
22178{
22179char *p = (char *) alloca (2 * sizeof (int));
22180 ;
22181 return 0;
22182}
22183_ACEOF
22184rm -f conftest.$ac_objext conftest$ac_exeext
22185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022186 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022187 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022188 grep -v '^ *+' conftest.er1 >conftest.err
22189 rm -f conftest.er1
22190 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22192 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022193 { ac_try='test -z "$ac_c_werror_flag"
22194 || test ! -s conftest.err'
22195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22196 (eval $ac_try) 2>&5
22197 ac_status=$?
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); }; } &&
22200 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202 (eval $ac_try) 2>&5
22203 ac_status=$?
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); }; }; then
22206 ac_cv_working_alloca_h=yes
22207else
22208 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022209sed 's/^/| /' conftest.$ac_ext >&5
22210
John Criswell7a73b802003-06-30 21:59:07 +000022211ac_cv_working_alloca_h=no
22212fi
Reid Spencer17041682004-09-05 17:48:32 +000022213rm -f conftest.err conftest.$ac_objext \
22214 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022215fi
22216echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22217echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22218if test $ac_cv_working_alloca_h = yes; then
22219
22220cat >>confdefs.h <<\_ACEOF
22221#define HAVE_ALLOCA_H 1
22222_ACEOF
22223
22224fi
22225
22226echo "$as_me:$LINENO: checking for alloca" >&5
22227echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22228if test "${ac_cv_func_alloca_works+set}" = set; then
22229 echo $ECHO_N "(cached) $ECHO_C" >&6
22230else
22231 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022232/* confdefs.h. */
22233_ACEOF
22234cat confdefs.h >>conftest.$ac_ext
22235cat >>conftest.$ac_ext <<_ACEOF
22236/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022237#ifdef __GNUC__
22238# define alloca __builtin_alloca
22239#else
22240# ifdef _MSC_VER
22241# include <malloc.h>
22242# define alloca _alloca
22243# else
22244# if HAVE_ALLOCA_H
22245# include <alloca.h>
22246# else
22247# ifdef _AIX
22248 #pragma alloca
22249# else
22250# ifndef alloca /* predefined by HP cc +Olibcalls */
22251char *alloca ();
22252# endif
22253# endif
22254# endif
22255# endif
22256#endif
22257
John Criswell7a73b802003-06-30 21:59:07 +000022258int
22259main ()
22260{
22261char *p = (char *) alloca (1);
22262 ;
22263 return 0;
22264}
22265_ACEOF
22266rm -f conftest.$ac_objext conftest$ac_exeext
22267if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022268 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022269 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022270 grep -v '^ *+' conftest.er1 >conftest.err
22271 rm -f conftest.er1
22272 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022275 { ac_try='test -z "$ac_c_werror_flag"
22276 || test ! -s conftest.err'
22277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22278 (eval $ac_try) 2>&5
22279 ac_status=$?
22280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22281 (exit $ac_status); }; } &&
22282 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22284 (eval $ac_try) 2>&5
22285 ac_status=$?
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); }; }; then
22288 ac_cv_func_alloca_works=yes
22289else
22290 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022291sed 's/^/| /' conftest.$ac_ext >&5
22292
John Criswell7a73b802003-06-30 21:59:07 +000022293ac_cv_func_alloca_works=no
22294fi
Reid Spencer17041682004-09-05 17:48:32 +000022295rm -f conftest.err conftest.$ac_objext \
22296 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022297fi
22298echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22299echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22300
22301if test $ac_cv_func_alloca_works = yes; then
22302
22303cat >>confdefs.h <<\_ACEOF
22304#define HAVE_ALLOCA 1
22305_ACEOF
22306
22307else
22308 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22309# that cause trouble. Some versions do not even contain alloca or
22310# contain a buggy version. If you still want to use their alloca,
22311# use ar to extract alloca.o from them instead of compiling alloca.c.
22312
22313ALLOCA=alloca.$ac_objext
22314
22315cat >>confdefs.h <<\_ACEOF
22316#define C_ALLOCA 1
22317_ACEOF
22318
22319
22320echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22321echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22322if test "${ac_cv_os_cray+set}" = set; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22324else
22325 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022326/* confdefs.h. */
22327_ACEOF
22328cat confdefs.h >>conftest.$ac_ext
22329cat >>conftest.$ac_ext <<_ACEOF
22330/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022331#if defined(CRAY) && ! defined(CRAY2)
22332webecray
22333#else
22334wenotbecray
22335#endif
22336
22337_ACEOF
22338if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000022339 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022340 ac_cv_os_cray=yes
22341else
22342 ac_cv_os_cray=no
22343fi
22344rm -f conftest*
22345
22346fi
22347echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22348echo "${ECHO_T}$ac_cv_os_cray" >&6
22349if test $ac_cv_os_cray = yes; then
22350 for ac_func in _getb67 GETB67 getb67; do
22351 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22352echo "$as_me:$LINENO: checking for $ac_func" >&5
22353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22354if eval "test \"\${$as_ac_var+set}\" = set"; then
22355 echo $ECHO_N "(cached) $ECHO_C" >&6
22356else
22357 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022358/* confdefs.h. */
22359_ACEOF
22360cat confdefs.h >>conftest.$ac_ext
22361cat >>conftest.$ac_ext <<_ACEOF
22362/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000022363/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22365#define $ac_func innocuous_$ac_func
22366
John Criswell7a73b802003-06-30 21:59:07 +000022367/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022368 which can conflict with char $ac_func (); below.
22369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22370 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000022371
John Criswell0c38eaf2003-09-10 15:17:25 +000022372#ifdef __STDC__
22373# include <limits.h>
22374#else
22375# include <assert.h>
22376#endif
Reid Spencer17041682004-09-05 17:48:32 +000022377
22378#undef $ac_func
22379
John Criswell7a73b802003-06-30 21:59:07 +000022380/* Override any gcc2 internal prototype to avoid an error. */
22381#ifdef __cplusplus
22382extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022383{
John Criswell7a73b802003-06-30 21:59:07 +000022384#endif
22385/* We use char because int might match the return type of a gcc2
22386 builtin and then its argument prototype would still apply. */
22387char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022388/* The GNU C library defines this for functions which it implements
22389 to always fail with ENOSYS. Some functions are actually named
22390 something starting with __ and the normal name is an alias. */
22391#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22392choke me
22393#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022394char (*f) () = $ac_func;
22395#endif
22396#ifdef __cplusplus
22397}
John Criswell7a73b802003-06-30 21:59:07 +000022398#endif
22399
John Criswell0c38eaf2003-09-10 15:17:25 +000022400int
22401main ()
22402{
22403return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022404 ;
22405 return 0;
22406}
22407_ACEOF
22408rm -f conftest.$ac_objext conftest$ac_exeext
22409if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022410 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022411 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022412 grep -v '^ *+' conftest.er1 >conftest.err
22413 rm -f conftest.er1
22414 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022417 { ac_try='test -z "$ac_c_werror_flag"
22418 || test ! -s conftest.err'
22419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22420 (eval $ac_try) 2>&5
22421 ac_status=$?
22422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22423 (exit $ac_status); }; } &&
22424 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22426 (eval $ac_try) 2>&5
22427 ac_status=$?
22428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22429 (exit $ac_status); }; }; then
22430 eval "$as_ac_var=yes"
22431else
22432 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022433sed 's/^/| /' conftest.$ac_ext >&5
22434
John Criswell7a73b802003-06-30 21:59:07 +000022435eval "$as_ac_var=no"
22436fi
Reid Spencer17041682004-09-05 17:48:32 +000022437rm -f conftest.err conftest.$ac_objext \
22438 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022439fi
22440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22441echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22442if test `eval echo '${'$as_ac_var'}'` = yes; then
22443
22444cat >>confdefs.h <<_ACEOF
22445#define CRAY_STACKSEG_END $ac_func
22446_ACEOF
22447
22448 break
22449fi
22450
22451 done
22452fi
22453
22454echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22455echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22456if test "${ac_cv_c_stack_direction+set}" = set; then
22457 echo $ECHO_N "(cached) $ECHO_C" >&6
22458else
22459 if test "$cross_compiling" = yes; then
22460 ac_cv_c_stack_direction=0
22461else
22462 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022463/* confdefs.h. */
22464_ACEOF
22465cat confdefs.h >>conftest.$ac_ext
22466cat >>conftest.$ac_ext <<_ACEOF
22467/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022468int
22469find_stack_direction ()
22470{
22471 static char *addr = 0;
22472 auto char dummy;
22473 if (addr == 0)
22474 {
22475 addr = &dummy;
22476 return find_stack_direction ();
22477 }
22478 else
22479 return (&dummy > addr) ? 1 : -1;
22480}
22481
22482int
22483main ()
22484{
22485 exit (find_stack_direction () < 0);
22486}
22487_ACEOF
22488rm -f conftest$ac_exeext
22489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22490 (eval $ac_link) 2>&5
22491 ac_status=$?
22492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22493 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22495 (eval $ac_try) 2>&5
22496 ac_status=$?
22497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498 (exit $ac_status); }; }; then
22499 ac_cv_c_stack_direction=1
22500else
22501 echo "$as_me: program exited with status $ac_status" >&5
22502echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022503sed 's/^/| /' conftest.$ac_ext >&5
22504
John Criswell7a73b802003-06-30 21:59:07 +000022505( exit $ac_status )
22506ac_cv_c_stack_direction=-1
22507fi
Reid Spencer17041682004-09-05 17:48:32 +000022508rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022509fi
22510fi
22511echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22512echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22513
22514cat >>confdefs.h <<_ACEOF
22515#define STACK_DIRECTION $ac_cv_c_stack_direction
22516_ACEOF
22517
22518
22519fi
22520
John Criswell7a73b802003-06-30 21:59:07 +000022521
22522
22523for ac_header in stdlib.h unistd.h
22524do
22525as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22526if eval "test \"\${$as_ac_Header+set}\" = set"; then
22527 echo "$as_me:$LINENO: checking for $ac_header" >&5
22528echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22529if eval "test \"\${$as_ac_Header+set}\" = set"; then
22530 echo $ECHO_N "(cached) $ECHO_C" >&6
22531fi
22532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22534else
22535 # Is the header compilable?
22536echo "$as_me:$LINENO: checking $ac_header usability" >&5
22537echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22538cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022539/* confdefs.h. */
22540_ACEOF
22541cat confdefs.h >>conftest.$ac_ext
22542cat >>conftest.$ac_ext <<_ACEOF
22543/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022544$ac_includes_default
22545#include <$ac_header>
22546_ACEOF
22547rm -f conftest.$ac_objext
22548if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022549 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022550 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022551 grep -v '^ *+' conftest.er1 >conftest.err
22552 rm -f conftest.er1
22553 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22555 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022556 { ac_try='test -z "$ac_c_werror_flag"
22557 || test ! -s conftest.err'
22558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22559 (eval $ac_try) 2>&5
22560 ac_status=$?
22561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22562 (exit $ac_status); }; } &&
22563 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22566 ac_status=$?
22567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; }; then
22569 ac_header_compiler=yes
22570else
22571 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022572sed 's/^/| /' conftest.$ac_ext >&5
22573
John Criswell7a73b802003-06-30 21:59:07 +000022574ac_header_compiler=no
22575fi
Reid Spencer17041682004-09-05 17:48:32 +000022576rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022577echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22578echo "${ECHO_T}$ac_header_compiler" >&6
22579
22580# Is the header present?
22581echo "$as_me:$LINENO: checking $ac_header presence" >&5
22582echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22583cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022584/* confdefs.h. */
22585_ACEOF
22586cat confdefs.h >>conftest.$ac_ext
22587cat >>conftest.$ac_ext <<_ACEOF
22588/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022589#include <$ac_header>
22590_ACEOF
22591if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22592 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22593 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000022594 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000022595 rm -f conftest.er1
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } >/dev/null; then
22599 if test -s conftest.err; then
22600 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000022601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000022602 else
22603 ac_cpp_err=
22604 fi
22605else
22606 ac_cpp_err=yes
22607fi
22608if test -z "$ac_cpp_err"; then
22609 ac_header_preproc=yes
22610else
22611 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022612sed 's/^/| /' conftest.$ac_ext >&5
22613
John Criswell7a73b802003-06-30 21:59:07 +000022614 ac_header_preproc=no
22615fi
22616rm -f conftest.err conftest.$ac_ext
22617echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22618echo "${ECHO_T}$ac_header_preproc" >&6
22619
22620# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000022621case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22622 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000022623 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22624echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000022625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22626echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22627 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000022628 ;;
Reid Spencer17041682004-09-05 17:48:32 +000022629 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000022630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22631echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000022632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22633echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22634 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22635echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22636 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22637echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000022638 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22639echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000022640 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22641echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000022642 (
22643 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000022644## ----------------------------------- ##
22645## Report this to llvmbugs@cs.uiuc.edu ##
22646## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000022647_ASBOX
22648 ) |
22649 sed "s/^/$as_me: WARNING: /" >&2
22650 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022651esac
22652echo "$as_me:$LINENO: checking for $ac_header" >&5
22653echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22654if eval "test \"\${$as_ac_Header+set}\" = set"; then
22655 echo $ECHO_N "(cached) $ECHO_C" >&6
22656else
Reid Spencer17041682004-09-05 17:48:32 +000022657 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000022658fi
22659echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22660echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22661
22662fi
22663if test `eval echo '${'$as_ac_Header'}'` = yes; then
22664 cat >>confdefs.h <<_ACEOF
22665#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22666_ACEOF
22667
22668fi
22669
22670done
22671
22672
22673for ac_func in getpagesize
22674do
22675as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22676echo "$as_me:$LINENO: checking for $ac_func" >&5
22677echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22678if eval "test \"\${$as_ac_var+set}\" = set"; then
22679 echo $ECHO_N "(cached) $ECHO_C" >&6
22680else
22681 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022682/* confdefs.h. */
22683_ACEOF
22684cat confdefs.h >>conftest.$ac_ext
22685cat >>conftest.$ac_ext <<_ACEOF
22686/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000022687/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22688 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22689#define $ac_func innocuous_$ac_func
22690
John Criswell7a73b802003-06-30 21:59:07 +000022691/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022692 which can conflict with char $ac_func (); below.
22693 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22694 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000022695
John Criswell0c38eaf2003-09-10 15:17:25 +000022696#ifdef __STDC__
22697# include <limits.h>
22698#else
22699# include <assert.h>
22700#endif
Reid Spencer17041682004-09-05 17:48:32 +000022701
22702#undef $ac_func
22703
John Criswell7a73b802003-06-30 21:59:07 +000022704/* Override any gcc2 internal prototype to avoid an error. */
22705#ifdef __cplusplus
22706extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022707{
John Criswell7a73b802003-06-30 21:59:07 +000022708#endif
22709/* We use char because int might match the return type of a gcc2
22710 builtin and then its argument prototype would still apply. */
22711char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022712/* The GNU C library defines this for functions which it implements
22713 to always fail with ENOSYS. Some functions are actually named
22714 something starting with __ and the normal name is an alias. */
22715#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22716choke me
22717#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022718char (*f) () = $ac_func;
22719#endif
22720#ifdef __cplusplus
22721}
John Criswell7a73b802003-06-30 21:59:07 +000022722#endif
22723
John Criswell0c38eaf2003-09-10 15:17:25 +000022724int
22725main ()
22726{
22727return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022728 ;
22729 return 0;
22730}
22731_ACEOF
22732rm -f conftest.$ac_objext conftest$ac_exeext
22733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022734 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022735 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022736 grep -v '^ *+' conftest.er1 >conftest.err
22737 rm -f conftest.er1
22738 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022741 { ac_try='test -z "$ac_c_werror_flag"
22742 || test ! -s conftest.err'
22743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744 (eval $ac_try) 2>&5
22745 ac_status=$?
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); }; } &&
22748 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22751 ac_status=$?
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; }; then
22754 eval "$as_ac_var=yes"
22755else
22756 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022757sed 's/^/| /' conftest.$ac_ext >&5
22758
John Criswell7a73b802003-06-30 21:59:07 +000022759eval "$as_ac_var=no"
22760fi
Reid Spencer17041682004-09-05 17:48:32 +000022761rm -f conftest.err conftest.$ac_objext \
22762 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022763fi
22764echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22765echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22766if test `eval echo '${'$as_ac_var'}'` = yes; then
22767 cat >>confdefs.h <<_ACEOF
22768#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22769_ACEOF
22770
22771fi
22772done
22773
22774echo "$as_me:$LINENO: checking for working mmap" >&5
22775echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22776if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22777 echo $ECHO_N "(cached) $ECHO_C" >&6
22778else
22779 if test "$cross_compiling" = yes; then
22780 ac_cv_func_mmap_fixed_mapped=no
22781else
22782 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022783/* confdefs.h. */
22784_ACEOF
22785cat confdefs.h >>conftest.$ac_ext
22786cat >>conftest.$ac_ext <<_ACEOF
22787/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022788$ac_includes_default
22789/* malloc might have been renamed as rpl_malloc. */
22790#undef malloc
22791
22792/* Thanks to Mike Haertel and Jim Avera for this test.
22793 Here is a matrix of mmap possibilities:
22794 mmap private not fixed
22795 mmap private fixed at somewhere currently unmapped
22796 mmap private fixed at somewhere already mapped
22797 mmap shared not fixed
22798 mmap shared fixed at somewhere currently unmapped
22799 mmap shared fixed at somewhere already mapped
22800 For private mappings, we should verify that changes cannot be read()
22801 back from the file, nor mmap's back from the file at a different
22802 address. (There have been systems where private was not correctly
22803 implemented like the infamous i386 svr4.0, and systems where the
22804 VM page cache was not coherent with the file system buffer cache
22805 like early versions of FreeBSD and possibly contemporary NetBSD.)
22806 For shared mappings, we should conversely verify that changes get
22807 propagated back to all the places they're supposed to be.
22808
22809 Grep wants private fixed already mapped.
22810 The main things grep needs to know about mmap are:
22811 * does it exist and is it safe to write into the mmap'd area
22812 * how to use it (BSD variants) */
22813
22814#include <fcntl.h>
22815#include <sys/mman.h>
22816
22817#if !STDC_HEADERS && !HAVE_STDLIB_H
22818char *malloc ();
22819#endif
22820
22821/* This mess was copied from the GNU getpagesize.h. */
22822#if !HAVE_GETPAGESIZE
22823/* Assume that all systems that can run configure have sys/param.h. */
22824# if !HAVE_SYS_PARAM_H
22825# define HAVE_SYS_PARAM_H 1
22826# endif
22827
22828# ifdef _SC_PAGESIZE
22829# define getpagesize() sysconf(_SC_PAGESIZE)
22830# else /* no _SC_PAGESIZE */
22831# if HAVE_SYS_PARAM_H
22832# include <sys/param.h>
22833# ifdef EXEC_PAGESIZE
22834# define getpagesize() EXEC_PAGESIZE
22835# else /* no EXEC_PAGESIZE */
22836# ifdef NBPG
22837# define getpagesize() NBPG * CLSIZE
22838# ifndef CLSIZE
22839# define CLSIZE 1
22840# endif /* no CLSIZE */
22841# else /* no NBPG */
22842# ifdef NBPC
22843# define getpagesize() NBPC
22844# else /* no NBPC */
22845# ifdef PAGESIZE
22846# define getpagesize() PAGESIZE
22847# endif /* PAGESIZE */
22848# endif /* no NBPC */
22849# endif /* no NBPG */
22850# endif /* no EXEC_PAGESIZE */
22851# else /* no HAVE_SYS_PARAM_H */
22852# define getpagesize() 8192 /* punt totally */
22853# endif /* no HAVE_SYS_PARAM_H */
22854# endif /* no _SC_PAGESIZE */
22855
22856#endif /* no HAVE_GETPAGESIZE */
22857
22858int
22859main ()
22860{
22861 char *data, *data2, *data3;
22862 int i, pagesize;
22863 int fd;
22864
22865 pagesize = getpagesize ();
22866
22867 /* First, make a file with some known garbage in it. */
22868 data = (char *) malloc (pagesize);
22869 if (!data)
22870 exit (1);
22871 for (i = 0; i < pagesize; ++i)
22872 *(data + i) = rand ();
22873 umask (0);
22874 fd = creat ("conftest.mmap", 0600);
22875 if (fd < 0)
22876 exit (1);
22877 if (write (fd, data, pagesize) != pagesize)
22878 exit (1);
22879 close (fd);
22880
22881 /* Next, try to mmap the file at a fixed address which already has
22882 something else allocated at it. If we can, also make sure that
22883 we see the same garbage. */
22884 fd = open ("conftest.mmap", O_RDWR);
22885 if (fd < 0)
22886 exit (1);
22887 data2 = (char *) malloc (2 * pagesize);
22888 if (!data2)
22889 exit (1);
Reid Spencer17041682004-09-05 17:48:32 +000022890 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000022891 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer17041682004-09-05 17:48:32 +000022892 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000022893 exit (1);
22894 for (i = 0; i < pagesize; ++i)
22895 if (*(data + i) != *(data2 + i))
22896 exit (1);
22897
22898 /* Finally, make sure that changes to the mapped area do not
22899 percolate back to the file as seen by read(). (This is a bug on
22900 some variants of i386 svr4.0.) */
22901 for (i = 0; i < pagesize; ++i)
22902 *(data2 + i) = *(data2 + i) + 1;
22903 data3 = (char *) malloc (pagesize);
22904 if (!data3)
22905 exit (1);
22906 if (read (fd, data3, pagesize) != pagesize)
22907 exit (1);
22908 for (i = 0; i < pagesize; ++i)
22909 if (*(data + i) != *(data3 + i))
22910 exit (1);
22911 close (fd);
22912 exit (0);
22913}
22914_ACEOF
22915rm -f conftest$ac_exeext
22916if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22917 (eval $ac_link) 2>&5
22918 ac_status=$?
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22922 (eval $ac_try) 2>&5
22923 ac_status=$?
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }; }; then
22926 ac_cv_func_mmap_fixed_mapped=yes
22927else
22928 echo "$as_me: program exited with status $ac_status" >&5
22929echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022930sed 's/^/| /' conftest.$ac_ext >&5
22931
John Criswell7a73b802003-06-30 21:59:07 +000022932( exit $ac_status )
22933ac_cv_func_mmap_fixed_mapped=no
22934fi
Reid Spencer17041682004-09-05 17:48:32 +000022935rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022936fi
22937fi
22938echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22939echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22940if test $ac_cv_func_mmap_fixed_mapped = yes; then
22941
22942cat >>confdefs.h <<\_ACEOF
22943#define HAVE_MMAP 1
22944_ACEOF
22945
22946fi
22947rm -f conftest.mmap
22948
Brian Gaeke26be9c52004-01-13 06:43:16 +000022949if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22950then
John Criswellf3ecf3a2004-05-27 00:57:50 +000022951 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22952echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000022953fi
John Criswell7a73b802003-06-30 21:59:07 +000022954echo "$as_me:$LINENO: checking for mmap of files" >&5
22955echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22956if test "${ac_cv_func_mmap_file+set}" = set; then
22957 echo $ECHO_N "(cached) $ECHO_C" >&6
22958else
22959
22960
22961 ac_ext=c
22962ac_cpp='$CPP $CPPFLAGS'
22963ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22964ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22965ac_compiler_gnu=$ac_cv_c_compiler_gnu
22966
22967 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022968 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22969See \`config.log' for more details." >&5
22970echo "$as_me: error: cannot run test program while cross compiling
22971See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022972 { (exit 1); exit 1; }; }
22973else
22974 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022975/* confdefs.h. */
22976_ACEOF
22977cat confdefs.h >>conftest.$ac_ext
22978cat >>conftest.$ac_ext <<_ACEOF
22979/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022980
John Criswell7a73b802003-06-30 21:59:07 +000022981#ifdef HAVE_SYS_TYPES_H
22982#include <sys/types.h>
22983#endif
22984
John Criswell5ab73462003-10-09 15:44:28 +000022985#ifdef HAVE_SYS_MMAN_H
22986#include <sys/mman.h>
22987#endif
22988
John Criswell7a73b802003-06-30 21:59:07 +000022989#ifdef HAVE_FCNTL_H
22990#include <fcntl.h>
22991#endif
22992
22993 int fd;
22994 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022995 fd = creat ("foo",0777); fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0); unlink ("foo"); return (fd != (int) MAP_FAILED);}
John Criswell7a73b802003-06-30 21:59:07 +000022996_ACEOF
22997rm -f conftest$ac_exeext
22998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22999 (eval $ac_link) 2>&5
23000 ac_status=$?
23001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23004 (eval $ac_try) 2>&5
23005 ac_status=$?
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); }; }; then
23008 ac_cv_func_mmap_file=yes
23009else
23010 echo "$as_me: program exited with status $ac_status" >&5
23011echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023012sed 's/^/| /' conftest.$ac_ext >&5
23013
John Criswell7a73b802003-06-30 21:59:07 +000023014( exit $ac_status )
23015ac_cv_func_mmap_file=no
23016fi
Reid Spencer17041682004-09-05 17:48:32 +000023017rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023018fi
23019 ac_ext=c
23020ac_cpp='$CPP $CPPFLAGS'
23021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23023ac_compiler_gnu=$ac_cv_c_compiler_gnu
23024
23025
23026fi
23027echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
23028echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
23029if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023030
23031cat >>confdefs.h <<\_ACEOF
23032#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000023033_ACEOF
23034
23035 MMAP_FILE=yes
23036
23037fi
23038
Brian Gaeke26be9c52004-01-13 06:43:16 +000023039if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000023040then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023041 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23042echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023043fi
23044echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23045echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23046if test "${ac_cv_header_mmap_anon+set}" = set; then
23047 echo $ECHO_N "(cached) $ECHO_C" >&6
23048else
23049
23050
23051 ac_ext=c
23052ac_cpp='$CPP $CPPFLAGS'
23053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23055ac_compiler_gnu=$ac_cv_c_compiler_gnu
23056
23057 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023058/* confdefs.h. */
23059_ACEOF
23060cat confdefs.h >>conftest.$ac_ext
23061cat >>conftest.$ac_ext <<_ACEOF
23062/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023063#include <sys/mman.h>
23064 #include <unistd.h>
23065 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000023066int
23067main ()
23068{
23069mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23070 ;
23071 return 0;
23072}
23073_ACEOF
23074rm -f conftest.$ac_objext
23075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023076 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023077 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023078 grep -v '^ *+' conftest.er1 >conftest.err
23079 rm -f conftest.er1
23080 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23082 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023083 { ac_try='test -z "$ac_c_werror_flag"
23084 || test ! -s conftest.err'
23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23087 ac_status=$?
23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; } &&
23090 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23092 (eval $ac_try) 2>&5
23093 ac_status=$?
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); }; }; then
23096 ac_cv_header_mmap_anon=yes
23097else
23098 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023099sed 's/^/| /' conftest.$ac_ext >&5
23100
John Criswell7a73b802003-06-30 21:59:07 +000023101ac_cv_header_mmap_anon=no
23102fi
Reid Spencer17041682004-09-05 17:48:32 +000023103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023104 ac_ext=c
23105ac_cpp='$CPP $CPPFLAGS'
23106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23108ac_compiler_gnu=$ac_cv_c_compiler_gnu
23109
23110
23111fi
23112echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23113echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23114if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023115
23116cat >>confdefs.h <<\_ACEOF
23117#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000023118_ACEOF
23119
23120fi
23121
23122echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23123echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23124if test "${ac_cv_type_signal+set}" = set; then
23125 echo $ECHO_N "(cached) $ECHO_C" >&6
23126else
23127 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023128/* confdefs.h. */
23129_ACEOF
23130cat confdefs.h >>conftest.$ac_ext
23131cat >>conftest.$ac_ext <<_ACEOF
23132/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023133#include <sys/types.h>
23134#include <signal.h>
23135#ifdef signal
23136# undef signal
23137#endif
23138#ifdef __cplusplus
23139extern "C" void (*signal (int, void (*)(int)))(int);
23140#else
23141void (*signal ()) ();
23142#endif
23143
John Criswell7a73b802003-06-30 21:59:07 +000023144int
23145main ()
23146{
23147int i;
23148 ;
23149 return 0;
23150}
23151_ACEOF
23152rm -f conftest.$ac_objext
23153if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023154 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023155 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023156 grep -v '^ *+' conftest.er1 >conftest.err
23157 rm -f conftest.er1
23158 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023161 { ac_try='test -z "$ac_c_werror_flag"
23162 || test ! -s conftest.err'
23163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164 (eval $ac_try) 2>&5
23165 ac_status=$?
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); }; } &&
23168 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23170 (eval $ac_try) 2>&5
23171 ac_status=$?
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); }; }; then
23174 ac_cv_type_signal=void
23175else
23176 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023177sed 's/^/| /' conftest.$ac_ext >&5
23178
John Criswell7a73b802003-06-30 21:59:07 +000023179ac_cv_type_signal=int
23180fi
Reid Spencer17041682004-09-05 17:48:32 +000023181rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023182fi
23183echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23184echo "${ECHO_T}$ac_cv_type_signal" >&6
23185
23186cat >>confdefs.h <<_ACEOF
23187#define RETSIGTYPE $ac_cv_type_signal
23188_ACEOF
23189
23190
23191
23192
23193
23194
23195
Brian Gaekef5261472004-02-20 06:40:57 +000023196
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000023197
John Criswelld6621562004-06-07 14:26:24 +000023198
23199
John Criswell7ed43ad2004-07-19 16:12:29 +000023200for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000023201do
23202as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23203echo "$as_me:$LINENO: checking for $ac_func" >&5
23204echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23205if eval "test \"\${$as_ac_var+set}\" = set"; then
23206 echo $ECHO_N "(cached) $ECHO_C" >&6
23207else
23208 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023209/* confdefs.h. */
23210_ACEOF
23211cat confdefs.h >>conftest.$ac_ext
23212cat >>conftest.$ac_ext <<_ACEOF
23213/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000023214/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23216#define $ac_func innocuous_$ac_func
23217
John Criswell7a73b802003-06-30 21:59:07 +000023218/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023219 which can conflict with char $ac_func (); below.
23220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23221 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000023222
John Criswell0c38eaf2003-09-10 15:17:25 +000023223#ifdef __STDC__
23224# include <limits.h>
23225#else
23226# include <assert.h>
23227#endif
Reid Spencer17041682004-09-05 17:48:32 +000023228
23229#undef $ac_func
23230
John Criswell7a73b802003-06-30 21:59:07 +000023231/* Override any gcc2 internal prototype to avoid an error. */
23232#ifdef __cplusplus
23233extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023234{
John Criswell7a73b802003-06-30 21:59:07 +000023235#endif
23236/* We use char because int might match the return type of a gcc2
23237 builtin and then its argument prototype would still apply. */
23238char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023239/* The GNU C library defines this for functions which it implements
23240 to always fail with ENOSYS. Some functions are actually named
23241 something starting with __ and the normal name is an alias. */
23242#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23243choke me
23244#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023245char (*f) () = $ac_func;
23246#endif
23247#ifdef __cplusplus
23248}
John Criswell7a73b802003-06-30 21:59:07 +000023249#endif
23250
John Criswell0c38eaf2003-09-10 15:17:25 +000023251int
23252main ()
23253{
23254return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023255 ;
23256 return 0;
23257}
23258_ACEOF
23259rm -f conftest.$ac_objext conftest$ac_exeext
23260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023261 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023262 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023263 grep -v '^ *+' conftest.er1 >conftest.err
23264 rm -f conftest.er1
23265 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023268 { ac_try='test -z "$ac_c_werror_flag"
23269 || test ! -s conftest.err'
23270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23271 (eval $ac_try) 2>&5
23272 ac_status=$?
23273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23274 (exit $ac_status); }; } &&
23275 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23277 (eval $ac_try) 2>&5
23278 ac_status=$?
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); }; }; then
23281 eval "$as_ac_var=yes"
23282else
23283 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023284sed 's/^/| /' conftest.$ac_ext >&5
23285
John Criswell7a73b802003-06-30 21:59:07 +000023286eval "$as_ac_var=no"
23287fi
Reid Spencer17041682004-09-05 17:48:32 +000023288rm -f conftest.err conftest.$ac_objext \
23289 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023290fi
23291echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23292echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23293if test `eval echo '${'$as_ac_var'}'` = yes; then
23294 cat >>confdefs.h <<_ACEOF
23295#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23296_ACEOF
23297
23298fi
23299done
23300
John Criswell7a73b802003-06-30 21:59:07 +000023301echo "$as_me:$LINENO: checking for mprotect" >&5
23302echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23303if test "${ac_cv_func_mprotect+set}" = set; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23305else
23306 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023307/* confdefs.h. */
23308_ACEOF
23309cat confdefs.h >>conftest.$ac_ext
23310cat >>conftest.$ac_ext <<_ACEOF
23311/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000023312/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23314#define mprotect innocuous_mprotect
23315
John Criswell7a73b802003-06-30 21:59:07 +000023316/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023317 which can conflict with char mprotect (); below.
23318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23319 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000023320
John Criswell0c38eaf2003-09-10 15:17:25 +000023321#ifdef __STDC__
23322# include <limits.h>
23323#else
23324# include <assert.h>
23325#endif
Reid Spencer17041682004-09-05 17:48:32 +000023326
23327#undef mprotect
23328
John Criswell7a73b802003-06-30 21:59:07 +000023329/* Override any gcc2 internal prototype to avoid an error. */
23330#ifdef __cplusplus
23331extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023332{
John Criswell7a73b802003-06-30 21:59:07 +000023333#endif
23334/* We use char because int might match the return type of a gcc2
23335 builtin and then its argument prototype would still apply. */
23336char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000023337/* The GNU C library defines this for functions which it implements
23338 to always fail with ENOSYS. Some functions are actually named
23339 something starting with __ and the normal name is an alias. */
23340#if defined (__stub_mprotect) || defined (__stub___mprotect)
23341choke me
23342#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023343char (*f) () = mprotect;
23344#endif
23345#ifdef __cplusplus
23346}
John Criswell7a73b802003-06-30 21:59:07 +000023347#endif
23348
John Criswell0c38eaf2003-09-10 15:17:25 +000023349int
23350main ()
23351{
23352return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000023353 ;
23354 return 0;
23355}
23356_ACEOF
23357rm -f conftest.$ac_objext conftest$ac_exeext
23358if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023359 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023360 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023361 grep -v '^ *+' conftest.er1 >conftest.err
23362 rm -f conftest.er1
23363 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023366 { ac_try='test -z "$ac_c_werror_flag"
23367 || test ! -s conftest.err'
23368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23369 (eval $ac_try) 2>&5
23370 ac_status=$?
23371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23372 (exit $ac_status); }; } &&
23373 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23375 (eval $ac_try) 2>&5
23376 ac_status=$?
23377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378 (exit $ac_status); }; }; then
23379 ac_cv_func_mprotect=yes
23380else
23381 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023382sed 's/^/| /' conftest.$ac_ext >&5
23383
John Criswell7a73b802003-06-30 21:59:07 +000023384ac_cv_func_mprotect=no
23385fi
Reid Spencer17041682004-09-05 17:48:32 +000023386rm -f conftest.err conftest.$ac_objext \
23387 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023388fi
23389echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23390echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23391if test $ac_cv_func_mprotect = yes; then
23392 :
23393else
23394 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23395echo "$as_me: error: Function mprotect() required but not found" >&2;}
23396 { (exit 1); exit 1; }; }
23397fi
23398
23399
John Criswellb13092b2003-07-22 21:00:24 +000023400
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023401 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23402echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000023403
23404
23405 ac_ext=c
23406ac_cpp='$CPP $CPPFLAGS'
23407ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23408ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23409ac_compiler_gnu=$ac_cv_c_compiler_gnu
23410
Brian Gaekef91a15c2003-11-18 06:20:41 +000023411 oldcflags="$CFLAGS"
23412 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000023413 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000023414int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000023415_ACEOF
23416rm -f conftest.$ac_objext conftest$ac_exeext
23417if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023418 (eval $ac_link) 2>conftest.er1
John Criswellcb7a1eb2003-11-17 19:46:02 +000023419 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023420 grep -v '^ *+' conftest.er1 >conftest.err
23421 rm -f conftest.er1
23422 cat conftest.err >&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000023423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23424 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023425 { ac_try='test -z "$ac_c_werror_flag"
23426 || test ! -s conftest.err'
23427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23428 (eval $ac_try) 2>&5
23429 ac_status=$?
23430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431 (exit $ac_status); }; } &&
23432 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000023433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434 (eval $ac_try) 2>&5
23435 ac_status=$?
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); }; }; then
23438 ac_cv_link_use_r=yes
23439else
23440 echo "$as_me: failed program was:" >&5
23441sed 's/^/| /' conftest.$ac_ext >&5
23442
Brian Gaekef91a15c2003-11-18 06:20:41 +000023443ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000023444fi
Reid Spencer17041682004-09-05 17:48:32 +000023445rm -f conftest.err conftest.$ac_objext \
23446 conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000023447 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000023448 ac_ext=c
23449ac_cpp='$CPP $CPPFLAGS'
23450ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23451ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23452ac_compiler_gnu=$ac_cv_c_compiler_gnu
23453
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023454 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23455echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000023456 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000023457 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000023458
23459cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000023460#define HAVE_LINK_R 1
23461_ACEOF
23462
23463 fi
23464
23465
John Criswell7a73b802003-06-30 21:59:07 +000023466# Check whether --enable-optimized or --disable-optimized was given.
23467if test "${enable_optimized+set}" = set; then
23468 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000023469
23470else
John Criswellb13092b2003-07-22 21:00:24 +000023471 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023472fi;
John Criswellb13092b2003-07-22 21:00:24 +000023473if test ${enableval} = "no"
23474then
23475 ENABLE_OPTIMIZED=
23476
23477else
23478 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23479
23480fi
23481
John Criswellb13092b2003-07-22 21:00:24 +000023482# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000023483if test "${enable_jit+set}" = set; then
23484 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000023485
23486else
John Criswellc78022e2003-07-29 19:11:58 +000023487 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000023488fi;
John Criswellb13092b2003-07-22 21:00:24 +000023489if test ${enableval} = "no"
23490then
23491 JIT=
23492
23493else
John Criswellc78022e2003-07-29 19:11:58 +000023494 case $target in
23495 *i*86*)
23496 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000023497
John Criswellc78022e2003-07-29 19:11:58 +000023498 ;;
23499 *sparc*)
23500 JIT=TARGET_HAS_JIT=1
23501
23502 ;;
23503 *)
23504 JIT=
23505
23506 ;;
23507 esac
John Criswellb13092b2003-07-22 21:00:24 +000023508fi
John Criswell7a73b802003-06-30 21:59:07 +000023509
23510
John Criswell7a73b802003-06-30 21:59:07 +000023511# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23512if test "${with_llvmgccdir+set}" = set; then
23513 withval="$with_llvmgccdir"
23514 LLVMGCCDIR=$withval
23515
23516fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000023517echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23518echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23519LLVM_GCC_CHECK=no
23520if test -d "$LLVMGCCDIR"
23521then
23522 if test -x "$LLVMGCCDIR/bin/gcc"
23523 then
23524 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23525 fi
23526fi
23527llvmgccwarn=no
23528echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23529echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23530if test "$LLVM_GCC_CHECK" = "no"
23531then
23532 llvmgccwarn=yes
23533fi
Brian Gaekef3b24102003-11-16 18:38:14 +000023534echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23535echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23536LLVM_GCC_SANE=no
23537if test -x "$LLVM_GCC_CHECK"
23538then
23539 cp /dev/null conftest.c
23540 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23541 if test $? -eq 0
23542 then
23543 LLVM_GCC_SANE=yes
23544 fi
23545 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000023546 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000023547 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000023548
23549 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000023550 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000023551
Brian Gaekef3b24102003-11-16 18:38:14 +000023552fi
23553echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23554echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23555if test "$LLVM_GCC_SANE" = "no"
23556then
23557 llvmgccwarn=yes
23558fi
23559
John Criswellc78022e2003-07-29 19:11:58 +000023560
John Criswell7a73b802003-06-30 21:59:07 +000023561# Check whether --with-papi or --without-papi was given.
23562if test "${with_papi+set}" = set; then
23563 withval="$with_papi"
23564 PAPIDIR=$withval
23565
23566else
John Criswellde00db22003-08-25 16:49:54 +000023567 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000023568
23569fi;
23570
Brian Gaeke554831c2004-01-21 19:39:29 +000023571echo "$as_me:$LINENO: checking for shared library suffix" >&5
23572echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23573eval "SHLIBEXT=$shrext"
23574echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23575echo "${ECHO_T}$SHLIBEXT" >&6
23576SHLIBEXT=$SHLIBEXT
23577
23578
23579cat >>confdefs.h <<_ACEOF
23580#define SHLIBEXT "$SHLIBEXT"
23581_ACEOF
23582
23583
Reid Spencere9de0912004-08-20 09:03:57 +000023584# Translate the various configuration directories and other basic
23585# information into substitutions that will end up in config.h.in so
23586# that these configured values can be hard-wired into a program.
23587eval LLVM_PREFIX="${prefix}";
23588eval LLVM_BINDIR="${prefix}/bin";
23589eval LLVM_LIBDIR="${prefix}/lib";
23590eval LLVM_DATADIR="${prefix}/data";
23591eval LLVM_DOCSDIR="${prefix}/docs";
23592eval LLVM_ETCDIR="${prefix}/etc";
23593eval LLVM_INCLUDEDIR="${prefix}/include";
23594eval LLVM_INFODIR="${prefix}/info";
23595eval LLVM_MANDIR="${prefix}/man";
23596LLVM_CONFIGTIME=`date`
23597
23598
23599
23600
23601
23602
23603
23604
23605
23606
23607
23608cat >>confdefs.h <<_ACEOF
23609#define LLVM_PREFIX "$LLVM_PREFIX"
23610_ACEOF
23611
23612
23613cat >>confdefs.h <<_ACEOF
23614#define LLVM_BINDIR "$LLVM_BINDIR"
23615_ACEOF
23616
23617
23618cat >>confdefs.h <<_ACEOF
23619#define LLVM_LIBDIR "$LLVM_LIBDIR"
23620_ACEOF
23621
23622
23623cat >>confdefs.h <<_ACEOF
23624#define LLVM_DATADIR "$LLVM_DATADIR"
23625_ACEOF
23626
23627
23628cat >>confdefs.h <<_ACEOF
23629#define LLVM_DATADIR "$LLVM_DOCSDIR"
23630_ACEOF
23631
23632
23633cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000023634#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000023635_ACEOF
23636
23637
23638cat >>confdefs.h <<_ACEOF
23639#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23640_ACEOF
23641
23642
23643cat >>confdefs.h <<_ACEOF
23644#define LLVM_INFODIR "$LLVM_INFODIR"
23645_ACEOF
23646
23647
23648cat >>confdefs.h <<_ACEOF
23649#define LLVM_MANDIR "$LLVM_MANDIR"
23650_ACEOF
23651
23652
23653cat >>confdefs.h <<_ACEOF
23654#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23655_ACEOF
23656
23657
John Criswell7a73b802003-06-30 21:59:07 +000023658cat >confcache <<\_ACEOF
23659# This file is a shell script that caches the results of configure
23660# tests run on this system so they can be shared between configure
23661# scripts and configure runs, see configure's option --config-cache.
23662# It is not useful on other systems. If it contains results you don't
23663# want to keep, you may remove or edit it.
23664#
23665# config.status only pays attention to the cache file if you give it
23666# the --recheck option to rerun configure.
23667#
John Criswell0c38eaf2003-09-10 15:17:25 +000023668# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000023669# loading this file, other *unset* `ac_cv_foo' will be assigned the
23670# following values.
23671
23672_ACEOF
23673
23674# The following way of writing the cache mishandles newlines in values,
23675# but we know of no workaround that is simple, portable, and efficient.
23676# So, don't put newlines in cache variables' values.
23677# Ultrix sh set writes to stderr and can't be redirected directly,
23678# and sets the high bit in the cache file unless we assign to the vars.
23679{
23680 (set) 2>&1 |
23681 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23682 *ac_space=\ *)
23683 # `set' does not quote correctly, so add quotes (double-quote
23684 # substitution turns \\\\ into \\, and sed turns \\ into \).
23685 sed -n \
Reid Spencer17041682004-09-05 17:48:32 +000023686 "s/'/'\\\\''/g;
23687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000023688 ;;
23689 *)
23690 # `set' quotes correctly as required by POSIX, so do not add quotes.
23691 sed -n \
Reid Spencer17041682004-09-05 17:48:32 +000023692 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000023693 ;;
23694 esac;
23695} |
23696 sed '
23697 t clear
23698 : clear
23699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23700 t end
23701 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23702 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000023703if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000023704 if test -w $cache_file; then
23705 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23706 cat confcache >$cache_file
23707 else
23708 echo "not updating unwritable cache $cache_file"
23709 fi
23710fi
23711rm -f confcache
23712
23713test "x$prefix" = xNONE && prefix=$ac_default_prefix
23714# Let make expand exec_prefix.
23715test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23716
23717# VPATH may cause trouble with some makes, so we remove $(srcdir),
23718# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23719# trailing colons and then remove the whole line if VPATH becomes empty
23720# (actually we leave an empty line to preserve line numbers).
23721if test "x$srcdir" = x.; then
Reid Spencer17041682004-09-05 17:48:32 +000023722 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000023723s/:*\$(srcdir):*/:/;
23724s/:*\${srcdir}:*/:/;
23725s/:*@srcdir@:*/:/;
Reid Spencer17041682004-09-05 17:48:32 +000023726s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000023727s/:*$//;
Reid Spencer17041682004-09-05 17:48:32 +000023728s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000023729}'
23730fi
23731
23732DEFS=-DHAVE_CONFIG_H
23733
John Criswell0c38eaf2003-09-10 15:17:25 +000023734ac_libobjs=
23735ac_ltlibobjs=
23736for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23737 # 1. Remove the extension, and $U if already installed.
23738 ac_i=`echo "$ac_i" |
Reid Spencer17041682004-09-05 17:48:32 +000023739 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023740 # 2. Add them.
23741 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23742 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23743done
23744LIBOBJS=$ac_libobjs
23745
23746LTLIBOBJS=$ac_ltlibobjs
23747
23748
John Criswell7a73b802003-06-30 21:59:07 +000023749
23750: ${CONFIG_STATUS=./config.status}
23751ac_clean_files_save=$ac_clean_files
23752ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23753{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23754echo "$as_me: creating $CONFIG_STATUS" >&6;}
23755cat >$CONFIG_STATUS <<_ACEOF
23756#! $SHELL
23757# Generated by $as_me.
23758# Run this file to recreate the current configuration.
23759# Compiler output produced by configure, useful for debugging
23760# configure, is in config.log if it exists.
23761
23762debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023763ac_cs_recheck=false
23764ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023765SHELL=\${CONFIG_SHELL-$SHELL}
23766_ACEOF
23767
23768cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023769## --------------------- ##
23770## M4sh Initialization. ##
23771## --------------------- ##
23772
23773# Be Bourne compatible
23774if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23775 emulate sh
23776 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023777 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23778 # is contrary to our usage. Disable this feature.
23779 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023780elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23781 set -o posix
23782fi
Reid Spencer17041682004-09-05 17:48:32 +000023783DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000023784
John Criswell7a73b802003-06-30 21:59:07 +000023785# Support unset when possible.
Reid Spencer17041682004-09-05 17:48:32 +000023786if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023787 as_unset=unset
23788else
23789 as_unset=false
23790fi
23791
John Criswell0c38eaf2003-09-10 15:17:25 +000023792
23793# Work around bugs in pre-3.0 UWIN ksh.
23794$as_unset ENV MAIL MAILPATH
23795PS1='$ '
23796PS2='> '
23797PS4='+ '
23798
23799# NLS nuisances.
23800for as_var in \
23801 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23802 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23803 LC_TELEPHONE LC_TIME
23804do
Reid Spencer17041682004-09-05 17:48:32 +000023805 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000023806 eval $as_var=C; export $as_var
23807 else
23808 $as_unset $as_var
23809 fi
23810done
23811
23812# Required to use basename.
23813if expr a : '\(a\)' >/dev/null 2>&1; then
23814 as_expr=expr
23815else
23816 as_expr=false
23817fi
23818
23819if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23820 as_basename=basename
23821else
23822 as_basename=false
23823fi
John Criswell7a73b802003-06-30 21:59:07 +000023824
23825
23826# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023827as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023828$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23829 X"$0" : 'X\(//\)$' \| \
23830 X"$0" : 'X\(/\)$' \| \
23831 . : '\(.\)' 2>/dev/null ||
23832echo X/"$0" |
23833 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23834 /^X\/\(\/\/\)$/{ s//\1/; q; }
23835 /^X\/\(\/\).*/{ s//\1/; q; }
23836 s/.*/./; q'`
23837
John Criswell0c38eaf2003-09-10 15:17:25 +000023838
John Criswell7a73b802003-06-30 21:59:07 +000023839# PATH needs CR, and LINENO needs CR and PATH.
23840# Avoid depending upon Character Ranges.
23841as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23842as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23843as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23844as_cr_digits='0123456789'
23845as_cr_alnum=$as_cr_Letters$as_cr_digits
23846
23847# The user is always right.
23848if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023849 echo "#! /bin/sh" >conf$$.sh
23850 echo "exit 0" >>conf$$.sh
23851 chmod +x conf$$.sh
23852 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023853 PATH_SEPARATOR=';'
23854 else
23855 PATH_SEPARATOR=:
23856 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000023857 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000023858fi
23859
23860
23861 as_lineno_1=$LINENO
23862 as_lineno_2=$LINENO
23863 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23864 test "x$as_lineno_1" != "x$as_lineno_2" &&
23865 test "x$as_lineno_3" = "x$as_lineno_2" || {
23866 # Find who we are. Look in the path if we contain no path at all
23867 # relative or not.
23868 case $0 in
23869 *[\\/]* ) as_myself=$0 ;;
23870 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23871for as_dir in $PATH
23872do
23873 IFS=$as_save_IFS
23874 test -z "$as_dir" && as_dir=.
23875 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23876done
23877
23878 ;;
23879 esac
23880 # We did not find ourselves, most probably we were run as `sh COMMAND'
23881 # in which case we are not to be found in the path.
23882 if test "x$as_myself" = x; then
23883 as_myself=$0
23884 fi
23885 if test ! -f "$as_myself"; then
23886 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23887echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23888 { (exit 1); exit 1; }; }
23889 fi
23890 case $CONFIG_SHELL in
23891 '')
23892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23893for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23894do
23895 IFS=$as_save_IFS
23896 test -z "$as_dir" && as_dir=.
23897 for as_base in sh bash ksh sh5; do
23898 case $as_dir in
23899 /*)
23900 if ("$as_dir/$as_base" -c '
23901 as_lineno_1=$LINENO
23902 as_lineno_2=$LINENO
23903 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23904 test "x$as_lineno_1" != "x$as_lineno_2" &&
23905 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023906 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23907 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000023908 CONFIG_SHELL=$as_dir/$as_base
23909 export CONFIG_SHELL
23910 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23911 fi;;
23912 esac
23913 done
23914done
23915;;
23916 esac
23917
23918 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23919 # uniformly replaced by the line number. The first 'sed' inserts a
23920 # line-number line before each line; the second 'sed' does the real
23921 # work. The second script uses 'N' to pair each line-number line
23922 # with the numbered line, and appends trailing '-' during
23923 # substitution so that $LINENO is not a special case at line end.
23924 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23925 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23926 sed '=' <$as_myself |
23927 sed '
23928 N
23929 s,$,-,
23930 : loop
23931 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23932 t loop
23933 s,-$,,
23934 s,^['$as_cr_digits']*\n,,
23935 ' >$as_me.lineno &&
23936 chmod +x $as_me.lineno ||
23937 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23938echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23939 { (exit 1); exit 1; }; }
23940
23941 # Don't try to exec as it changes $[0], causing all sort of problems
23942 # (the dirname of $[0] is not the place where we might find the
23943 # original and so on. Autoconf is especially sensible to this).
23944 . ./$as_me.lineno
23945 # Exit status is that of the last command.
23946 exit
23947}
23948
23949
23950case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23951 *c*,-n*) ECHO_N= ECHO_C='
23952' ECHO_T=' ' ;;
23953 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23954 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23955esac
23956
23957if expr a : '\(a\)' >/dev/null 2>&1; then
23958 as_expr=expr
23959else
23960 as_expr=false
23961fi
23962
23963rm -f conf$$ conf$$.exe conf$$.file
23964echo >conf$$.file
23965if ln -s conf$$.file conf$$ 2>/dev/null; then
23966 # We could just check for DJGPP; but this test a) works b) is more generic
23967 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23968 if test -f conf$$.exe; then
23969 # Don't use ln at all; we don't have any links
23970 as_ln_s='cp -p'
23971 else
23972 as_ln_s='ln -s'
23973 fi
23974elif ln conf$$.file conf$$ 2>/dev/null; then
23975 as_ln_s=ln
23976else
23977 as_ln_s='cp -p'
23978fi
23979rm -f conf$$ conf$$.exe conf$$.file
23980
John Criswell0c38eaf2003-09-10 15:17:25 +000023981if mkdir -p . 2>/dev/null; then
23982 as_mkdir_p=:
23983else
Reid Spencer17041682004-09-05 17:48:32 +000023984 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000023985 as_mkdir_p=false
23986fi
23987
John Criswell7a73b802003-06-30 21:59:07 +000023988as_executable_p="test -f"
23989
23990# Sed expression to map a string onto a valid CPP name.
Reid Spencer17041682004-09-05 17:48:32 +000023991as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023992
23993# Sed expression to map a string onto a valid variable name.
Reid Spencer17041682004-09-05 17:48:32 +000023994as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000023995
23996
23997# IFS
23998# We need space, tab and new line, in precisely that order.
23999as_nl='
24000'
24001IFS=" $as_nl"
24002
24003# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000024004$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000024005
24006exec 6>&1
24007
24008# Open the log real soon, to keep \$[0] and so on meaningful, and to
24009# report actual input values of CONFIG_FILES etc. instead of their
24010# values after options handling. Logging --version etc. is OK.
24011exec 5>>config.log
24012{
24013 echo
24014 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24015## Running $as_me. ##
24016_ASBOX
24017} >&5
24018cat >&5 <<_CSEOF
24019
Reid Spencere9de0912004-08-20 09:03:57 +000024020This file was extended by LLVM $as_me 1.4, which was
Reid Spencer17041682004-09-05 17:48:32 +000024021generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000024022
24023 CONFIG_FILES = $CONFIG_FILES
24024 CONFIG_HEADERS = $CONFIG_HEADERS
24025 CONFIG_LINKS = $CONFIG_LINKS
24026 CONFIG_COMMANDS = $CONFIG_COMMANDS
24027 $ $0 $@
24028
24029_CSEOF
24030echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24031echo >&5
24032_ACEOF
24033
24034# Files that config.status was made for.
24035if test -n "$ac_config_files"; then
24036 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24037fi
24038
24039if test -n "$ac_config_headers"; then
24040 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24041fi
24042
24043if test -n "$ac_config_links"; then
24044 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24045fi
24046
24047if test -n "$ac_config_commands"; then
24048 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24049fi
24050
24051cat >>$CONFIG_STATUS <<\_ACEOF
24052
24053ac_cs_usage="\
24054\`$as_me' instantiates files from templates according to the
24055current configuration.
24056
24057Usage: $0 [OPTIONS] [FILE]...
24058
24059 -h, --help print this help, then exit
24060 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000024061 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000024062 -d, --debug don't remove temporary files
24063 --recheck update $as_me by reconfiguring in the same conditions
24064 --file=FILE[:TEMPLATE]
Reid Spencer17041682004-09-05 17:48:32 +000024065 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000024066 --header=FILE[:TEMPLATE]
Reid Spencer17041682004-09-05 17:48:32 +000024067 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000024068
24069Configuration files:
24070$config_files
24071
24072Configuration headers:
24073$config_headers
24074
Reid Spencerde8c47f2004-08-29 19:35:28 +000024075Configuration links:
24076$config_links
24077
John Criswellc764fbc2003-09-06 15:17:13 +000024078Configuration commands:
24079$config_commands
24080
John Criswell7a73b802003-06-30 21:59:07 +000024081Report bugs to <bug-autoconf@gnu.org>."
24082_ACEOF
24083
24084cat >>$CONFIG_STATUS <<_ACEOF
24085ac_cs_version="\\
Reid Spencere9de0912004-08-20 09:03:57 +000024086LLVM config.status 1.4
Reid Spencer17041682004-09-05 17:48:32 +000024087configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000024088 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24089
Reid Spencer17041682004-09-05 17:48:32 +000024090Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000024091This config.status script is free software; the Free Software Foundation
24092gives unlimited permission to copy, distribute and modify it."
24093srcdir=$srcdir
24094INSTALL="$INSTALL"
24095_ACEOF
24096
24097cat >>$CONFIG_STATUS <<\_ACEOF
24098# If no file are specified by the user, then we need to provide default
24099# value. By we need to know if files were specified by the user.
24100ac_need_defaults=:
24101while test $# != 0
24102do
24103 case $1 in
24104 --*=*)
24105 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24106 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024107 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000024108 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024109 -*)
24110 ac_option=$1
24111 ac_optarg=$2
24112 ac_shift=shift
24113 ;;
John Criswell7a73b802003-06-30 21:59:07 +000024114 *) # This is not an option, so the user has probably given explicit
24115 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000024116 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000024117 ac_need_defaults=false;;
24118 esac
24119
John Criswell0c38eaf2003-09-10 15:17:25 +000024120 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000024121 # Handling of the options.
24122_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000024123cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24125 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024126 --version | --vers* | -V )
24127 echo "$ac_cs_version"; exit 0 ;;
24128 --he | --h)
24129 # Conflict between --help and --header
24130 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24131Try \`$0 --help' for more information." >&5
24132echo "$as_me: error: ambiguous option: $1
24133Try \`$0 --help' for more information." >&2;}
24134 { (exit 1); exit 1; }; };;
24135 --help | --hel | -h )
24136 echo "$ac_cs_usage"; exit 0 ;;
24137 --debug | --d* | -d )
24138 debug=: ;;
24139 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000024140 $ac_shift
24141 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024142 ac_need_defaults=false;;
24143 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000024144 $ac_shift
24145 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024146 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024147 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24148 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24149 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024150
24151 # This is an error.
24152 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24153Try \`$0 --help' for more information." >&5
24154echo "$as_me: error: unrecognized option: $1
24155Try \`$0 --help' for more information." >&2;}
24156 { (exit 1); exit 1; }; } ;;
24157
24158 *) ac_config_targets="$ac_config_targets $1" ;;
24159
24160 esac
24161 shift
24162done
24163
John Criswell0c38eaf2003-09-10 15:17:25 +000024164ac_configure_extra_args=
24165
24166if $ac_cs_silent; then
24167 exec 6>/dev/null
24168 ac_configure_extra_args="$ac_configure_extra_args --silent"
24169fi
24170
24171_ACEOF
24172cat >>$CONFIG_STATUS <<_ACEOF
24173if \$ac_cs_recheck; then
24174 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24175 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24176fi
24177
John Criswell7a73b802003-06-30 21:59:07 +000024178_ACEOF
24179
John Criswellc764fbc2003-09-06 15:17:13 +000024180cat >>$CONFIG_STATUS <<_ACEOF
24181#
24182# INIT-COMMANDS section.
24183#
John Criswell7a73b802003-06-30 21:59:07 +000024184
John Criswellc764fbc2003-09-06 15:17:13 +000024185${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24186${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000024187${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024188${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024189${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024190${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24191${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000024192${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24193${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000024194${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000024195${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024196${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024197
24198_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024199
24200
24201
24202cat >>$CONFIG_STATUS <<\_ACEOF
24203for ac_config_target in $ac_config_targets
24204do
24205 case "$ac_config_target" in
24206 # Handling of arguments.
24207 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000024208 "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
24209 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24210 "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
24211 "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
24212 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +000024213 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024214 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24215 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000024216 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024217 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024218 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024219 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24220 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000024221 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24222 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024223 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024224 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024225 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000024226 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell7a73b802003-06-30 21:59:07 +000024227 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24228echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24229 { (exit 1); exit 1; }; };;
24230 esac
24231done
24232
24233# If the user did not use the arguments to specify the items to instantiate,
24234# then the envvar interface is used. Set only those that are not.
24235# We use the long form for the default assignment because of an extremely
24236# bizarre bug on SunOS 4.1.3.
24237if $ac_need_defaults; then
24238 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24239 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000024240 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000024241 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000024242fi
24243
John Criswell0c38eaf2003-09-10 15:17:25 +000024244# Have a temporary directory for convenience. Make it in the build tree
24245# simply because there is no reason to put it here, and in addition,
24246# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000024247# Create a temporary directory, and hook for its removal unless debugging.
24248$debug ||
24249{
24250 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24251 trap '{ (exit 1); exit 1; }' 1 2 13 15
24252}
24253
24254# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000024255
John Criswell7a73b802003-06-30 21:59:07 +000024256{
John Criswell0c38eaf2003-09-10 15:17:25 +000024257 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000024258 test -n "$tmp" && test -d "$tmp"
24259} ||
24260{
John Criswell0c38eaf2003-09-10 15:17:25 +000024261 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000024262 (umask 077 && mkdir $tmp)
24263} ||
24264{
John Criswell0c38eaf2003-09-10 15:17:25 +000024265 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000024266 { (exit 1); exit 1; }
24267}
24268
24269_ACEOF
24270
24271cat >>$CONFIG_STATUS <<_ACEOF
24272
24273#
24274# CONFIG_FILES section.
24275#
24276
24277# No need to generate the scripts if there are no CONFIG_FILES.
24278# This happens for instance when ./config.status config.h
24279if test -n "\$CONFIG_FILES"; then
24280 # Protect against being on the right side of a sed subst in config.status.
24281 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24282 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24283s,@SHELL@,$SHELL,;t t
24284s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24285s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24286s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24287s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24288s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24289s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24290s,@exec_prefix@,$exec_prefix,;t t
24291s,@prefix@,$prefix,;t t
24292s,@program_transform_name@,$program_transform_name,;t t
24293s,@bindir@,$bindir,;t t
24294s,@sbindir@,$sbindir,;t t
24295s,@libexecdir@,$libexecdir,;t t
24296s,@datadir@,$datadir,;t t
24297s,@sysconfdir@,$sysconfdir,;t t
24298s,@sharedstatedir@,$sharedstatedir,;t t
24299s,@localstatedir@,$localstatedir,;t t
24300s,@libdir@,$libdir,;t t
24301s,@includedir@,$includedir,;t t
24302s,@oldincludedir@,$oldincludedir,;t t
24303s,@infodir@,$infodir,;t t
24304s,@mandir@,$mandir,;t t
24305s,@build_alias@,$build_alias,;t t
24306s,@host_alias@,$host_alias,;t t
24307s,@target_alias@,$target_alias,;t t
24308s,@DEFS@,$DEFS,;t t
24309s,@ECHO_C@,$ECHO_C,;t t
24310s,@ECHO_N@,$ECHO_N,;t t
24311s,@ECHO_T@,$ECHO_T,;t t
24312s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000024313s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024314s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24315s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24316s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24317s,@build@,$build,;t t
24318s,@build_cpu@,$build_cpu,;t t
24319s,@build_vendor@,$build_vendor,;t t
24320s,@build_os@,$build_os,;t t
24321s,@host@,$host,;t t
24322s,@host_cpu@,$host_cpu,;t t
24323s,@host_vendor@,$host_vendor,;t t
24324s,@host_os@,$host_os,;t t
24325s,@target@,$target,;t t
24326s,@target_cpu@,$target_cpu,;t t
24327s,@target_vendor@,$target_vendor,;t t
24328s,@target_os@,$target_os,;t t
24329s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024330s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000024331s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024332s,@CXX@,$CXX,;t t
24333s,@CXXFLAGS@,$CXXFLAGS,;t t
24334s,@LDFLAGS@,$LDFLAGS,;t t
24335s,@CPPFLAGS@,$CPPFLAGS,;t t
24336s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24337s,@EXEEXT@,$EXEEXT,;t t
24338s,@OBJEXT@,$OBJEXT,;t t
24339s,@CC@,$CC,;t t
24340s,@CFLAGS@,$CFLAGS,;t t
24341s,@ac_ct_CC@,$ac_ct_CC,;t t
24342s,@CPP@,$CPP,;t t
24343s,@ifGNUmake@,$ifGNUmake,;t t
24344s,@LEX@,$LEX,;t t
24345s,@LEXLIB@,$LEXLIB,;t t
24346s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24347s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000024348s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024349s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024350s,@LN_S@,$LN_S,;t t
24351s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024352s,@AR@,$AR,;t t
24353s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024354s,@RANLIB@,$RANLIB,;t t
24355s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24356s,@STRIP@,$STRIP,;t t
24357s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024358s,@CXXCPP@,$CXXCPP,;t t
24359s,@F77@,$F77,;t t
24360s,@FFLAGS@,$FFLAGS,;t t
24361s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024362s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024363s,@DOT@,$DOT,;t t
24364s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000024365s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000024366s,@PYTHON@,$PYTHON,;t t
24367s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000024368s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024369s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24370s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
John Criswell7ed43ad2004-07-19 16:12:29 +000024371s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
John Criswell0021c312004-02-13 21:57:29 +000024372s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000024373s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24374s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24375s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24376s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24377s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24378s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000024379s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24380s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24381s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024382s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024383s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024384s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024385s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000024386s,@LLVMCC1@,$LLVMCC1,;t t
24387s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024388s,@PAPIDIR@,$PAPIDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000024389s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000024390s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24391s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24392s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24393s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24394s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24395s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24396s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24397s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24398s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24399s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000024400s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000024401s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024402CEOF
24403
24404_ACEOF
24405
24406 cat >>$CONFIG_STATUS <<\_ACEOF
24407 # Split the substitutions into bite-sized pieces for seds with
24408 # small command number limits, like on Digital OSF/1 and HP-UX.
24409 ac_max_sed_lines=48
24410 ac_sed_frag=1 # Number of current file.
24411 ac_beg=1 # First line for current file.
24412 ac_end=$ac_max_sed_lines # Line after last line for current file.
24413 ac_more_lines=:
24414 ac_sed_cmds=
24415 while $ac_more_lines; do
24416 if test $ac_beg -gt 1; then
24417 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24418 else
24419 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24420 fi
24421 if test ! -s $tmp/subs.frag; then
24422 ac_more_lines=false
24423 else
24424 # The purpose of the label and of the branching condition is to
24425 # speed up the sed processing (if there are no `@' at all, there
24426 # is no need to browse any of the substitutions).
24427 # These are the two extra sed commands mentioned above.
24428 (echo ':t
24429 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24430 if test -z "$ac_sed_cmds"; then
Reid Spencer17041682004-09-05 17:48:32 +000024431 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024432 else
Reid Spencer17041682004-09-05 17:48:32 +000024433 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024434 fi
24435 ac_sed_frag=`expr $ac_sed_frag + 1`
24436 ac_beg=$ac_end
24437 ac_end=`expr $ac_end + $ac_max_sed_lines`
24438 fi
24439 done
24440 if test -z "$ac_sed_cmds"; then
24441 ac_sed_cmds=cat
24442 fi
24443fi # test -n "$CONFIG_FILES"
24444
24445_ACEOF
24446cat >>$CONFIG_STATUS <<\_ACEOF
24447for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24448 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24449 case $ac_file in
24450 - | *:- | *:-:* ) # input from stdin
Reid Spencer17041682004-09-05 17:48:32 +000024451 cat >$tmp/stdin
24452 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24453 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024454 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer17041682004-09-05 17:48:32 +000024455 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024456 * ) ac_file_in=$ac_file.in ;;
24457 esac
24458
24459 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24460 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24461$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024462 X"$ac_file" : 'X\(//\)[^/]' \| \
24463 X"$ac_file" : 'X\(//\)$' \| \
24464 X"$ac_file" : 'X\(/\)' \| \
24465 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000024466echo X"$ac_file" |
24467 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24468 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24469 /^X\(\/\/\)$/{ s//\1/; q; }
24470 /^X\(\/\).*/{ s//\1/; q; }
24471 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024472 { if $as_mkdir_p; then
24473 mkdir -p "$ac_dir"
24474 else
24475 as_dir="$ac_dir"
24476 as_dirs=
24477 while test ! -d "$as_dir"; do
24478 as_dirs="$as_dir $as_dirs"
24479 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024481 X"$as_dir" : 'X\(//\)[^/]' \| \
24482 X"$as_dir" : 'X\(//\)$' \| \
24483 X"$as_dir" : 'X\(/\)' \| \
24484 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000024485echo X"$as_dir" |
24486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24487 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24488 /^X\(\/\/\)$/{ s//\1/; q; }
24489 /^X\(\/\).*/{ s//\1/; q; }
24490 s/.*/./; q'`
24491 done
24492 test ! -n "$as_dirs" || mkdir $as_dirs
24493 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24494echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24495 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024496
24497 ac_builddir=.
24498
24499if test "$ac_dir" != .; then
24500 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24501 # A "../" for each directory in $ac_dir_suffix.
24502 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24503else
24504 ac_dir_suffix= ac_top_builddir=
24505fi
24506
24507case $srcdir in
24508 .) # No --srcdir option. We are building in place.
24509 ac_srcdir=.
24510 if test -z "$ac_top_builddir"; then
24511 ac_top_srcdir=.
24512 else
24513 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24514 fi ;;
24515 [\\/]* | ?:[\\/]* ) # Absolute path.
24516 ac_srcdir=$srcdir$ac_dir_suffix;
24517 ac_top_srcdir=$srcdir ;;
24518 *) # Relative path.
24519 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24520 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24521esac
Reid Spencer17041682004-09-05 17:48:32 +000024522
24523# Do not use `cd foo && pwd` to compute absolute paths, because
24524# the directories may not exist.
24525case `pwd` in
24526.) ac_abs_builddir="$ac_dir";;
24527*)
24528 case "$ac_dir" in
24529 .) ac_abs_builddir=`pwd`;;
24530 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24531 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24532 esac;;
24533esac
24534case $ac_abs_builddir in
24535.) ac_abs_top_builddir=${ac_top_builddir}.;;
24536*)
24537 case ${ac_top_builddir}. in
24538 .) ac_abs_top_builddir=$ac_abs_builddir;;
24539 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24540 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24541 esac;;
24542esac
24543case $ac_abs_builddir in
24544.) ac_abs_srcdir=$ac_srcdir;;
24545*)
24546 case $ac_srcdir in
24547 .) ac_abs_srcdir=$ac_abs_builddir;;
24548 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24549 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24550 esac;;
24551esac
24552case $ac_abs_builddir in
24553.) ac_abs_top_srcdir=$ac_top_srcdir;;
24554*)
24555 case $ac_top_srcdir in
24556 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24557 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24558 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24559 esac;;
24560esac
John Criswell7a73b802003-06-30 21:59:07 +000024561
24562
24563 case $INSTALL in
24564 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24565 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24566 esac
24567
24568 if test x"$ac_file" != x-; then
24569 { echo "$as_me:$LINENO: creating $ac_file" >&5
24570echo "$as_me: creating $ac_file" >&6;}
24571 rm -f "$ac_file"
24572 fi
24573 # Let's still pretend it is `configure' which instantiates (i.e., don't
24574 # use $as_me), people would be surprised to read:
24575 # /* config.h. Generated by config.status. */
24576 if test x"$ac_file" = x-; then
24577 configure_input=
24578 else
24579 configure_input="$ac_file. "
24580 fi
24581 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer17041682004-09-05 17:48:32 +000024582 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000024583
24584 # First look for the input files in the build tree, otherwise in the
24585 # src tree.
24586 ac_file_inputs=`IFS=:
24587 for f in $ac_file_in; do
24588 case $f in
24589 -) echo $tmp/stdin ;;
24590 [\\/$]*)
Reid Spencer17041682004-09-05 17:48:32 +000024591 # Absolute (can't be DOS-style, as IFS=:)
24592 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024593echo "$as_me: error: cannot find input file: $f" >&2;}
24594 { (exit 1); exit 1; }; }
Reid Spencer17041682004-09-05 17:48:32 +000024595 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024596 *) # Relative
Reid Spencer17041682004-09-05 17:48:32 +000024597 if test -f "$f"; then
24598 # Build tree
24599 echo "$f"
24600 elif test -f "$srcdir/$f"; then
24601 # Source tree
24602 echo "$srcdir/$f"
24603 else
24604 # /dev/null tree
24605 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024606echo "$as_me: error: cannot find input file: $f" >&2;}
24607 { (exit 1); exit 1; }; }
Reid Spencer17041682004-09-05 17:48:32 +000024608 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024609 esac
24610 done` || { (exit 1); exit 1; }
24611_ACEOF
24612cat >>$CONFIG_STATUS <<_ACEOF
24613 sed "$ac_vpsub
24614$extrasub
24615_ACEOF
24616cat >>$CONFIG_STATUS <<\_ACEOF
24617:t
24618/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24619s,@configure_input@,$configure_input,;t t
24620s,@srcdir@,$ac_srcdir,;t t
24621s,@abs_srcdir@,$ac_abs_srcdir,;t t
24622s,@top_srcdir@,$ac_top_srcdir,;t t
24623s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24624s,@builddir@,$ac_builddir,;t t
24625s,@abs_builddir@,$ac_abs_builddir,;t t
24626s,@top_builddir@,$ac_top_builddir,;t t
24627s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24628s,@INSTALL@,$ac_INSTALL,;t t
24629" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24630 rm -f $tmp/stdin
24631 if test x"$ac_file" != x-; then
24632 mv $tmp/out $ac_file
24633 else
24634 cat $tmp/out
24635 rm -f $tmp/out
24636 fi
24637
24638done
24639_ACEOF
24640cat >>$CONFIG_STATUS <<\_ACEOF
24641
24642#
24643# CONFIG_HEADER section.
24644#
24645
24646# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24647# NAME is the cpp macro being defined and VALUE is the value it is being given.
24648#
24649# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer17041682004-09-05 17:48:32 +000024650ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24651ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000024652ac_dC=' '
24653ac_dD=',;t'
24654# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer17041682004-09-05 17:48:32 +000024655ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000024656ac_uB='$,\1#\2define\3'
24657ac_uC=' '
24658ac_uD=',;t'
24659
24660for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24661 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24662 case $ac_file in
24663 - | *:- | *:-:* ) # input from stdin
Reid Spencer17041682004-09-05 17:48:32 +000024664 cat >$tmp/stdin
24665 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24666 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024667 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer17041682004-09-05 17:48:32 +000024668 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024669 * ) ac_file_in=$ac_file.in ;;
24670 esac
24671
24672 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24673echo "$as_me: creating $ac_file" >&6;}
24674
24675 # First look for the input files in the build tree, otherwise in the
24676 # src tree.
24677 ac_file_inputs=`IFS=:
24678 for f in $ac_file_in; do
24679 case $f in
24680 -) echo $tmp/stdin ;;
24681 [\\/$]*)
Reid Spencer17041682004-09-05 17:48:32 +000024682 # Absolute (can't be DOS-style, as IFS=:)
24683 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024684echo "$as_me: error: cannot find input file: $f" >&2;}
24685 { (exit 1); exit 1; }; }
Reid Spencer17041682004-09-05 17:48:32 +000024686 # Do quote $f, to prevent DOS paths from being IFS'd.
24687 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024688 *) # Relative
Reid Spencer17041682004-09-05 17:48:32 +000024689 if test -f "$f"; then
24690 # Build tree
24691 echo "$f"
24692 elif test -f "$srcdir/$f"; then
24693 # Source tree
24694 echo "$srcdir/$f"
24695 else
24696 # /dev/null tree
24697 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024698echo "$as_me: error: cannot find input file: $f" >&2;}
24699 { (exit 1); exit 1; }; }
Reid Spencer17041682004-09-05 17:48:32 +000024700 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024701 esac
24702 done` || { (exit 1); exit 1; }
24703 # Remove the trailing spaces.
Reid Spencer17041682004-09-05 17:48:32 +000024704 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000024705
24706_ACEOF
24707
24708# Transform confdefs.h into two sed scripts, `conftest.defines' and
24709# `conftest.undefs', that substitutes the proper values into
24710# config.h.in to produce config.h. The first handles `#define'
24711# templates, and the second `#undef' templates.
24712# And first: Protect against being on the right side of a sed subst in
24713# config.status. Protect against being in an unquoted here document
24714# in config.status.
24715rm -f conftest.defines conftest.undefs
24716# Using a here document instead of a string reduces the quoting nightmare.
24717# Putting comments in sed scripts is not portable.
24718#
24719# `end' is used to avoid that the second main sed command (meant for
24720# 0-ary CPP macros) applies to n-ary macro definitions.
24721# See the Autoconf documentation for `clear'.
24722cat >confdef2sed.sed <<\_ACEOF
24723s/[\\&,]/\\&/g
24724s,[\\$`],\\&,g
24725t clear
24726: clear
Reid Spencer17041682004-09-05 17:48:32 +000024727s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024728t end
Reid Spencer17041682004-09-05 17:48:32 +000024729s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024730: end
24731_ACEOF
24732# If some macros were called several times there might be several times
24733# the same #defines, which is useless. Nevertheless, we may not want to
24734# sort them, since we want the *last* AC-DEFINE to be honored.
24735uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24736sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24737rm -f confdef2sed.sed
24738
24739# This sed command replaces #undef with comments. This is necessary, for
24740# example, in the case of _POSIX_SOURCE, which is predefined and required
24741# on some systems where configure will not decide to define it.
24742cat >>conftest.undefs <<\_ACEOF
Reid Spencer17041682004-09-05 17:48:32 +000024743s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000024744_ACEOF
24745
24746# Break up conftest.defines because some shells have a limit on the size
24747# of here documents, and old seds have small limits too (100 cmds).
24748echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer17041682004-09-05 17:48:32 +000024749echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024750echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24751echo ' :' >>$CONFIG_STATUS
24752rm -f conftest.tail
24753while grep . conftest.defines >/dev/null
24754do
24755 # Write a limited-size here document to $tmp/defines.sed.
24756 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24757 # Speed up: don't consider the non `#define' lines.
Reid Spencer17041682004-09-05 17:48:32 +000024758 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024759 # Work around the forget-to-reset-the-flag bug.
24760 echo 't clr' >>$CONFIG_STATUS
24761 echo ': clr' >>$CONFIG_STATUS
24762 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24763 echo 'CEOF
24764 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24765 rm -f $tmp/in
24766 mv $tmp/out $tmp/in
24767' >>$CONFIG_STATUS
24768 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24769 rm -f conftest.defines
24770 mv conftest.tail conftest.defines
24771done
24772rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024773echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024774echo >>$CONFIG_STATUS
24775
24776# Break up conftest.undefs because some shells have a limit on the size
24777# of here documents, and old seds have small limits too (100 cmds).
24778echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24779rm -f conftest.tail
24780while grep . conftest.undefs >/dev/null
24781do
24782 # Write a limited-size here document to $tmp/undefs.sed.
24783 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24784 # Speed up: don't consider the non `#undef'
Reid Spencer17041682004-09-05 17:48:32 +000024785 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024786 # Work around the forget-to-reset-the-flag bug.
24787 echo 't clr' >>$CONFIG_STATUS
24788 echo ': clr' >>$CONFIG_STATUS
24789 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24790 echo 'CEOF
24791 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24792 rm -f $tmp/in
24793 mv $tmp/out $tmp/in
24794' >>$CONFIG_STATUS
24795 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24796 rm -f conftest.undefs
24797 mv conftest.tail conftest.undefs
24798done
24799rm -f conftest.undefs
24800
24801cat >>$CONFIG_STATUS <<\_ACEOF
24802 # Let's still pretend it is `configure' which instantiates (i.e., don't
24803 # use $as_me), people would be surprised to read:
24804 # /* config.h. Generated by config.status. */
24805 if test x"$ac_file" = x-; then
24806 echo "/* Generated by configure. */" >$tmp/config.h
24807 else
24808 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24809 fi
24810 cat $tmp/in >>$tmp/config.h
24811 rm -f $tmp/in
24812 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024813 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024814 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24815echo "$as_me: $ac_file is unchanged" >&6;}
24816 else
24817 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24818$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024819 X"$ac_file" : 'X\(//\)[^/]' \| \
24820 X"$ac_file" : 'X\(//\)$' \| \
24821 X"$ac_file" : 'X\(/\)' \| \
24822 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000024823echo X"$ac_file" |
24824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24826 /^X\(\/\/\)$/{ s//\1/; q; }
24827 /^X\(\/\).*/{ s//\1/; q; }
24828 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024829 { if $as_mkdir_p; then
24830 mkdir -p "$ac_dir"
24831 else
24832 as_dir="$ac_dir"
24833 as_dirs=
24834 while test ! -d "$as_dir"; do
24835 as_dirs="$as_dir $as_dirs"
24836 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24837$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024838 X"$as_dir" : 'X\(//\)[^/]' \| \
24839 X"$as_dir" : 'X\(//\)$' \| \
24840 X"$as_dir" : 'X\(/\)' \| \
24841 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000024842echo X"$as_dir" |
24843 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24844 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24845 /^X\(\/\/\)$/{ s//\1/; q; }
24846 /^X\(\/\).*/{ s//\1/; q; }
24847 s/.*/./; q'`
24848 done
24849 test ! -n "$as_dirs" || mkdir $as_dirs
24850 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24851echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24852 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024853
24854 rm -f $ac_file
24855 mv $tmp/config.h $ac_file
24856 fi
24857 else
24858 cat $tmp/config.h
24859 rm -f $tmp/config.h
24860 fi
24861done
24862_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000024863cat >>$CONFIG_STATUS <<\_ACEOF
24864
24865#
Reid Spencerde8c47f2004-08-29 19:35:28 +000024866# CONFIG_LINKS section.
24867#
24868
24869for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
24870 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24871 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24872
24873 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
24874echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
24875
24876 if test ! -r $srcdir/$ac_source; then
24877 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
24878echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
24879 { (exit 1); exit 1; }; }
24880 fi
24881 rm -f $ac_dest
24882
24883 # Make relative symlinks.
24884 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
24885$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024886 X"$ac_dest" : 'X\(//\)[^/]' \| \
24887 X"$ac_dest" : 'X\(//\)$' \| \
24888 X"$ac_dest" : 'X\(/\)' \| \
24889 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000024890echo X"$ac_dest" |
24891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24892 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24893 /^X\(\/\/\)$/{ s//\1/; q; }
24894 /^X\(\/\).*/{ s//\1/; q; }
24895 s/.*/./; q'`
24896 { if $as_mkdir_p; then
24897 mkdir -p "$ac_dest_dir"
24898 else
24899 as_dir="$ac_dest_dir"
24900 as_dirs=
24901 while test ! -d "$as_dir"; do
24902 as_dirs="$as_dir $as_dirs"
24903 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24904$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024905 X"$as_dir" : 'X\(//\)[^/]' \| \
24906 X"$as_dir" : 'X\(//\)$' \| \
24907 X"$as_dir" : 'X\(/\)' \| \
24908 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000024909echo X"$as_dir" |
24910 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24911 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24912 /^X\(\/\/\)$/{ s//\1/; q; }
24913 /^X\(\/\).*/{ s//\1/; q; }
24914 s/.*/./; q'`
24915 done
24916 test ! -n "$as_dirs" || mkdir $as_dirs
24917 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
24918echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
24919 { (exit 1); exit 1; }; }; }
24920
24921 ac_builddir=.
24922
24923if test "$ac_dest_dir" != .; then
24924 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
24925 # A "../" for each directory in $ac_dir_suffix.
24926 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24927else
24928 ac_dir_suffix= ac_top_builddir=
24929fi
24930
24931case $srcdir in
24932 .) # No --srcdir option. We are building in place.
24933 ac_srcdir=.
24934 if test -z "$ac_top_builddir"; then
24935 ac_top_srcdir=.
24936 else
24937 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24938 fi ;;
24939 [\\/]* | ?:[\\/]* ) # Absolute path.
24940 ac_srcdir=$srcdir$ac_dir_suffix;
24941 ac_top_srcdir=$srcdir ;;
24942 *) # Relative path.
24943 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24944 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24945esac
Reid Spencer17041682004-09-05 17:48:32 +000024946
24947# Do not use `cd foo && pwd` to compute absolute paths, because
24948# the directories may not exist.
24949case `pwd` in
24950.) ac_abs_builddir="$ac_dest_dir";;
24951*)
24952 case "$ac_dest_dir" in
24953 .) ac_abs_builddir=`pwd`;;
24954 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
24955 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
24956 esac;;
24957esac
24958case $ac_abs_builddir in
24959.) ac_abs_top_builddir=${ac_top_builddir}.;;
24960*)
24961 case ${ac_top_builddir}. in
24962 .) ac_abs_top_builddir=$ac_abs_builddir;;
24963 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24964 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24965 esac;;
24966esac
24967case $ac_abs_builddir in
24968.) ac_abs_srcdir=$ac_srcdir;;
24969*)
24970 case $ac_srcdir in
24971 .) ac_abs_srcdir=$ac_abs_builddir;;
24972 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24973 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24974 esac;;
24975esac
24976case $ac_abs_builddir in
24977.) ac_abs_top_srcdir=$ac_top_srcdir;;
24978*)
24979 case $ac_top_srcdir in
24980 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24981 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24982 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24983 esac;;
24984esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000024985
24986
24987 case $srcdir in
24988 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
24989 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
24990 esac
24991
24992 # Try a symlink, then a hard link, then a copy.
24993 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
24994 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
24995 cp -p $srcdir/$ac_source $ac_dest ||
24996 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
24997echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
24998 { (exit 1); exit 1; }; }
24999done
25000_ACEOF
25001cat >>$CONFIG_STATUS <<\_ACEOF
25002
25003#
John Criswellc764fbc2003-09-06 15:17:13 +000025004# CONFIG_COMMANDS section.
25005#
25006for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25007 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25008 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25009 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25010$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000025011 X"$ac_dest" : 'X\(//\)[^/]' \| \
25012 X"$ac_dest" : 'X\(//\)$' \| \
25013 X"$ac_dest" : 'X\(/\)' \| \
25014 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000025015echo X"$ac_dest" |
25016 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25017 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25018 /^X\(\/\/\)$/{ s//\1/; q; }
25019 /^X\(\/\).*/{ s//\1/; q; }
25020 s/.*/./; q'`
Reid Spencer17041682004-09-05 17:48:32 +000025021 { if $as_mkdir_p; then
25022 mkdir -p "$ac_dir"
25023 else
25024 as_dir="$ac_dir"
25025 as_dirs=
25026 while test ! -d "$as_dir"; do
25027 as_dirs="$as_dir $as_dirs"
25028 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25029$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25030 X"$as_dir" : 'X\(//\)[^/]' \| \
25031 X"$as_dir" : 'X\(//\)$' \| \
25032 X"$as_dir" : 'X\(/\)' \| \
25033 . : '\(.\)' 2>/dev/null ||
25034echo X"$as_dir" |
25035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25036 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25037 /^X\(\/\/\)$/{ s//\1/; q; }
25038 /^X\(\/\).*/{ s//\1/; q; }
25039 s/.*/./; q'`
25040 done
25041 test ! -n "$as_dirs" || mkdir $as_dirs
25042 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25043echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25044 { (exit 1); exit 1; }; }; }
25045
John Criswellc764fbc2003-09-06 15:17:13 +000025046 ac_builddir=.
25047
25048if test "$ac_dir" != .; then
25049 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25050 # A "../" for each directory in $ac_dir_suffix.
25051 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25052else
25053 ac_dir_suffix= ac_top_builddir=
25054fi
25055
25056case $srcdir in
25057 .) # No --srcdir option. We are building in place.
25058 ac_srcdir=.
25059 if test -z "$ac_top_builddir"; then
25060 ac_top_srcdir=.
25061 else
25062 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25063 fi ;;
25064 [\\/]* | ?:[\\/]* ) # Absolute path.
25065 ac_srcdir=$srcdir$ac_dir_suffix;
25066 ac_top_srcdir=$srcdir ;;
25067 *) # Relative path.
25068 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25069 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25070esac
Reid Spencer17041682004-09-05 17:48:32 +000025071
25072# Do not use `cd foo && pwd` to compute absolute paths, because
25073# the directories may not exist.
25074case `pwd` in
25075.) ac_abs_builddir="$ac_dir";;
25076*)
25077 case "$ac_dir" in
25078 .) ac_abs_builddir=`pwd`;;
25079 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25080 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25081 esac;;
25082esac
25083case $ac_abs_builddir in
25084.) ac_abs_top_builddir=${ac_top_builddir}.;;
25085*)
25086 case ${ac_top_builddir}. in
25087 .) ac_abs_top_builddir=$ac_abs_builddir;;
25088 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25089 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25090 esac;;
25091esac
25092case $ac_abs_builddir in
25093.) ac_abs_srcdir=$ac_srcdir;;
25094*)
25095 case $ac_srcdir in
25096 .) ac_abs_srcdir=$ac_abs_builddir;;
25097 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25098 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25099 esac;;
25100esac
25101case $ac_abs_builddir in
25102.) ac_abs_top_srcdir=$ac_top_srcdir;;
25103*)
25104 case $ac_top_srcdir in
25105 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25106 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25107 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25108 esac;;
25109esac
John Criswellc764fbc2003-09-06 15:17:13 +000025110
25111
25112 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25113echo "$as_me: executing $ac_dest commands" >&6;}
25114 case $ac_dest in
25115 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25116 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025117 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025118 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025119 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025120 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25121 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000025122 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25123 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 +000025124 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025125 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025126 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025127 esac
25128done
25129_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025130
25131cat >>$CONFIG_STATUS <<\_ACEOF
25132
25133{ (exit 0); exit 0; }
25134_ACEOF
25135chmod +x $CONFIG_STATUS
25136ac_clean_files=$ac_clean_files_save
25137
25138
25139# configure is writing to config.log, and then calls config.status.
25140# config.status does its own redirection, appending to config.log.
25141# Unfortunately, on DOS this fails, as config.log is still kept open
25142# by configure, so config.status won't be able to write to it; its
25143# output is simply discarded. So we exec the FD to /dev/null,
25144# effectively closing config.log, so it can be properly (re)opened and
25145# appended to by config.status. When coming back to configure, we
25146# need to make the FD available again.
25147if test "$no_create" != yes; then
25148 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000025149 ac_config_status_args=
25150 test "$silent" = yes &&
25151 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000025152 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000025153 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000025154 exec 5>>config.log
25155 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25156 # would make configure fail if this is the last instruction.
25157 $ac_cs_success || { (exit 1); exit 1; }
25158fi
25159
John Criswell12399a12003-09-30 15:55:44 +000025160#
25161# CONFIG_SUBDIRS section.
25162#
25163if test "$no_recursion" != yes; then
25164
25165 # Remove --cache-file and --srcdir arguments so they do not pile up.
25166 ac_sub_configure_args=
25167 ac_prev=
25168 for ac_arg in $ac_configure_args; do
25169 if test -n "$ac_prev"; then
25170 ac_prev=
25171 continue
25172 fi
25173 case $ac_arg in
25174 -cache-file | --cache-file | --cache-fil | --cache-fi \
25175 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25176 ac_prev=cache_file ;;
25177 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25178 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25179 | --c=*)
25180 ;;
25181 --config-cache | -C)
25182 ;;
25183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25184 ac_prev=srcdir ;;
25185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25186 ;;
25187 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25188 ac_prev=prefix ;;
25189 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25190 ;;
25191 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25192 esac
25193 done
25194
25195 # Always prepend --prefix to ensure using the same prefix
25196 # in subdir configurations.
25197 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25198
25199 ac_popdir=`pwd`
25200 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25201
25202 # Do not complain, so a configure script can configure whichever
25203 # parts of a large source tree are present.
25204 test -d $srcdir/$ac_dir || continue
25205
25206 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25207echo "$as_me: configuring in $ac_dir" >&6;}
25208 { if $as_mkdir_p; then
25209 mkdir -p "$ac_dir"
25210 else
25211 as_dir="$ac_dir"
25212 as_dirs=
25213 while test ! -d "$as_dir"; do
25214 as_dirs="$as_dir $as_dirs"
25215 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25216$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000025217 X"$as_dir" : 'X\(//\)[^/]' \| \
25218 X"$as_dir" : 'X\(//\)$' \| \
25219 X"$as_dir" : 'X\(/\)' \| \
25220 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000025221echo X"$as_dir" |
25222 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25223 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25224 /^X\(\/\/\)$/{ s//\1/; q; }
25225 /^X\(\/\).*/{ s//\1/; q; }
25226 s/.*/./; q'`
25227 done
25228 test ! -n "$as_dirs" || mkdir $as_dirs
25229 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25230echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25231 { (exit 1); exit 1; }; }; }
25232
25233 ac_builddir=.
25234
25235if test "$ac_dir" != .; then
25236 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25237 # A "../" for each directory in $ac_dir_suffix.
25238 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25239else
25240 ac_dir_suffix= ac_top_builddir=
25241fi
25242
25243case $srcdir in
25244 .) # No --srcdir option. We are building in place.
25245 ac_srcdir=.
25246 if test -z "$ac_top_builddir"; then
25247 ac_top_srcdir=.
25248 else
25249 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25250 fi ;;
25251 [\\/]* | ?:[\\/]* ) # Absolute path.
25252 ac_srcdir=$srcdir$ac_dir_suffix;
25253 ac_top_srcdir=$srcdir ;;
25254 *) # Relative path.
25255 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25256 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25257esac
Reid Spencer17041682004-09-05 17:48:32 +000025258
25259# Do not use `cd foo && pwd` to compute absolute paths, because
25260# the directories may not exist.
25261case `pwd` in
25262.) ac_abs_builddir="$ac_dir";;
25263*)
25264 case "$ac_dir" in
25265 .) ac_abs_builddir=`pwd`;;
25266 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25267 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25268 esac;;
25269esac
25270case $ac_abs_builddir in
25271.) ac_abs_top_builddir=${ac_top_builddir}.;;
25272*)
25273 case ${ac_top_builddir}. in
25274 .) ac_abs_top_builddir=$ac_abs_builddir;;
25275 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25276 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25277 esac;;
25278esac
25279case $ac_abs_builddir in
25280.) ac_abs_srcdir=$ac_srcdir;;
25281*)
25282 case $ac_srcdir in
25283 .) ac_abs_srcdir=$ac_abs_builddir;;
25284 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25285 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25286 esac;;
25287esac
25288case $ac_abs_builddir in
25289.) ac_abs_top_srcdir=$ac_top_srcdir;;
25290*)
25291 case $ac_top_srcdir in
25292 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25293 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25294 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25295 esac;;
25296esac
John Criswell12399a12003-09-30 15:55:44 +000025297
25298
25299 cd $ac_dir
25300
25301 # Check for guested configure; otherwise get Cygnus style configure.
25302 if test -f $ac_srcdir/configure.gnu; then
25303 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25304 elif test -f $ac_srcdir/configure; then
25305 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25306 elif test -f $ac_srcdir/configure.in; then
25307 ac_sub_configure=$ac_configure
25308 else
25309 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25310echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25311 ac_sub_configure=
25312 fi
25313
25314 # The recursion is here.
25315 if test -n "$ac_sub_configure"; then
25316 # Make the cache file name correct relative to the subdirectory.
25317 case $cache_file in
25318 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25319 *) # Relative path.
Reid Spencer17041682004-09-05 17:48:32 +000025320 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000025321 esac
25322
25323 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25324echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25325 # The eval makes quoting arguments work.
25326 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer17041682004-09-05 17:48:32 +000025327 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25328 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000025329echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25330 { (exit 1); exit 1; }; }
25331 fi
25332
25333 cd $ac_popdir
25334 done
25335fi
25336
Brian Gaekef3b24102003-11-16 18:38:14 +000025337
25338if test $llvmgccwarn = yes
25339then
25340 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25341echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25342 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25343echo "$as_me: WARNING: ***** appear to be working." >&2;}
25344 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25345echo "$as_me: WARNING: ***** " >&2;}
25346 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25347echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25348 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25349echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25350 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25351echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25352fi
Brian Gaeke554831c2004-01-21 19:39:29 +000025353