blob: 8220a44ec51f3617edfe0f7ad5d20147de30f39e [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Brian Gaeke0a621332004-09-08 20:38:05 +00003# Generated by GNU Autoconf 2.57 for LLVM 1.4.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Brian Gaeke0a621332004-09-08 20:38:05 +00007# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8# Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000011## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be Bourne compatible
16if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 set -o posix
24fi
25
26# Support unset when possible.
Brian Gaeke0a621332004-09-08 20:38:05 +000027if (FOO=FOO; unset FOO) >/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
Brian Gaeke0a621332004-09-08 20:38:05 +000046 if (set +x; test -n "`(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
223 as_mkdir_p=false
224fi
225
226as_executable_p="test -f"
227
228# Sed expression to map a string onto a valid CPP name.
Brian Gaeke0a621332004-09-08 20:38:05 +0000229as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
John Criswell0c38eaf2003-09-10 15:17:25 +0000230
231# Sed expression to map a string onto a valid variable name.
Brian Gaeke0a621332004-09-08 20:38:05 +0000232as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
John Criswell0c38eaf2003-09-10 15:17:25 +0000233
234
235# IFS
236# We need space, tab and new line, in precisely that order.
237as_nl='
238'
239IFS=" $as_nl"
240
241# CDPATH.
242$as_unset CDPATH
243
John Criswell7a73b802003-06-30 21:59:07 +0000244
John Criswell7a73b802003-06-30 21:59:07 +0000245
246# Check that we are running under the correct shell.
247SHELL=${CONFIG_SHELL-/bin/sh}
248
249case X$ECHO in
250X*--fallback-echo)
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
253 ;;
254esac
255
256echo=${ECHO-echo}
257if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
259 shift
260elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
262 :
John Criswell47fdd832003-07-14 16:52:07 +0000263elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000264 # Yippee, $echo works!
265 :
266else
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
269fi
270
271if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
273 shift
274 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000275$*
John Criswell7a73b802003-06-30 21:59:07 +0000276EOF
277 exit 0
278fi
279
280# The HP-UX ksh and POSIX shell print the target directory to stdout
281# if CDPATH is set.
282if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283
284if test -z "$ECHO"; then
285if test "X${echo_test_string+set}" != Xset; then
286# find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
290 echo_test_string="`eval $cmd`" &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
292 then
293 break
294 fi
295 done
296fi
297
298if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
301 :
302else
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
306 #
307 # So, first we look for a working echo in the user's PATH.
308
John Criswell47fdd832003-07-14 16:52:07 +0000309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000310 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000311 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
316 echo="$dir/echo"
317 break
318 fi
319 done
John Criswell47fdd832003-07-14 16:52:07 +0000320 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000321
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
328 echo='print -r'
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
335 export CONFIG_SHELL
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
337 else
338 # Try using printf.
339 echo='printf %s\n'
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
343 # Cool, printf works
344 :
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 export CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
352 export SHELL
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
359 else
360 # maybe with a smaller string...
361 prev=:
362
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
365 then
366 break
367 fi
368 prev="$cmd"
369 done
370
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 else
376 # Oops. We lost completely, so just stick with echo.
377 echo=echo
378 fi
379 fi
380 fi
381 fi
382fi
383fi
384
385# Copy echo and quote the copy suitably for passing to libtool from
386# the Makefile, instead of quoting the original, which is used later.
387ECHO=$echo
388if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
390fi
391
392
393
John Criswell47fdd832003-07-14 16:52:07 +0000394
Brian Gaeke0a621332004-09-08 20:38:05 +0000395tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
John Criswell47fdd832003-07-14 16:52:07 +0000396
Brian Gaeke0a621332004-09-08 20:38:05 +0000397tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
John Criswell47fdd832003-07-14 16:52:07 +0000398
John Criswell7a73b802003-06-30 21:59:07 +0000399# Name of the host.
400# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401# so uname gets run too.
402ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
404exec 6>&1
405
406#
407# Initializations.
408#
409ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000410ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000411cross_compiling=no
412subdirs=
413MFLAGS=
414MAKEFLAGS=
415SHELL=${CONFIG_SHELL-/bin/sh}
416
417# Maximum number of lines to put in a shell here document.
418# This variable seems obsolete. It should probably be removed, and
419# only ac_max_sed_lines should be used.
420: ${ac_max_here_lines=38}
421
422# Identity of this package.
Reid Spencer2b51a082004-08-04 00:34:49 +0000423PACKAGE_NAME='LLVM'
424PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000425PACKAGE_VERSION='1.4'
426PACKAGE_STRING='LLVM 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000427PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
428
Reid Spencer4d68ba22004-09-07 16:35:45 +0000429ac_subdirs_all="$ac_subdirs_all projects/sample"
430ac_subdirs_all="$ac_subdirs_all projects/Stacker"
431ac_subdirs_all="$ac_subdirs_all projects/llvm-test"
432ac_subdirs_all="$ac_subdirs_all projects/llvm-reopt"
433ac_subdirs_all="$ac_subdirs_all projects/llvm-gcc"
434ac_subdirs_all="$ac_subdirs_all projects/llvm-java"
435ac_subdirs_all="$ac_subdirs_all projects/llvm-tv"
436ac_subdirs_all="$ac_subdirs_all projects/llvm-fefw"
437ac_subdirs_all="$ac_subdirs_all ${i}"
John Criswell7a73b802003-06-30 21:59:07 +0000438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452# include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457# include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468# include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_unique_file=""Makefile.config.in""
Reid Spencer9751dbf2004-09-07 18:04:45 +0000476ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT FLEX YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK 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 SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000477ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000478
479# Initialize some variables set by options.
480ac_init_help=
481ac_init_version=false
482# The variables have the same names as the options, with
483# dashes changed to underlines.
484cache_file=/dev/null
485exec_prefix=NONE
486no_create=
487no_recursion=
488prefix=NONE
489program_prefix=NONE
490program_suffix=NONE
491program_transform_name=s,x,x,
492silent=
493site=
494srcdir=
495verbose=
496x_includes=NONE
497x_libraries=NONE
498
499# Installation directory options.
500# These are left unexpanded so users can "make install exec_prefix=/foo"
501# and all the variables that are supposed to be based on exec_prefix
502# by default will actually change.
503# Use braces instead of parens because sh, perl, etc. also accept them.
504bindir='${exec_prefix}/bin'
505sbindir='${exec_prefix}/sbin'
506libexecdir='${exec_prefix}/libexec'
507datadir='${prefix}/share'
508sysconfdir='${prefix}/etc'
509sharedstatedir='${prefix}/com'
510localstatedir='${prefix}/var'
511libdir='${exec_prefix}/lib'
512includedir='${prefix}/include'
513oldincludedir='/usr/include'
514infodir='${prefix}/info'
515mandir='${prefix}/man'
516
517ac_prev=
518for ac_option
519do
520 # If the previous option needs an argument, assign it.
521 if test -n "$ac_prev"; then
522 eval "$ac_prev=\$ac_option"
523 ac_prev=
524 continue
525 fi
526
527 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
528
529 # Accept the important Cygnus configure options, so we can diagnose typos.
530
531 case $ac_option in
532
533 -bindir | --bindir | --bindi | --bind | --bin | --bi)
534 ac_prev=bindir ;;
535 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536 bindir=$ac_optarg ;;
537
538 -build | --build | --buil | --bui | --bu)
539 ac_prev=build_alias ;;
540 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541 build_alias=$ac_optarg ;;
542
543 -cache-file | --cache-file | --cache-fil | --cache-fi \
544 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545 ac_prev=cache_file ;;
546 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548 cache_file=$ac_optarg ;;
549
550 --config-cache | -C)
551 cache_file=config.cache ;;
552
553 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
554 ac_prev=datadir ;;
555 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
556 | --da=*)
557 datadir=$ac_optarg ;;
558
559 -disable-* | --disable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566 eval "enable_$ac_feature=no" ;;
567
568 -enable-* | --enable-*)
569 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570 # Reject names that are not valid shell variable names.
571 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573 { (exit 1); exit 1; }; }
574 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575 case $ac_option in
576 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577 *) ac_optarg=yes ;;
578 esac
579 eval "enable_$ac_feature='$ac_optarg'" ;;
580
581 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583 | --exec | --exe | --ex)
584 ac_prev=exec_prefix ;;
585 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587 | --exec=* | --exe=* | --ex=*)
588 exec_prefix=$ac_optarg ;;
589
590 -gas | --gas | --ga | --g)
591 # Obsolete; use --with-gas.
592 with_gas=yes ;;
593
594 -help | --help | --hel | --he | -h)
595 ac_init_help=long ;;
596 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597 ac_init_help=recursive ;;
598 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599 ac_init_help=short ;;
600
601 -host | --host | --hos | --ho)
602 ac_prev=host_alias ;;
603 -host=* | --host=* | --hos=* | --ho=*)
604 host_alias=$ac_optarg ;;
605
606 -includedir | --includedir | --includedi | --included | --include \
607 | --includ | --inclu | --incl | --inc)
608 ac_prev=includedir ;;
609 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610 | --includ=* | --inclu=* | --incl=* | --inc=*)
611 includedir=$ac_optarg ;;
612
613 -infodir | --infodir | --infodi | --infod | --info | --inf)
614 ac_prev=infodir ;;
615 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616 infodir=$ac_optarg ;;
617
618 -libdir | --libdir | --libdi | --libd)
619 ac_prev=libdir ;;
620 -libdir=* | --libdir=* | --libdi=* | --libd=*)
621 libdir=$ac_optarg ;;
622
623 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624 | --libexe | --libex | --libe)
625 ac_prev=libexecdir ;;
626 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627 | --libexe=* | --libex=* | --libe=*)
628 libexecdir=$ac_optarg ;;
629
630 -localstatedir | --localstatedir | --localstatedi | --localstated \
631 | --localstate | --localstat | --localsta | --localst \
632 | --locals | --local | --loca | --loc | --lo)
633 ac_prev=localstatedir ;;
634 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637 localstatedir=$ac_optarg ;;
638
639 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
640 ac_prev=mandir ;;
641 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642 mandir=$ac_optarg ;;
643
644 -nfp | --nfp | --nf)
645 # Obsolete; use --without-fp.
646 with_fp=no ;;
647
648 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649 | --no-cr | --no-c | -n)
650 no_create=yes ;;
651
652 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
654 no_recursion=yes ;;
655
656 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658 | --oldin | --oldi | --old | --ol | --o)
659 ac_prev=oldincludedir ;;
660 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663 oldincludedir=$ac_optarg ;;
664
665 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
666 ac_prev=prefix ;;
667 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
668 prefix=$ac_optarg ;;
669
670 -program-prefix | --program-prefix | --program-prefi | --program-pref \
671 | --program-pre | --program-pr | --program-p)
672 ac_prev=program_prefix ;;
673 -program-prefix=* | --program-prefix=* | --program-prefi=* \
674 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675 program_prefix=$ac_optarg ;;
676
677 -program-suffix | --program-suffix | --program-suffi | --program-suff \
678 | --program-suf | --program-su | --program-s)
679 ac_prev=program_suffix ;;
680 -program-suffix=* | --program-suffix=* | --program-suffi=* \
681 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682 program_suffix=$ac_optarg ;;
683
684 -program-transform-name | --program-transform-name \
685 | --program-transform-nam | --program-transform-na \
686 | --program-transform-n | --program-transform- \
687 | --program-transform | --program-transfor \
688 | --program-transfo | --program-transf \
689 | --program-trans | --program-tran \
690 | --progr-tra | --program-tr | --program-t)
691 ac_prev=program_transform_name ;;
692 -program-transform-name=* | --program-transform-name=* \
693 | --program-transform-nam=* | --program-transform-na=* \
694 | --program-transform-n=* | --program-transform-=* \
695 | --program-transform=* | --program-transfor=* \
696 | --program-transfo=* | --program-transf=* \
697 | --program-trans=* | --program-tran=* \
698 | --progr-tra=* | --program-tr=* | --program-t=*)
699 program_transform_name=$ac_optarg ;;
700
701 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702 | -silent | --silent | --silen | --sile | --sil)
703 silent=yes ;;
704
705 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
706 ac_prev=sbindir ;;
707 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
708 | --sbi=* | --sb=*)
709 sbindir=$ac_optarg ;;
710
711 -sharedstatedir | --sharedstatedir | --sharedstatedi \
712 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713 | --sharedst | --shareds | --shared | --share | --shar \
714 | --sha | --sh)
715 ac_prev=sharedstatedir ;;
716 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
719 | --sha=* | --sh=*)
720 sharedstatedir=$ac_optarg ;;
721
722 -site | --site | --sit)
723 ac_prev=site ;;
724 -site=* | --site=* | --sit=*)
725 site=$ac_optarg ;;
726
727 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
728 ac_prev=srcdir ;;
729 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
730 srcdir=$ac_optarg ;;
731
732 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733 | --syscon | --sysco | --sysc | --sys | --sy)
734 ac_prev=sysconfdir ;;
735 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737 sysconfdir=$ac_optarg ;;
738
739 -target | --target | --targe | --targ | --tar | --ta | --t)
740 ac_prev=target_alias ;;
741 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742 target_alias=$ac_optarg ;;
743
744 -v | -verbose | --verbose | --verbos | --verbo | --verb)
745 verbose=yes ;;
746
747 -version | --version | --versio | --versi | --vers | -V)
748 ac_init_version=: ;;
749
750 -with-* | --with-*)
751 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752 # Reject names that are not valid shell variable names.
753 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754 { echo "$as_me: error: invalid package name: $ac_package" >&2
755 { (exit 1); exit 1; }; }
756 ac_package=`echo $ac_package| sed 's/-/_/g'`
757 case $ac_option in
758 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
759 *) ac_optarg=yes ;;
760 esac
761 eval "with_$ac_package='$ac_optarg'" ;;
762
763 -without-* | --without-*)
764 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765 # Reject names that are not valid shell variable names.
766 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767 { echo "$as_me: error: invalid package name: $ac_package" >&2
768 { (exit 1); exit 1; }; }
769 ac_package=`echo $ac_package | sed 's/-/_/g'`
770 eval "with_$ac_package=no" ;;
771
772 --x)
773 # Obsolete; use --with-x.
774 with_x=yes ;;
775
776 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777 | --x-incl | --x-inc | --x-in | --x-i)
778 ac_prev=x_includes ;;
779 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781 x_includes=$ac_optarg ;;
782
783 -x-libraries | --x-libraries | --x-librarie | --x-librari \
784 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785 ac_prev=x_libraries ;;
786 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788 x_libraries=$ac_optarg ;;
789
790 -*) { echo "$as_me: error: unrecognized option: $ac_option
791Try \`$0 --help' for more information." >&2
792 { (exit 1); exit 1; }; }
793 ;;
794
795 *=*)
796 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797 # Reject names that are not valid shell variable names.
798 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800 { (exit 1); exit 1; }; }
801 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802 eval "$ac_envvar='$ac_optarg'"
803 export $ac_envvar ;;
804
805 *)
806 # FIXME: should be removed in autoconf 3.0.
807 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811 ;;
812
813 esac
814done
815
816if test -n "$ac_prev"; then
817 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818 { echo "$as_me: error: missing argument to $ac_option" >&2
819 { (exit 1); exit 1; }; }
820fi
821
822# Be sure to have absolute paths.
823for ac_var in exec_prefix prefix
824do
825 eval ac_val=$`echo $ac_var`
826 case $ac_val in
827 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829 { (exit 1); exit 1; }; };;
830 esac
831done
832
833# Be sure to have absolute paths.
834for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Brian Gaeke0a621332004-09-08 20:38:05 +0000835 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000836do
837 eval ac_val=$`echo $ac_var`
838 case $ac_val in
839 [\\/$]* | ?:[\\/]* ) ;;
840 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841 { (exit 1); exit 1; }; };;
842 esac
843done
844
845# There might be people who depend on the old broken behavior: `$host'
846# used to hold the argument of --host etc.
847# FIXME: To remove some day.
848build=$build_alias
849host=$host_alias
850target=$target_alias
851
852# FIXME: To remove some day.
853if test "x$host_alias" != x; then
854 if test "x$build_alias" = x; then
855 cross_compiling=maybe
856 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857 If a cross compiler is detected then cross compile mode will be used." >&2
858 elif test "x$build_alias" != "x$host_alias"; then
859 cross_compiling=yes
860 fi
861fi
862
863ac_tool_prefix=
864test -n "$host_alias" && ac_tool_prefix=$host_alias-
865
866test "$silent" = yes && exec 6>/dev/null
867
868
869# Find the source files, if location was not specified.
870if test -z "$srcdir"; then
871 ac_srcdir_defaulted=yes
872 # Try the directory containing this script, then its parent.
873 ac_confdir=`(dirname "$0") 2>/dev/null ||
874$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Brian Gaeke0a621332004-09-08 20:38:05 +0000875 X"$0" : 'X\(//\)[^/]' \| \
876 X"$0" : 'X\(//\)$' \| \
877 X"$0" : 'X\(/\)' \| \
878 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000879echo X"$0" |
880 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882 /^X\(\/\/\)$/{ s//\1/; q; }
883 /^X\(\/\).*/{ s//\1/; q; }
884 s/.*/./; q'`
885 srcdir=$ac_confdir
886 if test ! -r $srcdir/$ac_unique_file; then
887 srcdir=..
888 fi
889else
890 ac_srcdir_defaulted=no
891fi
892if test ! -r $srcdir/$ac_unique_file; then
893 if test "$ac_srcdir_defaulted" = yes; then
894 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895 { (exit 1); exit 1; }; }
896 else
897 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898 { (exit 1); exit 1; }; }
899 fi
900fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000901(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000904srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905ac_env_build_alias_set=${build_alias+set}
906ac_env_build_alias_value=$build_alias
907ac_cv_env_build_alias_set=${build_alias+set}
908ac_cv_env_build_alias_value=$build_alias
909ac_env_host_alias_set=${host_alias+set}
910ac_env_host_alias_value=$host_alias
911ac_cv_env_host_alias_set=${host_alias+set}
912ac_cv_env_host_alias_value=$host_alias
913ac_env_target_alias_set=${target_alias+set}
914ac_env_target_alias_value=$target_alias
915ac_cv_env_target_alias_set=${target_alias+set}
916ac_cv_env_target_alias_value=$target_alias
917ac_env_CXX_set=${CXX+set}
918ac_env_CXX_value=$CXX
919ac_cv_env_CXX_set=${CXX+set}
920ac_cv_env_CXX_value=$CXX
921ac_env_CXXFLAGS_set=${CXXFLAGS+set}
922ac_env_CXXFLAGS_value=$CXXFLAGS
923ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
924ac_cv_env_CXXFLAGS_value=$CXXFLAGS
925ac_env_LDFLAGS_set=${LDFLAGS+set}
926ac_env_LDFLAGS_value=$LDFLAGS
927ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
928ac_cv_env_LDFLAGS_value=$LDFLAGS
929ac_env_CPPFLAGS_set=${CPPFLAGS+set}
930ac_env_CPPFLAGS_value=$CPPFLAGS
931ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
932ac_cv_env_CPPFLAGS_value=$CPPFLAGS
933ac_env_CC_set=${CC+set}
934ac_env_CC_value=$CC
935ac_cv_env_CC_set=${CC+set}
936ac_cv_env_CC_value=$CC
937ac_env_CFLAGS_set=${CFLAGS+set}
938ac_env_CFLAGS_value=$CFLAGS
939ac_cv_env_CFLAGS_set=${CFLAGS+set}
940ac_cv_env_CFLAGS_value=$CFLAGS
941ac_env_CPP_set=${CPP+set}
942ac_env_CPP_value=$CPP
943ac_cv_env_CPP_set=${CPP+set}
944ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000945ac_env_CXXCPP_set=${CXXCPP+set}
946ac_env_CXXCPP_value=$CXXCPP
947ac_cv_env_CXXCPP_set=${CXXCPP+set}
948ac_cv_env_CXXCPP_value=$CXXCPP
949ac_env_F77_set=${F77+set}
950ac_env_F77_value=$F77
951ac_cv_env_F77_set=${F77+set}
952ac_cv_env_F77_value=$F77
953ac_env_FFLAGS_set=${FFLAGS+set}
954ac_env_FFLAGS_value=$FFLAGS
955ac_cv_env_FFLAGS_set=${FFLAGS+set}
956ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000957
958#
959# Report the --help message.
960#
961if test "$ac_init_help" = "long"; then
962 # Omit some internal or obsolete options to make the list less imposing.
963 # This message is too long to be a string in the A/UX 3.1 sh.
964 cat <<_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +0000965\`configure' configures LLVM 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000966
967Usage: $0 [OPTION]... [VAR=VALUE]...
968
969To assign environment variables (e.g., CC, CFLAGS...), specify them as
970VAR=VALUE. See below for descriptions of some of the useful variables.
971
972Defaults for the options are specified in brackets.
973
974Configuration:
975 -h, --help display this help and exit
976 --help=short display options specific to this package
977 --help=recursive display the short help of all the included packages
978 -V, --version display version information and exit
979 -q, --quiet, --silent do not print \`checking...' messages
980 --cache-file=FILE cache test results in FILE [disabled]
981 -C, --config-cache alias for \`--cache-file=config.cache'
982 -n, --no-create do not create output files
983 --srcdir=DIR find the sources in DIR [configure dir or \`..']
984
985_ACEOF
986
987 cat <<_ACEOF
988Installation directories:
989 --prefix=PREFIX install architecture-independent files in PREFIX
Brian Gaeke0a621332004-09-08 20:38:05 +0000990 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000991 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Brian Gaeke0a621332004-09-08 20:38:05 +0000992 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000993
994By default, \`make install' will install all the files in
995\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
996an installation prefix other than \`$ac_default_prefix' using \`--prefix',
997for instance \`--prefix=\$HOME'.
998
999For better control, use the options below.
1000
1001Fine tuning of the installation directories:
1002 --bindir=DIR user executables [EPREFIX/bin]
1003 --sbindir=DIR system admin executables [EPREFIX/sbin]
1004 --libexecdir=DIR program executables [EPREFIX/libexec]
1005 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1006 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1007 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1008 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1009 --libdir=DIR object code libraries [EPREFIX/lib]
1010 --includedir=DIR C header files [PREFIX/include]
1011 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1012 --infodir=DIR info documentation [PREFIX/info]
1013 --mandir=DIR man documentation [PREFIX/man]
1014_ACEOF
1015
1016 cat <<\_ACEOF
1017
1018System types:
1019 --build=BUILD configure for building on BUILD [guessed]
1020 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1021 --target=TARGET configure for building compilers for TARGET [HOST]
1022_ACEOF
1023fi
1024
1025if test -n "$ac_init_help"; then
1026 case $ac_init_help in
Reid Spencere9de0912004-08-20 09:03:57 +00001027 short | recursive ) echo "Configuration of LLVM 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001028 esac
1029 cat <<\_ACEOF
1030
1031Optional Features:
1032 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1033 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001034 --enable-shared[=PKGS]
1035 build shared libraries [default=yes]
1036 --enable-static[=PKGS]
1037 build static libraries [default=yes]
1038 --enable-fast-install[=PKGS]
1039 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001040 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001041 --enable-optimized Compile with optimizations enabled (default is NO)
John Criswellc78022e2003-07-29 19:11:58 +00001042 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001043
1044Optional Packages:
1045 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001047 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1048 --with-pic try to use only PIC/non-PIC objects [default=use
1049 both]
1050 --with-tags[=TAGS]
1051 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001052 --with-llvmgccdir Location of LLVM GCC front-end
John Criswell7a73b802003-06-30 21:59:07 +00001053
1054Some influential environment variables:
1055 CXX C++ compiler command
1056 CXXFLAGS C++ compiler flags
1057 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1058 nonstandard directory <lib dir>
1059 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1060 headers in a nonstandard directory <include dir>
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001064 CXXCPP C++ preprocessor
1065 F77 Fortran 77 compiler command
1066 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001067
1068Use these variables to override the choices made by `configure' or to help
1069it to find libraries and programs with nonstandard names/locations.
1070
1071Report bugs to <llvmbugs@cs.uiuc.edu>.
1072_ACEOF
1073fi
1074
1075if test "$ac_init_help" = "recursive"; then
1076 # If there are subdirs, report their specific --help.
1077 ac_popdir=`pwd`
1078 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1079 test -d $ac_dir || continue
1080 ac_builddir=.
1081
1082if test "$ac_dir" != .; then
1083 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1084 # A "../" for each directory in $ac_dir_suffix.
1085 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1086else
1087 ac_dir_suffix= ac_top_builddir=
1088fi
1089
1090case $srcdir in
1091 .) # No --srcdir option. We are building in place.
1092 ac_srcdir=.
1093 if test -z "$ac_top_builddir"; then
1094 ac_top_srcdir=.
1095 else
1096 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1097 fi ;;
1098 [\\/]* | ?:[\\/]* ) # Absolute path.
1099 ac_srcdir=$srcdir$ac_dir_suffix;
1100 ac_top_srcdir=$srcdir ;;
1101 *) # Relative path.
1102 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1103 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1104esac
Brian Gaeke0a621332004-09-08 20:38:05 +00001105# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1106# absolute.
1107ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1108ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1109ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1110ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
John Criswell7a73b802003-06-30 21:59:07 +00001111
1112 cd $ac_dir
1113 # Check for guested configure; otherwise get Cygnus style configure.
1114 if test -f $ac_srcdir/configure.gnu; then
1115 echo
1116 $SHELL $ac_srcdir/configure.gnu --help=recursive
1117 elif test -f $ac_srcdir/configure; then
1118 echo
1119 $SHELL $ac_srcdir/configure --help=recursive
1120 elif test -f $ac_srcdir/configure.ac ||
Brian Gaeke0a621332004-09-08 20:38:05 +00001121 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001122 echo
1123 $ac_configure --help
1124 else
1125 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1126 fi
1127 cd $ac_popdir
1128 done
1129fi
1130
1131test -n "$ac_init_help" && exit 0
1132if $ac_init_version; then
1133 cat <<\_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +00001134LLVM configure 1.4
Brian Gaeke0a621332004-09-08 20:38:05 +00001135generated by GNU Autoconf 2.57
John Criswell7a73b802003-06-30 21:59:07 +00001136
Brian Gaeke0a621332004-09-08 20:38:05 +00001137Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001139This configure script is free software; the Free Software Foundation
1140gives unlimited permission to copy, distribute and modify it.
1141_ACEOF
1142 exit 0
1143fi
1144exec 5>config.log
1145cat >&5 <<_ACEOF
1146This file contains any messages produced by compilers while
1147running configure, to aid debugging if configure makes a mistake.
1148
Reid Spencere9de0912004-08-20 09:03:57 +00001149It was created by LLVM $as_me 1.4, which was
Brian Gaeke0a621332004-09-08 20:38:05 +00001150generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001151
1152 $ $0 $@
1153
1154_ACEOF
1155{
1156cat <<_ASUNAME
1157## --------- ##
1158## Platform. ##
1159## --------- ##
1160
1161hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165uname -v = `(uname -v) 2>/dev/null || echo unknown`
1166
1167/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1169
1170/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1177
1178_ASUNAME
1179
1180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1181for as_dir in $PATH
1182do
1183 IFS=$as_save_IFS
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1186done
1187
1188} >&5
1189
1190cat >&5 <<_ACEOF
1191
1192
1193## ----------- ##
1194## Core tests. ##
1195## ----------- ##
1196
1197_ACEOF
1198
1199
1200# Keep a trace of the command line.
1201# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001202# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001203# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001204# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001205ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001206ac_configure_args0=
1207ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001208ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001209ac_must_keep_next=false
1210for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001211do
John Criswell0c38eaf2003-09-10 15:17:25 +00001212 for ac_arg
1213 do
1214 case $ac_arg in
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 continue ;;
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1221 esac
1222 case $ac_pass in
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1224 2)
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
Brian Gaeke0a621332004-09-08 20:38:05 +00001227 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001228 else
Brian Gaeke0a621332004-09-08 20:38:05 +00001229 case $ac_arg in
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1236 esac
1237 ;;
1238 -* ) ac_must_keep_next=true ;;
1239 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001240 fi
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1243 ac_sep=" "
1244 ;;
1245 esac
1246 done
John Criswell7a73b802003-06-30 21:59:07 +00001247done
John Criswell0c38eaf2003-09-10 15:17:25 +00001248$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249$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 +00001250
1251# When interrupted or exit'd, cleanup temporary files, and complete
1252# config.log. We remove comments because anyway the quotes in there
1253# would cause problems or look ugly.
1254# WARNING: Be sure not to use single quotes in there, as some shells,
1255# such as our DU 5.0 friend, will then `close' the trap.
1256trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1258 {
1259 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001260
John Criswell7a73b802003-06-30 21:59:07 +00001261 cat <<\_ASBOX
1262## ---------------- ##
1263## Cache variables. ##
1264## ---------------- ##
1265_ASBOX
1266 echo
1267 # The following way of writing the cache mishandles newlines in values,
1268{
1269 (set) 2>&1 |
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1271 *ac_space=\ *)
1272 sed -n \
Brian Gaeke0a621332004-09-08 20:38:05 +00001273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001275 ;;
1276 *)
1277 sed -n \
Brian Gaeke0a621332004-09-08 20:38:05 +00001278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001279 ;;
1280 esac;
1281}
1282 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001283
1284 cat <<\_ASBOX
1285## ----------------- ##
1286## Output variables. ##
1287## ----------------- ##
1288_ASBOX
1289 echo
1290 for ac_var in $ac_subst_vars
1291 do
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1294 done | sort
1295 echo
1296
1297 if test -n "$ac_subst_files"; then
1298 cat <<\_ASBOX
1299## ------------- ##
1300## Output files. ##
1301## ------------- ##
1302_ASBOX
1303 echo
1304 for ac_var in $ac_subst_files
1305 do
1306 eval ac_val=$`echo $ac_var`
Brian Gaeke0a621332004-09-08 20:38:05 +00001307 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001308 done | sort
1309 echo
1310 fi
1311
John Criswell7a73b802003-06-30 21:59:07 +00001312 if test -s confdefs.h; then
1313 cat <<\_ASBOX
1314## ----------- ##
1315## confdefs.h. ##
1316## ----------- ##
1317_ASBOX
1318 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001319 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001320 echo
1321 fi
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1325 } >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00001326 rm -f core core.* *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1328 exit $exit_status
1329 ' 0
1330for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1332done
1333ac_signal=0
1334
1335# confdefs.h avoids OS command line length limits that DEFS can exceed.
1336rm -rf conftest* confdefs.h
1337# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1338echo >confdefs.h
1339
1340# Predefined preprocessor variables.
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_NAME "$PACKAGE_NAME"
1344_ACEOF
1345
1346
1347cat >>confdefs.h <<_ACEOF
1348#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1349_ACEOF
1350
1351
1352cat >>confdefs.h <<_ACEOF
1353#define PACKAGE_VERSION "$PACKAGE_VERSION"
1354_ACEOF
1355
1356
1357cat >>confdefs.h <<_ACEOF
1358#define PACKAGE_STRING "$PACKAGE_STRING"
1359_ACEOF
1360
1361
1362cat >>confdefs.h <<_ACEOF
1363#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1364_ACEOF
1365
1366
1367# Let the site file select an alternate cache file if it wants to.
1368# Prefer explicitly selected file to automatically selected ones.
1369if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1372 else
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1374 fi
1375fi
1376for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1381 . "$ac_site_file"
1382 fi
1383done
1384
1385if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390echo "$as_me: loading cache $cache_file" >&6;}
1391 case $cache_file in
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1394 esac
1395 fi
1396else
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398echo "$as_me: creating cache $cache_file" >&6;}
1399 >$cache_file
1400fi
1401
1402# Check that the precious variables saved in the cache have kept the same
1403# value.
1404ac_cache_corrupted=false
1405for ac_var in `(set) 2>&1 |
Brian Gaeke0a621332004-09-08 20:38:05 +00001406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1412 set,)
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1416 ,set)
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1420 ,);;
1421 *)
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00001423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001424echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00001425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001426echo "$as_me: former value: $ac_old_val" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00001427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001428echo "$as_me: current value: $ac_new_val" >&2;}
Brian Gaeke0a621332004-09-08 20:38:05 +00001429 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001430 fi;;
1431 esac
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1434 case $ac_new_val in
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1438 esac
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1442 esac
1443 fi
1444done
1445if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1451fi
1452
1453ac_ext=c
1454ac_cpp='$CPP $CPPFLAGS'
1455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457ac_compiler_gnu=$ac_cv_c_compiler_gnu
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
John Criswell0c38eaf2003-09-10 15:17:25 +00001485
John Criswell7a73b802003-06-30 21:59:07 +00001486ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001487for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001488 if test -f $ac_dir/install-sh; then
1489 ac_aux_dir=$ac_dir
1490 ac_install_sh="$ac_aux_dir/install-sh -c"
1491 break
1492 elif test -f $ac_dir/install.sh; then
1493 ac_aux_dir=$ac_dir
1494 ac_install_sh="$ac_aux_dir/install.sh -c"
1495 break
1496 elif test -f $ac_dir/shtool; then
1497 ac_aux_dir=$ac_dir
1498 ac_install_sh="$ac_aux_dir/shtool install -c"
1499 break
1500 fi
1501done
1502if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001503 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1504echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001505 { (exit 1); exit 1; }; }
1506fi
1507ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1508ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1509ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1510
John Criswell392aaa32003-07-22 19:18:09 +00001511
John Criswell1b824322003-09-15 17:19:42 +00001512if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001513then
Reid Spencer551ccae2004-09-01 22:55:40 +00001514 if test -f ${srcdir}/include/llvm/Config/config.h
John Criswell1b824322003-09-15 17:19:42 +00001515 then
1516 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001517echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1518 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001519 fi
John Criswell93e1c722003-09-15 17:04:06 +00001520fi
1521
John Criswell33a911a2003-11-25 20:36:46 +00001522for i in `ls ${srcdir}/projects`
1523do
Reid Spencer4d68ba22004-09-07 16:35:45 +00001524 if test -d ${srcdir}/projects/${i} ; then
1525 case ${i} in
1526 "CVS") ;;
1527 "sample")
John Criswell7ec78aa2003-10-16 01:49:00 +00001528
Reid Spencer4d68ba22004-09-07 16:35:45 +00001529subdirs="$subdirs projects/sample"
1530 ;;
1531 "Stacker")
John Criswell7ec78aa2003-10-16 01:49:00 +00001532
Reid Spencer4d68ba22004-09-07 16:35:45 +00001533subdirs="$subdirs projects/Stacker"
1534 ;;
1535 "llvm-test")
John Criswell7ec78aa2003-10-16 01:49:00 +00001536
Reid Spencer4d68ba22004-09-07 16:35:45 +00001537subdirs="$subdirs projects/llvm-test"
1538 ;;
1539 "llvm-reopt")
1540
1541subdirs="$subdirs projects/llvm-reopt"
1542;;
1543 "llvm-gcc")
1544
1545subdirs="$subdirs projects/llvm-gcc"
1546 ;;
1547 "llvm-java")
1548
1549subdirs="$subdirs projects/llvm-java"
1550 ;;
1551 "llvm-tv")
1552
1553subdirs="$subdirs projects/llvm-tv"
1554 ;;
1555 "llvm-fefw")
1556
1557subdirs="$subdirs projects/llvm-fefw"
1558 ;;
1559 *)
1560
1561subdirs="$subdirs ${i}"
1562 ;;
1563 esac
John Criswell33a911a2003-11-25 20:36:46 +00001564 fi
1565done
John Criswell559a6c12003-09-30 16:31:48 +00001566
Reid Spencer551ccae2004-09-01 22:55:40 +00001567 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001568
John Criswelldc76e322004-07-23 15:40:57 +00001569
Reid Spencer551ccae2004-09-01 22:55:40 +00001570 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 +00001571
1572
John Criswell0c38eaf2003-09-10 15:17:25 +00001573 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001574
1575
John Criswell0c38eaf2003-09-10 15:17:25 +00001576 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001577
1578
Reid Spencer5f285392004-08-24 16:32:21 +00001579 ac_config_commands="$ac_config_commands examples/Makefile"
1580
1581
John Criswell0c38eaf2003-09-10 15:17:25 +00001582 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001583
1584
John Criswell0c38eaf2003-09-10 15:17:25 +00001585 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001586
1587
John Criswell0c38eaf2003-09-10 15:17:25 +00001588 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001589
1590
John Criswell0c38eaf2003-09-10 15:17:25 +00001591 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001592
1593
John Criswellf424d742003-10-07 21:13:47 +00001594 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1595
1596
1597 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001598
1599
John Criswell0c38eaf2003-09-10 15:17:25 +00001600 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001601
1602
Brian Gaekec45be042003-10-07 06:01:34 +00001603 ac_config_commands="$ac_config_commands utils/Makefile"
1604
1605
John Criswell0c38eaf2003-09-10 15:17:25 +00001606 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001607
1608
John Criswell392aaa32003-07-22 19:18:09 +00001609
John Criswell7a73b802003-06-30 21:59:07 +00001610# Find a good install program. We prefer a C program (faster),
1611# so one script is as good as another. But avoid the broken or
1612# incompatible versions:
1613# SysV /etc/install, /usr/sbin/install
1614# SunOS /usr/etc/install
1615# IRIX /sbin/install
1616# AIX /bin/install
1617# AmigaOS /C/install, which installs bootblocks on floppy discs
1618# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1619# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1620# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1621# ./install, which can be erroneously created by make from ./install.sh.
1622echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1623echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1624if test -z "$INSTALL"; then
1625if test "${ac_cv_path_install+set}" = set; then
1626 echo $ECHO_N "(cached) $ECHO_C" >&6
1627else
1628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1629for as_dir in $PATH
1630do
1631 IFS=$as_save_IFS
1632 test -z "$as_dir" && as_dir=.
1633 # Account for people who put trailing slashes in PATH elements.
1634case $as_dir/ in
1635 ./ | .// | /cC/* | \
1636 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1637 /usr/ucb/* ) ;;
1638 *)
1639 # OSF1 and SCO ODT 3.0 have their own names for install.
1640 # Don't use installbsd from OSF since it installs stuff as root
1641 # by default.
1642 for ac_prog in ginstall scoinst install; do
1643 for ac_exec_ext in '' $ac_executable_extensions; do
Brian Gaeke0a621332004-09-08 20:38:05 +00001644 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1645 if test $ac_prog = install &&
1646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1647 # AIX install. It has an incompatible calling convention.
1648 :
1649 elif test $ac_prog = install &&
1650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1651 # program-specific install script used by HP pwplus--don't use.
1652 :
1653 else
1654 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1655 break 3
1656 fi
1657 fi
John Criswell7a73b802003-06-30 21:59:07 +00001658 done
1659 done
1660 ;;
1661esac
1662done
1663
1664
1665fi
1666 if test "${ac_cv_path_install+set}" = set; then
1667 INSTALL=$ac_cv_path_install
1668 else
1669 # As a last resort, use the slow shell script. We don't cache a
1670 # path for INSTALL within a source directory, because that will
1671 # break other packages using the cache if that directory is
1672 # removed, or if the path is relative.
1673 INSTALL=$ac_install_sh
1674 fi
1675fi
1676echo "$as_me:$LINENO: result: $INSTALL" >&5
1677echo "${ECHO_T}$INSTALL" >&6
1678
1679# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1680# It thinks the first close brace ends the variable substitution.
1681test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1682
1683test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1684
1685test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1686
1687
1688# Make sure we can run config.sub.
1689$ac_config_sub sun4 >/dev/null 2>&1 ||
1690 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1691echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1692 { (exit 1); exit 1; }; }
1693
1694echo "$as_me:$LINENO: checking build system type" >&5
1695echo $ECHO_N "checking build system type... $ECHO_C" >&6
1696if test "${ac_cv_build+set}" = set; then
1697 echo $ECHO_N "(cached) $ECHO_C" >&6
1698else
1699 ac_cv_build_alias=$build_alias
1700test -z "$ac_cv_build_alias" &&
1701 ac_cv_build_alias=`$ac_config_guess`
1702test -z "$ac_cv_build_alias" &&
1703 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1704echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1705 { (exit 1); exit 1; }; }
1706ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1707 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1708echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1709 { (exit 1); exit 1; }; }
1710
1711fi
1712echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1713echo "${ECHO_T}$ac_cv_build" >&6
1714build=$ac_cv_build
1715build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1716build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1717build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1718
1719
1720echo "$as_me:$LINENO: checking host system type" >&5
1721echo $ECHO_N "checking host system type... $ECHO_C" >&6
1722if test "${ac_cv_host+set}" = set; then
1723 echo $ECHO_N "(cached) $ECHO_C" >&6
1724else
1725 ac_cv_host_alias=$host_alias
1726test -z "$ac_cv_host_alias" &&
1727 ac_cv_host_alias=$ac_cv_build_alias
1728ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1729 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1730echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1731 { (exit 1); exit 1; }; }
1732
1733fi
1734echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1735echo "${ECHO_T}$ac_cv_host" >&6
1736host=$ac_cv_host
1737host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1738host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1739host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1740
1741
1742echo "$as_me:$LINENO: checking target system type" >&5
1743echo $ECHO_N "checking target system type... $ECHO_C" >&6
1744if test "${ac_cv_target+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1746else
1747 ac_cv_target_alias=$target_alias
1748test "x$ac_cv_target_alias" = "x" &&
1749 ac_cv_target_alias=$ac_cv_host_alias
1750ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1751 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1752echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1753 { (exit 1); exit 1; }; }
1754
1755fi
1756echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1757echo "${ECHO_T}$ac_cv_target" >&6
1758target=$ac_cv_target
1759target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1760target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1761target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1762
1763
1764# The aliases save the names the user supplied, while $host etc.
1765# will get canonicalized.
1766test -n "$target_alias" &&
1767 test "$program_prefix$program_suffix$program_transform_name" = \
1768 NONENONEs,x,x, &&
1769 program_prefix=${target_alias}-
1770
Reid Spencer73fb5482004-08-31 14:20:36 +00001771
1772echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1773echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001774case $build in
Reid Spencer73fb5482004-08-31 14:20:36 +00001775 *-*-aix*)
1776 OS=AIX
1777
1778 platform_type="AIX"
1779 ;;
1780 *-*-cygwin*)
1781 OS=Cygwin
1782
1783 platform_type="Cygwin"
1784 ;;
1785 *-*-darwin*)
1786 OS=Darwin
1787
1788 platform_type="Darwin"
1789 ;;
1790 *-*-freebsd*)
1791 OS=Linux
1792
Reid Spencera11e4db2004-08-31 18:03:23 +00001793 platform_type="FreeBSD"
Reid Spencer73fb5482004-08-31 14:20:36 +00001794 ;;
1795 *-*-interix*)
1796 OS=SunOS
1797
Reid Spencera11e4db2004-08-31 18:03:23 +00001798 platform_type="Interix"
Reid Spencer73fb5482004-08-31 14:20:36 +00001799 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001800 *-*-linux*)
1801 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001802
Reid Spencerde8c47f2004-08-29 19:35:28 +00001803 platform_type="Linux"
1804 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1805 then
1806 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001807
Reid Spencerde8c47f2004-08-29 19:35:28 +00001808 fi
1809 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001810 *-*-solaris*)
1811 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001812
Reid Spencerde8c47f2004-08-29 19:35:28 +00001813 platform_type="SunOS"
1814 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1815 then
1816 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001817
Reid Spencerde8c47f2004-08-29 19:35:28 +00001818 fi
1819 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001820 *-*-win32*)
1821 OS=Win32
John Criswell7a73b802003-06-30 21:59:07 +00001822
Reid Spencerde8c47f2004-08-29 19:35:28 +00001823 platform_type="Win32"
1824 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +00001825 *-*-mingw*)
1826 OS=Win32
1827
1828 platform_type="Win32"
1829 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001830 *)
1831 OS=Unknown
1832
1833 platform_type="Unknown"
1834 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001835esac
1836
Reid Spencer73fb5482004-08-31 14:20:36 +00001837if test "$platform_type" = "Unknown" ; then
Reid Spencer886e9512004-08-31 01:34:10 +00001838 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1839echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1840 { (exit 1); exit 1; }; }
1841fi
1842
Reid Spencerde8c47f2004-08-29 19:35:28 +00001843 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1844
1845
Reid Spencer73fb5482004-08-31 14:20:36 +00001846echo "$as_me:$LINENO: result: $platform_type" >&5
1847echo "${ECHO_T}$platform_type" >&6
1848
1849echo "$as_me:$LINENO: checking target architecture" >&5
1850echo $ECHO_N "checking target architecture... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001851case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001852 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001853
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001854 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001855esac
1856
John Criswell76595452003-07-01 22:07:39 +00001857case $target in
Reid Spencer73fb5482004-08-31 14:20:36 +00001858 i*86-*)
1859 ARCH="x86"
1860 ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001861
Reid Spencer73fb5482004-08-31 14:20:36 +00001862 ;;
1863 sparc*-*)
1864 ARCH="Sparc"
1865 ARCH=Sparc
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001866
Reid Spencer73fb5482004-08-31 14:20:36 +00001867 ;;
1868 powerpc*-*)
1869 ARCH="PowerPC"
1870 ARCH=PowerPC
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001871
Reid Spencer73fb5482004-08-31 14:20:36 +00001872 ;;
1873 *)
1874 ARCH="Unknown"
1875 ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001876
Reid Spencer73fb5482004-08-31 14:20:36 +00001877 ;;
John Criswell76595452003-07-01 22:07:39 +00001878esac
1879
Reid Spencer73fb5482004-08-31 14:20:36 +00001880echo "$as_me:$LINENO: result: $ARCH" >&5
1881echo "${ECHO_T}$ARCH" >&6
1882
John Criswell7a73b802003-06-30 21:59:07 +00001883ac_ext=cc
1884ac_cpp='$CXXCPP $CPPFLAGS'
1885ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1888if test -n "$ac_tool_prefix"; then
1889 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1890 do
1891 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1892set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1893echo "$as_me:$LINENO: checking for $ac_word" >&5
1894echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1895if test "${ac_cv_prog_CXX+set}" = set; then
1896 echo $ECHO_N "(cached) $ECHO_C" >&6
1897else
1898 if test -n "$CXX"; then
1899 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1900else
1901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1902for as_dir in $PATH
1903do
1904 IFS=$as_save_IFS
1905 test -z "$as_dir" && as_dir=.
1906 for ac_exec_ext in '' $ac_executable_extensions; do
1907 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1908 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1909 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910 break 2
1911 fi
1912done
1913done
1914
1915fi
1916fi
1917CXX=$ac_cv_prog_CXX
1918if test -n "$CXX"; then
1919 echo "$as_me:$LINENO: result: $CXX" >&5
1920echo "${ECHO_T}$CXX" >&6
1921else
1922 echo "$as_me:$LINENO: result: no" >&5
1923echo "${ECHO_T}no" >&6
1924fi
1925
1926 test -n "$CXX" && break
1927 done
1928fi
1929if test -z "$CXX"; then
1930 ac_ct_CXX=$CXX
1931 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1932do
1933 # Extract the first word of "$ac_prog", so it can be a program name with args.
1934set dummy $ac_prog; ac_word=$2
1935echo "$as_me:$LINENO: checking for $ac_word" >&5
1936echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1937if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1938 echo $ECHO_N "(cached) $ECHO_C" >&6
1939else
1940 if test -n "$ac_ct_CXX"; then
1941 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1942else
1943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1944for as_dir in $PATH
1945do
1946 IFS=$as_save_IFS
1947 test -z "$as_dir" && as_dir=.
1948 for ac_exec_ext in '' $ac_executable_extensions; do
1949 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1950 ac_cv_prog_ac_ct_CXX="$ac_prog"
1951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1952 break 2
1953 fi
1954done
1955done
1956
1957fi
1958fi
1959ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1960if test -n "$ac_ct_CXX"; then
1961 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1962echo "${ECHO_T}$ac_ct_CXX" >&6
1963else
1964 echo "$as_me:$LINENO: result: no" >&5
1965echo "${ECHO_T}no" >&6
1966fi
1967
1968 test -n "$ac_ct_CXX" && break
1969done
1970test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1971
1972 CXX=$ac_ct_CXX
1973fi
1974
1975
1976# Provide some information about the compiler.
1977echo "$as_me:$LINENO:" \
1978 "checking for C++ compiler version" >&5
1979ac_compiler=`set X $ac_compile; echo $2`
1980{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1981 (eval $ac_compiler --version </dev/null >&5) 2>&5
1982 ac_status=$?
1983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1984 (exit $ac_status); }
1985{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1986 (eval $ac_compiler -v </dev/null >&5) 2>&5
1987 ac_status=$?
1988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1989 (exit $ac_status); }
1990{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1991 (eval $ac_compiler -V </dev/null >&5) 2>&5
1992 ac_status=$?
1993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1994 (exit $ac_status); }
1995
1996cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00001997#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00001998/* confdefs.h. */
1999_ACEOF
2000cat confdefs.h >>conftest.$ac_ext
2001cat >>conftest.$ac_ext <<_ACEOF
2002/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002003
John Criswell7a73b802003-06-30 21:59:07 +00002004int
2005main ()
2006{
2007
2008 ;
2009 return 0;
2010}
2011_ACEOF
2012ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002013ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002014# Try to create an executable without -o first, disregard a.out.
2015# It will help us diagnose broken compilers, and finding out an intuition
2016# of exeext.
Brian Gaeke0a621332004-09-08 20:38:05 +00002017echo "$as_me:$LINENO: checking for C++ compiler default output" >&5
2018echo $ECHO_N "checking for C++ compiler default output... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002019ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2020if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2021 (eval $ac_link_default) 2>&5
2022 ac_status=$?
2023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2024 (exit $ac_status); }; then
2025 # Find the output, starting from the most likely. This scheme is
2026# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2027# resort.
2028
2029# Be careful to initialize this variable, since it used to be cached.
2030# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2031ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002032# b.out is created by i960 compilers.
2033for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2034do
2035 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002036 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002037 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Brian Gaeke0a621332004-09-08 20:38:05 +00002038 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002039 conftest.$ac_ext )
Brian Gaeke0a621332004-09-08 20:38:05 +00002040 # This is the source file.
2041 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002042 [ab].out )
Brian Gaeke0a621332004-09-08 20:38:05 +00002043 # We found the default executable, but exeext='' is most
2044 # certainly right.
2045 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002046 *.* )
Brian Gaeke0a621332004-09-08 20:38:05 +00002047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2048 # FIXME: I believe we export ac_cv_exeext for Libtool,
2049 # but it would be cool to find out if it's true. Does anybody
2050 # maintain Libtool? --akim.
2051 export ac_cv_exeext
2052 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002053 * )
Brian Gaeke0a621332004-09-08 20:38:05 +00002054 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002055 esac
2056done
2057else
2058 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002059sed 's/^/| /' conftest.$ac_ext >&5
2060
2061{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2062See \`config.log' for more details." >&5
2063echo "$as_me: error: C++ compiler cannot create executables
2064See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002065 { (exit 77); exit 77; }; }
2066fi
2067
2068ac_exeext=$ac_cv_exeext
2069echo "$as_me:$LINENO: result: $ac_file" >&5
2070echo "${ECHO_T}$ac_file" >&6
2071
2072# Check the compiler produces executables we can run. If not, either
2073# the compiler is broken, or we cross compile.
2074echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2075echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2076# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2077# If not cross compiling, check that we can run a simple program.
2078if test "$cross_compiling" != yes; then
2079 if { ac_try='./$ac_file'
2080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081 (eval $ac_try) 2>&5
2082 ac_status=$?
2083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084 (exit $ac_status); }; }; then
2085 cross_compiling=no
2086 else
2087 if test "$cross_compiling" = maybe; then
2088 cross_compiling=yes
2089 else
2090 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002091If you meant to cross compile, use \`--host'.
2092See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002093echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002094If you meant to cross compile, use \`--host'.
2095See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002096 { (exit 1); exit 1; }; }
2097 fi
2098 fi
2099fi
2100echo "$as_me:$LINENO: result: yes" >&5
2101echo "${ECHO_T}yes" >&6
2102
John Criswell0c38eaf2003-09-10 15:17:25 +00002103rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002104ac_clean_files=$ac_clean_files_save
2105# Check the compiler produces executables we can run. If not, either
2106# the compiler is broken, or we cross compile.
2107echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2108echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2109echo "$as_me:$LINENO: result: $cross_compiling" >&5
2110echo "${ECHO_T}$cross_compiling" >&6
2111
2112echo "$as_me:$LINENO: checking for suffix of executables" >&5
2113echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2115 (eval $ac_link) 2>&5
2116 ac_status=$?
2117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2118 (exit $ac_status); }; then
2119 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2120# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2121# work properly (i.e., refer to `conftest.exe'), while it won't with
2122# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002123for ac_file in conftest.exe conftest conftest.*; do
2124 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002125 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002127 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Brian Gaeke0a621332004-09-08 20:38:05 +00002128 export ac_cv_exeext
2129 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002130 * ) break;;
2131 esac
2132done
2133else
John Criswell0c38eaf2003-09-10 15:17:25 +00002134 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2135See \`config.log' for more details." >&5
2136echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2137See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002138 { (exit 1); exit 1; }; }
2139fi
2140
2141rm -f conftest$ac_cv_exeext
2142echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2143echo "${ECHO_T}$ac_cv_exeext" >&6
2144
2145rm -f conftest.$ac_ext
2146EXEEXT=$ac_cv_exeext
2147ac_exeext=$EXEEXT
2148echo "$as_me:$LINENO: checking for suffix of object files" >&5
2149echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2150if test "${ac_cv_objext+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152else
2153 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00002154#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002155/* confdefs.h. */
2156_ACEOF
2157cat confdefs.h >>conftest.$ac_ext
2158cat >>conftest.$ac_ext <<_ACEOF
2159/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002160
John Criswell7a73b802003-06-30 21:59:07 +00002161int
2162main ()
2163{
2164
2165 ;
2166 return 0;
2167}
2168_ACEOF
2169rm -f conftest.o conftest.obj
2170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2171 (eval $ac_compile) 2>&5
2172 ac_status=$?
2173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174 (exit $ac_status); }; then
2175 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2176 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002178 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2179 break;;
2180 esac
2181done
2182else
2183 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002184sed 's/^/| /' conftest.$ac_ext >&5
2185
2186{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2187See \`config.log' for more details." >&5
2188echo "$as_me: error: cannot compute suffix of object files: cannot compile
2189See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002190 { (exit 1); exit 1; }; }
2191fi
2192
2193rm -f conftest.$ac_cv_objext conftest.$ac_ext
2194fi
2195echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2196echo "${ECHO_T}$ac_cv_objext" >&6
2197OBJEXT=$ac_cv_objext
2198ac_objext=$OBJEXT
2199echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2200echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2201if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2202 echo $ECHO_N "(cached) $ECHO_C" >&6
2203else
2204 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00002205#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002206/* confdefs.h. */
2207_ACEOF
2208cat confdefs.h >>conftest.$ac_ext
2209cat >>conftest.$ac_ext <<_ACEOF
2210/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002211
John Criswell7a73b802003-06-30 21:59:07 +00002212int
2213main ()
2214{
2215#ifndef __GNUC__
2216 choke me
2217#endif
2218
2219 ;
2220 return 0;
2221}
2222_ACEOF
2223rm -f conftest.$ac_objext
2224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00002225 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002226 ac_status=$?
2227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00002229 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; }; then
2235 ac_compiler_gnu=yes
2236else
2237 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002238sed 's/^/| /' conftest.$ac_ext >&5
2239
John Criswell7a73b802003-06-30 21:59:07 +00002240ac_compiler_gnu=no
2241fi
Brian Gaeke0a621332004-09-08 20:38:05 +00002242rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002243ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2244
2245fi
2246echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2247echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2248GXX=`test $ac_compiler_gnu = yes && echo yes`
2249ac_test_CXXFLAGS=${CXXFLAGS+set}
2250ac_save_CXXFLAGS=$CXXFLAGS
2251CXXFLAGS="-g"
2252echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2253echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2254if test "${ac_cv_prog_cxx_g+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256else
2257 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00002258#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002259/* confdefs.h. */
2260_ACEOF
2261cat confdefs.h >>conftest.$ac_ext
2262cat >>conftest.$ac_ext <<_ACEOF
2263/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002264
John Criswell7a73b802003-06-30 21:59:07 +00002265int
2266main ()
2267{
2268
2269 ;
2270 return 0;
2271}
2272_ACEOF
2273rm -f conftest.$ac_objext
2274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00002275 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002276 ac_status=$?
2277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2278 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00002279 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2281 (eval $ac_try) 2>&5
2282 ac_status=$?
2283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2284 (exit $ac_status); }; }; then
2285 ac_cv_prog_cxx_g=yes
2286else
2287 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002288sed 's/^/| /' conftest.$ac_ext >&5
2289
John Criswell7a73b802003-06-30 21:59:07 +00002290ac_cv_prog_cxx_g=no
2291fi
Brian Gaeke0a621332004-09-08 20:38:05 +00002292rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002293fi
2294echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2295echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2296if test "$ac_test_CXXFLAGS" = set; then
2297 CXXFLAGS=$ac_save_CXXFLAGS
2298elif test $ac_cv_prog_cxx_g = yes; then
2299 if test "$GXX" = yes; then
2300 CXXFLAGS="-g -O2"
2301 else
2302 CXXFLAGS="-g"
2303 fi
2304else
2305 if test "$GXX" = yes; then
2306 CXXFLAGS="-O2"
2307 else
2308 CXXFLAGS=
2309 fi
2310fi
2311for ac_declaration in \
Brian Gaeke0a621332004-09-08 20:38:05 +00002312 ''\
2313 '#include <stdlib.h>' \
John Criswell7a73b802003-06-30 21:59:07 +00002314 'extern "C" void std::exit (int) throw (); using std::exit;' \
2315 'extern "C" void std::exit (int); using std::exit;' \
2316 'extern "C" void exit (int) throw ();' \
2317 'extern "C" void exit (int);' \
2318 'void exit (int);'
2319do
2320 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00002321#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002322/* confdefs.h. */
2323_ACEOF
2324cat confdefs.h >>conftest.$ac_ext
2325cat >>conftest.$ac_ext <<_ACEOF
2326/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +00002327#include <stdlib.h>
Brian Gaeke0a621332004-09-08 20:38:05 +00002328$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002329int
2330main ()
2331{
2332exit (42);
2333 ;
2334 return 0;
2335}
2336_ACEOF
2337rm -f conftest.$ac_objext
2338if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00002339 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002340 ac_status=$?
2341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00002343 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2345 (eval $ac_try) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); }; }; then
2349 :
2350else
2351 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002352sed 's/^/| /' conftest.$ac_ext >&5
2353
John Criswell7a73b802003-06-30 21:59:07 +00002354continue
2355fi
Brian Gaeke0a621332004-09-08 20:38:05 +00002356rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002357 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00002358#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002359/* confdefs.h. */
2360_ACEOF
2361cat confdefs.h >>conftest.$ac_ext
2362cat >>conftest.$ac_ext <<_ACEOF
2363/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002364$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002365int
2366main ()
2367{
2368exit (42);
2369 ;
2370 return 0;
2371}
2372_ACEOF
2373rm -f conftest.$ac_objext
2374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00002375 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002376 ac_status=$?
2377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00002379 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002380 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381 (eval $ac_try) 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }; }; then
2385 break
2386else
2387 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002388sed 's/^/| /' conftest.$ac_ext >&5
2389
John Criswell7a73b802003-06-30 21:59:07 +00002390fi
Brian Gaeke0a621332004-09-08 20:38:05 +00002391rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002392done
2393rm -f conftest*
2394if test -n "$ac_declaration"; then
2395 echo '#ifdef __cplusplus' >>confdefs.h
2396 echo $ac_declaration >>confdefs.h
2397 echo '#endif' >>confdefs.h
2398fi
2399
2400ac_ext=c
2401ac_cpp='$CPP $CPPFLAGS'
2402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2404ac_compiler_gnu=$ac_cv_c_compiler_gnu
2405
2406ac_ext=c
2407ac_cpp='$CPP $CPPFLAGS'
2408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411if test -n "$ac_tool_prefix"; then
2412 for ac_prog in gcc
2413 do
2414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2415set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2416echo "$as_me:$LINENO: checking for $ac_word" >&5
2417echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2418if test "${ac_cv_prog_CC+set}" = set; then
2419 echo $ECHO_N "(cached) $ECHO_C" >&6
2420else
2421 if test -n "$CC"; then
2422 ac_cv_prog_CC="$CC" # Let the user override the test.
2423else
2424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425for as_dir in $PATH
2426do
2427 IFS=$as_save_IFS
2428 test -z "$as_dir" && as_dir=.
2429 for ac_exec_ext in '' $ac_executable_extensions; do
2430 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2431 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2433 break 2
2434 fi
2435done
2436done
2437
2438fi
2439fi
2440CC=$ac_cv_prog_CC
2441if test -n "$CC"; then
2442 echo "$as_me:$LINENO: result: $CC" >&5
2443echo "${ECHO_T}$CC" >&6
2444else
2445 echo "$as_me:$LINENO: result: no" >&5
2446echo "${ECHO_T}no" >&6
2447fi
2448
2449 test -n "$CC" && break
2450 done
2451fi
2452if test -z "$CC"; then
2453 ac_ct_CC=$CC
2454 for ac_prog in gcc
2455do
2456 # Extract the first word of "$ac_prog", so it can be a program name with args.
2457set dummy $ac_prog; ac_word=$2
2458echo "$as_me:$LINENO: checking for $ac_word" >&5
2459echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2460if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462else
2463 if test -n "$ac_ct_CC"; then
2464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2465else
2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469 IFS=$as_save_IFS
2470 test -z "$as_dir" && as_dir=.
2471 for ac_exec_ext in '' $ac_executable_extensions; do
2472 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2473 ac_cv_prog_ac_ct_CC="$ac_prog"
2474 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2475 break 2
2476 fi
2477done
2478done
2479
2480fi
2481fi
2482ac_ct_CC=$ac_cv_prog_ac_ct_CC
2483if test -n "$ac_ct_CC"; then
2484 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2485echo "${ECHO_T}$ac_ct_CC" >&6
2486else
2487 echo "$as_me:$LINENO: result: no" >&5
2488echo "${ECHO_T}no" >&6
2489fi
2490
2491 test -n "$ac_ct_CC" && break
2492done
2493
2494 CC=$ac_ct_CC
2495fi
2496
2497
John Criswell0c38eaf2003-09-10 15:17:25 +00002498test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2499See \`config.log' for more details." >&5
2500echo "$as_me: error: no acceptable C compiler found in \$PATH
2501See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002502 { (exit 1); exit 1; }; }
2503
2504# Provide some information about the compiler.
2505echo "$as_me:$LINENO:" \
2506 "checking for C compiler version" >&5
2507ac_compiler=`set X $ac_compile; echo $2`
2508{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2509 (eval $ac_compiler --version </dev/null >&5) 2>&5
2510 ac_status=$?
2511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2512 (exit $ac_status); }
2513{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2514 (eval $ac_compiler -v </dev/null >&5) 2>&5
2515 ac_status=$?
2516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517 (exit $ac_status); }
2518{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2519 (eval $ac_compiler -V </dev/null >&5) 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }
2523
2524echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2525echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2526if test "${ac_cv_c_compiler_gnu+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2528else
2529 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00002530#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002531/* confdefs.h. */
2532_ACEOF
2533cat confdefs.h >>conftest.$ac_ext
2534cat >>conftest.$ac_ext <<_ACEOF
2535/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002536
John Criswell7a73b802003-06-30 21:59:07 +00002537int
2538main ()
2539{
2540#ifndef __GNUC__
2541 choke me
2542#endif
2543
2544 ;
2545 return 0;
2546}
2547_ACEOF
2548rm -f conftest.$ac_objext
2549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00002550 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00002554 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556 (eval $ac_try) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; }; then
2560 ac_compiler_gnu=yes
2561else
2562 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002563sed 's/^/| /' conftest.$ac_ext >&5
2564
John Criswell7a73b802003-06-30 21:59:07 +00002565ac_compiler_gnu=no
2566fi
Brian Gaeke0a621332004-09-08 20:38:05 +00002567rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002568ac_cv_c_compiler_gnu=$ac_compiler_gnu
2569
2570fi
2571echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2572echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2573GCC=`test $ac_compiler_gnu = yes && echo yes`
2574ac_test_CFLAGS=${CFLAGS+set}
2575ac_save_CFLAGS=$CFLAGS
2576CFLAGS="-g"
2577echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2578echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2579if test "${ac_cv_prog_cc_g+set}" = set; then
2580 echo $ECHO_N "(cached) $ECHO_C" >&6
2581else
2582 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00002583#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002584/* confdefs.h. */
2585_ACEOF
2586cat confdefs.h >>conftest.$ac_ext
2587cat >>conftest.$ac_ext <<_ACEOF
2588/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002589
John Criswell7a73b802003-06-30 21:59:07 +00002590int
2591main ()
2592{
2593
2594 ;
2595 return 0;
2596}
2597_ACEOF
2598rm -f conftest.$ac_objext
2599if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00002600 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002601 ac_status=$?
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00002604 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606 (eval $ac_try) 2>&5
2607 ac_status=$?
2608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609 (exit $ac_status); }; }; then
2610 ac_cv_prog_cc_g=yes
2611else
2612 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002613sed 's/^/| /' conftest.$ac_ext >&5
2614
John Criswell7a73b802003-06-30 21:59:07 +00002615ac_cv_prog_cc_g=no
2616fi
Brian Gaeke0a621332004-09-08 20:38:05 +00002617rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002618fi
2619echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2620echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2621if test "$ac_test_CFLAGS" = set; then
2622 CFLAGS=$ac_save_CFLAGS
2623elif test $ac_cv_prog_cc_g = yes; then
2624 if test "$GCC" = yes; then
2625 CFLAGS="-g -O2"
2626 else
2627 CFLAGS="-g"
2628 fi
2629else
2630 if test "$GCC" = yes; then
2631 CFLAGS="-O2"
2632 else
2633 CFLAGS=
2634 fi
2635fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002636echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2637echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2638if test "${ac_cv_prog_cc_stdc+set}" = set; then
2639 echo $ECHO_N "(cached) $ECHO_C" >&6
2640else
2641 ac_cv_prog_cc_stdc=no
2642ac_save_CC=$CC
2643cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00002644#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002645/* confdefs.h. */
2646_ACEOF
2647cat confdefs.h >>conftest.$ac_ext
2648cat >>conftest.$ac_ext <<_ACEOF
2649/* end confdefs.h. */
2650#include <stdarg.h>
2651#include <stdio.h>
2652#include <sys/types.h>
2653#include <sys/stat.h>
2654/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2655struct buf { int x; };
2656FILE * (*rcsopen) (struct buf *, struct stat *, int);
2657static char *e (p, i)
2658 char **p;
2659 int i;
2660{
2661 return p[i];
2662}
2663static char *f (char * (*g) (char **, int), char **p, ...)
2664{
2665 char *s;
2666 va_list v;
2667 va_start (v,p);
2668 s = g (p, va_arg (v,int));
2669 va_end (v);
2670 return s;
2671}
2672int test (int i, double x);
2673struct s1 {int (*f) (int a);};
2674struct s2 {int (*f) (double a);};
2675int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2676int argc;
2677char **argv;
2678int
2679main ()
2680{
2681return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2682 ;
2683 return 0;
2684}
2685_ACEOF
2686# Don't try gcc -ansi; that turns off useful extensions and
2687# breaks some systems' header files.
2688# AIX -qlanglvl=ansi
2689# Ultrix and OSF/1 -std1
2690# HP-UX 10.20 and later -Ae
2691# HP-UX older versions -Aa -D_HPUX_SOURCE
2692# SVR4 -Xc -D__EXTENSIONS__
2693for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694do
2695 CC="$ac_save_CC $ac_arg"
2696 rm -f conftest.$ac_objext
2697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00002698 (eval $ac_compile) 2>&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002699 ac_status=$?
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00002702 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00002703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2704 (eval $ac_try) 2>&5
2705 ac_status=$?
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); }; }; then
2708 ac_cv_prog_cc_stdc=$ac_arg
2709break
2710else
2711 echo "$as_me: failed program was:" >&5
2712sed 's/^/| /' conftest.$ac_ext >&5
2713
2714fi
Brian Gaeke0a621332004-09-08 20:38:05 +00002715rm -f conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00002716done
2717rm -f conftest.$ac_ext conftest.$ac_objext
2718CC=$ac_save_CC
2719
2720fi
2721
2722case "x$ac_cv_prog_cc_stdc" in
2723 x|xno)
2724 echo "$as_me:$LINENO: result: none needed" >&5
2725echo "${ECHO_T}none needed" >&6 ;;
2726 *)
2727 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2728echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2729 CC="$CC $ac_cv_prog_cc_stdc" ;;
2730esac
2731
John Criswell7a73b802003-06-30 21:59:07 +00002732# Some people use a C++ compiler to compile C. Since we use `exit',
2733# in C++ we need to declare it. In case someone uses the same compiler
2734# for both compiling C and C++ we need to have the C++ compiler decide
2735# the declaration of exit, since it's the most demanding environment.
2736cat >conftest.$ac_ext <<_ACEOF
2737#ifndef __cplusplus
2738 choke me
2739#endif
2740_ACEOF
2741rm -f conftest.$ac_objext
2742if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00002743 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002744 ac_status=$?
2745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00002747 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2749 (eval $ac_try) 2>&5
2750 ac_status=$?
2751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2752 (exit $ac_status); }; }; then
2753 for ac_declaration in \
Brian Gaeke0a621332004-09-08 20:38:05 +00002754 ''\
2755 '#include <stdlib.h>' \
John Criswell7a73b802003-06-30 21:59:07 +00002756 'extern "C" void std::exit (int) throw (); using std::exit;' \
2757 'extern "C" void std::exit (int); using std::exit;' \
2758 'extern "C" void exit (int) throw ();' \
2759 'extern "C" void exit (int);' \
2760 'void exit (int);'
2761do
2762 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00002763#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002764/* confdefs.h. */
2765_ACEOF
2766cat confdefs.h >>conftest.$ac_ext
2767cat >>conftest.$ac_ext <<_ACEOF
2768/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +00002769#include <stdlib.h>
Brian Gaeke0a621332004-09-08 20:38:05 +00002770$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002771int
2772main ()
2773{
2774exit (42);
2775 ;
2776 return 0;
2777}
2778_ACEOF
2779rm -f conftest.$ac_objext
2780if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00002781 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00002785 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2791 :
2792else
2793 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002794sed 's/^/| /' conftest.$ac_ext >&5
2795
John Criswell7a73b802003-06-30 21:59:07 +00002796continue
2797fi
Brian Gaeke0a621332004-09-08 20:38:05 +00002798rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002799 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00002800#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002801/* confdefs.h. */
2802_ACEOF
2803cat confdefs.h >>conftest.$ac_ext
2804cat >>conftest.$ac_ext <<_ACEOF
2805/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002806$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002807int
2808main ()
2809{
2810exit (42);
2811 ;
2812 return 0;
2813}
2814_ACEOF
2815rm -f conftest.$ac_objext
2816if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00002817 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00002818 ac_status=$?
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00002821 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2823 (eval $ac_try) 2>&5
2824 ac_status=$?
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); }; }; then
2827 break
2828else
2829 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002830sed 's/^/| /' conftest.$ac_ext >&5
2831
John Criswell7a73b802003-06-30 21:59:07 +00002832fi
Brian Gaeke0a621332004-09-08 20:38:05 +00002833rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002834done
2835rm -f conftest*
2836if test -n "$ac_declaration"; then
2837 echo '#ifdef __cplusplus' >>confdefs.h
2838 echo $ac_declaration >>confdefs.h
2839 echo '#endif' >>confdefs.h
2840fi
2841
2842else
2843 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002844sed 's/^/| /' conftest.$ac_ext >&5
2845
John Criswell7a73b802003-06-30 21:59:07 +00002846fi
Brian Gaeke0a621332004-09-08 20:38:05 +00002847rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002848ac_ext=c
2849ac_cpp='$CPP $CPPFLAGS'
2850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2852ac_compiler_gnu=$ac_cv_c_compiler_gnu
2853
2854ac_ext=c
2855ac_cpp='$CPP $CPPFLAGS'
2856ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2857ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2858ac_compiler_gnu=$ac_cv_c_compiler_gnu
2859echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2860echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2861# On Suns, sometimes $CPP names a directory.
2862if test -n "$CPP" && test -d "$CPP"; then
2863 CPP=
2864fi
2865if test -z "$CPP"; then
2866 if test "${ac_cv_prog_CPP+set}" = set; then
2867 echo $ECHO_N "(cached) $ECHO_C" >&6
2868else
2869 # Double quotes because CPP needs to be expanded
2870 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2871 do
2872 ac_preproc_ok=false
2873for ac_c_preproc_warn_flag in '' yes
2874do
2875 # Use a header file that comes with gcc, so configuring glibc
2876 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2878 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002879 # On the NeXT, cc -E runs the code through the compiler's parser,
2880 # not just through cpp. "Syntax error" is here to catch this case.
2881 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00002882#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002883/* confdefs.h. */
2884_ACEOF
2885cat confdefs.h >>conftest.$ac_ext
2886cat >>conftest.$ac_ext <<_ACEOF
2887/* end confdefs.h. */
2888#ifdef __STDC__
2889# include <limits.h>
2890#else
2891# include <assert.h>
2892#endif
Brian Gaeke0a621332004-09-08 20:38:05 +00002893 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00002894_ACEOF
2895if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2896 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2897 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002898 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002899 rm -f conftest.er1
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); } >/dev/null; then
2903 if test -s conftest.err; then
2904 ac_cpp_err=$ac_c_preproc_warn_flag
2905 else
2906 ac_cpp_err=
2907 fi
2908else
2909 ac_cpp_err=yes
2910fi
2911if test -z "$ac_cpp_err"; then
2912 :
2913else
2914 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002915sed 's/^/| /' conftest.$ac_ext >&5
2916
John Criswell7a73b802003-06-30 21:59:07 +00002917 # Broken: fails on valid input.
2918continue
2919fi
2920rm -f conftest.err conftest.$ac_ext
2921
2922 # OK, works on sane cases. Now check whether non-existent headers
2923 # can be detected and how.
2924 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00002925#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002926/* confdefs.h. */
2927_ACEOF
2928cat confdefs.h >>conftest.$ac_ext
2929cat >>conftest.$ac_ext <<_ACEOF
2930/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002931#include <ac_nonexistent.h>
2932_ACEOF
2933if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2934 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2935 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002936 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } >/dev/null; then
2941 if test -s conftest.err; then
2942 ac_cpp_err=$ac_c_preproc_warn_flag
2943 else
2944 ac_cpp_err=
2945 fi
2946else
2947 ac_cpp_err=yes
2948fi
2949if test -z "$ac_cpp_err"; then
2950 # Broken: success on invalid input.
2951continue
2952else
2953 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002954sed 's/^/| /' conftest.$ac_ext >&5
2955
John Criswell7a73b802003-06-30 21:59:07 +00002956 # Passes both tests.
2957ac_preproc_ok=:
2958break
2959fi
2960rm -f conftest.err conftest.$ac_ext
2961
2962done
2963# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2964rm -f conftest.err conftest.$ac_ext
2965if $ac_preproc_ok; then
2966 break
2967fi
2968
2969 done
2970 ac_cv_prog_CPP=$CPP
2971
2972fi
2973 CPP=$ac_cv_prog_CPP
2974else
2975 ac_cv_prog_CPP=$CPP
2976fi
2977echo "$as_me:$LINENO: result: $CPP" >&5
2978echo "${ECHO_T}$CPP" >&6
2979ac_preproc_ok=false
2980for ac_c_preproc_warn_flag in '' yes
2981do
2982 # Use a header file that comes with gcc, so configuring glibc
2983 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002984 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2985 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002986 # On the NeXT, cc -E runs the code through the compiler's parser,
2987 # not just through cpp. "Syntax error" is here to catch this case.
2988 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00002989#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00002990/* confdefs.h. */
2991_ACEOF
2992cat confdefs.h >>conftest.$ac_ext
2993cat >>conftest.$ac_ext <<_ACEOF
2994/* end confdefs.h. */
2995#ifdef __STDC__
2996# include <limits.h>
2997#else
2998# include <assert.h>
2999#endif
Brian Gaeke0a621332004-09-08 20:38:05 +00003000 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003001_ACEOF
3002if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3003 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3004 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003005 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003006 rm -f conftest.er1
3007 cat conftest.err >&5
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); } >/dev/null; then
3010 if test -s conftest.err; then
3011 ac_cpp_err=$ac_c_preproc_warn_flag
3012 else
3013 ac_cpp_err=
3014 fi
3015else
3016 ac_cpp_err=yes
3017fi
3018if test -z "$ac_cpp_err"; then
3019 :
3020else
3021 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003022sed 's/^/| /' conftest.$ac_ext >&5
3023
John Criswell7a73b802003-06-30 21:59:07 +00003024 # Broken: fails on valid input.
3025continue
3026fi
3027rm -f conftest.err conftest.$ac_ext
3028
3029 # OK, works on sane cases. Now check whether non-existent headers
3030 # can be detected and how.
3031 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00003032#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003033/* confdefs.h. */
3034_ACEOF
3035cat confdefs.h >>conftest.$ac_ext
3036cat >>conftest.$ac_ext <<_ACEOF
3037/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003038#include <ac_nonexistent.h>
3039_ACEOF
3040if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3041 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3042 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003043 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003044 rm -f conftest.er1
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } >/dev/null; then
3048 if test -s conftest.err; then
3049 ac_cpp_err=$ac_c_preproc_warn_flag
3050 else
3051 ac_cpp_err=
3052 fi
3053else
3054 ac_cpp_err=yes
3055fi
3056if test -z "$ac_cpp_err"; then
3057 # Broken: success on invalid input.
3058continue
3059else
3060 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003061sed 's/^/| /' conftest.$ac_ext >&5
3062
John Criswell7a73b802003-06-30 21:59:07 +00003063 # Passes both tests.
3064ac_preproc_ok=:
3065break
3066fi
3067rm -f conftest.err conftest.$ac_ext
3068
3069done
3070# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3071rm -f conftest.err conftest.$ac_ext
3072if $ac_preproc_ok; then
3073 :
3074else
John Criswell0c38eaf2003-09-10 15:17:25 +00003075 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3076See \`config.log' for more details." >&5
3077echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3078See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003079 { (exit 1); exit 1; }; }
3080fi
3081
3082ac_ext=c
3083ac_cpp='$CPP $CPPFLAGS'
3084ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3085ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3086ac_compiler_gnu=$ac_cv_c_compiler_gnu
3087
3088
3089if test "$GCC" != "yes"
3090then
3091 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3092echo "$as_me: error: gcc required but not found" >&2;}
3093 { (exit 1); exit 1; }; }
3094fi
John Criswell7a73b802003-06-30 21:59:07 +00003095if test "$GXX" != "yes"
3096then
3097 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3098echo "$as_me: error: g++ required but not found" >&2;}
3099 { (exit 1); exit 1; }; }
3100fi
3101
John Criswellde00db22003-08-25 16:49:54 +00003102gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3103if test "$gccmajor" -lt "3"
3104then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003105 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3106echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003107 { (exit 1); exit 1; }; }
3108fi
3109
John Criswell7a73b802003-06-30 21:59:07 +00003110 echo "$as_me:$LINENO: checking for GNU make" >&5
3111echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3112if test "${_cv_gnu_make_command+set}" = set; then
3113 echo $ECHO_N "(cached) $ECHO_C" >&6
3114else
3115 _cv_gnu_make_command='' ;
3116 for a in "$MAKE" make gmake gnumake ; do
3117 if test -z "$a" ; then continue ; fi ;
3118 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3119 _cv_gnu_make_command=$a ;
3120 break;
3121 fi
3122 done ;
3123
3124fi
3125echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3126echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3127 if test "x$_cv_gnu_make_command" != "x" ; then
3128 ifGNUmake='' ;
3129 else
3130 ifGNUmake='#' ;
3131 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3132echo "${ECHO_T}\"Not found\"" >&6;
3133 fi
3134
3135
3136if test -z "$_cv_gnu_make_command"
3137then
3138 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3139echo "$as_me: error: GNU Make required but not found" >&2;}
3140 { (exit 1); exit 1; }; }
3141fi
3142
3143
3144echo "$as_me:$LINENO: checking " >&5
3145echo $ECHO_N "checking ... $ECHO_C" >&6
3146if test "${ac_cv_has_flex+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3148else
3149 for ac_prog in flex lex
3150do
3151 # Extract the first word of "$ac_prog", so it can be a program name with args.
3152set dummy $ac_prog; ac_word=$2
3153echo "$as_me:$LINENO: checking for $ac_word" >&5
3154echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3155if test "${ac_cv_prog_LEX+set}" = set; then
3156 echo $ECHO_N "(cached) $ECHO_C" >&6
3157else
3158 if test -n "$LEX"; then
3159 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3160else
3161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162for as_dir in $PATH
3163do
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_exec_ext in '' $ac_executable_extensions; do
3167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3168 ac_cv_prog_LEX="$ac_prog"
3169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 break 2
3171 fi
3172done
3173done
3174
3175fi
3176fi
3177LEX=$ac_cv_prog_LEX
3178if test -n "$LEX"; then
3179 echo "$as_me:$LINENO: result: $LEX" >&5
3180echo "${ECHO_T}$LEX" >&6
3181else
3182 echo "$as_me:$LINENO: result: no" >&5
3183echo "${ECHO_T}no" >&6
3184fi
3185
3186 test -n "$LEX" && break
3187done
3188test -n "$LEX" || LEX=":"
3189
3190if test -z "$LEXLIB"
3191then
3192 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3193echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3194if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3196else
3197 ac_check_lib_save_LIBS=$LIBS
3198LIBS="-lfl $LIBS"
3199cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00003200#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003201/* confdefs.h. */
3202_ACEOF
3203cat confdefs.h >>conftest.$ac_ext
3204cat >>conftest.$ac_ext <<_ACEOF
3205/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003206
3207/* Override any gcc2 internal prototype to avoid an error. */
3208#ifdef __cplusplus
3209extern "C"
3210#endif
3211/* We use char because int might match the return type of a gcc2
3212 builtin and then its argument prototype would still apply. */
3213char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003214int
3215main ()
3216{
3217yywrap ();
3218 ;
3219 return 0;
3220}
3221_ACEOF
3222rm -f conftest.$ac_objext conftest$ac_exeext
3223if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00003224 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003225 ac_status=$?
3226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00003228 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3230 (eval $ac_try) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }; }; then
3234 ac_cv_lib_fl_yywrap=yes
3235else
3236 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003237sed 's/^/| /' conftest.$ac_ext >&5
3238
John Criswell7a73b802003-06-30 21:59:07 +00003239ac_cv_lib_fl_yywrap=no
3240fi
Brian Gaeke0a621332004-09-08 20:38:05 +00003241rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003242LIBS=$ac_check_lib_save_LIBS
3243fi
3244echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3245echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3246if test $ac_cv_lib_fl_yywrap = yes; then
3247 LEXLIB="-lfl"
3248else
3249 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3250echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3251if test "${ac_cv_lib_l_yywrap+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
3254 ac_check_lib_save_LIBS=$LIBS
3255LIBS="-ll $LIBS"
3256cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00003257#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00003258/* confdefs.h. */
3259_ACEOF
3260cat confdefs.h >>conftest.$ac_ext
3261cat >>conftest.$ac_ext <<_ACEOF
3262/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003263
3264/* Override any gcc2 internal prototype to avoid an error. */
3265#ifdef __cplusplus
3266extern "C"
3267#endif
3268/* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3270char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003271int
3272main ()
3273{
3274yywrap ();
3275 ;
3276 return 0;
3277}
3278_ACEOF
3279rm -f conftest.$ac_objext conftest$ac_exeext
3280if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00003281 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00003285 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3287 (eval $ac_try) 2>&5
3288 ac_status=$?
3289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290 (exit $ac_status); }; }; then
3291 ac_cv_lib_l_yywrap=yes
3292else
3293 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003294sed 's/^/| /' conftest.$ac_ext >&5
3295
John Criswell7a73b802003-06-30 21:59:07 +00003296ac_cv_lib_l_yywrap=no
3297fi
Brian Gaeke0a621332004-09-08 20:38:05 +00003298rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003299LIBS=$ac_check_lib_save_LIBS
3300fi
3301echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3302echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3303if test $ac_cv_lib_l_yywrap = yes; then
3304 LEXLIB="-ll"
3305fi
3306
3307fi
3308
3309fi
3310
3311if test "x$LEX" != "x:"; then
3312 echo "$as_me:$LINENO: checking lex output file root" >&5
3313echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3314if test "${ac_cv_prog_lex_root+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3316else
3317 # The minimal lex program is just a single line: %%. But some broken lexes
3318# (Solaris, I think it was) want two %% lines, so accommodate them.
3319cat >conftest.l <<_ACEOF
3320%%
3321%%
3322_ACEOF
3323{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3324 (eval $LEX conftest.l) 2>&5
3325 ac_status=$?
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }
3328if test -f lex.yy.c; then
3329 ac_cv_prog_lex_root=lex.yy
3330elif test -f lexyy.c; then
3331 ac_cv_prog_lex_root=lexyy
3332else
3333 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3334echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3335 { (exit 1); exit 1; }; }
3336fi
3337fi
3338echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3339echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3340rm -f conftest.l
3341LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3342
3343echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3344echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3345if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3346 echo $ECHO_N "(cached) $ECHO_C" >&6
3347else
3348 # POSIX says lex can declare yytext either as a pointer or an array; the
3349# default is implementation-dependent. Figure out which it is, since
3350# not all implementations provide the %pointer and %array declarations.
3351ac_cv_prog_lex_yytext_pointer=no
3352echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3353ac_save_LIBS=$LIBS
3354LIBS="$LIBS $LEXLIB"
3355cat >conftest.$ac_ext <<_ACEOF
3356`cat $LEX_OUTPUT_ROOT.c`
3357_ACEOF
3358rm -f conftest.$ac_objext conftest$ac_exeext
3359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00003360 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00003361 ac_status=$?
3362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3363 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00003364 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3366 (eval $ac_try) 2>&5
3367 ac_status=$?
3368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369 (exit $ac_status); }; }; then
3370 ac_cv_prog_lex_yytext_pointer=yes
3371else
3372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003373sed 's/^/| /' conftest.$ac_ext >&5
3374
John Criswell7a73b802003-06-30 21:59:07 +00003375fi
Brian Gaeke0a621332004-09-08 20:38:05 +00003376rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003377LIBS=$ac_save_LIBS
3378rm -f "${LEX_OUTPUT_ROOT}.c"
3379
3380fi
3381echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3382echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3383if test $ac_cv_prog_lex_yytext_pointer = yes; then
3384
3385cat >>confdefs.h <<\_ACEOF
3386#define YYTEXT_POINTER 1
3387_ACEOF
3388
3389fi
3390
3391fi
3392
3393fi
3394echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3395echo "${ECHO_T}$ac_cv_has_flex" >&6
3396if test "$LEX" != "flex"; then
3397 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3398echo "$as_me: error: flex not found but required" >&2;}
3399 { (exit 1); exit 1; }; }
Reid Spencer9751dbf2004-09-07 18:04:45 +00003400else
3401 FLEX=flex
3402
John Criswell7a73b802003-06-30 21:59:07 +00003403fi
3404
3405echo "$as_me:$LINENO: checking " >&5
3406echo $ECHO_N "checking ... $ECHO_C" >&6
3407if test "${ac_cv_has_bison+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3409else
3410 for ac_prog in 'bison -y' byacc
3411do
3412 # Extract the first word of "$ac_prog", so it can be a program name with args.
3413set dummy $ac_prog; ac_word=$2
3414echo "$as_me:$LINENO: checking for $ac_word" >&5
3415echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3416if test "${ac_cv_prog_YACC+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418else
3419 if test -n "$YACC"; then
3420 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3421else
3422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3423for as_dir in $PATH
3424do
3425 IFS=$as_save_IFS
3426 test -z "$as_dir" && as_dir=.
3427 for ac_exec_ext in '' $ac_executable_extensions; do
3428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3429 ac_cv_prog_YACC="$ac_prog"
3430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 break 2
3432 fi
3433done
3434done
3435
3436fi
3437fi
3438YACC=$ac_cv_prog_YACC
3439if test -n "$YACC"; then
3440 echo "$as_me:$LINENO: result: $YACC" >&5
3441echo "${ECHO_T}$YACC" >&6
3442else
3443 echo "$as_me:$LINENO: result: no" >&5
3444echo "${ECHO_T}no" >&6
3445fi
3446
3447 test -n "$YACC" && break
3448done
3449test -n "$YACC" || YACC="yacc"
3450
3451
3452fi
3453echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3454echo "${ECHO_T}$ac_cv_has_bison" >&6
3455if test "$YACC" != "bison -y"; then
3456 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3457echo "$as_me: error: bison not found but required" >&2;}
3458 { (exit 1); exit 1; }; }
3459else
Brian Gaeke12810632004-01-13 06:52:10 +00003460 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003461
3462fi
3463
John Criswell7a73b802003-06-30 21:59:07 +00003464# Check whether --enable-shared or --disable-shared was given.
3465if test "${enable_shared+set}" = set; then
3466 enableval="$enable_shared"
3467 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003468 case $enableval in
3469 yes) enable_shared=yes ;;
3470 no) enable_shared=no ;;
3471 *)
3472 enable_shared=no
3473 # Look at the argument we got. We use all the common list separators.
3474 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3475 for pkg in $enableval; do
3476 IFS="$lt_save_ifs"
3477 if test "X$pkg" = "X$p"; then
3478 enable_shared=yes
3479 fi
3480 done
3481 IFS="$lt_save_ifs"
3482 ;;
3483 esac
John Criswell7a73b802003-06-30 21:59:07 +00003484else
3485 enable_shared=yes
3486fi;
John Criswell47fdd832003-07-14 16:52:07 +00003487
John Criswell7a73b802003-06-30 21:59:07 +00003488# Check whether --enable-static or --disable-static was given.
3489if test "${enable_static+set}" = set; then
3490 enableval="$enable_static"
3491 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003492 case $enableval in
3493 yes) enable_static=yes ;;
3494 no) enable_static=no ;;
3495 *)
3496 enable_static=no
3497 # Look at the argument we got. We use all the common list separators.
3498 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3499 for pkg in $enableval; do
3500 IFS="$lt_save_ifs"
3501 if test "X$pkg" = "X$p"; then
3502 enable_static=yes
3503 fi
3504 done
3505 IFS="$lt_save_ifs"
3506 ;;
3507 esac
John Criswell7a73b802003-06-30 21:59:07 +00003508else
3509 enable_static=yes
3510fi;
John Criswell47fdd832003-07-14 16:52:07 +00003511
John Criswell7a73b802003-06-30 21:59:07 +00003512# Check whether --enable-fast-install or --disable-fast-install was given.
3513if test "${enable_fast_install+set}" = set; then
3514 enableval="$enable_fast_install"
3515 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003516 case $enableval in
3517 yes) enable_fast_install=yes ;;
3518 no) enable_fast_install=no ;;
3519 *)
3520 enable_fast_install=no
3521 # Look at the argument we got. We use all the common list separators.
3522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3523 for pkg in $enableval; do
3524 IFS="$lt_save_ifs"
3525 if test "X$pkg" = "X$p"; then
3526 enable_fast_install=yes
3527 fi
3528 done
3529 IFS="$lt_save_ifs"
3530 ;;
3531 esac
John Criswell7a73b802003-06-30 21:59:07 +00003532else
3533 enable_fast_install=yes
3534fi;
John Criswell47fdd832003-07-14 16:52:07 +00003535
3536echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3537echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3538if test "${lt_cv_path_SED+set}" = set; then
3539 echo $ECHO_N "(cached) $ECHO_C" >&6
3540else
3541 # Loop through the user's path and test for sed and gsed.
3542# Then use that list of sed's as ones to test for truncation.
3543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544for as_dir in $PATH
3545do
3546 IFS=$as_save_IFS
3547 test -z "$as_dir" && as_dir=.
3548 for lt_ac_prog in sed gsed; do
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3551 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3552 fi
3553 done
3554 done
3555done
3556lt_ac_max=0
3557lt_ac_count=0
3558# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3559# along with /bin/sed that truncates output.
3560for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3561 test ! -f $lt_ac_sed && break
3562 cat /dev/null > conftest.in
3563 lt_ac_count=0
3564 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3565 # Check for GNU sed and select it if it is found.
3566 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3567 lt_cv_path_SED=$lt_ac_sed
3568 break
3569 fi
3570 while true; do
3571 cat conftest.in conftest.in >conftest.tmp
3572 mv conftest.tmp conftest.in
3573 cp conftest.in conftest.nl
3574 echo >>conftest.nl
3575 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3576 cmp -s conftest.out conftest.nl || break
3577 # 10000 chars as input seems more than enough
3578 test $lt_ac_count -gt 10 && break
3579 lt_ac_count=`expr $lt_ac_count + 1`
3580 if test $lt_ac_count -gt $lt_ac_max; then
3581 lt_ac_max=$lt_ac_count
3582 lt_cv_path_SED=$lt_ac_sed
3583 fi
3584 done
3585done
3586SED=$lt_cv_path_SED
3587
John Criswell7a73b802003-06-30 21:59:07 +00003588fi
3589
John Criswell47fdd832003-07-14 16:52:07 +00003590echo "$as_me:$LINENO: result: $SED" >&5
3591echo "${ECHO_T}$SED" >&6
3592
3593echo "$as_me:$LINENO: checking for egrep" >&5
3594echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3595if test "${ac_cv_prog_egrep+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3597else
3598 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3599 then ac_cv_prog_egrep='grep -E'
3600 else ac_cv_prog_egrep='egrep'
3601 fi
3602fi
3603echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3604echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3605 EGREP=$ac_cv_prog_egrep
3606
3607
John Criswell7a73b802003-06-30 21:59:07 +00003608
3609# Check whether --with-gnu-ld or --without-gnu-ld was given.
3610if test "${with_gnu_ld+set}" = set; then
3611 withval="$with_gnu_ld"
3612 test "$withval" = no || with_gnu_ld=yes
3613else
3614 with_gnu_ld=no
3615fi;
3616ac_prog=ld
3617if test "$GCC" = yes; then
3618 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003619 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3620echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003621 case $host in
3622 *-*-mingw*)
3623 # gcc leaves a trailing carriage return which upsets mingw
3624 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3625 *)
3626 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3627 esac
3628 case $ac_prog in
3629 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003630 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003631 re_direlt='/[^/][^/]*/\.\./'
Brian Gaeke0a621332004-09-08 20:38:05 +00003632 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003633 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003634 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003635 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003636 done
3637 test -z "$LD" && LD="$ac_prog"
3638 ;;
3639 "")
3640 # If it fails, then pretend we aren't using GCC.
3641 ac_prog=ld
3642 ;;
3643 *)
3644 # If it is relative, then search for the first ld in PATH.
3645 with_gnu_ld=unknown
3646 ;;
3647 esac
3648elif test "$with_gnu_ld" = yes; then
3649 echo "$as_me:$LINENO: checking for GNU ld" >&5
3650echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3651else
3652 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3653echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3654fi
3655if test "${lt_cv_path_LD+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657else
3658 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003660 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003661 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003662 test -z "$ac_dir" && ac_dir=.
3663 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3664 lt_cv_path_LD="$ac_dir/$ac_prog"
3665 # Check to see if the program is GNU ld. I'd rather use --version,
3666 # but apparently some GNU ld's only accept -v.
3667 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003668 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3669 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003670 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003671 ;;
3672 *)
John Criswell7a73b802003-06-30 21:59:07 +00003673 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003674 ;;
3675 esac
John Criswell7a73b802003-06-30 21:59:07 +00003676 fi
3677 done
John Criswell47fdd832003-07-14 16:52:07 +00003678 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003679else
3680 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3681fi
3682fi
3683
3684LD="$lt_cv_path_LD"
3685if test -n "$LD"; then
3686 echo "$as_me:$LINENO: result: $LD" >&5
3687echo "${ECHO_T}$LD" >&6
3688else
3689 echo "$as_me:$LINENO: result: no" >&5
3690echo "${ECHO_T}no" >&6
3691fi
3692test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3693echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3694 { (exit 1); exit 1; }; }
3695echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3696echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3697if test "${lt_cv_prog_gnu_ld+set}" = set; then
3698 echo $ECHO_N "(cached) $ECHO_C" >&6
3699else
3700 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Brian Gaeke0a621332004-09-08 20:38:05 +00003701case `"$LD" -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00003702*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003703 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003704 ;;
3705*)
John Criswell7a73b802003-06-30 21:59:07 +00003706 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003707 ;;
3708esac
John Criswell7a73b802003-06-30 21:59:07 +00003709fi
3710echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3711echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3712with_gnu_ld=$lt_cv_prog_gnu_ld
3713
3714
3715echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3716echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3717if test "${lt_cv_ld_reload_flag+set}" = set; then
3718 echo $ECHO_N "(cached) $ECHO_C" >&6
3719else
3720 lt_cv_ld_reload_flag='-r'
3721fi
3722echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3723echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3724reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003725case $reload_flag in
3726"" | " "*) ;;
3727*) reload_flag=" $reload_flag" ;;
3728esac
Brian Gaeke0a621332004-09-08 20:38:05 +00003729reload_cmds='$CC -nostdlib -Xlinker$reload_flag $archargs -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003730
3731echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3732echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3733if test "${lt_cv_path_NM+set}" = set; then
3734 echo $ECHO_N "(cached) $ECHO_C" >&6
3735else
3736 if test -n "$NM"; then
3737 # Let the user override the test.
3738 lt_cv_path_NM="$NM"
3739else
John Criswell47fdd832003-07-14 16:52:07 +00003740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003741 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003742 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003743 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003744 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3745 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003746 # Check to see if the nm accepts a BSD-compat flag.
3747 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3748 # nm: unknown option "B" ignored
3749 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003750 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3751 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003752 lt_cv_path_NM="$tmp_nm -B"
3753 break
John Criswell47fdd832003-07-14 16:52:07 +00003754 ;;
3755 *)
3756 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3757 */dev/null*)
3758 lt_cv_path_NM="$tmp_nm -p"
3759 break
3760 ;;
3761 *)
3762 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3763 continue # so that we can try to find one that supports BSD flags
3764 ;;
3765 esac
3766 esac
John Criswell7a73b802003-06-30 21:59:07 +00003767 fi
3768 done
John Criswell47fdd832003-07-14 16:52:07 +00003769 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003770 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3771fi
3772fi
John Criswell47fdd832003-07-14 16:52:07 +00003773echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3774echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003775NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003776
3777echo "$as_me:$LINENO: checking whether ln -s works" >&5
3778echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3779LN_S=$as_ln_s
3780if test "$LN_S" = "ln -s"; then
3781 echo "$as_me:$LINENO: result: yes" >&5
3782echo "${ECHO_T}yes" >&6
3783else
3784 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3785echo "${ECHO_T}no, using $LN_S" >&6
3786fi
3787
John Criswell47fdd832003-07-14 16:52:07 +00003788echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3789echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003790if test "${lt_cv_deplibs_check_method+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792else
3793 lt_cv_file_magic_cmd='$MAGIC_CMD'
3794lt_cv_file_magic_test_file=
3795lt_cv_deplibs_check_method='unknown'
3796# Need to set the preceding variable on all platforms that support
3797# interlibrary dependencies.
3798# 'none' -- dependencies not supported.
3799# `unknown' -- same as none, but documents that we really don't know.
3800# 'pass_all' -- all dependencies passed with no checks.
3801# 'test_compile' -- check by making test program.
3802# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003803# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003804# If you have `file' or equivalent on your system and you're not sure
3805# whether `pass_all' will *always* work, you probably want this one.
3806
3807case $host_os in
3808aix4* | aix5*)
3809 lt_cv_deplibs_check_method=pass_all
3810 ;;
3811
3812beos*)
3813 lt_cv_deplibs_check_method=pass_all
3814 ;;
3815
3816bsdi4*)
3817 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3818 lt_cv_file_magic_cmd='/usr/bin/file -L'
3819 lt_cv_file_magic_test_file=/shlib/libc.so
3820 ;;
3821
3822cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003823 # win32_libid is a shell function defined in ltmain.sh
3824 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3825 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003826 ;;
3827
3828darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003829 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003830 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3831 lt_cv_file_magic_cmd='/usr/bin/file -L'
3832 case "$host_os" in
3833 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003834 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003835 ;;
3836 *) # Darwin 1.3 on
3837 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3838 ;;
3839 esac
John Criswell47fdd832003-07-14 16:52:07 +00003840 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003841 ;;
3842
Brian Gaeke0a621332004-09-08 20:38:05 +00003843freebsd*)
John Criswell7a73b802003-06-30 21:59:07 +00003844 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3845 case $host_cpu in
3846 i*86 )
3847 # Not sure whether the presence of OpenBSD here was a mistake.
3848 # Let's accept both of them until this is cleared up.
3849 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3850 lt_cv_file_magic_cmd=/usr/bin/file
3851 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3852 ;;
3853 esac
3854 else
3855 lt_cv_deplibs_check_method=pass_all
3856 fi
3857 ;;
3858
3859gnu*)
3860 lt_cv_deplibs_check_method=pass_all
3861 ;;
3862
John Criswell47fdd832003-07-14 16:52:07 +00003863hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003864 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003865 case "$host_cpu" in
3866 ia64*)
3867 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3868 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3869 ;;
3870 hppa*64*)
3871 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]'
3872 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3873 ;;
3874 *)
3875 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3876 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3877 ;;
3878 esac
John Criswell7a73b802003-06-30 21:59:07 +00003879 ;;
3880
John Criswell47fdd832003-07-14 16:52:07 +00003881irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003882 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00003883 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00003884 # this will be overridden with pass_all, but let us keep it just in case
3885 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3886 ;;
3887 *)
3888 case $LD in
3889 *-32|*"-32 ") libmagic=32-bit;;
3890 *-n32|*"-n32 ") libmagic=N32;;
3891 *-64|*"-64 ") libmagic=64-bit;;
3892 *) libmagic=never-match;;
3893 esac
3894 # this will be overridden with pass_all, but let us keep it just in case
3895 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3896 ;;
3897 esac
3898 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3899 lt_cv_deplibs_check_method=pass_all
3900 ;;
3901
3902# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00003903linux*)
John Criswell7a73b802003-06-30 21:59:07 +00003904 case $host_cpu in
Brian Gaeke0a621332004-09-08 20:38:05 +00003905 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00003906 lt_cv_deplibs_check_method=pass_all ;;
3907 *)
3908 # glibc up to 2.1.1 does not perform some relocations on ARM
3909 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3910 esac
3911 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3912 ;;
3913
3914netbsd*)
3915 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00003916 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003917 else
John Criswell47fdd832003-07-14 16:52:07 +00003918 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00003919 fi
3920 ;;
3921
3922newos6*)
3923 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3924 lt_cv_file_magic_cmd=/usr/bin/file
3925 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3926 ;;
3927
Brian Gaeke0a621332004-09-08 20:38:05 +00003928nto-qnx)
John Criswell47fdd832003-07-14 16:52:07 +00003929 lt_cv_deplibs_check_method=unknown
3930 ;;
3931
John Criswell7a73b802003-06-30 21:59:07 +00003932openbsd*)
3933 lt_cv_file_magic_cmd=/usr/bin/file
3934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3935 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3937 else
3938 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3939 fi
3940 ;;
3941
3942osf3* | osf4* | osf5*)
3943 # this will be overridden with pass_all, but let us keep it just in case
3944 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3945 lt_cv_file_magic_test_file=/shlib/libc.so
3946 lt_cv_deplibs_check_method=pass_all
3947 ;;
3948
3949sco3.2v5*)
3950 lt_cv_deplibs_check_method=pass_all
3951 ;;
3952
3953solaris*)
3954 lt_cv_deplibs_check_method=pass_all
3955 lt_cv_file_magic_test_file=/lib/libc.so
3956 ;;
3957
John Criswell7a73b802003-06-30 21:59:07 +00003958sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3959 case $host_vendor in
3960 motorola)
3961 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]'
3962 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3963 ;;
3964 ncr)
3965 lt_cv_deplibs_check_method=pass_all
3966 ;;
3967 sequent)
3968 lt_cv_file_magic_cmd='/bin/file'
3969 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3970 ;;
3971 sni)
3972 lt_cv_file_magic_cmd='/bin/file'
3973 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3974 lt_cv_file_magic_test_file=/lib/libc.so
3975 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003976 siemens)
3977 lt_cv_deplibs_check_method=pass_all
3978 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003979 esac
3980 ;;
John Criswell47fdd832003-07-14 16:52:07 +00003981
3982sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3983 lt_cv_deplibs_check_method=pass_all
3984 ;;
John Criswell7a73b802003-06-30 21:59:07 +00003985esac
3986
3987fi
3988echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3989echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3990file_magic_cmd=$lt_cv_file_magic_cmd
3991deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00003992test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00003993
3994
3995
3996
John Criswell47fdd832003-07-14 16:52:07 +00003997# If no C compiler was specified, use CC.
3998LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00003999
John Criswell47fdd832003-07-14 16:52:07 +00004000# Allow CC to be a program name with arguments.
4001compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004002
John Criswell47fdd832003-07-14 16:52:07 +00004003# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4004if test "${enable_libtool_lock+set}" = set; then
4005 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004006
John Criswell47fdd832003-07-14 16:52:07 +00004007fi;
4008test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004009
John Criswell47fdd832003-07-14 16:52:07 +00004010# Some flags need to be propagated to the compiler or linker for good
4011# libtool support.
4012case $host in
4013ia64-*-hpux*)
4014 # Find out which ABI we are using.
4015 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4017 (eval $ac_compile) 2>&5
4018 ac_status=$?
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004021 case `/usr/bin/file conftest.$ac_objext` in
4022 *ELF-32*)
4023 HPUX_IA64_MODE="32"
4024 ;;
4025 *ELF-64*)
4026 HPUX_IA64_MODE="64"
4027 ;;
4028 esac
4029 fi
4030 rm -rf conftest*
4031 ;;
4032*-*-irix6*)
4033 # Find out which ABI we are using.
Brian Gaeke0a621332004-09-08 20:38:05 +00004034 echo '#line 4034 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4036 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004037 ac_status=$?
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004039 (exit $ac_status); }; then
4040 if test "$lt_cv_prog_gnu_ld" = yes; then
4041 case `/usr/bin/file conftest.$ac_objext` in
4042 *32-bit*)
4043 LD="${LD-ld} -melf32bsmip"
4044 ;;
4045 *N32*)
4046 LD="${LD-ld} -melf32bmipn32"
4047 ;;
4048 *64-bit*)
4049 LD="${LD-ld} -melf64bmip"
4050 ;;
4051 esac
4052 else
4053 case `/usr/bin/file conftest.$ac_objext` in
4054 *32-bit*)
4055 LD="${LD-ld} -32"
4056 ;;
4057 *N32*)
4058 LD="${LD-ld} -n32"
4059 ;;
4060 *64-bit*)
4061 LD="${LD-ld} -64"
4062 ;;
4063 esac
4064 fi
4065 fi
4066 rm -rf conftest*
4067 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004068
John Criswell47fdd832003-07-14 16:52:07 +00004069x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4070 # Find out which ABI we are using.
4071 echo 'int i;' > conftest.$ac_ext
4072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4073 (eval $ac_compile) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; then
4077 case "`/usr/bin/file conftest.o`" in
4078 *32-bit*)
4079 case $host in
4080 x86_64-*linux*)
4081 LD="${LD-ld} -m elf_i386"
4082 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +00004083 ppc64-*linux*)
John Criswell47fdd832003-07-14 16:52:07 +00004084 LD="${LD-ld} -m elf32ppclinux"
4085 ;;
4086 s390x-*linux*)
4087 LD="${LD-ld} -m elf_s390"
4088 ;;
4089 sparc64-*linux*)
4090 LD="${LD-ld} -m elf32_sparc"
4091 ;;
4092 esac
4093 ;;
4094 *64-bit*)
4095 case $host in
4096 x86_64-*linux*)
4097 LD="${LD-ld} -m elf_x86_64"
4098 ;;
4099 ppc*-*linux*|powerpc*-*linux*)
4100 LD="${LD-ld} -m elf64ppc"
4101 ;;
4102 s390*-*linux*)
4103 LD="${LD-ld} -m elf64_s390"
4104 ;;
4105 sparc*-*linux*)
4106 LD="${LD-ld} -m elf64_sparc"
4107 ;;
4108 esac
4109 ;;
4110 esac
4111 fi
4112 rm -rf conftest*
4113 ;;
4114
4115*-*-sco3.2v5*)
4116 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4117 SAVE_CFLAGS="$CFLAGS"
4118 CFLAGS="$CFLAGS -belf"
4119 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4120echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4121if test "${lt_cv_cc_needs_belf+set}" = set; then
4122 echo $ECHO_N "(cached) $ECHO_C" >&6
4123else
4124 ac_ext=c
4125ac_cpp='$CPP $CPPFLAGS'
4126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129
4130 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004131#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004132/* confdefs.h. */
4133_ACEOF
4134cat confdefs.h >>conftest.$ac_ext
4135cat >>conftest.$ac_ext <<_ACEOF
4136/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004137
John Criswell47fdd832003-07-14 16:52:07 +00004138int
4139main ()
John Criswell7a73b802003-06-30 21:59:07 +00004140{
John Criswell7a73b802003-06-30 21:59:07 +00004141
John Criswell47fdd832003-07-14 16:52:07 +00004142 ;
4143 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004144}
John Criswell47fdd832003-07-14 16:52:07 +00004145_ACEOF
4146rm -f conftest.$ac_objext conftest$ac_exeext
4147if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00004148 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004149 ac_status=$?
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004151 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00004152 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00004153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4154 (eval $ac_try) 2>&5
4155 ac_status=$?
4156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4157 (exit $ac_status); }; }; then
4158 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004159else
John Criswell47fdd832003-07-14 16:52:07 +00004160 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004161sed 's/^/| /' conftest.$ac_ext >&5
4162
John Criswell47fdd832003-07-14 16:52:07 +00004163lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004164fi
Brian Gaeke0a621332004-09-08 20:38:05 +00004165rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004166 ac_ext=c
4167ac_cpp='$CPP $CPPFLAGS'
4168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171
John Criswell7a73b802003-06-30 21:59:07 +00004172fi
John Criswell47fdd832003-07-14 16:52:07 +00004173echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4174echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4175 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4176 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4177 CFLAGS="$SAVE_CFLAGS"
4178 fi
4179 ;;
4180
4181esac
4182
4183need_locks="$enable_libtool_lock"
4184
John Criswell7a73b802003-06-30 21:59:07 +00004185
4186
4187echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4188echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4189if test "${ac_cv_header_stdc+set}" = set; then
4190 echo $ECHO_N "(cached) $ECHO_C" >&6
4191else
4192 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004193#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004194/* confdefs.h. */
4195_ACEOF
4196cat confdefs.h >>conftest.$ac_ext
4197cat >>conftest.$ac_ext <<_ACEOF
4198/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004199#include <stdlib.h>
4200#include <stdarg.h>
4201#include <string.h>
4202#include <float.h>
4203
John Criswell0c38eaf2003-09-10 15:17:25 +00004204int
4205main ()
4206{
4207
4208 ;
4209 return 0;
4210}
John Criswell7a73b802003-06-30 21:59:07 +00004211_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004212rm -f conftest.$ac_objext
4213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00004214 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004215 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +00004216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004217 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00004218 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00004219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 (eval $ac_try) 2>&5
4221 ac_status=$?
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004224 ac_cv_header_stdc=yes
4225else
4226 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004227sed 's/^/| /' conftest.$ac_ext >&5
4228
4229ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004230fi
Brian Gaeke0a621332004-09-08 20:38:05 +00004231rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004232
4233if test $ac_cv_header_stdc = yes; then
4234 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4235 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004236#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004237/* confdefs.h. */
4238_ACEOF
4239cat confdefs.h >>conftest.$ac_ext
4240cat >>conftest.$ac_ext <<_ACEOF
4241/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004242#include <string.h>
4243
4244_ACEOF
4245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004246 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004247 :
4248else
4249 ac_cv_header_stdc=no
4250fi
4251rm -f conftest*
4252
4253fi
4254
4255if test $ac_cv_header_stdc = yes; then
4256 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4257 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004258#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004259/* confdefs.h. */
4260_ACEOF
4261cat confdefs.h >>conftest.$ac_ext
4262cat >>conftest.$ac_ext <<_ACEOF
4263/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004264#include <stdlib.h>
4265
4266_ACEOF
4267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004268 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004269 :
4270else
4271 ac_cv_header_stdc=no
4272fi
4273rm -f conftest*
4274
4275fi
4276
4277if test $ac_cv_header_stdc = yes; then
4278 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4279 if test "$cross_compiling" = yes; then
4280 :
4281else
4282 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004283#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004284/* confdefs.h. */
4285_ACEOF
4286cat confdefs.h >>conftest.$ac_ext
4287cat >>conftest.$ac_ext <<_ACEOF
4288/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004289#include <ctype.h>
4290#if ((' ' & 0x0FF) == 0x020)
4291# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4292# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4293#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004294# define ISLOWER(c) \
Brian Gaeke0a621332004-09-08 20:38:05 +00004295 (('a' <= (c) && (c) <= 'i') \
4296 || ('j' <= (c) && (c) <= 'r') \
4297 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004298# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4299#endif
4300
4301#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4302int
4303main ()
4304{
4305 int i;
4306 for (i = 0; i < 256; i++)
4307 if (XOR (islower (i), ISLOWER (i))
Brian Gaeke0a621332004-09-08 20:38:05 +00004308 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00004309 exit(2);
4310 exit (0);
4311}
4312_ACEOF
4313rm -f conftest$ac_exeext
4314if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4315 (eval $ac_link) 2>&5
4316 ac_status=$?
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4320 (eval $ac_try) 2>&5
4321 ac_status=$?
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); }; }; then
4324 :
4325else
4326 echo "$as_me: program exited with status $ac_status" >&5
4327echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004328sed 's/^/| /' conftest.$ac_ext >&5
4329
John Criswell7a73b802003-06-30 21:59:07 +00004330( exit $ac_status )
4331ac_cv_header_stdc=no
4332fi
Brian Gaeke0a621332004-09-08 20:38:05 +00004333rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004334fi
4335fi
4336fi
4337echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4338echo "${ECHO_T}$ac_cv_header_stdc" >&6
4339if test $ac_cv_header_stdc = yes; then
4340
4341cat >>confdefs.h <<\_ACEOF
4342#define STDC_HEADERS 1
4343_ACEOF
4344
4345fi
4346
4347# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Brian Gaeke0a621332004-09-08 20:38:05 +00004358 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00004359do
4360as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4361echo "$as_me:$LINENO: checking for $ac_header" >&5
4362echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4363if eval "test \"\${$as_ac_Header+set}\" = set"; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365else
4366 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004367#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004368/* confdefs.h. */
4369_ACEOF
4370cat confdefs.h >>conftest.$ac_ext
4371cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004373$ac_includes_default
4374
4375#include <$ac_header>
4376_ACEOF
4377rm -f conftest.$ac_objext
4378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00004379 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004380 ac_status=$?
4381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4382 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00004383 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4385 (eval $ac_try) 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; }; then
4389 eval "$as_ac_Header=yes"
4390else
4391 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004392sed 's/^/| /' conftest.$ac_ext >&5
4393
John Criswell7a73b802003-06-30 21:59:07 +00004394eval "$as_ac_Header=no"
4395fi
Brian Gaeke0a621332004-09-08 20:38:05 +00004396rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004397fi
4398echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4399echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4400if test `eval echo '${'$as_ac_Header'}'` = yes; then
4401 cat >>confdefs.h <<_ACEOF
4402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4403_ACEOF
4404
4405fi
4406
4407done
4408
4409
4410
4411for ac_header in dlfcn.h
4412do
4413as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Brian Gaeke0a621332004-09-08 20:38:05 +00004414if eval "test \"\${$as_ac_Header+set}\" = set"; then
4415 echo "$as_me:$LINENO: checking for $ac_header" >&5
John Criswell7a73b802003-06-30 21:59:07 +00004416echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4417if eval "test \"\${$as_ac_Header+set}\" = set"; then
4418 echo $ECHO_N "(cached) $ECHO_C" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00004419fi
4420echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4421echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
John Criswell7a73b802003-06-30 21:59:07 +00004422else
Brian Gaeke0a621332004-09-08 20:38:05 +00004423 # Is the header compilable?
4424echo "$as_me:$LINENO: checking $ac_header usability" >&5
4425echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4426cat >conftest.$ac_ext <<_ACEOF
4427#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004428/* confdefs.h. */
4429_ACEOF
4430cat confdefs.h >>conftest.$ac_ext
4431cat >>conftest.$ac_ext <<_ACEOF
4432/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004433$ac_includes_default
4434#include <$ac_header>
4435_ACEOF
4436rm -f conftest.$ac_objext
4437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00004438 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004439 ac_status=$?
4440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4441 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00004442 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4444 (eval $ac_try) 2>&5
4445 ac_status=$?
4446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4447 (exit $ac_status); }; }; then
Brian Gaeke0a621332004-09-08 20:38:05 +00004448 ac_header_compiler=yes
John Criswell7a73b802003-06-30 21:59:07 +00004449else
4450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004451sed 's/^/| /' conftest.$ac_ext >&5
4452
Brian Gaeke0a621332004-09-08 20:38:05 +00004453ac_header_compiler=no
John Criswell7a73b802003-06-30 21:59:07 +00004454fi
Brian Gaeke0a621332004-09-08 20:38:05 +00004455rm -f conftest.$ac_objext conftest.$ac_ext
4456echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4457echo "${ECHO_T}$ac_header_compiler" >&6
4458
4459# Is the header present?
4460echo "$as_me:$LINENO: checking $ac_header presence" >&5
4461echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4462cat >conftest.$ac_ext <<_ACEOF
4463#line $LINENO "configure"
4464/* confdefs.h. */
4465_ACEOF
4466cat confdefs.h >>conftest.$ac_ext
4467cat >>conftest.$ac_ext <<_ACEOF
4468/* end confdefs.h. */
4469#include <$ac_header>
4470_ACEOF
4471if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4472 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4473 ac_status=$?
4474 grep -v '^ *+' conftest.er1 >conftest.err
4475 rm -f conftest.er1
4476 cat conftest.err >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); } >/dev/null; then
4479 if test -s conftest.err; then
4480 ac_cpp_err=$ac_c_preproc_warn_flag
4481 else
4482 ac_cpp_err=
4483 fi
4484else
4485 ac_cpp_err=yes
4486fi
4487if test -z "$ac_cpp_err"; then
4488 ac_header_preproc=yes
4489else
4490 echo "$as_me: failed program was:" >&5
4491sed 's/^/| /' conftest.$ac_ext >&5
4492
4493 ac_header_preproc=no
4494fi
4495rm -f conftest.err conftest.$ac_ext
4496echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4497echo "${ECHO_T}$ac_header_preproc" >&6
4498
4499# So? What about this header?
4500case $ac_header_compiler:$ac_header_preproc in
4501 yes:no )
4502 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4503echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4504 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4505echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4506 (
4507 cat <<\_ASBOX
4508## ------------------------------------ ##
4509## Report this to bug-autoconf@gnu.org. ##
4510## ------------------------------------ ##
4511_ASBOX
4512 ) |
4513 sed "s/^/$as_me: WARNING: /" >&2
4514 ;;
4515 no:yes )
4516 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4517echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4518 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4519echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4520 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4521echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4522 (
4523 cat <<\_ASBOX
4524## ------------------------------------ ##
4525## Report this to bug-autoconf@gnu.org. ##
4526## ------------------------------------ ##
4527_ASBOX
4528 ) |
4529 sed "s/^/$as_me: WARNING: /" >&2
4530 ;;
4531esac
4532echo "$as_me:$LINENO: checking for $ac_header" >&5
4533echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4534if eval "test \"\${$as_ac_Header+set}\" = set"; then
4535 echo $ECHO_N "(cached) $ECHO_C" >&6
4536else
4537 eval "$as_ac_Header=$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00004538fi
4539echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4540echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Brian Gaeke0a621332004-09-08 20:38:05 +00004541
4542fi
John Criswell7a73b802003-06-30 21:59:07 +00004543if test `eval echo '${'$as_ac_Header'}'` = yes; then
4544 cat >>confdefs.h <<_ACEOF
4545#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4546_ACEOF
4547
4548fi
4549
4550done
4551
John Criswell47fdd832003-07-14 16:52:07 +00004552ac_ext=cc
4553ac_cpp='$CXXCPP $CPPFLAGS'
4554ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4555ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4557echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4558echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4559if test -z "$CXXCPP"; then
4560 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562else
John Criswell47fdd832003-07-14 16:52:07 +00004563 # Double quotes because CXXCPP needs to be expanded
4564 for CXXCPP in "$CXX -E" "/lib/cpp"
4565 do
4566 ac_preproc_ok=false
4567for ac_cxx_preproc_warn_flag in '' yes
4568do
4569 # Use a header file that comes with gcc, so configuring glibc
4570 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4572 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004573 # On the NeXT, cc -E runs the code through the compiler's parser,
4574 # not just through cpp. "Syntax error" is here to catch this case.
4575 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004576#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004577/* confdefs.h. */
4578_ACEOF
4579cat confdefs.h >>conftest.$ac_ext
4580cat >>conftest.$ac_ext <<_ACEOF
4581/* end confdefs.h. */
4582#ifdef __STDC__
4583# include <limits.h>
4584#else
4585# include <assert.h>
4586#endif
Brian Gaeke0a621332004-09-08 20:38:05 +00004587 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004588_ACEOF
4589if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4591 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004592 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004593 rm -f conftest.er1
4594 cat conftest.err >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); } >/dev/null; then
4597 if test -s conftest.err; then
4598 ac_cpp_err=$ac_cxx_preproc_warn_flag
John Criswell7a73b802003-06-30 21:59:07 +00004599 else
John Criswell47fdd832003-07-14 16:52:07 +00004600 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004601 fi
John Criswell47fdd832003-07-14 16:52:07 +00004602else
4603 ac_cpp_err=yes
4604fi
4605if test -z "$ac_cpp_err"; then
4606 :
4607else
4608 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004609sed 's/^/| /' conftest.$ac_ext >&5
4610
John Criswell47fdd832003-07-14 16:52:07 +00004611 # Broken: fails on valid input.
4612continue
4613fi
4614rm -f conftest.err conftest.$ac_ext
4615
4616 # OK, works on sane cases. Now check whether non-existent headers
4617 # can be detected and how.
4618 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004619#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004620/* confdefs.h. */
4621_ACEOF
4622cat confdefs.h >>conftest.$ac_ext
4623cat >>conftest.$ac_ext <<_ACEOF
4624/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004625#include <ac_nonexistent.h>
4626_ACEOF
4627if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4628 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4629 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004630 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004631 rm -f conftest.er1
4632 cat conftest.err >&5
4633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4634 (exit $ac_status); } >/dev/null; then
4635 if test -s conftest.err; then
4636 ac_cpp_err=$ac_cxx_preproc_warn_flag
4637 else
4638 ac_cpp_err=
4639 fi
4640else
4641 ac_cpp_err=yes
4642fi
4643if test -z "$ac_cpp_err"; then
4644 # Broken: success on invalid input.
4645continue
4646else
4647 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004648sed 's/^/| /' conftest.$ac_ext >&5
4649
John Criswell47fdd832003-07-14 16:52:07 +00004650 # Passes both tests.
4651ac_preproc_ok=:
4652break
4653fi
4654rm -f conftest.err conftest.$ac_ext
4655
4656done
4657# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4658rm -f conftest.err conftest.$ac_ext
4659if $ac_preproc_ok; then
4660 break
John Criswell7a73b802003-06-30 21:59:07 +00004661fi
4662
John Criswell47fdd832003-07-14 16:52:07 +00004663 done
4664 ac_cv_prog_CXXCPP=$CXXCPP
4665
4666fi
4667 CXXCPP=$ac_cv_prog_CXXCPP
4668else
4669 ac_cv_prog_CXXCPP=$CXXCPP
4670fi
4671echo "$as_me:$LINENO: result: $CXXCPP" >&5
4672echo "${ECHO_T}$CXXCPP" >&6
4673ac_preproc_ok=false
4674for ac_cxx_preproc_warn_flag in '' yes
4675do
4676 # Use a header file that comes with gcc, so configuring glibc
4677 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004678 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4679 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004680 # On the NeXT, cc -E runs the code through the compiler's parser,
4681 # not just through cpp. "Syntax error" is here to catch this case.
4682 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004683#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004684/* confdefs.h. */
4685_ACEOF
4686cat confdefs.h >>conftest.$ac_ext
4687cat >>conftest.$ac_ext <<_ACEOF
4688/* end confdefs.h. */
4689#ifdef __STDC__
4690# include <limits.h>
4691#else
4692# include <assert.h>
4693#endif
Brian Gaeke0a621332004-09-08 20:38:05 +00004694 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004695_ACEOF
4696if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4698 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004699 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004700 rm -f conftest.er1
4701 cat conftest.err >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } >/dev/null; then
4704 if test -s conftest.err; then
4705 ac_cpp_err=$ac_cxx_preproc_warn_flag
4706 else
4707 ac_cpp_err=
4708 fi
4709else
4710 ac_cpp_err=yes
4711fi
4712if test -z "$ac_cpp_err"; then
4713 :
4714else
4715 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004716sed 's/^/| /' conftest.$ac_ext >&5
4717
John Criswell47fdd832003-07-14 16:52:07 +00004718 # Broken: fails on valid input.
4719continue
4720fi
4721rm -f conftest.err conftest.$ac_ext
4722
4723 # OK, works on sane cases. Now check whether non-existent headers
4724 # can be detected and how.
4725 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00004726#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00004727/* confdefs.h. */
4728_ACEOF
4729cat confdefs.h >>conftest.$ac_ext
4730cat >>conftest.$ac_ext <<_ACEOF
4731/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004732#include <ac_nonexistent.h>
4733_ACEOF
4734if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4735 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4736 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004737 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004738 rm -f conftest.er1
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } >/dev/null; then
4742 if test -s conftest.err; then
4743 ac_cpp_err=$ac_cxx_preproc_warn_flag
4744 else
4745 ac_cpp_err=
4746 fi
4747else
4748 ac_cpp_err=yes
4749fi
4750if test -z "$ac_cpp_err"; then
4751 # Broken: success on invalid input.
4752continue
4753else
4754 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004755sed 's/^/| /' conftest.$ac_ext >&5
4756
John Criswell47fdd832003-07-14 16:52:07 +00004757 # Passes both tests.
4758ac_preproc_ok=:
4759break
4760fi
4761rm -f conftest.err conftest.$ac_ext
4762
4763done
4764# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4765rm -f conftest.err conftest.$ac_ext
4766if $ac_preproc_ok; then
4767 :
4768else
John Criswell0c38eaf2003-09-10 15:17:25 +00004769 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4770See \`config.log' for more details." >&5
4771echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4772See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004773 { (exit 1); exit 1; }; }
4774fi
4775
4776ac_ext=cc
4777ac_cpp='$CXXCPP $CPPFLAGS'
4778ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4779ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4780ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4781
4782
4783ac_ext=f
4784ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4785ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4786ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4787if test -n "$ac_tool_prefix"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00004788 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
John Criswell47fdd832003-07-14 16:52:07 +00004789 do
4790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4791set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4792echo "$as_me:$LINENO: checking for $ac_word" >&5
4793echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4794if test "${ac_cv_prog_F77+set}" = set; then
4795 echo $ECHO_N "(cached) $ECHO_C" >&6
4796else
4797 if test -n "$F77"; then
4798 ac_cv_prog_F77="$F77" # Let the user override the test.
4799else
4800as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4801for as_dir in $PATH
4802do
4803 IFS=$as_save_IFS
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4807 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4808 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4809 break 2
4810 fi
4811done
4812done
4813
4814fi
4815fi
4816F77=$ac_cv_prog_F77
4817if test -n "$F77"; then
4818 echo "$as_me:$LINENO: result: $F77" >&5
4819echo "${ECHO_T}$F77" >&6
4820else
4821 echo "$as_me:$LINENO: result: no" >&5
4822echo "${ECHO_T}no" >&6
4823fi
4824
4825 test -n "$F77" && break
4826 done
4827fi
4828if test -z "$F77"; then
4829 ac_ct_F77=$F77
Brian Gaeke0a621332004-09-08 20:38:05 +00004830 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
John Criswell47fdd832003-07-14 16:52:07 +00004831do
4832 # Extract the first word of "$ac_prog", so it can be a program name with args.
4833set dummy $ac_prog; ac_word=$2
4834echo "$as_me:$LINENO: checking for $ac_word" >&5
4835echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4836if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838else
4839 if test -n "$ac_ct_F77"; then
4840 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4841else
4842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843for as_dir in $PATH
4844do
4845 IFS=$as_save_IFS
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4849 ac_cv_prog_ac_ct_F77="$ac_prog"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4851 break 2
4852 fi
4853done
4854done
4855
4856fi
4857fi
4858ac_ct_F77=$ac_cv_prog_ac_ct_F77
4859if test -n "$ac_ct_F77"; then
4860 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4861echo "${ECHO_T}$ac_ct_F77" >&6
4862else
4863 echo "$as_me:$LINENO: result: no" >&5
4864echo "${ECHO_T}no" >&6
4865fi
4866
4867 test -n "$ac_ct_F77" && break
4868done
4869
4870 F77=$ac_ct_F77
4871fi
4872
4873
4874# Provide some information about the compiler.
Brian Gaeke0a621332004-09-08 20:38:05 +00004875echo "$as_me:4875:" \
John Criswell47fdd832003-07-14 16:52:07 +00004876 "checking for Fortran 77 compiler version" >&5
4877ac_compiler=`set X $ac_compile; echo $2`
4878{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4879 (eval $ac_compiler --version </dev/null >&5) 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }
4883{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4884 (eval $ac_compiler -v </dev/null >&5) 2>&5
4885 ac_status=$?
4886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4887 (exit $ac_status); }
4888{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4889 (eval $ac_compiler -V </dev/null >&5) 2>&5
4890 ac_status=$?
4891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892 (exit $ac_status); }
4893
4894# If we don't use `.F' as extension, the preprocessor is not run on the
Brian Gaeke0a621332004-09-08 20:38:05 +00004895# input file.
John Criswell47fdd832003-07-14 16:52:07 +00004896ac_save_ext=$ac_ext
4897ac_ext=F
4898echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4899echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4900if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4901 echo $ECHO_N "(cached) $ECHO_C" >&6
4902else
4903 cat >conftest.$ac_ext <<_ACEOF
4904 program main
4905#ifndef __GNUC__
4906 choke me
4907#endif
4908
4909 end
4910_ACEOF
4911rm -f conftest.$ac_objext
4912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00004913 (eval $ac_compile) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +00004914 ac_status=$?
4915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00004917 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00004918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4919 (eval $ac_try) 2>&5
4920 ac_status=$?
4921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4922 (exit $ac_status); }; }; then
4923 ac_compiler_gnu=yes
4924else
4925 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004926sed 's/^/| /' conftest.$ac_ext >&5
4927
John Criswell47fdd832003-07-14 16:52:07 +00004928ac_compiler_gnu=no
4929fi
Brian Gaeke0a621332004-09-08 20:38:05 +00004930rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004931ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4932
4933fi
4934echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4935echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4936ac_ext=$ac_save_ext
Brian Gaeke0a621332004-09-08 20:38:05 +00004937G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00004938ac_test_FFLAGS=${FFLAGS+set}
4939ac_save_FFLAGS=$FFLAGS
4940FFLAGS=
4941echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4942echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4943if test "${ac_cv_prog_f77_g+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4945else
4946 FFLAGS=-g
4947cat >conftest.$ac_ext <<_ACEOF
4948 program main
4949
4950 end
4951_ACEOF
4952rm -f conftest.$ac_objext
4953if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00004954 (eval $ac_compile) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +00004955 ac_status=$?
4956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4957 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00004958 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00004959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4960 (eval $ac_try) 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; }; then
4964 ac_cv_prog_f77_g=yes
4965else
4966 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004967sed 's/^/| /' conftest.$ac_ext >&5
4968
John Criswell47fdd832003-07-14 16:52:07 +00004969ac_cv_prog_f77_g=no
4970fi
Brian Gaeke0a621332004-09-08 20:38:05 +00004971rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004972
4973fi
4974echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4975echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4976if test "$ac_test_FFLAGS" = set; then
4977 FFLAGS=$ac_save_FFLAGS
4978elif test $ac_cv_prog_f77_g = yes; then
Brian Gaeke0a621332004-09-08 20:38:05 +00004979 if test "$G77" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00004980 FFLAGS="-g -O2"
4981 else
4982 FFLAGS="-g"
4983 fi
4984else
Brian Gaeke0a621332004-09-08 20:38:05 +00004985 if test "$G77" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00004986 FFLAGS="-O2"
4987 else
4988 FFLAGS=
4989 fi
4990fi
4991ac_ext=c
4992ac_cpp='$CPP $CPPFLAGS'
4993ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4994ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4995ac_compiler_gnu=$ac_cv_c_compiler_gnu
4996
4997
4998
4999# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5000
5001# find the maximum length of command line arguments
5002echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5003echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5004if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006else
5007 i=0
5008 testring="ABCD"
5009
5010 case $build_os in
5011 msdosdjgpp*)
5012 # On DJGPP, this test can blow up pretty badly due to problems in libc
5013 # (any single argument exceeding 2000 bytes causes a buffer overrun
5014 # during glob expansion). Even if it were fixed, the result of this
5015 # check would be larger than it should be.
5016 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5017 ;;
5018
5019 gnu*)
5020 # Under GNU Hurd, this test is not required because there is
5021 # no limit to the length of command line arguments.
5022 # Libtool will interpret -1 as no limit whatsoever
5023 lt_cv_sys_max_cmd_len=-1;
5024 ;;
5025
5026 cygwin* | mingw*)
5027 # On Win9x/ME, this test blows up -- it succeeds, but takes
5028 # about 5 minutes as the teststring grows exponentially.
5029 # Worse, since 9x/ME are not pre-emptively multitasking,
5030 # you end up with a "frozen" computer, even though with patience
5031 # the test eventually succeeds (with a max line length of 256k).
5032 # Instead, let's just punt: use the minimum linelength reported by
5033 # all of the supported platforms: 8192 (on NT/2K/XP).
5034 lt_cv_sys_max_cmd_len=8192;
5035 ;;
5036
5037 *)
5038 # If test is not a shell built-in, we'll probably end up computing a
5039 # maximum length that is only half of the actual maximum length, but
5040 # we can't tell.
5041 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5042 = "XX$testring") >/dev/null 2>&1 &&
5043 new_result=`expr "X$testring" : ".*" 2>&1` &&
5044 lt_cv_sys_max_cmd_len=$new_result &&
5045 test $i != 17 # 1/2 MB should be enough
5046 do
5047 i=`expr $i + 1`
5048 testring=$testring$testring
5049 done
5050 testring=
5051 # Add a significant safety factor because C++ compilers can tack on massive
5052 # amounts of additional arguments before passing them to the linker.
5053 # It appears as though 1/2 is a usable value.
5054 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5055 ;;
5056 esac
5057
5058fi
5059
5060if test -n $lt_cv_sys_max_cmd_len ; then
5061 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5062echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5063else
5064 echo "$as_me:$LINENO: result: none" >&5
5065echo "${ECHO_T}none" >&6
5066fi
5067
5068
5069
5070
5071# Check for command to grab the raw symbol name followed by C symbol from nm.
5072echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5073echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5074if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076else
5077
5078# These are sane defaults that work on at least a few old systems.
5079# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5080
5081# Character class describing NM global symbol codes.
5082symcode='[BCDEGRST]'
5083
5084# Regexp to match symbols that can be accessed directly from C.
5085sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5086
5087# Transform the above into a raw symbol and a C symbol.
5088symxfrm='\1 \2\3 \3'
5089
5090# Transform an extracted symbol line into a proper C declaration
5091lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5092
5093# Transform an extracted symbol line into symbol name and symbol address
5094lt_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'"
5095
5096# Define system-specific variables.
5097case $host_os in
5098aix*)
5099 symcode='[BCDT]'
5100 ;;
5101cygwin* | mingw* | pw32*)
5102 symcode='[ABCDGISTW]'
5103 ;;
5104hpux*) # Its linker distinguishes data from code symbols
5105 if test "$host_cpu" = ia64; then
5106 symcode='[ABCDEGRST]'
5107 fi
5108 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5109 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'"
5110 ;;
5111irix* | nonstopux*)
5112 symcode='[BCDEGRST]'
5113 ;;
5114osf*)
5115 symcode='[BCDEGQRST]'
5116 ;;
5117solaris* | sysv5*)
5118 symcode='[BDT]'
5119 ;;
5120sysv4)
5121 symcode='[DFNSTU]'
5122 ;;
5123esac
5124
5125# Handle CRLF in mingw tool chain
5126opt_cr=
5127case $build_os in
5128mingw*)
5129 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5130 ;;
5131esac
5132
5133# If we're using GNU nm, then use its standard symbol codes.
5134case `$NM -V 2>&1` in
5135*GNU* | *'with BFD'*)
5136 symcode='[ABCDGISTW]' ;;
5137esac
5138
5139# Try without a prefix undercore, then with it.
5140for ac_symprfx in "" "_"; do
5141
5142 # Write the raw and C identifiers.
5143 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5144
5145 # Check to see that the pipe works correctly.
5146 pipe_works=no
5147
5148 rm -f conftest*
5149 cat > conftest.$ac_ext <<EOF
5150#ifdef __cplusplus
5151extern "C" {
5152#endif
5153char nm_test_var;
5154void nm_test_func(){}
5155#ifdef __cplusplus
5156}
5157#endif
5158int main(){nm_test_var='a';nm_test_func();return(0);}
5159EOF
5160
5161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5162 (eval $ac_compile) 2>&5
5163 ac_status=$?
5164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5165 (exit $ac_status); }; then
5166 # Now try to grab the symbols.
5167 nlist=conftest.nm
5168 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5169 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5170 ac_status=$?
5171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172 (exit $ac_status); } && test -s "$nlist"; then
5173 # Try sorting and uniquifying the output.
5174 if sort "$nlist" | uniq > "$nlist"T; then
5175 mv -f "$nlist"T "$nlist"
5176 else
5177 rm -f "$nlist"T
5178 fi
5179
5180 # Make sure that we snagged all the symbols we need.
5181 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5182 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5183 cat <<EOF > conftest.$ac_ext
5184#ifdef __cplusplus
5185extern "C" {
5186#endif
5187
5188EOF
5189 # Now generate the symbol file.
5190 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5191
5192 cat <<EOF >> conftest.$ac_ext
5193#if defined (__STDC__) && __STDC__
5194# define lt_ptr_t void *
5195#else
5196# define lt_ptr_t char *
5197# define const
5198#endif
5199
5200/* The mapping between symbol names and symbols. */
5201const struct {
5202 const char *name;
5203 lt_ptr_t address;
5204}
5205lt_preloaded_symbols[] =
5206{
5207EOF
5208 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5209 cat <<\EOF >> conftest.$ac_ext
5210 {0, (lt_ptr_t) 0}
5211};
5212
5213#ifdef __cplusplus
5214}
5215#endif
5216EOF
5217 # Now try linking the two files.
5218 mv conftest.$ac_objext conftstm.$ac_objext
5219 lt_save_LIBS="$LIBS"
5220 lt_save_CFLAGS="$CFLAGS"
5221 LIBS="conftstm.$ac_objext"
5222 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5224 (eval $ac_link) 2>&5
5225 ac_status=$?
5226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5227 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5228 pipe_works=yes
5229 fi
5230 LIBS="$lt_save_LIBS"
5231 CFLAGS="$lt_save_CFLAGS"
5232 else
5233 echo "cannot find nm_test_func in $nlist" >&5
5234 fi
5235 else
5236 echo "cannot find nm_test_var in $nlist" >&5
5237 fi
5238 else
5239 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5240 fi
5241 else
5242 echo "$progname: failed program was:" >&5
5243 cat conftest.$ac_ext >&5
5244 fi
5245 rm -f conftest* conftst*
5246
5247 # Do not use the global_symbol_pipe unless it works.
5248 if test "$pipe_works" = yes; then
5249 break
5250 else
5251 lt_cv_sys_global_symbol_pipe=
5252 fi
5253done
5254
5255fi
5256
5257if test -z "$lt_cv_sys_global_symbol_pipe"; then
5258 lt_cv_sys_global_symbol_to_cdecl=
5259fi
5260if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5261 echo "$as_me:$LINENO: result: failed" >&5
5262echo "${ECHO_T}failed" >&6
5263else
5264 echo "$as_me:$LINENO: result: ok" >&5
5265echo "${ECHO_T}ok" >&6
5266fi
5267
5268echo "$as_me:$LINENO: checking for objdir" >&5
5269echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5270if test "${lt_cv_objdir+set}" = set; then
5271 echo $ECHO_N "(cached) $ECHO_C" >&6
5272else
5273 rm -f .libs 2>/dev/null
5274mkdir .libs 2>/dev/null
5275if test -d .libs; then
5276 lt_cv_objdir=.libs
5277else
5278 # MS-DOS does not allow filenames that begin with a dot.
5279 lt_cv_objdir=_libs
5280fi
5281rmdir .libs 2>/dev/null
5282fi
5283echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5284echo "${ECHO_T}$lt_cv_objdir" >&6
5285objdir=$lt_cv_objdir
5286
5287
5288
5289
5290
5291case $host_os in
5292aix3*)
5293 # AIX sometimes has problems with the GCC collect2 program. For some
5294 # reason, if we set the COLLECT_NAMES environment variable, the problems
5295 # vanish in a puff of smoke.
5296 if test "X${COLLECT_NAMES+set}" != Xset; then
5297 COLLECT_NAMES=
5298 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005299 fi
5300 ;;
5301esac
5302
John Criswell47fdd832003-07-14 16:52:07 +00005303# Sed substitution that helps us do robust quoting. It backslashifies
5304# metacharacters that are still active within double-quoted strings.
5305Xsed='sed -e s/^X//'
5306sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5307
5308# Same as above, but do not quote variable references.
5309double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5310
5311# Sed substitution to delay expansion of an escaped shell variable in a
5312# double_quote_subst'ed string.
5313delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5314
Brian Gaeke0a621332004-09-08 20:38:05 +00005315# Sed substitution to undo escaping of the cmd sep variable
5316unescape_variable_subst='s/\\\(${_S_}\)/\1/g'
5317
John Criswell47fdd832003-07-14 16:52:07 +00005318# Sed substitution to avoid accidental globbing in evaled expressions
5319no_glob_subst='s/\*/\\\*/g'
5320
5321# Constants:
5322rm="rm -f"
5323
5324# Global variables:
Reid Spencer9751dbf2004-09-07 18:04:45 +00005325default_ofile=libtool
John Criswell47fdd832003-07-14 16:52:07 +00005326can_build_shared=yes
5327
5328# All known linkers require a `.a' archive for static linking (except M$VC,
5329# which needs '.lib').
5330libext=a
5331ltmain="$ac_aux_dir/ltmain.sh"
5332ofile="$default_ofile"
5333with_gnu_ld="$lt_cv_prog_gnu_ld"
5334
5335if test -n "$ac_tool_prefix"; then
5336 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5337set dummy ${ac_tool_prefix}ar; ac_word=$2
5338echo "$as_me:$LINENO: checking for $ac_word" >&5
5339echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5340if test "${ac_cv_prog_AR+set}" = set; then
5341 echo $ECHO_N "(cached) $ECHO_C" >&6
5342else
5343 if test -n "$AR"; then
5344 ac_cv_prog_AR="$AR" # Let the user override the test.
5345else
5346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347for as_dir in $PATH
5348do
5349 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5353 ac_cv_prog_AR="${ac_tool_prefix}ar"
5354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2
5356 fi
5357done
5358done
5359
5360fi
5361fi
5362AR=$ac_cv_prog_AR
5363if test -n "$AR"; then
5364 echo "$as_me:$LINENO: result: $AR" >&5
5365echo "${ECHO_T}$AR" >&6
5366else
5367 echo "$as_me:$LINENO: result: no" >&5
5368echo "${ECHO_T}no" >&6
5369fi
5370
5371fi
5372if test -z "$ac_cv_prog_AR"; then
5373 ac_ct_AR=$AR
5374 # Extract the first word of "ar", so it can be a program name with args.
5375set dummy ar; ac_word=$2
5376echo "$as_me:$LINENO: checking for $ac_word" >&5
5377echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5378if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5379 echo $ECHO_N "(cached) $ECHO_C" >&6
5380else
5381 if test -n "$ac_ct_AR"; then
5382 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5383else
5384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385for as_dir in $PATH
5386do
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5391 ac_cv_prog_ac_ct_AR="ar"
5392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5394 fi
5395done
5396done
5397
5398 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5399fi
5400fi
5401ac_ct_AR=$ac_cv_prog_ac_ct_AR
5402if test -n "$ac_ct_AR"; then
5403 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5404echo "${ECHO_T}$ac_ct_AR" >&6
5405else
5406 echo "$as_me:$LINENO: result: no" >&5
5407echo "${ECHO_T}no" >&6
5408fi
5409
5410 AR=$ac_ct_AR
5411else
5412 AR="$ac_cv_prog_AR"
5413fi
5414
John Criswell7a73b802003-06-30 21:59:07 +00005415if test -n "$ac_tool_prefix"; then
5416 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5417set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5418echo "$as_me:$LINENO: checking for $ac_word" >&5
5419echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5420if test "${ac_cv_prog_RANLIB+set}" = set; then
5421 echo $ECHO_N "(cached) $ECHO_C" >&6
5422else
5423 if test -n "$RANLIB"; then
5424 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5425else
5426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5427for as_dir in $PATH
5428do
5429 IFS=$as_save_IFS
5430 test -z "$as_dir" && as_dir=.
5431 for ac_exec_ext in '' $ac_executable_extensions; do
5432 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5433 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 break 2
5436 fi
5437done
5438done
5439
5440fi
5441fi
5442RANLIB=$ac_cv_prog_RANLIB
5443if test -n "$RANLIB"; then
5444 echo "$as_me:$LINENO: result: $RANLIB" >&5
5445echo "${ECHO_T}$RANLIB" >&6
5446else
5447 echo "$as_me:$LINENO: result: no" >&5
5448echo "${ECHO_T}no" >&6
5449fi
5450
5451fi
5452if test -z "$ac_cv_prog_RANLIB"; then
5453 ac_ct_RANLIB=$RANLIB
5454 # Extract the first word of "ranlib", so it can be a program name with args.
5455set dummy ranlib; ac_word=$2
5456echo "$as_me:$LINENO: checking for $ac_word" >&5
5457echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5458if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5459 echo $ECHO_N "(cached) $ECHO_C" >&6
5460else
5461 if test -n "$ac_ct_RANLIB"; then
5462 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5463else
5464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH
5466do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_exec_ext in '' $ac_executable_extensions; do
5470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5471 ac_cv_prog_ac_ct_RANLIB="ranlib"
5472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5473 break 2
5474 fi
5475done
5476done
5477
5478 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5479fi
5480fi
5481ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5482if test -n "$ac_ct_RANLIB"; then
5483 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5484echo "${ECHO_T}$ac_ct_RANLIB" >&6
5485else
5486 echo "$as_me:$LINENO: result: no" >&5
5487echo "${ECHO_T}no" >&6
5488fi
5489
5490 RANLIB=$ac_ct_RANLIB
5491else
5492 RANLIB="$ac_cv_prog_RANLIB"
5493fi
5494
5495if test -n "$ac_tool_prefix"; then
5496 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5497set dummy ${ac_tool_prefix}strip; ac_word=$2
5498echo "$as_me:$LINENO: checking for $ac_word" >&5
5499echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5500if test "${ac_cv_prog_STRIP+set}" = set; then
5501 echo $ECHO_N "(cached) $ECHO_C" >&6
5502else
5503 if test -n "$STRIP"; then
5504 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5505else
5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507for as_dir in $PATH
5508do
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_exec_ext in '' $ac_executable_extensions; do
5512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5513 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5515 break 2
5516 fi
5517done
5518done
5519
5520fi
5521fi
5522STRIP=$ac_cv_prog_STRIP
5523if test -n "$STRIP"; then
5524 echo "$as_me:$LINENO: result: $STRIP" >&5
5525echo "${ECHO_T}$STRIP" >&6
5526else
5527 echo "$as_me:$LINENO: result: no" >&5
5528echo "${ECHO_T}no" >&6
5529fi
5530
5531fi
5532if test -z "$ac_cv_prog_STRIP"; then
5533 ac_ct_STRIP=$STRIP
5534 # Extract the first word of "strip", so it can be a program name with args.
5535set dummy strip; ac_word=$2
5536echo "$as_me:$LINENO: checking for $ac_word" >&5
5537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541 if test -n "$ac_ct_STRIP"; then
5542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5543else
5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547 IFS=$as_save_IFS
5548 test -z "$as_dir" && as_dir=.
5549 for ac_exec_ext in '' $ac_executable_extensions; do
5550 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551 ac_cv_prog_ac_ct_STRIP="strip"
5552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553 break 2
5554 fi
5555done
5556done
5557
5558 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5559fi
5560fi
5561ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5562if test -n "$ac_ct_STRIP"; then
5563 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5564echo "${ECHO_T}$ac_ct_STRIP" >&6
5565else
5566 echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6
5568fi
5569
5570 STRIP=$ac_ct_STRIP
5571else
5572 STRIP="$ac_cv_prog_STRIP"
5573fi
5574
5575
John Criswell7a73b802003-06-30 21:59:07 +00005576old_CC="$CC"
5577old_CFLAGS="$CFLAGS"
5578
5579# Set sane defaults for various variables
5580test -z "$AR" && AR=ar
5581test -z "$AR_FLAGS" && AR_FLAGS=cru
5582test -z "$AS" && AS=as
5583test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005584test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005585test -z "$DLLTOOL" && DLLTOOL=dlltool
5586test -z "$LD" && LD=ld
5587test -z "$LN_S" && LN_S="ln -s"
5588test -z "$MAGIC_CMD" && MAGIC_CMD=file
5589test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005590test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005591test -z "$OBJDUMP" && OBJDUMP=objdump
5592test -z "$RANLIB" && RANLIB=:
5593test -z "$STRIP" && STRIP=:
5594test -z "$ac_objext" && ac_objext=o
5595
John Criswell7a73b802003-06-30 21:59:07 +00005596# Determine commands to create old-style static archives.
5597old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5598old_postinstall_cmds='chmod 644 $oldlib'
5599old_postuninstall_cmds=
5600
5601if test -n "$RANLIB"; then
5602 case $host_os in
5603 openbsd*)
Brian Gaeke0a621332004-09-08 20:38:05 +00005604 old_postinstall_cmds="\$RANLIB -t \$oldlib\${_S_}$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00005605 ;;
5606 *)
Brian Gaeke0a621332004-09-08 20:38:05 +00005607 old_postinstall_cmds="\$RANLIB \$oldlib\${_S_}$old_postinstall_cmds"
John Criswell7a73b802003-06-30 21:59:07 +00005608 ;;
5609 esac
Brian Gaeke0a621332004-09-08 20:38:05 +00005610 old_archive_cmds="$old_archive_cmds\${_S_}\$RANLIB \$oldlib"
John Criswell7a73b802003-06-30 21:59:07 +00005611fi
5612
John Criswell47fdd832003-07-14 16:52:07 +00005613# Only perform the check for file, if the check method requires it
5614case $deplibs_check_method in
5615file_magic*)
5616 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5617 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5618echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5619if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5620 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005621else
John Criswell47fdd832003-07-14 16:52:07 +00005622 case $MAGIC_CMD in
5623[\\/*] | ?:[\\/]*)
5624 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5625 ;;
5626*)
5627 lt_save_MAGIC_CMD="$MAGIC_CMD"
5628 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5629 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5630 for ac_dir in $ac_dummy; do
5631 IFS="$lt_save_ifs"
5632 test -z "$ac_dir" && ac_dir=.
5633 if test -f $ac_dir/${ac_tool_prefix}file; then
5634 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5635 if test -n "$file_magic_test_file"; then
5636 case $deplibs_check_method in
5637 "file_magic "*)
5638 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5639 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5640 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5641 $EGREP "$file_magic_regex" > /dev/null; then
5642 :
5643 else
5644 cat <<EOF 1>&2
5645
5646*** Warning: the command libtool uses to detect shared libraries,
5647*** $file_magic_cmd, produces output that libtool cannot recognize.
5648*** The result is that libtool may fail to recognize shared libraries
5649*** as such. This will affect the creation of libtool libraries that
5650*** depend on shared libraries, but programs linked with such libtool
5651*** libraries will work regardless of this problem. Nevertheless, you
5652*** may want to report the problem to your system manager and/or to
5653*** bug-libtool@gnu.org
5654
5655EOF
5656 fi ;;
5657 esac
5658 fi
5659 break
5660 fi
5661 done
5662 IFS="$lt_save_ifs"
5663 MAGIC_CMD="$lt_save_MAGIC_CMD"
5664 ;;
5665esac
John Criswell7a73b802003-06-30 21:59:07 +00005666fi
John Criswell7a73b802003-06-30 21:59:07 +00005667
John Criswell47fdd832003-07-14 16:52:07 +00005668MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5669if test -n "$MAGIC_CMD"; then
5670 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5671echo "${ECHO_T}$MAGIC_CMD" >&6
5672else
5673 echo "$as_me:$LINENO: result: no" >&5
5674echo "${ECHO_T}no" >&6
5675fi
John Criswell7a73b802003-06-30 21:59:07 +00005676
John Criswell47fdd832003-07-14 16:52:07 +00005677if test -z "$lt_cv_path_MAGIC_CMD"; then
5678 if test -n "$ac_tool_prefix"; then
5679 echo "$as_me:$LINENO: checking for file" >&5
5680echo $ECHO_N "checking for file... $ECHO_C" >&6
5681if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683else
5684 case $MAGIC_CMD in
5685[\\/*] | ?:[\\/]*)
5686 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5687 ;;
5688*)
5689 lt_save_MAGIC_CMD="$MAGIC_CMD"
5690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5691 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5692 for ac_dir in $ac_dummy; do
5693 IFS="$lt_save_ifs"
5694 test -z "$ac_dir" && ac_dir=.
5695 if test -f $ac_dir/file; then
5696 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5697 if test -n "$file_magic_test_file"; then
5698 case $deplibs_check_method in
5699 "file_magic "*)
5700 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5701 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5702 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5703 $EGREP "$file_magic_regex" > /dev/null; then
5704 :
5705 else
5706 cat <<EOF 1>&2
5707
5708*** Warning: the command libtool uses to detect shared libraries,
5709*** $file_magic_cmd, produces output that libtool cannot recognize.
5710*** The result is that libtool may fail to recognize shared libraries
5711*** as such. This will affect the creation of libtool libraries that
5712*** depend on shared libraries, but programs linked with such libtool
5713*** libraries will work regardless of this problem. Nevertheless, you
5714*** may want to report the problem to your system manager and/or to
5715*** bug-libtool@gnu.org
5716
5717EOF
5718 fi ;;
5719 esac
5720 fi
5721 break
5722 fi
5723 done
5724 IFS="$lt_save_ifs"
5725 MAGIC_CMD="$lt_save_MAGIC_CMD"
5726 ;;
5727esac
5728fi
5729
5730MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5731if test -n "$MAGIC_CMD"; then
5732 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5733echo "${ECHO_T}$MAGIC_CMD" >&6
5734else
5735 echo "$as_me:$LINENO: result: no" >&5
5736echo "${ECHO_T}no" >&6
5737fi
5738
5739 else
5740 MAGIC_CMD=:
5741 fi
5742fi
5743
5744 fi
5745 ;;
5746esac
5747
5748enable_dlopen=no
5749enable_win32_dll=no
5750
5751# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5752if test "${enable_libtool_lock+set}" = set; then
5753 enableval="$enable_libtool_lock"
5754
5755fi;
5756test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5757
John Criswell7a73b802003-06-30 21:59:07 +00005758
5759# Check whether --with-pic or --without-pic was given.
5760if test "${with_pic+set}" = set; then
5761 withval="$with_pic"
5762 pic_mode="$withval"
5763else
5764 pic_mode=default
5765fi;
5766test -z "$pic_mode" && pic_mode=default
5767
John Criswell47fdd832003-07-14 16:52:07 +00005768# Use C for the default configuration in the libtool script
5769tagname=
5770lt_save_CC="$CC"
5771ac_ext=c
5772ac_cpp='$CPP $CPPFLAGS'
5773ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5774ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5775ac_compiler_gnu=$ac_cv_c_compiler_gnu
5776
5777
5778# Source file extension for C test sources.
5779ac_ext=c
5780
5781# Object file extension for compiled C test sources.
5782objext=o
5783objext=$objext
5784
5785# Code to be used in simple compile tests
5786lt_simple_compile_test_code="int some_variable = 0;\n"
5787
5788# Code to be used in simple link tests
5789lt_simple_link_test_code='int main(){return(0);}\n'
5790
5791
5792# If no C compiler was specified, use CC.
5793LTCC=${LTCC-"$CC"}
5794
5795# Allow CC to be a program name with arguments.
5796compiler=$CC
5797
5798
5799#
5800# Check for any special shared library compilation flags.
5801#
5802lt_prog_cc_shlib=
5803if test "$GCC" = no; then
5804 case $host_os in
5805 sco3.2v5*)
5806 lt_prog_cc_shlib='-belf'
5807 ;;
5808 esac
5809fi
5810if test -n "$lt_prog_cc_shlib"; then
5811 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5812echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5813 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5814 else
5815 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5816echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5817 lt_cv_prog_cc_can_build_shared=no
5818 fi
5819fi
5820
5821
5822#
5823# Check to make sure the static flag actually works.
5824#
5825echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5826echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5827if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00005828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829else
John Criswell47fdd832003-07-14 16:52:07 +00005830 lt_prog_compiler_static_works=no
5831 save_LDFLAGS="$LDFLAGS"
5832 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5833 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5834 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5835 # The compiler can only warn and ignore the option if not recognized
5836 # So say no if there are warnings
5837 if test -s conftest.err; then
5838 # Append any errors to the config.log.
5839 cat conftest.err 1>&5
5840 else
5841 lt_prog_compiler_static_works=yes
5842 fi
5843 fi
5844 $rm conftest*
5845 LDFLAGS="$save_LDFLAGS"
5846
5847fi
5848echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5849echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5850
5851if test x"$lt_prog_compiler_static_works" = xyes; then
5852 :
5853else
5854 lt_prog_compiler_static=
5855fi
5856
5857
5858
John Criswell47fdd832003-07-14 16:52:07 +00005859
5860lt_prog_compiler_no_builtin_flag=
5861
5862if test "$GCC" = yes; then
5863 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5864
Brian Gaeke0a621332004-09-08 20:38:05 +00005865 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005866echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5867if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5869else
5870 lt_cv_prog_compiler_rtti_exceptions=no
5871 ac_outfile=conftest.$ac_objext
5872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5873 lt_compiler_flag="-fno-rtti -fno-exceptions"
5874 # Insert the option either (1) after the last *FLAGS variable, or
5875 # (2) before a word containing "conftest.", or (3) at the end.
5876 # Note that $ac_compile itself does not contain backslashes and begins
5877 # with a dollar sign (not a hyphen), so the echo should work correctly.
5878 # The option is referenced via a variable to avoid confusing sed.
5879 lt_compile=`echo "$ac_compile" | $SED \
5880 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5882 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke0a621332004-09-08 20:38:05 +00005883 (eval echo "\"\$as_me:5883: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00005884 (eval "$lt_compile" 2>conftest.err)
5885 ac_status=$?
5886 cat conftest.err >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00005887 echo "$as_me:5887: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00005888 if (exit $ac_status) && test -s "$ac_outfile"; then
5889 # The compiler can only warn and ignore the option if not recognized
5890 # So say no if there are warnings
5891 if test ! -s conftest.err; then
5892 lt_cv_prog_compiler_rtti_exceptions=yes
5893 fi
5894 fi
5895 $rm conftest*
5896
5897fi
5898echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5899echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5900
5901if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5902 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5903else
5904 :
5905fi
5906
5907fi
5908
5909lt_prog_compiler_wl=
5910lt_prog_compiler_pic=
5911lt_prog_compiler_static=
5912
5913echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5914echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005915
5916 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00005917 lt_prog_compiler_wl='-Wl,'
5918 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00005919
5920 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005921 aix*)
5922 # All AIX code is PIC.
5923 if test "$host_cpu" = ia64; then
5924 # AIX 5 now supports IA64 processor
5925 lt_prog_compiler_static='-Bstatic'
5926 fi
John Criswell7a73b802003-06-30 21:59:07 +00005927 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005928
John Criswell7a73b802003-06-30 21:59:07 +00005929 amigaos*)
5930 # FIXME: we need at least 68020 code to build shared libraries, but
5931 # adding the `-m68020' flag to GCC prevents building anything better,
5932 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00005933 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00005934 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005935
5936 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00005937 # PIC is the default for these OSes.
5938 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005939
5940 mingw* | pw32* | os2*)
5941 # This hack is so that the source file can tell whether it is being
5942 # built for inclusion in a dll (and should export symbols for example).
5943 lt_prog_compiler_pic='-DDLL_EXPORT'
5944 ;;
5945
John Criswell7a73b802003-06-30 21:59:07 +00005946 darwin* | rhapsody*)
5947 # PIC is the default on this platform
5948 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00005949 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00005950 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005951
5952 msdosdjgpp*)
5953 # Just because we use GCC doesn't mean we suddenly get shared libraries
5954 # on systems that don't support them.
5955 lt_prog_compiler_can_build_shared=no
5956 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00005957 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005958
John Criswell7a73b802003-06-30 21:59:07 +00005959 sysv4*MP*)
5960 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00005961 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00005962 fi
5963 ;;
John Criswell47fdd832003-07-14 16:52:07 +00005964
5965 hpux*)
5966 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5967 # not for PA HP-UX.
5968 case "$host_cpu" in
5969 hppa*64*|ia64*)
5970 # +Z the default
5971 ;;
5972 *)
5973 lt_prog_compiler_pic='-fPIC'
5974 ;;
5975 esac
5976 ;;
5977
John Criswell7a73b802003-06-30 21:59:07 +00005978 *)
John Criswell47fdd832003-07-14 16:52:07 +00005979 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00005980 ;;
5981 esac
5982 else
John Criswell47fdd832003-07-14 16:52:07 +00005983 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00005984 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00005985 aix*)
5986 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00005987 if test "$host_cpu" = ia64; then
5988 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00005989 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00005990 else
John Criswell47fdd832003-07-14 16:52:07 +00005991 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00005992 fi
5993 ;;
5994
John Criswell47fdd832003-07-14 16:52:07 +00005995 mingw* | pw32* | os2*)
5996 # This hack is so that the source file can tell whether it is being
5997 # built for inclusion in a dll (and should export symbols for example).
5998 lt_prog_compiler_pic='-DDLL_EXPORT'
5999 ;;
6000
John Criswell7a73b802003-06-30 21:59:07 +00006001 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006002 lt_prog_compiler_wl='-Wl,'
6003 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6004 # not for PA HP-UX.
6005 case "$host_cpu" in
6006 hppa*64*|ia64*)
6007 # +Z the default
6008 ;;
6009 *)
6010 lt_prog_compiler_pic='+Z'
6011 ;;
6012 esac
6013 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6014 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006015 ;;
6016
John Criswell47fdd832003-07-14 16:52:07 +00006017 irix5* | irix6* | nonstopux*)
6018 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006019 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006020 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006021 ;;
6022
6023 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006024 lt_prog_compiler_pic='-KPIC'
6025 lt_prog_compiler_static='-Bstatic'
6026 ;;
6027
6028 linux*)
6029 case $CC in
Brian Gaeke0a621332004-09-08 20:38:05 +00006030 icc|ecc)
John Criswell47fdd832003-07-14 16:52:07 +00006031 lt_prog_compiler_wl='-Wl,'
6032 lt_prog_compiler_pic='-KPIC'
6033 lt_prog_compiler_static='-static'
6034 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +00006035 ccc)
John Criswell47fdd832003-07-14 16:52:07 +00006036 lt_prog_compiler_wl='-Wl,'
6037 # All Alpha code is PIC.
6038 lt_prog_compiler_static='-non_shared'
6039 ;;
6040 esac
John Criswell7a73b802003-06-30 21:59:07 +00006041 ;;
6042
6043 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006044 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006045 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006046 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006047 ;;
6048
6049 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006050 lt_prog_compiler_pic='-Kpic'
6051 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006052 ;;
6053
6054 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006055 lt_prog_compiler_wl='-Wl,'
6056 lt_prog_compiler_pic='-KPIC'
6057 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006058 ;;
6059
6060 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006061 lt_prog_compiler_wl='-Qoption ld '
6062 lt_prog_compiler_pic='-PIC'
6063 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006064 ;;
6065
6066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006067 lt_prog_compiler_wl='-Wl,'
6068 lt_prog_compiler_pic='-KPIC'
6069 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006070 ;;
6071
6072 sysv4*MP*)
6073 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006074 lt_prog_compiler_pic='-Kconform_pic'
6075 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006076 fi
6077 ;;
6078
John Criswell47fdd832003-07-14 16:52:07 +00006079 uts4*)
6080 lt_prog_compiler_pic='-pic'
6081 lt_prog_compiler_static='-Bstatic'
6082 ;;
6083
John Criswell7a73b802003-06-30 21:59:07 +00006084 *)
John Criswell47fdd832003-07-14 16:52:07 +00006085 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006086 ;;
6087 esac
6088 fi
6089
John Criswell47fdd832003-07-14 16:52:07 +00006090echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6091echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006092
John Criswell47fdd832003-07-14 16:52:07 +00006093#
6094# Check to make sure the PIC flag actually works.
6095#
6096if test -n "$lt_prog_compiler_pic"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006097 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006098echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6099if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101else
John Criswell47fdd832003-07-14 16:52:07 +00006102 lt_prog_compiler_pic_works=no
6103 ac_outfile=conftest.$ac_objext
6104 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6105 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6106 # Insert the option either (1) after the last *FLAGS variable, or
6107 # (2) before a word containing "conftest.", or (3) at the end.
6108 # Note that $ac_compile itself does not contain backslashes and begins
6109 # with a dollar sign (not a hyphen), so the echo should work correctly.
6110 # The option is referenced via a variable to avoid confusing sed.
6111 lt_compile=`echo "$ac_compile" | $SED \
6112 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6113 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6114 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke0a621332004-09-08 20:38:05 +00006115 (eval echo "\"\$as_me:6115: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006116 (eval "$lt_compile" 2>conftest.err)
6117 ac_status=$?
6118 cat conftest.err >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00006119 echo "$as_me:6119: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006120 if (exit $ac_status) && test -s "$ac_outfile"; then
6121 # The compiler can only warn and ignore the option if not recognized
6122 # So say no if there are warnings
6123 if test ! -s conftest.err; then
6124 lt_prog_compiler_pic_works=yes
6125 fi
6126 fi
6127 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006128
John Criswell47fdd832003-07-14 16:52:07 +00006129fi
6130echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6131echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006132
John Criswell47fdd832003-07-14 16:52:07 +00006133if test x"$lt_prog_compiler_pic_works" = xyes; then
6134 case $lt_prog_compiler_pic in
6135 "" | " "*) ;;
6136 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6137 esac
John Criswell7a73b802003-06-30 21:59:07 +00006138else
John Criswell47fdd832003-07-14 16:52:07 +00006139 lt_prog_compiler_pic=
6140 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006141fi
6142
John Criswell7a73b802003-06-30 21:59:07 +00006143fi
John Criswell47fdd832003-07-14 16:52:07 +00006144case "$host_os" in
6145 # For platforms which do not support PIC, -DPIC is meaningless:
6146 *djgpp*)
6147 lt_prog_compiler_pic=
6148 ;;
6149 *)
6150 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6151 ;;
6152esac
John Criswell7a73b802003-06-30 21:59:07 +00006153
John Criswell7a73b802003-06-30 21:59:07 +00006154echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6155echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006156if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158else
John Criswell47fdd832003-07-14 16:52:07 +00006159 lt_cv_prog_compiler_c_o=no
6160 $rm -r conftest 2>/dev/null
6161 mkdir conftest
6162 cd conftest
6163 mkdir out
6164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006165
John Criswell47fdd832003-07-14 16:52:07 +00006166 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6167 # that will create temporary files in the current directory regardless of
6168 # the output directory. Thus, making CWD read-only will cause this test
6169 # to fail, enabling locking or at least warning the user not to do parallel
6170 # builds.
6171 chmod -w .
6172
6173 lt_compiler_flag="-o out/conftest2.$ac_objext"
6174 # Insert the option either (1) after the last *FLAGS variable, or
6175 # (2) before a word containing "conftest.", or (3) at the end.
6176 # Note that $ac_compile itself does not contain backslashes and begins
6177 # with a dollar sign (not a hyphen), so the echo should work correctly.
6178 lt_compile=`echo "$ac_compile" | $SED \
6179 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6180 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6181 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke0a621332004-09-08 20:38:05 +00006182 (eval echo "\"\$as_me:6182: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006183 (eval "$lt_compile" 2>out/conftest.err)
6184 ac_status=$?
6185 cat out/conftest.err >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00006186 echo "$as_me:6186: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006187 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6188 then
6189 # The compiler can only warn and ignore the option if not recognized
6190 # So say no if there are warnings
6191 if test ! -s out/conftest.err; then
6192 lt_cv_prog_compiler_c_o=yes
6193 fi
6194 fi
6195 chmod u+w .
Brian Gaeke0a621332004-09-08 20:38:05 +00006196 $rm conftest* out/*
6197 rmdir out
John Criswell47fdd832003-07-14 16:52:07 +00006198 cd ..
6199 rmdir conftest
6200 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006201
6202fi
John Criswell47fdd832003-07-14 16:52:07 +00006203echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6204echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006205
John Criswell7a73b802003-06-30 21:59:07 +00006206
John Criswell7a73b802003-06-30 21:59:07 +00006207hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006208if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006209 # do not overwrite the value of need_locks provided by the user
6210 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6211echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6212 hard_links=yes
6213 $rm conftest*
6214 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6215 touch conftest.a
6216 ln conftest.a conftest.b 2>&5 || hard_links=no
6217 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6218 echo "$as_me:$LINENO: result: $hard_links" >&5
6219echo "${ECHO_T}$hard_links" >&6
6220 if test "$hard_links" = no; then
6221 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6222echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6223 need_locks=warn
6224 fi
6225else
6226 need_locks=no
6227fi
John Criswell7a73b802003-06-30 21:59:07 +00006228
John Criswell47fdd832003-07-14 16:52:07 +00006229echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6230echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6231
6232 runpath_var=
6233 allow_undefined_flag=
6234 enable_shared_with_static_runtimes=no
6235 archive_cmds=
6236 archive_expsym_cmds=
6237 old_archive_From_new_cmds=
6238 old_archive_from_expsyms_cmds=
6239 export_dynamic_flag_spec=
6240 whole_archive_flag_spec=
6241 thread_safe_flag_spec=
6242 hardcode_libdir_flag_spec=
6243 hardcode_libdir_flag_spec_ld=
6244 hardcode_libdir_separator=
6245 hardcode_direct=no
6246 hardcode_minus_L=no
6247 hardcode_shlibpath_var=unsupported
6248 link_all_deplibs=unknown
6249 hardcode_automatic=no
6250 module_cmds=
6251 module_expsym_cmds=
6252 always_export_symbols=no
6253 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6254 # include_expsyms should be a list of space-separated symbols to be *always*
6255 # included in the symbol list
6256 include_expsyms=
6257 # exclude_expsyms can be an extended regexp of symbols to exclude
6258 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6259 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6260 # as well as any symbol that contains `d'.
6261 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6262 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6263 # platforms (ab)use it in PIC code, but their linkers get confused if
6264 # the symbol is explicitly referenced. Since portable code cannot
6265 # rely on this symbol name, it's probably fine to never include it in
6266 # preloaded symbol tables.
6267 extract_expsyms_cmds=
6268
6269 case $host_os in
6270 cygwin* | mingw* | pw32*)
6271 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6272 # When not using gcc, we currently assume that we are using
6273 # Microsoft Visual C++.
6274 if test "$GCC" != yes; then
6275 with_gnu_ld=no
6276 fi
6277 ;;
6278 openbsd*)
6279 with_gnu_ld=no
6280 ;;
6281 esac
6282
6283 ld_shlibs=yes
6284 if test "$with_gnu_ld" = yes; then
6285 # If archive_cmds runs LD, not CC, wlarc should be empty
6286 wlarc='${wl}'
6287
6288 # See if GNU ld supports shared libraries.
6289 case $host_os in
6290 aix3* | aix4* | aix5*)
6291 # On AIX/PPC, the GNU linker is very broken
6292 if test "$host_cpu" != ia64; then
6293 ld_shlibs=no
6294 cat <<EOF 1>&2
6295
6296*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6297*** to be unable to reliably create shared libraries on AIX.
6298*** Therefore, libtool is disabling shared libraries support. If you
6299*** really care for shared libraries, you may want to modify your PATH
6300*** so that a non-GNU linker is found, and then restart.
6301
6302EOF
6303 fi
6304 ;;
6305
6306 amigaos*)
Brian Gaeke0a621332004-09-08 20:38:05 +00006307 archive_cmds='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +00006308 hardcode_libdir_flag_spec='-L$libdir'
6309 hardcode_minus_L=yes
6310
6311 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6312 # that the semantics of dynamic libraries on AmigaOS, at least up
6313 # to version 4, is to share data among multiple programs linked
6314 # with the same dynamic library. Since this doesn't match the
6315 # behavior of shared libraries on other platforms, we can't use
6316 # them.
6317 ld_shlibs=no
6318 ;;
6319
6320 beos*)
6321 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6322 allow_undefined_flag=unsupported
6323 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6324 # support --undefined. This deserves some investigation. FIXME
6325 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6326 else
6327 ld_shlibs=no
6328 fi
6329 ;;
6330
6331 cygwin* | mingw* | pw32*)
6332 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6333 # as there is no search path for DLLs.
6334 hardcode_libdir_flag_spec='-L$libdir'
6335 allow_undefined_flag=unsupported
6336 always_export_symbols=no
6337 enable_shared_with_static_runtimes=yes
6338 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6339
6340 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6341 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6342 # If the export-symbols file already is a .def file (1st line
6343 # is EXPORTS), use it as is; otherwise, prepend...
6344 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6345 cp $export_symbols $output_objdir/$soname.def;
6346 else
6347 echo EXPORTS > $output_objdir/$soname.def;
6348 cat $export_symbols >> $output_objdir/$soname.def;
Brian Gaeke0a621332004-09-08 20:38:05 +00006349 fi${_S_}
John Criswell47fdd832003-07-14 16:52:07 +00006350 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6351 else
6352 ld_shlibs=no
6353 fi
6354 ;;
6355
6356 netbsd*)
6357 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6358 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6359 wlarc=
6360 else
6361 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6362 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6363 fi
6364 ;;
6365
6366 solaris* | sysv5*)
6367 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6368 ld_shlibs=no
6369 cat <<EOF 1>&2
6370
6371*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6372*** create shared libraries on Solaris systems. Therefore, libtool
6373*** is disabling shared libraries support. We urge you to upgrade GNU
6374*** binutils to release 2.9.1 or newer. Another option is to modify
6375*** your PATH or compiler configuration so that the native linker is
6376*** used, and then restart.
6377
6378EOF
6379 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6380 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6381 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6382 else
6383 ld_shlibs=no
6384 fi
6385 ;;
6386
6387 sunos4*)
6388 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6389 wlarc=
6390 hardcode_direct=yes
6391 hardcode_shlibpath_var=no
6392 ;;
6393
6394 *)
6395 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6396 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6397 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6398 else
6399 ld_shlibs=no
6400 fi
6401 ;;
6402 esac
6403
6404 if test "$ld_shlibs" = yes; then
6405 runpath_var=LD_RUN_PATH
6406 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6407 export_dynamic_flag_spec='${wl}--export-dynamic'
6408 # ancient GNU ld didn't support --whole-archive et. al.
6409 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6410 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6411 else
6412 whole_archive_flag_spec=
6413 fi
6414 fi
6415 else
6416 # PORTME fill in a description of your system's linker (not GNU ld)
6417 case $host_os in
6418 aix3*)
6419 allow_undefined_flag=unsupported
6420 always_export_symbols=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00006421 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +00006422 # Note: this linker hardcodes the directories in LIBPATH if there
6423 # are no directories specified by -L.
6424 hardcode_minus_L=yes
6425 if test "$GCC" = yes && test -z "$link_static_flag"; then
6426 # Neither direct hardcoding nor static linking is supported with a
6427 # broken collect2.
6428 hardcode_direct=unsupported
6429 fi
6430 ;;
6431
6432 aix4* | aix5*)
6433 if test "$host_cpu" = ia64; then
6434 # On IA64, the linker does run time linking by default, so we don't
6435 # have to do anything special.
6436 aix_use_runtimelinking=no
6437 exp_sym_flag='-Bexport'
6438 no_entry_flag=""
6439 else
6440 # If we're using GNU nm, then we don't want the "-C" option.
6441 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6442 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6443 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'
6444 else
6445 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'
6446 fi
6447 aix_use_runtimelinking=no
6448
6449 # Test if we are trying to use run time linking or normal
6450 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6451 # need to do runtime linking.
6452 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6453 for ld_flag in $LDFLAGS; do
6454 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6455 aix_use_runtimelinking=yes
6456 break
6457 fi
6458 done
6459 esac
6460
6461 exp_sym_flag='-bexport'
6462 no_entry_flag='-bnoentry'
6463 fi
6464
6465 # When large executables or shared objects are built, AIX ld can
6466 # have problems creating the table of contents. If linking a library
6467 # or program results in "error TOC overflow" add -mminimal-toc to
6468 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6469 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6470
6471 archive_cmds=''
6472 hardcode_direct=yes
6473 hardcode_libdir_separator=':'
6474 link_all_deplibs=yes
6475
6476 if test "$GCC" = yes; then
6477 case $host_os in aix4.012|aix4.012.*)
6478 # We only want to do this on AIX 4.2 and lower, the check
6479 # below for broken collect2 doesn't work under 4.3+
6480 collect2name=`${CC} -print-prog-name=collect2`
6481 if test -f "$collect2name" && \
6482 strings "$collect2name" | grep resolve_lib_name >/dev/null
6483 then
6484 # We have reworked collect2
6485 hardcode_direct=yes
6486 else
6487 # We have old collect2
6488 hardcode_direct=unsupported
6489 # It fails to find uninstalled libraries when the uninstalled
6490 # path is not listed in the libpath. Setting hardcode_minus_L
6491 # to unsupported forces relinking
6492 hardcode_minus_L=yes
6493 hardcode_libdir_flag_spec='-L$libdir'
6494 hardcode_libdir_separator=
6495 fi
6496 esac
6497 shared_flag='-shared'
6498 else
6499 # not using gcc
6500 if test "$host_cpu" = ia64; then
6501 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6502 # chokes on -Wl,-G. The following line is correct:
6503 shared_flag='-G'
6504 else
6505 if test "$aix_use_runtimelinking" = yes; then
6506 shared_flag='${wl}-G'
6507 else
6508 shared_flag='${wl}-bM:SRE'
6509 fi
6510 fi
6511 fi
6512
6513 # It seems that -bexpall does not export symbols beginning with
6514 # underscore (_), so it is better to generate a list of symbols to export.
6515 always_export_symbols=yes
6516 if test "$aix_use_runtimelinking" = yes; then
6517 # Warning - without using the other runtime loading flags (-brtl),
6518 # -berok will link without error, but may produce a broken library.
6519 allow_undefined_flag='-berok'
6520 # Determine the default libpath from the value encoded in an empty executable.
6521 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006522#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006523/* confdefs.h. */
6524_ACEOF
6525cat confdefs.h >>conftest.$ac_ext
6526cat >>conftest.$ac_ext <<_ACEOF
6527/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006528
John Criswell7a73b802003-06-30 21:59:07 +00006529int
6530main ()
6531{
John Criswell47fdd832003-07-14 16:52:07 +00006532
John Criswell7a73b802003-06-30 21:59:07 +00006533 ;
6534 return 0;
6535}
6536_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006537rm -f conftest.$ac_objext conftest$ac_exeext
6538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00006539 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00006540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00006543 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6545 (eval $ac_try) 2>&5
6546 ac_status=$?
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006549
John Criswell47fdd832003-07-14 16:52:07 +00006550aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6551}'`
6552# Check for a 64-bit object if we didn't find anything.
6553if 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; }
6554}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006555else
6556 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006557sed 's/^/| /' conftest.$ac_ext >&5
6558
John Criswell7a73b802003-06-30 21:59:07 +00006559fi
Brian Gaeke0a621332004-09-08 20:38:05 +00006560rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006561if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006562
John Criswell47fdd832003-07-14 16:52:07 +00006563 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6564 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"
6565 else
6566 if test "$host_cpu" = ia64; then
6567 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6568 allow_undefined_flag="-z nodefs"
6569 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"
6570 else
6571 # Determine the default libpath from the value encoded in an empty executable.
6572 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00006573#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00006574/* confdefs.h. */
6575_ACEOF
6576cat confdefs.h >>conftest.$ac_ext
6577cat >>conftest.$ac_ext <<_ACEOF
6578/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006579
John Criswell47fdd832003-07-14 16:52:07 +00006580int
6581main ()
6582{
John Criswell7a73b802003-06-30 21:59:07 +00006583
John Criswell47fdd832003-07-14 16:52:07 +00006584 ;
6585 return 0;
6586}
6587_ACEOF
6588rm -f conftest.$ac_objext conftest$ac_exeext
6589if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00006590 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +00006591 ac_status=$?
6592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6593 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00006594 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6596 (eval $ac_try) 2>&5
6597 ac_status=$?
6598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6599 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006600
John Criswell47fdd832003-07-14 16:52:07 +00006601aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6602}'`
6603# Check for a 64-bit object if we didn't find anything.
6604if 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; }
6605}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006606else
John Criswell47fdd832003-07-14 16:52:07 +00006607 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006608sed 's/^/| /' conftest.$ac_ext >&5
6609
John Criswell47fdd832003-07-14 16:52:07 +00006610fi
Brian Gaeke0a621332004-09-08 20:38:05 +00006611rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006612if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006613
John Criswell47fdd832003-07-14 16:52:07 +00006614 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6615 # Warning - without using the other run time loading flags,
6616 # -berok will link without error, but may produce a broken library.
6617 no_undefined_flag=' ${wl}-bernotok'
6618 allow_undefined_flag=' ${wl}-berok'
6619 # -bexpall does not export symbols beginning with underscore (_)
6620 always_export_symbols=yes
6621 # Exported symbols can be pulled into shared objects from archives
6622 whole_archive_flag_spec=' '
6623 archive_cmds_need_lc=yes
6624 # This is similar to how AIX traditionally builds it's shared libraries.
Brian Gaeke0a621332004-09-08 20:38:05 +00006625 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell7a73b802003-06-30 21:59:07 +00006626 fi
6627 fi
John Criswell7a73b802003-06-30 21:59:07 +00006628 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006629
6630 amigaos*)
Brian Gaeke0a621332004-09-08 20:38:05 +00006631 archive_cmds='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +00006632 hardcode_libdir_flag_spec='-L$libdir'
6633 hardcode_minus_L=yes
6634 # see comment about different semantics on the GNU ld section
6635 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006636 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006637
John Criswell47fdd832003-07-14 16:52:07 +00006638 bsdi4*)
6639 export_dynamic_flag_spec=-rdynamic
6640 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006641
John Criswell47fdd832003-07-14 16:52:07 +00006642 cygwin* | mingw* | pw32*)
6643 # When not using gcc, we currently assume that we are using
6644 # Microsoft Visual C++.
6645 # hardcode_libdir_flag_spec is actually meaningless, as there is
6646 # no search path for DLLs.
6647 hardcode_libdir_flag_spec=' '
6648 allow_undefined_flag=unsupported
6649 # Tell ltmain to make .lib files, not .a files.
6650 libext=lib
6651 # Tell ltmain to make .dll files, not .so files.
6652 shrext=".dll"
6653 # FIXME: Setting linknames here is a bad hack.
Brian Gaeke0a621332004-09-08 20:38:05 +00006654 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
John Criswell47fdd832003-07-14 16:52:07 +00006655 # The linker will automatically build a .lib file if we build a DLL.
6656 old_archive_From_new_cmds='true'
6657 # FIXME: Should let the user specify the lib program.
6658 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6659 fix_srcfile_path='`cygpath -w "$srcfile"`'
6660 enable_shared_with_static_runtimes=yes
6661 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006662
John Criswell47fdd832003-07-14 16:52:07 +00006663 darwin* | rhapsody*)
Brian Gaeke0a621332004-09-08 20:38:05 +00006664 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
John Criswell47fdd832003-07-14 16:52:07 +00006665 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006666 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006667 rhapsody* | darwin1.[012])
6668 allow_undefined_flag='-undefined suppress'
6669 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +00006670 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
6671 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6672 ;;
6673 *) # Darwin 7.0 on
6674 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
6675 10.[012])
6676 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
6677 ;;
6678 *) # 10.3 on
6679 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
6680 allow_undefined_flag='-flat_namespace -undefined suppress'
6681 else
6682 allow_undefined_flag='-undefined dynamic_lookup'
6683 fi
6684 ;;
6685 esac
John Criswell7a73b802003-06-30 21:59:07 +00006686 ;;
6687 esac
Brian Gaeke0a621332004-09-08 20:38:05 +00006688 # FIXME: Relying on posixy $() will cause problems for
6689 # cross-compilation, but unfortunately the echo tests do not
6690 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6691 # `"' quotes if we put them in here... so don't!
John Criswell47fdd832003-07-14 16:52:07 +00006692 lt_int_apple_cc_single_mod=no
6693 output_verbose_link_cmd='echo'
6694 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6695 lt_int_apple_cc_single_mod=yes
6696 fi
6697 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006698 archive_cmds='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
John Criswell47fdd832003-07-14 16:52:07 +00006699 else
Brian Gaeke0a621332004-09-08 20:38:05 +00006700 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
John Criswell47fdd832003-07-14 16:52:07 +00006701 fi
Brian Gaeke0a621332004-09-08 20:38:05 +00006702 module_cmds='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006703 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6704 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006705 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
John Criswell47fdd832003-07-14 16:52:07 +00006706 else
Brian Gaeke0a621332004-09-08 20:38:05 +00006707 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
John Criswell47fdd832003-07-14 16:52:07 +00006708 fi
Brian Gaeke0a621332004-09-08 20:38:05 +00006709 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
John Criswell47fdd832003-07-14 16:52:07 +00006710 hardcode_direct=no
6711 hardcode_automatic=yes
6712 hardcode_shlibpath_var=unsupported
6713 whole_archive_flag_spec='-all_load $convenience'
6714 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006715 fi
John Criswell47fdd832003-07-14 16:52:07 +00006716 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006717
John Criswell47fdd832003-07-14 16:52:07 +00006718 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006719 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006720 hardcode_libdir_flag_spec='-L$libdir'
6721 hardcode_shlibpath_var=no
6722 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006723
John Criswell47fdd832003-07-14 16:52:07 +00006724 freebsd1*)
6725 ld_shlibs=no
6726 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006727
John Criswell47fdd832003-07-14 16:52:07 +00006728 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6729 # support. Future versions do this automatically, but an explicit c++rt0.o
6730 # does not break anything, and helps significantly (at the cost of a little
6731 # extra space).
6732 freebsd2.2*)
6733 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6734 hardcode_libdir_flag_spec='-R$libdir'
6735 hardcode_direct=yes
6736 hardcode_shlibpath_var=no
6737 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006738
John Criswell47fdd832003-07-14 16:52:07 +00006739 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6740 freebsd2*)
6741 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6742 hardcode_direct=yes
6743 hardcode_minus_L=yes
6744 hardcode_shlibpath_var=no
6745 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006746
John Criswell47fdd832003-07-14 16:52:07 +00006747 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Brian Gaeke0a621332004-09-08 20:38:05 +00006748 freebsd*)
John Criswell47fdd832003-07-14 16:52:07 +00006749 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6750 hardcode_libdir_flag_spec='-R$libdir'
6751 hardcode_direct=yes
6752 hardcode_shlibpath_var=no
6753 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006754
John Criswell47fdd832003-07-14 16:52:07 +00006755 hpux9*)
6756 if test "$GCC" = yes; then
Brian Gaeke0a621332004-09-08 20:38:05 +00006757 archive_cmds='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +00006758 else
Brian Gaeke0a621332004-09-08 20:38:05 +00006759 archive_cmds='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +00006760 fi
6761 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6762 hardcode_libdir_separator=:
6763 hardcode_direct=yes
6764
6765 # hardcode_minus_L: Not really in the search PATH,
6766 # but as the default location of the library.
6767 hardcode_minus_L=yes
6768 export_dynamic_flag_spec='${wl}-E'
6769 ;;
6770
6771 hpux10* | hpux11*)
6772 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6773 case "$host_cpu" in
6774 hppa*64*|ia64*)
6775 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6776 ;;
6777 *)
6778 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6779 ;;
6780 esac
6781 else
6782 case "$host_cpu" in
6783 hppa*64*|ia64*)
6784 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6785 ;;
6786 *)
6787 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6788 ;;
6789 esac
6790 fi
6791 if test "$with_gnu_ld" = no; then
6792 case "$host_cpu" in
6793 hppa*64*)
6794 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6795 hardcode_libdir_flag_spec_ld='+b $libdir'
6796 hardcode_libdir_separator=:
6797 hardcode_direct=no
6798 hardcode_shlibpath_var=no
6799 ;;
6800 ia64*)
6801 hardcode_libdir_flag_spec='-L$libdir'
6802 hardcode_direct=no
6803 hardcode_shlibpath_var=no
6804
6805 # hardcode_minus_L: Not really in the search PATH,
6806 # but as the default location of the library.
6807 hardcode_minus_L=yes
6808 ;;
6809 *)
6810 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6811 hardcode_libdir_separator=:
6812 hardcode_direct=yes
6813 export_dynamic_flag_spec='${wl}-E'
6814
6815 # hardcode_minus_L: Not really in the search PATH,
6816 # but as the default location of the library.
6817 hardcode_minus_L=yes
6818 ;;
6819 esac
6820 fi
6821 ;;
6822
6823 irix5* | irix6* | nonstopux*)
6824 if test "$GCC" = yes; then
6825 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'
6826 else
6827 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'
6828 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6829 fi
6830 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6831 hardcode_libdir_separator=:
6832 link_all_deplibs=yes
6833 ;;
6834
6835 netbsd*)
6836 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6837 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6838 else
6839 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6840 fi
6841 hardcode_libdir_flag_spec='-R$libdir'
6842 hardcode_direct=yes
6843 hardcode_shlibpath_var=no
6844 ;;
6845
6846 newsos6)
6847 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6848 hardcode_direct=yes
6849 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6850 hardcode_libdir_separator=:
6851 hardcode_shlibpath_var=no
6852 ;;
6853
6854 openbsd*)
6855 hardcode_direct=yes
6856 hardcode_shlibpath_var=no
6857 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6858 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6859 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6860 export_dynamic_flag_spec='${wl}-E'
6861 else
6862 case $host_os in
6863 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6865 hardcode_libdir_flag_spec='-R$libdir'
6866 ;;
6867 *)
6868 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6869 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6870 ;;
6871 esac
6872 fi
6873 ;;
6874
6875 os2*)
6876 hardcode_libdir_flag_spec='-L$libdir'
6877 hardcode_minus_L=yes
6878 allow_undefined_flag=unsupported
Brian Gaeke0a621332004-09-08 20:38:05 +00006879 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
John Criswell47fdd832003-07-14 16:52:07 +00006880 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6881 ;;
6882
6883 osf3*)
6884 if test "$GCC" = yes; then
6885 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6886 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'
6887 else
6888 allow_undefined_flag=' -expect_unresolved \*'
6889 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'
6890 fi
6891 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6892 hardcode_libdir_separator=:
6893 ;;
6894
6895 osf4* | osf5*) # as osf3* with the addition of -msym flag
6896 if test "$GCC" = yes; then
6897 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6898 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'
6899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6900 else
6901 allow_undefined_flag=' -expect_unresolved \*'
6902 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'
Brian Gaeke0a621332004-09-08 20:38:05 +00006903 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp${_S_}
6904 $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${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +00006905
6906 # Both c and cxx compiler support -rpath directly
6907 hardcode_libdir_flag_spec='-rpath $libdir'
6908 fi
6909 hardcode_libdir_separator=:
6910 ;;
6911
6912 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00006913 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6914 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00006915 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00006916 runpath_var=LD_RUN_PATH
6917 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00006918 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006919
John Criswell47fdd832003-07-14 16:52:07 +00006920 solaris*)
6921 no_undefined_flag=' -z text'
6922 if test "$GCC" = yes; then
6923 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Brian Gaeke0a621332004-09-08 20:38:05 +00006924 archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
6925 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +00006926 else
6927 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Brian Gaeke0a621332004-09-08 20:38:05 +00006928 archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
6929 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +00006930 fi
6931 hardcode_libdir_flag_spec='-R$libdir'
6932 hardcode_shlibpath_var=no
6933 case $host_os in
6934 solaris2.[0-5] | solaris2.[0-5].*) ;;
6935 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6936 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6937 esac
6938 link_all_deplibs=yes
6939 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006940
John Criswell47fdd832003-07-14 16:52:07 +00006941 sunos4*)
6942 if test "x$host_vendor" = xsequent; then
6943 # Use $CC to link under sequent, because it throws in some extra .o
6944 # files that make .init and .fini sections work.
6945 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6946 else
6947 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6948 fi
6949 hardcode_libdir_flag_spec='-L$libdir'
6950 hardcode_direct=yes
6951 hardcode_minus_L=yes
6952 hardcode_shlibpath_var=no
6953 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006954
John Criswell47fdd832003-07-14 16:52:07 +00006955 sysv4)
6956 case $host_vendor in
6957 sni)
6958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6959 hardcode_direct=yes # is this really true???
6960 ;;
6961 siemens)
6962 ## LD is ld it makes a PLAMLIB
6963 ## CC just makes a GrossModule.
6964 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6965 reload_cmds='$CC -r -o $output$reload_objs'
6966 hardcode_direct=no
6967 ;;
6968 motorola)
6969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6970 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6971 ;;
6972 esac
6973 runpath_var='LD_RUN_PATH'
6974 hardcode_shlibpath_var=no
6975 ;;
6976
6977 sysv4.3*)
6978 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6979 hardcode_shlibpath_var=no
6980 export_dynamic_flag_spec='-Bexport'
6981 ;;
6982
6983 sysv4*MP*)
6984 if test -d /usr/nec; then
6985 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6986 hardcode_shlibpath_var=no
6987 runpath_var=LD_RUN_PATH
6988 hardcode_runpath_var=yes
6989 ld_shlibs=yes
6990 fi
6991 ;;
6992
6993 sysv4.2uw2*)
6994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6995 hardcode_direct=yes
6996 hardcode_minus_L=no
6997 hardcode_shlibpath_var=no
6998 hardcode_runpath_var=yes
6999 runpath_var=LD_RUN_PATH
7000 ;;
7001
7002 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7003 no_undefined_flag='${wl}-z ${wl}text'
7004 if test "$GCC" = yes; then
7005 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7006 else
7007 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7008 fi
7009 runpath_var='LD_RUN_PATH'
7010 hardcode_shlibpath_var=no
7011 ;;
7012
7013 sysv5*)
7014 no_undefined_flag=' -z text'
7015 # $CC -shared without GNU ld will not create a library from C++
7016 # object files and a static libstdc++, better avoid it by now
7017 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Brian Gaeke0a621332004-09-08 20:38:05 +00007018 archive_expsym_cmds='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
7019 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +00007020 hardcode_libdir_flag_spec=
7021 hardcode_shlibpath_var=no
7022 runpath_var='LD_RUN_PATH'
7023 ;;
7024
7025 uts4*)
7026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7027 hardcode_libdir_flag_spec='-L$libdir'
7028 hardcode_shlibpath_var=no
7029 ;;
7030
7031 *)
7032 ld_shlibs=no
7033 ;;
7034 esac
7035 fi
7036
John Criswell7a73b802003-06-30 21:59:07 +00007037echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7038echo "${ECHO_T}$ld_shlibs" >&6
7039test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007040
John Criswell47fdd832003-07-14 16:52:07 +00007041variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7042if test "$GCC" = yes; then
7043 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7044fi
7045
7046#
7047# Do we need to explicitly link libc?
7048#
7049case "x$archive_cmds_need_lc" in
7050x|xyes)
7051 # Assume -lc should be added
7052 archive_cmds_need_lc=yes
7053
7054 if test "$enable_shared" = yes && test "$GCC" = yes; then
7055 case $archive_cmds in
Brian Gaeke0a621332004-09-08 20:38:05 +00007056 *"$_S_"*)
John Criswell47fdd832003-07-14 16:52:07 +00007057 # FIXME: we may have to deal with multi-command sequences.
7058 ;;
7059 '$CC '*)
7060 # Test whether the compiler implicitly links with -lc since on some
7061 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7062 # to ld, don't add -lc before -lgcc.
7063 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7064echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7065 $rm conftest*
7066 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7067
7068 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7069 (eval $ac_compile) 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } 2>conftest.err; then
7073 soname=conftest
7074 lib=conftest
7075 libobjs=conftest.$ac_objext
7076 deplibs=
7077 wl=$lt_prog_compiler_wl
7078 compiler_flags=-v
7079 linker_flags=-v
7080 verstring=
7081 output_objdir=.
7082 libname=conftest
7083 lt_save_allow_undefined_flag=$allow_undefined_flag
7084 allow_undefined_flag=
7085 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7086 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); }
7090 then
7091 archive_cmds_need_lc=no
7092 else
7093 archive_cmds_need_lc=yes
7094 fi
7095 allow_undefined_flag=$lt_save_allow_undefined_flag
7096 else
7097 cat conftest.err 1>&5
7098 fi
7099 $rm conftest*
7100 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7101echo "${ECHO_T}$archive_cmds_need_lc" >&6
7102 ;;
7103 esac
7104 fi
7105 ;;
7106esac
7107
Brian Gaeke0a621332004-09-08 20:38:05 +00007108echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7109echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7110hardcode_action=
7111if test -n "$hardcode_libdir_flag_spec" || \
7112 test -n "$runpath_var " || \
7113 test "X$hardcode_automatic"="Xyes" ; then
7114
7115 # We can hardcode non-existant directories.
7116 if test "$hardcode_direct" != no &&
7117 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7118 # have to relink, otherwise we might link with an installed library
7119 # when we should be linking with a yet-to-be-installed one
7120 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7121 test "$hardcode_minus_L" != no; then
7122 # Linking always hardcodes the temporary library directory.
7123 hardcode_action=relink
7124 else
7125 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7126 hardcode_action=immediate
7127 fi
7128else
7129 # We cannot hardcode anything, or else we can only hardcode existing
7130 # directories.
7131 hardcode_action=unsupported
7132fi
7133echo "$as_me:$LINENO: result: $hardcode_action" >&5
7134echo "${ECHO_T}$hardcode_action" >&6
7135
7136if test "$hardcode_action" = relink; then
7137 # Fast installation is not supported
7138 enable_fast_install=no
7139elif test "$shlibpath_overrides_runpath" = yes ||
7140 test "$enable_shared" = no; then
7141 # Fast installation is not necessary
7142 enable_fast_install=needless
7143fi
7144
7145striplib=
7146old_striplib=
7147echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7148echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7149if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7150 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7151 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7152 echo "$as_me:$LINENO: result: yes" >&5
7153echo "${ECHO_T}yes" >&6
7154else
7155# FIXME - insert some real tests, host_os isn't really good enough
7156 case $host_os in
7157 NOT-darwin*)
7158 if test -n "$STRIP" ; then
7159 striplib="$STRIP -x"
7160 echo "$as_me:$LINENO: result: yes" >&5
7161echo "${ECHO_T}yes" >&6
7162 else
7163 echo "$as_me:$LINENO: result: no" >&5
7164echo "${ECHO_T}no" >&6
7165fi
7166 ;;
7167 *)
7168 echo "$as_me:$LINENO: result: no" >&5
7169echo "${ECHO_T}no" >&6
7170 ;;
7171 esac
7172fi
7173
John Criswell7a73b802003-06-30 21:59:07 +00007174echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7175echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7176library_names_spec=
7177libname_spec='lib$name'
7178soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007179shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007180postinstall_cmds=
7181postuninstall_cmds=
7182finish_cmds=
7183finish_eval=
7184shlibpath_var=
7185shlibpath_overrides_runpath=unknown
7186version_type=none
7187dynamic_linker="$host_os ld.so"
7188sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007189if test "$GCC" = yes; then
7190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7191 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7192 # if the path contains ";" then we assume it to be the separator
7193 # otherwise default to the standard path separator (i.e. ":") - it is
7194 # assumed that no part of a normal pathname contains ";" but that should
7195 # okay in the real world where ";" in dirpaths is itself problematic.
7196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7197 else
7198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7199 fi
7200else
7201 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7202fi
7203need_lib_prefix=unknown
7204hardcode_into_libs=no
7205
7206# when you set need_version to no, make sure it does not cause -set_version
7207# flags to be left without arguments
7208need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007209
7210case $host_os in
7211aix3*)
7212 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007214 shlibpath_var=LIBPATH
7215
John Criswell47fdd832003-07-14 16:52:07 +00007216 # AIX 3 has no versioning support, so we append a major version to the name.
7217 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007218 ;;
7219
7220aix4* | aix5*)
7221 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007222 need_lib_prefix=no
7223 need_version=no
7224 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007225 if test "$host_cpu" = ia64; then
7226 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007228 shlibpath_var=LD_LIBRARY_PATH
7229 else
7230 # With GCC up to 2.95.x, collect2 would create an import file
7231 # for dependence libraries. The import file would start with
7232 # the line `#! .'. This would cause the generated library to
7233 # depend on `.', always an invalid library. This was fixed in
7234 # development snapshots of GCC prior to 3.0.
7235 case $host_os in
7236 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7238 echo ' yes '
7239 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7240 :
7241 else
7242 can_build_shared=no
7243 fi
7244 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007245 esac
John Criswell47fdd832003-07-14 16:52:07 +00007246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7247 # soname into executable. Probably we can add versioning support to
7248 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007249 if test "$aix_use_runtimelinking" = yes; then
7250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7251 # instead of lib<name>.a to let people know that these are not
7252 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007254 else
7255 # We preserve .a as extension for shared libraries through AIX4.2
7256 # and later when we are not doing run time linking.
7257 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007258 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007259 fi
7260 shlibpath_var=LIBPATH
7261 fi
7262 ;;
7263
7264amigaos*)
7265 library_names_spec='$libname.ixlibrary $libname.a'
7266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Brian Gaeke0a621332004-09-08 20:38:05 +00007267 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
John Criswell7a73b802003-06-30 21:59:07 +00007268 ;;
7269
7270beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007271 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007272 dynamic_linker="$host_os ld.so"
7273 shlibpath_var=LIBRARY_PATH
7274 ;;
7275
7276bsdi4*)
7277 version_type=linux
7278 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7280 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007281 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7282 shlibpath_var=LD_LIBRARY_PATH
7283 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7284 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007285 # the default ld.so.conf also contains /usr/contrib/lib and
7286 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7287 # libtool to hard-code these into programs
7288 ;;
7289
7290cygwin* | mingw* | pw32*)
7291 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007292 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007293 need_version=no
7294 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007295
John Criswell7a73b802003-06-30 21:59:07 +00007296 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007297 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007298 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007299 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Brian Gaeke0a621332004-09-08 20:38:05 +00007300 postinstall_cmds='base_file=`basename \${file}`${_S_}
7301 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
7302 dldir=$destdir/`dirname \$dlpath`${_S_}
7303 test -d \$dldir || mkdir -p \$dldir${_S_}
John Criswell47fdd832003-07-14 16:52:07 +00007304 $install_prog $dir/$dlname \$dldir/$dlname'
Brian Gaeke0a621332004-09-08 20:38:05 +00007305 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
7306 dlpath=$dir/\$dldll${_S_}
John Criswell7a73b802003-06-30 21:59:07 +00007307 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007308 shlibpath_overrides_runpath=yes
7309
7310 case $host_os in
7311 cygwin*)
7312 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7313 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Brian Gaeke0a621332004-09-08 20:38:05 +00007314 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007315 ;;
7316 mingw*)
7317 # MinGW DLLs use traditional 'lib' prefix
7318 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7319 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7320 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7321 # It is most probably a Windows format PATH printed by
7322 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7323 # path with ; separators, and with drive letters. We can handle the
7324 # drive letters (cygwin fileutils understands them), so leave them,
7325 # especially as we might pass files found there to a mingw objdump,
7326 # which wouldn't understand a cygwinified path. Ahh.
7327 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7328 else
7329 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7330 fi
7331 ;;
7332 pw32*)
7333 # pw32 DLLs use 'pw' prefix rather than 'lib'
7334 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7335 ;;
7336 esac
John Criswell7a73b802003-06-30 21:59:07 +00007337 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007338
John Criswell7a73b802003-06-30 21:59:07 +00007339 *)
John Criswell47fdd832003-07-14 16:52:07 +00007340 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007341 ;;
7342 esac
7343 dynamic_linker='Win32 ld.exe'
7344 # FIXME: first we should search . and the directory the executable is in
7345 shlibpath_var=PATH
7346 ;;
7347
7348darwin* | rhapsody*)
7349 dynamic_linker="$host_os dyld"
7350 version_type=darwin
7351 need_lib_prefix=no
7352 need_version=no
Brian Gaeke0a621332004-09-08 20:38:05 +00007353 # FIXME: Relying on posixy $() will cause problems for
7354 # cross-compilation, but unfortunately the echo tests do not
7355 # yet detect zsh echo's removal of \ escapes.
7356 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +00007357 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007358 shlibpath_overrides_runpath=yes
7359 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007360 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7361 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Brian Gaeke0a621332004-09-08 20:38:05 +00007362 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7363 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"`
John Criswell47fdd832003-07-14 16:52:07 +00007364 fi
7365 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7366 ;;
7367
7368dgux*)
7369 version_type=linux
7370 need_lib_prefix=no
7371 need_version=no
7372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7373 soname_spec='${libname}${release}${shared_ext}$major'
7374 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007375 ;;
7376
7377freebsd1*)
7378 dynamic_linker=no
7379 ;;
7380
7381freebsd*)
7382 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7383 version_type=freebsd-$objformat
7384 case $version_type in
7385 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007387 need_version=no
7388 need_lib_prefix=no
7389 ;;
7390 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007391 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007392 need_version=yes
7393 ;;
7394 esac
7395 shlibpath_var=LD_LIBRARY_PATH
7396 case $host_os in
7397 freebsd2*)
7398 shlibpath_overrides_runpath=yes
7399 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007400 freebsd3.01* | freebsdelf3.01*)
7401 shlibpath_overrides_runpath=yes
7402 hardcode_into_libs=yes
7403 ;;
7404 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007405 shlibpath_overrides_runpath=no
7406 hardcode_into_libs=yes
7407 ;;
7408 esac
7409 ;;
7410
7411gnu*)
7412 version_type=linux
7413 need_lib_prefix=no
7414 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7416 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007417 shlibpath_var=LD_LIBRARY_PATH
7418 hardcode_into_libs=yes
7419 ;;
7420
7421hpux9* | hpux10* | hpux11*)
7422 # Give a soname corresponding to the major version so that dld.sl refuses to
7423 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007424 version_type=sunos
7425 need_lib_prefix=no
7426 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007427 case "$host_cpu" in
7428 ia64*)
7429 shrext='.so'
7430 hardcode_into_libs=yes
7431 dynamic_linker="$host_os dld.so"
7432 shlibpath_var=LD_LIBRARY_PATH
7433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7435 soname_spec='${libname}${release}${shared_ext}$major'
7436 if test "X$HPUX_IA64_MODE" = X32; then
7437 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7438 else
7439 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7440 fi
7441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7442 ;;
7443 hppa*64*)
7444 shrext='.sl'
7445 hardcode_into_libs=yes
7446 dynamic_linker="$host_os dld.sl"
7447 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7448 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7450 soname_spec='${libname}${release}${shared_ext}$major'
7451 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7452 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7453 ;;
7454 *)
7455 shrext='.sl'
7456 dynamic_linker="$host_os dld.sl"
7457 shlibpath_var=SHLIB_PATH
7458 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7460 soname_spec='${libname}${release}${shared_ext}$major'
7461 ;;
7462 esac
John Criswell7a73b802003-06-30 21:59:07 +00007463 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7464 postinstall_cmds='chmod 555 $lib'
7465 ;;
7466
John Criswell47fdd832003-07-14 16:52:07 +00007467irix5* | irix6* | nonstopux*)
7468 case $host_os in
7469 nonstopux*) version_type=nonstopux ;;
7470 *)
7471 if test "$lt_cv_prog_gnu_ld" = yes; then
7472 version_type=linux
7473 else
7474 version_type=irix
7475 fi ;;
7476 esac
John Criswell7a73b802003-06-30 21:59:07 +00007477 need_lib_prefix=no
7478 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007479 soname_spec='${libname}${release}${shared_ext}$major'
7480 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 +00007481 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007482 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007483 libsuff= shlibsuff=
7484 ;;
7485 *)
7486 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007487 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7488 libsuff= shlibsuff= libmagic=32-bit;;
7489 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7490 libsuff=32 shlibsuff=N32 libmagic=N32;;
7491 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7492 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007493 *) libsuff= shlibsuff= libmagic=never-match;;
7494 esac
7495 ;;
7496 esac
7497 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7498 shlibpath_overrides_runpath=no
7499 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7500 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007501 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007502 ;;
7503
7504# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007505linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007506 dynamic_linker=no
7507 ;;
7508
7509# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007510linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007511 version_type=linux
7512 need_lib_prefix=no
7513 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7515 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7517 shlibpath_var=LD_LIBRARY_PATH
7518 shlibpath_overrides_runpath=no
7519 # This implies no fast_install, which is unacceptable.
7520 # Some rework will be needed to allow for fast_install
7521 # before this can be enabled.
7522 hardcode_into_libs=yes
7523
7524 # We used to test for /lib/ld.so.1 and disable shared libraries on
7525 # powerpc, because MkLinux only supported shared libraries with the
7526 # GNU dynamic linker. Since this was broken with cross compilers,
7527 # most powerpc-linux boxes support dynamic linking these days and
7528 # people can always --disable-shared, the test was removed, and we
7529 # assume the GNU/Linux dynamic linker is in use.
7530 dynamic_linker='GNU/Linux ld.so'
7531 ;;
7532
7533netbsd*)
7534 version_type=sunos
7535 need_lib_prefix=no
7536 need_version=no
7537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007539 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7540 dynamic_linker='NetBSD (a.out) ld.so'
7541 else
John Criswell47fdd832003-07-14 16:52:07 +00007542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7543 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007544 dynamic_linker='NetBSD ld.elf_so'
7545 fi
7546 shlibpath_var=LD_LIBRARY_PATH
7547 shlibpath_overrides_runpath=yes
7548 hardcode_into_libs=yes
7549 ;;
7550
7551newsos6)
7552 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7554 shlibpath_var=LD_LIBRARY_PATH
7555 shlibpath_overrides_runpath=yes
7556 ;;
7557
Brian Gaeke0a621332004-09-08 20:38:05 +00007558nto-qnx)
John Criswell47fdd832003-07-14 16:52:07 +00007559 version_type=linux
7560 need_lib_prefix=no
7561 need_version=no
7562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7563 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007564 shlibpath_var=LD_LIBRARY_PATH
7565 shlibpath_overrides_runpath=yes
7566 ;;
7567
7568openbsd*)
7569 version_type=sunos
7570 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +00007571 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7573 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7574 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007575 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 +00007576 case $host_os in
7577 openbsd2.[89] | openbsd2.[89].*)
7578 shlibpath_overrides_runpath=no
7579 ;;
7580 *)
7581 shlibpath_overrides_runpath=yes
7582 ;;
7583 esac
John Criswell7a73b802003-06-30 21:59:07 +00007584 else
7585 shlibpath_overrides_runpath=yes
7586 fi
John Criswell7a73b802003-06-30 21:59:07 +00007587 ;;
7588
7589os2*)
7590 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007591 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007592 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007593 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007594 dynamic_linker='OS/2 ld.exe'
7595 shlibpath_var=LIBPATH
7596 ;;
7597
7598osf3* | osf4* | osf5*)
7599 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007600 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007601 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007602 soname_spec='${libname}${release}${shared_ext}$major'
7603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007604 shlibpath_var=LD_LIBRARY_PATH
7605 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7606 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7607 ;;
7608
7609sco3.2v5*)
7610 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007611 soname_spec='${libname}${release}${shared_ext}$major'
7612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007613 shlibpath_var=LD_LIBRARY_PATH
7614 ;;
7615
7616solaris*)
7617 version_type=linux
7618 need_lib_prefix=no
7619 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007622 shlibpath_var=LD_LIBRARY_PATH
7623 shlibpath_overrides_runpath=yes
7624 hardcode_into_libs=yes
7625 # ldd complains unless libraries are executable
7626 postinstall_cmds='chmod +x $lib'
7627 ;;
7628
7629sunos4*)
7630 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007632 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7633 shlibpath_var=LD_LIBRARY_PATH
7634 shlibpath_overrides_runpath=yes
7635 if test "$with_gnu_ld" = yes; then
7636 need_lib_prefix=no
7637 fi
7638 need_version=yes
7639 ;;
7640
7641sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7642 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007645 shlibpath_var=LD_LIBRARY_PATH
7646 case $host_vendor in
7647 sni)
7648 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007649 need_lib_prefix=no
7650 export_dynamic_flag_spec='${wl}-Blargedynsym'
7651 runpath_var=LD_RUN_PATH
7652 ;;
7653 siemens)
7654 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007655 ;;
7656 motorola)
7657 need_lib_prefix=no
7658 need_version=no
7659 shlibpath_overrides_runpath=no
7660 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7661 ;;
7662 esac
7663 ;;
7664
John Criswell7a73b802003-06-30 21:59:07 +00007665sysv4*MP*)
7666 if test -d /usr/nec ;then
7667 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007668 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7669 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007670 shlibpath_var=LD_LIBRARY_PATH
7671 fi
7672 ;;
7673
John Criswell47fdd832003-07-14 16:52:07 +00007674uts4*)
7675 version_type=linux
7676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7677 soname_spec='${libname}${release}${shared_ext}$major'
7678 shlibpath_var=LD_LIBRARY_PATH
7679 ;;
7680
John Criswell7a73b802003-06-30 21:59:07 +00007681*)
7682 dynamic_linker=no
7683 ;;
7684esac
7685echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7686echo "${ECHO_T}$dynamic_linker" >&6
7687test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007688
7689if test "x$enable_dlopen" != xyes; then
7690 enable_dlopen=unknown
7691 enable_dlopen_self=unknown
7692 enable_dlopen_self_static=unknown
7693else
7694 lt_cv_dlopen=no
7695 lt_cv_dlopen_libs=
7696
7697 case $host_os in
7698 beos*)
7699 lt_cv_dlopen="load_add_on"
7700 lt_cv_dlopen_libs=
7701 lt_cv_dlopen_self=yes
7702 ;;
7703
John Criswell47fdd832003-07-14 16:52:07 +00007704 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007705 lt_cv_dlopen="LoadLibrary"
7706 lt_cv_dlopen_libs=
7707 ;;
7708
John Criswell47fdd832003-07-14 16:52:07 +00007709 cygwin*)
7710 lt_cv_dlopen="dlopen"
7711 lt_cv_dlopen_libs=
7712 ;;
7713
7714 darwin*)
7715 # if libdl is installed we need to link against it
7716 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7717echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7718if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7720else
7721 ac_check_lib_save_LIBS=$LIBS
7722LIBS="-ldl $LIBS"
7723cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00007724#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007725/* confdefs.h. */
7726_ACEOF
7727cat confdefs.h >>conftest.$ac_ext
7728cat >>conftest.$ac_ext <<_ACEOF
7729/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007730
7731/* Override any gcc2 internal prototype to avoid an error. */
7732#ifdef __cplusplus
7733extern "C"
7734#endif
7735/* We use char because int might match the return type of a gcc2
7736 builtin and then its argument prototype would still apply. */
7737char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007738int
7739main ()
7740{
7741dlopen ();
7742 ;
7743 return 0;
7744}
7745_ACEOF
7746rm -f conftest.$ac_objext conftest$ac_exeext
7747if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00007748 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +00007749 ac_status=$?
7750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7751 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00007752 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00007753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 (eval $ac_try) 2>&5
7755 ac_status=$?
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); }; }; then
7758 ac_cv_lib_dl_dlopen=yes
7759else
7760 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007761sed 's/^/| /' conftest.$ac_ext >&5
7762
John Criswell47fdd832003-07-14 16:52:07 +00007763ac_cv_lib_dl_dlopen=no
7764fi
Brian Gaeke0a621332004-09-08 20:38:05 +00007765rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00007766LIBS=$ac_check_lib_save_LIBS
7767fi
7768echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7769echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7770if test $ac_cv_lib_dl_dlopen = yes; then
7771 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7772else
7773
7774 lt_cv_dlopen="dyld"
7775 lt_cv_dlopen_libs=
7776 lt_cv_dlopen_self=yes
7777
7778fi
7779
7780 ;;
7781
John Criswell7a73b802003-06-30 21:59:07 +00007782 *)
7783 echo "$as_me:$LINENO: checking for shl_load" >&5
7784echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7785if test "${ac_cv_func_shl_load+set}" = set; then
7786 echo $ECHO_N "(cached) $ECHO_C" >&6
7787else
7788 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00007789#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007790/* confdefs.h. */
7791_ACEOF
7792cat confdefs.h >>conftest.$ac_ext
7793cat >>conftest.$ac_ext <<_ACEOF
7794/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007795/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007796 which can conflict with char shl_load (); below.
7797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7798 <limits.h> exists even on freestanding compilers. */
7799#ifdef __STDC__
7800# include <limits.h>
7801#else
7802# include <assert.h>
7803#endif
John Criswell7a73b802003-06-30 21:59:07 +00007804/* Override any gcc2 internal prototype to avoid an error. */
7805#ifdef __cplusplus
7806extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007807{
John Criswell7a73b802003-06-30 21:59:07 +00007808#endif
7809/* We use char because int might match the return type of a gcc2
7810 builtin and then its argument prototype would still apply. */
7811char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007812/* The GNU C library defines this for functions which it implements
7813 to always fail with ENOSYS. Some functions are actually named
7814 something starting with __ and the normal name is an alias. */
7815#if defined (__stub_shl_load) || defined (__stub___shl_load)
7816choke me
7817#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007818char (*f) () = shl_load;
7819#endif
7820#ifdef __cplusplus
7821}
John Criswell7a73b802003-06-30 21:59:07 +00007822#endif
7823
John Criswell0c38eaf2003-09-10 15:17:25 +00007824int
7825main ()
7826{
7827return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00007828 ;
7829 return 0;
7830}
7831_ACEOF
7832rm -f conftest.$ac_objext conftest$ac_exeext
7833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00007834 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00007835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00007838 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00007839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; }; then
7844 ac_cv_func_shl_load=yes
7845else
7846 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007847sed 's/^/| /' conftest.$ac_ext >&5
7848
John Criswell7a73b802003-06-30 21:59:07 +00007849ac_cv_func_shl_load=no
7850fi
Brian Gaeke0a621332004-09-08 20:38:05 +00007851rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00007852fi
7853echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7854echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7855if test $ac_cv_func_shl_load = yes; then
7856 lt_cv_dlopen="shl_load"
7857else
7858 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7859echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7860if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7861 echo $ECHO_N "(cached) $ECHO_C" >&6
7862else
7863 ac_check_lib_save_LIBS=$LIBS
7864LIBS="-ldld $LIBS"
7865cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00007866#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007867/* confdefs.h. */
7868_ACEOF
7869cat confdefs.h >>conftest.$ac_ext
7870cat >>conftest.$ac_ext <<_ACEOF
7871/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007872
7873/* Override any gcc2 internal prototype to avoid an error. */
7874#ifdef __cplusplus
7875extern "C"
7876#endif
7877/* We use char because int might match the return type of a gcc2
7878 builtin and then its argument prototype would still apply. */
7879char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00007880int
7881main ()
7882{
7883shl_load ();
7884 ;
7885 return 0;
7886}
7887_ACEOF
7888rm -f conftest.$ac_objext conftest$ac_exeext
7889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00007890 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00007891 ac_status=$?
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00007894 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00007895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7896 (eval $ac_try) 2>&5
7897 ac_status=$?
7898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7899 (exit $ac_status); }; }; then
7900 ac_cv_lib_dld_shl_load=yes
7901else
7902 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007903sed 's/^/| /' conftest.$ac_ext >&5
7904
John Criswell7a73b802003-06-30 21:59:07 +00007905ac_cv_lib_dld_shl_load=no
7906fi
Brian Gaeke0a621332004-09-08 20:38:05 +00007907rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00007908LIBS=$ac_check_lib_save_LIBS
7909fi
7910echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7911echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7912if test $ac_cv_lib_dld_shl_load = yes; then
7913 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7914else
7915 echo "$as_me:$LINENO: checking for dlopen" >&5
7916echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7917if test "${ac_cv_func_dlopen+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919else
7920 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00007921#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007922/* confdefs.h. */
7923_ACEOF
7924cat confdefs.h >>conftest.$ac_ext
7925cat >>conftest.$ac_ext <<_ACEOF
7926/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00007927/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007928 which can conflict with char dlopen (); below.
7929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7930 <limits.h> exists even on freestanding compilers. */
7931#ifdef __STDC__
7932# include <limits.h>
7933#else
7934# include <assert.h>
7935#endif
John Criswell7a73b802003-06-30 21:59:07 +00007936/* Override any gcc2 internal prototype to avoid an error. */
7937#ifdef __cplusplus
7938extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00007939{
John Criswell7a73b802003-06-30 21:59:07 +00007940#endif
7941/* We use char because int might match the return type of a gcc2
7942 builtin and then its argument prototype would still apply. */
7943char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00007944/* The GNU C library defines this for functions which it implements
7945 to always fail with ENOSYS. Some functions are actually named
7946 something starting with __ and the normal name is an alias. */
7947#if defined (__stub_dlopen) || defined (__stub___dlopen)
7948choke me
7949#else
John Criswell0c38eaf2003-09-10 15:17:25 +00007950char (*f) () = dlopen;
7951#endif
7952#ifdef __cplusplus
7953}
John Criswell7a73b802003-06-30 21:59:07 +00007954#endif
7955
John Criswell0c38eaf2003-09-10 15:17:25 +00007956int
7957main ()
7958{
7959return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00007960 ;
7961 return 0;
7962}
7963_ACEOF
7964rm -f conftest.$ac_objext conftest$ac_exeext
7965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00007966 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00007967 ac_status=$?
7968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7969 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00007970 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00007971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7972 (eval $ac_try) 2>&5
7973 ac_status=$?
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); }; }; then
7976 ac_cv_func_dlopen=yes
7977else
7978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007979sed 's/^/| /' conftest.$ac_ext >&5
7980
John Criswell7a73b802003-06-30 21:59:07 +00007981ac_cv_func_dlopen=no
7982fi
Brian Gaeke0a621332004-09-08 20:38:05 +00007983rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00007984fi
7985echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7986echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7987if test $ac_cv_func_dlopen = yes; then
7988 lt_cv_dlopen="dlopen"
7989else
7990 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7991echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7992if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994else
7995 ac_check_lib_save_LIBS=$LIBS
7996LIBS="-ldl $LIBS"
7997cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00007998#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00007999/* confdefs.h. */
8000_ACEOF
8001cat confdefs.h >>conftest.$ac_ext
8002cat >>conftest.$ac_ext <<_ACEOF
8003/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008004
8005/* Override any gcc2 internal prototype to avoid an error. */
8006#ifdef __cplusplus
8007extern "C"
8008#endif
8009/* We use char because int might match the return type of a gcc2
8010 builtin and then its argument prototype would still apply. */
8011char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008012int
8013main ()
8014{
8015dlopen ();
8016 ;
8017 return 0;
8018}
8019_ACEOF
8020rm -f conftest.$ac_objext conftest$ac_exeext
8021if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00008022 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00008026 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 (eval $ac_try) 2>&5
8029 ac_status=$?
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 ac_cv_lib_dl_dlopen=yes
8033else
8034 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008035sed 's/^/| /' conftest.$ac_ext >&5
8036
John Criswell7a73b802003-06-30 21:59:07 +00008037ac_cv_lib_dl_dlopen=no
8038fi
Brian Gaeke0a621332004-09-08 20:38:05 +00008039rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008040LIBS=$ac_check_lib_save_LIBS
8041fi
8042echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8043echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8044if test $ac_cv_lib_dl_dlopen = yes; then
8045 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8046else
8047 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8048echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8049if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8051else
8052 ac_check_lib_save_LIBS=$LIBS
8053LIBS="-lsvld $LIBS"
8054cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008055#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008056/* confdefs.h. */
8057_ACEOF
8058cat confdefs.h >>conftest.$ac_ext
8059cat >>conftest.$ac_ext <<_ACEOF
8060/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008061
8062/* Override any gcc2 internal prototype to avoid an error. */
8063#ifdef __cplusplus
8064extern "C"
8065#endif
8066/* We use char because int might match the return type of a gcc2
8067 builtin and then its argument prototype would still apply. */
8068char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008069int
8070main ()
8071{
8072dlopen ();
8073 ;
8074 return 0;
8075}
8076_ACEOF
8077rm -f conftest.$ac_objext conftest$ac_exeext
8078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00008079 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008080 ac_status=$?
8081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8082 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00008083 { 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_lib_svld_dlopen=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_lib_svld_dlopen=no
8095fi
Brian Gaeke0a621332004-09-08 20:38:05 +00008096rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008097LIBS=$ac_check_lib_save_LIBS
8098fi
8099echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8100echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8101if test $ac_cv_lib_svld_dlopen = yes; then
8102 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8103else
8104 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8105echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8106if test "${ac_cv_lib_dld_dld_link+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
Brian Gaeke0a621332004-09-08 20:38:05 +00008112#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00008113/* confdefs.h. */
8114_ACEOF
8115cat confdefs.h >>conftest.$ac_ext
8116cat >>conftest.$ac_ext <<_ACEOF
8117/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008118
8119/* Override any gcc2 internal prototype to avoid an error. */
8120#ifdef __cplusplus
8121extern "C"
8122#endif
8123/* We use char because int might match the return type of a gcc2
8124 builtin and then its argument prototype would still apply. */
8125char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008126int
8127main ()
8128{
8129dld_link ();
8130 ;
8131 return 0;
8132}
8133_ACEOF
8134rm -f conftest.$ac_objext conftest$ac_exeext
8135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00008136 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00008137 ac_status=$?
8138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00008140 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8142 (eval $ac_try) 2>&5
8143 ac_status=$?
8144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8145 (exit $ac_status); }; }; then
8146 ac_cv_lib_dld_dld_link=yes
8147else
8148 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008149sed 's/^/| /' conftest.$ac_ext >&5
8150
John Criswell7a73b802003-06-30 21:59:07 +00008151ac_cv_lib_dld_dld_link=no
8152fi
Brian Gaeke0a621332004-09-08 20:38:05 +00008153rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008154LIBS=$ac_check_lib_save_LIBS
8155fi
8156echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8157echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8158if test $ac_cv_lib_dld_dld_link = yes; then
8159 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8160fi
8161
8162
8163fi
8164
8165
8166fi
8167
8168
8169fi
8170
8171
8172fi
8173
8174
8175fi
8176
8177 ;;
8178 esac
8179
8180 if test "x$lt_cv_dlopen" != xno; then
8181 enable_dlopen=yes
8182 else
8183 enable_dlopen=no
8184 fi
8185
8186 case $lt_cv_dlopen in
8187 dlopen)
8188 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008189 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008190
8191 save_LDFLAGS="$LDFLAGS"
8192 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8193
8194 save_LIBS="$LIBS"
8195 LIBS="$lt_cv_dlopen_libs $LIBS"
8196
8197 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8198echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8199if test "${lt_cv_dlopen_self+set}" = set; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201else
8202 if test "$cross_compiling" = yes; then :
8203 lt_cv_dlopen_self=cross
8204else
John Criswell47fdd832003-07-14 16:52:07 +00008205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008206 lt_status=$lt_dlunknown
8207 cat > conftest.$ac_ext <<EOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008208#line 8208 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008209#include "confdefs.h"
8210
8211#if HAVE_DLFCN_H
8212#include <dlfcn.h>
8213#endif
8214
8215#include <stdio.h>
8216
8217#ifdef RTLD_GLOBAL
8218# define LT_DLGLOBAL RTLD_GLOBAL
8219#else
8220# ifdef DL_GLOBAL
8221# define LT_DLGLOBAL DL_GLOBAL
8222# else
8223# define LT_DLGLOBAL 0
8224# endif
8225#endif
8226
8227/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8228 find out it does not work in some platform. */
8229#ifndef LT_DLLAZY_OR_NOW
8230# ifdef RTLD_LAZY
8231# define LT_DLLAZY_OR_NOW RTLD_LAZY
8232# else
8233# ifdef DL_LAZY
8234# define LT_DLLAZY_OR_NOW DL_LAZY
8235# else
8236# ifdef RTLD_NOW
8237# define LT_DLLAZY_OR_NOW RTLD_NOW
8238# else
8239# ifdef DL_NOW
8240# define LT_DLLAZY_OR_NOW DL_NOW
8241# else
8242# define LT_DLLAZY_OR_NOW 0
8243# endif
8244# endif
8245# endif
8246# endif
8247#endif
8248
8249#ifdef __cplusplus
8250extern "C" void exit (int);
8251#endif
8252
8253void fnord() { int i=42;}
8254int main ()
8255{
8256 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8257 int status = $lt_dlunknown;
8258
8259 if (self)
8260 {
8261 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8262 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8263 /* dlclose (self); */
8264 }
8265
8266 exit (status);
8267}
8268EOF
8269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8270 (eval $ac_link) 2>&5
8271 ac_status=$?
8272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8273 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8274 (./conftest; exit; ) 2>/dev/null
8275 lt_status=$?
8276 case x$lt_status in
8277 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8278 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8279 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8280 esac
8281 else :
8282 # compilation failed
8283 lt_cv_dlopen_self=no
8284 fi
8285fi
8286rm -fr conftest*
8287
8288
8289fi
8290echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8291echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8292
8293 if test "x$lt_cv_dlopen_self" = xyes; then
8294 LDFLAGS="$LDFLAGS $link_static_flag"
8295 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8296echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8297if test "${lt_cv_dlopen_self_static+set}" = set; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8299else
8300 if test "$cross_compiling" = yes; then :
8301 lt_cv_dlopen_self_static=cross
8302else
John Criswell47fdd832003-07-14 16:52:07 +00008303 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008304 lt_status=$lt_dlunknown
8305 cat > conftest.$ac_ext <<EOF
Brian Gaeke0a621332004-09-08 20:38:05 +00008306#line 8306 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008307#include "confdefs.h"
8308
8309#if HAVE_DLFCN_H
8310#include <dlfcn.h>
8311#endif
8312
8313#include <stdio.h>
8314
8315#ifdef RTLD_GLOBAL
8316# define LT_DLGLOBAL RTLD_GLOBAL
8317#else
8318# ifdef DL_GLOBAL
8319# define LT_DLGLOBAL DL_GLOBAL
8320# else
8321# define LT_DLGLOBAL 0
8322# endif
8323#endif
8324
8325/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8326 find out it does not work in some platform. */
8327#ifndef LT_DLLAZY_OR_NOW
8328# ifdef RTLD_LAZY
8329# define LT_DLLAZY_OR_NOW RTLD_LAZY
8330# else
8331# ifdef DL_LAZY
8332# define LT_DLLAZY_OR_NOW DL_LAZY
8333# else
8334# ifdef RTLD_NOW
8335# define LT_DLLAZY_OR_NOW RTLD_NOW
8336# else
8337# ifdef DL_NOW
8338# define LT_DLLAZY_OR_NOW DL_NOW
8339# else
8340# define LT_DLLAZY_OR_NOW 0
8341# endif
8342# endif
8343# endif
8344# endif
8345#endif
8346
8347#ifdef __cplusplus
8348extern "C" void exit (int);
8349#endif
8350
8351void fnord() { int i=42;}
8352int main ()
8353{
8354 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8355 int status = $lt_dlunknown;
8356
8357 if (self)
8358 {
8359 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8360 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8361 /* dlclose (self); */
8362 }
8363
8364 exit (status);
8365}
8366EOF
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368 (eval $ac_link) 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8372 (./conftest; exit; ) 2>/dev/null
8373 lt_status=$?
8374 case x$lt_status in
8375 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8376 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8377 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8378 esac
8379 else :
8380 # compilation failed
8381 lt_cv_dlopen_self_static=no
8382 fi
8383fi
8384rm -fr conftest*
8385
8386
8387fi
8388echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8389echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8390 fi
8391
8392 CPPFLAGS="$save_CPPFLAGS"
8393 LDFLAGS="$save_LDFLAGS"
8394 LIBS="$save_LIBS"
8395 ;;
8396 esac
8397
8398 case $lt_cv_dlopen_self in
8399 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8400 *) enable_dlopen_self=unknown ;;
8401 esac
8402
8403 case $lt_cv_dlopen_self_static in
8404 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8405 *) enable_dlopen_self_static=unknown ;;
8406 esac
8407fi
8408
8409
John Criswell47fdd832003-07-14 16:52:07 +00008410# Report which librarie types wil actually be built
8411echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8412echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8413echo "$as_me:$LINENO: result: $can_build_shared" >&5
8414echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008415
John Criswell47fdd832003-07-14 16:52:07 +00008416echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8417echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8418test "$can_build_shared" = "no" && enable_shared=no
8419
8420# On AIX, shared libraries and static libraries use the same namespace, and
8421# are all built from PIC.
8422case "$host_os" in
8423aix3*)
8424 test "$enable_shared" = yes && enable_static=no
8425 if test -n "$RANLIB"; then
Brian Gaeke0a621332004-09-08 20:38:05 +00008426 archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +00008427 postinstall_cmds='$RANLIB $lib'
8428 fi
8429 ;;
8430
8431aix4*)
8432 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8433 test "$enable_shared" = yes && enable_static=no
8434 fi
8435 ;;
8436 darwin* | rhapsody*)
Brian Gaeke0a621332004-09-08 20:38:05 +00008437 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
John Criswell47fdd832003-07-14 16:52:07 +00008438 archive_cmds_need_lc=no
8439 case "$host_os" in
8440 rhapsody* | darwin1.[012])
8441 allow_undefined_flag='-undefined suppress'
8442 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +00008443 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
8444 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8445 ;;
8446 *) # Darwin 7.0 on
8447 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
8448 10.[012])
8449 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8450 ;;
8451 *) # 10.3 on
8452 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
8453 allow_undefined_flag='-flat_namespace -undefined suppress'
8454 else
8455 allow_undefined_flag='-undefined dynamic_lookup'
8456 fi
8457 ;;
8458 esac
John Criswell47fdd832003-07-14 16:52:07 +00008459 ;;
8460 esac
Brian Gaeke0a621332004-09-08 20:38:05 +00008461 # FIXME: Relying on posixy $() will cause problems for
8462 # cross-compilation, but unfortunately the echo tests do not
8463 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8464 # `"' quotes if we put them in here... so don't!
8465 output_verbose_link_cmd='echo'
8466 archive_cmds='$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8467 module_cmds='$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +00008468 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Brian Gaeke0a621332004-09-08 20:38:05 +00008469 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8470 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
John Criswell47fdd832003-07-14 16:52:07 +00008471 hardcode_direct=no
8472 hardcode_automatic=yes
8473 hardcode_shlibpath_var=unsupported
8474 whole_archive_flag_spec='-all_load $convenience'
8475 link_all_deplibs=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00008476 fi
John Criswell7a73b802003-06-30 21:59:07 +00008477 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008478esac
8479echo "$as_me:$LINENO: result: $enable_shared" >&5
8480echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008481
John Criswell47fdd832003-07-14 16:52:07 +00008482echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8483echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8484# Make sure either enable_shared or enable_static is yes.
8485test "$enable_shared" = yes || enable_static=yes
8486echo "$as_me:$LINENO: result: $enable_static" >&5
8487echo "${ECHO_T}$enable_static" >&6
8488
8489# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008490# libtool distribution, otherwise you forgot to ship ltmain.sh
8491# with your package, and you will get complaints that there are
8492# no rules to generate ltmain.sh.
8493if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008494 # See if we are running on zsh, and set the options which allow our commands through
8495 # without removal of \ escapes.
8496 if test -n "${ZSH_VERSION+set}" ; then
8497 setopt NO_GLOB_SUBST
8498 fi
John Criswell7a73b802003-06-30 21:59:07 +00008499 # Now quote all the things that may contain metacharacters while being
8500 # careful not to overquote the AC_SUBSTed values. We take copies of the
8501 # variables and quote the copies for generation of the libtool script.
Brian Gaeke0a621332004-09-08 20:38:05 +00008502 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
John Criswell47fdd832003-07-14 16:52:07 +00008503 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8504 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8505 deplibs_check_method reload_flag reload_cmds need_locks \
8506 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8507 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008508 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008509 old_postinstall_cmds old_postuninstall_cmds \
8510 compiler \
8511 CC \
8512 LD \
8513 lt_prog_compiler_wl \
8514 lt_prog_compiler_pic \
8515 lt_prog_compiler_static \
8516 lt_prog_compiler_no_builtin_flag \
8517 export_dynamic_flag_spec \
8518 thread_safe_flag_spec \
8519 whole_archive_flag_spec \
8520 enable_shared_with_static_runtimes \
8521 old_archive_cmds \
8522 old_archive_from_new_cmds \
8523 predep_objects \
8524 postdep_objects \
8525 predeps \
8526 postdeps \
8527 compiler_lib_search_path \
8528 archive_cmds \
8529 archive_expsym_cmds \
8530 postinstall_cmds \
8531 postuninstall_cmds \
8532 old_archive_from_expsyms_cmds \
8533 allow_undefined_flag \
8534 no_undefined_flag \
8535 export_symbols_cmds \
8536 hardcode_libdir_flag_spec \
8537 hardcode_libdir_flag_spec_ld \
8538 hardcode_libdir_separator \
8539 hardcode_automatic \
8540 module_cmds \
8541 module_expsym_cmds \
8542 lt_cv_prog_compiler_c_o \
8543 exclude_expsyms \
8544 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008545
8546 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008547 old_archive_cmds | \
8548 old_archive_from_new_cmds | \
8549 archive_cmds | \
8550 archive_expsym_cmds | \
8551 module_cmds | \
8552 module_expsym_cmds | \
8553 old_archive_from_expsyms_cmds | \
8554 export_symbols_cmds | \
8555 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008556 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008557 old_postinstall_cmds | old_postuninstall_cmds | \
8558 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008559 # Double-quote double-evaled strings.
Brian Gaeke0a621332004-09-08 20:38:05 +00008560 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
John Criswell7a73b802003-06-30 21:59:07 +00008561 ;;
8562 *)
8563 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8564 ;;
8565 esac
8566 done
8567
John Criswell47fdd832003-07-14 16:52:07 +00008568 case $lt_echo in
8569 *'\$0 --fallback-echo"')
8570 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8571 ;;
8572 esac
8573
8574cfgfile="${ofile}T"
8575 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8576 $rm -f "$cfgfile"
8577 { echo "$as_me:$LINENO: creating $ofile" >&5
8578echo "$as_me: creating $ofile" >&6;}
8579
8580 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008581#! $SHELL
8582
John Criswell47fdd832003-07-14 16:52:07 +00008583# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008584# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8585# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8586#
John Criswell47fdd832003-07-14 16:52:07 +00008587# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8588# Free Software Foundation, Inc.
8589#
8590# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008591# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8592#
8593# This program is free software; you can redistribute it and/or modify
8594# it under the terms of the GNU General Public License as published by
8595# the Free Software Foundation; either version 2 of the License, or
8596# (at your option) any later version.
8597#
8598# This program is distributed in the hope that it will be useful, but
8599# WITHOUT ANY WARRANTY; without even the implied warranty of
8600# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8601# General Public License for more details.
8602#
8603# You should have received a copy of the GNU General Public License
8604# along with this program; if not, write to the Free Software
8605# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8606#
8607# As a special exception to the GNU General Public License, if you
8608# distribute this file as part of a program that contains a
8609# configuration script generated by Autoconf, you may include it under
8610# the same distribution terms that you use for the rest of that program.
8611
John Criswell47fdd832003-07-14 16:52:07 +00008612# A sed program that does not truncate output.
8613SED=$lt_SED
8614
John Criswell7a73b802003-06-30 21:59:07 +00008615# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008616Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008617
8618# The HP-UX ksh and POSIX shell print the target directory to stdout
8619# if CDPATH is set.
8620if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8621
John Criswell47fdd832003-07-14 16:52:07 +00008622# The names of the tagged configurations supported by this script.
8623available_tags=
8624
John Criswell7a73b802003-06-30 21:59:07 +00008625# ### BEGIN LIBTOOL CONFIG
8626
8627# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8628
Brian Gaeke0a621332004-09-08 20:38:05 +00008629# Set the command separator (default: ~)
8630_S_=\${LIBTOOL_CMD_SEP-\~}
8631
John Criswell7a73b802003-06-30 21:59:07 +00008632# Shell to use when invoking shell scripts.
8633SHELL=$lt_SHELL
8634
8635# Whether or not to build shared libraries.
8636build_libtool_libs=$enable_shared
8637
8638# Whether or not to build static libraries.
8639build_old_libs=$enable_static
8640
8641# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008642build_libtool_need_lc=$archive_cmds_need_lc
8643
8644# Whether or not to disallow shared libs when runtime libs are static
8645allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008646
8647# Whether or not to optimize for fast installation.
8648fast_install=$enable_fast_install
8649
8650# The host system.
8651host_alias=$host_alias
8652host=$host
8653
8654# An echo program that does not interpret backslashes.
8655echo=$lt_echo
8656
8657# The archiver.
8658AR=$lt_AR
8659AR_FLAGS=$lt_AR_FLAGS
8660
John Criswell47fdd832003-07-14 16:52:07 +00008661# A C compiler.
8662LTCC=$lt_LTCC
8663
8664# A language-specific compiler.
8665CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008666
8667# Is the compiler the GNU C compiler?
8668with_gcc=$GCC
8669
John Criswell47fdd832003-07-14 16:52:07 +00008670# An ERE matcher.
8671EGREP=$lt_EGREP
8672
John Criswell7a73b802003-06-30 21:59:07 +00008673# The linker used to build libraries.
8674LD=$lt_LD
8675
8676# Whether we need hard or soft links.
8677LN_S=$lt_LN_S
8678
8679# A BSD-compatible nm program.
8680NM=$lt_NM
8681
8682# A symbol stripping program
Brian Gaeke0a621332004-09-08 20:38:05 +00008683STRIP=$STRIP
John Criswell7a73b802003-06-30 21:59:07 +00008684
8685# Used to examine libraries when file_magic_cmd begins "file"
8686MAGIC_CMD=$MAGIC_CMD
8687
8688# Used on cygwin: DLL creation program.
8689DLLTOOL="$DLLTOOL"
8690
8691# Used on cygwin: object dumper.
8692OBJDUMP="$OBJDUMP"
8693
8694# Used on cygwin: assembler.
8695AS="$AS"
8696
8697# The name of the directory that contains temporary libtool files.
8698objdir=$objdir
8699
8700# How to create reloadable object files.
8701reload_flag=$lt_reload_flag
8702reload_cmds=$lt_reload_cmds
8703
8704# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008705wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008706
8707# Object file suffix (normally "o").
8708objext="$ac_objext"
8709
8710# Old archive suffix (normally "a").
8711libext="$libext"
8712
John Criswell47fdd832003-07-14 16:52:07 +00008713# Shared library suffix (normally ".so").
8714shrext='$shrext'
8715
John Criswell7a73b802003-06-30 21:59:07 +00008716# Executable file suffix (normally "").
8717exeext="$exeext"
8718
8719# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008720pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008721pic_mode=$pic_mode
8722
John Criswell47fdd832003-07-14 16:52:07 +00008723# What is the maximum length of a command?
8724max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008725
John Criswell47fdd832003-07-14 16:52:07 +00008726# Does compiler simultaneously support -c and -o options?
8727compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008728
8729# Must we lock files when doing compilation ?
8730need_locks=$lt_need_locks
8731
8732# Do we need the lib prefix for modules?
8733need_lib_prefix=$need_lib_prefix
8734
8735# Do we need a version for libraries?
8736need_version=$need_version
8737
8738# Whether dlopen is supported.
8739dlopen_support=$enable_dlopen
8740
8741# Whether dlopen of programs is supported.
8742dlopen_self=$enable_dlopen_self
8743
8744# Whether dlopen of statically linked programs is supported.
8745dlopen_self_static=$enable_dlopen_self_static
8746
8747# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00008748link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00008749
8750# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00008751no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00008752
8753# Compiler flag to allow reflexive dlopens.
8754export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8755
8756# Compiler flag to generate shared objects directly from archives.
8757whole_archive_flag_spec=$lt_whole_archive_flag_spec
8758
8759# Compiler flag to generate thread-safe objects.
8760thread_safe_flag_spec=$lt_thread_safe_flag_spec
8761
8762# Library versioning type.
8763version_type=$version_type
8764
8765# Format of library name prefix.
8766libname_spec=$lt_libname_spec
8767
8768# List of archive names. First name is the real one, the rest are links.
8769# The last name is the one that the linker finds with -lNAME.
8770library_names_spec=$lt_library_names_spec
8771
8772# The coded name of the library, if different from the real name.
8773soname_spec=$lt_soname_spec
8774
8775# Commands used to build and install an old-style archive.
8776RANLIB=$lt_RANLIB
8777old_archive_cmds=$lt_old_archive_cmds
8778old_postinstall_cmds=$lt_old_postinstall_cmds
8779old_postuninstall_cmds=$lt_old_postuninstall_cmds
8780
8781# Create an old-style archive from a shared archive.
8782old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8783
8784# Create a temporary old-style archive to link instead of a shared archive.
8785old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8786
8787# Commands used to build and install a shared archive.
8788archive_cmds=$lt_archive_cmds
8789archive_expsym_cmds=$lt_archive_expsym_cmds
8790postinstall_cmds=$lt_postinstall_cmds
8791postuninstall_cmds=$lt_postuninstall_cmds
8792
John Criswell47fdd832003-07-14 16:52:07 +00008793# Commands used to build a loadable module (assumed same as above if empty)
8794module_cmds=$lt_module_cmds
8795module_expsym_cmds=$lt_module_expsym_cmds
8796
John Criswell7a73b802003-06-30 21:59:07 +00008797# Commands to strip libraries.
8798old_striplib=$lt_old_striplib
8799striplib=$lt_striplib
8800
John Criswell47fdd832003-07-14 16:52:07 +00008801# Dependencies to place before the objects being linked to create a
8802# shared library.
8803predep_objects=$lt_predep_objects
8804
8805# Dependencies to place after the objects being linked to create a
8806# shared library.
8807postdep_objects=$lt_postdep_objects
8808
8809# Dependencies to place before the objects being linked to create a
8810# shared library.
8811predeps=$lt_predeps
8812
8813# Dependencies to place after the objects being linked to create a
8814# shared library.
8815postdeps=$lt_postdeps
8816
8817# The library search path used internally by the compiler when linking
8818# a shared library.
8819compiler_lib_search_path=$lt_compiler_lib_search_path
8820
John Criswell7a73b802003-06-30 21:59:07 +00008821# Method to check whether dependent libraries are shared objects.
8822deplibs_check_method=$lt_deplibs_check_method
8823
8824# Command to use when deplibs_check_method == file_magic.
8825file_magic_cmd=$lt_file_magic_cmd
8826
8827# Flag that allows shared libraries with undefined symbols to be built.
8828allow_undefined_flag=$lt_allow_undefined_flag
8829
8830# Flag that forces no undefined symbols.
8831no_undefined_flag=$lt_no_undefined_flag
8832
8833# Commands used to finish a libtool library installation in a directory.
8834finish_cmds=$lt_finish_cmds
8835
8836# Same as above, but a single script fragment to be evaled but not shown.
8837finish_eval=$lt_finish_eval
8838
8839# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00008840global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00008841
8842# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00008843global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00008844
8845# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00008846global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00008847
8848# This is the shared library runtime path variable.
8849runpath_var=$runpath_var
8850
8851# This is the shared library path variable.
8852shlibpath_var=$shlibpath_var
8853
8854# Is shlibpath searched before the hard-coded library search path?
8855shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8856
8857# How to hardcode a shared library path into an executable.
8858hardcode_action=$hardcode_action
8859
8860# Whether we should hardcode library paths into libraries.
8861hardcode_into_libs=$hardcode_into_libs
8862
8863# Flag to hardcode \$libdir into a binary during linking.
8864# This must work even if \$libdir does not exist.
8865hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8866
John Criswell47fdd832003-07-14 16:52:07 +00008867# If ld is used when linking, flag to hardcode \$libdir into
8868# a binary during linking. This must work even if \$libdir does
8869# not exist.
8870hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8871
John Criswell7a73b802003-06-30 21:59:07 +00008872# Whether we need a single -rpath flag with a separated argument.
8873hardcode_libdir_separator=$lt_hardcode_libdir_separator
8874
John Criswell47fdd832003-07-14 16:52:07 +00008875# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00008876# resulting binary.
8877hardcode_direct=$hardcode_direct
8878
8879# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8880# resulting binary.
8881hardcode_minus_L=$hardcode_minus_L
8882
8883# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8884# the resulting binary.
8885hardcode_shlibpath_var=$hardcode_shlibpath_var
8886
John Criswell47fdd832003-07-14 16:52:07 +00008887# Set to yes if building a shared library automatically hardcodes DIR into the library
8888# and all subsequent libraries and executables linked against it.
8889hardcode_automatic=$hardcode_automatic
8890
John Criswell7a73b802003-06-30 21:59:07 +00008891# Variables whose values should be saved in libtool wrapper scripts and
8892# restored at relink time.
8893variables_saved_for_relink="$variables_saved_for_relink"
8894
8895# Whether libtool must link a program against all its dependency libraries.
8896link_all_deplibs=$link_all_deplibs
8897
8898# Compile-time system search path for libraries
8899sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8900
8901# Run-time system search path for libraries
8902sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8903
8904# Fix the shell variable \$srcfile for the compiler.
8905fix_srcfile_path="$fix_srcfile_path"
8906
8907# Set to yes if exported symbols are required.
8908always_export_symbols=$always_export_symbols
8909
8910# The commands to list exported symbols.
8911export_symbols_cmds=$lt_export_symbols_cmds
8912
8913# The commands to extract the exported symbol list from a shared archive.
8914extract_expsyms_cmds=$lt_extract_expsyms_cmds
8915
8916# Symbols that should not be listed in the preloaded symbols.
8917exclude_expsyms=$lt_exclude_expsyms
8918
8919# Symbols that must always be exported.
8920include_expsyms=$lt_include_expsyms
8921
8922# ### END LIBTOOL CONFIG
8923
8924__EOF__
8925
John Criswell47fdd832003-07-14 16:52:07 +00008926
John Criswell7a73b802003-06-30 21:59:07 +00008927 case $host_os in
8928 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00008929 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008930
8931# AIX sometimes has problems with the GCC collect2 program. For some
8932# reason, if we set the COLLECT_NAMES environment variable, the problems
8933# vanish in a puff of smoke.
8934if test "X${COLLECT_NAMES+set}" != Xset; then
8935 COLLECT_NAMES=
8936 export COLLECT_NAMES
8937fi
8938EOF
8939 ;;
8940 esac
8941
John Criswell7a73b802003-06-30 21:59:07 +00008942 # We use sed instead of cat because bash on DJGPP gets confused if
8943 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8944 # text mode, it properly converts lines to CR/LF. This bash problem
8945 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00008946 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00008947
John Criswell47fdd832003-07-14 16:52:07 +00008948 mv -f "$cfgfile" "$ofile" || \
8949 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00008950 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00008951
8952else
8953 # If there is no Makefile yet, we rely on a make rule to execute
8954 # `config.status --recheck' to rerun these tests and create the
8955 # libtool script then.
8956 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00008957fi
John Criswell7a73b802003-06-30 21:59:07 +00008958
8959
John Criswell47fdd832003-07-14 16:52:07 +00008960ac_ext=c
8961ac_cpp='$CPP $CPPFLAGS'
8962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8964ac_compiler_gnu=$ac_cv_c_compiler_gnu
8965
8966CC="$lt_save_CC"
8967
8968
8969# Check whether --with-tags or --without-tags was given.
8970if test "${with_tags+set}" = set; then
8971 withval="$with_tags"
8972 tagnames="$withval"
8973fi;
8974
8975if test -f "$ltmain" && test -n "$tagnames"; then
8976 if test ! -f "${ofile}"; then
8977 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8978echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8979 fi
8980
8981 if test -z "$LTCC"; then
8982 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8983 if test -z "$LTCC"; then
8984 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8985echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8986 else
8987 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8988echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8989 fi
8990 fi
8991
8992 # Extract list of available tagged configurations in $ofile.
8993 # Note that this assumes the entire list is on one line.
8994 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8995
8996 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8997 for tagname in $tagnames; do
8998 IFS="$lt_save_ifs"
8999 # Check whether tagname contains only valid characters
9000 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9001 "") ;;
9002 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9003echo "$as_me: error: invalid tag name: $tagname" >&2;}
9004 { (exit 1); exit 1; }; }
9005 ;;
9006 esac
9007
9008 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9009 then
9010 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9011echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9012 { (exit 1); exit 1; }; }
9013 fi
9014
9015 # Update the list of available tags.
9016 if test -n "$tagname"; then
9017 echo appending configuration tag \"$tagname\" to $ofile
9018
9019 case $tagname in
9020 CXX)
9021 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9022 ac_ext=cc
9023ac_cpp='$CXXCPP $CPPFLAGS'
9024ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9025ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9026ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9027
9028
9029
9030
9031archive_cmds_need_lc_CXX=no
9032allow_undefined_flag_CXX=
9033always_export_symbols_CXX=no
9034archive_expsym_cmds_CXX=
9035export_dynamic_flag_spec_CXX=
9036hardcode_direct_CXX=no
9037hardcode_libdir_flag_spec_CXX=
9038hardcode_libdir_flag_spec_ld_CXX=
9039hardcode_libdir_separator_CXX=
9040hardcode_minus_L_CXX=no
9041hardcode_automatic_CXX=no
9042module_cmds_CXX=
9043module_expsym_cmds_CXX=
9044link_all_deplibs_CXX=unknown
9045old_archive_cmds_CXX=$old_archive_cmds
9046no_undefined_flag_CXX=
9047whole_archive_flag_spec_CXX=
9048enable_shared_with_static_runtimes_CXX=no
9049
9050# Dependencies to place before and after the object being linked:
9051predep_objects_CXX=
9052postdep_objects_CXX=
9053predeps_CXX=
9054postdeps_CXX=
9055compiler_lib_search_path_CXX=
9056
9057# Source file extension for C++ test sources.
9058ac_ext=cc
9059
9060# Object file extension for compiled C++ test sources.
9061objext=o
9062objext_CXX=$objext
9063
9064# Code to be used in simple compile tests
9065lt_simple_compile_test_code="int some_variable = 0;\n"
9066
9067# Code to be used in simple link tests
9068lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9069
9070# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9071
9072# If no C compiler was specified, use CC.
9073LTCC=${LTCC-"$CC"}
9074
9075# Allow CC to be a program name with arguments.
9076compiler=$CC
9077
9078
9079# Allow CC to be a program name with arguments.
9080lt_save_CC=$CC
9081lt_save_LD=$LD
9082lt_save_GCC=$GCC
9083GCC=$GXX
9084lt_save_with_gnu_ld=$with_gnu_ld
9085lt_save_path_LD=$lt_cv_path_LD
9086if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9087 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9088else
9089 unset lt_cv_prog_gnu_ld
9090fi
9091if test -n "${lt_cv_path_LDCXX+set}"; then
9092 lt_cv_path_LD=$lt_cv_path_LDCXX
9093else
9094 unset lt_cv_path_LD
9095fi
9096test -z "${LDCXX+set}" || LD=$LDCXX
9097CC=${CXX-"c++"}
9098compiler=$CC
9099compiler_CXX=$CC
9100cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9101
9102# We don't want -fno-exception wen compiling C++ code, so set the
9103# no_builtin_flag separately
9104if test "$GXX" = yes; then
9105 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9106else
9107 lt_prog_compiler_no_builtin_flag_CXX=
9108fi
9109
9110if test "$GXX" = yes; then
9111 # Set up default GNU C++ configuration
9112
9113
9114# Check whether --with-gnu-ld or --without-gnu-ld was given.
9115if test "${with_gnu_ld+set}" = set; then
9116 withval="$with_gnu_ld"
9117 test "$withval" = no || with_gnu_ld=yes
9118else
9119 with_gnu_ld=no
9120fi;
9121ac_prog=ld
9122if test "$GCC" = yes; then
9123 # Check if gcc -print-prog-name=ld gives a path.
9124 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9125echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9126 case $host in
9127 *-*-mingw*)
9128 # gcc leaves a trailing carriage return which upsets mingw
9129 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9130 *)
9131 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9132 esac
9133 case $ac_prog in
9134 # Accept absolute paths.
9135 [\\/]* | ?:[\\/]*)
9136 re_direlt='/[^/][^/]*/\.\./'
Brian Gaeke0a621332004-09-08 20:38:05 +00009137 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00009138 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9139 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9140 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9141 done
9142 test -z "$LD" && LD="$ac_prog"
9143 ;;
9144 "")
9145 # If it fails, then pretend we aren't using GCC.
9146 ac_prog=ld
9147 ;;
9148 *)
9149 # If it is relative, then search for the first ld in PATH.
9150 with_gnu_ld=unknown
9151 ;;
9152 esac
9153elif test "$with_gnu_ld" = yes; then
9154 echo "$as_me:$LINENO: checking for GNU ld" >&5
9155echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9156else
9157 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9158echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9159fi
9160if test "${lt_cv_path_LD+set}" = set; then
9161 echo $ECHO_N "(cached) $ECHO_C" >&6
9162else
9163 if test -z "$LD"; then
9164 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9165 for ac_dir in $PATH; do
9166 IFS="$lt_save_ifs"
9167 test -z "$ac_dir" && ac_dir=.
9168 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9169 lt_cv_path_LD="$ac_dir/$ac_prog"
9170 # Check to see if the program is GNU ld. I'd rather use --version,
9171 # but apparently some GNU ld's only accept -v.
9172 # Break only if it was the GNU/non-GNU ld that we prefer.
9173 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9174 *GNU* | *'with BFD'*)
9175 test "$with_gnu_ld" != no && break
9176 ;;
9177 *)
9178 test "$with_gnu_ld" != yes && break
9179 ;;
9180 esac
9181 fi
9182 done
9183 IFS="$lt_save_ifs"
9184else
9185 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9186fi
9187fi
9188
9189LD="$lt_cv_path_LD"
9190if test -n "$LD"; then
9191 echo "$as_me:$LINENO: result: $LD" >&5
9192echo "${ECHO_T}$LD" >&6
9193else
9194 echo "$as_me:$LINENO: result: no" >&5
9195echo "${ECHO_T}no" >&6
9196fi
9197test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9198echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9199 { (exit 1); exit 1; }; }
9200echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9201echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9202if test "${lt_cv_prog_gnu_ld+set}" = set; then
9203 echo $ECHO_N "(cached) $ECHO_C" >&6
9204else
9205 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
Brian Gaeke0a621332004-09-08 20:38:05 +00009206case `"$LD" -v 2>&1 </dev/null` in
John Criswell47fdd832003-07-14 16:52:07 +00009207*GNU* | *'with BFD'*)
9208 lt_cv_prog_gnu_ld=yes
9209 ;;
9210*)
9211 lt_cv_prog_gnu_ld=no
9212 ;;
9213esac
9214fi
9215echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9216echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9217with_gnu_ld=$lt_cv_prog_gnu_ld
9218
9219
9220
9221 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9222 # archiving commands below assume that GNU ld is being used.
9223 if test "$with_gnu_ld" = yes; then
9224 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225 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'
9226
9227 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9228 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9229
9230 # If archive_cmds runs LD, not CC, wlarc should be empty
9231 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9232 # investigate it a little bit more. (MM)
9233 wlarc='${wl}'
9234
9235 # ancient GNU ld didn't support --whole-archive et. al.
9236 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9237 grep 'no-whole-archive' > /dev/null; then
9238 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9239 else
9240 whole_archive_flag_spec_CXX=
9241 fi
9242 else
9243 with_gnu_ld=no
9244 wlarc=
9245
9246 # A generic and very simple default shared library creation
9247 # command for GNU C++ for the case where it uses the native
9248 # linker, instead of GNU ld. If possible, this setting should
9249 # overridden to take advantage of the native linker features on
9250 # the platform it is being used on.
Brian Gaeke0a621332004-09-08 20:38:05 +00009251 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
John Criswell47fdd832003-07-14 16:52:07 +00009252 fi
9253
9254 # Commands to make compiler produce verbose output that lists
9255 # what "hidden" libraries, object files and flags are used when
9256 # linking a shared library.
9257 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9258
9259else
9260 GXX=no
9261 with_gnu_ld=no
9262 wlarc=
9263fi
9264
9265# PORTME: fill in a description of your system's C++ link characteristics
9266echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9267echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9268ld_shlibs_CXX=yes
9269case $host_os in
9270 aix3*)
9271 # FIXME: insert proper C++ library support
9272 ld_shlibs_CXX=no
9273 ;;
9274 aix4* | aix5*)
9275 if test "$host_cpu" = ia64; then
9276 # On IA64, the linker does run time linking by default, so we don't
9277 # have to do anything special.
9278 aix_use_runtimelinking=no
9279 exp_sym_flag='-Bexport'
9280 no_entry_flag=""
9281 else
9282 aix_use_runtimelinking=no
9283
9284 # Test if we are trying to use run time linking or normal
9285 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9286 # need to do runtime linking.
9287 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9288 for ld_flag in $LDFLAGS; do
9289 case $ld_flag in
9290 *-brtl*)
9291 aix_use_runtimelinking=yes
9292 break
9293 ;;
9294 esac
9295 done
9296 esac
9297
9298 exp_sym_flag='-bexport'
9299 no_entry_flag='-bnoentry'
9300 fi
9301
9302 # When large executables or shared objects are built, AIX ld can
9303 # have problems creating the table of contents. If linking a library
9304 # or program results in "error TOC overflow" add -mminimal-toc to
9305 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9306 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9307
9308 archive_cmds_CXX=''
9309 hardcode_direct_CXX=yes
9310 hardcode_libdir_separator_CXX=':'
9311 link_all_deplibs_CXX=yes
9312
9313 if test "$GXX" = yes; then
9314 case $host_os in aix4.012|aix4.012.*)
9315 # We only want to do this on AIX 4.2 and lower, the check
9316 # below for broken collect2 doesn't work under 4.3+
9317 collect2name=`${CC} -print-prog-name=collect2`
9318 if test -f "$collect2name" && \
9319 strings "$collect2name" | grep resolve_lib_name >/dev/null
9320 then
9321 # We have reworked collect2
9322 hardcode_direct_CXX=yes
9323 else
9324 # We have old collect2
9325 hardcode_direct_CXX=unsupported
9326 # It fails to find uninstalled libraries when the uninstalled
9327 # path is not listed in the libpath. Setting hardcode_minus_L
9328 # to unsupported forces relinking
9329 hardcode_minus_L_CXX=yes
9330 hardcode_libdir_flag_spec_CXX='-L$libdir'
9331 hardcode_libdir_separator_CXX=
9332 fi
9333 esac
9334 shared_flag='-shared'
9335 else
9336 # not using gcc
9337 if test "$host_cpu" = ia64; then
9338 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9339 # chokes on -Wl,-G. The following line is correct:
9340 shared_flag='-G'
9341 else
9342 if test "$aix_use_runtimelinking" = yes; then
9343 shared_flag='${wl}-G'
9344 else
9345 shared_flag='${wl}-bM:SRE'
9346 fi
9347 fi
9348 fi
9349
9350 # It seems that -bexpall does not export symbols beginning with
9351 # underscore (_), so it is better to generate a list of symbols to export.
9352 always_export_symbols_CXX=yes
9353 if test "$aix_use_runtimelinking" = yes; then
9354 # Warning - without using the other runtime loading flags (-brtl),
9355 # -berok will link without error, but may produce a broken library.
9356 allow_undefined_flag_CXX='-berok'
9357 # Determine the default libpath from the value encoded in an empty executable.
9358 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009359#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009360/* confdefs.h. */
9361_ACEOF
9362cat confdefs.h >>conftest.$ac_ext
9363cat >>conftest.$ac_ext <<_ACEOF
9364/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009365
John Criswell47fdd832003-07-14 16:52:07 +00009366int
9367main ()
9368{
9369
9370 ;
9371 return 0;
9372}
9373_ACEOF
9374rm -f conftest.$ac_objext conftest$ac_exeext
9375if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00009376 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +00009377 ac_status=$?
9378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9379 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00009380 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9382 (eval $ac_try) 2>&5
9383 ac_status=$?
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); }; }; then
9386
9387aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9388}'`
9389# Check for a 64-bit object if we didn't find anything.
9390if 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; }
9391}'`; fi
9392else
9393 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009394sed 's/^/| /' conftest.$ac_ext >&5
9395
John Criswell47fdd832003-07-14 16:52:07 +00009396fi
Brian Gaeke0a621332004-09-08 20:38:05 +00009397rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009398if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9399
9400 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9401
9402 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"
9403 else
9404 if test "$host_cpu" = ia64; then
9405 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9406 allow_undefined_flag_CXX="-z nodefs"
9407 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"
9408 else
9409 # Determine the default libpath from the value encoded in an empty executable.
9410 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +00009411#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +00009412/* confdefs.h. */
9413_ACEOF
9414cat confdefs.h >>conftest.$ac_ext
9415cat >>conftest.$ac_ext <<_ACEOF
9416/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009417
John Criswell47fdd832003-07-14 16:52:07 +00009418int
9419main ()
9420{
9421
9422 ;
9423 return 0;
9424}
9425_ACEOF
9426rm -f conftest.$ac_objext conftest$ac_exeext
9427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +00009428 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +00009429 ac_status=$?
9430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9431 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +00009432 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 (eval $ac_try) 2>&5
9435 ac_status=$?
9436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9437 (exit $ac_status); }; }; then
9438
9439aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9440}'`
9441# Check for a 64-bit object if we didn't find anything.
9442if 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; }
9443}'`; fi
9444else
9445 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009446sed 's/^/| /' conftest.$ac_ext >&5
9447
John Criswell47fdd832003-07-14 16:52:07 +00009448fi
Brian Gaeke0a621332004-09-08 20:38:05 +00009449rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009450if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9451
9452 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9453 # Warning - without using the other run time loading flags,
9454 # -berok will link without error, but may produce a broken library.
9455 no_undefined_flag_CXX=' ${wl}-bernotok'
9456 allow_undefined_flag_CXX=' ${wl}-berok'
9457 # -bexpall does not export symbols beginning with underscore (_)
9458 always_export_symbols_CXX=yes
9459 # Exported symbols can be pulled into shared objects from archives
9460 whole_archive_flag_spec_CXX=' '
9461 archive_cmds_need_lc_CXX=yes
9462 # This is similar to how AIX traditionally builds it's shared libraries.
Brian Gaeke0a621332004-09-08 20:38:05 +00009463 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +00009464 fi
9465 fi
9466 ;;
9467 chorus*)
9468 case $cc_basename in
9469 *)
9470 # FIXME: insert proper C++ library support
9471 ld_shlibs_CXX=no
9472 ;;
9473 esac
9474 ;;
9475
9476 cygwin* | mingw* | pw32*)
9477 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9478 # as there is no search path for DLLs.
9479 hardcode_libdir_flag_spec_CXX='-L$libdir'
9480 allow_undefined_flag_CXX=unsupported
9481 always_export_symbols_CXX=no
9482 enable_shared_with_static_runtimes_CXX=yes
9483
9484 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9485 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'
9486 # If the export-symbols file already is a .def file (1st line
9487 # is EXPORTS), use it as is; otherwise, prepend...
9488 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9489 cp $export_symbols $output_objdir/$soname.def;
9490 else
9491 echo EXPORTS > $output_objdir/$soname.def;
9492 cat $export_symbols >> $output_objdir/$soname.def;
Brian Gaeke0a621332004-09-08 20:38:05 +00009493 fi${_S_}
John Criswell47fdd832003-07-14 16:52:07 +00009494 $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'
9495 else
9496 ld_shlibs_CXX=no
9497 fi
9498 ;;
9499
9500 darwin* | rhapsody*)
Brian Gaeke0a621332004-09-08 20:38:05 +00009501 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
John Criswell47fdd832003-07-14 16:52:07 +00009502 archive_cmds_need_lc_CXX=no
9503 case "$host_os" in
9504 rhapsody* | darwin1.[012])
9505 allow_undefined_flag_CXX='-undefined suppress'
9506 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +00009507 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
9508 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9509 ;;
9510 *) # Darwin 7.0 on
9511 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
9512 10.[012])
9513 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9514 ;;
9515 *) # 10.3 on
9516 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
9517 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9518 else
9519 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9520 fi
9521 ;;
9522 esac
John Criswell47fdd832003-07-14 16:52:07 +00009523 ;;
9524 esac
Brian Gaeke0a621332004-09-08 20:38:05 +00009525 lt_int_apple_cc_single_mod=no
9526 output_verbose_link_cmd='echo'
9527 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9528 lt_int_apple_cc_single_mod=yes
9529 fi
9530 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9531 archive_cmds_CXX='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9532 else
9533 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9534 fi
9535 module_cmds_CXX='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +00009536
9537 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
Brian Gaeke0a621332004-09-08 20:38:05 +00009538 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9539 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9540 else
9541 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9542 fi
9543 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
John Criswell47fdd832003-07-14 16:52:07 +00009544 hardcode_direct_CXX=no
9545 hardcode_automatic_CXX=yes
9546 hardcode_shlibpath_var_CXX=unsupported
9547 whole_archive_flag_spec_CXX='-all_load $convenience'
9548 link_all_deplibs_CXX=yes
Brian Gaeke0a621332004-09-08 20:38:05 +00009549 fi
John Criswell47fdd832003-07-14 16:52:07 +00009550 ;;
9551
9552 dgux*)
9553 case $cc_basename in
9554 ec++)
9555 # FIXME: insert proper C++ library support
9556 ld_shlibs_CXX=no
9557 ;;
9558 ghcx)
9559 # Green Hills C++ Compiler
9560 # FIXME: insert proper C++ library support
9561 ld_shlibs_CXX=no
9562 ;;
9563 *)
9564 # FIXME: insert proper C++ library support
9565 ld_shlibs_CXX=no
9566 ;;
9567 esac
9568 ;;
9569 freebsd12*)
9570 # C++ shared libraries reported to be fairly broken before switch to ELF
9571 ld_shlibs_CXX=no
9572 ;;
9573 freebsd-elf*)
9574 archive_cmds_need_lc_CXX=no
9575 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +00009576 freebsd*)
John Criswell47fdd832003-07-14 16:52:07 +00009577 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9578 # conventions
9579 ld_shlibs_CXX=yes
9580 ;;
9581 gnu*)
9582 ;;
9583 hpux9*)
9584 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9585 hardcode_libdir_separator_CXX=:
9586 export_dynamic_flag_spec_CXX='${wl}-E'
9587 hardcode_direct_CXX=yes
9588 hardcode_minus_L_CXX=yes # Not in the search PATH,
9589 # but as the default
9590 # location of the library.
9591
9592 case $cc_basename in
9593 CC)
9594 # FIXME: insert proper C++ library support
9595 ld_shlibs_CXX=no
9596 ;;
9597 aCC)
Brian Gaeke0a621332004-09-08 20:38:05 +00009598 archive_cmds_CXX='$rm $output_objdir/$soname${_S_}$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +00009599 # Commands to make compiler produce verbose output that lists
9600 # what "hidden" libraries, object files and flags are used when
9601 # linking a shared library.
9602 #
9603 # There doesn't appear to be a way to prevent this compiler from
9604 # explicitly linking system object files so we need to strip them
9605 # from the output so that they don't get included in the library
9606 # dependencies.
9607 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'
9608 ;;
9609 *)
9610 if test "$GXX" = yes; then
Brian Gaeke0a621332004-09-08 20:38:05 +00009611 archive_cmds_CXX='$rm $output_objdir/$soname${_S_}$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +00009612 else
9613 # FIXME: insert proper C++ library support
9614 ld_shlibs_CXX=no
9615 fi
9616 ;;
9617 esac
9618 ;;
9619 hpux10*|hpux11*)
9620 if test $with_gnu_ld = no; then
9621 case "$host_cpu" in
9622 hppa*64*)
9623 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9624 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9625 hardcode_libdir_separator_CXX=:
9626 ;;
9627 ia64*)
9628 hardcode_libdir_flag_spec_CXX='-L$libdir'
9629 ;;
9630 *)
9631 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9632 hardcode_libdir_separator_CXX=:
9633 export_dynamic_flag_spec_CXX='${wl}-E'
9634 ;;
9635 esac
9636 fi
9637 case "$host_cpu" in
9638 hppa*64*)
9639 hardcode_direct_CXX=no
9640 hardcode_shlibpath_var_CXX=no
9641 ;;
9642 ia64*)
9643 hardcode_direct_CXX=no
9644 hardcode_shlibpath_var_CXX=no
9645 hardcode_minus_L_CXX=yes # Not in the search PATH,
9646 # but as the default
9647 # location of the library.
9648 ;;
9649 *)
9650 hardcode_direct_CXX=yes
9651 hardcode_minus_L_CXX=yes # Not in the search PATH,
9652 # but as the default
9653 # location of the library.
9654 ;;
9655 esac
9656
9657 case $cc_basename in
9658 CC)
9659 # FIXME: insert proper C++ library support
9660 ld_shlibs_CXX=no
9661 ;;
9662 aCC)
9663 case "$host_cpu" in
9664 hppa*64*|ia64*)
9665 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9666 ;;
9667 *)
9668 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9669 ;;
9670 esac
9671 # Commands to make compiler produce verbose output that lists
9672 # what "hidden" libraries, object files and flags are used when
9673 # linking a shared library.
9674 #
9675 # There doesn't appear to be a way to prevent this compiler from
9676 # explicitly linking system object files so we need to strip them
9677 # from the output so that they don't get included in the library
9678 # dependencies.
9679 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'
9680 ;;
9681 *)
9682 if test "$GXX" = yes; then
9683 if test $with_gnu_ld = no; then
9684 case "$host_cpu" in
9685 ia64*|hppa*64*)
9686 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9687 ;;
9688 *)
9689 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'
9690 ;;
9691 esac
9692 fi
9693 else
9694 # FIXME: insert proper C++ library support
9695 ld_shlibs_CXX=no
9696 fi
9697 ;;
9698 esac
9699 ;;
9700 irix5* | irix6*)
9701 case $cc_basename in
9702 CC)
9703 # SGI C++
9704 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'
9705
9706 # Archives containing C++ object files must be created using
9707 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9708 # necessary to make sure instantiated templates are included
9709 # in the archive.
9710 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9711 ;;
9712 *)
9713 if test "$GXX" = yes; then
9714 if test "$with_gnu_ld" = no; then
9715 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'
9716 else
9717 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'
9718 fi
9719 fi
9720 link_all_deplibs_CXX=yes
9721 ;;
9722 esac
9723 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9724 hardcode_libdir_separator_CXX=:
9725 ;;
9726 linux*)
9727 case $cc_basename in
9728 KCC)
9729 # Kuck and Associates, Inc. (KAI) C++ Compiler
9730
9731 # KCC will only create a shared library if the output file
9732 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9733 # to its proper name (with version) after linking.
9734 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'
9735 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'
9736 # Commands to make compiler produce verbose output that lists
9737 # what "hidden" libraries, object files and flags are used when
9738 # linking a shared library.
9739 #
9740 # There doesn't appear to be a way to prevent this compiler from
9741 # explicitly linking system object files so we need to strip them
9742 # from the output so that they don't get included in the library
9743 # dependencies.
9744 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'
9745
9746 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9747 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9748
9749 # Archives containing C++ object files must be created using
9750 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9751 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9752 ;;
9753 icpc)
9754 # Intel C++
9755 with_gnu_ld=yes
9756 archive_cmds_need_lc_CXX=no
9757 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9758 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'
9759 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9760 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9761 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9762 ;;
9763 cxx)
9764 # Compaq C++
9765 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9766 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'
9767
9768 runpath_var=LD_RUN_PATH
9769 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9770 hardcode_libdir_separator_CXX=:
9771
9772 # Commands to make compiler produce verbose output that lists
9773 # what "hidden" libraries, object files and flags are used when
9774 # linking a shared library.
9775 #
9776 # There doesn't appear to be a way to prevent this compiler from
9777 # explicitly linking system object files so we need to strip them
9778 # from the output so that they don't get included in the library
9779 # dependencies.
9780 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'
9781 ;;
9782 esac
9783 ;;
9784 lynxos*)
9785 # FIXME: insert proper C++ library support
9786 ld_shlibs_CXX=no
9787 ;;
9788 m88k*)
9789 # FIXME: insert proper C++ library support
9790 ld_shlibs_CXX=no
9791 ;;
9792 mvs*)
9793 case $cc_basename in
9794 cxx)
9795 # FIXME: insert proper C++ library support
9796 ld_shlibs_CXX=no
9797 ;;
9798 *)
9799 # FIXME: insert proper C++ library support
9800 ld_shlibs_CXX=no
9801 ;;
9802 esac
9803 ;;
9804 netbsd*)
9805 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9806 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9807 wlarc=
9808 hardcode_libdir_flag_spec_CXX='-R$libdir'
9809 hardcode_direct_CXX=yes
9810 hardcode_shlibpath_var_CXX=no
9811 fi
9812 # Workaround some broken pre-1.5 toolchains
9813 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9814 ;;
9815 osf3*)
9816 case $cc_basename in
9817 KCC)
9818 # Kuck and Associates, Inc. (KAI) C++ Compiler
9819
9820 # KCC will only create a shared library if the output file
9821 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9822 # to its proper name (with version) after linking.
9823 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'
9824
9825 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9826 hardcode_libdir_separator_CXX=:
9827
9828 # Archives containing C++ object files must be created using
9829 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9830 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9831
9832 ;;
9833 RCC)
9834 # Rational C++ 2.4.1
9835 # FIXME: insert proper C++ library support
9836 ld_shlibs_CXX=no
9837 ;;
9838 cxx)
9839 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9840 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'
9841
9842 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9843 hardcode_libdir_separator_CXX=:
9844
9845 # Commands to make compiler produce verbose output that lists
9846 # what "hidden" libraries, object files and flags are used when
9847 # linking a shared library.
9848 #
9849 # There doesn't appear to be a way to prevent this compiler from
9850 # explicitly linking system object files so we need to strip them
9851 # from the output so that they don't get included in the library
9852 # dependencies.
9853 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'
9854 ;;
9855 *)
9856 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9857 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9858 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'
9859
9860 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9861 hardcode_libdir_separator_CXX=:
9862
9863 # Commands to make compiler produce verbose output that lists
9864 # what "hidden" libraries, object files and flags are used when
9865 # linking a shared library.
9866 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9867
9868 else
9869 # FIXME: insert proper C++ library support
9870 ld_shlibs_CXX=no
9871 fi
9872 ;;
9873 esac
9874 ;;
9875 osf4* | osf5*)
9876 case $cc_basename in
9877 KCC)
9878 # Kuck and Associates, Inc. (KAI) C++ Compiler
9879
9880 # KCC will only create a shared library if the output file
9881 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9882 # to its proper name (with version) after linking.
9883 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'
9884
9885 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9886 hardcode_libdir_separator_CXX=:
9887
9888 # Archives containing C++ object files must be created using
9889 # the KAI C++ compiler.
9890 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9891 ;;
9892 RCC)
9893 # Rational C++ 2.4.1
9894 # FIXME: insert proper C++ library support
9895 ld_shlibs_CXX=no
9896 ;;
9897 cxx)
9898 allow_undefined_flag_CXX=' -expect_unresolved \*'
9899 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'
Brian Gaeke0a621332004-09-08 20:38:05 +00009900 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done${_S_}
9901 echo "-hidden">> $lib.exp${_S_}
9902 $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${_S_}
John Criswell47fdd832003-07-14 16:52:07 +00009903 $rm $lib.exp'
9904
9905 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9906 hardcode_libdir_separator_CXX=:
9907
9908 # Commands to make compiler produce verbose output that lists
9909 # what "hidden" libraries, object files and flags are used when
9910 # linking a shared library.
9911 #
9912 # There doesn't appear to be a way to prevent this compiler from
9913 # explicitly linking system object files so we need to strip them
9914 # from the output so that they don't get included in the library
9915 # dependencies.
9916 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'
9917 ;;
9918 *)
9919 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9920 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9921 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'
9922
9923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9924 hardcode_libdir_separator_CXX=:
9925
9926 # Commands to make compiler produce verbose output that lists
9927 # what "hidden" libraries, object files and flags are used when
9928 # linking a shared library.
9929 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9930
9931 else
9932 # FIXME: insert proper C++ library support
9933 ld_shlibs_CXX=no
9934 fi
9935 ;;
9936 esac
9937 ;;
9938 psos*)
9939 # FIXME: insert proper C++ library support
9940 ld_shlibs_CXX=no
9941 ;;
9942 sco*)
9943 archive_cmds_need_lc_CXX=no
9944 case $cc_basename in
9945 CC)
9946 # FIXME: insert proper C++ library support
9947 ld_shlibs_CXX=no
9948 ;;
9949 *)
9950 # FIXME: insert proper C++ library support
9951 ld_shlibs_CXX=no
9952 ;;
9953 esac
9954 ;;
9955 sunos4*)
9956 case $cc_basename in
9957 CC)
9958 # Sun C++ 4.x
9959 # FIXME: insert proper C++ library support
9960 ld_shlibs_CXX=no
9961 ;;
9962 lcc)
9963 # Lucid
9964 # FIXME: insert proper C++ library support
9965 ld_shlibs_CXX=no
9966 ;;
9967 *)
9968 # FIXME: insert proper C++ library support
9969 ld_shlibs_CXX=no
9970 ;;
9971 esac
9972 ;;
9973 solaris*)
9974 case $cc_basename in
9975 CC)
9976 # Sun C++ 4.2, 5.x and Centerline C++
9977 no_undefined_flag_CXX=' -zdefs'
9978 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
Brian Gaeke0a621332004-09-08 20:38:05 +00009979 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
9980 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +00009981
9982 hardcode_libdir_flag_spec_CXX='-R$libdir'
9983 hardcode_shlibpath_var_CXX=no
9984 case $host_os in
9985 solaris2.0-5 | solaris2.0-5.*) ;;
9986 *)
9987 # The C++ compiler is used as linker so we must use $wl
9988 # flag to pass the commands to the underlying system
9989 # linker.
9990 # Supported since Solaris 2.6 (maybe 2.5.1?)
9991 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9992 ;;
9993 esac
9994 link_all_deplibs_CXX=yes
9995
9996 # Commands to make compiler produce verbose output that lists
9997 # what "hidden" libraries, object files and flags are used when
9998 # linking a shared library.
9999 #
10000 # There doesn't appear to be a way to prevent this compiler from
10001 # explicitly linking system object files so we need to strip them
10002 # from the output so that they don't get included in the library
10003 # dependencies.
10004 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'
10005
10006 # Archives containing C++ object files must be created using
10007 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10008 # necessary to make sure instantiated templates are included
10009 # in the archive.
10010 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10011 ;;
10012 gcx)
10013 # Green Hills C++ Compiler
10014 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10015
10016 # The C++ compiler must be used to create the archive.
10017 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10018 ;;
10019 *)
10020 # GNU C++ compiler with Solaris linker
10021 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10022 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10023 if $CC --version | grep -v '^2\.7' > /dev/null; then
Reid Spencer9751dbf2004-09-07 18:04:45 +000010024 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Brian Gaeke0a621332004-09-08 20:38:05 +000010025 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
10026 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000010027
10028 # Commands to make compiler produce verbose output that lists
10029 # what "hidden" libraries, object files and flags are used when
10030 # linking a shared library.
Reid Spencer9751dbf2004-09-07 18:04:45 +000010031 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
John Criswell47fdd832003-07-14 16:52:07 +000010032 else
10033 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10034 # platform.
10035 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
Brian Gaeke0a621332004-09-08 20:38:05 +000010036 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
10037 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000010038
10039 # Commands to make compiler produce verbose output that lists
10040 # what "hidden" libraries, object files and flags are used when
10041 # linking a shared library.
10042 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10043 fi
10044
10045 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10046 fi
10047 ;;
10048 esac
10049 ;;
10050 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10051 archive_cmds_need_lc_CXX=no
10052 ;;
10053 tandem*)
10054 case $cc_basename in
10055 NCC)
10056 # NonStop-UX NCC 3.20
10057 # FIXME: insert proper C++ library support
10058 ld_shlibs_CXX=no
10059 ;;
10060 *)
10061 # FIXME: insert proper C++ library support
10062 ld_shlibs_CXX=no
10063 ;;
10064 esac
10065 ;;
10066 vxworks*)
10067 # FIXME: insert proper C++ library support
10068 ld_shlibs_CXX=no
10069 ;;
10070 *)
10071 # FIXME: insert proper C++ library support
10072 ld_shlibs_CXX=no
10073 ;;
10074esac
10075echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10076echo "${ECHO_T}$ld_shlibs_CXX" >&6
10077test "$ld_shlibs_CXX" = no && can_build_shared=no
10078
10079GCC_CXX="$GXX"
10080LD_CXX="$LD"
10081
John Criswell47fdd832003-07-14 16:52:07 +000010082
10083cat > conftest.$ac_ext <<EOF
10084class Foo
10085{
10086public:
10087 Foo (void) { a = 0; }
10088private:
10089 int a;
10090};
10091EOF
10092
10093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10094 (eval $ac_compile) 2>&5
10095 ac_status=$?
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; then
10098 # Parse the compiler output and extract the necessary
10099 # objects, libraries and library flags.
10100
10101 # Sentinel used to keep track of whether or not we are before
10102 # the conftest object file.
10103 pre_test_object_deps_done=no
10104
10105 # The `*' in the case matches for architectures that use `case' in
10106 # $output_verbose_cmd can trigger glob expansion during the loop
10107 # eval without this substitution.
10108 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10109
10110 for p in `eval $output_verbose_link_cmd`; do
10111 case $p in
10112
10113 -L* | -R* | -l*)
10114 # Some compilers place space between "-{L,R}" and the path.
10115 # Remove the space.
10116 if test $p = "-L" \
10117 || test $p = "-R"; then
10118 prev=$p
10119 continue
10120 else
10121 prev=
10122 fi
10123
10124 if test "$pre_test_object_deps_done" = no; then
10125 case $p in
10126 -L* | -R*)
10127 # Internal compiler library paths should come after those
10128 # provided the user. The postdeps already come after the
10129 # user supplied libs so there is no need to process them.
10130 if test -z "$compiler_lib_search_path_CXX"; then
10131 compiler_lib_search_path_CXX="${prev}${p}"
10132 else
10133 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10134 fi
10135 ;;
10136 # The "-l" case would never come before the object being
10137 # linked, so don't bother handling this case.
10138 esac
10139 else
10140 if test -z "$postdeps_CXX"; then
10141 postdeps_CXX="${prev}${p}"
10142 else
10143 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10144 fi
10145 fi
10146 ;;
10147
10148 *.$objext)
10149 # This assumes that the test object file only shows up
10150 # once in the compiler output.
10151 if test "$p" = "conftest.$objext"; then
10152 pre_test_object_deps_done=yes
10153 continue
10154 fi
10155
10156 if test "$pre_test_object_deps_done" = no; then
10157 if test -z "$predep_objects_CXX"; then
10158 predep_objects_CXX="$p"
10159 else
10160 predep_objects_CXX="$predep_objects_CXX $p"
10161 fi
10162 else
10163 if test -z "$postdep_objects_CXX"; then
10164 postdep_objects_CXX="$p"
10165 else
10166 postdep_objects_CXX="$postdep_objects_CXX $p"
10167 fi
10168 fi
10169 ;;
10170
10171 *) ;; # Ignore the rest.
10172
10173 esac
10174 done
10175
10176 # Clean up.
10177 rm -f a.out a.exe
10178else
10179 echo "libtool.m4: error: problem compiling CXX test program"
10180fi
10181
10182$rm -f confest.$objext
10183
10184case " $postdeps_CXX " in
10185*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10186esac
10187
10188lt_prog_compiler_wl_CXX=
10189lt_prog_compiler_pic_CXX=
10190lt_prog_compiler_static_CXX=
10191
10192echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10193echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10194
10195 # C++ specific cases for pic, static, wl, etc.
10196 if test "$GXX" = yes; then
10197 lt_prog_compiler_wl_CXX='-Wl,'
10198 lt_prog_compiler_static_CXX='-static'
10199
10200 case $host_os in
10201 aix*)
10202 # All AIX code is PIC.
10203 if test "$host_cpu" = ia64; then
10204 # AIX 5 now supports IA64 processor
10205 lt_prog_compiler_static_CXX='-Bstatic'
10206 fi
10207 ;;
10208 amigaos*)
10209 # FIXME: we need at least 68020 code to build shared libraries, but
10210 # adding the `-m68020' flag to GCC prevents building anything better,
10211 # like `-m68040'.
10212 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10213 ;;
10214 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10215 # PIC is the default for these OSes.
10216 ;;
10217 mingw* | os2* | pw32*)
10218 # This hack is so that the source file can tell whether it is being
10219 # built for inclusion in a dll (and should export symbols for example).
10220 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10221 ;;
10222 darwin* | rhapsody*)
10223 # PIC is the default on this platform
10224 # Common symbols not allowed in MH_DYLIB files
10225 lt_prog_compiler_pic_CXX='-fno-common'
10226 ;;
10227 *djgpp*)
10228 # DJGPP does not support shared libraries at all
10229 lt_prog_compiler_pic_CXX=
10230 ;;
10231 sysv4*MP*)
10232 if test -d /usr/nec; then
10233 lt_prog_compiler_pic_CXX=-Kconform_pic
10234 fi
10235 ;;
10236 hpux*)
10237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10238 # not for PA HP-UX.
10239 case "$host_cpu" in
10240 hppa*64*|ia64*)
10241 ;;
10242 *)
10243 lt_prog_compiler_pic_CXX='-fPIC'
10244 ;;
10245 esac
10246 ;;
10247 *)
10248 lt_prog_compiler_pic_CXX='-fPIC'
10249 ;;
10250 esac
10251 else
10252 case $host_os in
10253 aix4* | aix5*)
10254 # All AIX code is PIC.
10255 if test "$host_cpu" = ia64; then
10256 # AIX 5 now supports IA64 processor
10257 lt_prog_compiler_static_CXX='-Bstatic'
10258 else
10259 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10260 fi
10261 ;;
10262 chorus*)
10263 case $cc_basename in
10264 cxch68)
10265 # Green Hills C++ Compiler
10266 # _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"
10267 ;;
10268 esac
10269 ;;
10270 dgux*)
10271 case $cc_basename in
10272 ec++)
10273 lt_prog_compiler_pic_CXX='-KPIC'
10274 ;;
10275 ghcx)
10276 # Green Hills C++ Compiler
10277 lt_prog_compiler_pic_CXX='-pic'
10278 ;;
10279 *)
10280 ;;
10281 esac
10282 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +000010283 freebsd*)
John Criswell47fdd832003-07-14 16:52:07 +000010284 # FreeBSD uses GNU C++
10285 ;;
10286 hpux9* | hpux10* | hpux11*)
10287 case $cc_basename in
10288 CC)
10289 lt_prog_compiler_wl_CXX='-Wl,'
10290 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10291 if test "$host_cpu" != ia64; then
10292 lt_prog_compiler_pic_CXX='+Z'
10293 fi
10294 ;;
10295 aCC)
10296 lt_prog_compiler_wl_CXX='-Wl,'
10297 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10298 case "$host_cpu" in
10299 hppa*64*|ia64*)
10300 # +Z the default
10301 ;;
10302 *)
10303 lt_prog_compiler_pic_CXX='+Z'
10304 ;;
10305 esac
10306 ;;
10307 *)
10308 ;;
10309 esac
10310 ;;
10311 irix5* | irix6* | nonstopux*)
10312 case $cc_basename in
10313 CC)
10314 lt_prog_compiler_wl_CXX='-Wl,'
10315 lt_prog_compiler_static_CXX='-non_shared'
10316 # CC pic flag -KPIC is the default.
10317 ;;
10318 *)
10319 ;;
10320 esac
10321 ;;
10322 linux*)
10323 case $cc_basename in
10324 KCC)
10325 # KAI C++ Compiler
10326 lt_prog_compiler_wl_CXX='--backend -Wl,'
10327 lt_prog_compiler_pic_CXX='-fPIC'
10328 ;;
10329 icpc)
10330 # Intel C++
10331 lt_prog_compiler_wl_CXX='-Wl,'
10332 lt_prog_compiler_pic_CXX='-KPIC'
10333 lt_prog_compiler_static_CXX='-static'
10334 ;;
10335 cxx)
10336 # Compaq C++
10337 # Make sure the PIC flag is empty. It appears that all Alpha
10338 # Linux and Compaq Tru64 Unix objects are PIC.
10339 lt_prog_compiler_pic_CXX=
10340 lt_prog_compiler_static_CXX='-non_shared'
10341 ;;
10342 *)
10343 ;;
10344 esac
10345 ;;
10346 lynxos*)
10347 ;;
10348 m88k*)
10349 ;;
10350 mvs*)
10351 case $cc_basename in
10352 cxx)
10353 lt_prog_compiler_pic_CXX='-W c,exportall'
10354 ;;
10355 *)
10356 ;;
10357 esac
10358 ;;
10359 netbsd*)
10360 ;;
10361 osf3* | osf4* | osf5*)
10362 case $cc_basename in
10363 KCC)
10364 lt_prog_compiler_wl_CXX='--backend -Wl,'
10365 ;;
10366 RCC)
10367 # Rational C++ 2.4.1
10368 lt_prog_compiler_pic_CXX='-pic'
10369 ;;
10370 cxx)
10371 # Digital/Compaq C++
10372 lt_prog_compiler_wl_CXX='-Wl,'
10373 # Make sure the PIC flag is empty. It appears that all Alpha
10374 # Linux and Compaq Tru64 Unix objects are PIC.
10375 lt_prog_compiler_pic_CXX=
10376 lt_prog_compiler_static_CXX='-non_shared'
10377 ;;
10378 *)
10379 ;;
10380 esac
10381 ;;
10382 psos*)
10383 ;;
10384 sco*)
10385 case $cc_basename in
10386 CC)
10387 lt_prog_compiler_pic_CXX='-fPIC'
10388 ;;
10389 *)
10390 ;;
10391 esac
10392 ;;
10393 solaris*)
10394 case $cc_basename in
10395 CC)
10396 # Sun C++ 4.2, 5.x and Centerline C++
10397 lt_prog_compiler_pic_CXX='-KPIC'
10398 lt_prog_compiler_static_CXX='-Bstatic'
10399 lt_prog_compiler_wl_CXX='-Qoption ld '
10400 ;;
10401 gcx)
10402 # Green Hills C++ Compiler
10403 lt_prog_compiler_pic_CXX='-PIC'
10404 ;;
10405 *)
10406 ;;
10407 esac
10408 ;;
10409 sunos4*)
10410 case $cc_basename in
10411 CC)
10412 # Sun C++ 4.x
10413 lt_prog_compiler_pic_CXX='-pic'
10414 lt_prog_compiler_static_CXX='-Bstatic'
10415 ;;
10416 lcc)
10417 # Lucid
10418 lt_prog_compiler_pic_CXX='-pic'
10419 ;;
10420 *)
10421 ;;
10422 esac
10423 ;;
10424 tandem*)
10425 case $cc_basename in
10426 NCC)
10427 # NonStop-UX NCC 3.20
10428 lt_prog_compiler_pic_CXX='-KPIC'
10429 ;;
10430 *)
10431 ;;
10432 esac
10433 ;;
10434 unixware*)
10435 ;;
10436 vxworks*)
10437 ;;
10438 *)
10439 lt_prog_compiler_can_build_shared_CXX=no
10440 ;;
10441 esac
10442 fi
10443
10444echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10445echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10446
10447#
10448# Check to make sure the PIC flag actually works.
10449#
10450if test -n "$lt_prog_compiler_pic_CXX"; then
Brian Gaeke0a621332004-09-08 20:38:05 +000010451 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010452echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10453if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10454 echo $ECHO_N "(cached) $ECHO_C" >&6
10455else
10456 lt_prog_compiler_pic_works_CXX=no
10457 ac_outfile=conftest.$ac_objext
10458 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10459 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10460 # Insert the option either (1) after the last *FLAGS variable, or
10461 # (2) before a word containing "conftest.", or (3) at the end.
10462 # Note that $ac_compile itself does not contain backslashes and begins
10463 # with a dollar sign (not a hyphen), so the echo should work correctly.
10464 # The option is referenced via a variable to avoid confusing sed.
10465 lt_compile=`echo "$ac_compile" | $SED \
10466 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10468 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke0a621332004-09-08 20:38:05 +000010469 (eval echo "\"\$as_me:10469: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010470 (eval "$lt_compile" 2>conftest.err)
10471 ac_status=$?
10472 cat conftest.err >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000010473 echo "$as_me:10473: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010474 if (exit $ac_status) && test -s "$ac_outfile"; then
10475 # The compiler can only warn and ignore the option if not recognized
10476 # So say no if there are warnings
10477 if test ! -s conftest.err; then
10478 lt_prog_compiler_pic_works_CXX=yes
10479 fi
10480 fi
10481 $rm conftest*
10482
10483fi
10484echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10485echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10486
10487if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10488 case $lt_prog_compiler_pic_CXX in
10489 "" | " "*) ;;
10490 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10491 esac
10492else
10493 lt_prog_compiler_pic_CXX=
10494 lt_prog_compiler_can_build_shared_CXX=no
10495fi
10496
10497fi
10498case "$host_os" in
10499 # For platforms which do not support PIC, -DPIC is meaningless:
10500 *djgpp*)
10501 lt_prog_compiler_pic_CXX=
10502 ;;
10503 *)
10504 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10505 ;;
10506esac
10507
10508echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10509echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10510if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10511 echo $ECHO_N "(cached) $ECHO_C" >&6
10512else
10513 lt_cv_prog_compiler_c_o_CXX=no
10514 $rm -r conftest 2>/dev/null
10515 mkdir conftest
10516 cd conftest
10517 mkdir out
10518 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10519
10520 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10521 # that will create temporary files in the current directory regardless of
10522 # the output directory. Thus, making CWD read-only will cause this test
10523 # to fail, enabling locking or at least warning the user not to do parallel
10524 # builds.
10525 chmod -w .
10526
10527 lt_compiler_flag="-o out/conftest2.$ac_objext"
10528 # Insert the option either (1) after the last *FLAGS variable, or
10529 # (2) before a word containing "conftest.", or (3) at the end.
10530 # Note that $ac_compile itself does not contain backslashes and begins
10531 # with a dollar sign (not a hyphen), so the echo should work correctly.
10532 lt_compile=`echo "$ac_compile" | $SED \
10533 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10535 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke0a621332004-09-08 20:38:05 +000010536 (eval echo "\"\$as_me:10536: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010537 (eval "$lt_compile" 2>out/conftest.err)
10538 ac_status=$?
10539 cat out/conftest.err >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000010540 echo "$as_me:10540: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010541 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10542 then
10543 # The compiler can only warn and ignore the option if not recognized
10544 # So say no if there are warnings
10545 if test ! -s out/conftest.err; then
10546 lt_cv_prog_compiler_c_o_CXX=yes
10547 fi
10548 fi
10549 chmod u+w .
Brian Gaeke0a621332004-09-08 20:38:05 +000010550 $rm conftest* out/*
10551 rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000010552 cd ..
10553 rmdir conftest
10554 $rm conftest*
10555
10556fi
10557echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10558echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10559
10560
10561hard_links="nottested"
10562if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10563 # do not overwrite the value of need_locks provided by the user
10564 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10565echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10566 hard_links=yes
10567 $rm conftest*
10568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10569 touch conftest.a
10570 ln conftest.a conftest.b 2>&5 || hard_links=no
10571 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10572 echo "$as_me:$LINENO: result: $hard_links" >&5
10573echo "${ECHO_T}$hard_links" >&6
10574 if test "$hard_links" = no; then
10575 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10576echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10577 need_locks=warn
10578 fi
10579else
10580 need_locks=no
10581fi
10582
10583echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10584echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10585
10586 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10587 case $host_os in
10588 aix4* | aix5*)
10589 # If we're using GNU nm, then we don't want the "-C" option.
10590 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10591 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10592 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'
10593 else
10594 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'
10595 fi
10596 ;;
10597 pw32*)
10598 export_symbols_cmds_CXX="$ltdll_cmds"
10599 ;;
10600 cygwin* | mingw*)
10601 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10602 ;;
10603 *)
10604 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10605 ;;
10606 esac
10607
10608echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10609echo "${ECHO_T}$ld_shlibs_CXX" >&6
10610test "$ld_shlibs_CXX" = no && can_build_shared=no
10611
10612variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10613if test "$GCC" = yes; then
10614 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10615fi
10616
10617#
10618# Do we need to explicitly link libc?
10619#
10620case "x$archive_cmds_need_lc_CXX" in
10621x|xyes)
10622 # Assume -lc should be added
10623 archive_cmds_need_lc_CXX=yes
10624
10625 if test "$enable_shared" = yes && test "$GCC" = yes; then
10626 case $archive_cmds_CXX in
Brian Gaeke0a621332004-09-08 20:38:05 +000010627 *"$_S_"*)
John Criswell47fdd832003-07-14 16:52:07 +000010628 # FIXME: we may have to deal with multi-command sequences.
10629 ;;
10630 '$CC '*)
10631 # Test whether the compiler implicitly links with -lc since on some
10632 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10633 # to ld, don't add -lc before -lgcc.
10634 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10635echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10636 $rm conftest*
10637 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10638
10639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10640 (eval $ac_compile) 2>&5
10641 ac_status=$?
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } 2>conftest.err; then
10644 soname=conftest
10645 lib=conftest
10646 libobjs=conftest.$ac_objext
10647 deplibs=
10648 wl=$lt_prog_compiler_wl_CXX
10649 compiler_flags=-v
10650 linker_flags=-v
10651 verstring=
10652 output_objdir=.
10653 libname=conftest
10654 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10655 allow_undefined_flag_CXX=
10656 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10657 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10658 ac_status=$?
10659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660 (exit $ac_status); }
10661 then
10662 archive_cmds_need_lc_CXX=no
10663 else
10664 archive_cmds_need_lc_CXX=yes
10665 fi
10666 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10667 else
10668 cat conftest.err 1>&5
10669 fi
10670 $rm conftest*
10671 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10672echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10673 ;;
10674 esac
10675 fi
10676 ;;
10677esac
10678
Brian Gaeke0a621332004-09-08 20:38:05 +000010679echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10680echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10681hardcode_action_CXX=
10682if test -n "$hardcode_libdir_flag_spec_CXX" || \
10683 test -n "$runpath_var CXX" || \
10684 test "X$hardcode_automatic_CXX"="Xyes" ; then
10685
10686 # We can hardcode non-existant directories.
10687 if test "$hardcode_direct_CXX" != no &&
10688 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10689 # have to relink, otherwise we might link with an installed library
10690 # when we should be linking with a yet-to-be-installed one
10691 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10692 test "$hardcode_minus_L_CXX" != no; then
10693 # Linking always hardcodes the temporary library directory.
10694 hardcode_action_CXX=relink
10695 else
10696 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10697 hardcode_action_CXX=immediate
10698 fi
10699else
10700 # We cannot hardcode anything, or else we can only hardcode existing
10701 # directories.
10702 hardcode_action_CXX=unsupported
10703fi
10704echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10705echo "${ECHO_T}$hardcode_action_CXX" >&6
10706
10707if test "$hardcode_action_CXX" = relink; then
10708 # Fast installation is not supported
10709 enable_fast_install=no
10710elif test "$shlibpath_overrides_runpath" = yes ||
10711 test "$enable_shared" = no; then
10712 # Fast installation is not necessary
10713 enable_fast_install=needless
10714fi
10715
10716striplib=
10717old_striplib=
10718echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10719echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10720if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10721 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10722 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10723 echo "$as_me:$LINENO: result: yes" >&5
10724echo "${ECHO_T}yes" >&6
10725else
10726# FIXME - insert some real tests, host_os isn't really good enough
10727 case $host_os in
10728 NOT-darwin*)
10729 if test -n "$STRIP" ; then
10730 striplib="$STRIP -x"
10731 echo "$as_me:$LINENO: result: yes" >&5
10732echo "${ECHO_T}yes" >&6
10733 else
10734 echo "$as_me:$LINENO: result: no" >&5
10735echo "${ECHO_T}no" >&6
10736fi
10737 ;;
10738 *)
10739 echo "$as_me:$LINENO: result: no" >&5
10740echo "${ECHO_T}no" >&6
10741 ;;
10742 esac
10743fi
10744
John Criswell47fdd832003-07-14 16:52:07 +000010745echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10746echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10747library_names_spec=
10748libname_spec='lib$name'
10749soname_spec=
10750shrext=".so"
10751postinstall_cmds=
10752postuninstall_cmds=
10753finish_cmds=
10754finish_eval=
10755shlibpath_var=
10756shlibpath_overrides_runpath=unknown
10757version_type=none
10758dynamic_linker="$host_os ld.so"
10759sys_lib_dlsearch_path_spec="/lib /usr/lib"
10760if test "$GCC" = yes; then
10761 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10762 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10763 # if the path contains ";" then we assume it to be the separator
10764 # otherwise default to the standard path separator (i.e. ":") - it is
10765 # assumed that no part of a normal pathname contains ";" but that should
10766 # okay in the real world where ";" in dirpaths is itself problematic.
10767 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10768 else
10769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10770 fi
10771else
10772 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10773fi
10774need_lib_prefix=unknown
10775hardcode_into_libs=no
10776
10777# when you set need_version to no, make sure it does not cause -set_version
10778# flags to be left without arguments
10779need_version=unknown
10780
10781case $host_os in
10782aix3*)
10783 version_type=linux
10784 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10785 shlibpath_var=LIBPATH
10786
10787 # AIX 3 has no versioning support, so we append a major version to the name.
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 ;;
10790
10791aix4* | aix5*)
10792 version_type=linux
10793 need_lib_prefix=no
10794 need_version=no
10795 hardcode_into_libs=yes
10796 if test "$host_cpu" = ia64; then
10797 # AIX 5 supports IA64
10798 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10799 shlibpath_var=LD_LIBRARY_PATH
10800 else
10801 # With GCC up to 2.95.x, collect2 would create an import file
10802 # for dependence libraries. The import file would start with
10803 # the line `#! .'. This would cause the generated library to
10804 # depend on `.', always an invalid library. This was fixed in
10805 # development snapshots of GCC prior to 3.0.
10806 case $host_os in
10807 aix4 | aix4.[01] | aix4.[01].*)
10808 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10809 echo ' yes '
10810 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10811 :
10812 else
10813 can_build_shared=no
10814 fi
10815 ;;
10816 esac
10817 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10818 # soname into executable. Probably we can add versioning support to
10819 # collect2, so additional links can be useful in future.
10820 if test "$aix_use_runtimelinking" = yes; then
10821 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10822 # instead of lib<name>.a to let people know that these are not
10823 # typical AIX shared libraries.
10824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10825 else
10826 # We preserve .a as extension for shared libraries through AIX4.2
10827 # and later when we are not doing run time linking.
10828 library_names_spec='${libname}${release}.a $libname.a'
10829 soname_spec='${libname}${release}${shared_ext}$major'
10830 fi
10831 shlibpath_var=LIBPATH
10832 fi
10833 ;;
10834
10835amigaos*)
10836 library_names_spec='$libname.ixlibrary $libname.a'
10837 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Brian Gaeke0a621332004-09-08 20:38:05 +000010838 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
John Criswell47fdd832003-07-14 16:52:07 +000010839 ;;
10840
10841beos*)
10842 library_names_spec='${libname}${shared_ext}'
10843 dynamic_linker="$host_os ld.so"
10844 shlibpath_var=LIBRARY_PATH
10845 ;;
10846
10847bsdi4*)
10848 version_type=linux
10849 need_version=no
10850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10851 soname_spec='${libname}${release}${shared_ext}$major'
10852 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10853 shlibpath_var=LD_LIBRARY_PATH
10854 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10855 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10856 # the default ld.so.conf also contains /usr/contrib/lib and
10857 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10858 # libtool to hard-code these into programs
10859 ;;
10860
10861cygwin* | mingw* | pw32*)
10862 version_type=windows
10863 shrext=".dll"
10864 need_version=no
10865 need_lib_prefix=no
10866
10867 case $GCC,$host_os in
10868 yes,cygwin* | yes,mingw* | yes,pw32*)
10869 library_names_spec='$libname.dll.a'
10870 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Brian Gaeke0a621332004-09-08 20:38:05 +000010871 postinstall_cmds='base_file=`basename \${file}`${_S_}
10872 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
10873 dldir=$destdir/`dirname \$dlpath`${_S_}
10874 test -d \$dldir || mkdir -p \$dldir${_S_}
John Criswell47fdd832003-07-14 16:52:07 +000010875 $install_prog $dir/$dlname \$dldir/$dlname'
Brian Gaeke0a621332004-09-08 20:38:05 +000010876 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
10877 dlpath=$dir/\$dldll${_S_}
John Criswell47fdd832003-07-14 16:52:07 +000010878 $rm \$dlpath'
10879 shlibpath_overrides_runpath=yes
10880
10881 case $host_os in
10882 cygwin*)
10883 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10884 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Brian Gaeke0a621332004-09-08 20:38:05 +000010885 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000010886 ;;
10887 mingw*)
10888 # MinGW DLLs use traditional 'lib' prefix
10889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10890 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10891 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10892 # It is most probably a Windows format PATH printed by
10893 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10894 # path with ; separators, and with drive letters. We can handle the
10895 # drive letters (cygwin fileutils understands them), so leave them,
10896 # especially as we might pass files found there to a mingw objdump,
10897 # which wouldn't understand a cygwinified path. Ahh.
10898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10899 else
10900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10901 fi
10902 ;;
10903 pw32*)
10904 # pw32 DLLs use 'pw' prefix rather than 'lib'
10905 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10906 ;;
10907 esac
10908 ;;
10909
10910 *)
10911 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10912 ;;
10913 esac
10914 dynamic_linker='Win32 ld.exe'
10915 # FIXME: first we should search . and the directory the executable is in
10916 shlibpath_var=PATH
10917 ;;
10918
10919darwin* | rhapsody*)
10920 dynamic_linker="$host_os dyld"
10921 version_type=darwin
10922 need_lib_prefix=no
10923 need_version=no
Brian Gaeke0a621332004-09-08 20:38:05 +000010924 # FIXME: Relying on posixy $() will cause problems for
10925 # cross-compilation, but unfortunately the echo tests do not
10926 # yet detect zsh echo's removal of \ escapes.
10927 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000010928 soname_spec='${libname}${release}${major}$shared_ext'
10929 shlibpath_overrides_runpath=yes
10930 shlibpath_var=DYLD_LIBRARY_PATH
10931 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
10932 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Brian Gaeke0a621332004-09-08 20:38:05 +000010933 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
10934 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"`
John Criswell47fdd832003-07-14 16:52:07 +000010935 fi
10936 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10937 ;;
10938
10939dgux*)
10940 version_type=linux
10941 need_lib_prefix=no
10942 need_version=no
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 ;;
10947
10948freebsd1*)
10949 dynamic_linker=no
10950 ;;
10951
10952freebsd*)
10953 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10954 version_type=freebsd-$objformat
10955 case $version_type in
10956 freebsd-elf*)
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10958 need_version=no
10959 need_lib_prefix=no
10960 ;;
10961 freebsd-*)
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10963 need_version=yes
10964 ;;
10965 esac
10966 shlibpath_var=LD_LIBRARY_PATH
10967 case $host_os in
10968 freebsd2*)
10969 shlibpath_overrides_runpath=yes
10970 ;;
10971 freebsd3.01* | freebsdelf3.01*)
10972 shlibpath_overrides_runpath=yes
10973 hardcode_into_libs=yes
10974 ;;
10975 *) # from 3.2 on
10976 shlibpath_overrides_runpath=no
10977 hardcode_into_libs=yes
10978 ;;
10979 esac
10980 ;;
10981
10982gnu*)
10983 version_type=linux
10984 need_lib_prefix=no
10985 need_version=no
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 hardcode_into_libs=yes
10990 ;;
10991
10992hpux9* | hpux10* | hpux11*)
10993 # Give a soname corresponding to the major version so that dld.sl refuses to
10994 # link against other versions.
10995 version_type=sunos
10996 need_lib_prefix=no
10997 need_version=no
10998 case "$host_cpu" in
10999 ia64*)
11000 shrext='.so'
11001 hardcode_into_libs=yes
11002 dynamic_linker="$host_os dld.so"
11003 shlibpath_var=LD_LIBRARY_PATH
11004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 if test "X$HPUX_IA64_MODE" = X32; then
11008 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11009 else
11010 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11011 fi
11012 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11013 ;;
11014 hppa*64*)
11015 shrext='.sl'
11016 hardcode_into_libs=yes
11017 dynamic_linker="$host_os dld.sl"
11018 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11019 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021 soname_spec='${libname}${release}${shared_ext}$major'
11022 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11023 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11024 ;;
11025 *)
11026 shrext='.sl'
11027 dynamic_linker="$host_os dld.sl"
11028 shlibpath_var=SHLIB_PATH
11029 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 ;;
11033 esac
11034 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11035 postinstall_cmds='chmod 555 $lib'
11036 ;;
11037
11038irix5* | irix6* | nonstopux*)
11039 case $host_os in
11040 nonstopux*) version_type=nonstopux ;;
11041 *)
11042 if test "$lt_cv_prog_gnu_ld" = yes; then
11043 version_type=linux
11044 else
11045 version_type=irix
11046 fi ;;
11047 esac
11048 need_lib_prefix=no
11049 need_version=no
11050 soname_spec='${libname}${release}${shared_ext}$major'
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11052 case $host_os in
11053 irix5* | nonstopux*)
11054 libsuff= shlibsuff=
11055 ;;
11056 *)
11057 case $LD in # libtool.m4 will add one of these switches to LD
11058 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11059 libsuff= shlibsuff= libmagic=32-bit;;
11060 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11061 libsuff=32 shlibsuff=N32 libmagic=N32;;
11062 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11063 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11064 *) libsuff= shlibsuff= libmagic=never-match;;
11065 esac
11066 ;;
11067 esac
11068 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11069 shlibpath_overrides_runpath=no
11070 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11071 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11072 hardcode_into_libs=yes
11073 ;;
11074
11075# No shared lib support for Linux oldld, aout, or coff.
11076linux*oldld* | linux*aout* | linux*coff*)
11077 dynamic_linker=no
11078 ;;
11079
11080# This must be Linux ELF.
11081linux*)
11082 version_type=linux
11083 need_lib_prefix=no
11084 need_version=no
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 soname_spec='${libname}${release}${shared_ext}$major'
11087 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 shlibpath_overrides_runpath=no
11090 # This implies no fast_install, which is unacceptable.
11091 # Some rework will be needed to allow for fast_install
11092 # before this can be enabled.
11093 hardcode_into_libs=yes
11094
11095 # We used to test for /lib/ld.so.1 and disable shared libraries on
11096 # powerpc, because MkLinux only supported shared libraries with the
11097 # GNU dynamic linker. Since this was broken with cross compilers,
11098 # most powerpc-linux boxes support dynamic linking these days and
11099 # people can always --disable-shared, the test was removed, and we
11100 # assume the GNU/Linux dynamic linker is in use.
11101 dynamic_linker='GNU/Linux ld.so'
11102 ;;
11103
11104netbsd*)
11105 version_type=sunos
11106 need_lib_prefix=no
11107 need_version=no
11108 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11111 dynamic_linker='NetBSD (a.out) ld.so'
11112 else
11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11114 soname_spec='${libname}${release}${shared_ext}$major'
11115 dynamic_linker='NetBSD ld.elf_so'
11116 fi
11117 shlibpath_var=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath=yes
11119 hardcode_into_libs=yes
11120 ;;
11121
11122newsos6)
11123 version_type=linux
11124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=yes
11127 ;;
11128
Brian Gaeke0a621332004-09-08 20:38:05 +000011129nto-qnx)
John Criswell47fdd832003-07-14 16:52:07 +000011130 version_type=linux
11131 need_lib_prefix=no
11132 need_version=no
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 shlibpath_overrides_runpath=yes
11137 ;;
11138
11139openbsd*)
11140 version_type=sunos
11141 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000011142 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000011143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11145 shlibpath_var=LD_LIBRARY_PATH
11146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11147 case $host_os in
11148 openbsd2.[89] | openbsd2.[89].*)
11149 shlibpath_overrides_runpath=no
11150 ;;
11151 *)
11152 shlibpath_overrides_runpath=yes
11153 ;;
11154 esac
11155 else
11156 shlibpath_overrides_runpath=yes
11157 fi
11158 ;;
11159
11160os2*)
11161 libname_spec='$name'
11162 shrext=".dll"
11163 need_lib_prefix=no
11164 library_names_spec='$libname${shared_ext} $libname.a'
11165 dynamic_linker='OS/2 ld.exe'
11166 shlibpath_var=LIBPATH
11167 ;;
11168
11169osf3* | osf4* | osf5*)
11170 version_type=osf
11171 need_lib_prefix=no
11172 need_version=no
11173 soname_spec='${libname}${release}${shared_ext}$major'
11174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11177 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11178 ;;
11179
11180sco3.2v5*)
11181 version_type=osf
11182 soname_spec='${libname}${release}${shared_ext}$major'
11183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11184 shlibpath_var=LD_LIBRARY_PATH
11185 ;;
11186
11187solaris*)
11188 version_type=linux
11189 need_lib_prefix=no
11190 need_version=no
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11192 soname_spec='${libname}${release}${shared_ext}$major'
11193 shlibpath_var=LD_LIBRARY_PATH
11194 shlibpath_overrides_runpath=yes
11195 hardcode_into_libs=yes
11196 # ldd complains unless libraries are executable
11197 postinstall_cmds='chmod +x $lib'
11198 ;;
11199
11200sunos4*)
11201 version_type=sunos
11202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11203 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11204 shlibpath_var=LD_LIBRARY_PATH
11205 shlibpath_overrides_runpath=yes
11206 if test "$with_gnu_ld" = yes; then
11207 need_lib_prefix=no
11208 fi
11209 need_version=yes
11210 ;;
11211
11212sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11213 version_type=linux
11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11215 soname_spec='${libname}${release}${shared_ext}$major'
11216 shlibpath_var=LD_LIBRARY_PATH
11217 case $host_vendor in
11218 sni)
11219 shlibpath_overrides_runpath=no
11220 need_lib_prefix=no
11221 export_dynamic_flag_spec='${wl}-Blargedynsym'
11222 runpath_var=LD_RUN_PATH
11223 ;;
11224 siemens)
11225 need_lib_prefix=no
11226 ;;
11227 motorola)
11228 need_lib_prefix=no
11229 need_version=no
11230 shlibpath_overrides_runpath=no
11231 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11232 ;;
11233 esac
11234 ;;
11235
11236sysv4*MP*)
11237 if test -d /usr/nec ;then
11238 version_type=linux
11239 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11240 soname_spec='$libname${shared_ext}.$major'
11241 shlibpath_var=LD_LIBRARY_PATH
11242 fi
11243 ;;
11244
11245uts4*)
11246 version_type=linux
11247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11248 soname_spec='${libname}${release}${shared_ext}$major'
11249 shlibpath_var=LD_LIBRARY_PATH
11250 ;;
11251
11252*)
11253 dynamic_linker=no
11254 ;;
11255esac
11256echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11257echo "${ECHO_T}$dynamic_linker" >&6
11258test "$dynamic_linker" = no && can_build_shared=no
11259
11260if test "x$enable_dlopen" != xyes; then
11261 enable_dlopen=unknown
11262 enable_dlopen_self=unknown
11263 enable_dlopen_self_static=unknown
11264else
11265 lt_cv_dlopen=no
11266 lt_cv_dlopen_libs=
11267
11268 case $host_os in
11269 beos*)
11270 lt_cv_dlopen="load_add_on"
11271 lt_cv_dlopen_libs=
11272 lt_cv_dlopen_self=yes
11273 ;;
11274
11275 mingw* | pw32*)
11276 lt_cv_dlopen="LoadLibrary"
11277 lt_cv_dlopen_libs=
11278 ;;
11279
11280 cygwin*)
11281 lt_cv_dlopen="dlopen"
11282 lt_cv_dlopen_libs=
11283 ;;
11284
11285 darwin*)
11286 # if libdl is installed we need to link against it
11287 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11288echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11289if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11290 echo $ECHO_N "(cached) $ECHO_C" >&6
11291else
11292 ac_check_lib_save_LIBS=$LIBS
11293LIBS="-ldl $LIBS"
11294cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000011295#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011296/* confdefs.h. */
11297_ACEOF
11298cat confdefs.h >>conftest.$ac_ext
11299cat >>conftest.$ac_ext <<_ACEOF
11300/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011301
11302/* Override any gcc2 internal prototype to avoid an error. */
11303#ifdef __cplusplus
11304extern "C"
11305#endif
11306/* We use char because int might match the return type of a gcc2
11307 builtin and then its argument prototype would still apply. */
11308char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011309int
11310main ()
11311{
11312dlopen ();
11313 ;
11314 return 0;
11315}
11316_ACEOF
11317rm -f conftest.$ac_objext conftest$ac_exeext
11318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000011319 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000011320 ac_status=$?
11321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11322 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000011323 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11325 (eval $ac_try) 2>&5
11326 ac_status=$?
11327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11328 (exit $ac_status); }; }; then
11329 ac_cv_lib_dl_dlopen=yes
11330else
11331 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011332sed 's/^/| /' conftest.$ac_ext >&5
11333
John Criswell47fdd832003-07-14 16:52:07 +000011334ac_cv_lib_dl_dlopen=no
11335fi
Brian Gaeke0a621332004-09-08 20:38:05 +000011336rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011337LIBS=$ac_check_lib_save_LIBS
11338fi
11339echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11340echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11341if test $ac_cv_lib_dl_dlopen = yes; then
11342 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11343else
11344
11345 lt_cv_dlopen="dyld"
11346 lt_cv_dlopen_libs=
11347 lt_cv_dlopen_self=yes
11348
11349fi
11350
11351 ;;
11352
11353 *)
11354 echo "$as_me:$LINENO: checking for shl_load" >&5
11355echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11356if test "${ac_cv_func_shl_load+set}" = set; then
11357 echo $ECHO_N "(cached) $ECHO_C" >&6
11358else
11359 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000011360#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011361/* confdefs.h. */
11362_ACEOF
11363cat confdefs.h >>conftest.$ac_ext
11364cat >>conftest.$ac_ext <<_ACEOF
11365/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011366/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011367 which can conflict with char shl_load (); below.
11368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11369 <limits.h> exists even on freestanding compilers. */
11370#ifdef __STDC__
11371# include <limits.h>
11372#else
11373# include <assert.h>
11374#endif
John Criswell47fdd832003-07-14 16:52:07 +000011375/* Override any gcc2 internal prototype to avoid an error. */
11376#ifdef __cplusplus
11377extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011378{
John Criswell47fdd832003-07-14 16:52:07 +000011379#endif
11380/* We use char because int might match the return type of a gcc2
11381 builtin and then its argument prototype would still apply. */
11382char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011383/* The GNU C library defines this for functions which it implements
11384 to always fail with ENOSYS. Some functions are actually named
11385 something starting with __ and the normal name is an alias. */
11386#if defined (__stub_shl_load) || defined (__stub___shl_load)
11387choke me
11388#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011389char (*f) () = shl_load;
11390#endif
11391#ifdef __cplusplus
11392}
John Criswell47fdd832003-07-14 16:52:07 +000011393#endif
11394
John Criswell0c38eaf2003-09-10 15:17:25 +000011395int
11396main ()
11397{
11398return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011399 ;
11400 return 0;
11401}
11402_ACEOF
11403rm -f conftest.$ac_objext conftest$ac_exeext
11404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000011405 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000011406 ac_status=$?
11407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000011409 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11411 (eval $ac_try) 2>&5
11412 ac_status=$?
11413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11414 (exit $ac_status); }; }; then
11415 ac_cv_func_shl_load=yes
11416else
11417 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011418sed 's/^/| /' conftest.$ac_ext >&5
11419
John Criswell47fdd832003-07-14 16:52:07 +000011420ac_cv_func_shl_load=no
11421fi
Brian Gaeke0a621332004-09-08 20:38:05 +000011422rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011423fi
11424echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11425echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11426if test $ac_cv_func_shl_load = yes; then
11427 lt_cv_dlopen="shl_load"
11428else
11429 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11430echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11431if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11432 echo $ECHO_N "(cached) $ECHO_C" >&6
11433else
11434 ac_check_lib_save_LIBS=$LIBS
11435LIBS="-ldld $LIBS"
11436cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000011437#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011438/* confdefs.h. */
11439_ACEOF
11440cat confdefs.h >>conftest.$ac_ext
11441cat >>conftest.$ac_ext <<_ACEOF
11442/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011443
11444/* Override any gcc2 internal prototype to avoid an error. */
11445#ifdef __cplusplus
11446extern "C"
11447#endif
11448/* We use char because int might match the return type of a gcc2
11449 builtin and then its argument prototype would still apply. */
11450char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011451int
11452main ()
11453{
11454shl_load ();
11455 ;
11456 return 0;
11457}
11458_ACEOF
11459rm -f conftest.$ac_objext conftest$ac_exeext
11460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000011461 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000011462 ac_status=$?
11463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11464 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000011465 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11467 (eval $ac_try) 2>&5
11468 ac_status=$?
11469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11470 (exit $ac_status); }; }; then
11471 ac_cv_lib_dld_shl_load=yes
11472else
11473 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011474sed 's/^/| /' conftest.$ac_ext >&5
11475
John Criswell47fdd832003-07-14 16:52:07 +000011476ac_cv_lib_dld_shl_load=no
11477fi
Brian Gaeke0a621332004-09-08 20:38:05 +000011478rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011479LIBS=$ac_check_lib_save_LIBS
11480fi
11481echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11482echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11483if test $ac_cv_lib_dld_shl_load = yes; then
11484 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11485else
11486 echo "$as_me:$LINENO: checking for dlopen" >&5
11487echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11488if test "${ac_cv_func_dlopen+set}" = set; then
11489 echo $ECHO_N "(cached) $ECHO_C" >&6
11490else
11491 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000011492#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011493/* confdefs.h. */
11494_ACEOF
11495cat confdefs.h >>conftest.$ac_ext
11496cat >>conftest.$ac_ext <<_ACEOF
11497/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011498/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011499 which can conflict with char dlopen (); below.
11500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11501 <limits.h> exists even on freestanding compilers. */
11502#ifdef __STDC__
11503# include <limits.h>
11504#else
11505# include <assert.h>
11506#endif
John Criswell47fdd832003-07-14 16:52:07 +000011507/* Override any gcc2 internal prototype to avoid an error. */
11508#ifdef __cplusplus
11509extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011510{
John Criswell47fdd832003-07-14 16:52:07 +000011511#endif
11512/* We use char because int might match the return type of a gcc2
11513 builtin and then its argument prototype would still apply. */
11514char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011515/* The GNU C library defines this for functions which it implements
11516 to always fail with ENOSYS. Some functions are actually named
11517 something starting with __ and the normal name is an alias. */
11518#if defined (__stub_dlopen) || defined (__stub___dlopen)
11519choke me
11520#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011521char (*f) () = dlopen;
11522#endif
11523#ifdef __cplusplus
11524}
John Criswell47fdd832003-07-14 16:52:07 +000011525#endif
11526
John Criswell0c38eaf2003-09-10 15:17:25 +000011527int
11528main ()
11529{
11530return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011531 ;
11532 return 0;
11533}
11534_ACEOF
11535rm -f conftest.$ac_objext conftest$ac_exeext
11536if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000011537 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000011538 ac_status=$?
11539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11540 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000011541 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11543 (eval $ac_try) 2>&5
11544 ac_status=$?
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); }; }; then
11547 ac_cv_func_dlopen=yes
11548else
11549 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011550sed 's/^/| /' conftest.$ac_ext >&5
11551
John Criswell47fdd832003-07-14 16:52:07 +000011552ac_cv_func_dlopen=no
11553fi
Brian Gaeke0a621332004-09-08 20:38:05 +000011554rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011555fi
11556echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11557echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11558if test $ac_cv_func_dlopen = yes; then
11559 lt_cv_dlopen="dlopen"
11560else
11561 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11562echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11563if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565else
11566 ac_check_lib_save_LIBS=$LIBS
11567LIBS="-ldl $LIBS"
11568cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000011569#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011570/* confdefs.h. */
11571_ACEOF
11572cat confdefs.h >>conftest.$ac_ext
11573cat >>conftest.$ac_ext <<_ACEOF
11574/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011575
11576/* Override any gcc2 internal prototype to avoid an error. */
11577#ifdef __cplusplus
11578extern "C"
11579#endif
11580/* We use char because int might match the return type of a gcc2
11581 builtin and then its argument prototype would still apply. */
11582char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011583int
11584main ()
11585{
11586dlopen ();
11587 ;
11588 return 0;
11589}
11590_ACEOF
11591rm -f conftest.$ac_objext conftest$ac_exeext
11592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000011593 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000011594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000011597 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 ac_cv_lib_dl_dlopen=yes
11604else
11605 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011606sed 's/^/| /' conftest.$ac_ext >&5
11607
John Criswell47fdd832003-07-14 16:52:07 +000011608ac_cv_lib_dl_dlopen=no
11609fi
Brian Gaeke0a621332004-09-08 20:38:05 +000011610rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011611LIBS=$ac_check_lib_save_LIBS
11612fi
11613echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11614echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11615if test $ac_cv_lib_dl_dlopen = yes; then
11616 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11617else
11618 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11619echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11620if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11621 echo $ECHO_N "(cached) $ECHO_C" >&6
11622else
11623 ac_check_lib_save_LIBS=$LIBS
11624LIBS="-lsvld $LIBS"
11625cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000011626#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011627/* confdefs.h. */
11628_ACEOF
11629cat confdefs.h >>conftest.$ac_ext
11630cat >>conftest.$ac_ext <<_ACEOF
11631/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011632
11633/* Override any gcc2 internal prototype to avoid an error. */
11634#ifdef __cplusplus
11635extern "C"
11636#endif
11637/* We use char because int might match the return type of a gcc2
11638 builtin and then its argument prototype would still apply. */
11639char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011640int
11641main ()
11642{
11643dlopen ();
11644 ;
11645 return 0;
11646}
11647_ACEOF
11648rm -f conftest.$ac_objext conftest$ac_exeext
11649if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000011650 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000011651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000011654 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 ac_cv_lib_svld_dlopen=yes
11661else
11662 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011663sed 's/^/| /' conftest.$ac_ext >&5
11664
John Criswell47fdd832003-07-14 16:52:07 +000011665ac_cv_lib_svld_dlopen=no
11666fi
Brian Gaeke0a621332004-09-08 20:38:05 +000011667rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011668LIBS=$ac_check_lib_save_LIBS
11669fi
11670echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11671echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11672if test $ac_cv_lib_svld_dlopen = yes; then
11673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11674else
11675 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11676echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11677if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11678 echo $ECHO_N "(cached) $ECHO_C" >&6
11679else
11680 ac_check_lib_save_LIBS=$LIBS
11681LIBS="-ldld $LIBS"
11682cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000011683#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000011684/* confdefs.h. */
11685_ACEOF
11686cat confdefs.h >>conftest.$ac_ext
11687cat >>conftest.$ac_ext <<_ACEOF
11688/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011689
11690/* Override any gcc2 internal prototype to avoid an error. */
11691#ifdef __cplusplus
11692extern "C"
11693#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 dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000011697int
11698main ()
11699{
11700dld_link ();
11701 ;
11702 return 0;
11703}
11704_ACEOF
11705rm -f conftest.$ac_objext conftest$ac_exeext
11706if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000011707 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000011708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000011711 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; }; then
11717 ac_cv_lib_dld_dld_link=yes
11718else
11719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011720sed 's/^/| /' conftest.$ac_ext >&5
11721
John Criswell47fdd832003-07-14 16:52:07 +000011722ac_cv_lib_dld_dld_link=no
11723fi
Brian Gaeke0a621332004-09-08 20:38:05 +000011724rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011725LIBS=$ac_check_lib_save_LIBS
11726fi
11727echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11728echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11729if test $ac_cv_lib_dld_dld_link = yes; then
11730 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11731fi
11732
11733
11734fi
11735
11736
11737fi
11738
11739
11740fi
11741
11742
11743fi
11744
11745
11746fi
11747
11748 ;;
11749 esac
11750
11751 if test "x$lt_cv_dlopen" != xno; then
11752 enable_dlopen=yes
11753 else
11754 enable_dlopen=no
11755 fi
11756
11757 case $lt_cv_dlopen in
11758 dlopen)
11759 save_CPPFLAGS="$CPPFLAGS"
11760 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11761
11762 save_LDFLAGS="$LDFLAGS"
11763 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11764
11765 save_LIBS="$LIBS"
11766 LIBS="$lt_cv_dlopen_libs $LIBS"
11767
11768 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11769echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11770if test "${lt_cv_dlopen_self+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11772else
11773 if test "$cross_compiling" = yes; then :
11774 lt_cv_dlopen_self=cross
11775else
11776 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11777 lt_status=$lt_dlunknown
11778 cat > conftest.$ac_ext <<EOF
Brian Gaeke0a621332004-09-08 20:38:05 +000011779#line 11779 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011780#include "confdefs.h"
11781
11782#if HAVE_DLFCN_H
11783#include <dlfcn.h>
11784#endif
11785
11786#include <stdio.h>
11787
11788#ifdef RTLD_GLOBAL
11789# define LT_DLGLOBAL RTLD_GLOBAL
11790#else
11791# ifdef DL_GLOBAL
11792# define LT_DLGLOBAL DL_GLOBAL
11793# else
11794# define LT_DLGLOBAL 0
11795# endif
11796#endif
11797
11798/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11799 find out it does not work in some platform. */
11800#ifndef LT_DLLAZY_OR_NOW
11801# ifdef RTLD_LAZY
11802# define LT_DLLAZY_OR_NOW RTLD_LAZY
11803# else
11804# ifdef DL_LAZY
11805# define LT_DLLAZY_OR_NOW DL_LAZY
11806# else
11807# ifdef RTLD_NOW
11808# define LT_DLLAZY_OR_NOW RTLD_NOW
11809# else
11810# ifdef DL_NOW
11811# define LT_DLLAZY_OR_NOW DL_NOW
11812# else
11813# define LT_DLLAZY_OR_NOW 0
11814# endif
11815# endif
11816# endif
11817# endif
11818#endif
11819
11820#ifdef __cplusplus
11821extern "C" void exit (int);
11822#endif
11823
11824void fnord() { int i=42;}
11825int main ()
11826{
11827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11828 int status = $lt_dlunknown;
11829
11830 if (self)
11831 {
11832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11833 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11834 /* dlclose (self); */
11835 }
11836
11837 exit (status);
11838}
11839EOF
11840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11841 (eval $ac_link) 2>&5
11842 ac_status=$?
11843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11844 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11845 (./conftest; exit; ) 2>/dev/null
11846 lt_status=$?
11847 case x$lt_status in
11848 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11849 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11850 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11851 esac
11852 else :
11853 # compilation failed
11854 lt_cv_dlopen_self=no
11855 fi
11856fi
11857rm -fr conftest*
11858
11859
11860fi
11861echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11862echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11863
11864 if test "x$lt_cv_dlopen_self" = xyes; then
11865 LDFLAGS="$LDFLAGS $link_static_flag"
11866 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11867echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11868if test "${lt_cv_dlopen_self_static+set}" = set; then
11869 echo $ECHO_N "(cached) $ECHO_C" >&6
11870else
11871 if test "$cross_compiling" = yes; then :
11872 lt_cv_dlopen_self_static=cross
11873else
11874 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11875 lt_status=$lt_dlunknown
11876 cat > conftest.$ac_ext <<EOF
Brian Gaeke0a621332004-09-08 20:38:05 +000011877#line 11877 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000011878#include "confdefs.h"
11879
11880#if HAVE_DLFCN_H
11881#include <dlfcn.h>
11882#endif
11883
11884#include <stdio.h>
11885
11886#ifdef RTLD_GLOBAL
11887# define LT_DLGLOBAL RTLD_GLOBAL
11888#else
11889# ifdef DL_GLOBAL
11890# define LT_DLGLOBAL DL_GLOBAL
11891# else
11892# define LT_DLGLOBAL 0
11893# endif
11894#endif
11895
11896/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11897 find out it does not work in some platform. */
11898#ifndef LT_DLLAZY_OR_NOW
11899# ifdef RTLD_LAZY
11900# define LT_DLLAZY_OR_NOW RTLD_LAZY
11901# else
11902# ifdef DL_LAZY
11903# define LT_DLLAZY_OR_NOW DL_LAZY
11904# else
11905# ifdef RTLD_NOW
11906# define LT_DLLAZY_OR_NOW RTLD_NOW
11907# else
11908# ifdef DL_NOW
11909# define LT_DLLAZY_OR_NOW DL_NOW
11910# else
11911# define LT_DLLAZY_OR_NOW 0
11912# endif
11913# endif
11914# endif
11915# endif
11916#endif
11917
11918#ifdef __cplusplus
11919extern "C" void exit (int);
11920#endif
11921
11922void fnord() { int i=42;}
11923int main ()
11924{
11925 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11926 int status = $lt_dlunknown;
11927
11928 if (self)
11929 {
11930 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11931 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11932 /* dlclose (self); */
11933 }
11934
11935 exit (status);
11936}
11937EOF
11938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11939 (eval $ac_link) 2>&5
11940 ac_status=$?
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11943 (./conftest; exit; ) 2>/dev/null
11944 lt_status=$?
11945 case x$lt_status in
11946 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11947 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11948 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11949 esac
11950 else :
11951 # compilation failed
11952 lt_cv_dlopen_self_static=no
11953 fi
11954fi
11955rm -fr conftest*
11956
11957
11958fi
11959echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11960echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11961 fi
11962
11963 CPPFLAGS="$save_CPPFLAGS"
11964 LDFLAGS="$save_LDFLAGS"
11965 LIBS="$save_LIBS"
11966 ;;
11967 esac
11968
11969 case $lt_cv_dlopen_self in
11970 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11971 *) enable_dlopen_self=unknown ;;
11972 esac
11973
11974 case $lt_cv_dlopen_self_static in
11975 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11976 *) enable_dlopen_self_static=unknown ;;
11977 esac
11978fi
11979
11980
11981# The else clause should only fire when bootstrapping the
11982# libtool distribution, otherwise you forgot to ship ltmain.sh
11983# with your package, and you will get complaints that there are
11984# no rules to generate ltmain.sh.
11985if test -f "$ltmain"; then
11986 # See if we are running on zsh, and set the options which allow our commands through
11987 # without removal of \ escapes.
11988 if test -n "${ZSH_VERSION+set}" ; then
11989 setopt NO_GLOB_SUBST
11990 fi
11991 # Now quote all the things that may contain metacharacters while being
11992 # careful not to overquote the AC_SUBSTed values. We take copies of the
11993 # variables and quote the copies for generation of the libtool script.
Brian Gaeke0a621332004-09-08 20:38:05 +000011994 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
John Criswell47fdd832003-07-14 16:52:07 +000011995 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11996 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11997 deplibs_check_method reload_flag reload_cmds need_locks \
11998 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11999 lt_cv_sys_global_symbol_to_c_name_address \
12000 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12001 old_postinstall_cmds old_postuninstall_cmds \
12002 compiler_CXX \
12003 CC_CXX \
12004 LD_CXX \
12005 lt_prog_compiler_wl_CXX \
12006 lt_prog_compiler_pic_CXX \
12007 lt_prog_compiler_static_CXX \
12008 lt_prog_compiler_no_builtin_flag_CXX \
12009 export_dynamic_flag_spec_CXX \
12010 thread_safe_flag_spec_CXX \
12011 whole_archive_flag_spec_CXX \
12012 enable_shared_with_static_runtimes_CXX \
12013 old_archive_cmds_CXX \
12014 old_archive_from_new_cmds_CXX \
12015 predep_objects_CXX \
12016 postdep_objects_CXX \
12017 predeps_CXX \
12018 postdeps_CXX \
12019 compiler_lib_search_path_CXX \
12020 archive_cmds_CXX \
12021 archive_expsym_cmds_CXX \
12022 postinstall_cmds_CXX \
12023 postuninstall_cmds_CXX \
12024 old_archive_from_expsyms_cmds_CXX \
12025 allow_undefined_flag_CXX \
12026 no_undefined_flag_CXX \
12027 export_symbols_cmds_CXX \
12028 hardcode_libdir_flag_spec_CXX \
12029 hardcode_libdir_flag_spec_ld_CXX \
12030 hardcode_libdir_separator_CXX \
12031 hardcode_automatic_CXX \
12032 module_cmds_CXX \
12033 module_expsym_cmds_CXX \
12034 lt_cv_prog_compiler_c_o_CXX \
12035 exclude_expsyms_CXX \
12036 include_expsyms_CXX; do
12037
12038 case $var in
12039 old_archive_cmds_CXX | \
12040 old_archive_from_new_cmds_CXX | \
12041 archive_cmds_CXX | \
12042 archive_expsym_cmds_CXX | \
12043 module_cmds_CXX | \
12044 module_expsym_cmds_CXX | \
12045 old_archive_from_expsyms_cmds_CXX | \
12046 export_symbols_cmds_CXX | \
12047 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12048 postinstall_cmds | postuninstall_cmds | \
12049 old_postinstall_cmds | old_postuninstall_cmds | \
12050 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12051 # Double-quote double-evaled strings.
Brian Gaeke0a621332004-09-08 20:38:05 +000012052 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000012053 ;;
12054 *)
12055 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12056 ;;
12057 esac
12058 done
12059
12060 case $lt_echo in
12061 *'\$0 --fallback-echo"')
12062 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12063 ;;
12064 esac
12065
12066cfgfile="$ofile"
12067
12068 cat <<__EOF__ >> "$cfgfile"
12069# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12070
12071# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12072
Brian Gaeke0a621332004-09-08 20:38:05 +000012073# Set the command separator (default: ~)
12074_S_=\${LIBTOOL_CMD_SEP-\~}
12075
John Criswell47fdd832003-07-14 16:52:07 +000012076# Shell to use when invoking shell scripts.
12077SHELL=$lt_SHELL
12078
12079# Whether or not to build shared libraries.
12080build_libtool_libs=$enable_shared
12081
12082# Whether or not to build static libraries.
12083build_old_libs=$enable_static
12084
12085# Whether or not to add -lc for building shared libraries.
12086build_libtool_need_lc=$archive_cmds_need_lc_CXX
12087
12088# Whether or not to disallow shared libs when runtime libs are static
12089allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12090
12091# Whether or not to optimize for fast installation.
12092fast_install=$enable_fast_install
12093
12094# The host system.
12095host_alias=$host_alias
12096host=$host
12097
12098# An echo program that does not interpret backslashes.
12099echo=$lt_echo
12100
12101# The archiver.
12102AR=$lt_AR
12103AR_FLAGS=$lt_AR_FLAGS
12104
12105# A C compiler.
12106LTCC=$lt_LTCC
12107
12108# A language-specific compiler.
12109CC=$lt_compiler_CXX
12110
12111# Is the compiler the GNU C compiler?
12112with_gcc=$GCC_CXX
12113
12114# An ERE matcher.
12115EGREP=$lt_EGREP
12116
12117# The linker used to build libraries.
12118LD=$lt_LD_CXX
12119
12120# Whether we need hard or soft links.
12121LN_S=$lt_LN_S
12122
12123# A BSD-compatible nm program.
12124NM=$lt_NM
12125
12126# A symbol stripping program
Brian Gaeke0a621332004-09-08 20:38:05 +000012127STRIP=$STRIP
John Criswell47fdd832003-07-14 16:52:07 +000012128
12129# Used to examine libraries when file_magic_cmd begins "file"
12130MAGIC_CMD=$MAGIC_CMD
12131
12132# Used on cygwin: DLL creation program.
12133DLLTOOL="$DLLTOOL"
12134
12135# Used on cygwin: object dumper.
12136OBJDUMP="$OBJDUMP"
12137
12138# Used on cygwin: assembler.
12139AS="$AS"
12140
12141# The name of the directory that contains temporary libtool files.
12142objdir=$objdir
12143
12144# How to create reloadable object files.
12145reload_flag=$lt_reload_flag
12146reload_cmds=$lt_reload_cmds
12147
12148# How to pass a linker flag through the compiler.
12149wl=$lt_lt_prog_compiler_wl_CXX
12150
12151# Object file suffix (normally "o").
12152objext="$ac_objext"
12153
12154# Old archive suffix (normally "a").
12155libext="$libext"
12156
12157# Shared library suffix (normally ".so").
12158shrext='$shrext'
12159
12160# Executable file suffix (normally "").
12161exeext="$exeext"
12162
12163# Additional compiler flags for building library objects.
12164pic_flag=$lt_lt_prog_compiler_pic_CXX
12165pic_mode=$pic_mode
12166
12167# What is the maximum length of a command?
12168max_cmd_len=$lt_cv_sys_max_cmd_len
12169
12170# Does compiler simultaneously support -c and -o options?
12171compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12172
12173# Must we lock files when doing compilation ?
12174need_locks=$lt_need_locks
12175
12176# Do we need the lib prefix for modules?
12177need_lib_prefix=$need_lib_prefix
12178
12179# Do we need a version for libraries?
12180need_version=$need_version
12181
12182# Whether dlopen is supported.
12183dlopen_support=$enable_dlopen
12184
12185# Whether dlopen of programs is supported.
12186dlopen_self=$enable_dlopen_self
12187
12188# Whether dlopen of statically linked programs is supported.
12189dlopen_self_static=$enable_dlopen_self_static
12190
12191# Compiler flag to prevent dynamic linking.
12192link_static_flag=$lt_lt_prog_compiler_static_CXX
12193
12194# Compiler flag to turn off builtin functions.
12195no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12196
12197# Compiler flag to allow reflexive dlopens.
12198export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12199
12200# Compiler flag to generate shared objects directly from archives.
12201whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12202
12203# Compiler flag to generate thread-safe objects.
12204thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12205
12206# Library versioning type.
12207version_type=$version_type
12208
12209# Format of library name prefix.
12210libname_spec=$lt_libname_spec
12211
12212# List of archive names. First name is the real one, the rest are links.
12213# The last name is the one that the linker finds with -lNAME.
12214library_names_spec=$lt_library_names_spec
12215
12216# The coded name of the library, if different from the real name.
12217soname_spec=$lt_soname_spec
12218
12219# Commands used to build and install an old-style archive.
12220RANLIB=$lt_RANLIB
12221old_archive_cmds=$lt_old_archive_cmds_CXX
12222old_postinstall_cmds=$lt_old_postinstall_cmds
12223old_postuninstall_cmds=$lt_old_postuninstall_cmds
12224
12225# Create an old-style archive from a shared archive.
12226old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12227
12228# Create a temporary old-style archive to link instead of a shared archive.
12229old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12230
12231# Commands used to build and install a shared archive.
12232archive_cmds=$lt_archive_cmds_CXX
12233archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12234postinstall_cmds=$lt_postinstall_cmds
12235postuninstall_cmds=$lt_postuninstall_cmds
12236
12237# Commands used to build a loadable module (assumed same as above if empty)
12238module_cmds=$lt_module_cmds_CXX
12239module_expsym_cmds=$lt_module_expsym_cmds_CXX
12240
12241# Commands to strip libraries.
12242old_striplib=$lt_old_striplib
12243striplib=$lt_striplib
12244
12245# Dependencies to place before the objects being linked to create a
12246# shared library.
12247predep_objects=$lt_predep_objects_CXX
12248
12249# Dependencies to place after the objects being linked to create a
12250# shared library.
12251postdep_objects=$lt_postdep_objects_CXX
12252
12253# Dependencies to place before the objects being linked to create a
12254# shared library.
12255predeps=$lt_predeps_CXX
12256
12257# Dependencies to place after the objects being linked to create a
12258# shared library.
12259postdeps=$lt_postdeps_CXX
12260
12261# The library search path used internally by the compiler when linking
12262# a shared library.
12263compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12264
12265# Method to check whether dependent libraries are shared objects.
12266deplibs_check_method=$lt_deplibs_check_method
12267
12268# Command to use when deplibs_check_method == file_magic.
12269file_magic_cmd=$lt_file_magic_cmd
12270
12271# Flag that allows shared libraries with undefined symbols to be built.
12272allow_undefined_flag=$lt_allow_undefined_flag_CXX
12273
12274# Flag that forces no undefined symbols.
12275no_undefined_flag=$lt_no_undefined_flag_CXX
12276
12277# Commands used to finish a libtool library installation in a directory.
12278finish_cmds=$lt_finish_cmds
12279
12280# Same as above, but a single script fragment to be evaled but not shown.
12281finish_eval=$lt_finish_eval
12282
12283# Take the output of nm and produce a listing of raw symbols and C names.
12284global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12285
12286# Transform the output of nm in a proper C declaration
12287global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12288
12289# Transform the output of nm in a C name address pair
12290global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12291
12292# This is the shared library runtime path variable.
12293runpath_var=$runpath_var
12294
12295# This is the shared library path variable.
12296shlibpath_var=$shlibpath_var
12297
12298# Is shlibpath searched before the hard-coded library search path?
12299shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12300
12301# How to hardcode a shared library path into an executable.
12302hardcode_action=$hardcode_action_CXX
12303
12304# Whether we should hardcode library paths into libraries.
12305hardcode_into_libs=$hardcode_into_libs
12306
12307# Flag to hardcode \$libdir into a binary during linking.
12308# This must work even if \$libdir does not exist.
12309hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12310
12311# If ld is used when linking, flag to hardcode \$libdir into
12312# a binary during linking. This must work even if \$libdir does
12313# not exist.
12314hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12315
12316# Whether we need a single -rpath flag with a separated argument.
12317hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12318
12319# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12320# resulting binary.
12321hardcode_direct=$hardcode_direct_CXX
12322
12323# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12324# resulting binary.
12325hardcode_minus_L=$hardcode_minus_L_CXX
12326
12327# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12328# the resulting binary.
12329hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12330
12331# Set to yes if building a shared library automatically hardcodes DIR into the library
12332# and all subsequent libraries and executables linked against it.
12333hardcode_automatic=$hardcode_automatic_CXX
12334
12335# Variables whose values should be saved in libtool wrapper scripts and
12336# restored at relink time.
12337variables_saved_for_relink="$variables_saved_for_relink"
12338
12339# Whether libtool must link a program against all its dependency libraries.
12340link_all_deplibs=$link_all_deplibs_CXX
12341
12342# Compile-time system search path for libraries
12343sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12344
12345# Run-time system search path for libraries
12346sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12347
12348# Fix the shell variable \$srcfile for the compiler.
12349fix_srcfile_path="$fix_srcfile_path_CXX"
12350
12351# Set to yes if exported symbols are required.
12352always_export_symbols=$always_export_symbols_CXX
12353
12354# The commands to list exported symbols.
12355export_symbols_cmds=$lt_export_symbols_cmds_CXX
12356
12357# The commands to extract the exported symbol list from a shared archive.
12358extract_expsyms_cmds=$lt_extract_expsyms_cmds
12359
12360# Symbols that should not be listed in the preloaded symbols.
12361exclude_expsyms=$lt_exclude_expsyms_CXX
12362
12363# Symbols that must always be exported.
12364include_expsyms=$lt_include_expsyms_CXX
12365
12366# ### END LIBTOOL TAG CONFIG: $tagname
12367
12368__EOF__
12369
12370
12371else
12372 # If there is no Makefile yet, we rely on a make rule to execute
12373 # `config.status --recheck' to rerun these tests and create the
12374 # libtool script then.
12375 test -f Makefile && make "$ltmain"
12376fi
12377
12378
12379ac_ext=c
12380ac_cpp='$CPP $CPPFLAGS'
12381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12383ac_compiler_gnu=$ac_cv_c_compiler_gnu
12384
12385CC=$lt_save_CC
12386LDCXX=$LD
12387LD=$lt_save_LD
12388GCC=$lt_save_GCC
12389with_gnu_ldcxx=$with_gnu_ld
12390with_gnu_ld=$lt_save_with_gnu_ld
12391lt_cv_path_LDCXX=$lt_cv_path_LD
12392lt_cv_path_LD=$lt_save_path_LD
12393lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12394lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12395
12396 else
12397 tagname=""
12398 fi
12399 ;;
12400
12401 F77)
12402 if test -n "$F77" && test "X$F77" != "Xno"; then
12403
12404ac_ext=f
12405ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12406ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12407ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12408
12409
12410archive_cmds_need_lc_F77=no
12411allow_undefined_flag_F77=
12412always_export_symbols_F77=no
12413archive_expsym_cmds_F77=
12414export_dynamic_flag_spec_F77=
12415hardcode_direct_F77=no
12416hardcode_libdir_flag_spec_F77=
12417hardcode_libdir_flag_spec_ld_F77=
12418hardcode_libdir_separator_F77=
12419hardcode_minus_L_F77=no
12420hardcode_automatic_F77=no
12421module_cmds_F77=
12422module_expsym_cmds_F77=
12423link_all_deplibs_F77=unknown
12424old_archive_cmds_F77=$old_archive_cmds
12425no_undefined_flag_F77=
12426whole_archive_flag_spec_F77=
12427enable_shared_with_static_runtimes_F77=no
12428
12429# Source file extension for f77 test sources.
12430ac_ext=f
12431
12432# Object file extension for compiled f77 test sources.
12433objext=o
12434objext_F77=$objext
12435
12436# Code to be used in simple compile tests
12437lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12438
12439# Code to be used in simple link tests
12440lt_simple_link_test_code=" program t\n end\n"
12441
12442# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12443
12444# If no C compiler was specified, use CC.
12445LTCC=${LTCC-"$CC"}
12446
12447# Allow CC to be a program name with arguments.
12448compiler=$CC
12449
12450
12451# Allow CC to be a program name with arguments.
12452lt_save_CC="$CC"
12453CC=${F77-"f77"}
12454compiler=$CC
12455compiler_F77=$CC
12456cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12457
12458echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12459echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12460echo "$as_me:$LINENO: result: $can_build_shared" >&5
12461echo "${ECHO_T}$can_build_shared" >&6
12462
12463echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12464echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12465test "$can_build_shared" = "no" && enable_shared=no
12466
12467# On AIX, shared libraries and static libraries use the same namespace, and
12468# are all built from PIC.
12469case "$host_os" in
12470aix3*)
12471 test "$enable_shared" = yes && enable_static=no
12472 if test -n "$RANLIB"; then
Brian Gaeke0a621332004-09-08 20:38:05 +000012473 archive_cmds="$archive_cmds\${_S_}\$RANLIB \$lib"
John Criswell47fdd832003-07-14 16:52:07 +000012474 postinstall_cmds='$RANLIB $lib'
12475 fi
12476 ;;
12477aix4*)
12478 test "$enable_shared" = yes && enable_static=no
12479 ;;
12480esac
12481echo "$as_me:$LINENO: result: $enable_shared" >&5
12482echo "${ECHO_T}$enable_shared" >&6
12483
12484echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12485echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12486# Make sure either enable_shared or enable_static is yes.
12487test "$enable_shared" = yes || enable_static=yes
12488echo "$as_me:$LINENO: result: $enable_static" >&5
12489echo "${ECHO_T}$enable_static" >&6
12490
12491test "$ld_shlibs_F77" = no && can_build_shared=no
12492
12493GCC_F77="$G77"
12494LD_F77="$LD"
12495
12496lt_prog_compiler_wl_F77=
12497lt_prog_compiler_pic_F77=
12498lt_prog_compiler_static_F77=
12499
12500echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12501echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12502
12503 if test "$GCC" = yes; then
12504 lt_prog_compiler_wl_F77='-Wl,'
12505 lt_prog_compiler_static_F77='-static'
12506
12507 case $host_os in
12508 aix*)
12509 # All AIX code is PIC.
12510 if test "$host_cpu" = ia64; then
12511 # AIX 5 now supports IA64 processor
12512 lt_prog_compiler_static_F77='-Bstatic'
12513 fi
12514 ;;
12515
12516 amigaos*)
12517 # FIXME: we need at least 68020 code to build shared libraries, but
12518 # adding the `-m68020' flag to GCC prevents building anything better,
12519 # like `-m68040'.
12520 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12521 ;;
12522
12523 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12524 # PIC is the default for these OSes.
12525 ;;
12526
12527 mingw* | pw32* | os2*)
12528 # This hack is so that the source file can tell whether it is being
12529 # built for inclusion in a dll (and should export symbols for example).
12530 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12531 ;;
12532
12533 darwin* | rhapsody*)
12534 # PIC is the default on this platform
12535 # Common symbols not allowed in MH_DYLIB files
12536 lt_prog_compiler_pic_F77='-fno-common'
12537 ;;
12538
12539 msdosdjgpp*)
12540 # Just because we use GCC doesn't mean we suddenly get shared libraries
12541 # on systems that don't support them.
12542 lt_prog_compiler_can_build_shared_F77=no
12543 enable_shared=no
12544 ;;
12545
12546 sysv4*MP*)
12547 if test -d /usr/nec; then
12548 lt_prog_compiler_pic_F77=-Kconform_pic
12549 fi
12550 ;;
12551
12552 hpux*)
12553 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12554 # not for PA HP-UX.
12555 case "$host_cpu" in
12556 hppa*64*|ia64*)
12557 # +Z the default
12558 ;;
12559 *)
12560 lt_prog_compiler_pic_F77='-fPIC'
12561 ;;
12562 esac
12563 ;;
12564
12565 *)
12566 lt_prog_compiler_pic_F77='-fPIC'
12567 ;;
12568 esac
12569 else
12570 # PORTME Check for flag to pass linker flags through the system compiler.
12571 case $host_os in
12572 aix*)
12573 lt_prog_compiler_wl_F77='-Wl,'
12574 if test "$host_cpu" = ia64; then
12575 # AIX 5 now supports IA64 processor
12576 lt_prog_compiler_static_F77='-Bstatic'
12577 else
12578 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12579 fi
12580 ;;
12581
12582 mingw* | pw32* | os2*)
12583 # This hack is so that the source file can tell whether it is being
12584 # built for inclusion in a dll (and should export symbols for example).
12585 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12586 ;;
12587
12588 hpux9* | hpux10* | hpux11*)
12589 lt_prog_compiler_wl_F77='-Wl,'
12590 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12591 # not for PA HP-UX.
12592 case "$host_cpu" in
12593 hppa*64*|ia64*)
12594 # +Z the default
12595 ;;
12596 *)
12597 lt_prog_compiler_pic_F77='+Z'
12598 ;;
12599 esac
12600 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12601 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12602 ;;
12603
12604 irix5* | irix6* | nonstopux*)
12605 lt_prog_compiler_wl_F77='-Wl,'
12606 # PIC (with -KPIC) is the default.
12607 lt_prog_compiler_static_F77='-non_shared'
12608 ;;
12609
12610 newsos6)
12611 lt_prog_compiler_pic_F77='-KPIC'
12612 lt_prog_compiler_static_F77='-Bstatic'
12613 ;;
12614
12615 linux*)
12616 case $CC in
Brian Gaeke0a621332004-09-08 20:38:05 +000012617 icc|ecc)
John Criswell47fdd832003-07-14 16:52:07 +000012618 lt_prog_compiler_wl_F77='-Wl,'
12619 lt_prog_compiler_pic_F77='-KPIC'
12620 lt_prog_compiler_static_F77='-static'
12621 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +000012622 ccc)
John Criswell47fdd832003-07-14 16:52:07 +000012623 lt_prog_compiler_wl_F77='-Wl,'
12624 # All Alpha code is PIC.
12625 lt_prog_compiler_static_F77='-non_shared'
12626 ;;
12627 esac
12628 ;;
12629
12630 osf3* | osf4* | osf5*)
12631 lt_prog_compiler_wl_F77='-Wl,'
12632 # All OSF/1 code is PIC.
12633 lt_prog_compiler_static_F77='-non_shared'
12634 ;;
12635
12636 sco3.2v5*)
12637 lt_prog_compiler_pic_F77='-Kpic'
12638 lt_prog_compiler_static_F77='-dn'
12639 ;;
12640
12641 solaris*)
12642 lt_prog_compiler_wl_F77='-Wl,'
12643 lt_prog_compiler_pic_F77='-KPIC'
12644 lt_prog_compiler_static_F77='-Bstatic'
12645 ;;
12646
12647 sunos4*)
12648 lt_prog_compiler_wl_F77='-Qoption ld '
12649 lt_prog_compiler_pic_F77='-PIC'
12650 lt_prog_compiler_static_F77='-Bstatic'
12651 ;;
12652
12653 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12654 lt_prog_compiler_wl_F77='-Wl,'
12655 lt_prog_compiler_pic_F77='-KPIC'
12656 lt_prog_compiler_static_F77='-Bstatic'
12657 ;;
12658
12659 sysv4*MP*)
12660 if test -d /usr/nec ;then
12661 lt_prog_compiler_pic_F77='-Kconform_pic'
12662 lt_prog_compiler_static_F77='-Bstatic'
12663 fi
12664 ;;
12665
12666 uts4*)
12667 lt_prog_compiler_pic_F77='-pic'
12668 lt_prog_compiler_static_F77='-Bstatic'
12669 ;;
12670
12671 *)
12672 lt_prog_compiler_can_build_shared_F77=no
12673 ;;
12674 esac
12675 fi
12676
12677echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12678echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12679
12680#
12681# Check to make sure the PIC flag actually works.
12682#
12683if test -n "$lt_prog_compiler_pic_F77"; then
Brian Gaeke0a621332004-09-08 20:38:05 +000012684 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012685echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12686if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12688else
12689 lt_prog_compiler_pic_works_F77=no
12690 ac_outfile=conftest.$ac_objext
12691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12692 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12693 # Insert the option either (1) after the last *FLAGS variable, or
12694 # (2) before a word containing "conftest.", or (3) at the end.
12695 # Note that $ac_compile itself does not contain backslashes and begins
12696 # with a dollar sign (not a hyphen), so the echo should work correctly.
12697 # The option is referenced via a variable to avoid confusing sed.
12698 lt_compile=`echo "$ac_compile" | $SED \
12699 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12701 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke0a621332004-09-08 20:38:05 +000012702 (eval echo "\"\$as_me:12702: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012703 (eval "$lt_compile" 2>conftest.err)
12704 ac_status=$?
12705 cat conftest.err >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000012706 echo "$as_me:12706: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012707 if (exit $ac_status) && test -s "$ac_outfile"; then
12708 # The compiler can only warn and ignore the option if not recognized
12709 # So say no if there are warnings
12710 if test ! -s conftest.err; then
12711 lt_prog_compiler_pic_works_F77=yes
12712 fi
12713 fi
12714 $rm conftest*
12715
12716fi
12717echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12718echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12719
12720if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12721 case $lt_prog_compiler_pic_F77 in
12722 "" | " "*) ;;
12723 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12724 esac
12725else
12726 lt_prog_compiler_pic_F77=
12727 lt_prog_compiler_can_build_shared_F77=no
12728fi
12729
12730fi
12731case "$host_os" in
12732 # For platforms which do not support PIC, -DPIC is meaningless:
12733 *djgpp*)
12734 lt_prog_compiler_pic_F77=
12735 ;;
12736 *)
12737 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12738 ;;
12739esac
12740
12741echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12742echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12743if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12744 echo $ECHO_N "(cached) $ECHO_C" >&6
12745else
12746 lt_cv_prog_compiler_c_o_F77=no
12747 $rm -r conftest 2>/dev/null
12748 mkdir conftest
12749 cd conftest
12750 mkdir out
12751 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12752
12753 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
12754 # that will create temporary files in the current directory regardless of
12755 # the output directory. Thus, making CWD read-only will cause this test
12756 # to fail, enabling locking or at least warning the user not to do parallel
12757 # builds.
12758 chmod -w .
12759
12760 lt_compiler_flag="-o out/conftest2.$ac_objext"
12761 # Insert the option either (1) after the last *FLAGS variable, or
12762 # (2) before a word containing "conftest.", or (3) at the end.
12763 # Note that $ac_compile itself does not contain backslashes and begins
12764 # with a dollar sign (not a hyphen), so the echo should work correctly.
12765 lt_compile=`echo "$ac_compile" | $SED \
12766 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12767 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12768 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke0a621332004-09-08 20:38:05 +000012769 (eval echo "\"\$as_me:12769: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000012770 (eval "$lt_compile" 2>out/conftest.err)
12771 ac_status=$?
12772 cat out/conftest.err >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000012773 echo "$as_me:12773: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000012774 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12775 then
12776 # The compiler can only warn and ignore the option if not recognized
12777 # So say no if there are warnings
12778 if test ! -s out/conftest.err; then
12779 lt_cv_prog_compiler_c_o_F77=yes
12780 fi
12781 fi
12782 chmod u+w .
Brian Gaeke0a621332004-09-08 20:38:05 +000012783 $rm conftest* out/*
12784 rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000012785 cd ..
12786 rmdir conftest
12787 $rm conftest*
12788
12789fi
12790echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12791echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12792
12793
12794hard_links="nottested"
12795if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12796 # do not overwrite the value of need_locks provided by the user
12797 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12798echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12799 hard_links=yes
12800 $rm conftest*
12801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12802 touch conftest.a
12803 ln conftest.a conftest.b 2>&5 || hard_links=no
12804 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12805 echo "$as_me:$LINENO: result: $hard_links" >&5
12806echo "${ECHO_T}$hard_links" >&6
12807 if test "$hard_links" = no; then
12808 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12809echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12810 need_locks=warn
12811 fi
12812else
12813 need_locks=no
12814fi
12815
12816echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12817echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12818
12819 runpath_var=
12820 allow_undefined_flag_F77=
12821 enable_shared_with_static_runtimes_F77=no
12822 archive_cmds_F77=
12823 archive_expsym_cmds_F77=
12824 old_archive_From_new_cmds_F77=
12825 old_archive_from_expsyms_cmds_F77=
12826 export_dynamic_flag_spec_F77=
12827 whole_archive_flag_spec_F77=
12828 thread_safe_flag_spec_F77=
12829 hardcode_libdir_flag_spec_F77=
12830 hardcode_libdir_flag_spec_ld_F77=
12831 hardcode_libdir_separator_F77=
12832 hardcode_direct_F77=no
12833 hardcode_minus_L_F77=no
12834 hardcode_shlibpath_var_F77=unsupported
12835 link_all_deplibs_F77=unknown
12836 hardcode_automatic_F77=no
12837 module_cmds_F77=
12838 module_expsym_cmds_F77=
12839 always_export_symbols_F77=no
12840 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12841 # include_expsyms should be a list of space-separated symbols to be *always*
12842 # included in the symbol list
12843 include_expsyms_F77=
12844 # exclude_expsyms can be an extended regexp of symbols to exclude
12845 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12846 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12847 # as well as any symbol that contains `d'.
12848 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12849 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12850 # platforms (ab)use it in PIC code, but their linkers get confused if
12851 # the symbol is explicitly referenced. Since portable code cannot
12852 # rely on this symbol name, it's probably fine to never include it in
12853 # preloaded symbol tables.
12854 extract_expsyms_cmds=
12855
12856 case $host_os in
12857 cygwin* | mingw* | pw32*)
12858 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12859 # When not using gcc, we currently assume that we are using
12860 # Microsoft Visual C++.
12861 if test "$GCC" != yes; then
12862 with_gnu_ld=no
12863 fi
12864 ;;
12865 openbsd*)
12866 with_gnu_ld=no
12867 ;;
12868 esac
12869
12870 ld_shlibs_F77=yes
12871 if test "$with_gnu_ld" = yes; then
12872 # If archive_cmds runs LD, not CC, wlarc should be empty
12873 wlarc='${wl}'
12874
12875 # See if GNU ld supports shared libraries.
12876 case $host_os in
12877 aix3* | aix4* | aix5*)
12878 # On AIX/PPC, the GNU linker is very broken
12879 if test "$host_cpu" != ia64; then
12880 ld_shlibs_F77=no
12881 cat <<EOF 1>&2
12882
12883*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12884*** to be unable to reliably create shared libraries on AIX.
12885*** Therefore, libtool is disabling shared libraries support. If you
12886*** really care for shared libraries, you may want to modify your PATH
12887*** so that a non-GNU linker is found, and then restart.
12888
12889EOF
12890 fi
12891 ;;
12892
12893 amigaos*)
Brian Gaeke0a621332004-09-08 20:38:05 +000012894 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000012895 hardcode_libdir_flag_spec_F77='-L$libdir'
12896 hardcode_minus_L_F77=yes
12897
12898 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12899 # that the semantics of dynamic libraries on AmigaOS, at least up
12900 # to version 4, is to share data among multiple programs linked
12901 # with the same dynamic library. Since this doesn't match the
12902 # behavior of shared libraries on other platforms, we can't use
12903 # them.
12904 ld_shlibs_F77=no
12905 ;;
12906
12907 beos*)
12908 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12909 allow_undefined_flag_F77=unsupported
12910 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12911 # support --undefined. This deserves some investigation. FIXME
12912 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12913 else
12914 ld_shlibs_F77=no
12915 fi
12916 ;;
12917
12918 cygwin* | mingw* | pw32*)
12919 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12920 # as there is no search path for DLLs.
12921 hardcode_libdir_flag_spec_F77='-L$libdir'
12922 allow_undefined_flag_F77=unsupported
12923 always_export_symbols_F77=no
12924 enable_shared_with_static_runtimes_F77=yes
12925 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12926
12927 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12928 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12929 # If the export-symbols file already is a .def file (1st line
12930 # is EXPORTS), use it as is; otherwise, prepend...
12931 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12932 cp $export_symbols $output_objdir/$soname.def;
12933 else
12934 echo EXPORTS > $output_objdir/$soname.def;
12935 cat $export_symbols >> $output_objdir/$soname.def;
Brian Gaeke0a621332004-09-08 20:38:05 +000012936 fi${_S_}
John Criswell47fdd832003-07-14 16:52:07 +000012937 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12938 else
12939 ld_shlibs=no
12940 fi
12941 ;;
12942
12943 netbsd*)
12944 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12945 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12946 wlarc=
12947 else
12948 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12949 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12950 fi
12951 ;;
12952
12953 solaris* | sysv5*)
12954 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12955 ld_shlibs_F77=no
12956 cat <<EOF 1>&2
12957
12958*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12959*** create shared libraries on Solaris systems. Therefore, libtool
12960*** is disabling shared libraries support. We urge you to upgrade GNU
12961*** binutils to release 2.9.1 or newer. Another option is to modify
12962*** your PATH or compiler configuration so that the native linker is
12963*** used, and then restart.
12964
12965EOF
12966 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12967 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12968 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12969 else
12970 ld_shlibs_F77=no
12971 fi
12972 ;;
12973
12974 sunos4*)
12975 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12976 wlarc=
12977 hardcode_direct_F77=yes
12978 hardcode_shlibpath_var_F77=no
12979 ;;
12980
12981 *)
12982 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12983 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12984 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12985 else
12986 ld_shlibs_F77=no
12987 fi
12988 ;;
12989 esac
12990
12991 if test "$ld_shlibs_F77" = yes; then
12992 runpath_var=LD_RUN_PATH
12993 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
12994 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
12995 # ancient GNU ld didn't support --whole-archive et. al.
12996 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12997 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12998 else
12999 whole_archive_flag_spec_F77=
13000 fi
13001 fi
13002 else
13003 # PORTME fill in a description of your system's linker (not GNU ld)
13004 case $host_os in
13005 aix3*)
13006 allow_undefined_flag_F77=unsupported
13007 always_export_symbols_F77=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000013008 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000013009 # Note: this linker hardcodes the directories in LIBPATH if there
13010 # are no directories specified by -L.
13011 hardcode_minus_L_F77=yes
13012 if test "$GCC" = yes && test -z "$link_static_flag"; then
13013 # Neither direct hardcoding nor static linking is supported with a
13014 # broken collect2.
13015 hardcode_direct_F77=unsupported
13016 fi
13017 ;;
13018
13019 aix4* | aix5*)
13020 if test "$host_cpu" = ia64; then
13021 # On IA64, the linker does run time linking by default, so we don't
13022 # have to do anything special.
13023 aix_use_runtimelinking=no
13024 exp_sym_flag='-Bexport'
13025 no_entry_flag=""
13026 else
13027 # If we're using GNU nm, then we don't want the "-C" option.
13028 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13029 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13030 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'
13031 else
13032 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'
13033 fi
13034 aix_use_runtimelinking=no
13035
13036 # Test if we are trying to use run time linking or normal
13037 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13038 # need to do runtime linking.
13039 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13040 for ld_flag in $LDFLAGS; do
13041 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13042 aix_use_runtimelinking=yes
13043 break
13044 fi
13045 done
13046 esac
13047
13048 exp_sym_flag='-bexport'
13049 no_entry_flag='-bnoentry'
13050 fi
13051
13052 # When large executables or shared objects are built, AIX ld can
13053 # have problems creating the table of contents. If linking a library
13054 # or program results in "error TOC overflow" add -mminimal-toc to
13055 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13056 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13057
13058 archive_cmds_F77=''
13059 hardcode_direct_F77=yes
13060 hardcode_libdir_separator_F77=':'
13061 link_all_deplibs_F77=yes
13062
13063 if test "$GCC" = yes; then
13064 case $host_os in aix4.012|aix4.012.*)
13065 # We only want to do this on AIX 4.2 and lower, the check
13066 # below for broken collect2 doesn't work under 4.3+
13067 collect2name=`${CC} -print-prog-name=collect2`
13068 if test -f "$collect2name" && \
13069 strings "$collect2name" | grep resolve_lib_name >/dev/null
13070 then
13071 # We have reworked collect2
13072 hardcode_direct_F77=yes
13073 else
13074 # We have old collect2
13075 hardcode_direct_F77=unsupported
13076 # It fails to find uninstalled libraries when the uninstalled
13077 # path is not listed in the libpath. Setting hardcode_minus_L
13078 # to unsupported forces relinking
13079 hardcode_minus_L_F77=yes
13080 hardcode_libdir_flag_spec_F77='-L$libdir'
13081 hardcode_libdir_separator_F77=
13082 fi
13083 esac
13084 shared_flag='-shared'
13085 else
13086 # not using gcc
13087 if test "$host_cpu" = ia64; then
13088 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13089 # chokes on -Wl,-G. The following line is correct:
13090 shared_flag='-G'
13091 else
13092 if test "$aix_use_runtimelinking" = yes; then
13093 shared_flag='${wl}-G'
13094 else
13095 shared_flag='${wl}-bM:SRE'
13096 fi
13097 fi
13098 fi
13099
13100 # It seems that -bexpall does not export symbols beginning with
13101 # underscore (_), so it is better to generate a list of symbols to export.
13102 always_export_symbols_F77=yes
13103 if test "$aix_use_runtimelinking" = yes; then
13104 # Warning - without using the other runtime loading flags (-brtl),
13105 # -berok will link without error, but may produce a broken library.
13106 allow_undefined_flag_F77='-berok'
13107 # Determine the default libpath from the value encoded in an empty executable.
13108 cat >conftest.$ac_ext <<_ACEOF
13109 program main
13110
13111 end
13112_ACEOF
13113rm -f conftest.$ac_objext conftest$ac_exeext
13114if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000013115 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013116 ac_status=$?
13117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13118 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000013119 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13121 (eval $ac_try) 2>&5
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13125
13126aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13127}'`
13128# Check for a 64-bit object if we didn't find anything.
13129if 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; }
13130}'`; fi
13131else
13132 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013133sed 's/^/| /' conftest.$ac_ext >&5
13134
John Criswell47fdd832003-07-14 16:52:07 +000013135fi
Brian Gaeke0a621332004-09-08 20:38:05 +000013136rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013137if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13138
13139 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13140 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"
13141 else
13142 if test "$host_cpu" = ia64; then
13143 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13144 allow_undefined_flag_F77="-z nodefs"
13145 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"
13146 else
13147 # Determine the default libpath from the value encoded in an empty executable.
13148 cat >conftest.$ac_ext <<_ACEOF
13149 program main
13150
13151 end
13152_ACEOF
13153rm -f conftest.$ac_objext conftest$ac_exeext
13154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000013155 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000013156 ac_status=$?
13157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13158 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000013159 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13161 (eval $ac_try) 2>&5
13162 ac_status=$?
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; }; then
13165
13166aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13167}'`
13168# Check for a 64-bit object if we didn't find anything.
13169if 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; }
13170}'`; fi
13171else
13172 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013173sed 's/^/| /' conftest.$ac_ext >&5
13174
John Criswell47fdd832003-07-14 16:52:07 +000013175fi
Brian Gaeke0a621332004-09-08 20:38:05 +000013176rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013177if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13178
13179 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13180 # Warning - without using the other run time loading flags,
13181 # -berok will link without error, but may produce a broken library.
13182 no_undefined_flag_F77=' ${wl}-bernotok'
13183 allow_undefined_flag_F77=' ${wl}-berok'
13184 # -bexpall does not export symbols beginning with underscore (_)
13185 always_export_symbols_F77=yes
13186 # Exported symbols can be pulled into shared objects from archives
13187 whole_archive_flag_spec_F77=' '
13188 archive_cmds_need_lc_F77=yes
13189 # This is similar to how AIX traditionally builds it's shared libraries.
Brian Gaeke0a621332004-09-08 20:38:05 +000013190 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000013191 fi
13192 fi
13193 ;;
13194
13195 amigaos*)
Brian Gaeke0a621332004-09-08 20:38:05 +000013196 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000013197 hardcode_libdir_flag_spec_F77='-L$libdir'
13198 hardcode_minus_L_F77=yes
13199 # see comment about different semantics on the GNU ld section
13200 ld_shlibs_F77=no
13201 ;;
13202
13203 bsdi4*)
13204 export_dynamic_flag_spec_F77=-rdynamic
13205 ;;
13206
13207 cygwin* | mingw* | pw32*)
13208 # When not using gcc, we currently assume that we are using
13209 # Microsoft Visual C++.
13210 # hardcode_libdir_flag_spec is actually meaningless, as there is
13211 # no search path for DLLs.
13212 hardcode_libdir_flag_spec_F77=' '
13213 allow_undefined_flag_F77=unsupported
13214 # Tell ltmain to make .lib files, not .a files.
13215 libext=lib
13216 # Tell ltmain to make .dll files, not .so files.
13217 shrext=".dll"
13218 # FIXME: Setting linknames here is a bad hack.
Brian Gaeke0a621332004-09-08 20:38:05 +000013219 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
John Criswell47fdd832003-07-14 16:52:07 +000013220 # The linker will automatically build a .lib file if we build a DLL.
13221 old_archive_From_new_cmds_F77='true'
13222 # FIXME: Should let the user specify the lib program.
13223 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13224 fix_srcfile_path='`cygpath -w "$srcfile"`'
13225 enable_shared_with_static_runtimes_F77=yes
13226 ;;
13227
13228 darwin* | rhapsody*)
Brian Gaeke0a621332004-09-08 20:38:05 +000013229 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
John Criswell47fdd832003-07-14 16:52:07 +000013230 archive_cmds_need_lc_F77=no
13231 case "$host_os" in
13232 rhapsody* | darwin1.[012])
13233 allow_undefined_flag_F77='-undefined suppress'
13234 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +000013235 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
13236 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13237 ;;
13238 *) # Darwin 7.0 on
13239 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
13240 10.[012])
13241 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13242 ;;
13243 *) # 10.3 on
13244 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
13245 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13246 else
13247 allow_undefined_flag_F77='-undefined dynamic_lookup'
13248 fi
13249 ;;
13250 esac
John Criswell47fdd832003-07-14 16:52:07 +000013251 ;;
13252 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000013253 # FIXME: Relying on posixy $() will cause problems for
13254 # cross-compilation, but unfortunately the echo tests do not
13255 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13256 # `"' quotes if we put them in here... so don't!
John Criswell47fdd832003-07-14 16:52:07 +000013257 lt_int_apple_cc_single_mod=no
13258 output_verbose_link_cmd='echo'
13259 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13260 lt_int_apple_cc_single_mod=yes
13261 fi
13262 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Brian Gaeke0a621332004-09-08 20:38:05 +000013263 archive_cmds_F77='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
John Criswell47fdd832003-07-14 16:52:07 +000013264 else
Brian Gaeke0a621332004-09-08 20:38:05 +000013265 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
John Criswell47fdd832003-07-14 16:52:07 +000013266 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000013267 module_cmds_F77='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000013268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13269 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Brian Gaeke0a621332004-09-08 20:38:05 +000013270 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
John Criswell47fdd832003-07-14 16:52:07 +000013271 else
Brian Gaeke0a621332004-09-08 20:38:05 +000013272 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
John Criswell47fdd832003-07-14 16:52:07 +000013273 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000013274 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
John Criswell47fdd832003-07-14 16:52:07 +000013275 hardcode_direct_F77=no
13276 hardcode_automatic_F77=yes
13277 hardcode_shlibpath_var_F77=unsupported
13278 whole_archive_flag_spec_F77='-all_load $convenience'
13279 link_all_deplibs_F77=yes
13280 fi
13281 ;;
13282
13283 dgux*)
13284 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13285 hardcode_libdir_flag_spec_F77='-L$libdir'
13286 hardcode_shlibpath_var_F77=no
13287 ;;
13288
13289 freebsd1*)
13290 ld_shlibs_F77=no
13291 ;;
13292
13293 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13294 # support. Future versions do this automatically, but an explicit c++rt0.o
13295 # does not break anything, and helps significantly (at the cost of a little
13296 # extra space).
13297 freebsd2.2*)
13298 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13299 hardcode_libdir_flag_spec_F77='-R$libdir'
13300 hardcode_direct_F77=yes
13301 hardcode_shlibpath_var_F77=no
13302 ;;
13303
13304 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13305 freebsd2*)
13306 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13307 hardcode_direct_F77=yes
13308 hardcode_minus_L_F77=yes
13309 hardcode_shlibpath_var_F77=no
13310 ;;
13311
13312 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Brian Gaeke0a621332004-09-08 20:38:05 +000013313 freebsd*)
John Criswell47fdd832003-07-14 16:52:07 +000013314 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13315 hardcode_libdir_flag_spec_F77='-R$libdir'
13316 hardcode_direct_F77=yes
13317 hardcode_shlibpath_var_F77=no
13318 ;;
13319
13320 hpux9*)
13321 if test "$GCC" = yes; then
Brian Gaeke0a621332004-09-08 20:38:05 +000013322 archive_cmds_F77='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000013323 else
Brian Gaeke0a621332004-09-08 20:38:05 +000013324 archive_cmds_F77='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000013325 fi
13326 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13327 hardcode_libdir_separator_F77=:
13328 hardcode_direct_F77=yes
13329
13330 # hardcode_minus_L: Not really in the search PATH,
13331 # but as the default location of the library.
13332 hardcode_minus_L_F77=yes
13333 export_dynamic_flag_spec_F77='${wl}-E'
13334 ;;
13335
13336 hpux10* | hpux11*)
13337 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13338 case "$host_cpu" in
13339 hppa*64*|ia64*)
13340 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13341 ;;
13342 *)
13343 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13344 ;;
13345 esac
13346 else
13347 case "$host_cpu" in
13348 hppa*64*|ia64*)
13349 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13350 ;;
13351 *)
13352 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13353 ;;
13354 esac
13355 fi
13356 if test "$with_gnu_ld" = no; then
13357 case "$host_cpu" in
13358 hppa*64*)
13359 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13360 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13361 hardcode_libdir_separator_F77=:
13362 hardcode_direct_F77=no
13363 hardcode_shlibpath_var_F77=no
13364 ;;
13365 ia64*)
13366 hardcode_libdir_flag_spec_F77='-L$libdir'
13367 hardcode_direct_F77=no
13368 hardcode_shlibpath_var_F77=no
13369
13370 # hardcode_minus_L: Not really in the search PATH,
13371 # but as the default location of the library.
13372 hardcode_minus_L_F77=yes
13373 ;;
13374 *)
13375 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13376 hardcode_libdir_separator_F77=:
13377 hardcode_direct_F77=yes
13378 export_dynamic_flag_spec_F77='${wl}-E'
13379
13380 # hardcode_minus_L: Not really in the search PATH,
13381 # but as the default location of the library.
13382 hardcode_minus_L_F77=yes
13383 ;;
13384 esac
13385 fi
13386 ;;
13387
13388 irix5* | irix6* | nonstopux*)
13389 if test "$GCC" = yes; then
13390 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'
13391 else
13392 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'
13393 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13394 fi
13395 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13396 hardcode_libdir_separator_F77=:
13397 link_all_deplibs_F77=yes
13398 ;;
13399
13400 netbsd*)
13401 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13402 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13403 else
13404 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13405 fi
13406 hardcode_libdir_flag_spec_F77='-R$libdir'
13407 hardcode_direct_F77=yes
13408 hardcode_shlibpath_var_F77=no
13409 ;;
13410
13411 newsos6)
13412 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13413 hardcode_direct_F77=yes
13414 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13415 hardcode_libdir_separator_F77=:
13416 hardcode_shlibpath_var_F77=no
13417 ;;
13418
13419 openbsd*)
13420 hardcode_direct_F77=yes
13421 hardcode_shlibpath_var_F77=no
13422 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13423 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13424 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13425 export_dynamic_flag_spec_F77='${wl}-E'
13426 else
13427 case $host_os in
13428 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13429 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13430 hardcode_libdir_flag_spec_F77='-R$libdir'
13431 ;;
13432 *)
13433 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13434 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13435 ;;
13436 esac
13437 fi
13438 ;;
13439
13440 os2*)
13441 hardcode_libdir_flag_spec_F77='-L$libdir'
13442 hardcode_minus_L_F77=yes
13443 allow_undefined_flag_F77=unsupported
Brian Gaeke0a621332004-09-08 20:38:05 +000013444 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
John Criswell47fdd832003-07-14 16:52:07 +000013445 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13446 ;;
13447
13448 osf3*)
13449 if test "$GCC" = yes; then
13450 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13451 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'
13452 else
13453 allow_undefined_flag_F77=' -expect_unresolved \*'
13454 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'
13455 fi
13456 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13457 hardcode_libdir_separator_F77=:
13458 ;;
13459
13460 osf4* | osf5*) # as osf3* with the addition of -msym flag
13461 if test "$GCC" = yes; then
13462 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13463 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'
13464 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13465 else
13466 allow_undefined_flag_F77=' -expect_unresolved \*'
13467 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'
Brian Gaeke0a621332004-09-08 20:38:05 +000013468 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${_S_}
13469 $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${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000013470
13471 # Both c and cxx compiler support -rpath directly
13472 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13473 fi
13474 hardcode_libdir_separator_F77=:
13475 ;;
13476
13477 sco3.2v5*)
13478 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13479 hardcode_shlibpath_var_F77=no
13480 export_dynamic_flag_spec_F77='${wl}-Bexport'
13481 runpath_var=LD_RUN_PATH
13482 hardcode_runpath_var=yes
13483 ;;
13484
13485 solaris*)
13486 no_undefined_flag_F77=' -z text'
13487 if test "$GCC" = yes; then
13488 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Brian Gaeke0a621332004-09-08 20:38:05 +000013489 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
13490 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000013491 else
13492 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Brian Gaeke0a621332004-09-08 20:38:05 +000013493 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
13494 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000013495 fi
13496 hardcode_libdir_flag_spec_F77='-R$libdir'
13497 hardcode_shlibpath_var_F77=no
13498 case $host_os in
13499 solaris2.[0-5] | solaris2.[0-5].*) ;;
13500 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13501 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13502 esac
13503 link_all_deplibs_F77=yes
13504 ;;
13505
13506 sunos4*)
13507 if test "x$host_vendor" = xsequent; then
13508 # Use $CC to link under sequent, because it throws in some extra .o
13509 # files that make .init and .fini sections work.
13510 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13511 else
13512 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13513 fi
13514 hardcode_libdir_flag_spec_F77='-L$libdir'
13515 hardcode_direct_F77=yes
13516 hardcode_minus_L_F77=yes
13517 hardcode_shlibpath_var_F77=no
13518 ;;
13519
13520 sysv4)
13521 case $host_vendor in
13522 sni)
13523 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13524 hardcode_direct_F77=yes # is this really true???
13525 ;;
13526 siemens)
13527 ## LD is ld it makes a PLAMLIB
13528 ## CC just makes a GrossModule.
13529 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13530 reload_cmds_F77='$CC -r -o $output$reload_objs'
13531 hardcode_direct_F77=no
13532 ;;
13533 motorola)
13534 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13535 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13536 ;;
13537 esac
13538 runpath_var='LD_RUN_PATH'
13539 hardcode_shlibpath_var_F77=no
13540 ;;
13541
13542 sysv4.3*)
13543 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13544 hardcode_shlibpath_var_F77=no
13545 export_dynamic_flag_spec_F77='-Bexport'
13546 ;;
13547
13548 sysv4*MP*)
13549 if test -d /usr/nec; then
13550 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13551 hardcode_shlibpath_var_F77=no
13552 runpath_var=LD_RUN_PATH
13553 hardcode_runpath_var=yes
13554 ld_shlibs_F77=yes
13555 fi
13556 ;;
13557
13558 sysv4.2uw2*)
13559 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13560 hardcode_direct_F77=yes
13561 hardcode_minus_L_F77=no
13562 hardcode_shlibpath_var_F77=no
13563 hardcode_runpath_var=yes
13564 runpath_var=LD_RUN_PATH
13565 ;;
13566
13567 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13568 no_undefined_flag_F77='${wl}-z ${wl}text'
13569 if test "$GCC" = yes; then
13570 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13571 else
13572 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13573 fi
13574 runpath_var='LD_RUN_PATH'
13575 hardcode_shlibpath_var_F77=no
13576 ;;
13577
13578 sysv5*)
13579 no_undefined_flag_F77=' -z text'
13580 # $CC -shared without GNU ld will not create a library from C++
13581 # object files and a static libstdc++, better avoid it by now
13582 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Brian Gaeke0a621332004-09-08 20:38:05 +000013583 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
13584 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000013585 hardcode_libdir_flag_spec_F77=
13586 hardcode_shlibpath_var_F77=no
13587 runpath_var='LD_RUN_PATH'
13588 ;;
13589
13590 uts4*)
13591 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13592 hardcode_libdir_flag_spec_F77='-L$libdir'
13593 hardcode_shlibpath_var_F77=no
13594 ;;
13595
13596 *)
13597 ld_shlibs_F77=no
13598 ;;
13599 esac
13600 fi
13601
13602echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13603echo "${ECHO_T}$ld_shlibs_F77" >&6
13604test "$ld_shlibs_F77" = no && can_build_shared=no
13605
13606variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13607if test "$GCC" = yes; then
13608 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13609fi
13610
13611#
13612# Do we need to explicitly link libc?
13613#
13614case "x$archive_cmds_need_lc_F77" in
13615x|xyes)
13616 # Assume -lc should be added
13617 archive_cmds_need_lc_F77=yes
13618
13619 if test "$enable_shared" = yes && test "$GCC" = yes; then
13620 case $archive_cmds_F77 in
Brian Gaeke0a621332004-09-08 20:38:05 +000013621 *"$_S_"*)
John Criswell47fdd832003-07-14 16:52:07 +000013622 # FIXME: we may have to deal with multi-command sequences.
13623 ;;
13624 '$CC '*)
13625 # Test whether the compiler implicitly links with -lc since on some
13626 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13627 # to ld, don't add -lc before -lgcc.
13628 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13629echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13630 $rm conftest*
13631 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13632
13633 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13634 (eval $ac_compile) 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); } 2>conftest.err; then
13638 soname=conftest
13639 lib=conftest
13640 libobjs=conftest.$ac_objext
13641 deplibs=
13642 wl=$lt_prog_compiler_wl_F77
13643 compiler_flags=-v
13644 linker_flags=-v
13645 verstring=
13646 output_objdir=.
13647 libname=conftest
13648 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13649 allow_undefined_flag_F77=
13650 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13651 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13652 ac_status=$?
13653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13654 (exit $ac_status); }
13655 then
13656 archive_cmds_need_lc_F77=no
13657 else
13658 archive_cmds_need_lc_F77=yes
13659 fi
13660 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13661 else
13662 cat conftest.err 1>&5
13663 fi
13664 $rm conftest*
13665 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13666echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13667 ;;
13668 esac
13669 fi
13670 ;;
13671esac
13672
Brian Gaeke0a621332004-09-08 20:38:05 +000013673echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13674echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13675hardcode_action_F77=
13676if test -n "$hardcode_libdir_flag_spec_F77" || \
13677 test -n "$runpath_var F77" || \
13678 test "X$hardcode_automatic_F77"="Xyes" ; then
13679
13680 # We can hardcode non-existant directories.
13681 if test "$hardcode_direct_F77" != no &&
13682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13683 # have to relink, otherwise we might link with an installed library
13684 # when we should be linking with a yet-to-be-installed one
13685 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
13686 test "$hardcode_minus_L_F77" != no; then
13687 # Linking always hardcodes the temporary library directory.
13688 hardcode_action_F77=relink
13689 else
13690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13691 hardcode_action_F77=immediate
13692 fi
13693else
13694 # We cannot hardcode anything, or else we can only hardcode existing
13695 # directories.
13696 hardcode_action_F77=unsupported
13697fi
13698echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
13699echo "${ECHO_T}$hardcode_action_F77" >&6
13700
13701if test "$hardcode_action_F77" = relink; then
13702 # Fast installation is not supported
13703 enable_fast_install=no
13704elif test "$shlibpath_overrides_runpath" = yes ||
13705 test "$enable_shared" = no; then
13706 # Fast installation is not necessary
13707 enable_fast_install=needless
13708fi
13709
13710striplib=
13711old_striplib=
13712echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13713echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13714if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13715 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13716 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13717 echo "$as_me:$LINENO: result: yes" >&5
13718echo "${ECHO_T}yes" >&6
13719else
13720# FIXME - insert some real tests, host_os isn't really good enough
13721 case $host_os in
13722 NOT-darwin*)
13723 if test -n "$STRIP" ; then
13724 striplib="$STRIP -x"
13725 echo "$as_me:$LINENO: result: yes" >&5
13726echo "${ECHO_T}yes" >&6
13727 else
13728 echo "$as_me:$LINENO: result: no" >&5
13729echo "${ECHO_T}no" >&6
13730fi
13731 ;;
13732 *)
13733 echo "$as_me:$LINENO: result: no" >&5
13734echo "${ECHO_T}no" >&6
13735 ;;
13736 esac
13737fi
13738
John Criswell47fdd832003-07-14 16:52:07 +000013739echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13740echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13741library_names_spec=
13742libname_spec='lib$name'
13743soname_spec=
13744shrext=".so"
13745postinstall_cmds=
13746postuninstall_cmds=
13747finish_cmds=
13748finish_eval=
13749shlibpath_var=
13750shlibpath_overrides_runpath=unknown
13751version_type=none
13752dynamic_linker="$host_os ld.so"
13753sys_lib_dlsearch_path_spec="/lib /usr/lib"
13754if test "$GCC" = yes; then
13755 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13756 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13757 # if the path contains ";" then we assume it to be the separator
13758 # otherwise default to the standard path separator (i.e. ":") - it is
13759 # assumed that no part of a normal pathname contains ";" but that should
13760 # okay in the real world where ";" in dirpaths is itself problematic.
13761 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13762 else
13763 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13764 fi
13765else
13766 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13767fi
13768need_lib_prefix=unknown
13769hardcode_into_libs=no
13770
13771# when you set need_version to no, make sure it does not cause -set_version
13772# flags to be left without arguments
13773need_version=unknown
13774
13775case $host_os in
13776aix3*)
13777 version_type=linux
13778 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13779 shlibpath_var=LIBPATH
13780
13781 # AIX 3 has no versioning support, so we append a major version to the name.
13782 soname_spec='${libname}${release}${shared_ext}$major'
13783 ;;
13784
13785aix4* | aix5*)
13786 version_type=linux
13787 need_lib_prefix=no
13788 need_version=no
13789 hardcode_into_libs=yes
13790 if test "$host_cpu" = ia64; then
13791 # AIX 5 supports IA64
13792 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13793 shlibpath_var=LD_LIBRARY_PATH
13794 else
13795 # With GCC up to 2.95.x, collect2 would create an import file
13796 # for dependence libraries. The import file would start with
13797 # the line `#! .'. This would cause the generated library to
13798 # depend on `.', always an invalid library. This was fixed in
13799 # development snapshots of GCC prior to 3.0.
13800 case $host_os in
13801 aix4 | aix4.[01] | aix4.[01].*)
13802 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13803 echo ' yes '
13804 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13805 :
13806 else
13807 can_build_shared=no
13808 fi
13809 ;;
13810 esac
13811 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13812 # soname into executable. Probably we can add versioning support to
13813 # collect2, so additional links can be useful in future.
13814 if test "$aix_use_runtimelinking" = yes; then
13815 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13816 # instead of lib<name>.a to let people know that these are not
13817 # typical AIX shared libraries.
13818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13819 else
13820 # We preserve .a as extension for shared libraries through AIX4.2
13821 # and later when we are not doing run time linking.
13822 library_names_spec='${libname}${release}.a $libname.a'
13823 soname_spec='${libname}${release}${shared_ext}$major'
13824 fi
13825 shlibpath_var=LIBPATH
13826 fi
13827 ;;
13828
13829amigaos*)
13830 library_names_spec='$libname.ixlibrary $libname.a'
13831 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Brian Gaeke0a621332004-09-08 20:38:05 +000013832 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
John Criswell47fdd832003-07-14 16:52:07 +000013833 ;;
13834
13835beos*)
13836 library_names_spec='${libname}${shared_ext}'
13837 dynamic_linker="$host_os ld.so"
13838 shlibpath_var=LIBRARY_PATH
13839 ;;
13840
13841bsdi4*)
13842 version_type=linux
13843 need_version=no
13844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13845 soname_spec='${libname}${release}${shared_ext}$major'
13846 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13847 shlibpath_var=LD_LIBRARY_PATH
13848 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13849 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13850 # the default ld.so.conf also contains /usr/contrib/lib and
13851 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13852 # libtool to hard-code these into programs
13853 ;;
13854
13855cygwin* | mingw* | pw32*)
13856 version_type=windows
13857 shrext=".dll"
13858 need_version=no
13859 need_lib_prefix=no
13860
13861 case $GCC,$host_os in
13862 yes,cygwin* | yes,mingw* | yes,pw32*)
13863 library_names_spec='$libname.dll.a'
13864 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Brian Gaeke0a621332004-09-08 20:38:05 +000013865 postinstall_cmds='base_file=`basename \${file}`${_S_}
13866 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
13867 dldir=$destdir/`dirname \$dlpath`${_S_}
13868 test -d \$dldir || mkdir -p \$dldir${_S_}
John Criswell47fdd832003-07-14 16:52:07 +000013869 $install_prog $dir/$dlname \$dldir/$dlname'
Brian Gaeke0a621332004-09-08 20:38:05 +000013870 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
13871 dlpath=$dir/\$dldll${_S_}
John Criswell47fdd832003-07-14 16:52:07 +000013872 $rm \$dlpath'
13873 shlibpath_overrides_runpath=yes
13874
13875 case $host_os in
13876 cygwin*)
13877 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13878 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Brian Gaeke0a621332004-09-08 20:38:05 +000013879 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000013880 ;;
13881 mingw*)
13882 # MinGW DLLs use traditional 'lib' prefix
13883 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13884 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13885 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13886 # It is most probably a Windows format PATH printed by
13887 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13888 # path with ; separators, and with drive letters. We can handle the
13889 # drive letters (cygwin fileutils understands them), so leave them,
13890 # especially as we might pass files found there to a mingw objdump,
13891 # which wouldn't understand a cygwinified path. Ahh.
13892 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13893 else
13894 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13895 fi
13896 ;;
13897 pw32*)
13898 # pw32 DLLs use 'pw' prefix rather than 'lib'
13899 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13900 ;;
13901 esac
13902 ;;
13903
13904 *)
13905 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13906 ;;
13907 esac
13908 dynamic_linker='Win32 ld.exe'
13909 # FIXME: first we should search . and the directory the executable is in
13910 shlibpath_var=PATH
13911 ;;
13912
13913darwin* | rhapsody*)
13914 dynamic_linker="$host_os dyld"
13915 version_type=darwin
13916 need_lib_prefix=no
13917 need_version=no
Brian Gaeke0a621332004-09-08 20:38:05 +000013918 # FIXME: Relying on posixy $() will cause problems for
13919 # cross-compilation, but unfortunately the echo tests do not
13920 # yet detect zsh echo's removal of \ escapes.
13921 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000013922 soname_spec='${libname}${release}${major}$shared_ext'
13923 shlibpath_overrides_runpath=yes
13924 shlibpath_var=DYLD_LIBRARY_PATH
13925 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
13926 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Brian Gaeke0a621332004-09-08 20:38:05 +000013927 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13928 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"`
John Criswell47fdd832003-07-14 16:52:07 +000013929 fi
13930 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13931 ;;
13932
13933dgux*)
13934 version_type=linux
13935 need_lib_prefix=no
13936 need_version=no
13937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13938 soname_spec='${libname}${release}${shared_ext}$major'
13939 shlibpath_var=LD_LIBRARY_PATH
13940 ;;
13941
13942freebsd1*)
13943 dynamic_linker=no
13944 ;;
13945
13946freebsd*)
13947 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13948 version_type=freebsd-$objformat
13949 case $version_type in
13950 freebsd-elf*)
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13952 need_version=no
13953 need_lib_prefix=no
13954 ;;
13955 freebsd-*)
13956 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13957 need_version=yes
13958 ;;
13959 esac
13960 shlibpath_var=LD_LIBRARY_PATH
13961 case $host_os in
13962 freebsd2*)
13963 shlibpath_overrides_runpath=yes
13964 ;;
13965 freebsd3.01* | freebsdelf3.01*)
13966 shlibpath_overrides_runpath=yes
13967 hardcode_into_libs=yes
13968 ;;
13969 *) # from 3.2 on
13970 shlibpath_overrides_runpath=no
13971 hardcode_into_libs=yes
13972 ;;
13973 esac
13974 ;;
13975
13976gnu*)
13977 version_type=linux
13978 need_lib_prefix=no
13979 need_version=no
13980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13981 soname_spec='${libname}${release}${shared_ext}$major'
13982 shlibpath_var=LD_LIBRARY_PATH
13983 hardcode_into_libs=yes
13984 ;;
13985
13986hpux9* | hpux10* | hpux11*)
13987 # Give a soname corresponding to the major version so that dld.sl refuses to
13988 # link against other versions.
13989 version_type=sunos
13990 need_lib_prefix=no
13991 need_version=no
13992 case "$host_cpu" in
13993 ia64*)
13994 shrext='.so'
13995 hardcode_into_libs=yes
13996 dynamic_linker="$host_os dld.so"
13997 shlibpath_var=LD_LIBRARY_PATH
13998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14000 soname_spec='${libname}${release}${shared_ext}$major'
14001 if test "X$HPUX_IA64_MODE" = X32; then
14002 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14003 else
14004 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14005 fi
14006 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14007 ;;
14008 hppa*64*)
14009 shrext='.sl'
14010 hardcode_into_libs=yes
14011 dynamic_linker="$host_os dld.sl"
14012 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14013 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14015 soname_spec='${libname}${release}${shared_ext}$major'
14016 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14018 ;;
14019 *)
14020 shrext='.sl'
14021 dynamic_linker="$host_os dld.sl"
14022 shlibpath_var=SHLIB_PATH
14023 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 soname_spec='${libname}${release}${shared_ext}$major'
14026 ;;
14027 esac
14028 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14029 postinstall_cmds='chmod 555 $lib'
14030 ;;
14031
14032irix5* | irix6* | nonstopux*)
14033 case $host_os in
14034 nonstopux*) version_type=nonstopux ;;
14035 *)
14036 if test "$lt_cv_prog_gnu_ld" = yes; then
14037 version_type=linux
14038 else
14039 version_type=irix
14040 fi ;;
14041 esac
14042 need_lib_prefix=no
14043 need_version=no
14044 soname_spec='${libname}${release}${shared_ext}$major'
14045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14046 case $host_os in
14047 irix5* | nonstopux*)
14048 libsuff= shlibsuff=
14049 ;;
14050 *)
14051 case $LD in # libtool.m4 will add one of these switches to LD
14052 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14053 libsuff= shlibsuff= libmagic=32-bit;;
14054 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14055 libsuff=32 shlibsuff=N32 libmagic=N32;;
14056 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14057 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14058 *) libsuff= shlibsuff= libmagic=never-match;;
14059 esac
14060 ;;
14061 esac
14062 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14063 shlibpath_overrides_runpath=no
14064 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14065 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14066 hardcode_into_libs=yes
14067 ;;
14068
14069# No shared lib support for Linux oldld, aout, or coff.
14070linux*oldld* | linux*aout* | linux*coff*)
14071 dynamic_linker=no
14072 ;;
14073
14074# This must be Linux ELF.
14075linux*)
14076 version_type=linux
14077 need_lib_prefix=no
14078 need_version=no
14079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14080 soname_spec='${libname}${release}${shared_ext}$major'
14081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14082 shlibpath_var=LD_LIBRARY_PATH
14083 shlibpath_overrides_runpath=no
14084 # This implies no fast_install, which is unacceptable.
14085 # Some rework will be needed to allow for fast_install
14086 # before this can be enabled.
14087 hardcode_into_libs=yes
14088
14089 # We used to test for /lib/ld.so.1 and disable shared libraries on
14090 # powerpc, because MkLinux only supported shared libraries with the
14091 # GNU dynamic linker. Since this was broken with cross compilers,
14092 # most powerpc-linux boxes support dynamic linking these days and
14093 # people can always --disable-shared, the test was removed, and we
14094 # assume the GNU/Linux dynamic linker is in use.
14095 dynamic_linker='GNU/Linux ld.so'
14096 ;;
14097
14098netbsd*)
14099 version_type=sunos
14100 need_lib_prefix=no
14101 need_version=no
14102 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14103 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14105 dynamic_linker='NetBSD (a.out) ld.so'
14106 else
14107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14108 soname_spec='${libname}${release}${shared_ext}$major'
14109 dynamic_linker='NetBSD ld.elf_so'
14110 fi
14111 shlibpath_var=LD_LIBRARY_PATH
14112 shlibpath_overrides_runpath=yes
14113 hardcode_into_libs=yes
14114 ;;
14115
14116newsos6)
14117 version_type=linux
14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119 shlibpath_var=LD_LIBRARY_PATH
14120 shlibpath_overrides_runpath=yes
14121 ;;
14122
Brian Gaeke0a621332004-09-08 20:38:05 +000014123nto-qnx)
John Criswell47fdd832003-07-14 16:52:07 +000014124 version_type=linux
14125 need_lib_prefix=no
14126 need_version=no
14127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14128 soname_spec='${libname}${release}${shared_ext}$major'
14129 shlibpath_var=LD_LIBRARY_PATH
14130 shlibpath_overrides_runpath=yes
14131 ;;
14132
14133openbsd*)
14134 version_type=sunos
14135 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000014136 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000014137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14139 shlibpath_var=LD_LIBRARY_PATH
14140 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14141 case $host_os in
14142 openbsd2.[89] | openbsd2.[89].*)
14143 shlibpath_overrides_runpath=no
14144 ;;
14145 *)
14146 shlibpath_overrides_runpath=yes
14147 ;;
14148 esac
14149 else
14150 shlibpath_overrides_runpath=yes
14151 fi
14152 ;;
14153
14154os2*)
14155 libname_spec='$name'
14156 shrext=".dll"
14157 need_lib_prefix=no
14158 library_names_spec='$libname${shared_ext} $libname.a'
14159 dynamic_linker='OS/2 ld.exe'
14160 shlibpath_var=LIBPATH
14161 ;;
14162
14163osf3* | osf4* | osf5*)
14164 version_type=osf
14165 need_lib_prefix=no
14166 need_version=no
14167 soname_spec='${libname}${release}${shared_ext}$major'
14168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14171 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14172 ;;
14173
14174sco3.2v5*)
14175 version_type=osf
14176 soname_spec='${libname}${release}${shared_ext}$major'
14177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14178 shlibpath_var=LD_LIBRARY_PATH
14179 ;;
14180
14181solaris*)
14182 version_type=linux
14183 need_lib_prefix=no
14184 need_version=no
14185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14186 soname_spec='${libname}${release}${shared_ext}$major'
14187 shlibpath_var=LD_LIBRARY_PATH
14188 shlibpath_overrides_runpath=yes
14189 hardcode_into_libs=yes
14190 # ldd complains unless libraries are executable
14191 postinstall_cmds='chmod +x $lib'
14192 ;;
14193
14194sunos4*)
14195 version_type=sunos
14196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14197 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14198 shlibpath_var=LD_LIBRARY_PATH
14199 shlibpath_overrides_runpath=yes
14200 if test "$with_gnu_ld" = yes; then
14201 need_lib_prefix=no
14202 fi
14203 need_version=yes
14204 ;;
14205
14206sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14207 version_type=linux
14208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14209 soname_spec='${libname}${release}${shared_ext}$major'
14210 shlibpath_var=LD_LIBRARY_PATH
14211 case $host_vendor in
14212 sni)
14213 shlibpath_overrides_runpath=no
14214 need_lib_prefix=no
14215 export_dynamic_flag_spec='${wl}-Blargedynsym'
14216 runpath_var=LD_RUN_PATH
14217 ;;
14218 siemens)
14219 need_lib_prefix=no
14220 ;;
14221 motorola)
14222 need_lib_prefix=no
14223 need_version=no
14224 shlibpath_overrides_runpath=no
14225 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14226 ;;
14227 esac
14228 ;;
14229
14230sysv4*MP*)
14231 if test -d /usr/nec ;then
14232 version_type=linux
14233 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14234 soname_spec='$libname${shared_ext}.$major'
14235 shlibpath_var=LD_LIBRARY_PATH
14236 fi
14237 ;;
14238
14239uts4*)
14240 version_type=linux
14241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14242 soname_spec='${libname}${release}${shared_ext}$major'
14243 shlibpath_var=LD_LIBRARY_PATH
14244 ;;
14245
14246*)
14247 dynamic_linker=no
14248 ;;
14249esac
14250echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14251echo "${ECHO_T}$dynamic_linker" >&6
14252test "$dynamic_linker" = no && can_build_shared=no
14253
14254
14255# The else clause should only fire when bootstrapping the
14256# libtool distribution, otherwise you forgot to ship ltmain.sh
14257# with your package, and you will get complaints that there are
14258# no rules to generate ltmain.sh.
14259if test -f "$ltmain"; then
14260 # See if we are running on zsh, and set the options which allow our commands through
14261 # without removal of \ escapes.
14262 if test -n "${ZSH_VERSION+set}" ; then
14263 setopt NO_GLOB_SUBST
14264 fi
14265 # Now quote all the things that may contain metacharacters while being
14266 # careful not to overquote the AC_SUBSTed values. We take copies of the
14267 # variables and quote the copies for generation of the libtool script.
Brian Gaeke0a621332004-09-08 20:38:05 +000014268 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
John Criswell47fdd832003-07-14 16:52:07 +000014269 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14270 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14271 deplibs_check_method reload_flag reload_cmds need_locks \
14272 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14273 lt_cv_sys_global_symbol_to_c_name_address \
14274 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14275 old_postinstall_cmds old_postuninstall_cmds \
14276 compiler_F77 \
14277 CC_F77 \
14278 LD_F77 \
14279 lt_prog_compiler_wl_F77 \
14280 lt_prog_compiler_pic_F77 \
14281 lt_prog_compiler_static_F77 \
14282 lt_prog_compiler_no_builtin_flag_F77 \
14283 export_dynamic_flag_spec_F77 \
14284 thread_safe_flag_spec_F77 \
14285 whole_archive_flag_spec_F77 \
14286 enable_shared_with_static_runtimes_F77 \
14287 old_archive_cmds_F77 \
14288 old_archive_from_new_cmds_F77 \
14289 predep_objects_F77 \
14290 postdep_objects_F77 \
14291 predeps_F77 \
14292 postdeps_F77 \
14293 compiler_lib_search_path_F77 \
14294 archive_cmds_F77 \
14295 archive_expsym_cmds_F77 \
14296 postinstall_cmds_F77 \
14297 postuninstall_cmds_F77 \
14298 old_archive_from_expsyms_cmds_F77 \
14299 allow_undefined_flag_F77 \
14300 no_undefined_flag_F77 \
14301 export_symbols_cmds_F77 \
14302 hardcode_libdir_flag_spec_F77 \
14303 hardcode_libdir_flag_spec_ld_F77 \
14304 hardcode_libdir_separator_F77 \
14305 hardcode_automatic_F77 \
14306 module_cmds_F77 \
14307 module_expsym_cmds_F77 \
14308 lt_cv_prog_compiler_c_o_F77 \
14309 exclude_expsyms_F77 \
14310 include_expsyms_F77; do
14311
14312 case $var in
14313 old_archive_cmds_F77 | \
14314 old_archive_from_new_cmds_F77 | \
14315 archive_cmds_F77 | \
14316 archive_expsym_cmds_F77 | \
14317 module_cmds_F77 | \
14318 module_expsym_cmds_F77 | \
14319 old_archive_from_expsyms_cmds_F77 | \
14320 export_symbols_cmds_F77 | \
14321 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14322 postinstall_cmds | postuninstall_cmds | \
14323 old_postinstall_cmds | old_postuninstall_cmds | \
14324 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14325 # Double-quote double-evaled strings.
Brian Gaeke0a621332004-09-08 20:38:05 +000014326 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000014327 ;;
14328 *)
14329 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14330 ;;
14331 esac
14332 done
14333
14334 case $lt_echo in
14335 *'\$0 --fallback-echo"')
14336 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14337 ;;
14338 esac
14339
14340cfgfile="$ofile"
14341
14342 cat <<__EOF__ >> "$cfgfile"
14343# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14344
14345# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14346
Brian Gaeke0a621332004-09-08 20:38:05 +000014347# Set the command separator (default: ~)
14348_S_=\${LIBTOOL_CMD_SEP-\~}
14349
John Criswell47fdd832003-07-14 16:52:07 +000014350# Shell to use when invoking shell scripts.
14351SHELL=$lt_SHELL
14352
14353# Whether or not to build shared libraries.
14354build_libtool_libs=$enable_shared
14355
14356# Whether or not to build static libraries.
14357build_old_libs=$enable_static
14358
14359# Whether or not to add -lc for building shared libraries.
14360build_libtool_need_lc=$archive_cmds_need_lc_F77
14361
14362# Whether or not to disallow shared libs when runtime libs are static
14363allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14364
14365# Whether or not to optimize for fast installation.
14366fast_install=$enable_fast_install
14367
14368# The host system.
14369host_alias=$host_alias
14370host=$host
14371
14372# An echo program that does not interpret backslashes.
14373echo=$lt_echo
14374
14375# The archiver.
14376AR=$lt_AR
14377AR_FLAGS=$lt_AR_FLAGS
14378
14379# A C compiler.
14380LTCC=$lt_LTCC
14381
14382# A language-specific compiler.
14383CC=$lt_compiler_F77
14384
14385# Is the compiler the GNU C compiler?
14386with_gcc=$GCC_F77
14387
14388# An ERE matcher.
14389EGREP=$lt_EGREP
14390
14391# The linker used to build libraries.
14392LD=$lt_LD_F77
14393
14394# Whether we need hard or soft links.
14395LN_S=$lt_LN_S
14396
14397# A BSD-compatible nm program.
14398NM=$lt_NM
14399
14400# A symbol stripping program
Brian Gaeke0a621332004-09-08 20:38:05 +000014401STRIP=$STRIP
John Criswell47fdd832003-07-14 16:52:07 +000014402
14403# Used to examine libraries when file_magic_cmd begins "file"
14404MAGIC_CMD=$MAGIC_CMD
14405
14406# Used on cygwin: DLL creation program.
14407DLLTOOL="$DLLTOOL"
14408
14409# Used on cygwin: object dumper.
14410OBJDUMP="$OBJDUMP"
14411
14412# Used on cygwin: assembler.
14413AS="$AS"
14414
14415# The name of the directory that contains temporary libtool files.
14416objdir=$objdir
14417
14418# How to create reloadable object files.
14419reload_flag=$lt_reload_flag
14420reload_cmds=$lt_reload_cmds
14421
14422# How to pass a linker flag through the compiler.
14423wl=$lt_lt_prog_compiler_wl_F77
14424
14425# Object file suffix (normally "o").
14426objext="$ac_objext"
14427
14428# Old archive suffix (normally "a").
14429libext="$libext"
14430
14431# Shared library suffix (normally ".so").
14432shrext='$shrext'
14433
14434# Executable file suffix (normally "").
14435exeext="$exeext"
14436
14437# Additional compiler flags for building library objects.
14438pic_flag=$lt_lt_prog_compiler_pic_F77
14439pic_mode=$pic_mode
14440
14441# What is the maximum length of a command?
14442max_cmd_len=$lt_cv_sys_max_cmd_len
14443
14444# Does compiler simultaneously support -c and -o options?
14445compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14446
14447# Must we lock files when doing compilation ?
14448need_locks=$lt_need_locks
14449
14450# Do we need the lib prefix for modules?
14451need_lib_prefix=$need_lib_prefix
14452
14453# Do we need a version for libraries?
14454need_version=$need_version
14455
14456# Whether dlopen is supported.
14457dlopen_support=$enable_dlopen
14458
14459# Whether dlopen of programs is supported.
14460dlopen_self=$enable_dlopen_self
14461
14462# Whether dlopen of statically linked programs is supported.
14463dlopen_self_static=$enable_dlopen_self_static
14464
14465# Compiler flag to prevent dynamic linking.
14466link_static_flag=$lt_lt_prog_compiler_static_F77
14467
14468# Compiler flag to turn off builtin functions.
14469no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14470
14471# Compiler flag to allow reflexive dlopens.
14472export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14473
14474# Compiler flag to generate shared objects directly from archives.
14475whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14476
14477# Compiler flag to generate thread-safe objects.
14478thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14479
14480# Library versioning type.
14481version_type=$version_type
14482
14483# Format of library name prefix.
14484libname_spec=$lt_libname_spec
14485
14486# List of archive names. First name is the real one, the rest are links.
14487# The last name is the one that the linker finds with -lNAME.
14488library_names_spec=$lt_library_names_spec
14489
14490# The coded name of the library, if different from the real name.
14491soname_spec=$lt_soname_spec
14492
14493# Commands used to build and install an old-style archive.
14494RANLIB=$lt_RANLIB
14495old_archive_cmds=$lt_old_archive_cmds_F77
14496old_postinstall_cmds=$lt_old_postinstall_cmds
14497old_postuninstall_cmds=$lt_old_postuninstall_cmds
14498
14499# Create an old-style archive from a shared archive.
14500old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14501
14502# Create a temporary old-style archive to link instead of a shared archive.
14503old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14504
14505# Commands used to build and install a shared archive.
14506archive_cmds=$lt_archive_cmds_F77
14507archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14508postinstall_cmds=$lt_postinstall_cmds
14509postuninstall_cmds=$lt_postuninstall_cmds
14510
14511# Commands used to build a loadable module (assumed same as above if empty)
14512module_cmds=$lt_module_cmds_F77
14513module_expsym_cmds=$lt_module_expsym_cmds_F77
14514
14515# Commands to strip libraries.
14516old_striplib=$lt_old_striplib
14517striplib=$lt_striplib
14518
14519# Dependencies to place before the objects being linked to create a
14520# shared library.
14521predep_objects=$lt_predep_objects_F77
14522
14523# Dependencies to place after the objects being linked to create a
14524# shared library.
14525postdep_objects=$lt_postdep_objects_F77
14526
14527# Dependencies to place before the objects being linked to create a
14528# shared library.
14529predeps=$lt_predeps_F77
14530
14531# Dependencies to place after the objects being linked to create a
14532# shared library.
14533postdeps=$lt_postdeps_F77
14534
14535# The library search path used internally by the compiler when linking
14536# a shared library.
14537compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14538
14539# Method to check whether dependent libraries are shared objects.
14540deplibs_check_method=$lt_deplibs_check_method
14541
14542# Command to use when deplibs_check_method == file_magic.
14543file_magic_cmd=$lt_file_magic_cmd
14544
14545# Flag that allows shared libraries with undefined symbols to be built.
14546allow_undefined_flag=$lt_allow_undefined_flag_F77
14547
14548# Flag that forces no undefined symbols.
14549no_undefined_flag=$lt_no_undefined_flag_F77
14550
14551# Commands used to finish a libtool library installation in a directory.
14552finish_cmds=$lt_finish_cmds
14553
14554# Same as above, but a single script fragment to be evaled but not shown.
14555finish_eval=$lt_finish_eval
14556
14557# Take the output of nm and produce a listing of raw symbols and C names.
14558global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14559
14560# Transform the output of nm in a proper C declaration
14561global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14562
14563# Transform the output of nm in a C name address pair
14564global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14565
14566# This is the shared library runtime path variable.
14567runpath_var=$runpath_var
14568
14569# This is the shared library path variable.
14570shlibpath_var=$shlibpath_var
14571
14572# Is shlibpath searched before the hard-coded library search path?
14573shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14574
14575# How to hardcode a shared library path into an executable.
14576hardcode_action=$hardcode_action_F77
14577
14578# Whether we should hardcode library paths into libraries.
14579hardcode_into_libs=$hardcode_into_libs
14580
14581# Flag to hardcode \$libdir into a binary during linking.
14582# This must work even if \$libdir does not exist.
14583hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14584
14585# If ld is used when linking, flag to hardcode \$libdir into
14586# a binary during linking. This must work even if \$libdir does
14587# not exist.
14588hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14589
14590# Whether we need a single -rpath flag with a separated argument.
14591hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14592
14593# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14594# resulting binary.
14595hardcode_direct=$hardcode_direct_F77
14596
14597# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14598# resulting binary.
14599hardcode_minus_L=$hardcode_minus_L_F77
14600
14601# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14602# the resulting binary.
14603hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14604
14605# Set to yes if building a shared library automatically hardcodes DIR into the library
14606# and all subsequent libraries and executables linked against it.
14607hardcode_automatic=$hardcode_automatic_F77
14608
14609# Variables whose values should be saved in libtool wrapper scripts and
14610# restored at relink time.
14611variables_saved_for_relink="$variables_saved_for_relink"
14612
14613# Whether libtool must link a program against all its dependency libraries.
14614link_all_deplibs=$link_all_deplibs_F77
14615
14616# Compile-time system search path for libraries
14617sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14618
14619# Run-time system search path for libraries
14620sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14621
14622# Fix the shell variable \$srcfile for the compiler.
14623fix_srcfile_path="$fix_srcfile_path_F77"
14624
14625# Set to yes if exported symbols are required.
14626always_export_symbols=$always_export_symbols_F77
14627
14628# The commands to list exported symbols.
14629export_symbols_cmds=$lt_export_symbols_cmds_F77
14630
14631# The commands to extract the exported symbol list from a shared archive.
14632extract_expsyms_cmds=$lt_extract_expsyms_cmds
14633
14634# Symbols that should not be listed in the preloaded symbols.
14635exclude_expsyms=$lt_exclude_expsyms_F77
14636
14637# Symbols that must always be exported.
14638include_expsyms=$lt_include_expsyms_F77
14639
14640# ### END LIBTOOL TAG CONFIG: $tagname
14641
14642__EOF__
14643
14644
14645else
14646 # If there is no Makefile yet, we rely on a make rule to execute
14647 # `config.status --recheck' to rerun these tests and create the
14648 # libtool script then.
14649 test -f Makefile && make "$ltmain"
14650fi
14651
14652
14653ac_ext=c
14654ac_cpp='$CPP $CPPFLAGS'
14655ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14656ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14657ac_compiler_gnu=$ac_cv_c_compiler_gnu
14658
14659CC="$lt_save_CC"
14660
14661 else
14662 tagname=""
14663 fi
14664 ;;
14665
14666 GCJ)
14667 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14668
14669
14670
14671# Source file extension for Java test sources.
14672ac_ext=java
14673
14674# Object file extension for compiled Java test sources.
14675objext=o
14676objext_GCJ=$objext
14677
14678# Code to be used in simple compile tests
14679lt_simple_compile_test_code="class foo {}\n"
14680
14681# Code to be used in simple link tests
14682lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14683
14684# ltmain only uses $CC for tagged configurations so make sure $CC is set.
14685
14686# If no C compiler was specified, use CC.
14687LTCC=${LTCC-"$CC"}
14688
14689# Allow CC to be a program name with arguments.
14690compiler=$CC
14691
14692
14693# Allow CC to be a program name with arguments.
14694lt_save_CC="$CC"
14695CC=${GCJ-"gcj"}
14696compiler=$CC
14697compiler_GCJ=$CC
14698
14699# GCJ did not exist at the time GCC didn't implicitly link libc in.
14700archive_cmds_need_lc_GCJ=no
14701
John Criswell47fdd832003-07-14 16:52:07 +000014702
14703lt_prog_compiler_no_builtin_flag_GCJ=
14704
14705if test "$GCC" = yes; then
14706 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14707
Brian Gaeke0a621332004-09-08 20:38:05 +000014708 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014709echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14710if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14712else
14713 lt_cv_prog_compiler_rtti_exceptions=no
14714 ac_outfile=conftest.$ac_objext
14715 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14716 lt_compiler_flag="-fno-rtti -fno-exceptions"
14717 # Insert the option either (1) after the last *FLAGS variable, or
14718 # (2) before a word containing "conftest.", or (3) at the end.
14719 # Note that $ac_compile itself does not contain backslashes and begins
14720 # with a dollar sign (not a hyphen), so the echo should work correctly.
14721 # The option is referenced via a variable to avoid confusing sed.
14722 lt_compile=`echo "$ac_compile" | $SED \
14723 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14725 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke0a621332004-09-08 20:38:05 +000014726 (eval echo "\"\$as_me:14726: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014727 (eval "$lt_compile" 2>conftest.err)
14728 ac_status=$?
14729 cat conftest.err >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000014730 echo "$as_me:14730: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014731 if (exit $ac_status) && test -s "$ac_outfile"; then
14732 # The compiler can only warn and ignore the option if not recognized
14733 # So say no if there are warnings
14734 if test ! -s conftest.err; then
14735 lt_cv_prog_compiler_rtti_exceptions=yes
14736 fi
14737 fi
14738 $rm conftest*
14739
14740fi
14741echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14742echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14743
14744if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14745 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14746else
14747 :
14748fi
14749
14750fi
14751
14752lt_prog_compiler_wl_GCJ=
14753lt_prog_compiler_pic_GCJ=
14754lt_prog_compiler_static_GCJ=
14755
14756echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14757echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14758
14759 if test "$GCC" = yes; then
14760 lt_prog_compiler_wl_GCJ='-Wl,'
14761 lt_prog_compiler_static_GCJ='-static'
14762
14763 case $host_os in
14764 aix*)
14765 # All AIX code is PIC.
14766 if test "$host_cpu" = ia64; then
14767 # AIX 5 now supports IA64 processor
14768 lt_prog_compiler_static_GCJ='-Bstatic'
14769 fi
14770 ;;
14771
14772 amigaos*)
14773 # FIXME: we need at least 68020 code to build shared libraries, but
14774 # adding the `-m68020' flag to GCC prevents building anything better,
14775 # like `-m68040'.
14776 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14777 ;;
14778
14779 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14780 # PIC is the default for these OSes.
14781 ;;
14782
14783 mingw* | pw32* | os2*)
14784 # This hack is so that the source file can tell whether it is being
14785 # built for inclusion in a dll (and should export symbols for example).
14786 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14787 ;;
14788
14789 darwin* | rhapsody*)
14790 # PIC is the default on this platform
14791 # Common symbols not allowed in MH_DYLIB files
14792 lt_prog_compiler_pic_GCJ='-fno-common'
14793 ;;
14794
14795 msdosdjgpp*)
14796 # Just because we use GCC doesn't mean we suddenly get shared libraries
14797 # on systems that don't support them.
14798 lt_prog_compiler_can_build_shared_GCJ=no
14799 enable_shared=no
14800 ;;
14801
14802 sysv4*MP*)
14803 if test -d /usr/nec; then
14804 lt_prog_compiler_pic_GCJ=-Kconform_pic
14805 fi
14806 ;;
14807
14808 hpux*)
14809 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14810 # not for PA HP-UX.
14811 case "$host_cpu" in
14812 hppa*64*|ia64*)
14813 # +Z the default
14814 ;;
14815 *)
14816 lt_prog_compiler_pic_GCJ='-fPIC'
14817 ;;
14818 esac
14819 ;;
14820
14821 *)
14822 lt_prog_compiler_pic_GCJ='-fPIC'
14823 ;;
14824 esac
14825 else
14826 # PORTME Check for flag to pass linker flags through the system compiler.
14827 case $host_os in
14828 aix*)
14829 lt_prog_compiler_wl_GCJ='-Wl,'
14830 if test "$host_cpu" = ia64; then
14831 # AIX 5 now supports IA64 processor
14832 lt_prog_compiler_static_GCJ='-Bstatic'
14833 else
14834 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14835 fi
14836 ;;
14837
14838 mingw* | pw32* | os2*)
14839 # This hack is so that the source file can tell whether it is being
14840 # built for inclusion in a dll (and should export symbols for example).
14841 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14842 ;;
14843
14844 hpux9* | hpux10* | hpux11*)
14845 lt_prog_compiler_wl_GCJ='-Wl,'
14846 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14847 # not for PA HP-UX.
14848 case "$host_cpu" in
14849 hppa*64*|ia64*)
14850 # +Z the default
14851 ;;
14852 *)
14853 lt_prog_compiler_pic_GCJ='+Z'
14854 ;;
14855 esac
14856 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14857 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14858 ;;
14859
14860 irix5* | irix6* | nonstopux*)
14861 lt_prog_compiler_wl_GCJ='-Wl,'
14862 # PIC (with -KPIC) is the default.
14863 lt_prog_compiler_static_GCJ='-non_shared'
14864 ;;
14865
14866 newsos6)
14867 lt_prog_compiler_pic_GCJ='-KPIC'
14868 lt_prog_compiler_static_GCJ='-Bstatic'
14869 ;;
14870
14871 linux*)
14872 case $CC in
Brian Gaeke0a621332004-09-08 20:38:05 +000014873 icc|ecc)
John Criswell47fdd832003-07-14 16:52:07 +000014874 lt_prog_compiler_wl_GCJ='-Wl,'
14875 lt_prog_compiler_pic_GCJ='-KPIC'
14876 lt_prog_compiler_static_GCJ='-static'
14877 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +000014878 ccc)
John Criswell47fdd832003-07-14 16:52:07 +000014879 lt_prog_compiler_wl_GCJ='-Wl,'
14880 # All Alpha code is PIC.
14881 lt_prog_compiler_static_GCJ='-non_shared'
14882 ;;
14883 esac
14884 ;;
14885
14886 osf3* | osf4* | osf5*)
14887 lt_prog_compiler_wl_GCJ='-Wl,'
14888 # All OSF/1 code is PIC.
14889 lt_prog_compiler_static_GCJ='-non_shared'
14890 ;;
14891
14892 sco3.2v5*)
14893 lt_prog_compiler_pic_GCJ='-Kpic'
14894 lt_prog_compiler_static_GCJ='-dn'
14895 ;;
14896
14897 solaris*)
14898 lt_prog_compiler_wl_GCJ='-Wl,'
14899 lt_prog_compiler_pic_GCJ='-KPIC'
14900 lt_prog_compiler_static_GCJ='-Bstatic'
14901 ;;
14902
14903 sunos4*)
14904 lt_prog_compiler_wl_GCJ='-Qoption ld '
14905 lt_prog_compiler_pic_GCJ='-PIC'
14906 lt_prog_compiler_static_GCJ='-Bstatic'
14907 ;;
14908
14909 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14910 lt_prog_compiler_wl_GCJ='-Wl,'
14911 lt_prog_compiler_pic_GCJ='-KPIC'
14912 lt_prog_compiler_static_GCJ='-Bstatic'
14913 ;;
14914
14915 sysv4*MP*)
14916 if test -d /usr/nec ;then
14917 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14918 lt_prog_compiler_static_GCJ='-Bstatic'
14919 fi
14920 ;;
14921
14922 uts4*)
14923 lt_prog_compiler_pic_GCJ='-pic'
14924 lt_prog_compiler_static_GCJ='-Bstatic'
14925 ;;
14926
14927 *)
14928 lt_prog_compiler_can_build_shared_GCJ=no
14929 ;;
14930 esac
14931 fi
14932
14933echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14934echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14935
14936#
14937# Check to make sure the PIC flag actually works.
14938#
14939if test -n "$lt_prog_compiler_pic_GCJ"; then
Brian Gaeke0a621332004-09-08 20:38:05 +000014940 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014941echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14942if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14943 echo $ECHO_N "(cached) $ECHO_C" >&6
14944else
14945 lt_prog_compiler_pic_works_GCJ=no
14946 ac_outfile=conftest.$ac_objext
14947 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14948 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14949 # Insert the option either (1) after the last *FLAGS variable, or
14950 # (2) before a word containing "conftest.", or (3) at the end.
14951 # Note that $ac_compile itself does not contain backslashes and begins
14952 # with a dollar sign (not a hyphen), so the echo should work correctly.
14953 # The option is referenced via a variable to avoid confusing sed.
14954 lt_compile=`echo "$ac_compile" | $SED \
14955 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14956 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14957 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke0a621332004-09-08 20:38:05 +000014958 (eval echo "\"\$as_me:14958: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000014959 (eval "$lt_compile" 2>conftest.err)
14960 ac_status=$?
14961 cat conftest.err >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000014962 echo "$as_me:14962: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000014963 if (exit $ac_status) && test -s "$ac_outfile"; then
14964 # The compiler can only warn and ignore the option if not recognized
14965 # So say no if there are warnings
14966 if test ! -s conftest.err; then
14967 lt_prog_compiler_pic_works_GCJ=yes
14968 fi
14969 fi
14970 $rm conftest*
14971
14972fi
14973echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
14974echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
14975
14976if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
14977 case $lt_prog_compiler_pic_GCJ in
14978 "" | " "*) ;;
14979 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
14980 esac
14981else
14982 lt_prog_compiler_pic_GCJ=
14983 lt_prog_compiler_can_build_shared_GCJ=no
14984fi
14985
14986fi
14987case "$host_os" in
14988 # For platforms which do not support PIC, -DPIC is meaningless:
14989 *djgpp*)
14990 lt_prog_compiler_pic_GCJ=
14991 ;;
14992 *)
14993 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
14994 ;;
14995esac
14996
14997echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14998echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
14999if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15000 echo $ECHO_N "(cached) $ECHO_C" >&6
15001else
15002 lt_cv_prog_compiler_c_o_GCJ=no
15003 $rm -r conftest 2>/dev/null
15004 mkdir conftest
15005 cd conftest
15006 mkdir out
15007 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15008
15009 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15010 # that will create temporary files in the current directory regardless of
15011 # the output directory. Thus, making CWD read-only will cause this test
15012 # to fail, enabling locking or at least warning the user not to do parallel
15013 # builds.
15014 chmod -w .
15015
15016 lt_compiler_flag="-o out/conftest2.$ac_objext"
15017 # Insert the option either (1) after the last *FLAGS variable, or
15018 # (2) before a word containing "conftest.", or (3) at the end.
15019 # Note that $ac_compile itself does not contain backslashes and begins
15020 # with a dollar sign (not a hyphen), so the echo should work correctly.
15021 lt_compile=`echo "$ac_compile" | $SED \
15022 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15023 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15024 -e 's:$: $lt_compiler_flag:'`
Brian Gaeke0a621332004-09-08 20:38:05 +000015025 (eval echo "\"\$as_me:15025: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015026 (eval "$lt_compile" 2>out/conftest.err)
15027 ac_status=$?
15028 cat out/conftest.err >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000015029 echo "$as_me:15029: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015030 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15031 then
15032 # The compiler can only warn and ignore the option if not recognized
15033 # So say no if there are warnings
15034 if test ! -s out/conftest.err; then
15035 lt_cv_prog_compiler_c_o_GCJ=yes
15036 fi
15037 fi
15038 chmod u+w .
Brian Gaeke0a621332004-09-08 20:38:05 +000015039 $rm conftest* out/*
15040 rmdir out
John Criswell47fdd832003-07-14 16:52:07 +000015041 cd ..
15042 rmdir conftest
15043 $rm conftest*
15044
15045fi
15046echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15047echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15048
15049
15050hard_links="nottested"
15051if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15052 # do not overwrite the value of need_locks provided by the user
15053 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15054echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15055 hard_links=yes
15056 $rm conftest*
15057 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15058 touch conftest.a
15059 ln conftest.a conftest.b 2>&5 || hard_links=no
15060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15061 echo "$as_me:$LINENO: result: $hard_links" >&5
15062echo "${ECHO_T}$hard_links" >&6
15063 if test "$hard_links" = no; then
15064 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15065echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15066 need_locks=warn
15067 fi
15068else
15069 need_locks=no
15070fi
15071
15072echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15073echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15074
15075 runpath_var=
15076 allow_undefined_flag_GCJ=
15077 enable_shared_with_static_runtimes_GCJ=no
15078 archive_cmds_GCJ=
15079 archive_expsym_cmds_GCJ=
15080 old_archive_From_new_cmds_GCJ=
15081 old_archive_from_expsyms_cmds_GCJ=
15082 export_dynamic_flag_spec_GCJ=
15083 whole_archive_flag_spec_GCJ=
15084 thread_safe_flag_spec_GCJ=
15085 hardcode_libdir_flag_spec_GCJ=
15086 hardcode_libdir_flag_spec_ld_GCJ=
15087 hardcode_libdir_separator_GCJ=
15088 hardcode_direct_GCJ=no
15089 hardcode_minus_L_GCJ=no
15090 hardcode_shlibpath_var_GCJ=unsupported
15091 link_all_deplibs_GCJ=unknown
15092 hardcode_automatic_GCJ=no
15093 module_cmds_GCJ=
15094 module_expsym_cmds_GCJ=
15095 always_export_symbols_GCJ=no
15096 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15097 # include_expsyms should be a list of space-separated symbols to be *always*
15098 # included in the symbol list
15099 include_expsyms_GCJ=
15100 # exclude_expsyms can be an extended regexp of symbols to exclude
15101 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15102 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15103 # as well as any symbol that contains `d'.
15104 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15105 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15106 # platforms (ab)use it in PIC code, but their linkers get confused if
15107 # the symbol is explicitly referenced. Since portable code cannot
15108 # rely on this symbol name, it's probably fine to never include it in
15109 # preloaded symbol tables.
15110 extract_expsyms_cmds=
15111
15112 case $host_os in
15113 cygwin* | mingw* | pw32*)
15114 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15115 # When not using gcc, we currently assume that we are using
15116 # Microsoft Visual C++.
15117 if test "$GCC" != yes; then
15118 with_gnu_ld=no
15119 fi
15120 ;;
15121 openbsd*)
15122 with_gnu_ld=no
15123 ;;
15124 esac
15125
15126 ld_shlibs_GCJ=yes
15127 if test "$with_gnu_ld" = yes; then
15128 # If archive_cmds runs LD, not CC, wlarc should be empty
15129 wlarc='${wl}'
15130
15131 # See if GNU ld supports shared libraries.
15132 case $host_os in
15133 aix3* | aix4* | aix5*)
15134 # On AIX/PPC, the GNU linker is very broken
15135 if test "$host_cpu" != ia64; then
15136 ld_shlibs_GCJ=no
15137 cat <<EOF 1>&2
15138
15139*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15140*** to be unable to reliably create shared libraries on AIX.
15141*** Therefore, libtool is disabling shared libraries support. If you
15142*** really care for shared libraries, you may want to modify your PATH
15143*** so that a non-GNU linker is found, and then restart.
15144
15145EOF
15146 fi
15147 ;;
15148
15149 amigaos*)
Brian Gaeke0a621332004-09-08 20:38:05 +000015150 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000015151 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15152 hardcode_minus_L_GCJ=yes
15153
15154 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15155 # that the semantics of dynamic libraries on AmigaOS, at least up
15156 # to version 4, is to share data among multiple programs linked
15157 # with the same dynamic library. Since this doesn't match the
15158 # behavior of shared libraries on other platforms, we can't use
15159 # them.
15160 ld_shlibs_GCJ=no
15161 ;;
15162
15163 beos*)
15164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15165 allow_undefined_flag_GCJ=unsupported
15166 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15167 # support --undefined. This deserves some investigation. FIXME
15168 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15169 else
15170 ld_shlibs_GCJ=no
15171 fi
15172 ;;
15173
15174 cygwin* | mingw* | pw32*)
15175 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15176 # as there is no search path for DLLs.
15177 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15178 allow_undefined_flag_GCJ=unsupported
15179 always_export_symbols_GCJ=no
15180 enable_shared_with_static_runtimes_GCJ=yes
15181 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15182
15183 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15184 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15185 # If the export-symbols file already is a .def file (1st line
15186 # is EXPORTS), use it as is; otherwise, prepend...
15187 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15188 cp $export_symbols $output_objdir/$soname.def;
15189 else
15190 echo EXPORTS > $output_objdir/$soname.def;
15191 cat $export_symbols >> $output_objdir/$soname.def;
Brian Gaeke0a621332004-09-08 20:38:05 +000015192 fi${_S_}
John Criswell47fdd832003-07-14 16:52:07 +000015193 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15194 else
15195 ld_shlibs=no
15196 fi
15197 ;;
15198
15199 netbsd*)
15200 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15201 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15202 wlarc=
15203 else
15204 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15205 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15206 fi
15207 ;;
15208
15209 solaris* | sysv5*)
15210 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15211 ld_shlibs_GCJ=no
15212 cat <<EOF 1>&2
15213
15214*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15215*** create shared libraries on Solaris systems. Therefore, libtool
15216*** is disabling shared libraries support. We urge you to upgrade GNU
15217*** binutils to release 2.9.1 or newer. Another option is to modify
15218*** your PATH or compiler configuration so that the native linker is
15219*** used, and then restart.
15220
15221EOF
15222 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15223 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15224 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15225 else
15226 ld_shlibs_GCJ=no
15227 fi
15228 ;;
15229
15230 sunos4*)
15231 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15232 wlarc=
15233 hardcode_direct_GCJ=yes
15234 hardcode_shlibpath_var_GCJ=no
15235 ;;
15236
15237 *)
15238 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15239 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15240 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15241 else
15242 ld_shlibs_GCJ=no
15243 fi
15244 ;;
15245 esac
15246
15247 if test "$ld_shlibs_GCJ" = yes; then
15248 runpath_var=LD_RUN_PATH
15249 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15250 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15251 # ancient GNU ld didn't support --whole-archive et. al.
15252 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15253 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15254 else
15255 whole_archive_flag_spec_GCJ=
15256 fi
15257 fi
15258 else
15259 # PORTME fill in a description of your system's linker (not GNU ld)
15260 case $host_os in
15261 aix3*)
15262 allow_undefined_flag_GCJ=unsupported
15263 always_export_symbols_GCJ=yes
Brian Gaeke0a621332004-09-08 20:38:05 +000015264 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE${_S_}$AR $AR_FLAGS $lib $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000015265 # Note: this linker hardcodes the directories in LIBPATH if there
15266 # are no directories specified by -L.
15267 hardcode_minus_L_GCJ=yes
15268 if test "$GCC" = yes && test -z "$link_static_flag"; then
15269 # Neither direct hardcoding nor static linking is supported with a
15270 # broken collect2.
15271 hardcode_direct_GCJ=unsupported
15272 fi
15273 ;;
15274
15275 aix4* | aix5*)
15276 if test "$host_cpu" = ia64; then
15277 # On IA64, the linker does run time linking by default, so we don't
15278 # have to do anything special.
15279 aix_use_runtimelinking=no
15280 exp_sym_flag='-Bexport'
15281 no_entry_flag=""
15282 else
15283 # If we're using GNU nm, then we don't want the "-C" option.
15284 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15285 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15286 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'
15287 else
15288 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'
15289 fi
15290 aix_use_runtimelinking=no
15291
15292 # Test if we are trying to use run time linking or normal
15293 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15294 # need to do runtime linking.
15295 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15296 for ld_flag in $LDFLAGS; do
15297 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15298 aix_use_runtimelinking=yes
15299 break
15300 fi
15301 done
15302 esac
15303
15304 exp_sym_flag='-bexport'
15305 no_entry_flag='-bnoentry'
15306 fi
15307
15308 # When large executables or shared objects are built, AIX ld can
15309 # have problems creating the table of contents. If linking a library
15310 # or program results in "error TOC overflow" add -mminimal-toc to
15311 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15312 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15313
15314 archive_cmds_GCJ=''
15315 hardcode_direct_GCJ=yes
15316 hardcode_libdir_separator_GCJ=':'
15317 link_all_deplibs_GCJ=yes
15318
15319 if test "$GCC" = yes; then
15320 case $host_os in aix4.012|aix4.012.*)
15321 # We only want to do this on AIX 4.2 and lower, the check
15322 # below for broken collect2 doesn't work under 4.3+
15323 collect2name=`${CC} -print-prog-name=collect2`
15324 if test -f "$collect2name" && \
15325 strings "$collect2name" | grep resolve_lib_name >/dev/null
15326 then
15327 # We have reworked collect2
15328 hardcode_direct_GCJ=yes
15329 else
15330 # We have old collect2
15331 hardcode_direct_GCJ=unsupported
15332 # It fails to find uninstalled libraries when the uninstalled
15333 # path is not listed in the libpath. Setting hardcode_minus_L
15334 # to unsupported forces relinking
15335 hardcode_minus_L_GCJ=yes
15336 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15337 hardcode_libdir_separator_GCJ=
15338 fi
15339 esac
15340 shared_flag='-shared'
15341 else
15342 # not using gcc
15343 if test "$host_cpu" = ia64; then
15344 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15345 # chokes on -Wl,-G. The following line is correct:
15346 shared_flag='-G'
15347 else
15348 if test "$aix_use_runtimelinking" = yes; then
15349 shared_flag='${wl}-G'
15350 else
15351 shared_flag='${wl}-bM:SRE'
15352 fi
15353 fi
15354 fi
15355
15356 # It seems that -bexpall does not export symbols beginning with
15357 # underscore (_), so it is better to generate a list of symbols to export.
15358 always_export_symbols_GCJ=yes
15359 if test "$aix_use_runtimelinking" = yes; then
15360 # Warning - without using the other runtime loading flags (-brtl),
15361 # -berok will link without error, but may produce a broken library.
15362 allow_undefined_flag_GCJ='-berok'
15363 # Determine the default libpath from the value encoded in an empty executable.
15364 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000015365#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015366/* confdefs.h. */
15367_ACEOF
15368cat confdefs.h >>conftest.$ac_ext
15369cat >>conftest.$ac_ext <<_ACEOF
15370/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015371
John Criswell47fdd832003-07-14 16:52:07 +000015372int
15373main ()
15374{
15375
15376 ;
15377 return 0;
15378}
15379_ACEOF
15380rm -f conftest.$ac_objext conftest$ac_exeext
15381if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000015382 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015383 ac_status=$?
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000015386 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; }; then
15392
15393aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15394}'`
15395# Check for a 64-bit object if we didn't find anything.
15396if 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; }
15397}'`; fi
15398else
15399 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015400sed 's/^/| /' conftest.$ac_ext >&5
15401
John Criswell47fdd832003-07-14 16:52:07 +000015402fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015403rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015404if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15405
15406 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15407 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"
15408 else
15409 if test "$host_cpu" = ia64; then
15410 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15411 allow_undefined_flag_GCJ="-z nodefs"
15412 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"
15413 else
15414 # Determine the default libpath from the value encoded in an empty executable.
15415 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000015416#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000015417/* confdefs.h. */
15418_ACEOF
15419cat confdefs.h >>conftest.$ac_ext
15420cat >>conftest.$ac_ext <<_ACEOF
15421/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015422
John Criswell47fdd832003-07-14 16:52:07 +000015423int
15424main ()
15425{
15426
15427 ;
15428 return 0;
15429}
15430_ACEOF
15431rm -f conftest.$ac_objext conftest$ac_exeext
15432if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000015433 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000015434 ac_status=$?
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000015437 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15440 ac_status=$?
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; }; then
15443
15444aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15445}'`
15446# Check for a 64-bit object if we didn't find anything.
15447if 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; }
15448}'`; fi
15449else
15450 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015451sed 's/^/| /' conftest.$ac_ext >&5
15452
John Criswell47fdd832003-07-14 16:52:07 +000015453fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015454rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015455if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15456
15457 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15458 # Warning - without using the other run time loading flags,
15459 # -berok will link without error, but may produce a broken library.
15460 no_undefined_flag_GCJ=' ${wl}-bernotok'
15461 allow_undefined_flag_GCJ=' ${wl}-berok'
15462 # -bexpall does not export symbols beginning with underscore (_)
15463 always_export_symbols_GCJ=yes
15464 # Exported symbols can be pulled into shared objects from archives
15465 whole_archive_flag_spec_GCJ=' '
15466 archive_cmds_need_lc_GCJ=yes
15467 # This is similar to how AIX traditionally builds it's shared libraries.
Brian Gaeke0a621332004-09-08 20:38:05 +000015468 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}\${_S_}$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell47fdd832003-07-14 16:52:07 +000015469 fi
15470 fi
15471 ;;
15472
15473 amigaos*)
Brian Gaeke0a621332004-09-08 20:38:05 +000015474 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data${_S_}$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data${_S_}$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data${_S_}$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data${_S_}$AR $AR_FLAGS $lib $libobjs${_S_}$RANLIB $lib${_S_}(cd $output_objdir && a2ixlibrary -32)'
John Criswell47fdd832003-07-14 16:52:07 +000015475 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15476 hardcode_minus_L_GCJ=yes
15477 # see comment about different semantics on the GNU ld section
15478 ld_shlibs_GCJ=no
15479 ;;
15480
15481 bsdi4*)
15482 export_dynamic_flag_spec_GCJ=-rdynamic
15483 ;;
15484
15485 cygwin* | mingw* | pw32*)
15486 # When not using gcc, we currently assume that we are using
15487 # Microsoft Visual C++.
15488 # hardcode_libdir_flag_spec is actually meaningless, as there is
15489 # no search path for DLLs.
15490 hardcode_libdir_flag_spec_GCJ=' '
15491 allow_undefined_flag_GCJ=unsupported
15492 # Tell ltmain to make .lib files, not .a files.
15493 libext=lib
15494 # Tell ltmain to make .dll files, not .so files.
15495 shrext=".dll"
15496 # FIXME: Setting linknames here is a bad hack.
Brian Gaeke0a621332004-09-08 20:38:05 +000015497 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll${_S_}linknames='
John Criswell47fdd832003-07-14 16:52:07 +000015498 # The linker will automatically build a .lib file if we build a DLL.
15499 old_archive_From_new_cmds_GCJ='true'
15500 # FIXME: Should let the user specify the lib program.
15501 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15502 fix_srcfile_path='`cygpath -w "$srcfile"`'
15503 enable_shared_with_static_runtimes_GCJ=yes
15504 ;;
15505
15506 darwin* | rhapsody*)
Brian Gaeke0a621332004-09-08 20:38:05 +000015507 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
John Criswell47fdd832003-07-14 16:52:07 +000015508 archive_cmds_need_lc_GCJ=no
15509 case "$host_os" in
15510 rhapsody* | darwin1.[012])
15511 allow_undefined_flag_GCJ='-undefined suppress'
15512 ;;
Brian Gaeke0a621332004-09-08 20:38:05 +000015513 darwin1.* | darwin[2-6].*) # Darwin 1.3 on, but less than 7.0
15514 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15515 ;;
15516 *) # Darwin 7.0 on
15517 case "${MACOSX_DEPLOYMENT_TARGET-10.1}" in
15518 10.[012])
15519 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15520 ;;
15521 *) # 10.3 on
15522 if test -z ${LD_TWOLEVEL_NAMESPACE}; then
15523 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15524 else
15525 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15526 fi
15527 ;;
15528 esac
John Criswell47fdd832003-07-14 16:52:07 +000015529 ;;
15530 esac
Brian Gaeke0a621332004-09-08 20:38:05 +000015531 # FIXME: Relying on posixy $() will cause problems for
15532 # cross-compilation, but unfortunately the echo tests do not
15533 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15534 # `"' quotes if we put them in here... so don't!
John Criswell47fdd832003-07-14 16:52:07 +000015535 lt_int_apple_cc_single_mod=no
15536 output_verbose_link_cmd='echo'
15537 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15538 lt_int_apple_cc_single_mod=yes
15539 fi
15540 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Brian Gaeke0a621332004-09-08 20:38:05 +000015541 archive_cmds_GCJ='$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
John Criswell47fdd832003-07-14 16:52:07 +000015542 else
Brian Gaeke0a621332004-09-08 20:38:05 +000015543 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
John Criswell47fdd832003-07-14 16:52:07 +000015544 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015545 module_cmds_GCJ='$CC -bundle $archargs ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
John Criswell47fdd832003-07-14 16:52:07 +000015546 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15547 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
Brian Gaeke0a621332004-09-08 20:38:05 +000015548 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -dynamiclib $archargs -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
John Criswell47fdd832003-07-14 16:52:07 +000015549 else
Brian Gaeke0a621332004-09-08 20:38:05 +000015550 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs${_S_}$CC -dynamiclib $archargs $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
John Criswell47fdd832003-07-14 16:52:07 +000015551 fi
Brian Gaeke0a621332004-09-08 20:38:05 +000015552 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym${_S_}$CC -bundle $archargs $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags${_S_}nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
John Criswell47fdd832003-07-14 16:52:07 +000015553 hardcode_direct_GCJ=no
15554 hardcode_automatic_GCJ=yes
15555 hardcode_shlibpath_var_GCJ=unsupported
15556 whole_archive_flag_spec_GCJ='-all_load $convenience'
15557 link_all_deplibs_GCJ=yes
15558 fi
15559 ;;
15560
15561 dgux*)
15562 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15563 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15564 hardcode_shlibpath_var_GCJ=no
15565 ;;
15566
15567 freebsd1*)
15568 ld_shlibs_GCJ=no
15569 ;;
15570
15571 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15572 # support. Future versions do this automatically, but an explicit c++rt0.o
15573 # does not break anything, and helps significantly (at the cost of a little
15574 # extra space).
15575 freebsd2.2*)
15576 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15577 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15578 hardcode_direct_GCJ=yes
15579 hardcode_shlibpath_var_GCJ=no
15580 ;;
15581
15582 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15583 freebsd2*)
15584 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15585 hardcode_direct_GCJ=yes
15586 hardcode_minus_L_GCJ=yes
15587 hardcode_shlibpath_var_GCJ=no
15588 ;;
15589
15590 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
Brian Gaeke0a621332004-09-08 20:38:05 +000015591 freebsd*)
John Criswell47fdd832003-07-14 16:52:07 +000015592 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15593 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15594 hardcode_direct_GCJ=yes
15595 hardcode_shlibpath_var_GCJ=no
15596 ;;
15597
15598 hpux9*)
15599 if test "$GCC" = yes; then
Brian Gaeke0a621332004-09-08 20:38:05 +000015600 archive_cmds_GCJ='$rm $output_objdir/$soname${_S_}$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015601 else
Brian Gaeke0a621332004-09-08 20:38:05 +000015602 archive_cmds_GCJ='$rm $output_objdir/$soname${_S_}$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags${_S_}test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
John Criswell47fdd832003-07-14 16:52:07 +000015603 fi
15604 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15605 hardcode_libdir_separator_GCJ=:
15606 hardcode_direct_GCJ=yes
15607
15608 # hardcode_minus_L: Not really in the search PATH,
15609 # but as the default location of the library.
15610 hardcode_minus_L_GCJ=yes
15611 export_dynamic_flag_spec_GCJ='${wl}-E'
15612 ;;
15613
15614 hpux10* | hpux11*)
15615 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15616 case "$host_cpu" in
15617 hppa*64*|ia64*)
15618 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15619 ;;
15620 *)
15621 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15622 ;;
15623 esac
15624 else
15625 case "$host_cpu" in
15626 hppa*64*|ia64*)
15627 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15628 ;;
15629 *)
15630 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15631 ;;
15632 esac
15633 fi
15634 if test "$with_gnu_ld" = no; then
15635 case "$host_cpu" in
15636 hppa*64*)
15637 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15638 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15639 hardcode_libdir_separator_GCJ=:
15640 hardcode_direct_GCJ=no
15641 hardcode_shlibpath_var_GCJ=no
15642 ;;
15643 ia64*)
15644 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15645 hardcode_direct_GCJ=no
15646 hardcode_shlibpath_var_GCJ=no
15647
15648 # hardcode_minus_L: Not really in the search PATH,
15649 # but as the default location of the library.
15650 hardcode_minus_L_GCJ=yes
15651 ;;
15652 *)
15653 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15654 hardcode_libdir_separator_GCJ=:
15655 hardcode_direct_GCJ=yes
15656 export_dynamic_flag_spec_GCJ='${wl}-E'
15657
15658 # hardcode_minus_L: Not really in the search PATH,
15659 # but as the default location of the library.
15660 hardcode_minus_L_GCJ=yes
15661 ;;
15662 esac
15663 fi
15664 ;;
15665
15666 irix5* | irix6* | nonstopux*)
15667 if test "$GCC" = yes; then
15668 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'
15669 else
15670 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'
15671 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15672 fi
15673 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15674 hardcode_libdir_separator_GCJ=:
15675 link_all_deplibs_GCJ=yes
15676 ;;
15677
15678 netbsd*)
15679 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15680 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15681 else
15682 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15683 fi
15684 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15685 hardcode_direct_GCJ=yes
15686 hardcode_shlibpath_var_GCJ=no
15687 ;;
15688
15689 newsos6)
15690 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15691 hardcode_direct_GCJ=yes
15692 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15693 hardcode_libdir_separator_GCJ=:
15694 hardcode_shlibpath_var_GCJ=no
15695 ;;
15696
15697 openbsd*)
15698 hardcode_direct_GCJ=yes
15699 hardcode_shlibpath_var_GCJ=no
15700 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15701 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15702 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15703 export_dynamic_flag_spec_GCJ='${wl}-E'
15704 else
15705 case $host_os in
15706 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15707 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15708 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15709 ;;
15710 *)
15711 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15712 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15713 ;;
15714 esac
15715 fi
15716 ;;
15717
15718 os2*)
15719 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15720 hardcode_minus_L_GCJ=yes
15721 allow_undefined_flag_GCJ=unsupported
Brian Gaeke0a621332004-09-08 20:38:05 +000015722 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def${_S_}$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def${_S_}$echo DATA >> $output_objdir/$libname.def${_S_}$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def${_S_}$echo EXPORTS >> $output_objdir/$libname.def${_S_}emxexp $libobjs >> $output_objdir/$libname.def${_S_}$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
John Criswell47fdd832003-07-14 16:52:07 +000015723 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15724 ;;
15725
15726 osf3*)
15727 if test "$GCC" = yes; then
15728 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15729 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'
15730 else
15731 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15732 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'
15733 fi
15734 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15735 hardcode_libdir_separator_GCJ=:
15736 ;;
15737
15738 osf4* | osf5*) # as osf3* with the addition of -msym flag
15739 if test "$GCC" = yes; then
15740 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15741 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'
15742 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15743 else
15744 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15745 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'
Brian Gaeke0a621332004-09-08 20:38:05 +000015746 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${_S_}
15747 $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${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015748
15749 # Both c and cxx compiler support -rpath directly
15750 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15751 fi
15752 hardcode_libdir_separator_GCJ=:
15753 ;;
15754
15755 sco3.2v5*)
15756 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15757 hardcode_shlibpath_var_GCJ=no
15758 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15759 runpath_var=LD_RUN_PATH
15760 hardcode_runpath_var=yes
15761 ;;
15762
15763 solaris*)
15764 no_undefined_flag_GCJ=' -z text'
15765 if test "$GCC" = yes; then
15766 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
Brian Gaeke0a621332004-09-08 20:38:05 +000015767 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
15768 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015769 else
15770 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Brian Gaeke0a621332004-09-08 20:38:05 +000015771 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
15772 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015773 fi
15774 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15775 hardcode_shlibpath_var_GCJ=no
15776 case $host_os in
15777 solaris2.[0-5] | solaris2.[0-5].*) ;;
15778 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15779 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15780 esac
15781 link_all_deplibs_GCJ=yes
15782 ;;
15783
15784 sunos4*)
15785 if test "x$host_vendor" = xsequent; then
15786 # Use $CC to link under sequent, because it throws in some extra .o
15787 # files that make .init and .fini sections work.
15788 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15789 else
15790 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15791 fi
15792 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15793 hardcode_direct_GCJ=yes
15794 hardcode_minus_L_GCJ=yes
15795 hardcode_shlibpath_var_GCJ=no
15796 ;;
15797
15798 sysv4)
15799 case $host_vendor in
15800 sni)
15801 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15802 hardcode_direct_GCJ=yes # is this really true???
15803 ;;
15804 siemens)
15805 ## LD is ld it makes a PLAMLIB
15806 ## CC just makes a GrossModule.
15807 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15808 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15809 hardcode_direct_GCJ=no
15810 ;;
15811 motorola)
15812 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15813 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15814 ;;
15815 esac
15816 runpath_var='LD_RUN_PATH'
15817 hardcode_shlibpath_var_GCJ=no
15818 ;;
15819
15820 sysv4.3*)
15821 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15822 hardcode_shlibpath_var_GCJ=no
15823 export_dynamic_flag_spec_GCJ='-Bexport'
15824 ;;
15825
15826 sysv4*MP*)
15827 if test -d /usr/nec; then
15828 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15829 hardcode_shlibpath_var_GCJ=no
15830 runpath_var=LD_RUN_PATH
15831 hardcode_runpath_var=yes
15832 ld_shlibs_GCJ=yes
15833 fi
15834 ;;
15835
15836 sysv4.2uw2*)
15837 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15838 hardcode_direct_GCJ=yes
15839 hardcode_minus_L_GCJ=no
15840 hardcode_shlibpath_var_GCJ=no
15841 hardcode_runpath_var=yes
15842 runpath_var=LD_RUN_PATH
15843 ;;
15844
15845 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15846 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15847 if test "$GCC" = yes; then
15848 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15849 else
15850 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15851 fi
15852 runpath_var='LD_RUN_PATH'
15853 hardcode_shlibpath_var_GCJ=no
15854 ;;
15855
15856 sysv5*)
15857 no_undefined_flag_GCJ=' -z text'
15858 # $CC -shared without GNU ld will not create a library from C++
15859 # object files and a static libstdc++, better avoid it by now
15860 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
Brian Gaeke0a621332004-09-08 20:38:05 +000015861 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp${_S_}cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp${_S_}$echo "local: *; };" >> $lib.exp${_S_}
15862 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags${_S_}$rm $lib.exp'
John Criswell47fdd832003-07-14 16:52:07 +000015863 hardcode_libdir_flag_spec_GCJ=
15864 hardcode_shlibpath_var_GCJ=no
15865 runpath_var='LD_RUN_PATH'
15866 ;;
15867
15868 uts4*)
15869 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15870 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15871 hardcode_shlibpath_var_GCJ=no
15872 ;;
15873
15874 *)
15875 ld_shlibs_GCJ=no
15876 ;;
15877 esac
15878 fi
15879
15880echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15881echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15882test "$ld_shlibs_GCJ" = no && can_build_shared=no
15883
15884variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15885if test "$GCC" = yes; then
15886 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15887fi
15888
15889#
15890# Do we need to explicitly link libc?
15891#
15892case "x$archive_cmds_need_lc_GCJ" in
15893x|xyes)
15894 # Assume -lc should be added
15895 archive_cmds_need_lc_GCJ=yes
15896
15897 if test "$enable_shared" = yes && test "$GCC" = yes; then
15898 case $archive_cmds_GCJ in
Brian Gaeke0a621332004-09-08 20:38:05 +000015899 *"$_S_"*)
John Criswell47fdd832003-07-14 16:52:07 +000015900 # FIXME: we may have to deal with multi-command sequences.
15901 ;;
15902 '$CC '*)
15903 # Test whether the compiler implicitly links with -lc since on some
15904 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15905 # to ld, don't add -lc before -lgcc.
15906 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15907echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15908 $rm conftest*
15909 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15910
15911 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15912 (eval $ac_compile) 2>&5
15913 ac_status=$?
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); } 2>conftest.err; then
15916 soname=conftest
15917 lib=conftest
15918 libobjs=conftest.$ac_objext
15919 deplibs=
15920 wl=$lt_prog_compiler_wl_GCJ
15921 compiler_flags=-v
15922 linker_flags=-v
15923 verstring=
15924 output_objdir=.
15925 libname=conftest
15926 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15927 allow_undefined_flag_GCJ=
15928 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15929 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15930 ac_status=$?
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); }
15933 then
15934 archive_cmds_need_lc_GCJ=no
15935 else
15936 archive_cmds_need_lc_GCJ=yes
15937 fi
15938 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15939 else
15940 cat conftest.err 1>&5
15941 fi
15942 $rm conftest*
15943 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15944echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
15945 ;;
15946 esac
15947 fi
15948 ;;
15949esac
15950
Brian Gaeke0a621332004-09-08 20:38:05 +000015951echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15952echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15953hardcode_action_GCJ=
15954if test -n "$hardcode_libdir_flag_spec_GCJ" || \
15955 test -n "$runpath_var GCJ" || \
15956 test "X$hardcode_automatic_GCJ"="Xyes" ; then
15957
15958 # We can hardcode non-existant directories.
15959 if test "$hardcode_direct_GCJ" != no &&
15960 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15961 # have to relink, otherwise we might link with an installed library
15962 # when we should be linking with a yet-to-be-installed one
15963 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
15964 test "$hardcode_minus_L_GCJ" != no; then
15965 # Linking always hardcodes the temporary library directory.
15966 hardcode_action_GCJ=relink
15967 else
15968 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15969 hardcode_action_GCJ=immediate
15970 fi
15971else
15972 # We cannot hardcode anything, or else we can only hardcode existing
15973 # directories.
15974 hardcode_action_GCJ=unsupported
15975fi
15976echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
15977echo "${ECHO_T}$hardcode_action_GCJ" >&6
15978
15979if test "$hardcode_action_GCJ" = relink; then
15980 # Fast installation is not supported
15981 enable_fast_install=no
15982elif test "$shlibpath_overrides_runpath" = yes ||
15983 test "$enable_shared" = no; then
15984 # Fast installation is not necessary
15985 enable_fast_install=needless
15986fi
15987
15988striplib=
15989old_striplib=
15990echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15991echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15992if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15993 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15994 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15995 echo "$as_me:$LINENO: result: yes" >&5
15996echo "${ECHO_T}yes" >&6
15997else
15998# FIXME - insert some real tests, host_os isn't really good enough
15999 case $host_os in
16000 NOT-darwin*)
16001 if test -n "$STRIP" ; then
16002 striplib="$STRIP -x"
16003 echo "$as_me:$LINENO: result: yes" >&5
16004echo "${ECHO_T}yes" >&6
16005 else
16006 echo "$as_me:$LINENO: result: no" >&5
16007echo "${ECHO_T}no" >&6
16008fi
16009 ;;
16010 *)
16011 echo "$as_me:$LINENO: result: no" >&5
16012echo "${ECHO_T}no" >&6
16013 ;;
16014 esac
16015fi
16016
John Criswell47fdd832003-07-14 16:52:07 +000016017echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16018echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16019library_names_spec=
16020libname_spec='lib$name'
16021soname_spec=
16022shrext=".so"
16023postinstall_cmds=
16024postuninstall_cmds=
16025finish_cmds=
16026finish_eval=
16027shlibpath_var=
16028shlibpath_overrides_runpath=unknown
16029version_type=none
16030dynamic_linker="$host_os ld.so"
16031sys_lib_dlsearch_path_spec="/lib /usr/lib"
16032if test "$GCC" = yes; then
16033 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16034 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16035 # if the path contains ";" then we assume it to be the separator
16036 # otherwise default to the standard path separator (i.e. ":") - it is
16037 # assumed that no part of a normal pathname contains ";" but that should
16038 # okay in the real world where ";" in dirpaths is itself problematic.
16039 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16040 else
16041 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16042 fi
16043else
16044 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16045fi
16046need_lib_prefix=unknown
16047hardcode_into_libs=no
16048
16049# when you set need_version to no, make sure it does not cause -set_version
16050# flags to be left without arguments
16051need_version=unknown
16052
16053case $host_os in
16054aix3*)
16055 version_type=linux
16056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16057 shlibpath_var=LIBPATH
16058
16059 # AIX 3 has no versioning support, so we append a major version to the name.
16060 soname_spec='${libname}${release}${shared_ext}$major'
16061 ;;
16062
16063aix4* | aix5*)
16064 version_type=linux
16065 need_lib_prefix=no
16066 need_version=no
16067 hardcode_into_libs=yes
16068 if test "$host_cpu" = ia64; then
16069 # AIX 5 supports IA64
16070 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16071 shlibpath_var=LD_LIBRARY_PATH
16072 else
16073 # With GCC up to 2.95.x, collect2 would create an import file
16074 # for dependence libraries. The import file would start with
16075 # the line `#! .'. This would cause the generated library to
16076 # depend on `.', always an invalid library. This was fixed in
16077 # development snapshots of GCC prior to 3.0.
16078 case $host_os in
16079 aix4 | aix4.[01] | aix4.[01].*)
16080 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16081 echo ' yes '
16082 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16083 :
16084 else
16085 can_build_shared=no
16086 fi
16087 ;;
16088 esac
16089 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16090 # soname into executable. Probably we can add versioning support to
16091 # collect2, so additional links can be useful in future.
16092 if test "$aix_use_runtimelinking" = yes; then
16093 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16094 # instead of lib<name>.a to let people know that these are not
16095 # typical AIX shared libraries.
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097 else
16098 # We preserve .a as extension for shared libraries through AIX4.2
16099 # and later when we are not doing run time linking.
16100 library_names_spec='${libname}${release}.a $libname.a'
16101 soname_spec='${libname}${release}${shared_ext}$major'
16102 fi
16103 shlibpath_var=LIBPATH
16104 fi
16105 ;;
16106
16107amigaos*)
16108 library_names_spec='$libname.ixlibrary $libname.a'
16109 # Create ${libname}_ixlibrary.a entries in /sys/libs.
Brian Gaeke0a621332004-09-08 20:38:05 +000016110 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
John Criswell47fdd832003-07-14 16:52:07 +000016111 ;;
16112
16113beos*)
16114 library_names_spec='${libname}${shared_ext}'
16115 dynamic_linker="$host_os ld.so"
16116 shlibpath_var=LIBRARY_PATH
16117 ;;
16118
16119bsdi4*)
16120 version_type=linux
16121 need_version=no
16122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123 soname_spec='${libname}${release}${shared_ext}$major'
16124 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16125 shlibpath_var=LD_LIBRARY_PATH
16126 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16127 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16128 # the default ld.so.conf also contains /usr/contrib/lib and
16129 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16130 # libtool to hard-code these into programs
16131 ;;
16132
16133cygwin* | mingw* | pw32*)
16134 version_type=windows
16135 shrext=".dll"
16136 need_version=no
16137 need_lib_prefix=no
16138
16139 case $GCC,$host_os in
16140 yes,cygwin* | yes,mingw* | yes,pw32*)
16141 library_names_spec='$libname.dll.a'
16142 # DLL is installed to $(libdir)/../bin by postinstall_cmds
Brian Gaeke0a621332004-09-08 20:38:05 +000016143 postinstall_cmds='base_file=`basename \${file}`${_S_}
16144 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`${_S_}
16145 dldir=$destdir/`dirname \$dlpath`${_S_}
16146 test -d \$dldir || mkdir -p \$dldir${_S_}
John Criswell47fdd832003-07-14 16:52:07 +000016147 $install_prog $dir/$dlname \$dldir/$dlname'
Brian Gaeke0a621332004-09-08 20:38:05 +000016148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`${_S_}
16149 dlpath=$dir/\$dldll${_S_}
John Criswell47fdd832003-07-14 16:52:07 +000016150 $rm \$dlpath'
16151 shlibpath_overrides_runpath=yes
16152
16153 case $host_os in
16154 cygwin*)
16155 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16156 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
Brian Gaeke0a621332004-09-08 20:38:05 +000016157 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
John Criswell47fdd832003-07-14 16:52:07 +000016158 ;;
16159 mingw*)
16160 # MinGW DLLs use traditional 'lib' prefix
16161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16162 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16163 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16164 # It is most probably a Windows format PATH printed by
16165 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16166 # path with ; separators, and with drive letters. We can handle the
16167 # drive letters (cygwin fileutils understands them), so leave them,
16168 # especially as we might pass files found there to a mingw objdump,
16169 # which wouldn't understand a cygwinified path. Ahh.
16170 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16171 else
16172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16173 fi
16174 ;;
16175 pw32*)
16176 # pw32 DLLs use 'pw' prefix rather than 'lib'
16177 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16178 ;;
16179 esac
16180 ;;
16181
16182 *)
16183 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16184 ;;
16185 esac
16186 dynamic_linker='Win32 ld.exe'
16187 # FIXME: first we should search . and the directory the executable is in
16188 shlibpath_var=PATH
16189 ;;
16190
16191darwin* | rhapsody*)
16192 dynamic_linker="$host_os dyld"
16193 version_type=darwin
16194 need_lib_prefix=no
16195 need_version=no
Brian Gaeke0a621332004-09-08 20:38:05 +000016196 # FIXME: Relying on posixy $() will cause problems for
16197 # cross-compilation, but unfortunately the echo tests do not
16198 # yet detect zsh echo's removal of \ escapes.
16199 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext ${libname}${release}${versuffix}$shared_ext'
John Criswell47fdd832003-07-14 16:52:07 +000016200 soname_spec='${libname}${release}${major}$shared_ext'
16201 shlibpath_overrides_runpath=yes
16202 shlibpath_var=DYLD_LIBRARY_PATH
16203 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16204 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
Brian Gaeke0a621332004-09-08 20:38:05 +000016205 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16206 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"`
John Criswell47fdd832003-07-14 16:52:07 +000016207 fi
16208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16209 ;;
16210
16211dgux*)
16212 version_type=linux
16213 need_lib_prefix=no
16214 need_version=no
16215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16216 soname_spec='${libname}${release}${shared_ext}$major'
16217 shlibpath_var=LD_LIBRARY_PATH
16218 ;;
16219
16220freebsd1*)
16221 dynamic_linker=no
16222 ;;
16223
16224freebsd*)
16225 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16226 version_type=freebsd-$objformat
16227 case $version_type in
16228 freebsd-elf*)
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16230 need_version=no
16231 need_lib_prefix=no
16232 ;;
16233 freebsd-*)
16234 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16235 need_version=yes
16236 ;;
16237 esac
16238 shlibpath_var=LD_LIBRARY_PATH
16239 case $host_os in
16240 freebsd2*)
16241 shlibpath_overrides_runpath=yes
16242 ;;
16243 freebsd3.01* | freebsdelf3.01*)
16244 shlibpath_overrides_runpath=yes
16245 hardcode_into_libs=yes
16246 ;;
16247 *) # from 3.2 on
16248 shlibpath_overrides_runpath=no
16249 hardcode_into_libs=yes
16250 ;;
16251 esac
16252 ;;
16253
16254gnu*)
16255 version_type=linux
16256 need_lib_prefix=no
16257 need_version=no
16258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16259 soname_spec='${libname}${release}${shared_ext}$major'
16260 shlibpath_var=LD_LIBRARY_PATH
16261 hardcode_into_libs=yes
16262 ;;
16263
16264hpux9* | hpux10* | hpux11*)
16265 # Give a soname corresponding to the major version so that dld.sl refuses to
16266 # link against other versions.
16267 version_type=sunos
16268 need_lib_prefix=no
16269 need_version=no
16270 case "$host_cpu" in
16271 ia64*)
16272 shrext='.so'
16273 hardcode_into_libs=yes
16274 dynamic_linker="$host_os dld.so"
16275 shlibpath_var=LD_LIBRARY_PATH
16276 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278 soname_spec='${libname}${release}${shared_ext}$major'
16279 if test "X$HPUX_IA64_MODE" = X32; then
16280 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16281 else
16282 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16283 fi
16284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16285 ;;
16286 hppa*64*)
16287 shrext='.sl'
16288 hardcode_into_libs=yes
16289 dynamic_linker="$host_os dld.sl"
16290 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16293 soname_spec='${libname}${release}${shared_ext}$major'
16294 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16296 ;;
16297 *)
16298 shrext='.sl'
16299 dynamic_linker="$host_os dld.sl"
16300 shlibpath_var=SHLIB_PATH
16301 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16303 soname_spec='${libname}${release}${shared_ext}$major'
16304 ;;
16305 esac
16306 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16307 postinstall_cmds='chmod 555 $lib'
16308 ;;
16309
16310irix5* | irix6* | nonstopux*)
16311 case $host_os in
16312 nonstopux*) version_type=nonstopux ;;
16313 *)
16314 if test "$lt_cv_prog_gnu_ld" = yes; then
16315 version_type=linux
16316 else
16317 version_type=irix
16318 fi ;;
16319 esac
16320 need_lib_prefix=no
16321 need_version=no
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16324 case $host_os in
16325 irix5* | nonstopux*)
16326 libsuff= shlibsuff=
16327 ;;
16328 *)
16329 case $LD in # libtool.m4 will add one of these switches to LD
16330 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16331 libsuff= shlibsuff= libmagic=32-bit;;
16332 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16333 libsuff=32 shlibsuff=N32 libmagic=N32;;
16334 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16335 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16336 *) libsuff= shlibsuff= libmagic=never-match;;
16337 esac
16338 ;;
16339 esac
16340 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16341 shlibpath_overrides_runpath=no
16342 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16343 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16344 hardcode_into_libs=yes
16345 ;;
16346
16347# No shared lib support for Linux oldld, aout, or coff.
16348linux*oldld* | linux*aout* | linux*coff*)
16349 dynamic_linker=no
16350 ;;
16351
16352# This must be Linux ELF.
16353linux*)
16354 version_type=linux
16355 need_lib_prefix=no
16356 need_version=no
16357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358 soname_spec='${libname}${release}${shared_ext}$major'
16359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16360 shlibpath_var=LD_LIBRARY_PATH
16361 shlibpath_overrides_runpath=no
16362 # This implies no fast_install, which is unacceptable.
16363 # Some rework will be needed to allow for fast_install
16364 # before this can be enabled.
16365 hardcode_into_libs=yes
16366
16367 # We used to test for /lib/ld.so.1 and disable shared libraries on
16368 # powerpc, because MkLinux only supported shared libraries with the
16369 # GNU dynamic linker. Since this was broken with cross compilers,
16370 # most powerpc-linux boxes support dynamic linking these days and
16371 # people can always --disable-shared, the test was removed, and we
16372 # assume the GNU/Linux dynamic linker is in use.
16373 dynamic_linker='GNU/Linux ld.so'
16374 ;;
16375
16376netbsd*)
16377 version_type=sunos
16378 need_lib_prefix=no
16379 need_version=no
16380 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16383 dynamic_linker='NetBSD (a.out) ld.so'
16384 else
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16386 soname_spec='${libname}${release}${shared_ext}$major'
16387 dynamic_linker='NetBSD ld.elf_so'
16388 fi
16389 shlibpath_var=LD_LIBRARY_PATH
16390 shlibpath_overrides_runpath=yes
16391 hardcode_into_libs=yes
16392 ;;
16393
16394newsos6)
16395 version_type=linux
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16397 shlibpath_var=LD_LIBRARY_PATH
16398 shlibpath_overrides_runpath=yes
16399 ;;
16400
Brian Gaeke0a621332004-09-08 20:38:05 +000016401nto-qnx)
John Criswell47fdd832003-07-14 16:52:07 +000016402 version_type=linux
16403 need_lib_prefix=no
16404 need_version=no
16405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16406 soname_spec='${libname}${release}${shared_ext}$major'
16407 shlibpath_var=LD_LIBRARY_PATH
16408 shlibpath_overrides_runpath=yes
16409 ;;
16410
16411openbsd*)
16412 version_type=sunos
16413 need_lib_prefix=no
Brian Gaeke0a621332004-09-08 20:38:05 +000016414 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +000016415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16416 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16419 case $host_os in
16420 openbsd2.[89] | openbsd2.[89].*)
16421 shlibpath_overrides_runpath=no
16422 ;;
16423 *)
16424 shlibpath_overrides_runpath=yes
16425 ;;
16426 esac
16427 else
16428 shlibpath_overrides_runpath=yes
16429 fi
16430 ;;
16431
16432os2*)
16433 libname_spec='$name'
16434 shrext=".dll"
16435 need_lib_prefix=no
16436 library_names_spec='$libname${shared_ext} $libname.a'
16437 dynamic_linker='OS/2 ld.exe'
16438 shlibpath_var=LIBPATH
16439 ;;
16440
16441osf3* | osf4* | osf5*)
16442 version_type=osf
16443 need_lib_prefix=no
16444 need_version=no
16445 soname_spec='${libname}${release}${shared_ext}$major'
16446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16447 shlibpath_var=LD_LIBRARY_PATH
16448 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16449 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16450 ;;
16451
16452sco3.2v5*)
16453 version_type=osf
16454 soname_spec='${libname}${release}${shared_ext}$major'
16455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16456 shlibpath_var=LD_LIBRARY_PATH
16457 ;;
16458
16459solaris*)
16460 version_type=linux
16461 need_lib_prefix=no
16462 need_version=no
16463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16464 soname_spec='${libname}${release}${shared_ext}$major'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 shlibpath_overrides_runpath=yes
16467 hardcode_into_libs=yes
16468 # ldd complains unless libraries are executable
16469 postinstall_cmds='chmod +x $lib'
16470 ;;
16471
16472sunos4*)
16473 version_type=sunos
16474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16475 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16476 shlibpath_var=LD_LIBRARY_PATH
16477 shlibpath_overrides_runpath=yes
16478 if test "$with_gnu_ld" = yes; then
16479 need_lib_prefix=no
16480 fi
16481 need_version=yes
16482 ;;
16483
16484sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16485 version_type=linux
16486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16487 soname_spec='${libname}${release}${shared_ext}$major'
16488 shlibpath_var=LD_LIBRARY_PATH
16489 case $host_vendor in
16490 sni)
16491 shlibpath_overrides_runpath=no
16492 need_lib_prefix=no
16493 export_dynamic_flag_spec='${wl}-Blargedynsym'
16494 runpath_var=LD_RUN_PATH
16495 ;;
16496 siemens)
16497 need_lib_prefix=no
16498 ;;
16499 motorola)
16500 need_lib_prefix=no
16501 need_version=no
16502 shlibpath_overrides_runpath=no
16503 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16504 ;;
16505 esac
16506 ;;
16507
16508sysv4*MP*)
16509 if test -d /usr/nec ;then
16510 version_type=linux
16511 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16512 soname_spec='$libname${shared_ext}.$major'
16513 shlibpath_var=LD_LIBRARY_PATH
16514 fi
16515 ;;
16516
16517uts4*)
16518 version_type=linux
16519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16520 soname_spec='${libname}${release}${shared_ext}$major'
16521 shlibpath_var=LD_LIBRARY_PATH
16522 ;;
16523
16524*)
16525 dynamic_linker=no
16526 ;;
16527esac
16528echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16529echo "${ECHO_T}$dynamic_linker" >&6
16530test "$dynamic_linker" = no && can_build_shared=no
16531
16532if test "x$enable_dlopen" != xyes; then
16533 enable_dlopen=unknown
16534 enable_dlopen_self=unknown
16535 enable_dlopen_self_static=unknown
16536else
16537 lt_cv_dlopen=no
16538 lt_cv_dlopen_libs=
16539
16540 case $host_os in
16541 beos*)
16542 lt_cv_dlopen="load_add_on"
16543 lt_cv_dlopen_libs=
16544 lt_cv_dlopen_self=yes
16545 ;;
16546
16547 mingw* | pw32*)
16548 lt_cv_dlopen="LoadLibrary"
16549 lt_cv_dlopen_libs=
16550 ;;
16551
16552 cygwin*)
16553 lt_cv_dlopen="dlopen"
16554 lt_cv_dlopen_libs=
16555 ;;
16556
16557 darwin*)
16558 # if libdl is installed we need to link against it
16559 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16560echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16561if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16563else
16564 ac_check_lib_save_LIBS=$LIBS
16565LIBS="-ldl $LIBS"
16566cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000016567#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016568/* confdefs.h. */
16569_ACEOF
16570cat confdefs.h >>conftest.$ac_ext
16571cat >>conftest.$ac_ext <<_ACEOF
16572/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016573
16574/* Override any gcc2 internal prototype to avoid an error. */
16575#ifdef __cplusplus
16576extern "C"
16577#endif
16578/* We use char because int might match the return type of a gcc2
16579 builtin and then its argument prototype would still apply. */
16580char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016581int
16582main ()
16583{
16584dlopen ();
16585 ;
16586 return 0;
16587}
16588_ACEOF
16589rm -f conftest.$ac_objext conftest$ac_exeext
16590if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000016591 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016592 ac_status=$?
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000016595 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16597 (eval $ac_try) 2>&5
16598 ac_status=$?
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; }; then
16601 ac_cv_lib_dl_dlopen=yes
16602else
16603 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016604sed 's/^/| /' conftest.$ac_ext >&5
16605
John Criswell47fdd832003-07-14 16:52:07 +000016606ac_cv_lib_dl_dlopen=no
16607fi
Brian Gaeke0a621332004-09-08 20:38:05 +000016608rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016609LIBS=$ac_check_lib_save_LIBS
16610fi
16611echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16612echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16613if test $ac_cv_lib_dl_dlopen = yes; then
16614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16615else
16616
16617 lt_cv_dlopen="dyld"
16618 lt_cv_dlopen_libs=
16619 lt_cv_dlopen_self=yes
16620
16621fi
16622
16623 ;;
16624
16625 *)
16626 echo "$as_me:$LINENO: checking for shl_load" >&5
16627echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16628if test "${ac_cv_func_shl_load+set}" = set; then
16629 echo $ECHO_N "(cached) $ECHO_C" >&6
16630else
16631 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000016632#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016633/* confdefs.h. */
16634_ACEOF
16635cat confdefs.h >>conftest.$ac_ext
16636cat >>conftest.$ac_ext <<_ACEOF
16637/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016638/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016639 which can conflict with char shl_load (); below.
16640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16641 <limits.h> exists even on freestanding compilers. */
16642#ifdef __STDC__
16643# include <limits.h>
16644#else
16645# include <assert.h>
16646#endif
John Criswell47fdd832003-07-14 16:52:07 +000016647/* Override any gcc2 internal prototype to avoid an error. */
16648#ifdef __cplusplus
16649extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016650{
John Criswell47fdd832003-07-14 16:52:07 +000016651#endif
16652/* We use char because int might match the return type of a gcc2
16653 builtin and then its argument prototype would still apply. */
16654char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016655/* The GNU C library defines this for functions which it implements
16656 to always fail with ENOSYS. Some functions are actually named
16657 something starting with __ and the normal name is an alias. */
16658#if defined (__stub_shl_load) || defined (__stub___shl_load)
16659choke me
16660#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016661char (*f) () = shl_load;
16662#endif
16663#ifdef __cplusplus
16664}
John Criswell47fdd832003-07-14 16:52:07 +000016665#endif
16666
John Criswell0c38eaf2003-09-10 15:17:25 +000016667int
16668main ()
16669{
16670return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000016671 ;
16672 return 0;
16673}
16674_ACEOF
16675rm -f conftest.$ac_objext conftest$ac_exeext
16676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000016677 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016678 ac_status=$?
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000016681 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16683 (eval $ac_try) 2>&5
16684 ac_status=$?
16685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16686 (exit $ac_status); }; }; then
16687 ac_cv_func_shl_load=yes
16688else
16689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016690sed 's/^/| /' conftest.$ac_ext >&5
16691
John Criswell47fdd832003-07-14 16:52:07 +000016692ac_cv_func_shl_load=no
16693fi
Brian Gaeke0a621332004-09-08 20:38:05 +000016694rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016695fi
16696echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16697echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16698if test $ac_cv_func_shl_load = yes; then
16699 lt_cv_dlopen="shl_load"
16700else
16701 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16702echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16703if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16704 echo $ECHO_N "(cached) $ECHO_C" >&6
16705else
16706 ac_check_lib_save_LIBS=$LIBS
16707LIBS="-ldld $LIBS"
16708cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000016709#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016710/* confdefs.h. */
16711_ACEOF
16712cat confdefs.h >>conftest.$ac_ext
16713cat >>conftest.$ac_ext <<_ACEOF
16714/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016715
16716/* Override any gcc2 internal prototype to avoid an error. */
16717#ifdef __cplusplus
16718extern "C"
16719#endif
16720/* We use char because int might match the return type of a gcc2
16721 builtin and then its argument prototype would still apply. */
16722char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000016723int
16724main ()
16725{
16726shl_load ();
16727 ;
16728 return 0;
16729}
16730_ACEOF
16731rm -f conftest.$ac_objext conftest$ac_exeext
16732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000016733 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016734 ac_status=$?
16735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16736 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000016737 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16739 (eval $ac_try) 2>&5
16740 ac_status=$?
16741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742 (exit $ac_status); }; }; then
16743 ac_cv_lib_dld_shl_load=yes
16744else
16745 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016746sed 's/^/| /' conftest.$ac_ext >&5
16747
John Criswell47fdd832003-07-14 16:52:07 +000016748ac_cv_lib_dld_shl_load=no
16749fi
Brian Gaeke0a621332004-09-08 20:38:05 +000016750rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016751LIBS=$ac_check_lib_save_LIBS
16752fi
16753echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16754echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16755if test $ac_cv_lib_dld_shl_load = yes; then
16756 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16757else
16758 echo "$as_me:$LINENO: checking for dlopen" >&5
16759echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16760if test "${ac_cv_func_dlopen+set}" = set; then
16761 echo $ECHO_N "(cached) $ECHO_C" >&6
16762else
16763 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000016764#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016765/* confdefs.h. */
16766_ACEOF
16767cat confdefs.h >>conftest.$ac_ext
16768cat >>conftest.$ac_ext <<_ACEOF
16769/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016770/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000016771 which can conflict with char dlopen (); below.
16772 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16773 <limits.h> exists even on freestanding compilers. */
16774#ifdef __STDC__
16775# include <limits.h>
16776#else
16777# include <assert.h>
16778#endif
John Criswell47fdd832003-07-14 16:52:07 +000016779/* Override any gcc2 internal prototype to avoid an error. */
16780#ifdef __cplusplus
16781extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000016782{
John Criswell47fdd832003-07-14 16:52:07 +000016783#endif
16784/* We use char because int might match the return type of a gcc2
16785 builtin and then its argument prototype would still apply. */
16786char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016787/* The GNU C library defines this for functions which it implements
16788 to always fail with ENOSYS. Some functions are actually named
16789 something starting with __ and the normal name is an alias. */
16790#if defined (__stub_dlopen) || defined (__stub___dlopen)
16791choke me
16792#else
John Criswell0c38eaf2003-09-10 15:17:25 +000016793char (*f) () = dlopen;
16794#endif
16795#ifdef __cplusplus
16796}
John Criswell47fdd832003-07-14 16:52:07 +000016797#endif
16798
John Criswell0c38eaf2003-09-10 15:17:25 +000016799int
16800main ()
16801{
16802return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000016803 ;
16804 return 0;
16805}
16806_ACEOF
16807rm -f conftest.$ac_objext conftest$ac_exeext
16808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000016809 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016810 ac_status=$?
16811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16812 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000016813 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16815 (eval $ac_try) 2>&5
16816 ac_status=$?
16817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16818 (exit $ac_status); }; }; then
16819 ac_cv_func_dlopen=yes
16820else
16821 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016822sed 's/^/| /' conftest.$ac_ext >&5
16823
John Criswell47fdd832003-07-14 16:52:07 +000016824ac_cv_func_dlopen=no
16825fi
Brian Gaeke0a621332004-09-08 20:38:05 +000016826rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016827fi
16828echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16829echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16830if test $ac_cv_func_dlopen = yes; then
16831 lt_cv_dlopen="dlopen"
16832else
16833 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16834echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16835if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16836 echo $ECHO_N "(cached) $ECHO_C" >&6
16837else
16838 ac_check_lib_save_LIBS=$LIBS
16839LIBS="-ldl $LIBS"
16840cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000016841#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016842/* confdefs.h. */
16843_ACEOF
16844cat confdefs.h >>conftest.$ac_ext
16845cat >>conftest.$ac_ext <<_ACEOF
16846/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016847
16848/* Override any gcc2 internal prototype to avoid an error. */
16849#ifdef __cplusplus
16850extern "C"
16851#endif
16852/* We use char because int might match the return type of a gcc2
16853 builtin and then its argument prototype would still apply. */
16854char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016855int
16856main ()
16857{
16858dlopen ();
16859 ;
16860 return 0;
16861}
16862_ACEOF
16863rm -f conftest.$ac_objext conftest$ac_exeext
16864if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000016865 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016866 ac_status=$?
16867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000016869 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16871 (eval $ac_try) 2>&5
16872 ac_status=$?
16873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16874 (exit $ac_status); }; }; then
16875 ac_cv_lib_dl_dlopen=yes
16876else
16877 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016878sed 's/^/| /' conftest.$ac_ext >&5
16879
John Criswell47fdd832003-07-14 16:52:07 +000016880ac_cv_lib_dl_dlopen=no
16881fi
Brian Gaeke0a621332004-09-08 20:38:05 +000016882rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016883LIBS=$ac_check_lib_save_LIBS
16884fi
16885echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16886echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16887if test $ac_cv_lib_dl_dlopen = yes; then
16888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16889else
16890 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16891echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16892if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16894else
16895 ac_check_lib_save_LIBS=$LIBS
16896LIBS="-lsvld $LIBS"
16897cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000016898#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016899/* confdefs.h. */
16900_ACEOF
16901cat confdefs.h >>conftest.$ac_ext
16902cat >>conftest.$ac_ext <<_ACEOF
16903/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016904
16905/* Override any gcc2 internal prototype to avoid an error. */
16906#ifdef __cplusplus
16907extern "C"
16908#endif
16909/* We use char because int might match the return type of a gcc2
16910 builtin and then its argument prototype would still apply. */
16911char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016912int
16913main ()
16914{
16915dlopen ();
16916 ;
16917 return 0;
16918}
16919_ACEOF
16920rm -f conftest.$ac_objext conftest$ac_exeext
16921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000016922 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000016926 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16928 (eval $ac_try) 2>&5
16929 ac_status=$?
16930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16931 (exit $ac_status); }; }; then
16932 ac_cv_lib_svld_dlopen=yes
16933else
16934 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016935sed 's/^/| /' conftest.$ac_ext >&5
16936
John Criswell47fdd832003-07-14 16:52:07 +000016937ac_cv_lib_svld_dlopen=no
16938fi
Brian Gaeke0a621332004-09-08 20:38:05 +000016939rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016940LIBS=$ac_check_lib_save_LIBS
16941fi
16942echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16943echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
16944if test $ac_cv_lib_svld_dlopen = yes; then
16945 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16946else
16947 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16948echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
16949if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16950 echo $ECHO_N "(cached) $ECHO_C" >&6
16951else
16952 ac_check_lib_save_LIBS=$LIBS
16953LIBS="-ldld $LIBS"
16954cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000016955#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000016956/* confdefs.h. */
16957_ACEOF
16958cat confdefs.h >>conftest.$ac_ext
16959cat >>conftest.$ac_ext <<_ACEOF
16960/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016961
16962/* Override any gcc2 internal prototype to avoid an error. */
16963#ifdef __cplusplus
16964extern "C"
16965#endif
16966/* We use char because int might match the return type of a gcc2
16967 builtin and then its argument prototype would still apply. */
16968char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000016969int
16970main ()
16971{
16972dld_link ();
16973 ;
16974 return 0;
16975}
16976_ACEOF
16977rm -f conftest.$ac_objext conftest$ac_exeext
16978if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000016979 (eval $ac_link) 2>&5
John Criswell47fdd832003-07-14 16:52:07 +000016980 ac_status=$?
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000016983 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16985 (eval $ac_try) 2>&5
16986 ac_status=$?
16987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16988 (exit $ac_status); }; }; then
16989 ac_cv_lib_dld_dld_link=yes
16990else
16991 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016992sed 's/^/| /' conftest.$ac_ext >&5
16993
John Criswell47fdd832003-07-14 16:52:07 +000016994ac_cv_lib_dld_dld_link=no
16995fi
Brian Gaeke0a621332004-09-08 20:38:05 +000016996rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016997LIBS=$ac_check_lib_save_LIBS
16998fi
16999echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17000echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17001if test $ac_cv_lib_dld_dld_link = yes; then
17002 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17003fi
17004
17005
17006fi
17007
17008
17009fi
17010
17011
17012fi
17013
17014
17015fi
17016
17017
17018fi
17019
17020 ;;
17021 esac
17022
17023 if test "x$lt_cv_dlopen" != xno; then
17024 enable_dlopen=yes
17025 else
17026 enable_dlopen=no
17027 fi
17028
17029 case $lt_cv_dlopen in
17030 dlopen)
17031 save_CPPFLAGS="$CPPFLAGS"
17032 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17033
17034 save_LDFLAGS="$LDFLAGS"
17035 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17036
17037 save_LIBS="$LIBS"
17038 LIBS="$lt_cv_dlopen_libs $LIBS"
17039
17040 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17041echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17042if test "${lt_cv_dlopen_self+set}" = set; then
17043 echo $ECHO_N "(cached) $ECHO_C" >&6
17044else
17045 if test "$cross_compiling" = yes; then :
17046 lt_cv_dlopen_self=cross
17047else
17048 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17049 lt_status=$lt_dlunknown
17050 cat > conftest.$ac_ext <<EOF
Brian Gaeke0a621332004-09-08 20:38:05 +000017051#line 17051 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017052#include "confdefs.h"
17053
17054#if HAVE_DLFCN_H
17055#include <dlfcn.h>
17056#endif
17057
17058#include <stdio.h>
17059
17060#ifdef RTLD_GLOBAL
17061# define LT_DLGLOBAL RTLD_GLOBAL
17062#else
17063# ifdef DL_GLOBAL
17064# define LT_DLGLOBAL DL_GLOBAL
17065# else
17066# define LT_DLGLOBAL 0
17067# endif
17068#endif
17069
17070/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17071 find out it does not work in some platform. */
17072#ifndef LT_DLLAZY_OR_NOW
17073# ifdef RTLD_LAZY
17074# define LT_DLLAZY_OR_NOW RTLD_LAZY
17075# else
17076# ifdef DL_LAZY
17077# define LT_DLLAZY_OR_NOW DL_LAZY
17078# else
17079# ifdef RTLD_NOW
17080# define LT_DLLAZY_OR_NOW RTLD_NOW
17081# else
17082# ifdef DL_NOW
17083# define LT_DLLAZY_OR_NOW DL_NOW
17084# else
17085# define LT_DLLAZY_OR_NOW 0
17086# endif
17087# endif
17088# endif
17089# endif
17090#endif
17091
17092#ifdef __cplusplus
17093extern "C" void exit (int);
17094#endif
17095
17096void fnord() { int i=42;}
17097int main ()
17098{
17099 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17100 int status = $lt_dlunknown;
17101
17102 if (self)
17103 {
17104 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17105 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17106 /* dlclose (self); */
17107 }
17108
17109 exit (status);
17110}
17111EOF
17112 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17113 (eval $ac_link) 2>&5
17114 ac_status=$?
17115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17116 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17117 (./conftest; exit; ) 2>/dev/null
17118 lt_status=$?
17119 case x$lt_status in
17120 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17121 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17122 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17123 esac
17124 else :
17125 # compilation failed
17126 lt_cv_dlopen_self=no
17127 fi
17128fi
17129rm -fr conftest*
17130
17131
17132fi
17133echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17134echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17135
17136 if test "x$lt_cv_dlopen_self" = xyes; then
17137 LDFLAGS="$LDFLAGS $link_static_flag"
17138 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17139echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17140if test "${lt_cv_dlopen_self_static+set}" = set; then
17141 echo $ECHO_N "(cached) $ECHO_C" >&6
17142else
17143 if test "$cross_compiling" = yes; then :
17144 lt_cv_dlopen_self_static=cross
17145else
17146 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17147 lt_status=$lt_dlunknown
17148 cat > conftest.$ac_ext <<EOF
Brian Gaeke0a621332004-09-08 20:38:05 +000017149#line 17149 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017150#include "confdefs.h"
17151
17152#if HAVE_DLFCN_H
17153#include <dlfcn.h>
17154#endif
17155
17156#include <stdio.h>
17157
17158#ifdef RTLD_GLOBAL
17159# define LT_DLGLOBAL RTLD_GLOBAL
17160#else
17161# ifdef DL_GLOBAL
17162# define LT_DLGLOBAL DL_GLOBAL
17163# else
17164# define LT_DLGLOBAL 0
17165# endif
17166#endif
17167
17168/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17169 find out it does not work in some platform. */
17170#ifndef LT_DLLAZY_OR_NOW
17171# ifdef RTLD_LAZY
17172# define LT_DLLAZY_OR_NOW RTLD_LAZY
17173# else
17174# ifdef DL_LAZY
17175# define LT_DLLAZY_OR_NOW DL_LAZY
17176# else
17177# ifdef RTLD_NOW
17178# define LT_DLLAZY_OR_NOW RTLD_NOW
17179# else
17180# ifdef DL_NOW
17181# define LT_DLLAZY_OR_NOW DL_NOW
17182# else
17183# define LT_DLLAZY_OR_NOW 0
17184# endif
17185# endif
17186# endif
17187# endif
17188#endif
17189
17190#ifdef __cplusplus
17191extern "C" void exit (int);
17192#endif
17193
17194void fnord() { int i=42;}
17195int main ()
17196{
17197 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17198 int status = $lt_dlunknown;
17199
17200 if (self)
17201 {
17202 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17203 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17204 /* dlclose (self); */
17205 }
17206
17207 exit (status);
17208}
17209EOF
17210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17211 (eval $ac_link) 2>&5
17212 ac_status=$?
17213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17214 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17215 (./conftest; exit; ) 2>/dev/null
17216 lt_status=$?
17217 case x$lt_status in
17218 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17219 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17220 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17221 esac
17222 else :
17223 # compilation failed
17224 lt_cv_dlopen_self_static=no
17225 fi
17226fi
17227rm -fr conftest*
17228
17229
17230fi
17231echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17232echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17233 fi
17234
17235 CPPFLAGS="$save_CPPFLAGS"
17236 LDFLAGS="$save_LDFLAGS"
17237 LIBS="$save_LIBS"
17238 ;;
17239 esac
17240
17241 case $lt_cv_dlopen_self in
17242 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17243 *) enable_dlopen_self=unknown ;;
17244 esac
17245
17246 case $lt_cv_dlopen_self_static in
17247 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17248 *) enable_dlopen_self_static=unknown ;;
17249 esac
17250fi
17251
17252
17253# The else clause should only fire when bootstrapping the
17254# libtool distribution, otherwise you forgot to ship ltmain.sh
17255# with your package, and you will get complaints that there are
17256# no rules to generate ltmain.sh.
17257if test -f "$ltmain"; then
17258 # See if we are running on zsh, and set the options which allow our commands through
17259 # without removal of \ escapes.
17260 if test -n "${ZSH_VERSION+set}" ; then
17261 setopt NO_GLOB_SUBST
17262 fi
17263 # Now quote all the things that may contain metacharacters while being
17264 # careful not to overquote the AC_SUBSTed values. We take copies of the
17265 # variables and quote the copies for generation of the libtool script.
Brian Gaeke0a621332004-09-08 20:38:05 +000017266 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
John Criswell47fdd832003-07-14 16:52:07 +000017267 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17268 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17269 deplibs_check_method reload_flag reload_cmds need_locks \
17270 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17271 lt_cv_sys_global_symbol_to_c_name_address \
17272 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17273 old_postinstall_cmds old_postuninstall_cmds \
17274 compiler_GCJ \
17275 CC_GCJ \
17276 LD_GCJ \
17277 lt_prog_compiler_wl_GCJ \
17278 lt_prog_compiler_pic_GCJ \
17279 lt_prog_compiler_static_GCJ \
17280 lt_prog_compiler_no_builtin_flag_GCJ \
17281 export_dynamic_flag_spec_GCJ \
17282 thread_safe_flag_spec_GCJ \
17283 whole_archive_flag_spec_GCJ \
17284 enable_shared_with_static_runtimes_GCJ \
17285 old_archive_cmds_GCJ \
17286 old_archive_from_new_cmds_GCJ \
17287 predep_objects_GCJ \
17288 postdep_objects_GCJ \
17289 predeps_GCJ \
17290 postdeps_GCJ \
17291 compiler_lib_search_path_GCJ \
17292 archive_cmds_GCJ \
17293 archive_expsym_cmds_GCJ \
17294 postinstall_cmds_GCJ \
17295 postuninstall_cmds_GCJ \
17296 old_archive_from_expsyms_cmds_GCJ \
17297 allow_undefined_flag_GCJ \
17298 no_undefined_flag_GCJ \
17299 export_symbols_cmds_GCJ \
17300 hardcode_libdir_flag_spec_GCJ \
17301 hardcode_libdir_flag_spec_ld_GCJ \
17302 hardcode_libdir_separator_GCJ \
17303 hardcode_automatic_GCJ \
17304 module_cmds_GCJ \
17305 module_expsym_cmds_GCJ \
17306 lt_cv_prog_compiler_c_o_GCJ \
17307 exclude_expsyms_GCJ \
17308 include_expsyms_GCJ; do
17309
17310 case $var in
17311 old_archive_cmds_GCJ | \
17312 old_archive_from_new_cmds_GCJ | \
17313 archive_cmds_GCJ | \
17314 archive_expsym_cmds_GCJ | \
17315 module_cmds_GCJ | \
17316 module_expsym_cmds_GCJ | \
17317 old_archive_from_expsyms_cmds_GCJ | \
17318 export_symbols_cmds_GCJ | \
17319 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17320 postinstall_cmds | postuninstall_cmds | \
17321 old_postinstall_cmds | old_postuninstall_cmds | \
17322 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17323 # Double-quote double-evaled strings.
Brian Gaeke0a621332004-09-08 20:38:05 +000017324 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000017325 ;;
17326 *)
17327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17328 ;;
17329 esac
17330 done
17331
17332 case $lt_echo in
17333 *'\$0 --fallback-echo"')
17334 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17335 ;;
17336 esac
17337
17338cfgfile="$ofile"
17339
17340 cat <<__EOF__ >> "$cfgfile"
17341# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17342
17343# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17344
Brian Gaeke0a621332004-09-08 20:38:05 +000017345# Set the command separator (default: ~)
17346_S_=\${LIBTOOL_CMD_SEP-\~}
17347
John Criswell47fdd832003-07-14 16:52:07 +000017348# Shell to use when invoking shell scripts.
17349SHELL=$lt_SHELL
17350
17351# Whether or not to build shared libraries.
17352build_libtool_libs=$enable_shared
17353
17354# Whether or not to build static libraries.
17355build_old_libs=$enable_static
17356
17357# Whether or not to add -lc for building shared libraries.
17358build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17359
17360# Whether or not to disallow shared libs when runtime libs are static
17361allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17362
17363# Whether or not to optimize for fast installation.
17364fast_install=$enable_fast_install
17365
17366# The host system.
17367host_alias=$host_alias
17368host=$host
17369
17370# An echo program that does not interpret backslashes.
17371echo=$lt_echo
17372
17373# The archiver.
17374AR=$lt_AR
17375AR_FLAGS=$lt_AR_FLAGS
17376
17377# A C compiler.
17378LTCC=$lt_LTCC
17379
17380# A language-specific compiler.
17381CC=$lt_compiler_GCJ
17382
17383# Is the compiler the GNU C compiler?
17384with_gcc=$GCC_GCJ
17385
17386# An ERE matcher.
17387EGREP=$lt_EGREP
17388
17389# The linker used to build libraries.
17390LD=$lt_LD_GCJ
17391
17392# Whether we need hard or soft links.
17393LN_S=$lt_LN_S
17394
17395# A BSD-compatible nm program.
17396NM=$lt_NM
17397
17398# A symbol stripping program
Brian Gaeke0a621332004-09-08 20:38:05 +000017399STRIP=$STRIP
John Criswell47fdd832003-07-14 16:52:07 +000017400
17401# Used to examine libraries when file_magic_cmd begins "file"
17402MAGIC_CMD=$MAGIC_CMD
17403
17404# Used on cygwin: DLL creation program.
17405DLLTOOL="$DLLTOOL"
17406
17407# Used on cygwin: object dumper.
17408OBJDUMP="$OBJDUMP"
17409
17410# Used on cygwin: assembler.
17411AS="$AS"
17412
17413# The name of the directory that contains temporary libtool files.
17414objdir=$objdir
17415
17416# How to create reloadable object files.
17417reload_flag=$lt_reload_flag
17418reload_cmds=$lt_reload_cmds
17419
17420# How to pass a linker flag through the compiler.
17421wl=$lt_lt_prog_compiler_wl_GCJ
17422
17423# Object file suffix (normally "o").
17424objext="$ac_objext"
17425
17426# Old archive suffix (normally "a").
17427libext="$libext"
17428
17429# Shared library suffix (normally ".so").
17430shrext='$shrext'
17431
17432# Executable file suffix (normally "").
17433exeext="$exeext"
17434
17435# Additional compiler flags for building library objects.
17436pic_flag=$lt_lt_prog_compiler_pic_GCJ
17437pic_mode=$pic_mode
17438
17439# What is the maximum length of a command?
17440max_cmd_len=$lt_cv_sys_max_cmd_len
17441
17442# Does compiler simultaneously support -c and -o options?
17443compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17444
17445# Must we lock files when doing compilation ?
17446need_locks=$lt_need_locks
17447
17448# Do we need the lib prefix for modules?
17449need_lib_prefix=$need_lib_prefix
17450
17451# Do we need a version for libraries?
17452need_version=$need_version
17453
17454# Whether dlopen is supported.
17455dlopen_support=$enable_dlopen
17456
17457# Whether dlopen of programs is supported.
17458dlopen_self=$enable_dlopen_self
17459
17460# Whether dlopen of statically linked programs is supported.
17461dlopen_self_static=$enable_dlopen_self_static
17462
17463# Compiler flag to prevent dynamic linking.
17464link_static_flag=$lt_lt_prog_compiler_static_GCJ
17465
17466# Compiler flag to turn off builtin functions.
17467no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17468
17469# Compiler flag to allow reflexive dlopens.
17470export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17471
17472# Compiler flag to generate shared objects directly from archives.
17473whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17474
17475# Compiler flag to generate thread-safe objects.
17476thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17477
17478# Library versioning type.
17479version_type=$version_type
17480
17481# Format of library name prefix.
17482libname_spec=$lt_libname_spec
17483
17484# List of archive names. First name is the real one, the rest are links.
17485# The last name is the one that the linker finds with -lNAME.
17486library_names_spec=$lt_library_names_spec
17487
17488# The coded name of the library, if different from the real name.
17489soname_spec=$lt_soname_spec
17490
17491# Commands used to build and install an old-style archive.
17492RANLIB=$lt_RANLIB
17493old_archive_cmds=$lt_old_archive_cmds_GCJ
17494old_postinstall_cmds=$lt_old_postinstall_cmds
17495old_postuninstall_cmds=$lt_old_postuninstall_cmds
17496
17497# Create an old-style archive from a shared archive.
17498old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17499
17500# Create a temporary old-style archive to link instead of a shared archive.
17501old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17502
17503# Commands used to build and install a shared archive.
17504archive_cmds=$lt_archive_cmds_GCJ
17505archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17506postinstall_cmds=$lt_postinstall_cmds
17507postuninstall_cmds=$lt_postuninstall_cmds
17508
17509# Commands used to build a loadable module (assumed same as above if empty)
17510module_cmds=$lt_module_cmds_GCJ
17511module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17512
17513# Commands to strip libraries.
17514old_striplib=$lt_old_striplib
17515striplib=$lt_striplib
17516
17517# Dependencies to place before the objects being linked to create a
17518# shared library.
17519predep_objects=$lt_predep_objects_GCJ
17520
17521# Dependencies to place after the objects being linked to create a
17522# shared library.
17523postdep_objects=$lt_postdep_objects_GCJ
17524
17525# Dependencies to place before the objects being linked to create a
17526# shared library.
17527predeps=$lt_predeps_GCJ
17528
17529# Dependencies to place after the objects being linked to create a
17530# shared library.
17531postdeps=$lt_postdeps_GCJ
17532
17533# The library search path used internally by the compiler when linking
17534# a shared library.
17535compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17536
17537# Method to check whether dependent libraries are shared objects.
17538deplibs_check_method=$lt_deplibs_check_method
17539
17540# Command to use when deplibs_check_method == file_magic.
17541file_magic_cmd=$lt_file_magic_cmd
17542
17543# Flag that allows shared libraries with undefined symbols to be built.
17544allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17545
17546# Flag that forces no undefined symbols.
17547no_undefined_flag=$lt_no_undefined_flag_GCJ
17548
17549# Commands used to finish a libtool library installation in a directory.
17550finish_cmds=$lt_finish_cmds
17551
17552# Same as above, but a single script fragment to be evaled but not shown.
17553finish_eval=$lt_finish_eval
17554
17555# Take the output of nm and produce a listing of raw symbols and C names.
17556global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17557
17558# Transform the output of nm in a proper C declaration
17559global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17560
17561# Transform the output of nm in a C name address pair
17562global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17563
17564# This is the shared library runtime path variable.
17565runpath_var=$runpath_var
17566
17567# This is the shared library path variable.
17568shlibpath_var=$shlibpath_var
17569
17570# Is shlibpath searched before the hard-coded library search path?
17571shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17572
17573# How to hardcode a shared library path into an executable.
17574hardcode_action=$hardcode_action_GCJ
17575
17576# Whether we should hardcode library paths into libraries.
17577hardcode_into_libs=$hardcode_into_libs
17578
17579# Flag to hardcode \$libdir into a binary during linking.
17580# This must work even if \$libdir does not exist.
17581hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17582
17583# If ld is used when linking, flag to hardcode \$libdir into
17584# a binary during linking. This must work even if \$libdir does
17585# not exist.
17586hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17587
17588# Whether we need a single -rpath flag with a separated argument.
17589hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17590
17591# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17592# resulting binary.
17593hardcode_direct=$hardcode_direct_GCJ
17594
17595# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17596# resulting binary.
17597hardcode_minus_L=$hardcode_minus_L_GCJ
17598
17599# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17600# the resulting binary.
17601hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17602
17603# Set to yes if building a shared library automatically hardcodes DIR into the library
17604# and all subsequent libraries and executables linked against it.
17605hardcode_automatic=$hardcode_automatic_GCJ
17606
17607# Variables whose values should be saved in libtool wrapper scripts and
17608# restored at relink time.
17609variables_saved_for_relink="$variables_saved_for_relink"
17610
17611# Whether libtool must link a program against all its dependency libraries.
17612link_all_deplibs=$link_all_deplibs_GCJ
17613
17614# Compile-time system search path for libraries
17615sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17616
17617# Run-time system search path for libraries
17618sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17619
17620# Fix the shell variable \$srcfile for the compiler.
17621fix_srcfile_path="$fix_srcfile_path_GCJ"
17622
17623# Set to yes if exported symbols are required.
17624always_export_symbols=$always_export_symbols_GCJ
17625
17626# The commands to list exported symbols.
17627export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17628
17629# The commands to extract the exported symbol list from a shared archive.
17630extract_expsyms_cmds=$lt_extract_expsyms_cmds
17631
17632# Symbols that should not be listed in the preloaded symbols.
17633exclude_expsyms=$lt_exclude_expsyms_GCJ
17634
17635# Symbols that must always be exported.
17636include_expsyms=$lt_include_expsyms_GCJ
17637
17638# ### END LIBTOOL TAG CONFIG: $tagname
17639
17640__EOF__
17641
17642
17643else
17644 # If there is no Makefile yet, we rely on a make rule to execute
17645 # `config.status --recheck' to rerun these tests and create the
17646 # libtool script then.
17647 test -f Makefile && make "$ltmain"
17648fi
17649
17650
17651ac_ext=c
17652ac_cpp='$CPP $CPPFLAGS'
17653ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17654ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17655ac_compiler_gnu=$ac_cv_c_compiler_gnu
17656
17657CC="$lt_save_CC"
17658
17659 else
17660 tagname=""
17661 fi
17662 ;;
17663
17664 RC)
17665
17666
17667
17668# Source file extension for RC test sources.
17669ac_ext=rc
17670
17671# Object file extension for compiled RC test sources.
17672objext=o
17673objext_RC=$objext
17674
17675# Code to be used in simple compile tests
17676lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17677
17678# Code to be used in simple link tests
17679lt_simple_link_test_code="$lt_simple_compile_test_code"
17680
17681# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17682
17683# If no C compiler was specified, use CC.
17684LTCC=${LTCC-"$CC"}
17685
17686# Allow CC to be a program name with arguments.
17687compiler=$CC
17688
17689
17690# Allow CC to be a program name with arguments.
17691lt_save_CC="$CC"
17692CC=${RC-"windres"}
17693compiler=$CC
17694compiler_RC=$CC
17695lt_cv_prog_compiler_c_o_RC=yes
17696
17697# The else clause should only fire when bootstrapping the
17698# libtool distribution, otherwise you forgot to ship ltmain.sh
17699# with your package, and you will get complaints that there are
17700# no rules to generate ltmain.sh.
17701if test -f "$ltmain"; then
17702 # See if we are running on zsh, and set the options which allow our commands through
17703 # without removal of \ escapes.
17704 if test -n "${ZSH_VERSION+set}" ; then
17705 setopt NO_GLOB_SUBST
17706 fi
17707 # Now quote all the things that may contain metacharacters while being
17708 # careful not to overquote the AC_SUBSTed values. We take copies of the
17709 # variables and quote the copies for generation of the libtool script.
Brian Gaeke0a621332004-09-08 20:38:05 +000017710 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
John Criswell47fdd832003-07-14 16:52:07 +000017711 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17712 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17713 deplibs_check_method reload_flag reload_cmds need_locks \
17714 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17715 lt_cv_sys_global_symbol_to_c_name_address \
17716 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17717 old_postinstall_cmds old_postuninstall_cmds \
17718 compiler_RC \
17719 CC_RC \
17720 LD_RC \
17721 lt_prog_compiler_wl_RC \
17722 lt_prog_compiler_pic_RC \
17723 lt_prog_compiler_static_RC \
17724 lt_prog_compiler_no_builtin_flag_RC \
17725 export_dynamic_flag_spec_RC \
17726 thread_safe_flag_spec_RC \
17727 whole_archive_flag_spec_RC \
17728 enable_shared_with_static_runtimes_RC \
17729 old_archive_cmds_RC \
17730 old_archive_from_new_cmds_RC \
17731 predep_objects_RC \
17732 postdep_objects_RC \
17733 predeps_RC \
17734 postdeps_RC \
17735 compiler_lib_search_path_RC \
17736 archive_cmds_RC \
17737 archive_expsym_cmds_RC \
17738 postinstall_cmds_RC \
17739 postuninstall_cmds_RC \
17740 old_archive_from_expsyms_cmds_RC \
17741 allow_undefined_flag_RC \
17742 no_undefined_flag_RC \
17743 export_symbols_cmds_RC \
17744 hardcode_libdir_flag_spec_RC \
17745 hardcode_libdir_flag_spec_ld_RC \
17746 hardcode_libdir_separator_RC \
17747 hardcode_automatic_RC \
17748 module_cmds_RC \
17749 module_expsym_cmds_RC \
17750 lt_cv_prog_compiler_c_o_RC \
17751 exclude_expsyms_RC \
17752 include_expsyms_RC; do
17753
17754 case $var in
17755 old_archive_cmds_RC | \
17756 old_archive_from_new_cmds_RC | \
17757 archive_cmds_RC | \
17758 archive_expsym_cmds_RC | \
17759 module_cmds_RC | \
17760 module_expsym_cmds_RC | \
17761 old_archive_from_expsyms_cmds_RC | \
17762 export_symbols_cmds_RC | \
17763 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17764 postinstall_cmds | postuninstall_cmds | \
17765 old_postinstall_cmds | old_postuninstall_cmds | \
17766 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17767 # Double-quote double-evaled strings.
Brian Gaeke0a621332004-09-08 20:38:05 +000017768 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\" -e \"\$unescape_variable_subst\"\`\\\""
John Criswell47fdd832003-07-14 16:52:07 +000017769 ;;
17770 *)
17771 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17772 ;;
17773 esac
17774 done
17775
17776 case $lt_echo in
17777 *'\$0 --fallback-echo"')
17778 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17779 ;;
17780 esac
17781
17782cfgfile="$ofile"
17783
17784 cat <<__EOF__ >> "$cfgfile"
17785# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17786
17787# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17788
Brian Gaeke0a621332004-09-08 20:38:05 +000017789# Set the command separator (default: ~)
17790_S_=\${LIBTOOL_CMD_SEP-\~}
17791
John Criswell47fdd832003-07-14 16:52:07 +000017792# Shell to use when invoking shell scripts.
17793SHELL=$lt_SHELL
17794
17795# Whether or not to build shared libraries.
17796build_libtool_libs=$enable_shared
17797
17798# Whether or not to build static libraries.
17799build_old_libs=$enable_static
17800
17801# Whether or not to add -lc for building shared libraries.
17802build_libtool_need_lc=$archive_cmds_need_lc_RC
17803
17804# Whether or not to disallow shared libs when runtime libs are static
17805allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17806
17807# Whether or not to optimize for fast installation.
17808fast_install=$enable_fast_install
17809
17810# The host system.
17811host_alias=$host_alias
17812host=$host
17813
17814# An echo program that does not interpret backslashes.
17815echo=$lt_echo
17816
17817# The archiver.
17818AR=$lt_AR
17819AR_FLAGS=$lt_AR_FLAGS
17820
17821# A C compiler.
17822LTCC=$lt_LTCC
17823
17824# A language-specific compiler.
17825CC=$lt_compiler_RC
17826
17827# Is the compiler the GNU C compiler?
17828with_gcc=$GCC_RC
17829
17830# An ERE matcher.
17831EGREP=$lt_EGREP
17832
17833# The linker used to build libraries.
17834LD=$lt_LD_RC
17835
17836# Whether we need hard or soft links.
17837LN_S=$lt_LN_S
17838
17839# A BSD-compatible nm program.
17840NM=$lt_NM
17841
17842# A symbol stripping program
Brian Gaeke0a621332004-09-08 20:38:05 +000017843STRIP=$STRIP
John Criswell47fdd832003-07-14 16:52:07 +000017844
17845# Used to examine libraries when file_magic_cmd begins "file"
17846MAGIC_CMD=$MAGIC_CMD
17847
17848# Used on cygwin: DLL creation program.
17849DLLTOOL="$DLLTOOL"
17850
17851# Used on cygwin: object dumper.
17852OBJDUMP="$OBJDUMP"
17853
17854# Used on cygwin: assembler.
17855AS="$AS"
17856
17857# The name of the directory that contains temporary libtool files.
17858objdir=$objdir
17859
17860# How to create reloadable object files.
17861reload_flag=$lt_reload_flag
17862reload_cmds=$lt_reload_cmds
17863
17864# How to pass a linker flag through the compiler.
17865wl=$lt_lt_prog_compiler_wl_RC
17866
17867# Object file suffix (normally "o").
17868objext="$ac_objext"
17869
17870# Old archive suffix (normally "a").
17871libext="$libext"
17872
17873# Shared library suffix (normally ".so").
17874shrext='$shrext'
17875
17876# Executable file suffix (normally "").
17877exeext="$exeext"
17878
17879# Additional compiler flags for building library objects.
17880pic_flag=$lt_lt_prog_compiler_pic_RC
17881pic_mode=$pic_mode
17882
17883# What is the maximum length of a command?
17884max_cmd_len=$lt_cv_sys_max_cmd_len
17885
17886# Does compiler simultaneously support -c and -o options?
17887compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17888
17889# Must we lock files when doing compilation ?
17890need_locks=$lt_need_locks
17891
17892# Do we need the lib prefix for modules?
17893need_lib_prefix=$need_lib_prefix
17894
17895# Do we need a version for libraries?
17896need_version=$need_version
17897
17898# Whether dlopen is supported.
17899dlopen_support=$enable_dlopen
17900
17901# Whether dlopen of programs is supported.
17902dlopen_self=$enable_dlopen_self
17903
17904# Whether dlopen of statically linked programs is supported.
17905dlopen_self_static=$enable_dlopen_self_static
17906
17907# Compiler flag to prevent dynamic linking.
17908link_static_flag=$lt_lt_prog_compiler_static_RC
17909
17910# Compiler flag to turn off builtin functions.
17911no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17912
17913# Compiler flag to allow reflexive dlopens.
17914export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17915
17916# Compiler flag to generate shared objects directly from archives.
17917whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17918
17919# Compiler flag to generate thread-safe objects.
17920thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
17921
17922# Library versioning type.
17923version_type=$version_type
17924
17925# Format of library name prefix.
17926libname_spec=$lt_libname_spec
17927
17928# List of archive names. First name is the real one, the rest are links.
17929# The last name is the one that the linker finds with -lNAME.
17930library_names_spec=$lt_library_names_spec
17931
17932# The coded name of the library, if different from the real name.
17933soname_spec=$lt_soname_spec
17934
17935# Commands used to build and install an old-style archive.
17936RANLIB=$lt_RANLIB
17937old_archive_cmds=$lt_old_archive_cmds_RC
17938old_postinstall_cmds=$lt_old_postinstall_cmds
17939old_postuninstall_cmds=$lt_old_postuninstall_cmds
17940
17941# Create an old-style archive from a shared archive.
17942old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
17943
17944# Create a temporary old-style archive to link instead of a shared archive.
17945old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
17946
17947# Commands used to build and install a shared archive.
17948archive_cmds=$lt_archive_cmds_RC
17949archive_expsym_cmds=$lt_archive_expsym_cmds_RC
17950postinstall_cmds=$lt_postinstall_cmds
17951postuninstall_cmds=$lt_postuninstall_cmds
17952
17953# Commands used to build a loadable module (assumed same as above if empty)
17954module_cmds=$lt_module_cmds_RC
17955module_expsym_cmds=$lt_module_expsym_cmds_RC
17956
17957# Commands to strip libraries.
17958old_striplib=$lt_old_striplib
17959striplib=$lt_striplib
17960
17961# Dependencies to place before the objects being linked to create a
17962# shared library.
17963predep_objects=$lt_predep_objects_RC
17964
17965# Dependencies to place after the objects being linked to create a
17966# shared library.
17967postdep_objects=$lt_postdep_objects_RC
17968
17969# Dependencies to place before the objects being linked to create a
17970# shared library.
17971predeps=$lt_predeps_RC
17972
17973# Dependencies to place after the objects being linked to create a
17974# shared library.
17975postdeps=$lt_postdeps_RC
17976
17977# The library search path used internally by the compiler when linking
17978# a shared library.
17979compiler_lib_search_path=$lt_compiler_lib_search_path_RC
17980
17981# Method to check whether dependent libraries are shared objects.
17982deplibs_check_method=$lt_deplibs_check_method
17983
17984# Command to use when deplibs_check_method == file_magic.
17985file_magic_cmd=$lt_file_magic_cmd
17986
17987# Flag that allows shared libraries with undefined symbols to be built.
17988allow_undefined_flag=$lt_allow_undefined_flag_RC
17989
17990# Flag that forces no undefined symbols.
17991no_undefined_flag=$lt_no_undefined_flag_RC
17992
17993# Commands used to finish a libtool library installation in a directory.
17994finish_cmds=$lt_finish_cmds
17995
17996# Same as above, but a single script fragment to be evaled but not shown.
17997finish_eval=$lt_finish_eval
17998
17999# Take the output of nm and produce a listing of raw symbols and C names.
18000global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18001
18002# Transform the output of nm in a proper C declaration
18003global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18004
18005# Transform the output of nm in a C name address pair
18006global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18007
18008# This is the shared library runtime path variable.
18009runpath_var=$runpath_var
18010
18011# This is the shared library path variable.
18012shlibpath_var=$shlibpath_var
18013
18014# Is shlibpath searched before the hard-coded library search path?
18015shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18016
18017# How to hardcode a shared library path into an executable.
18018hardcode_action=$hardcode_action_RC
18019
18020# Whether we should hardcode library paths into libraries.
18021hardcode_into_libs=$hardcode_into_libs
18022
18023# Flag to hardcode \$libdir into a binary during linking.
18024# This must work even if \$libdir does not exist.
18025hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18026
18027# If ld is used when linking, flag to hardcode \$libdir into
18028# a binary during linking. This must work even if \$libdir does
18029# not exist.
18030hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18031
18032# Whether we need a single -rpath flag with a separated argument.
18033hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18034
18035# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18036# resulting binary.
18037hardcode_direct=$hardcode_direct_RC
18038
18039# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18040# resulting binary.
18041hardcode_minus_L=$hardcode_minus_L_RC
18042
18043# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18044# the resulting binary.
18045hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18046
18047# Set to yes if building a shared library automatically hardcodes DIR into the library
18048# and all subsequent libraries and executables linked against it.
18049hardcode_automatic=$hardcode_automatic_RC
18050
18051# Variables whose values should be saved in libtool wrapper scripts and
18052# restored at relink time.
18053variables_saved_for_relink="$variables_saved_for_relink"
18054
18055# Whether libtool must link a program against all its dependency libraries.
18056link_all_deplibs=$link_all_deplibs_RC
18057
18058# Compile-time system search path for libraries
18059sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18060
18061# Run-time system search path for libraries
18062sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18063
18064# Fix the shell variable \$srcfile for the compiler.
18065fix_srcfile_path="$fix_srcfile_path_RC"
18066
18067# Set to yes if exported symbols are required.
18068always_export_symbols=$always_export_symbols_RC
18069
18070# The commands to list exported symbols.
18071export_symbols_cmds=$lt_export_symbols_cmds_RC
18072
18073# The commands to extract the exported symbol list from a shared archive.
18074extract_expsyms_cmds=$lt_extract_expsyms_cmds
18075
18076# Symbols that should not be listed in the preloaded symbols.
18077exclude_expsyms=$lt_exclude_expsyms_RC
18078
18079# Symbols that must always be exported.
18080include_expsyms=$lt_include_expsyms_RC
18081
18082# ### END LIBTOOL TAG CONFIG: $tagname
18083
18084__EOF__
18085
18086
18087else
18088 # If there is no Makefile yet, we rely on a make rule to execute
18089 # `config.status --recheck' to rerun these tests and create the
18090 # libtool script then.
18091 test -f Makefile && make "$ltmain"
18092fi
18093
18094
18095ac_ext=c
18096ac_cpp='$CPP $CPPFLAGS'
18097ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18098ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18099ac_compiler_gnu=$ac_cv_c_compiler_gnu
18100
18101CC="$lt_save_CC"
18102
18103 ;;
18104
18105 *)
18106 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18107echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18108 { (exit 1); exit 1; }; }
18109 ;;
18110 esac
18111
18112 # Append the new tag name to the list of available tags.
18113 if test -n "$tagname" ; then
18114 available_tags="$available_tags $tagname"
18115 fi
18116 fi
18117 done
18118 IFS="$lt_save_ifs"
18119
18120 # Now substitute the updated list of available tags.
18121 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18122 mv "${ofile}T" "$ofile"
18123 chmod +x "$ofile"
18124 else
18125 rm -f "${ofile}T"
18126 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18127echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18128 { (exit 1); exit 1; }; }
18129 fi
18130fi
John Criswell7a73b802003-06-30 21:59:07 +000018131
18132
18133
18134# This can be used to rebuild libtool when needed
18135LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18136
18137# Always use our own libtool.
Reid Spencer9751dbf2004-09-07 18:04:45 +000018138LIBTOOL='$(SHELL) $(top_builddir)/libtool'
John Criswell7a73b802003-06-30 21:59:07 +000018139
18140# Prevent multiple expansion
18141
18142
18143
John Criswell47fdd832003-07-14 16:52:07 +000018144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
John Criswell7a73b802003-06-30 21:59:07 +000018162# Extract the first word of "dot", so it can be a program name with args.
18163set dummy dot; ac_word=$2
18164echo "$as_me:$LINENO: checking for $ac_word" >&5
18165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18166if test "${ac_cv_path_DOT+set}" = set; then
18167 echo $ECHO_N "(cached) $ECHO_C" >&6
18168else
18169 case $DOT in
18170 [\\/]* | ?:[\\/]*)
18171 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18172 ;;
18173 *)
18174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18175for as_dir in $PATH
18176do
18177 IFS=$as_save_IFS
18178 test -z "$as_dir" && as_dir=.
18179 for ac_exec_ext in '' $ac_executable_extensions; do
18180 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18181 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18183 break 2
18184 fi
18185done
18186done
18187
Brian Gaeke26be9c52004-01-13 06:43:16 +000018188 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018189 ;;
18190esac
18191fi
18192DOT=$ac_cv_path_DOT
18193
18194if test -n "$DOT"; then
18195 echo "$as_me:$LINENO: result: $DOT" >&5
18196echo "${ECHO_T}$DOT" >&6
18197else
18198 echo "$as_me:$LINENO: result: no" >&5
18199echo "${ECHO_T}no" >&6
18200fi
18201
18202# Extract the first word of "etags", so it can be a program name with args.
18203set dummy etags; ac_word=$2
18204echo "$as_me:$LINENO: checking for $ac_word" >&5
18205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18206if test "${ac_cv_path_ETAGS+set}" = set; then
18207 echo $ECHO_N "(cached) $ECHO_C" >&6
18208else
18209 case $ETAGS in
18210 [\\/]* | ?:[\\/]*)
18211 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18212 ;;
18213 *)
18214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18215for as_dir in $PATH
18216do
18217 IFS=$as_save_IFS
18218 test -z "$as_dir" && as_dir=.
18219 for ac_exec_ext in '' $ac_executable_extensions; do
18220 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18221 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18223 break 2
18224 fi
18225done
18226done
18227
Brian Gaeke26be9c52004-01-13 06:43:16 +000018228 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018229 ;;
18230esac
18231fi
18232ETAGS=$ac_cv_path_ETAGS
18233
18234if test -n "$ETAGS"; then
18235 echo "$as_me:$LINENO: result: $ETAGS" >&5
18236echo "${ECHO_T}$ETAGS" >&6
18237else
18238 echo "$as_me:$LINENO: result: no" >&5
18239echo "${ECHO_T}no" >&6
18240fi
18241
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018242etags_version=`$ETAGS --version 2>&1`
18243case "$etags_version" in
18244 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18245 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18246 *) ETAGSFLAGS="" ;;
18247esac
18248ETAGSFLAGS=$ETAGSFLAGS
18249
John Criswellde00db22003-08-25 16:49:54 +000018250# Extract the first word of "python", so it can be a program name with args.
18251set dummy python; ac_word=$2
18252echo "$as_me:$LINENO: checking for $ac_word" >&5
18253echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18254if test "${ac_cv_path_PYTHON+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
18256else
18257 case $PYTHON in
18258 [\\/]* | ?:[\\/]*)
18259 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18260 ;;
18261 *)
18262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18263for as_dir in $PATH
18264do
18265 IFS=$as_save_IFS
18266 test -z "$as_dir" && as_dir=.
18267 for ac_exec_ext in '' $ac_executable_extensions; do
18268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18269 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18271 break 2
18272 fi
18273done
18274done
18275
Brian Gaeke26be9c52004-01-13 06:43:16 +000018276 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018277 ;;
18278esac
18279fi
18280PYTHON=$ac_cv_path_PYTHON
18281
18282if test -n "$PYTHON"; then
18283 echo "$as_me:$LINENO: result: $PYTHON" >&5
18284echo "${ECHO_T}$PYTHON" >&6
18285else
18286 echo "$as_me:$LINENO: result: no" >&5
18287echo "${ECHO_T}no" >&6
18288fi
18289
Brian Gaeke26be9c52004-01-13 06:43:16 +000018290if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018291then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018292 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18293echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018294fi
John Criswellde00db22003-08-25 16:49:54 +000018295# Extract the first word of "qmtest", so it can be a program name with args.
18296set dummy qmtest; ac_word=$2
18297echo "$as_me:$LINENO: checking for $ac_word" >&5
18298echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18299if test "${ac_cv_path_QMTEST+set}" = set; then
18300 echo $ECHO_N "(cached) $ECHO_C" >&6
18301else
18302 case $QMTEST in
18303 [\\/]* | ?:[\\/]*)
18304 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18305 ;;
18306 *)
18307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18308for as_dir in $PATH
18309do
18310 IFS=$as_save_IFS
18311 test -z "$as_dir" && as_dir=.
18312 for ac_exec_ext in '' $ac_executable_extensions; do
18313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18314 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18316 break 2
18317 fi
18318done
18319done
18320
Brian Gaeke26be9c52004-01-13 06:43:16 +000018321 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018322 ;;
18323esac
18324fi
18325QMTEST=$ac_cv_path_QMTEST
18326
18327if test -n "$QMTEST"; then
18328 echo "$as_me:$LINENO: result: $QMTEST" >&5
18329echo "${ECHO_T}$QMTEST" >&6
18330else
18331 echo "$as_me:$LINENO: result: no" >&5
18332echo "${ECHO_T}no" >&6
18333fi
18334
Brian Gaeke26be9c52004-01-13 06:43:16 +000018335if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018336then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018337 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18338echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018339fi
John Criswellde00db22003-08-25 16:49:54 +000018340
18341pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18342pymajor=`echo $pyversion | cut -d. -f1`
18343pyminor=`echo $pyversion | cut -d. -f2`
18344
18345if test "$pymajor" -ge "2"
18346then
18347 if test "$pymajor" -eq "2"
18348 then
18349 if test "$pyminor" -lt "2"
18350 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018351 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18352echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018353 fi
18354 fi
18355else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018356 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18357echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018358fi
John Criswell7a73b802003-06-30 21:59:07 +000018359
18360
18361
18362
John Criswell7a73b802003-06-30 21:59:07 +000018363echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18364echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18365if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18366 echo $ECHO_N "(cached) $ECHO_C" >&6
18367else
18368 ac_check_lib_save_LIBS=$LIBS
18369LIBS="-lelf $LIBS"
18370cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000018371#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018372/* confdefs.h. */
18373_ACEOF
18374cat confdefs.h >>conftest.$ac_ext
18375cat >>conftest.$ac_ext <<_ACEOF
18376/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018377
18378/* Override any gcc2 internal prototype to avoid an error. */
18379#ifdef __cplusplus
18380extern "C"
18381#endif
18382/* We use char because int might match the return type of a gcc2
18383 builtin and then its argument prototype would still apply. */
18384char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018385int
18386main ()
18387{
18388elf_begin ();
18389 ;
18390 return 0;
18391}
18392_ACEOF
18393rm -f conftest.$ac_objext conftest$ac_exeext
18394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000018395 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018396 ac_status=$?
18397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000018399 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18401 (eval $ac_try) 2>&5
18402 ac_status=$?
18403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18404 (exit $ac_status); }; }; then
18405 ac_cv_lib_elf_elf_begin=yes
18406else
18407 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018408sed 's/^/| /' conftest.$ac_ext >&5
18409
John Criswell7a73b802003-06-30 21:59:07 +000018410ac_cv_lib_elf_elf_begin=no
18411fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018412rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018413LIBS=$ac_check_lib_save_LIBS
18414fi
18415echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18416echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18417if test $ac_cv_lib_elf_elf_begin = yes; then
18418 cat >>confdefs.h <<_ACEOF
18419#define HAVE_LIBELF 1
18420_ACEOF
18421
18422 LIBS="-lelf $LIBS"
18423
18424fi
18425
18426
18427echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18428echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18429if test "${ac_cv_search_dlopen+set}" = set; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18431else
18432 ac_func_search_save_LIBS=$LIBS
18433ac_cv_search_dlopen=no
18434cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000018435#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018436/* confdefs.h. */
18437_ACEOF
18438cat confdefs.h >>conftest.$ac_ext
18439cat >>conftest.$ac_ext <<_ACEOF
18440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018441
18442/* Override any gcc2 internal prototype to avoid an error. */
18443#ifdef __cplusplus
18444extern "C"
18445#endif
18446/* We use char because int might match the return type of a gcc2
18447 builtin and then its argument prototype would still apply. */
18448char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018449int
18450main ()
18451{
18452dlopen ();
18453 ;
18454 return 0;
18455}
18456_ACEOF
18457rm -f conftest.$ac_objext conftest$ac_exeext
18458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000018459 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018460 ac_status=$?
18461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000018463 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18465 (eval $ac_try) 2>&5
18466 ac_status=$?
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 ac_cv_search_dlopen="none required"
18470else
18471 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018472sed 's/^/| /' conftest.$ac_ext >&5
18473
John Criswell7a73b802003-06-30 21:59:07 +000018474fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018475rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018476if test "$ac_cv_search_dlopen" = no; then
18477 for ac_lib in dl; do
18478 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18479 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000018480#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018481/* confdefs.h. */
18482_ACEOF
18483cat confdefs.h >>conftest.$ac_ext
18484cat >>conftest.$ac_ext <<_ACEOF
18485/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018486
18487/* Override any gcc2 internal prototype to avoid an error. */
18488#ifdef __cplusplus
18489extern "C"
18490#endif
18491/* We use char because int might match the return type of a gcc2
18492 builtin and then its argument prototype would still apply. */
18493char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018494int
18495main ()
18496{
18497dlopen ();
18498 ;
18499 return 0;
18500}
18501_ACEOF
18502rm -f conftest.$ac_objext conftest$ac_exeext
18503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000018504 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018505 ac_status=$?
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000018508 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18510 (eval $ac_try) 2>&5
18511 ac_status=$?
18512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18513 (exit $ac_status); }; }; then
18514 ac_cv_search_dlopen="-l$ac_lib"
18515break
18516else
18517 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018518sed 's/^/| /' conftest.$ac_ext >&5
18519
John Criswell7a73b802003-06-30 21:59:07 +000018520fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018521rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018522 done
18523fi
18524LIBS=$ac_func_search_save_LIBS
18525fi
18526echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18527echo "${ECHO_T}$ac_cv_search_dlopen" >&6
18528if test "$ac_cv_search_dlopen" != no; then
18529 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018530
18531cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000018532#define HAVE_DLOPEN 1
18533_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018534
18535else
Brian Gaekec45be042003-10-07 06:01:34 +000018536 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
18537echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000018538fi
18539
18540
18541echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
18542echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
18543if test "${ac_cv_search_mallinfo+set}" = set; then
18544 echo $ECHO_N "(cached) $ECHO_C" >&6
18545else
18546 ac_func_search_save_LIBS=$LIBS
18547ac_cv_search_mallinfo=no
18548cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000018549#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018550/* confdefs.h. */
18551_ACEOF
18552cat confdefs.h >>conftest.$ac_ext
18553cat >>conftest.$ac_ext <<_ACEOF
18554/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018555
18556/* Override any gcc2 internal prototype to avoid an error. */
18557#ifdef __cplusplus
18558extern "C"
18559#endif
18560/* We use char because int might match the return type of a gcc2
18561 builtin and then its argument prototype would still apply. */
18562char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018563int
18564main ()
18565{
18566mallinfo ();
18567 ;
18568 return 0;
18569}
18570_ACEOF
18571rm -f conftest.$ac_objext conftest$ac_exeext
18572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000018573 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018574 ac_status=$?
18575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000018577 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18579 (eval $ac_try) 2>&5
18580 ac_status=$?
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); }; }; then
18583 ac_cv_search_mallinfo="none required"
18584else
18585 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018586sed 's/^/| /' conftest.$ac_ext >&5
18587
John Criswell7a73b802003-06-30 21:59:07 +000018588fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018589rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018590if test "$ac_cv_search_mallinfo" = no; then
18591 for ac_lib in malloc; do
18592 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18593 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000018594#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018595/* confdefs.h. */
18596_ACEOF
18597cat confdefs.h >>conftest.$ac_ext
18598cat >>conftest.$ac_ext <<_ACEOF
18599/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018600
18601/* Override any gcc2 internal prototype to avoid an error. */
18602#ifdef __cplusplus
18603extern "C"
18604#endif
18605/* We use char because int might match the return type of a gcc2
18606 builtin and then its argument prototype would still apply. */
18607char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000018608int
18609main ()
18610{
18611mallinfo ();
18612 ;
18613 return 0;
18614}
18615_ACEOF
18616rm -f conftest.$ac_objext conftest$ac_exeext
18617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000018618 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018619 ac_status=$?
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000018622 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18624 (eval $ac_try) 2>&5
18625 ac_status=$?
18626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18627 (exit $ac_status); }; }; then
18628 ac_cv_search_mallinfo="-l$ac_lib"
18629break
18630else
18631 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018632sed 's/^/| /' conftest.$ac_ext >&5
18633
John Criswell7a73b802003-06-30 21:59:07 +000018634fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018635rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018636 done
18637fi
18638LIBS=$ac_func_search_save_LIBS
18639fi
18640echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
18641echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
18642if test "$ac_cv_search_mallinfo" != no; then
18643 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000018644
18645cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000018646#define HAVE_MALLINFO 1
18647_ACEOF
18648
18649fi
18650
18651
Brian Gaeke5f268f72003-12-05 19:29:01 +000018652echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
18653echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
18654if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18656else
18657 ac_func_search_save_LIBS=$LIBS
18658ac_cv_search_pthread_mutex_lock=no
18659cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000018660#line $LINENO "configure"
Brian Gaeke5f268f72003-12-05 19:29:01 +000018661/* confdefs.h. */
18662_ACEOF
18663cat confdefs.h >>conftest.$ac_ext
18664cat >>conftest.$ac_ext <<_ACEOF
18665/* end confdefs.h. */
18666
18667/* Override any gcc2 internal prototype to avoid an error. */
18668#ifdef __cplusplus
18669extern "C"
18670#endif
18671/* We use char because int might match the return type of a gcc2
18672 builtin and then its argument prototype would still apply. */
18673char pthread_mutex_lock ();
18674int
18675main ()
18676{
18677pthread_mutex_lock ();
18678 ;
18679 return 0;
18680}
18681_ACEOF
18682rm -f conftest.$ac_objext conftest$ac_exeext
18683if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000018684 (eval $ac_link) 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000018685 ac_status=$?
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000018688 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000018689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18690 (eval $ac_try) 2>&5
18691 ac_status=$?
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); }; }; then
18694 ac_cv_search_pthread_mutex_lock="none required"
18695else
18696 echo "$as_me: failed program was:" >&5
18697sed 's/^/| /' conftest.$ac_ext >&5
18698
18699fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018700rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000018701if test "$ac_cv_search_pthread_mutex_lock" = no; then
18702 for ac_lib in pthread; do
18703 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18704 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000018705#line $LINENO "configure"
Brian Gaeke5f268f72003-12-05 19:29:01 +000018706/* confdefs.h. */
18707_ACEOF
18708cat confdefs.h >>conftest.$ac_ext
18709cat >>conftest.$ac_ext <<_ACEOF
18710/* end confdefs.h. */
18711
18712/* Override any gcc2 internal prototype to avoid an error. */
18713#ifdef __cplusplus
18714extern "C"
18715#endif
18716/* We use char because int might match the return type of a gcc2
18717 builtin and then its argument prototype would still apply. */
18718char pthread_mutex_lock ();
18719int
18720main ()
18721{
18722pthread_mutex_lock ();
18723 ;
18724 return 0;
18725}
18726_ACEOF
18727rm -f conftest.$ac_objext conftest$ac_exeext
18728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000018729 (eval $ac_link) 2>&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000018730 ac_status=$?
18731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18732 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000018733 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000018734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18735 (eval $ac_try) 2>&5
18736 ac_status=$?
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }; }; then
18739 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
18740break
18741else
18742 echo "$as_me: failed program was:" >&5
18743sed 's/^/| /' conftest.$ac_ext >&5
18744
18745fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018746rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000018747 done
18748fi
18749LIBS=$ac_func_search_save_LIBS
18750fi
18751echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
18752echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
18753if test "$ac_cv_search_pthread_mutex_lock" != no; then
18754 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000018755 HAVE_PTHREAD_MUTEX_LOCK=1
18756else
18757 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000018758fi
18759
18760
Brian Gaekec9a410c2004-02-23 21:30:37 +000018761
John Criswell7a73b802003-06-30 21:59:07 +000018762echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18763echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18764if test "${ac_cv_header_stdc+set}" = set; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6
18766else
18767 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000018768#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018769/* confdefs.h. */
18770_ACEOF
18771cat confdefs.h >>conftest.$ac_ext
18772cat >>conftest.$ac_ext <<_ACEOF
18773/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018774#include <stdlib.h>
18775#include <stdarg.h>
18776#include <string.h>
18777#include <float.h>
18778
John Criswell0c38eaf2003-09-10 15:17:25 +000018779int
18780main ()
18781{
18782
18783 ;
18784 return 0;
18785}
John Criswell7a73b802003-06-30 21:59:07 +000018786_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018787rm -f conftest.$ac_objext
18788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000018789 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018790 ac_status=$?
John Criswell7a73b802003-06-30 21:59:07 +000018791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018792 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000018793 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000018794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18795 (eval $ac_try) 2>&5
18796 ac_status=$?
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000018799 ac_cv_header_stdc=yes
18800else
18801 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018802sed 's/^/| /' conftest.$ac_ext >&5
18803
18804ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000018805fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018806rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018807
18808if test $ac_cv_header_stdc = yes; then
18809 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18810 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000018811#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018812/* confdefs.h. */
18813_ACEOF
18814cat confdefs.h >>conftest.$ac_ext
18815cat >>conftest.$ac_ext <<_ACEOF
18816/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018817#include <string.h>
18818
18819_ACEOF
18820if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018821 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018822 :
18823else
18824 ac_cv_header_stdc=no
18825fi
18826rm -f conftest*
18827
18828fi
18829
18830if test $ac_cv_header_stdc = yes; then
18831 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18832 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000018833#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018834/* confdefs.h. */
18835_ACEOF
18836cat confdefs.h >>conftest.$ac_ext
18837cat >>conftest.$ac_ext <<_ACEOF
18838/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018839#include <stdlib.h>
18840
18841_ACEOF
18842if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000018843 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000018844 :
18845else
18846 ac_cv_header_stdc=no
18847fi
18848rm -f conftest*
18849
18850fi
18851
18852if test $ac_cv_header_stdc = yes; then
18853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18854 if test "$cross_compiling" = yes; then
18855 :
18856else
18857 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000018858#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018859/* confdefs.h. */
18860_ACEOF
18861cat confdefs.h >>conftest.$ac_ext
18862cat >>conftest.$ac_ext <<_ACEOF
18863/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018864#include <ctype.h>
18865#if ((' ' & 0x0FF) == 0x020)
18866# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18867# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18868#else
John Criswell0c38eaf2003-09-10 15:17:25 +000018869# define ISLOWER(c) \
Brian Gaeke0a621332004-09-08 20:38:05 +000018870 (('a' <= (c) && (c) <= 'i') \
18871 || ('j' <= (c) && (c) <= 'r') \
18872 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000018873# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18874#endif
18875
18876#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18877int
18878main ()
18879{
18880 int i;
18881 for (i = 0; i < 256; i++)
18882 if (XOR (islower (i), ISLOWER (i))
Brian Gaeke0a621332004-09-08 20:38:05 +000018883 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000018884 exit(2);
18885 exit (0);
18886}
18887_ACEOF
18888rm -f conftest$ac_exeext
18889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18890 (eval $ac_link) 2>&5
18891 ac_status=$?
18892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18893 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18895 (eval $ac_try) 2>&5
18896 ac_status=$?
18897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18898 (exit $ac_status); }; }; then
18899 :
18900else
18901 echo "$as_me: program exited with status $ac_status" >&5
18902echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018903sed 's/^/| /' conftest.$ac_ext >&5
18904
John Criswell7a73b802003-06-30 21:59:07 +000018905( exit $ac_status )
18906ac_cv_header_stdc=no
18907fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018908rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018909fi
18910fi
18911fi
18912echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
18913echo "${ECHO_T}$ac_cv_header_stdc" >&6
18914if test $ac_cv_header_stdc = yes; then
18915
18916cat >>confdefs.h <<\_ACEOF
18917#define STDC_HEADERS 1
18918_ACEOF
18919
18920fi
18921
18922echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
18923echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
18924if test "${ac_cv_header_sys_wait_h+set}" = set; then
18925 echo $ECHO_N "(cached) $ECHO_C" >&6
18926else
18927 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000018928#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000018929/* confdefs.h. */
18930_ACEOF
18931cat confdefs.h >>conftest.$ac_ext
18932cat >>conftest.$ac_ext <<_ACEOF
18933/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018934#include <sys/types.h>
18935#include <sys/wait.h>
18936#ifndef WEXITSTATUS
18937# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
18938#endif
18939#ifndef WIFEXITED
18940# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18941#endif
18942
John Criswell7a73b802003-06-30 21:59:07 +000018943int
18944main ()
18945{
18946 int s;
18947 wait (&s);
18948 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18949 ;
18950 return 0;
18951}
18952_ACEOF
18953rm -f conftest.$ac_objext
18954if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000018955 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000018956 ac_status=$?
18957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000018959 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000018960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18961 (eval $ac_try) 2>&5
18962 ac_status=$?
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; }; then
18965 ac_cv_header_sys_wait_h=yes
18966else
18967 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018968sed 's/^/| /' conftest.$ac_ext >&5
18969
John Criswell7a73b802003-06-30 21:59:07 +000018970ac_cv_header_sys_wait_h=no
18971fi
Brian Gaeke0a621332004-09-08 20:38:05 +000018972rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018973fi
18974echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
18975echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
18976if test $ac_cv_header_sys_wait_h = yes; then
18977
18978cat >>confdefs.h <<\_ACEOF
18979#define HAVE_SYS_WAIT_H 1
18980_ACEOF
18981
18982fi
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
Brian Gaeke26be9c52004-01-13 06:43:16 +000018993
Brian Gaekef5261472004-02-20 06:40:57 +000018994
John Criswellb2815e02004-05-27 20:40:39 +000018995
18996for 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 +000018997do
18998as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18999if eval "test \"\${$as_ac_Header+set}\" = set"; then
19000 echo "$as_me:$LINENO: checking for $ac_header" >&5
19001echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19002if eval "test \"\${$as_ac_Header+set}\" = set"; then
19003 echo $ECHO_N "(cached) $ECHO_C" >&6
19004fi
19005echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19006echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19007else
19008 # Is the header compilable?
19009echo "$as_me:$LINENO: checking $ac_header usability" >&5
19010echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19011cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019012#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019013/* confdefs.h. */
19014_ACEOF
19015cat confdefs.h >>conftest.$ac_ext
19016cat >>conftest.$ac_ext <<_ACEOF
19017/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019018$ac_includes_default
19019#include <$ac_header>
19020_ACEOF
19021rm -f conftest.$ac_objext
19022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000019023 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019024 ac_status=$?
19025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19026 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000019027 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19029 (eval $ac_try) 2>&5
19030 ac_status=$?
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; }; then
19033 ac_header_compiler=yes
19034else
19035 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019036sed 's/^/| /' conftest.$ac_ext >&5
19037
John Criswell7a73b802003-06-30 21:59:07 +000019038ac_header_compiler=no
19039fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019040rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019041echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19042echo "${ECHO_T}$ac_header_compiler" >&6
19043
19044# Is the header present?
19045echo "$as_me:$LINENO: checking $ac_header presence" >&5
19046echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19047cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019048#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019049/* confdefs.h. */
19050_ACEOF
19051cat confdefs.h >>conftest.$ac_ext
19052cat >>conftest.$ac_ext <<_ACEOF
19053/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019054#include <$ac_header>
19055_ACEOF
19056if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19057 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19058 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019059 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019060 rm -f conftest.er1
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } >/dev/null; then
19064 if test -s conftest.err; then
19065 ac_cpp_err=$ac_c_preproc_warn_flag
19066 else
19067 ac_cpp_err=
19068 fi
19069else
19070 ac_cpp_err=yes
19071fi
19072if test -z "$ac_cpp_err"; then
19073 ac_header_preproc=yes
19074else
19075 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019076sed 's/^/| /' conftest.$ac_ext >&5
19077
John Criswell7a73b802003-06-30 21:59:07 +000019078 ac_header_preproc=no
19079fi
19080rm -f conftest.err conftest.$ac_ext
19081echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19082echo "${ECHO_T}$ac_header_preproc" >&6
19083
19084# So? What about this header?
Brian Gaeke0a621332004-09-08 20:38:05 +000019085case $ac_header_compiler:$ac_header_preproc in
19086 yes:no )
John Criswell7a73b802003-06-30 21:59:07 +000019087 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19088echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19090echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19091 (
19092 cat <<\_ASBOX
Brian Gaeke0a621332004-09-08 20:38:05 +000019093## ------------------------------------ ##
19094## Report this to bug-autoconf@gnu.org. ##
19095## ------------------------------------ ##
19096_ASBOX
19097 ) |
19098 sed "s/^/$as_me: WARNING: /" >&2
19099 ;;
19100 no:yes )
19101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19102echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19104echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19106echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19107 (
19108 cat <<\_ASBOX
19109## ------------------------------------ ##
19110## Report this to bug-autoconf@gnu.org. ##
19111## ------------------------------------ ##
John Criswell0c38eaf2003-09-10 15:17:25 +000019112_ASBOX
19113 ) |
19114 sed "s/^/$as_me: WARNING: /" >&2
19115 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019116esac
19117echo "$as_me:$LINENO: checking for $ac_header" >&5
19118echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19119if eval "test \"\${$as_ac_Header+set}\" = set"; then
19120 echo $ECHO_N "(cached) $ECHO_C" >&6
19121else
Brian Gaeke0a621332004-09-08 20:38:05 +000019122 eval "$as_ac_Header=$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000019123fi
19124echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19125echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19126
19127fi
19128if test `eval echo '${'$as_ac_Header'}'` = yes; then
19129 cat >>confdefs.h <<_ACEOF
19130#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19131_ACEOF
19132
19133fi
19134
19135done
19136
19137
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019138if test "${ac_cv_header_sys_types_h+set}" = set; then
19139 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19140echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19141if test "${ac_cv_header_sys_types_h+set}" = set; then
19142 echo $ECHO_N "(cached) $ECHO_C" >&6
19143fi
19144echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19145echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19146else
19147 # Is the header compilable?
19148echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19149echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19150cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019151#line $LINENO "configure"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019152/* confdefs.h. */
19153_ACEOF
19154cat confdefs.h >>conftest.$ac_ext
19155cat >>conftest.$ac_ext <<_ACEOF
19156/* end confdefs.h. */
19157$ac_includes_default
19158#include <sys/types.h>
19159_ACEOF
19160rm -f conftest.$ac_objext
19161if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000019162 (eval $ac_compile) 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019163 ac_status=$?
19164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000019166 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19168 (eval $ac_try) 2>&5
19169 ac_status=$?
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
19172 ac_header_compiler=yes
19173else
19174 echo "$as_me: failed program was:" >&5
19175sed 's/^/| /' conftest.$ac_ext >&5
19176
19177ac_header_compiler=no
19178fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019179rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019180echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19181echo "${ECHO_T}$ac_header_compiler" >&6
19182
19183# Is the header present?
19184echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19185echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19186cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019187#line $LINENO "configure"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019188/* confdefs.h. */
19189_ACEOF
19190cat confdefs.h >>conftest.$ac_ext
19191cat >>conftest.$ac_ext <<_ACEOF
19192/* end confdefs.h. */
19193#include <sys/types.h>
19194_ACEOF
19195if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19196 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19197 ac_status=$?
19198 grep -v '^ *+' conftest.er1 >conftest.err
19199 rm -f conftest.er1
19200 cat conftest.err >&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); } >/dev/null; then
19203 if test -s conftest.err; then
19204 ac_cpp_err=$ac_c_preproc_warn_flag
19205 else
19206 ac_cpp_err=
19207 fi
19208else
19209 ac_cpp_err=yes
19210fi
19211if test -z "$ac_cpp_err"; then
19212 ac_header_preproc=yes
19213else
19214 echo "$as_me: failed program was:" >&5
19215sed 's/^/| /' conftest.$ac_ext >&5
19216
19217 ac_header_preproc=no
19218fi
19219rm -f conftest.err conftest.$ac_ext
19220echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19221echo "${ECHO_T}$ac_header_preproc" >&6
19222
19223# So? What about this header?
Brian Gaeke0a621332004-09-08 20:38:05 +000019224case $ac_header_compiler:$ac_header_preproc in
19225 yes:no )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019226 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19227echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019228 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19229echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19230 (
19231 cat <<\_ASBOX
Brian Gaeke0a621332004-09-08 20:38:05 +000019232## ------------------------------------ ##
19233## Report this to bug-autoconf@gnu.org. ##
19234## ------------------------------------ ##
19235_ASBOX
19236 ) |
19237 sed "s/^/$as_me: WARNING: /" >&2
19238 ;;
19239 no:yes )
19240 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19241echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
19242 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19243echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19244 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19245echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
19246 (
19247 cat <<\_ASBOX
19248## ------------------------------------ ##
19249## Report this to bug-autoconf@gnu.org. ##
19250## ------------------------------------ ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019251_ASBOX
19252 ) |
19253 sed "s/^/$as_me: WARNING: /" >&2
19254 ;;
19255esac
19256echo "$as_me:$LINENO: checking for sys/types.h" >&5
19257echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19258if test "${ac_cv_header_sys_types_h+set}" = set; then
19259 echo $ECHO_N "(cached) $ECHO_C" >&6
19260else
19261 ac_cv_header_sys_types_h=$ac_header_preproc
19262fi
19263echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19264echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19265
19266fi
19267if test $ac_cv_header_sys_types_h = yes; then
19268 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19269else
19270 INCLUDE_SYS_TYPES_H=''
19271fi
19272
19273
19274
19275if test "${ac_cv_header_inttypes_h+set}" = set; then
19276 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19277echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19278if test "${ac_cv_header_inttypes_h+set}" = set; then
19279 echo $ECHO_N "(cached) $ECHO_C" >&6
19280fi
19281echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19282echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19283else
19284 # Is the header compilable?
19285echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19286echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19287cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019288#line $LINENO "configure"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019289/* confdefs.h. */
19290_ACEOF
19291cat confdefs.h >>conftest.$ac_ext
19292cat >>conftest.$ac_ext <<_ACEOF
19293/* end confdefs.h. */
19294$ac_includes_default
19295#include <inttypes.h>
19296_ACEOF
19297rm -f conftest.$ac_objext
19298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000019299 (eval $ac_compile) 2>&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019300 ac_status=$?
19301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19302 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000019303 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19305 (eval $ac_try) 2>&5
19306 ac_status=$?
19307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19308 (exit $ac_status); }; }; then
19309 ac_header_compiler=yes
19310else
19311 echo "$as_me: failed program was:" >&5
19312sed 's/^/| /' conftest.$ac_ext >&5
19313
19314ac_header_compiler=no
19315fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019316rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019317echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19318echo "${ECHO_T}$ac_header_compiler" >&6
19319
19320# Is the header present?
19321echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19322echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19323cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019324#line $LINENO "configure"
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019325/* confdefs.h. */
19326_ACEOF
19327cat confdefs.h >>conftest.$ac_ext
19328cat >>conftest.$ac_ext <<_ACEOF
19329/* end confdefs.h. */
19330#include <inttypes.h>
19331_ACEOF
19332if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19333 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19334 ac_status=$?
19335 grep -v '^ *+' conftest.er1 >conftest.err
19336 rm -f conftest.er1
19337 cat conftest.err >&5
19338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19339 (exit $ac_status); } >/dev/null; then
19340 if test -s conftest.err; then
19341 ac_cpp_err=$ac_c_preproc_warn_flag
19342 else
19343 ac_cpp_err=
19344 fi
19345else
19346 ac_cpp_err=yes
19347fi
19348if test -z "$ac_cpp_err"; then
19349 ac_header_preproc=yes
19350else
19351 echo "$as_me: failed program was:" >&5
19352sed 's/^/| /' conftest.$ac_ext >&5
19353
19354 ac_header_preproc=no
19355fi
19356rm -f conftest.err conftest.$ac_ext
19357echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19358echo "${ECHO_T}$ac_header_preproc" >&6
19359
19360# So? What about this header?
Brian Gaeke0a621332004-09-08 20:38:05 +000019361case $ac_header_compiler:$ac_header_preproc in
19362 yes:no )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019363 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19364echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019365 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19366echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19367 (
19368 cat <<\_ASBOX
Brian Gaeke0a621332004-09-08 20:38:05 +000019369## ------------------------------------ ##
19370## Report this to bug-autoconf@gnu.org. ##
19371## ------------------------------------ ##
19372_ASBOX
19373 ) |
19374 sed "s/^/$as_me: WARNING: /" >&2
19375 ;;
19376 no:yes )
19377 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19378echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
19379 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19380echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19381 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19382echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
19383 (
19384 cat <<\_ASBOX
19385## ------------------------------------ ##
19386## Report this to bug-autoconf@gnu.org. ##
19387## ------------------------------------ ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019388_ASBOX
19389 ) |
19390 sed "s/^/$as_me: WARNING: /" >&2
19391 ;;
19392esac
19393echo "$as_me:$LINENO: checking for inttypes.h" >&5
19394echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19395if test "${ac_cv_header_inttypes_h+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19397else
19398 ac_cv_header_inttypes_h=$ac_header_preproc
19399fi
19400echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19401echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19402
19403fi
19404if test $ac_cv_header_inttypes_h = yes; then
19405 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19406else
19407 INCLUDE_INTTYPES_H=''
19408fi
19409
19410
19411
John Criswell7ed43ad2004-07-19 16:12:29 +000019412if test "${ac_cv_header_stdint_h+set}" = set; then
19413 echo "$as_me:$LINENO: checking for stdint.h" >&5
19414echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19415if test "${ac_cv_header_stdint_h+set}" = set; then
19416 echo $ECHO_N "(cached) $ECHO_C" >&6
19417fi
19418echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19419echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19420else
19421 # Is the header compilable?
19422echo "$as_me:$LINENO: checking stdint.h usability" >&5
19423echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
19424cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019425#line $LINENO "configure"
John Criswell7ed43ad2004-07-19 16:12:29 +000019426/* confdefs.h. */
19427_ACEOF
19428cat confdefs.h >>conftest.$ac_ext
19429cat >>conftest.$ac_ext <<_ACEOF
19430/* end confdefs.h. */
19431$ac_includes_default
19432#include <stdint.h>
19433_ACEOF
19434rm -f conftest.$ac_objext
19435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000019436 (eval $ac_compile) 2>&5
John Criswell7ed43ad2004-07-19 16:12:29 +000019437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000019440 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000019441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19442 (eval $ac_try) 2>&5
19443 ac_status=$?
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446 ac_header_compiler=yes
19447else
19448 echo "$as_me: failed program was:" >&5
19449sed 's/^/| /' conftest.$ac_ext >&5
19450
19451ac_header_compiler=no
19452fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019453rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000019454echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19455echo "${ECHO_T}$ac_header_compiler" >&6
19456
19457# Is the header present?
19458echo "$as_me:$LINENO: checking stdint.h presence" >&5
19459echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
19460cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019461#line $LINENO "configure"
John Criswell7ed43ad2004-07-19 16:12:29 +000019462/* confdefs.h. */
19463_ACEOF
19464cat confdefs.h >>conftest.$ac_ext
19465cat >>conftest.$ac_ext <<_ACEOF
19466/* end confdefs.h. */
19467#include <stdint.h>
19468_ACEOF
19469if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19470 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19471 ac_status=$?
19472 grep -v '^ *+' conftest.er1 >conftest.err
19473 rm -f conftest.er1
19474 cat conftest.err >&5
19475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476 (exit $ac_status); } >/dev/null; then
19477 if test -s conftest.err; then
19478 ac_cpp_err=$ac_c_preproc_warn_flag
19479 else
19480 ac_cpp_err=
19481 fi
19482else
19483 ac_cpp_err=yes
19484fi
19485if test -z "$ac_cpp_err"; then
19486 ac_header_preproc=yes
19487else
19488 echo "$as_me: failed program was:" >&5
19489sed 's/^/| /' conftest.$ac_ext >&5
19490
19491 ac_header_preproc=no
19492fi
19493rm -f conftest.err conftest.$ac_ext
19494echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19495echo "${ECHO_T}$ac_header_preproc" >&6
19496
19497# So? What about this header?
Brian Gaeke0a621332004-09-08 20:38:05 +000019498case $ac_header_compiler:$ac_header_preproc in
19499 yes:no )
John Criswell7ed43ad2004-07-19 16:12:29 +000019500 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
19501echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019502 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19503echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19504 (
19505 cat <<\_ASBOX
Brian Gaeke0a621332004-09-08 20:38:05 +000019506## ------------------------------------ ##
19507## Report this to bug-autoconf@gnu.org. ##
19508## ------------------------------------ ##
19509_ASBOX
19510 ) |
19511 sed "s/^/$as_me: WARNING: /" >&2
19512 ;;
19513 no:yes )
19514 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
19515echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
19516 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
19517echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
19518 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
19519echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
19520 (
19521 cat <<\_ASBOX
19522## ------------------------------------ ##
19523## Report this to bug-autoconf@gnu.org. ##
19524## ------------------------------------ ##
John Criswell7ed43ad2004-07-19 16:12:29 +000019525_ASBOX
19526 ) |
19527 sed "s/^/$as_me: WARNING: /" >&2
19528 ;;
19529esac
19530echo "$as_me:$LINENO: checking for stdint.h" >&5
19531echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19532if test "${ac_cv_header_stdint_h+set}" = set; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19534else
19535 ac_cv_header_stdint_h=$ac_header_preproc
19536fi
19537echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19538echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19539
19540fi
19541if test $ac_cv_header_stdint_h = yes; then
19542 INCLUDE_STDINT_H='#include <stdint.h>'
19543else
19544 INCLUDE_STDINT_H=''
19545fi
19546
19547
19548
19549
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019550
John Criswell7a73b802003-06-30 21:59:07 +000019551echo "$as_me:$LINENO: checking for pid_t" >&5
19552echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19553if test "${ac_cv_type_pid_t+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19555else
19556 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019557#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019558/* confdefs.h. */
19559_ACEOF
19560cat confdefs.h >>conftest.$ac_ext
19561cat >>conftest.$ac_ext <<_ACEOF
19562/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019563$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019564int
19565main ()
19566{
19567if ((pid_t *) 0)
19568 return 0;
19569if (sizeof (pid_t))
19570 return 0;
19571 ;
19572 return 0;
19573}
19574_ACEOF
19575rm -f conftest.$ac_objext
19576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000019577 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019578 ac_status=$?
19579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000019581 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19583 (eval $ac_try) 2>&5
19584 ac_status=$?
19585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19586 (exit $ac_status); }; }; then
19587 ac_cv_type_pid_t=yes
19588else
19589 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019590sed 's/^/| /' conftest.$ac_ext >&5
19591
John Criswell7a73b802003-06-30 21:59:07 +000019592ac_cv_type_pid_t=no
19593fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019594rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019595fi
19596echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19597echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19598if test $ac_cv_type_pid_t = yes; then
19599 :
19600else
19601
19602cat >>confdefs.h <<_ACEOF
19603#define pid_t int
19604_ACEOF
19605
19606fi
19607
19608echo "$as_me:$LINENO: checking for size_t" >&5
19609echo $ECHO_N "checking for size_t... $ECHO_C" >&6
19610if test "${ac_cv_type_size_t+set}" = set; then
19611 echo $ECHO_N "(cached) $ECHO_C" >&6
19612else
19613 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019614#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019615/* confdefs.h. */
19616_ACEOF
19617cat confdefs.h >>conftest.$ac_ext
19618cat >>conftest.$ac_ext <<_ACEOF
19619/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019620$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019621int
19622main ()
19623{
19624if ((size_t *) 0)
19625 return 0;
19626if (sizeof (size_t))
19627 return 0;
19628 ;
19629 return 0;
19630}
19631_ACEOF
19632rm -f conftest.$ac_objext
19633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000019634 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019635 ac_status=$?
19636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19637 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000019638 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19640 (eval $ac_try) 2>&5
19641 ac_status=$?
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); }; }; then
19644 ac_cv_type_size_t=yes
19645else
19646 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019647sed 's/^/| /' conftest.$ac_ext >&5
19648
John Criswell7a73b802003-06-30 21:59:07 +000019649ac_cv_type_size_t=no
19650fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019651rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019652fi
19653echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
19654echo "${ECHO_T}$ac_cv_type_size_t" >&6
19655if test $ac_cv_type_size_t = yes; then
19656 :
19657else
19658
19659cat >>confdefs.h <<_ACEOF
19660#define size_t unsigned
19661_ACEOF
19662
19663fi
19664
19665echo "$as_me:$LINENO: checking for int64_t" >&5
19666echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
19667if test "${ac_cv_type_int64_t+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19669else
19670 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019671#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019672/* confdefs.h. */
19673_ACEOF
19674cat confdefs.h >>conftest.$ac_ext
19675cat >>conftest.$ac_ext <<_ACEOF
19676/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019677$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019678int
19679main ()
19680{
19681if ((int64_t *) 0)
19682 return 0;
19683if (sizeof (int64_t))
19684 return 0;
19685 ;
19686 return 0;
19687}
19688_ACEOF
19689rm -f conftest.$ac_objext
19690if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000019691 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019692 ac_status=$?
19693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19694 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000019695 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19697 (eval $ac_try) 2>&5
19698 ac_status=$?
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); }; }; then
19701 ac_cv_type_int64_t=yes
19702else
19703 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019704sed 's/^/| /' conftest.$ac_ext >&5
19705
John Criswell7a73b802003-06-30 21:59:07 +000019706ac_cv_type_int64_t=no
19707fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019708rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019709fi
19710echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
19711echo "${ECHO_T}$ac_cv_type_int64_t" >&6
19712if test $ac_cv_type_int64_t = yes; then
19713
19714cat >>confdefs.h <<_ACEOF
19715#define HAVE_INT64_T 1
19716_ACEOF
19717
19718
19719else
19720 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
19721echo "$as_me: error: Type int64_t required but not found" >&2;}
19722 { (exit 1); exit 1; }; }
19723fi
19724
19725echo "$as_me:$LINENO: checking for uint64_t" >&5
19726echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
19727if test "${ac_cv_type_uint64_t+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19729else
19730 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019731#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019732/* confdefs.h. */
19733_ACEOF
19734cat confdefs.h >>conftest.$ac_ext
19735cat >>conftest.$ac_ext <<_ACEOF
19736/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019737$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000019738int
19739main ()
19740{
19741if ((uint64_t *) 0)
19742 return 0;
19743if (sizeof (uint64_t))
19744 return 0;
19745 ;
19746 return 0;
19747}
19748_ACEOF
19749rm -f conftest.$ac_objext
19750if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000019751 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000019755 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19757 (eval $ac_try) 2>&5
19758 ac_status=$?
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); }; }; then
19761 ac_cv_type_uint64_t=yes
19762else
19763 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019764sed 's/^/| /' conftest.$ac_ext >&5
19765
John Criswell7a73b802003-06-30 21:59:07 +000019766ac_cv_type_uint64_t=no
19767fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019768rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019769fi
19770echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
19771echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
19772if test $ac_cv_type_uint64_t = yes; then
19773
19774cat >>confdefs.h <<_ACEOF
19775#define HAVE_UINT64_T 1
19776_ACEOF
19777
19778
19779else
Misha Brukmanceca9042004-09-02 23:02:30 +000019780 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000019781echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
19782if test "${ac_cv_type_u_int64_t+set}" = set; then
19783 echo $ECHO_N "(cached) $ECHO_C" >&6
19784else
19785 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019786#line $LINENO "configure"
John Criswell679ff312004-09-02 18:44:44 +000019787/* confdefs.h. */
19788_ACEOF
19789cat confdefs.h >>conftest.$ac_ext
19790cat >>conftest.$ac_ext <<_ACEOF
19791/* end confdefs.h. */
19792$ac_includes_default
19793int
19794main ()
19795{
19796if ((u_int64_t *) 0)
19797 return 0;
19798if (sizeof (u_int64_t))
19799 return 0;
19800 ;
19801 return 0;
19802}
19803_ACEOF
19804rm -f conftest.$ac_objext
19805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000019806 (eval $ac_compile) 2>&5
John Criswell679ff312004-09-02 18:44:44 +000019807 ac_status=$?
19808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000019810 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000019811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19812 (eval $ac_try) 2>&5
19813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; }; then
19816 ac_cv_type_u_int64_t=yes
19817else
19818 echo "$as_me: failed program was:" >&5
19819sed 's/^/| /' conftest.$ac_ext >&5
19820
19821ac_cv_type_u_int64_t=no
19822fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019823rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000019824fi
19825echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
19826echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
19827if test $ac_cv_type_u_int64_t = yes; then
19828
19829cat >>confdefs.h <<_ACEOF
19830#define HAVE_U_INT64_T 1
19831_ACEOF
19832
19833
Misha Brukmanceca9042004-09-02 23:02:30 +000019834else
19835 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
19836echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
19837 { (exit 1); exit 1; }; }
19838fi
19839
John Criswell679ff312004-09-02 18:44:44 +000019840fi
19841
John Criswell7a73b802003-06-30 21:59:07 +000019842echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19843echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19844if test "${ac_cv_header_time+set}" = set; then
19845 echo $ECHO_N "(cached) $ECHO_C" >&6
19846else
19847 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019848#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019849/* confdefs.h. */
19850_ACEOF
19851cat confdefs.h >>conftest.$ac_ext
19852cat >>conftest.$ac_ext <<_ACEOF
19853/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019854#include <sys/types.h>
19855#include <sys/time.h>
19856#include <time.h>
19857
John Criswell7a73b802003-06-30 21:59:07 +000019858int
19859main ()
19860{
19861if ((struct tm *) 0)
19862return 0;
19863 ;
19864 return 0;
19865}
19866_ACEOF
19867rm -f conftest.$ac_objext
19868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000019869 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019870 ac_status=$?
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000019873 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19875 (eval $ac_try) 2>&5
19876 ac_status=$?
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879 ac_cv_header_time=yes
19880else
19881 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019882sed 's/^/| /' conftest.$ac_ext >&5
19883
John Criswell7a73b802003-06-30 21:59:07 +000019884ac_cv_header_time=no
19885fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019886rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019887fi
19888echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19889echo "${ECHO_T}$ac_cv_header_time" >&6
19890if test $ac_cv_header_time = yes; then
19891
19892cat >>confdefs.h <<\_ACEOF
19893#define TIME_WITH_SYS_TIME 1
19894_ACEOF
19895
19896fi
19897
19898echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
19899echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
19900if test "${ac_cv_struct_tm+set}" = set; then
19901 echo $ECHO_N "(cached) $ECHO_C" >&6
19902else
19903 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019904#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000019905/* confdefs.h. */
19906_ACEOF
19907cat confdefs.h >>conftest.$ac_ext
19908cat >>conftest.$ac_ext <<_ACEOF
19909/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019910#include <sys/types.h>
19911#include <time.h>
19912
John Criswell7a73b802003-06-30 21:59:07 +000019913int
19914main ()
19915{
19916struct tm *tp; tp->tm_sec;
19917 ;
19918 return 0;
19919}
19920_ACEOF
19921rm -f conftest.$ac_objext
19922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000019923 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000019924 ac_status=$?
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000019927 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19929 (eval $ac_try) 2>&5
19930 ac_status=$?
19931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19932 (exit $ac_status); }; }; then
19933 ac_cv_struct_tm=time.h
19934else
19935 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019936sed 's/^/| /' conftest.$ac_ext >&5
19937
John Criswell7a73b802003-06-30 21:59:07 +000019938ac_cv_struct_tm=sys/time.h
19939fi
Brian Gaeke0a621332004-09-08 20:38:05 +000019940rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019941fi
19942echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
19943echo "${ECHO_T}$ac_cv_struct_tm" >&6
19944if test $ac_cv_struct_tm = sys/time.h; then
19945
19946cat >>confdefs.h <<\_ACEOF
19947#define TM_IN_SYS_TIME 1
19948_ACEOF
19949
19950fi
19951
19952
John Criswella0137d32003-10-13 16:22:01 +000019953
Brian Gaekeadfe28d2004-07-21 03:50:25 +000019954 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
19955echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
John Criswella0137d32003-10-13 16:22:01 +000019956
19957
19958 ac_ext=c
19959ac_cpp='$CPP $CPPFLAGS'
19960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19962ac_compiler_gnu=$ac_cv_c_compiler_gnu
19963
19964 if test "$cross_compiling" = yes; then
19965 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19966See \`config.log' for more details." >&5
19967echo "$as_me: error: cannot run test program while cross compiling
19968See \`config.log' for more details." >&2;}
19969 { (exit 1); exit 1; }; }
19970else
19971 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000019972#line $LINENO "configure"
John Criswella0137d32003-10-13 16:22:01 +000019973/* confdefs.h. */
19974_ACEOF
19975cat confdefs.h >>conftest.$ac_ext
19976cat >>conftest.$ac_ext <<_ACEOF
19977/* end confdefs.h. */
19978#include <stdio.h>
19979 #include <stdlib.h>
19980int
19981main ()
19982{
19983
19984 volatile double A, B;
19985 char Buffer[100];
19986 A = 1;
19987 A /= 10.0;
19988 sprintf(Buffer, "%a", A);
19989 B = atof(Buffer);
19990 if (A != B)
19991 return (1);
19992 if (A != 0x1.999999999999ap-4)
19993 return (1);
19994 return (0);
19995 ;
19996 return 0;
19997}
19998_ACEOF
19999rm -f conftest$ac_exeext
20000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20001 (eval $ac_link) 2>&5
20002 ac_status=$?
20003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20004 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20006 (eval $ac_try) 2>&5
20007 ac_status=$?
20008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20009 (exit $ac_status); }; }; then
20010 ac_c_printf_a=yes
20011else
20012 echo "$as_me: program exited with status $ac_status" >&5
20013echo "$as_me: failed program was:" >&5
20014sed 's/^/| /' conftest.$ac_ext >&5
20015
20016( exit $ac_status )
20017ac_c_printf_a=no
20018fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020019rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000020020fi
20021 ac_ext=c
20022ac_cpp='$CPP $CPPFLAGS'
20023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20025ac_compiler_gnu=$ac_cv_c_compiler_gnu
20026
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020027 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20028echo "${ECHO_T}$ac_c_printf_a" >&6
John Criswella0137d32003-10-13 16:22:01 +000020029 if test "$ac_c_printf_a" = "yes"; then
20030
20031cat >>confdefs.h <<\_ACEOF
20032#define HAVE_PRINTF_A 1
20033_ACEOF
20034
20035 fi
20036
20037
John Criswell0021c312004-02-13 21:57:29 +000020038echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20039echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20040if test "${ac_cv_c_bigendian+set}" = set; then
20041 echo $ECHO_N "(cached) $ECHO_C" >&6
20042else
20043 # See if sys/param.h defines the BYTE_ORDER macro.
20044cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020045#line $LINENO "configure"
John Criswell0021c312004-02-13 21:57:29 +000020046/* confdefs.h. */
20047_ACEOF
20048cat confdefs.h >>conftest.$ac_ext
20049cat >>conftest.$ac_ext <<_ACEOF
20050/* end confdefs.h. */
20051#include <sys/types.h>
20052#include <sys/param.h>
20053
20054int
20055main ()
20056{
20057#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20058 bogus endian macros
20059#endif
20060
20061 ;
20062 return 0;
20063}
20064_ACEOF
20065rm -f conftest.$ac_objext
20066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000020067 (eval $ac_compile) 2>&5
John Criswell0021c312004-02-13 21:57:29 +000020068 ac_status=$?
20069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20070 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000020071 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20073 (eval $ac_try) 2>&5
20074 ac_status=$?
20075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20076 (exit $ac_status); }; }; then
20077 # It does; now see whether it defined to BIG_ENDIAN or not.
20078cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020079#line $LINENO "configure"
John Criswell0021c312004-02-13 21:57:29 +000020080/* confdefs.h. */
20081_ACEOF
20082cat confdefs.h >>conftest.$ac_ext
20083cat >>conftest.$ac_ext <<_ACEOF
20084/* end confdefs.h. */
20085#include <sys/types.h>
20086#include <sys/param.h>
20087
20088int
20089main ()
20090{
20091#if BYTE_ORDER != BIG_ENDIAN
20092 not big endian
20093#endif
20094
20095 ;
20096 return 0;
20097}
20098_ACEOF
20099rm -f conftest.$ac_objext
20100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000020101 (eval $ac_compile) 2>&5
John Criswell0021c312004-02-13 21:57:29 +000020102 ac_status=$?
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000020105 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 ac_cv_c_bigendian=yes
20112else
20113 echo "$as_me: failed program was:" >&5
20114sed 's/^/| /' conftest.$ac_ext >&5
20115
20116ac_cv_c_bigendian=no
20117fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020118rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020119else
20120 echo "$as_me: failed program was:" >&5
20121sed 's/^/| /' conftest.$ac_ext >&5
20122
20123# It does not; compile a test program.
20124if test "$cross_compiling" = yes; then
20125 # try to guess the endianness by grepping values into an object file
20126 ac_cv_c_bigendian=unknown
20127 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020128#line $LINENO "configure"
John Criswell0021c312004-02-13 21:57:29 +000020129/* confdefs.h. */
20130_ACEOF
20131cat confdefs.h >>conftest.$ac_ext
20132cat >>conftest.$ac_ext <<_ACEOF
20133/* end confdefs.h. */
20134short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20135short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20136void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20137short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20138short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20139void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20140int
20141main ()
20142{
20143 _ascii (); _ebcdic ();
20144 ;
20145 return 0;
20146}
20147_ACEOF
20148rm -f conftest.$ac_objext
20149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000020150 (eval $ac_compile) 2>&5
John Criswell0021c312004-02-13 21:57:29 +000020151 ac_status=$?
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000020154 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20156 (eval $ac_try) 2>&5
20157 ac_status=$?
20158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20159 (exit $ac_status); }; }; then
20160 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20161 ac_cv_c_bigendian=yes
20162fi
20163if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20164 if test "$ac_cv_c_bigendian" = unknown; then
20165 ac_cv_c_bigendian=no
20166 else
20167 # finding both strings is unlikely to happen, but who knows?
20168 ac_cv_c_bigendian=unknown
20169 fi
20170fi
20171else
20172 echo "$as_me: failed program was:" >&5
20173sed 's/^/| /' conftest.$ac_ext >&5
20174
20175fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020176rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020177else
20178 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020179#line $LINENO "configure"
John Criswell0021c312004-02-13 21:57:29 +000020180/* confdefs.h. */
20181_ACEOF
20182cat confdefs.h >>conftest.$ac_ext
20183cat >>conftest.$ac_ext <<_ACEOF
20184/* end confdefs.h. */
20185int
20186main ()
20187{
20188 /* Are we little or big endian? From Harbison&Steele. */
20189 union
20190 {
20191 long l;
20192 char c[sizeof (long)];
20193 } u;
20194 u.l = 1;
20195 exit (u.c[sizeof (long) - 1] == 1);
20196}
20197_ACEOF
20198rm -f conftest$ac_exeext
20199if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20200 (eval $ac_link) 2>&5
20201 ac_status=$?
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20205 (eval $ac_try) 2>&5
20206 ac_status=$?
20207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); }; }; then
20209 ac_cv_c_bigendian=no
20210else
20211 echo "$as_me: program exited with status $ac_status" >&5
20212echo "$as_me: failed program was:" >&5
20213sed 's/^/| /' conftest.$ac_ext >&5
20214
20215( exit $ac_status )
20216ac_cv_c_bigendian=yes
20217fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020218rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020219fi
20220fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020221rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020222fi
20223echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20224echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20225case $ac_cv_c_bigendian in
20226 yes)
20227 ENDIAN=big
20228 ;;
20229 no)
20230 ENDIAN=little
20231 ;;
20232 *)
20233 { { echo "$as_me:$LINENO: error: unknown endianness
20234presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20235echo "$as_me: error: unknown endianness
20236presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20237 { (exit 1); exit 1; }; } ;;
20238esac
20239
20240
John Criswell7a73b802003-06-30 21:59:07 +000020241echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20242echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20243if test "${ac_cv_cxx_namespaces+set}" = set; then
20244 echo $ECHO_N "(cached) $ECHO_C" >&6
20245else
20246
20247
20248 ac_ext=cc
20249ac_cpp='$CXXCPP $CPPFLAGS'
20250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20253
20254 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020255#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020256/* confdefs.h. */
20257_ACEOF
20258cat confdefs.h >>conftest.$ac_ext
20259cat >>conftest.$ac_ext <<_ACEOF
20260/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020261namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020262int
20263main ()
20264{
20265using namespace Outer::Inner; return i;
20266 ;
20267 return 0;
20268}
20269_ACEOF
20270rm -f conftest.$ac_objext
20271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000020272 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000020273 ac_status=$?
20274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000020276 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; }; then
20282 ac_cv_cxx_namespaces=yes
20283else
20284 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020285sed 's/^/| /' conftest.$ac_ext >&5
20286
John Criswell7a73b802003-06-30 21:59:07 +000020287ac_cv_cxx_namespaces=no
20288fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020289rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020290 ac_ext=c
20291ac_cpp='$CPP $CPPFLAGS'
20292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20294ac_compiler_gnu=$ac_cv_c_compiler_gnu
20295
20296
20297fi
20298echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20299echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20300if test "$ac_cv_cxx_namespaces" = yes; then
20301
20302cat >>confdefs.h <<\_ACEOF
20303#define HAVE_NAMESPACES
20304_ACEOF
20305
20306fi
20307
Brian Gaeke90583492003-11-10 03:06:28 +000020308echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20309echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20310if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020311 echo $ECHO_N "(cached) $ECHO_C" >&6
20312else
20313
20314
20315
20316 ac_ext=cc
20317ac_cpp='$CXXCPP $CPPFLAGS'
20318ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20319ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20320ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20321
20322 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020323#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020324/* confdefs.h. */
20325_ACEOF
20326cat confdefs.h >>conftest.$ac_ext
20327cat >>conftest.$ac_ext <<_ACEOF
20328/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020329#include <ext/hash_map>
20330#ifdef HAVE_NAMESPACES
20331using namespace std;
20332#endif
John Criswell7a73b802003-06-30 21:59:07 +000020333int
20334main ()
20335{
Brian Gaeke90583492003-11-10 03:06:28 +000020336hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020337 ;
20338 return 0;
20339}
20340_ACEOF
20341rm -f conftest.$ac_objext
20342if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000020343 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000020344 ac_status=$?
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000020347 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20350 ac_status=$?
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020353 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000020354else
20355 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020356sed 's/^/| /' conftest.$ac_ext >&5
20357
Brian Gaeke90583492003-11-10 03:06:28 +000020358ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020359fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020360rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020361 ac_ext=c
20362ac_cpp='$CPP $CPPFLAGS'
20363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20365ac_compiler_gnu=$ac_cv_c_compiler_gnu
20366
John Criswell7a73b802003-06-30 21:59:07 +000020367fi
Brian Gaeke90583492003-11-10 03:06:28 +000020368echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
20369echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020370 HAVE_STD_EXT_HASH_MAP=0
20371 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
20372 then
20373 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020374 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020375
Brian Gaeke90583492003-11-10 03:06:28 +000020376 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
20377echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
20378if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20380else
20381
20382
20383
20384 ac_ext=cc
20385ac_cpp='$CXXCPP $CPPFLAGS'
20386ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20387ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20388ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20389
20390 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020391#line $LINENO "configure"
Brian Gaeke90583492003-11-10 03:06:28 +000020392/* confdefs.h. */
20393_ACEOF
20394cat confdefs.h >>conftest.$ac_ext
20395cat >>conftest.$ac_ext <<_ACEOF
20396/* end confdefs.h. */
20397#include <ext/hash_map>
20398#ifdef HAVE_NAMESPACES
20399using namespace __gnu_cxx;
20400#endif
20401int
20402main ()
20403{
20404hash_map<int,int> t;
20405 ;
20406 return 0;
20407}
20408_ACEOF
20409rm -f conftest.$ac_objext
20410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000020411 (eval $ac_compile) 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000020412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000020415 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000020416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }; then
20421 ac_cv_cxx_have_gnu_ext_hash_map=yes
20422else
20423 echo "$as_me: failed program was:" >&5
20424sed 's/^/| /' conftest.$ac_ext >&5
20425
20426ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000020427fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020428rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000020429 ac_ext=c
20430ac_cpp='$CPP $CPPFLAGS'
20431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20433ac_compiler_gnu=$ac_cv_c_compiler_gnu
20434
20435fi
20436echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
20437echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020438 HAVE_GNU_EXT_HASH_MAP=0
20439 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
20440 then
20441 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020442 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020443
Brian Gaeke90583492003-11-10 03:06:28 +000020444 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
20445echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
20446if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20448else
John Criswell7a73b802003-06-30 21:59:07 +000020449
Brian Gaeke90583492003-11-10 03:06:28 +000020450
20451
20452 ac_ext=cc
20453ac_cpp='$CXXCPP $CPPFLAGS'
20454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20457
20458 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020459#line $LINENO "configure"
Brian Gaeke90583492003-11-10 03:06:28 +000020460/* confdefs.h. */
20461_ACEOF
20462cat confdefs.h >>conftest.$ac_ext
20463cat >>conftest.$ac_ext <<_ACEOF
20464/* end confdefs.h. */
20465#include <hash_map>
20466int
20467main ()
20468{
20469hash_map<int,int> t;
20470 ;
20471 return 0;
20472}
20473_ACEOF
20474rm -f conftest.$ac_objext
20475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000020476 (eval $ac_compile) 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000020477 ac_status=$?
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000020480 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000020481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20482 (eval $ac_try) 2>&5
20483 ac_status=$?
20484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485 (exit $ac_status); }; }; then
20486 ac_cv_cxx_have_global_hash_map=yes
20487else
20488 echo "$as_me: failed program was:" >&5
20489sed 's/^/| /' conftest.$ac_ext >&5
20490
20491ac_cv_cxx_have_global_hash_map=no
20492fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020493rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000020494 ac_ext=c
20495ac_cpp='$CPP $CPPFLAGS'
20496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20498ac_compiler_gnu=$ac_cv_c_compiler_gnu
20499
20500fi
20501echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
20502echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020503 HAVE_GLOBAL_HASH_MAP=0
20504 if test "$ac_cv_cxx_have_global_hash_map" = yes
20505 then
20506 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000020507 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020508
Brian Gaeke90583492003-11-10 03:06:28 +000020509echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
20510echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
20511if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020512 echo $ECHO_N "(cached) $ECHO_C" >&6
20513else
20514
20515
20516
20517 ac_ext=cc
20518ac_cpp='$CXXCPP $CPPFLAGS'
20519ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20520ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20521ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20522
20523 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020524#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020525/* confdefs.h. */
20526_ACEOF
20527cat confdefs.h >>conftest.$ac_ext
20528cat >>conftest.$ac_ext <<_ACEOF
20529/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020530#include <ext/hash_set>
20531#ifdef HAVE_NAMESPACES
20532using namespace std;
20533#endif
John Criswell7a73b802003-06-30 21:59:07 +000020534int
20535main ()
20536{
Brian Gaeke90583492003-11-10 03:06:28 +000020537hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020538 ;
20539 return 0;
20540}
20541_ACEOF
20542rm -f conftest.$ac_objext
20543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000020544 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000020545 ac_status=$?
20546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000020548 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20550 (eval $ac_try) 2>&5
20551 ac_status=$?
20552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20553 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020554 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020555else
20556 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020557sed 's/^/| /' conftest.$ac_ext >&5
20558
Brian Gaeke90583492003-11-10 03:06:28 +000020559ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020560fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020561rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000020562 ac_ext=c
20563ac_cpp='$CPP $CPPFLAGS'
20564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20566ac_compiler_gnu=$ac_cv_c_compiler_gnu
20567
20568fi
20569echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
20570echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020571 HAVE_STD_EXT_HASH_SET=0
20572 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
20573 then
20574 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020575 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020576
Brian Gaeke90583492003-11-10 03:06:28 +000020577 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
20578echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
20579if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20581else
20582
20583
20584
20585 ac_ext=cc
20586ac_cpp='$CXXCPP $CPPFLAGS'
20587ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20588ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20589ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20590
John Criswell7a73b802003-06-30 21:59:07 +000020591 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020592#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020593/* confdefs.h. */
20594_ACEOF
20595cat confdefs.h >>conftest.$ac_ext
20596cat >>conftest.$ac_ext <<_ACEOF
20597/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020598#include <ext/hash_set>
20599#ifdef HAVE_NAMESPACES
20600using namespace __gnu_cxx;
20601#endif
John Criswell7a73b802003-06-30 21:59:07 +000020602int
20603main ()
20604{
Brian Gaeke90583492003-11-10 03:06:28 +000020605hash_set<int> t;
20606 ;
20607 return 0;
20608}
20609_ACEOF
20610rm -f conftest.$ac_objext
20611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000020612 (eval $ac_compile) 2>&5
Brian Gaeke90583492003-11-10 03:06:28 +000020613 ac_status=$?
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000020616 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000020617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20618 (eval $ac_try) 2>&5
20619 ac_status=$?
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20622 ac_cv_cxx_have_gnu_ext_hash_set=yes
20623else
20624 echo "$as_me: failed program was:" >&5
20625sed 's/^/| /' conftest.$ac_ext >&5
20626
20627ac_cv_cxx_have_gnu_ext_hash_set=no
20628fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020629rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000020630 ac_ext=c
20631ac_cpp='$CPP $CPPFLAGS'
20632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20634ac_compiler_gnu=$ac_cv_c_compiler_gnu
20635
20636fi
20637echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
20638echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020639 HAVE_GNU_EXT_HASH_SET=0
20640 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
20641 then
20642 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020643 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020644
Brian Gaeke90583492003-11-10 03:06:28 +000020645 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
20646echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
20647if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
20648 echo $ECHO_N "(cached) $ECHO_C" >&6
20649else
20650
20651
20652
20653 ac_ext=cc
20654ac_cpp='$CXXCPP $CPPFLAGS'
20655ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20656ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20657ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20658
20659 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020660#line $LINENO "configure"
Brian Gaeke90583492003-11-10 03:06:28 +000020661/* confdefs.h. */
20662_ACEOF
20663cat confdefs.h >>conftest.$ac_ext
20664cat >>conftest.$ac_ext <<_ACEOF
20665/* end confdefs.h. */
20666#include <hash_set>
20667int
20668main ()
20669{
John Criswell7a73b802003-06-30 21:59:07 +000020670hash_set<int> t; return 0;
20671 ;
20672 return 0;
20673}
20674_ACEOF
20675rm -f conftest.$ac_objext
20676if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000020677 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000020678 ac_status=$?
20679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20680 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000020681 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20683 (eval $ac_try) 2>&5
20684 ac_status=$?
20685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20686 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000020687 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000020688else
20689 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020690sed 's/^/| /' conftest.$ac_ext >&5
20691
Brian Gaeke90583492003-11-10 03:06:28 +000020692ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000020693fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020694rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020695 ac_ext=c
20696ac_cpp='$CPP $CPPFLAGS'
20697ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20698ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20699ac_compiler_gnu=$ac_cv_c_compiler_gnu
20700
John Criswell7a73b802003-06-30 21:59:07 +000020701fi
Brian Gaeke90583492003-11-10 03:06:28 +000020702echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
20703echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000020704 HAVE_GLOBAL_HASH_SET=0
20705 if test "$ac_cv_cxx_have_global_hash_set" = yes
20706 then
20707 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000020708 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000020709
John Criswell7a73b802003-06-30 21:59:07 +000020710echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
20711echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
20712if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
20713 echo $ECHO_N "(cached) $ECHO_C" >&6
20714else
20715
20716
20717
20718 ac_ext=cc
20719ac_cpp='$CXXCPP $CPPFLAGS'
20720ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20721ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20722ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20723
20724 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020725#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020726/* confdefs.h. */
20727_ACEOF
20728cat confdefs.h >>conftest.$ac_ext
20729cat >>conftest.$ac_ext <<_ACEOF
20730/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020731#include <iterator>
20732#ifdef HAVE_NAMESPACES
20733using namespace std;
20734#endif
John Criswell7a73b802003-06-30 21:59:07 +000020735int
20736main ()
20737{
20738iterator<int,int,int> t; return 0;
20739 ;
20740 return 0;
20741}
20742_ACEOF
20743rm -f conftest.$ac_objext
20744if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000020745 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000020746 ac_status=$?
20747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20748 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000020749 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20751 (eval $ac_try) 2>&5
20752 ac_status=$?
20753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754 (exit $ac_status); }; }; then
20755 ac_cv_cxx_have_std_iterator=yes
20756else
20757 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020758sed 's/^/| /' conftest.$ac_ext >&5
20759
John Criswell7a73b802003-06-30 21:59:07 +000020760ac_cv_cxx_have_std_iterator=no
20761fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020762rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020763 ac_ext=c
20764ac_cpp='$CPP $CPPFLAGS'
20765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20767ac_compiler_gnu=$ac_cv_c_compiler_gnu
20768
20769
20770fi
20771echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
20772echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020773HAVE_STD_ITERATOR=0
20774if test "$ac_cv_cxx_have_std_iterator" = yes
20775then
20776 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020777fi
20778
20779echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
20780echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
20781if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
20782 echo $ECHO_N "(cached) $ECHO_C" >&6
20783else
20784
20785
20786
20787 ac_ext=cc
20788ac_cpp='$CXXCPP $CPPFLAGS'
20789ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20790ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20791ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20792
20793 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020794#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020795/* confdefs.h. */
20796_ACEOF
20797cat confdefs.h >>conftest.$ac_ext
20798cat >>conftest.$ac_ext <<_ACEOF
20799/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020800#include <iterator>
20801#ifdef HAVE_NAMESPACES
20802using namespace std;
20803#endif
John Criswell7a73b802003-06-30 21:59:07 +000020804int
20805main ()
20806{
John Criswellc78022e2003-07-29 19:11:58 +000020807bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020808 ;
20809 return 0;
20810}
20811_ACEOF
20812rm -f conftest.$ac_objext
20813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000020814 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000020815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000020818 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 ac_cv_cxx_have_bi_iterator=yes
20825else
20826 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020827sed 's/^/| /' conftest.$ac_ext >&5
20828
John Criswell7a73b802003-06-30 21:59:07 +000020829ac_cv_cxx_have_bi_iterator=no
20830fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020831rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020832 ac_ext=c
20833ac_cpp='$CPP $CPPFLAGS'
20834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20836ac_compiler_gnu=$ac_cv_c_compiler_gnu
20837
20838
20839fi
20840echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
20841echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020842HAVE_BI_ITERATOR=0
20843if test "$ac_cv_cxx_have_bi_iterator" = yes
20844then
20845 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020846fi
20847
20848echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
20849echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
20850if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
20851 echo $ECHO_N "(cached) $ECHO_C" >&6
20852else
20853
20854
20855
20856 ac_ext=cc
20857ac_cpp='$CXXCPP $CPPFLAGS'
20858ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20859ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20860ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20861
20862 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020863#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000020864/* confdefs.h. */
20865_ACEOF
20866cat confdefs.h >>conftest.$ac_ext
20867cat >>conftest.$ac_ext <<_ACEOF
20868/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020869#include <iterator>
20870#ifdef HAVE_NAMESPACES
20871using namespace std;
20872#endif
John Criswell7a73b802003-06-30 21:59:07 +000020873int
20874main ()
20875{
John Criswellc78022e2003-07-29 19:11:58 +000020876forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000020877 ;
20878 return 0;
20879}
20880_ACEOF
20881rm -f conftest.$ac_objext
20882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000020883 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000020884 ac_status=$?
20885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20886 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000020887 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; }; then
20893 ac_cv_cxx_have_fwd_iterator=yes
20894else
20895 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020896sed 's/^/| /' conftest.$ac_ext >&5
20897
John Criswell7a73b802003-06-30 21:59:07 +000020898ac_cv_cxx_have_fwd_iterator=no
20899fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020900rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020901 ac_ext=c
20902ac_cpp='$CPP $CPPFLAGS'
20903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20905ac_compiler_gnu=$ac_cv_c_compiler_gnu
20906
20907
20908fi
20909echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
20910echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000020911HAVE_FWD_ITERATOR=0
20912if test "$ac_cv_cxx_have_fwd_iterator" = yes
20913then
20914 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000020915fi
20916
20917
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020918
20919echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
20920echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
20921if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
20922 echo $ECHO_N "(cached) $ECHO_C" >&6
20923else
20924 ac_ext=cc
20925ac_cpp='$CXXCPP $CPPFLAGS'
20926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20929
20930 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020931#line $LINENO "configure"
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020932/* confdefs.h. */
20933_ACEOF
20934cat confdefs.h >>conftest.$ac_ext
20935cat >>conftest.$ac_ext <<_ACEOF
20936/* end confdefs.h. */
20937#include <math.h>
20938 int foo(float f) {return isnan(f);}
20939_ACEOF
20940rm -f conftest.$ac_objext
20941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000020942 (eval $ac_compile) 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020943 ac_status=$?
20944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20945 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000020946 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20948 (eval $ac_try) 2>&5
20949 ac_status=$?
20950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951 (exit $ac_status); }; }; then
20952 ac_cv_func_isnan_in_math_h=yes
20953else
20954 echo "$as_me: failed program was:" >&5
20955sed 's/^/| /' conftest.$ac_ext >&5
20956
20957ac_cv_func_isnan_in_math_h=no
20958fi
Brian Gaeke0a621332004-09-08 20:38:05 +000020959rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020960 ac_ext=c
20961ac_cpp='$CPP $CPPFLAGS'
20962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20964ac_compiler_gnu=$ac_cv_c_compiler_gnu
20965
20966fi
20967echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
20968echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
20969 if test "$ac_cv_func_isnan_in_math_h" = "yes"
20970 then
20971
20972cat >>confdefs.h <<\_ACEOF
20973#define HAVE_ISNAN_IN_MATH_H 1
20974_ACEOF
20975
20976 fi
20977echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
20978echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
20979if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
20980 echo $ECHO_N "(cached) $ECHO_C" >&6
20981else
20982 ac_ext=cc
20983ac_cpp='$CXXCPP $CPPFLAGS'
20984ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20985ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20986ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20987
20988 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000020989#line $LINENO "configure"
Brian Gaeke6f5b6212004-06-22 23:47:13 +000020990/* confdefs.h. */
20991_ACEOF
20992cat confdefs.h >>conftest.$ac_ext
20993cat >>conftest.$ac_ext <<_ACEOF
20994/* end confdefs.h. */
20995#include <cmath>
20996 int foo(float f) {return isnan(f);}
20997_ACEOF
20998rm -f conftest.$ac_objext
20999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000021000 (eval $ac_compile) 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021001 ac_status=$?
21002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21003 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000021004 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21007 ac_status=$?
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; }; then
21010 ac_cv_func_isnan_in_cmath=yes
21011else
21012 echo "$as_me: failed program was:" >&5
21013sed 's/^/| /' conftest.$ac_ext >&5
21014
21015ac_cv_func_isnan_in_cmath=no
21016fi
Brian Gaeke0a621332004-09-08 20:38:05 +000021017rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021018 ac_ext=c
21019ac_cpp='$CPP $CPPFLAGS'
21020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21022ac_compiler_gnu=$ac_cv_c_compiler_gnu
21023
21024fi
21025echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21026echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21027 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21028 then
21029
21030cat >>confdefs.h <<\_ACEOF
21031#define HAVE_ISNAN_IN_CMATH 1
21032_ACEOF
21033
21034 fi
21035echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21036echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21037if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21038 echo $ECHO_N "(cached) $ECHO_C" >&6
21039else
21040 ac_ext=cc
21041ac_cpp='$CXXCPP $CPPFLAGS'
21042ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21043ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21044ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21045
21046 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000021047#line $LINENO "configure"
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021048/* confdefs.h. */
21049_ACEOF
21050cat confdefs.h >>conftest.$ac_ext
21051cat >>conftest.$ac_ext <<_ACEOF
21052/* end confdefs.h. */
21053#include <cmath>
21054 using std::isnan; int foo(float f) {return isnan(f);}
21055_ACEOF
21056rm -f conftest.$ac_objext
21057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000021058 (eval $ac_compile) 2>&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021059 ac_status=$?
21060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21061 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000021062 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21064 (eval $ac_try) 2>&5
21065 ac_status=$?
21066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21067 (exit $ac_status); }; }; then
21068 ac_cv_func_std_isnan_in_cmath=yes
21069else
21070 echo "$as_me: failed program was:" >&5
21071sed 's/^/| /' conftest.$ac_ext >&5
21072
21073ac_cv_func_std_isnan_in_cmath=no
21074fi
Brian Gaeke0a621332004-09-08 20:38:05 +000021075rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021076 ac_ext=c
21077ac_cpp='$CPP $CPPFLAGS'
21078ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21079ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21080ac_compiler_gnu=$ac_cv_c_compiler_gnu
21081
21082fi
21083echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21084echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21085 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21086 then
21087
21088cat >>confdefs.h <<\_ACEOF
21089#define HAVE_STD_ISNAN_IN_CMATH 1
21090_ACEOF
21091
21092 fi
21093
21094
Brian Gaeke52a551d2004-07-21 03:14:12 +000021095echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21096echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21097if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21098 echo $ECHO_N "(cached) $ECHO_C" >&6
21099else
21100 ac_ext=cc
21101ac_cpp='$CXXCPP $CPPFLAGS'
21102ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21103ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21104ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21105
21106 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000021107#line $LINENO "configure"
Brian Gaeke52a551d2004-07-21 03:14:12 +000021108/* confdefs.h. */
21109_ACEOF
21110cat confdefs.h >>conftest.$ac_ext
21111cat >>conftest.$ac_ext <<_ACEOF
21112/* end confdefs.h. */
21113#include <math.h>
21114 int foo(float f) {return isinf(f);}
21115_ACEOF
21116rm -f conftest.$ac_objext
21117if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000021118 (eval $ac_compile) 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021119 ac_status=$?
21120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000021122 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +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_func_isinf_in_math_h=yes
21129else
21130 echo "$as_me: failed program was:" >&5
21131sed 's/^/| /' conftest.$ac_ext >&5
21132
21133ac_cv_func_isinf_in_math_h=no
21134fi
Brian Gaeke0a621332004-09-08 20:38:05 +000021135rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +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_func_isinf_in_math_h" >&5
21144echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21145 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21146 then
21147
21148cat >>confdefs.h <<\_ACEOF
21149#define HAVE_ISINF_IN_MATH_H 1
21150_ACEOF
21151
21152 fi
21153echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21154echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21155if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21156 echo $ECHO_N "(cached) $ECHO_C" >&6
21157else
21158 ac_ext=cc
21159ac_cpp='$CXXCPP $CPPFLAGS'
21160ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21161ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21162ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21163
21164 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000021165#line $LINENO "configure"
Brian Gaeke52a551d2004-07-21 03:14:12 +000021166/* confdefs.h. */
21167_ACEOF
21168cat confdefs.h >>conftest.$ac_ext
21169cat >>conftest.$ac_ext <<_ACEOF
21170/* end confdefs.h. */
21171#include <cmath>
21172 int foo(float f) {return isinf(f);}
21173_ACEOF
21174rm -f conftest.$ac_objext
21175if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000021176 (eval $ac_compile) 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021177 ac_status=$?
21178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21179 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000021180 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000021181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21182 (eval $ac_try) 2>&5
21183 ac_status=$?
21184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21185 (exit $ac_status); }; }; then
21186 ac_cv_func_isinf_in_cmath=yes
21187else
21188 echo "$as_me: failed program was:" >&5
21189sed 's/^/| /' conftest.$ac_ext >&5
21190
21191ac_cv_func_isinf_in_cmath=no
21192fi
Brian Gaeke0a621332004-09-08 20:38:05 +000021193rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000021194 ac_ext=c
21195ac_cpp='$CPP $CPPFLAGS'
21196ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21197ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21198ac_compiler_gnu=$ac_cv_c_compiler_gnu
21199
21200fi
21201echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21202echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21203 if test "$ac_cv_func_isinf_in_cmath" = "yes"
21204 then
21205
21206cat >>confdefs.h <<\_ACEOF
21207#define HAVE_ISINF_IN_CMATH 1
21208_ACEOF
21209
21210 fi
21211echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21212echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21213if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21214 echo $ECHO_N "(cached) $ECHO_C" >&6
21215else
21216 ac_ext=cc
21217ac_cpp='$CXXCPP $CPPFLAGS'
21218ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21219ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21220ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21221
21222 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000021223#line $LINENO "configure"
Brian Gaeke52a551d2004-07-21 03:14:12 +000021224/* confdefs.h. */
21225_ACEOF
21226cat confdefs.h >>conftest.$ac_ext
21227cat >>conftest.$ac_ext <<_ACEOF
21228/* end confdefs.h. */
21229#include <cmath>
21230 using std::isinf; int foo(float f) {return isinf(f);}
21231_ACEOF
21232rm -f conftest.$ac_objext
21233if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000021234 (eval $ac_compile) 2>&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021235 ac_status=$?
21236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000021238 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000021239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21240 (eval $ac_try) 2>&5
21241 ac_status=$?
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 ac_cv_func_std_isinf_in_cmath=yes
21245else
21246 echo "$as_me: failed program was:" >&5
21247sed 's/^/| /' conftest.$ac_ext >&5
21248
21249ac_cv_func_std_isinf_in_cmath=no
21250fi
Brian Gaeke0a621332004-09-08 20:38:05 +000021251rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000021252 ac_ext=c
21253ac_cpp='$CPP $CPPFLAGS'
21254ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21255ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21256ac_compiler_gnu=$ac_cv_c_compiler_gnu
21257
21258fi
21259echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
21260echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
21261 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
21262 then
21263
21264cat >>confdefs.h <<\_ACEOF
21265#define HAVE_STD_ISINF_IN_CMATH 1
21266_ACEOF
21267
21268 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000021269echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
21270echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
21271if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
21272 echo $ECHO_N "(cached) $ECHO_C" >&6
21273else
21274 ac_ext=cc
21275ac_cpp='$CXXCPP $CPPFLAGS'
21276ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21277ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21278ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21279
21280 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000021281#line $LINENO "configure"
Brian Gaeked59a6472004-07-21 03:33:58 +000021282/* confdefs.h. */
21283_ACEOF
21284cat confdefs.h >>conftest.$ac_ext
21285cat >>conftest.$ac_ext <<_ACEOF
21286/* end confdefs.h. */
21287#include <ieeefp.h>
21288 int foo(float f) {return finite(f);}
21289_ACEOF
21290rm -f conftest.$ac_objext
21291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000021292 (eval $ac_compile) 2>&5
Brian Gaeked59a6472004-07-21 03:33:58 +000021293 ac_status=$?
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000021296 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000021297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21298 (eval $ac_try) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); }; }; then
21302 ac_cv_func_finite_in_ieeefp_h=yes
21303else
21304 echo "$as_me: failed program was:" >&5
21305sed 's/^/| /' conftest.$ac_ext >&5
21306
21307ac_cv_func_finite_in_ieeefp_h=no
21308fi
Brian Gaeke0a621332004-09-08 20:38:05 +000021309rm -f conftest.$ac_objext conftest.$ac_ext
Brian Gaeked59a6472004-07-21 03:33:58 +000021310 ac_ext=c
21311ac_cpp='$CPP $CPPFLAGS'
21312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21314ac_compiler_gnu=$ac_cv_c_compiler_gnu
21315
21316fi
21317echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
21318echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
21319 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
21320 then
21321
21322cat >>confdefs.h <<\_ACEOF
21323#define HAVE_FINITE_IN_IEEEFP_H 1
21324_ACEOF
21325
21326 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000021327
21328
John Criswell7a73b802003-06-30 21:59:07 +000021329# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
21330# for constant arguments. Useless!
21331echo "$as_me:$LINENO: checking for working alloca.h" >&5
21332echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
21333if test "${ac_cv_working_alloca_h+set}" = set; then
21334 echo $ECHO_N "(cached) $ECHO_C" >&6
21335else
21336 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000021337#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021338/* confdefs.h. */
21339_ACEOF
21340cat confdefs.h >>conftest.$ac_ext
21341cat >>conftest.$ac_ext <<_ACEOF
21342/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021343#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000021344int
21345main ()
21346{
21347char *p = (char *) alloca (2 * sizeof (int));
21348 ;
21349 return 0;
21350}
21351_ACEOF
21352rm -f conftest.$ac_objext conftest$ac_exeext
21353if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000021354 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000021355 ac_status=$?
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000021358 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000021359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21361 ac_status=$?
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 ac_cv_working_alloca_h=yes
21365else
21366 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021367sed 's/^/| /' conftest.$ac_ext >&5
21368
John Criswell7a73b802003-06-30 21:59:07 +000021369ac_cv_working_alloca_h=no
21370fi
Brian Gaeke0a621332004-09-08 20:38:05 +000021371rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021372fi
21373echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
21374echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
21375if test $ac_cv_working_alloca_h = yes; then
21376
21377cat >>confdefs.h <<\_ACEOF
21378#define HAVE_ALLOCA_H 1
21379_ACEOF
21380
21381fi
21382
21383echo "$as_me:$LINENO: checking for alloca" >&5
21384echo $ECHO_N "checking for alloca... $ECHO_C" >&6
21385if test "${ac_cv_func_alloca_works+set}" = set; then
21386 echo $ECHO_N "(cached) $ECHO_C" >&6
21387else
21388 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000021389#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021390/* confdefs.h. */
21391_ACEOF
21392cat confdefs.h >>conftest.$ac_ext
21393cat >>conftest.$ac_ext <<_ACEOF
21394/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021395#ifdef __GNUC__
21396# define alloca __builtin_alloca
21397#else
21398# ifdef _MSC_VER
21399# include <malloc.h>
21400# define alloca _alloca
21401# else
21402# if HAVE_ALLOCA_H
21403# include <alloca.h>
21404# else
21405# ifdef _AIX
21406 #pragma alloca
21407# else
21408# ifndef alloca /* predefined by HP cc +Olibcalls */
21409char *alloca ();
21410# endif
21411# endif
21412# endif
21413# endif
21414#endif
21415
John Criswell7a73b802003-06-30 21:59:07 +000021416int
21417main ()
21418{
21419char *p = (char *) alloca (1);
21420 ;
21421 return 0;
21422}
21423_ACEOF
21424rm -f conftest.$ac_objext conftest$ac_exeext
21425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000021426 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000021427 ac_status=$?
21428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000021430 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000021431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21432 (eval $ac_try) 2>&5
21433 ac_status=$?
21434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21435 (exit $ac_status); }; }; then
21436 ac_cv_func_alloca_works=yes
21437else
21438 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021439sed 's/^/| /' conftest.$ac_ext >&5
21440
John Criswell7a73b802003-06-30 21:59:07 +000021441ac_cv_func_alloca_works=no
21442fi
Brian Gaeke0a621332004-09-08 20:38:05 +000021443rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021444fi
21445echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
21446echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
21447
21448if test $ac_cv_func_alloca_works = yes; then
21449
21450cat >>confdefs.h <<\_ACEOF
21451#define HAVE_ALLOCA 1
21452_ACEOF
21453
21454else
21455 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
21456# that cause trouble. Some versions do not even contain alloca or
21457# contain a buggy version. If you still want to use their alloca,
21458# use ar to extract alloca.o from them instead of compiling alloca.c.
21459
21460ALLOCA=alloca.$ac_objext
21461
21462cat >>confdefs.h <<\_ACEOF
21463#define C_ALLOCA 1
21464_ACEOF
21465
21466
21467echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
21468echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
21469if test "${ac_cv_os_cray+set}" = set; then
21470 echo $ECHO_N "(cached) $ECHO_C" >&6
21471else
21472 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000021473#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021474/* confdefs.h. */
21475_ACEOF
21476cat confdefs.h >>conftest.$ac_ext
21477cat >>conftest.$ac_ext <<_ACEOF
21478/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021479#if defined(CRAY) && ! defined(CRAY2)
21480webecray
21481#else
21482wenotbecray
21483#endif
21484
21485_ACEOF
21486if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000021487 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000021488 ac_cv_os_cray=yes
21489else
21490 ac_cv_os_cray=no
21491fi
21492rm -f conftest*
21493
21494fi
21495echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
21496echo "${ECHO_T}$ac_cv_os_cray" >&6
21497if test $ac_cv_os_cray = yes; then
21498 for ac_func in _getb67 GETB67 getb67; do
21499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21500echo "$as_me:$LINENO: checking for $ac_func" >&5
21501echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21502if eval "test \"\${$as_ac_var+set}\" = set"; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21504else
21505 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000021506#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021507/* confdefs.h. */
21508_ACEOF
21509cat confdefs.h >>conftest.$ac_ext
21510cat >>conftest.$ac_ext <<_ACEOF
21511/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021512/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021513 which can conflict with char $ac_func (); below.
21514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21515 <limits.h> exists even on freestanding compilers. */
21516#ifdef __STDC__
21517# include <limits.h>
21518#else
21519# include <assert.h>
21520#endif
John Criswell7a73b802003-06-30 21:59:07 +000021521/* Override any gcc2 internal prototype to avoid an error. */
21522#ifdef __cplusplus
21523extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021524{
John Criswell7a73b802003-06-30 21:59:07 +000021525#endif
21526/* We use char because int might match the return type of a gcc2
21527 builtin and then its argument prototype would still apply. */
21528char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021529/* The GNU C library defines this for functions which it implements
21530 to always fail with ENOSYS. Some functions are actually named
21531 something starting with __ and the normal name is an alias. */
21532#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21533choke me
21534#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021535char (*f) () = $ac_func;
21536#endif
21537#ifdef __cplusplus
21538}
John Criswell7a73b802003-06-30 21:59:07 +000021539#endif
21540
John Criswell0c38eaf2003-09-10 15:17:25 +000021541int
21542main ()
21543{
21544return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021545 ;
21546 return 0;
21547}
21548_ACEOF
21549rm -f conftest.$ac_objext conftest$ac_exeext
21550if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000021551 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000021552 ac_status=$?
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000021555 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000021556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21557 (eval $ac_try) 2>&5
21558 ac_status=$?
21559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21560 (exit $ac_status); }; }; then
21561 eval "$as_ac_var=yes"
21562else
21563 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021564sed 's/^/| /' conftest.$ac_ext >&5
21565
John Criswell7a73b802003-06-30 21:59:07 +000021566eval "$as_ac_var=no"
21567fi
Brian Gaeke0a621332004-09-08 20:38:05 +000021568rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021569fi
21570echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21571echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21572if test `eval echo '${'$as_ac_var'}'` = yes; then
21573
21574cat >>confdefs.h <<_ACEOF
21575#define CRAY_STACKSEG_END $ac_func
21576_ACEOF
21577
21578 break
21579fi
21580
21581 done
21582fi
21583
21584echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
21585echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
21586if test "${ac_cv_c_stack_direction+set}" = set; then
21587 echo $ECHO_N "(cached) $ECHO_C" >&6
21588else
21589 if test "$cross_compiling" = yes; then
21590 ac_cv_c_stack_direction=0
21591else
21592 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000021593#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021594/* confdefs.h. */
21595_ACEOF
21596cat confdefs.h >>conftest.$ac_ext
21597cat >>conftest.$ac_ext <<_ACEOF
21598/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021599int
21600find_stack_direction ()
21601{
21602 static char *addr = 0;
21603 auto char dummy;
21604 if (addr == 0)
21605 {
21606 addr = &dummy;
21607 return find_stack_direction ();
21608 }
21609 else
21610 return (&dummy > addr) ? 1 : -1;
21611}
21612
21613int
21614main ()
21615{
21616 exit (find_stack_direction () < 0);
21617}
21618_ACEOF
21619rm -f conftest$ac_exeext
21620if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21621 (eval $ac_link) 2>&5
21622 ac_status=$?
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21626 (eval $ac_try) 2>&5
21627 ac_status=$?
21628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21629 (exit $ac_status); }; }; then
21630 ac_cv_c_stack_direction=1
21631else
21632 echo "$as_me: program exited with status $ac_status" >&5
21633echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021634sed 's/^/| /' conftest.$ac_ext >&5
21635
John Criswell7a73b802003-06-30 21:59:07 +000021636( exit $ac_status )
21637ac_cv_c_stack_direction=-1
21638fi
Brian Gaeke0a621332004-09-08 20:38:05 +000021639rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021640fi
21641fi
21642echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
21643echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
21644
21645cat >>confdefs.h <<_ACEOF
21646#define STACK_DIRECTION $ac_cv_c_stack_direction
21647_ACEOF
21648
21649
21650fi
21651
John Criswell7a73b802003-06-30 21:59:07 +000021652
21653
21654for ac_header in stdlib.h unistd.h
21655do
21656as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21657if eval "test \"\${$as_ac_Header+set}\" = set"; then
21658 echo "$as_me:$LINENO: checking for $ac_header" >&5
21659echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21660if eval "test \"\${$as_ac_Header+set}\" = set"; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21662fi
21663echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21664echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21665else
21666 # Is the header compilable?
21667echo "$as_me:$LINENO: checking $ac_header usability" >&5
21668echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21669cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000021670#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021671/* confdefs.h. */
21672_ACEOF
21673cat confdefs.h >>conftest.$ac_ext
21674cat >>conftest.$ac_ext <<_ACEOF
21675/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021676$ac_includes_default
21677#include <$ac_header>
21678_ACEOF
21679rm -f conftest.$ac_objext
21680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000021681 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000021682 ac_status=$?
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000021685 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21687 (eval $ac_try) 2>&5
21688 ac_status=$?
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); }; }; then
21691 ac_header_compiler=yes
21692else
21693 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021694sed 's/^/| /' conftest.$ac_ext >&5
21695
John Criswell7a73b802003-06-30 21:59:07 +000021696ac_header_compiler=no
21697fi
Brian Gaeke0a621332004-09-08 20:38:05 +000021698rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021699echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21700echo "${ECHO_T}$ac_header_compiler" >&6
21701
21702# Is the header present?
21703echo "$as_me:$LINENO: checking $ac_header presence" >&5
21704echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21705cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000021706#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021707/* confdefs.h. */
21708_ACEOF
21709cat confdefs.h >>conftest.$ac_ext
21710cat >>conftest.$ac_ext <<_ACEOF
21711/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021712#include <$ac_header>
21713_ACEOF
21714if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21715 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21716 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000021717 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000021718 rm -f conftest.er1
21719 cat conftest.err >&5
21720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21721 (exit $ac_status); } >/dev/null; then
21722 if test -s conftest.err; then
21723 ac_cpp_err=$ac_c_preproc_warn_flag
21724 else
21725 ac_cpp_err=
21726 fi
21727else
21728 ac_cpp_err=yes
21729fi
21730if test -z "$ac_cpp_err"; then
21731 ac_header_preproc=yes
21732else
21733 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021734sed 's/^/| /' conftest.$ac_ext >&5
21735
John Criswell7a73b802003-06-30 21:59:07 +000021736 ac_header_preproc=no
21737fi
21738rm -f conftest.err conftest.$ac_ext
21739echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21740echo "${ECHO_T}$ac_header_preproc" >&6
21741
21742# So? What about this header?
Brian Gaeke0a621332004-09-08 20:38:05 +000021743case $ac_header_compiler:$ac_header_preproc in
21744 yes:no )
John Criswell7a73b802003-06-30 21:59:07 +000021745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21746echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000021747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21748echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21749 (
21750 cat <<\_ASBOX
Brian Gaeke0a621332004-09-08 20:38:05 +000021751## ------------------------------------ ##
21752## Report this to bug-autoconf@gnu.org. ##
21753## ------------------------------------ ##
21754_ASBOX
21755 ) |
21756 sed "s/^/$as_me: WARNING: /" >&2
21757 ;;
21758 no:yes )
21759 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21761 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21762echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21765 (
21766 cat <<\_ASBOX
21767## ------------------------------------ ##
21768## Report this to bug-autoconf@gnu.org. ##
21769## ------------------------------------ ##
John Criswell0c38eaf2003-09-10 15:17:25 +000021770_ASBOX
21771 ) |
21772 sed "s/^/$as_me: WARNING: /" >&2
21773 ;;
John Criswell7a73b802003-06-30 21:59:07 +000021774esac
21775echo "$as_me:$LINENO: checking for $ac_header" >&5
21776echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21777if eval "test \"\${$as_ac_Header+set}\" = set"; then
21778 echo $ECHO_N "(cached) $ECHO_C" >&6
21779else
Brian Gaeke0a621332004-09-08 20:38:05 +000021780 eval "$as_ac_Header=$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000021781fi
21782echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21783echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21784
21785fi
21786if test `eval echo '${'$as_ac_Header'}'` = yes; then
21787 cat >>confdefs.h <<_ACEOF
21788#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21789_ACEOF
21790
21791fi
21792
21793done
21794
21795
21796for ac_func in getpagesize
21797do
21798as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21799echo "$as_me:$LINENO: checking for $ac_func" >&5
21800echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21801if eval "test \"\${$as_ac_var+set}\" = set"; then
21802 echo $ECHO_N "(cached) $ECHO_C" >&6
21803else
21804 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000021805#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021806/* confdefs.h. */
21807_ACEOF
21808cat confdefs.h >>conftest.$ac_ext
21809cat >>conftest.$ac_ext <<_ACEOF
21810/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021811/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000021812 which can conflict with char $ac_func (); below.
21813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21814 <limits.h> exists even on freestanding compilers. */
21815#ifdef __STDC__
21816# include <limits.h>
21817#else
21818# include <assert.h>
21819#endif
John Criswell7a73b802003-06-30 21:59:07 +000021820/* Override any gcc2 internal prototype to avoid an error. */
21821#ifdef __cplusplus
21822extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000021823{
John Criswell7a73b802003-06-30 21:59:07 +000021824#endif
21825/* We use char because int might match the return type of a gcc2
21826 builtin and then its argument prototype would still apply. */
21827char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000021828/* The GNU C library defines this for functions which it implements
21829 to always fail with ENOSYS. Some functions are actually named
21830 something starting with __ and the normal name is an alias. */
21831#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21832choke me
21833#else
John Criswell0c38eaf2003-09-10 15:17:25 +000021834char (*f) () = $ac_func;
21835#endif
21836#ifdef __cplusplus
21837}
John Criswell7a73b802003-06-30 21:59:07 +000021838#endif
21839
John Criswell0c38eaf2003-09-10 15:17:25 +000021840int
21841main ()
21842{
21843return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000021844 ;
21845 return 0;
21846}
21847_ACEOF
21848rm -f conftest.$ac_objext conftest$ac_exeext
21849if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000021850 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000021851 ac_status=$?
21852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000021854 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000021855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21856 (eval $ac_try) 2>&5
21857 ac_status=$?
21858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21859 (exit $ac_status); }; }; then
21860 eval "$as_ac_var=yes"
21861else
21862 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021863sed 's/^/| /' conftest.$ac_ext >&5
21864
John Criswell7a73b802003-06-30 21:59:07 +000021865eval "$as_ac_var=no"
21866fi
Brian Gaeke0a621332004-09-08 20:38:05 +000021867rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021868fi
21869echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21870echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21871if test `eval echo '${'$as_ac_var'}'` = yes; then
21872 cat >>confdefs.h <<_ACEOF
21873#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21874_ACEOF
21875
21876fi
21877done
21878
21879echo "$as_me:$LINENO: checking for working mmap" >&5
21880echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
21881if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
21882 echo $ECHO_N "(cached) $ECHO_C" >&6
21883else
21884 if test "$cross_compiling" = yes; then
21885 ac_cv_func_mmap_fixed_mapped=no
21886else
21887 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000021888#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000021889/* confdefs.h. */
21890_ACEOF
21891cat confdefs.h >>conftest.$ac_ext
21892cat >>conftest.$ac_ext <<_ACEOF
21893/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021894$ac_includes_default
21895/* malloc might have been renamed as rpl_malloc. */
21896#undef malloc
21897
21898/* Thanks to Mike Haertel and Jim Avera for this test.
21899 Here is a matrix of mmap possibilities:
21900 mmap private not fixed
21901 mmap private fixed at somewhere currently unmapped
21902 mmap private fixed at somewhere already mapped
21903 mmap shared not fixed
21904 mmap shared fixed at somewhere currently unmapped
21905 mmap shared fixed at somewhere already mapped
21906 For private mappings, we should verify that changes cannot be read()
21907 back from the file, nor mmap's back from the file at a different
21908 address. (There have been systems where private was not correctly
21909 implemented like the infamous i386 svr4.0, and systems where the
21910 VM page cache was not coherent with the file system buffer cache
21911 like early versions of FreeBSD and possibly contemporary NetBSD.)
21912 For shared mappings, we should conversely verify that changes get
21913 propagated back to all the places they're supposed to be.
21914
21915 Grep wants private fixed already mapped.
21916 The main things grep needs to know about mmap are:
21917 * does it exist and is it safe to write into the mmap'd area
21918 * how to use it (BSD variants) */
21919
21920#include <fcntl.h>
21921#include <sys/mman.h>
21922
21923#if !STDC_HEADERS && !HAVE_STDLIB_H
21924char *malloc ();
21925#endif
21926
21927/* This mess was copied from the GNU getpagesize.h. */
21928#if !HAVE_GETPAGESIZE
21929/* Assume that all systems that can run configure have sys/param.h. */
21930# if !HAVE_SYS_PARAM_H
21931# define HAVE_SYS_PARAM_H 1
21932# endif
21933
21934# ifdef _SC_PAGESIZE
21935# define getpagesize() sysconf(_SC_PAGESIZE)
21936# else /* no _SC_PAGESIZE */
21937# if HAVE_SYS_PARAM_H
21938# include <sys/param.h>
21939# ifdef EXEC_PAGESIZE
21940# define getpagesize() EXEC_PAGESIZE
21941# else /* no EXEC_PAGESIZE */
21942# ifdef NBPG
21943# define getpagesize() NBPG * CLSIZE
21944# ifndef CLSIZE
21945# define CLSIZE 1
21946# endif /* no CLSIZE */
21947# else /* no NBPG */
21948# ifdef NBPC
21949# define getpagesize() NBPC
21950# else /* no NBPC */
21951# ifdef PAGESIZE
21952# define getpagesize() PAGESIZE
21953# endif /* PAGESIZE */
21954# endif /* no NBPC */
21955# endif /* no NBPG */
21956# endif /* no EXEC_PAGESIZE */
21957# else /* no HAVE_SYS_PARAM_H */
21958# define getpagesize() 8192 /* punt totally */
21959# endif /* no HAVE_SYS_PARAM_H */
21960# endif /* no _SC_PAGESIZE */
21961
21962#endif /* no HAVE_GETPAGESIZE */
21963
21964int
21965main ()
21966{
21967 char *data, *data2, *data3;
21968 int i, pagesize;
21969 int fd;
21970
21971 pagesize = getpagesize ();
21972
21973 /* First, make a file with some known garbage in it. */
21974 data = (char *) malloc (pagesize);
21975 if (!data)
21976 exit (1);
21977 for (i = 0; i < pagesize; ++i)
21978 *(data + i) = rand ();
21979 umask (0);
21980 fd = creat ("conftest.mmap", 0600);
21981 if (fd < 0)
21982 exit (1);
21983 if (write (fd, data, pagesize) != pagesize)
21984 exit (1);
21985 close (fd);
21986
21987 /* Next, try to mmap the file at a fixed address which already has
21988 something else allocated at it. If we can, also make sure that
21989 we see the same garbage. */
21990 fd = open ("conftest.mmap", O_RDWR);
21991 if (fd < 0)
21992 exit (1);
21993 data2 = (char *) malloc (2 * pagesize);
21994 if (!data2)
21995 exit (1);
Brian Gaeke0a621332004-09-08 20:38:05 +000021996 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000021997 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Brian Gaeke0a621332004-09-08 20:38:05 +000021998 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000021999 exit (1);
22000 for (i = 0; i < pagesize; ++i)
22001 if (*(data + i) != *(data2 + i))
22002 exit (1);
22003
22004 /* Finally, make sure that changes to the mapped area do not
22005 percolate back to the file as seen by read(). (This is a bug on
22006 some variants of i386 svr4.0.) */
22007 for (i = 0; i < pagesize; ++i)
22008 *(data2 + i) = *(data2 + i) + 1;
22009 data3 = (char *) malloc (pagesize);
22010 if (!data3)
22011 exit (1);
22012 if (read (fd, data3, pagesize) != pagesize)
22013 exit (1);
22014 for (i = 0; i < pagesize; ++i)
22015 if (*(data + i) != *(data3 + i))
22016 exit (1);
22017 close (fd);
22018 exit (0);
22019}
22020_ACEOF
22021rm -f conftest$ac_exeext
22022if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22023 (eval $ac_link) 2>&5
22024 ac_status=$?
22025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22026 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22028 (eval $ac_try) 2>&5
22029 ac_status=$?
22030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22031 (exit $ac_status); }; }; then
22032 ac_cv_func_mmap_fixed_mapped=yes
22033else
22034 echo "$as_me: program exited with status $ac_status" >&5
22035echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022036sed 's/^/| /' conftest.$ac_ext >&5
22037
John Criswell7a73b802003-06-30 21:59:07 +000022038( exit $ac_status )
22039ac_cv_func_mmap_fixed_mapped=no
22040fi
Brian Gaeke0a621332004-09-08 20:38:05 +000022041rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022042fi
22043fi
22044echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22045echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22046if test $ac_cv_func_mmap_fixed_mapped = yes; then
22047
22048cat >>confdefs.h <<\_ACEOF
22049#define HAVE_MMAP 1
22050_ACEOF
22051
22052fi
22053rm -f conftest.mmap
22054
Brian Gaeke26be9c52004-01-13 06:43:16 +000022055if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22056then
John Criswellf3ecf3a2004-05-27 00:57:50 +000022057 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22058echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000022059fi
John Criswell7a73b802003-06-30 21:59:07 +000022060echo "$as_me:$LINENO: checking for mmap of files" >&5
22061echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22062if test "${ac_cv_func_mmap_file+set}" = set; then
22063 echo $ECHO_N "(cached) $ECHO_C" >&6
22064else
22065
22066
22067 ac_ext=c
22068ac_cpp='$CPP $CPPFLAGS'
22069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22071ac_compiler_gnu=$ac_cv_c_compiler_gnu
22072
22073 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022074 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22075See \`config.log' for more details." >&5
22076echo "$as_me: error: cannot run test program while cross compiling
22077See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022078 { (exit 1); exit 1; }; }
22079else
22080 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000022081#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022082/* confdefs.h. */
22083_ACEOF
22084cat confdefs.h >>conftest.$ac_ext
22085cat >>conftest.$ac_ext <<_ACEOF
22086/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022087
John Criswell7a73b802003-06-30 21:59:07 +000022088#ifdef HAVE_SYS_TYPES_H
22089#include <sys/types.h>
22090#endif
22091
John Criswell5ab73462003-10-09 15:44:28 +000022092#ifdef HAVE_SYS_MMAN_H
22093#include <sys/mman.h>
22094#endif
22095
John Criswell7a73b802003-06-30 21:59:07 +000022096#ifdef HAVE_FCNTL_H
22097#include <fcntl.h>
22098#endif
22099
22100 int fd;
22101 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022102 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 +000022103_ACEOF
22104rm -f conftest$ac_exeext
22105if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22106 (eval $ac_link) 2>&5
22107 ac_status=$?
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111 (eval $ac_try) 2>&5
22112 ac_status=$?
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; }; then
22115 ac_cv_func_mmap_file=yes
22116else
22117 echo "$as_me: program exited with status $ac_status" >&5
22118echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022119sed 's/^/| /' conftest.$ac_ext >&5
22120
John Criswell7a73b802003-06-30 21:59:07 +000022121( exit $ac_status )
22122ac_cv_func_mmap_file=no
22123fi
Brian Gaeke0a621332004-09-08 20:38:05 +000022124rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022125fi
22126 ac_ext=c
22127ac_cpp='$CPP $CPPFLAGS'
22128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22130ac_compiler_gnu=$ac_cv_c_compiler_gnu
22131
22132
22133fi
22134echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22135echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22136if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022137
22138cat >>confdefs.h <<\_ACEOF
22139#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000022140_ACEOF
22141
22142 MMAP_FILE=yes
22143
22144fi
22145
Brian Gaeke26be9c52004-01-13 06:43:16 +000022146if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000022147then
John Criswellf3ecf3a2004-05-27 00:57:50 +000022148 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
22149echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022150fi
22151echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
22152echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
22153if test "${ac_cv_header_mmap_anon+set}" = set; then
22154 echo $ECHO_N "(cached) $ECHO_C" >&6
22155else
22156
22157
22158 ac_ext=c
22159ac_cpp='$CPP $CPPFLAGS'
22160ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22161ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22162ac_compiler_gnu=$ac_cv_c_compiler_gnu
22163
22164 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000022165#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022166/* confdefs.h. */
22167_ACEOF
22168cat confdefs.h >>conftest.$ac_ext
22169cat >>conftest.$ac_ext <<_ACEOF
22170/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022171#include <sys/mman.h>
22172 #include <unistd.h>
22173 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000022174int
22175main ()
22176{
22177mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
22178 ;
22179 return 0;
22180}
22181_ACEOF
22182rm -f conftest.$ac_objext
22183if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000022184 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000022185 ac_status=$?
22186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22187 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000022188 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22190 (eval $ac_try) 2>&5
22191 ac_status=$?
22192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22193 (exit $ac_status); }; }; then
22194 ac_cv_header_mmap_anon=yes
22195else
22196 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022197sed 's/^/| /' conftest.$ac_ext >&5
22198
John Criswell7a73b802003-06-30 21:59:07 +000022199ac_cv_header_mmap_anon=no
22200fi
Brian Gaeke0a621332004-09-08 20:38:05 +000022201rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022202 ac_ext=c
22203ac_cpp='$CPP $CPPFLAGS'
22204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22206ac_compiler_gnu=$ac_cv_c_compiler_gnu
22207
22208
22209fi
22210echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
22211echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
22212if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022213
22214cat >>confdefs.h <<\_ACEOF
22215#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000022216_ACEOF
22217
22218fi
22219
22220echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22221echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22222if test "${ac_cv_type_signal+set}" = set; then
22223 echo $ECHO_N "(cached) $ECHO_C" >&6
22224else
22225 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000022226#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022227/* confdefs.h. */
22228_ACEOF
22229cat confdefs.h >>conftest.$ac_ext
22230cat >>conftest.$ac_ext <<_ACEOF
22231/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022232#include <sys/types.h>
22233#include <signal.h>
22234#ifdef signal
22235# undef signal
22236#endif
22237#ifdef __cplusplus
22238extern "C" void (*signal (int, void (*)(int)))(int);
22239#else
22240void (*signal ()) ();
22241#endif
22242
John Criswell7a73b802003-06-30 21:59:07 +000022243int
22244main ()
22245{
22246int i;
22247 ;
22248 return 0;
22249}
22250_ACEOF
22251rm -f conftest.$ac_objext
22252if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000022253 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000022254 ac_status=$?
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000022257 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22259 (eval $ac_try) 2>&5
22260 ac_status=$?
22261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22262 (exit $ac_status); }; }; then
22263 ac_cv_type_signal=void
22264else
22265 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022266sed 's/^/| /' conftest.$ac_ext >&5
22267
John Criswell7a73b802003-06-30 21:59:07 +000022268ac_cv_type_signal=int
22269fi
Brian Gaeke0a621332004-09-08 20:38:05 +000022270rm -f conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022271fi
22272echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22273echo "${ECHO_T}$ac_cv_type_signal" >&6
22274
22275cat >>confdefs.h <<_ACEOF
22276#define RETSIGTYPE $ac_cv_type_signal
22277_ACEOF
22278
22279
22280
22281
22282
22283
22284
Brian Gaekef5261472004-02-20 06:40:57 +000022285
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000022286
John Criswelld6621562004-06-07 14:26:24 +000022287
22288
John Criswell7ed43ad2004-07-19 16:12:29 +000022289for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000022290do
22291as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22292echo "$as_me:$LINENO: checking for $ac_func" >&5
22293echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22294if eval "test \"\${$as_ac_var+set}\" = set"; then
22295 echo $ECHO_N "(cached) $ECHO_C" >&6
22296else
22297 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000022298#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022299/* confdefs.h. */
22300_ACEOF
22301cat confdefs.h >>conftest.$ac_ext
22302cat >>conftest.$ac_ext <<_ACEOF
22303/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022304/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022305 which can conflict with char $ac_func (); below.
22306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22307 <limits.h> exists even on freestanding compilers. */
22308#ifdef __STDC__
22309# include <limits.h>
22310#else
22311# include <assert.h>
22312#endif
John Criswell7a73b802003-06-30 21:59:07 +000022313/* Override any gcc2 internal prototype to avoid an error. */
22314#ifdef __cplusplus
22315extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022316{
John Criswell7a73b802003-06-30 21:59:07 +000022317#endif
22318/* We use char because int might match the return type of a gcc2
22319 builtin and then its argument prototype would still apply. */
22320char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022321/* The GNU C library defines this for functions which it implements
22322 to always fail with ENOSYS. Some functions are actually named
22323 something starting with __ and the normal name is an alias. */
22324#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22325choke me
22326#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022327char (*f) () = $ac_func;
22328#endif
22329#ifdef __cplusplus
22330}
John Criswell7a73b802003-06-30 21:59:07 +000022331#endif
22332
John Criswell0c38eaf2003-09-10 15:17:25 +000022333int
22334main ()
22335{
22336return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022337 ;
22338 return 0;
22339}
22340_ACEOF
22341rm -f conftest.$ac_objext conftest$ac_exeext
22342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000022343 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000022344 ac_status=$?
22345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22346 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000022347 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22350 ac_status=$?
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
22353 eval "$as_ac_var=yes"
22354else
22355 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022356sed 's/^/| /' conftest.$ac_ext >&5
22357
John Criswell7a73b802003-06-30 21:59:07 +000022358eval "$as_ac_var=no"
22359fi
Brian Gaeke0a621332004-09-08 20:38:05 +000022360rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022361fi
22362echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22363echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22364if test `eval echo '${'$as_ac_var'}'` = yes; then
22365 cat >>confdefs.h <<_ACEOF
22366#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22367_ACEOF
22368
22369fi
22370done
22371
John Criswell7a73b802003-06-30 21:59:07 +000022372echo "$as_me:$LINENO: checking for mprotect" >&5
22373echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
22374if test "${ac_cv_func_mprotect+set}" = set; then
22375 echo $ECHO_N "(cached) $ECHO_C" >&6
22376else
22377 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000022378#line $LINENO "configure"
John Criswell0c38eaf2003-09-10 15:17:25 +000022379/* confdefs.h. */
22380_ACEOF
22381cat confdefs.h >>conftest.$ac_ext
22382cat >>conftest.$ac_ext <<_ACEOF
22383/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022384/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022385 which can conflict with char mprotect (); below.
22386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22387 <limits.h> exists even on freestanding compilers. */
22388#ifdef __STDC__
22389# include <limits.h>
22390#else
22391# include <assert.h>
22392#endif
John Criswell7a73b802003-06-30 21:59:07 +000022393/* Override any gcc2 internal prototype to avoid an error. */
22394#ifdef __cplusplus
22395extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022396{
John Criswell7a73b802003-06-30 21:59:07 +000022397#endif
22398/* We use char because int might match the return type of a gcc2
22399 builtin and then its argument prototype would still apply. */
22400char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000022401/* The GNU C library defines this for functions which it implements
22402 to always fail with ENOSYS. Some functions are actually named
22403 something starting with __ and the normal name is an alias. */
22404#if defined (__stub_mprotect) || defined (__stub___mprotect)
22405choke me
22406#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022407char (*f) () = mprotect;
22408#endif
22409#ifdef __cplusplus
22410}
John Criswell7a73b802003-06-30 21:59:07 +000022411#endif
22412
John Criswell0c38eaf2003-09-10 15:17:25 +000022413int
22414main ()
22415{
22416return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000022417 ;
22418 return 0;
22419}
22420_ACEOF
22421rm -f conftest.$ac_objext conftest$ac_exeext
22422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000022423 (eval $ac_link) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +000022424 ac_status=$?
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000022427 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22429 (eval $ac_try) 2>&5
22430 ac_status=$?
22431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22432 (exit $ac_status); }; }; then
22433 ac_cv_func_mprotect=yes
22434else
22435 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022436sed 's/^/| /' conftest.$ac_ext >&5
22437
John Criswell7a73b802003-06-30 21:59:07 +000022438ac_cv_func_mprotect=no
22439fi
Brian Gaeke0a621332004-09-08 20:38:05 +000022440rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022441fi
22442echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
22443echo "${ECHO_T}$ac_cv_func_mprotect" >&6
22444if test $ac_cv_func_mprotect = yes; then
22445 :
22446else
22447 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
22448echo "$as_me: error: Function mprotect() required but not found" >&2;}
22449 { (exit 1); exit 1; }; }
22450fi
22451
22452
John Criswellb13092b2003-07-22 21:00:24 +000022453
Brian Gaekeadfe28d2004-07-21 03:50:25 +000022454 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
22455echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000022456
22457
22458 ac_ext=c
22459ac_cpp='$CPP $CPPFLAGS'
22460ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22461ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22462ac_compiler_gnu=$ac_cv_c_compiler_gnu
22463
Brian Gaekef91a15c2003-11-18 06:20:41 +000022464 oldcflags="$CFLAGS"
22465 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000022466 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000022467int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000022468_ACEOF
22469rm -f conftest.$ac_objext conftest$ac_exeext
22470if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Brian Gaeke0a621332004-09-08 20:38:05 +000022471 (eval $ac_link) 2>&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000022472 ac_status=$?
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); } &&
Brian Gaeke0a621332004-09-08 20:38:05 +000022475 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000022476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22477 (eval $ac_try) 2>&5
22478 ac_status=$?
22479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480 (exit $ac_status); }; }; then
22481 ac_cv_link_use_r=yes
22482else
22483 echo "$as_me: failed program was:" >&5
22484sed 's/^/| /' conftest.$ac_ext >&5
22485
Brian Gaekef91a15c2003-11-18 06:20:41 +000022486ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000022487fi
Brian Gaeke0a621332004-09-08 20:38:05 +000022488rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000022489 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000022490 ac_ext=c
22491ac_cpp='$CPP $CPPFLAGS'
22492ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22493ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22494ac_compiler_gnu=$ac_cv_c_compiler_gnu
22495
Brian Gaekeadfe28d2004-07-21 03:50:25 +000022496 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
22497echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000022498 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000022499 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000022500
22501cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000022502#define HAVE_LINK_R 1
22503_ACEOF
22504
22505 fi
22506
22507
John Criswell7a73b802003-06-30 21:59:07 +000022508# Check whether --enable-optimized or --disable-optimized was given.
22509if test "${enable_optimized+set}" = set; then
22510 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000022511
22512else
John Criswellb13092b2003-07-22 21:00:24 +000022513 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000022514fi;
John Criswellb13092b2003-07-22 21:00:24 +000022515if test ${enableval} = "no"
22516then
22517 ENABLE_OPTIMIZED=
22518
22519else
22520 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
22521
22522fi
22523
John Criswellb13092b2003-07-22 21:00:24 +000022524# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000022525if test "${enable_jit+set}" = set; then
22526 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000022527
22528else
John Criswellc78022e2003-07-29 19:11:58 +000022529 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000022530fi;
John Criswellb13092b2003-07-22 21:00:24 +000022531if test ${enableval} = "no"
22532then
22533 JIT=
22534
22535else
John Criswellc78022e2003-07-29 19:11:58 +000022536 case $target in
22537 *i*86*)
22538 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000022539
John Criswellc78022e2003-07-29 19:11:58 +000022540 ;;
22541 *sparc*)
22542 JIT=TARGET_HAS_JIT=1
22543
22544 ;;
22545 *)
22546 JIT=
22547
22548 ;;
22549 esac
John Criswellb13092b2003-07-22 21:00:24 +000022550fi
John Criswell7a73b802003-06-30 21:59:07 +000022551
22552
John Criswell7a73b802003-06-30 21:59:07 +000022553# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
22554if test "${with_llvmgccdir+set}" = set; then
22555 withval="$with_llvmgccdir"
22556 LLVMGCCDIR=$withval
22557
22558fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000022559echo "$as_me:$LINENO: checking for llvm-gcc" >&5
22560echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
22561LLVM_GCC_CHECK=no
22562if test -d "$LLVMGCCDIR"
22563then
22564 if test -x "$LLVMGCCDIR/bin/gcc"
22565 then
22566 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
22567 fi
22568fi
22569llvmgccwarn=no
22570echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
22571echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
22572if test "$LLVM_GCC_CHECK" = "no"
22573then
22574 llvmgccwarn=yes
22575fi
Brian Gaekef3b24102003-11-16 18:38:14 +000022576echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
22577echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
22578LLVM_GCC_SANE=no
22579if test -x "$LLVM_GCC_CHECK"
22580then
22581 cp /dev/null conftest.c
22582 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
22583 if test $? -eq 0
22584 then
22585 LLVM_GCC_SANE=yes
22586 fi
22587 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000022588 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000022589 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000022590
22591 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000022592 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000022593
Brian Gaekef3b24102003-11-16 18:38:14 +000022594fi
22595echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
22596echo "${ECHO_T}$LLVM_GCC_SANE" >&6
22597if test "$LLVM_GCC_SANE" = "no"
22598then
22599 llvmgccwarn=yes
22600fi
22601
Brian Gaeke554831c2004-01-21 19:39:29 +000022602echo "$as_me:$LINENO: checking for shared library suffix" >&5
22603echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
22604eval "SHLIBEXT=$shrext"
22605echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
22606echo "${ECHO_T}$SHLIBEXT" >&6
22607SHLIBEXT=$SHLIBEXT
22608
22609
22610cat >>confdefs.h <<_ACEOF
22611#define SHLIBEXT "$SHLIBEXT"
22612_ACEOF
22613
22614
Reid Spencere9de0912004-08-20 09:03:57 +000022615# Translate the various configuration directories and other basic
22616# information into substitutions that will end up in config.h.in so
22617# that these configured values can be hard-wired into a program.
22618eval LLVM_PREFIX="${prefix}";
22619eval LLVM_BINDIR="${prefix}/bin";
22620eval LLVM_LIBDIR="${prefix}/lib";
22621eval LLVM_DATADIR="${prefix}/data";
22622eval LLVM_DOCSDIR="${prefix}/docs";
22623eval LLVM_ETCDIR="${prefix}/etc";
22624eval LLVM_INCLUDEDIR="${prefix}/include";
22625eval LLVM_INFODIR="${prefix}/info";
22626eval LLVM_MANDIR="${prefix}/man";
22627LLVM_CONFIGTIME=`date`
22628
22629
22630
22631
22632
22633
22634
22635
22636
22637
22638
22639cat >>confdefs.h <<_ACEOF
22640#define LLVM_PREFIX "$LLVM_PREFIX"
22641_ACEOF
22642
22643
22644cat >>confdefs.h <<_ACEOF
22645#define LLVM_BINDIR "$LLVM_BINDIR"
22646_ACEOF
22647
22648
22649cat >>confdefs.h <<_ACEOF
22650#define LLVM_LIBDIR "$LLVM_LIBDIR"
22651_ACEOF
22652
22653
22654cat >>confdefs.h <<_ACEOF
22655#define LLVM_DATADIR "$LLVM_DATADIR"
22656_ACEOF
22657
22658
22659cat >>confdefs.h <<_ACEOF
22660#define LLVM_DATADIR "$LLVM_DOCSDIR"
22661_ACEOF
22662
22663
22664cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000022665#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000022666_ACEOF
22667
22668
22669cat >>confdefs.h <<_ACEOF
22670#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
22671_ACEOF
22672
22673
22674cat >>confdefs.h <<_ACEOF
22675#define LLVM_INFODIR "$LLVM_INFODIR"
22676_ACEOF
22677
22678
22679cat >>confdefs.h <<_ACEOF
22680#define LLVM_MANDIR "$LLVM_MANDIR"
22681_ACEOF
22682
22683
22684cat >>confdefs.h <<_ACEOF
22685#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
22686_ACEOF
22687
22688
John Criswell7a73b802003-06-30 21:59:07 +000022689cat >confcache <<\_ACEOF
22690# This file is a shell script that caches the results of configure
22691# tests run on this system so they can be shared between configure
22692# scripts and configure runs, see configure's option --config-cache.
22693# It is not useful on other systems. If it contains results you don't
22694# want to keep, you may remove or edit it.
22695#
22696# config.status only pays attention to the cache file if you give it
22697# the --recheck option to rerun configure.
22698#
John Criswell0c38eaf2003-09-10 15:17:25 +000022699# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000022700# loading this file, other *unset* `ac_cv_foo' will be assigned the
22701# following values.
22702
22703_ACEOF
22704
22705# The following way of writing the cache mishandles newlines in values,
22706# but we know of no workaround that is simple, portable, and efficient.
22707# So, don't put newlines in cache variables' values.
22708# Ultrix sh set writes to stderr and can't be redirected directly,
22709# and sets the high bit in the cache file unless we assign to the vars.
22710{
22711 (set) 2>&1 |
22712 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22713 *ac_space=\ *)
22714 # `set' does not quote correctly, so add quotes (double-quote
22715 # substitution turns \\\\ into \\, and sed turns \\ into \).
22716 sed -n \
Brian Gaeke0a621332004-09-08 20:38:05 +000022717 "s/'/'\\\\''/g;
22718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000022719 ;;
22720 *)
22721 # `set' quotes correctly as required by POSIX, so do not add quotes.
22722 sed -n \
Brian Gaeke0a621332004-09-08 20:38:05 +000022723 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000022724 ;;
22725 esac;
22726} |
22727 sed '
22728 t clear
22729 : clear
22730 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22731 t end
22732 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22733 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000022734if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000022735 if test -w $cache_file; then
22736 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22737 cat confcache >$cache_file
22738 else
22739 echo "not updating unwritable cache $cache_file"
22740 fi
22741fi
22742rm -f confcache
22743
22744test "x$prefix" = xNONE && prefix=$ac_default_prefix
22745# Let make expand exec_prefix.
22746test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22747
22748# VPATH may cause trouble with some makes, so we remove $(srcdir),
22749# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22750# trailing colons and then remove the whole line if VPATH becomes empty
22751# (actually we leave an empty line to preserve line numbers).
22752if test "x$srcdir" = x.; then
Brian Gaeke0a621332004-09-08 20:38:05 +000022753 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000022754s/:*\$(srcdir):*/:/;
22755s/:*\${srcdir}:*/:/;
22756s/:*@srcdir@:*/:/;
Brian Gaeke0a621332004-09-08 20:38:05 +000022757s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000022758s/:*$//;
Brian Gaeke0a621332004-09-08 20:38:05 +000022759s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000022760}'
22761fi
22762
22763DEFS=-DHAVE_CONFIG_H
22764
John Criswell0c38eaf2003-09-10 15:17:25 +000022765ac_libobjs=
22766ac_ltlibobjs=
22767for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22768 # 1. Remove the extension, and $U if already installed.
22769 ac_i=`echo "$ac_i" |
Brian Gaeke0a621332004-09-08 20:38:05 +000022770 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000022771 # 2. Add them.
22772 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22773 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22774done
22775LIBOBJS=$ac_libobjs
22776
22777LTLIBOBJS=$ac_ltlibobjs
22778
22779
John Criswell7a73b802003-06-30 21:59:07 +000022780
22781: ${CONFIG_STATUS=./config.status}
22782ac_clean_files_save=$ac_clean_files
22783ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22784{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22785echo "$as_me: creating $CONFIG_STATUS" >&6;}
22786cat >$CONFIG_STATUS <<_ACEOF
22787#! $SHELL
22788# Generated by $as_me.
22789# Run this file to recreate the current configuration.
22790# Compiler output produced by configure, useful for debugging
22791# configure, is in config.log if it exists.
22792
22793debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000022794ac_cs_recheck=false
22795ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000022796SHELL=\${CONFIG_SHELL-$SHELL}
22797_ACEOF
22798
22799cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000022800## --------------------- ##
22801## M4sh Initialization. ##
22802## --------------------- ##
22803
22804# Be Bourne compatible
22805if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22806 emulate sh
22807 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000022808 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22809 # is contrary to our usage. Disable this feature.
22810 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000022811elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22812 set -o posix
22813fi
22814
John Criswell7a73b802003-06-30 21:59:07 +000022815# Support unset when possible.
Brian Gaeke0a621332004-09-08 20:38:05 +000022816if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022817 as_unset=unset
22818else
22819 as_unset=false
22820fi
22821
John Criswell0c38eaf2003-09-10 15:17:25 +000022822
22823# Work around bugs in pre-3.0 UWIN ksh.
22824$as_unset ENV MAIL MAILPATH
22825PS1='$ '
22826PS2='> '
22827PS4='+ '
22828
22829# NLS nuisances.
22830for as_var in \
22831 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22832 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22833 LC_TELEPHONE LC_TIME
22834do
Brian Gaeke0a621332004-09-08 20:38:05 +000022835 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000022836 eval $as_var=C; export $as_var
22837 else
22838 $as_unset $as_var
22839 fi
22840done
22841
22842# Required to use basename.
22843if expr a : '\(a\)' >/dev/null 2>&1; then
22844 as_expr=expr
22845else
22846 as_expr=false
22847fi
22848
22849if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22850 as_basename=basename
22851else
22852 as_basename=false
22853fi
John Criswell7a73b802003-06-30 21:59:07 +000022854
22855
22856# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000022857as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000022858$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22859 X"$0" : 'X\(//\)$' \| \
22860 X"$0" : 'X\(/\)$' \| \
22861 . : '\(.\)' 2>/dev/null ||
22862echo X/"$0" |
22863 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22864 /^X\/\(\/\/\)$/{ s//\1/; q; }
22865 /^X\/\(\/\).*/{ s//\1/; q; }
22866 s/.*/./; q'`
22867
John Criswell0c38eaf2003-09-10 15:17:25 +000022868
John Criswell7a73b802003-06-30 21:59:07 +000022869# PATH needs CR, and LINENO needs CR and PATH.
22870# Avoid depending upon Character Ranges.
22871as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22872as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22873as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22874as_cr_digits='0123456789'
22875as_cr_alnum=$as_cr_Letters$as_cr_digits
22876
22877# The user is always right.
22878if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022879 echo "#! /bin/sh" >conf$$.sh
22880 echo "exit 0" >>conf$$.sh
22881 chmod +x conf$$.sh
22882 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022883 PATH_SEPARATOR=';'
22884 else
22885 PATH_SEPARATOR=:
22886 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000022887 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000022888fi
22889
22890
22891 as_lineno_1=$LINENO
22892 as_lineno_2=$LINENO
22893 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22894 test "x$as_lineno_1" != "x$as_lineno_2" &&
22895 test "x$as_lineno_3" = "x$as_lineno_2" || {
22896 # Find who we are. Look in the path if we contain no path at all
22897 # relative or not.
22898 case $0 in
22899 *[\\/]* ) as_myself=$0 ;;
22900 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22901for as_dir in $PATH
22902do
22903 IFS=$as_save_IFS
22904 test -z "$as_dir" && as_dir=.
22905 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22906done
22907
22908 ;;
22909 esac
22910 # We did not find ourselves, most probably we were run as `sh COMMAND'
22911 # in which case we are not to be found in the path.
22912 if test "x$as_myself" = x; then
22913 as_myself=$0
22914 fi
22915 if test ! -f "$as_myself"; then
22916 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22917echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22918 { (exit 1); exit 1; }; }
22919 fi
22920 case $CONFIG_SHELL in
22921 '')
22922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22923for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22924do
22925 IFS=$as_save_IFS
22926 test -z "$as_dir" && as_dir=.
22927 for as_base in sh bash ksh sh5; do
22928 case $as_dir in
22929 /*)
22930 if ("$as_dir/$as_base" -c '
22931 as_lineno_1=$LINENO
22932 as_lineno_2=$LINENO
22933 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22934 test "x$as_lineno_1" != "x$as_lineno_2" &&
22935 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022936 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22937 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000022938 CONFIG_SHELL=$as_dir/$as_base
22939 export CONFIG_SHELL
22940 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22941 fi;;
22942 esac
22943 done
22944done
22945;;
22946 esac
22947
22948 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22949 # uniformly replaced by the line number. The first 'sed' inserts a
22950 # line-number line before each line; the second 'sed' does the real
22951 # work. The second script uses 'N' to pair each line-number line
22952 # with the numbered line, and appends trailing '-' during
22953 # substitution so that $LINENO is not a special case at line end.
22954 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22955 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22956 sed '=' <$as_myself |
22957 sed '
22958 N
22959 s,$,-,
22960 : loop
22961 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22962 t loop
22963 s,-$,,
22964 s,^['$as_cr_digits']*\n,,
22965 ' >$as_me.lineno &&
22966 chmod +x $as_me.lineno ||
22967 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22968echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22969 { (exit 1); exit 1; }; }
22970
22971 # Don't try to exec as it changes $[0], causing all sort of problems
22972 # (the dirname of $[0] is not the place where we might find the
22973 # original and so on. Autoconf is especially sensible to this).
22974 . ./$as_me.lineno
22975 # Exit status is that of the last command.
22976 exit
22977}
22978
22979
22980case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22981 *c*,-n*) ECHO_N= ECHO_C='
22982' ECHO_T=' ' ;;
22983 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22984 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22985esac
22986
22987if expr a : '\(a\)' >/dev/null 2>&1; then
22988 as_expr=expr
22989else
22990 as_expr=false
22991fi
22992
22993rm -f conf$$ conf$$.exe conf$$.file
22994echo >conf$$.file
22995if ln -s conf$$.file conf$$ 2>/dev/null; then
22996 # We could just check for DJGPP; but this test a) works b) is more generic
22997 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22998 if test -f conf$$.exe; then
22999 # Don't use ln at all; we don't have any links
23000 as_ln_s='cp -p'
23001 else
23002 as_ln_s='ln -s'
23003 fi
23004elif ln conf$$.file conf$$ 2>/dev/null; then
23005 as_ln_s=ln
23006else
23007 as_ln_s='cp -p'
23008fi
23009rm -f conf$$ conf$$.exe conf$$.file
23010
John Criswell0c38eaf2003-09-10 15:17:25 +000023011if mkdir -p . 2>/dev/null; then
23012 as_mkdir_p=:
23013else
23014 as_mkdir_p=false
23015fi
23016
John Criswell7a73b802003-06-30 21:59:07 +000023017as_executable_p="test -f"
23018
23019# Sed expression to map a string onto a valid CPP name.
Brian Gaeke0a621332004-09-08 20:38:05 +000023020as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
John Criswell7a73b802003-06-30 21:59:07 +000023021
23022# Sed expression to map a string onto a valid variable name.
Brian Gaeke0a621332004-09-08 20:38:05 +000023023as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
John Criswell7a73b802003-06-30 21:59:07 +000023024
23025
23026# IFS
23027# We need space, tab and new line, in precisely that order.
23028as_nl='
23029'
23030IFS=" $as_nl"
23031
23032# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000023033$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000023034
23035exec 6>&1
23036
23037# Open the log real soon, to keep \$[0] and so on meaningful, and to
23038# report actual input values of CONFIG_FILES etc. instead of their
23039# values after options handling. Logging --version etc. is OK.
23040exec 5>>config.log
23041{
23042 echo
23043 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23044## Running $as_me. ##
23045_ASBOX
23046} >&5
23047cat >&5 <<_CSEOF
23048
Reid Spencere9de0912004-08-20 09:03:57 +000023049This file was extended by LLVM $as_me 1.4, which was
Brian Gaeke0a621332004-09-08 20:38:05 +000023050generated by GNU Autoconf 2.57. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000023051
23052 CONFIG_FILES = $CONFIG_FILES
23053 CONFIG_HEADERS = $CONFIG_HEADERS
23054 CONFIG_LINKS = $CONFIG_LINKS
23055 CONFIG_COMMANDS = $CONFIG_COMMANDS
23056 $ $0 $@
23057
23058_CSEOF
23059echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23060echo >&5
23061_ACEOF
23062
23063# Files that config.status was made for.
23064if test -n "$ac_config_files"; then
23065 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23066fi
23067
23068if test -n "$ac_config_headers"; then
23069 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23070fi
23071
23072if test -n "$ac_config_links"; then
23073 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23074fi
23075
23076if test -n "$ac_config_commands"; then
23077 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23078fi
23079
23080cat >>$CONFIG_STATUS <<\_ACEOF
23081
23082ac_cs_usage="\
23083\`$as_me' instantiates files from templates according to the
23084current configuration.
23085
23086Usage: $0 [OPTIONS] [FILE]...
23087
23088 -h, --help print this help, then exit
23089 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000023090 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000023091 -d, --debug don't remove temporary files
23092 --recheck update $as_me by reconfiguring in the same conditions
23093 --file=FILE[:TEMPLATE]
Brian Gaeke0a621332004-09-08 20:38:05 +000023094 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000023095 --header=FILE[:TEMPLATE]
Brian Gaeke0a621332004-09-08 20:38:05 +000023096 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000023097
23098Configuration files:
23099$config_files
23100
23101Configuration headers:
23102$config_headers
23103
Reid Spencerde8c47f2004-08-29 19:35:28 +000023104Configuration links:
23105$config_links
23106
John Criswellc764fbc2003-09-06 15:17:13 +000023107Configuration commands:
23108$config_commands
23109
John Criswell7a73b802003-06-30 21:59:07 +000023110Report bugs to <bug-autoconf@gnu.org>."
23111_ACEOF
23112
23113cat >>$CONFIG_STATUS <<_ACEOF
23114ac_cs_version="\\
Reid Spencere9de0912004-08-20 09:03:57 +000023115LLVM config.status 1.4
Brian Gaeke0a621332004-09-08 20:38:05 +000023116configured by $0, generated by GNU Autoconf 2.57,
John Criswell7a73b802003-06-30 21:59:07 +000023117 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23118
Brian Gaeke0a621332004-09-08 20:38:05 +000023119Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23120Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000023121This config.status script is free software; the Free Software Foundation
23122gives unlimited permission to copy, distribute and modify it."
23123srcdir=$srcdir
23124INSTALL="$INSTALL"
23125_ACEOF
23126
23127cat >>$CONFIG_STATUS <<\_ACEOF
23128# If no file are specified by the user, then we need to provide default
23129# value. By we need to know if files were specified by the user.
23130ac_need_defaults=:
23131while test $# != 0
23132do
23133 case $1 in
23134 --*=*)
23135 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23136 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023137 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000023138 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023139 -*)
23140 ac_option=$1
23141 ac_optarg=$2
23142 ac_shift=shift
23143 ;;
John Criswell7a73b802003-06-30 21:59:07 +000023144 *) # This is not an option, so the user has probably given explicit
23145 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000023146 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000023147 ac_need_defaults=false;;
23148 esac
23149
John Criswell0c38eaf2003-09-10 15:17:25 +000023150 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000023151 # Handling of the options.
23152_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000023153cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023154 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23155 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023156 --version | --vers* | -V )
23157 echo "$ac_cs_version"; exit 0 ;;
23158 --he | --h)
23159 # Conflict between --help and --header
23160 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23161Try \`$0 --help' for more information." >&5
23162echo "$as_me: error: ambiguous option: $1
23163Try \`$0 --help' for more information." >&2;}
23164 { (exit 1); exit 1; }; };;
23165 --help | --hel | -h )
23166 echo "$ac_cs_usage"; exit 0 ;;
23167 --debug | --d* | -d )
23168 debug=: ;;
23169 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000023170 $ac_shift
23171 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023172 ac_need_defaults=false;;
23173 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000023174 $ac_shift
23175 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000023176 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000023177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23178 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23179 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000023180
23181 # This is an error.
23182 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23183Try \`$0 --help' for more information." >&5
23184echo "$as_me: error: unrecognized option: $1
23185Try \`$0 --help' for more information." >&2;}
23186 { (exit 1); exit 1; }; } ;;
23187
23188 *) ac_config_targets="$ac_config_targets $1" ;;
23189
23190 esac
23191 shift
23192done
23193
John Criswell0c38eaf2003-09-10 15:17:25 +000023194ac_configure_extra_args=
23195
23196if $ac_cs_silent; then
23197 exec 6>/dev/null
23198 ac_configure_extra_args="$ac_configure_extra_args --silent"
23199fi
23200
23201_ACEOF
23202cat >>$CONFIG_STATUS <<_ACEOF
23203if \$ac_cs_recheck; then
23204 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23205 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23206fi
23207
John Criswell7a73b802003-06-30 21:59:07 +000023208_ACEOF
23209
John Criswellc764fbc2003-09-06 15:17:13 +000023210cat >>$CONFIG_STATUS <<_ACEOF
23211#
23212# INIT-COMMANDS section.
23213#
John Criswell7a73b802003-06-30 21:59:07 +000023214
John Criswellc764fbc2003-09-06 15:17:13 +000023215${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
23216${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000023217${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023218${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023219${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023220${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
23221${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000023222${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
23223${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000023224${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000023225${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023226${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000023227
23228_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023229
23230
23231
23232cat >>$CONFIG_STATUS <<\_ACEOF
23233for ac_config_target in $ac_config_targets
23234do
23235 case "$ac_config_target" in
23236 # Handling of arguments.
23237 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000023238 "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
23239 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
23240 "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
23241 "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
23242 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +000023243 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023244 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
23245 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000023246 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023247 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023248 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023249 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
23250 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000023251 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
23252 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023253 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000023254 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000023255 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000023256 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell7a73b802003-06-30 21:59:07 +000023257 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23258echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23259 { (exit 1); exit 1; }; };;
23260 esac
23261done
23262
23263# If the user did not use the arguments to specify the items to instantiate,
23264# then the envvar interface is used. Set only those that are not.
23265# We use the long form for the default assignment because of an extremely
23266# bizarre bug on SunOS 4.1.3.
23267if $ac_need_defaults; then
23268 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23269 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000023270 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000023271 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000023272fi
23273
John Criswell0c38eaf2003-09-10 15:17:25 +000023274# Have a temporary directory for convenience. Make it in the build tree
23275# simply because there is no reason to put it here, and in addition,
23276# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000023277# Create a temporary directory, and hook for its removal unless debugging.
23278$debug ||
23279{
23280 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23281 trap '{ (exit 1); exit 1; }' 1 2 13 15
23282}
23283
23284# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000023285
John Criswell7a73b802003-06-30 21:59:07 +000023286{
John Criswell0c38eaf2003-09-10 15:17:25 +000023287 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000023288 test -n "$tmp" && test -d "$tmp"
23289} ||
23290{
John Criswell0c38eaf2003-09-10 15:17:25 +000023291 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000023292 (umask 077 && mkdir $tmp)
23293} ||
23294{
John Criswell0c38eaf2003-09-10 15:17:25 +000023295 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000023296 { (exit 1); exit 1; }
23297}
23298
23299_ACEOF
23300
23301cat >>$CONFIG_STATUS <<_ACEOF
23302
23303#
23304# CONFIG_FILES section.
23305#
23306
23307# No need to generate the scripts if there are no CONFIG_FILES.
23308# This happens for instance when ./config.status config.h
23309if test -n "\$CONFIG_FILES"; then
23310 # Protect against being on the right side of a sed subst in config.status.
23311 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23312 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23313s,@SHELL@,$SHELL,;t t
23314s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23315s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23316s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23317s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23318s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23319s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23320s,@exec_prefix@,$exec_prefix,;t t
23321s,@prefix@,$prefix,;t t
23322s,@program_transform_name@,$program_transform_name,;t t
23323s,@bindir@,$bindir,;t t
23324s,@sbindir@,$sbindir,;t t
23325s,@libexecdir@,$libexecdir,;t t
23326s,@datadir@,$datadir,;t t
23327s,@sysconfdir@,$sysconfdir,;t t
23328s,@sharedstatedir@,$sharedstatedir,;t t
23329s,@localstatedir@,$localstatedir,;t t
23330s,@libdir@,$libdir,;t t
23331s,@includedir@,$includedir,;t t
23332s,@oldincludedir@,$oldincludedir,;t t
23333s,@infodir@,$infodir,;t t
23334s,@mandir@,$mandir,;t t
23335s,@build_alias@,$build_alias,;t t
23336s,@host_alias@,$host_alias,;t t
23337s,@target_alias@,$target_alias,;t t
23338s,@DEFS@,$DEFS,;t t
23339s,@ECHO_C@,$ECHO_C,;t t
23340s,@ECHO_N@,$ECHO_N,;t t
23341s,@ECHO_T@,$ECHO_T,;t t
23342s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000023343s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023344s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
23345s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
23346s,@INSTALL_DATA@,$INSTALL_DATA,;t t
23347s,@build@,$build,;t t
23348s,@build_cpu@,$build_cpu,;t t
23349s,@build_vendor@,$build_vendor,;t t
23350s,@build_os@,$build_os,;t t
23351s,@host@,$host,;t t
23352s,@host_cpu@,$host_cpu,;t t
23353s,@host_vendor@,$host_vendor,;t t
23354s,@host_os@,$host_os,;t t
23355s,@target@,$target,;t t
23356s,@target_cpu@,$target_cpu,;t t
23357s,@target_vendor@,$target_vendor,;t t
23358s,@target_os@,$target_os,;t t
23359s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023360s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000023361s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023362s,@CXX@,$CXX,;t t
23363s,@CXXFLAGS@,$CXXFLAGS,;t t
23364s,@LDFLAGS@,$LDFLAGS,;t t
23365s,@CPPFLAGS@,$CPPFLAGS,;t t
23366s,@ac_ct_CXX@,$ac_ct_CXX,;t t
23367s,@EXEEXT@,$EXEEXT,;t t
23368s,@OBJEXT@,$OBJEXT,;t t
23369s,@CC@,$CC,;t t
23370s,@CFLAGS@,$CFLAGS,;t t
23371s,@ac_ct_CC@,$ac_ct_CC,;t t
23372s,@CPP@,$CPP,;t t
23373s,@ifGNUmake@,$ifGNUmake,;t t
23374s,@LEX@,$LEX,;t t
23375s,@LEXLIB@,$LEXLIB,;t t
23376s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Reid Spencer9751dbf2004-09-07 18:04:45 +000023377s,@FLEX@,$FLEX,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023378s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000023379s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023380s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023381s,@LN_S@,$LN_S,;t t
23382s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023383s,@AR@,$AR,;t t
23384s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023385s,@RANLIB@,$RANLIB,;t t
23386s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
23387s,@STRIP@,$STRIP,;t t
23388s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000023389s,@CXXCPP@,$CXXCPP,;t t
23390s,@F77@,$F77,;t t
23391s,@FFLAGS@,$FFLAGS,;t t
23392s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023393s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023394s,@DOT@,$DOT,;t t
23395s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000023396s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000023397s,@PYTHON@,$PYTHON,;t t
23398s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000023399s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
Brian Gaeke6c3fd812004-02-23 22:07:00 +000023400s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
23401s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
John Criswell7ed43ad2004-07-19 16:12:29 +000023402s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
John Criswell0021c312004-02-13 21:57:29 +000023403s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000023404s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
23405s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
23406s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
23407s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
23408s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
23409s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000023410s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
23411s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
23412s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023413s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023414s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023415s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023416s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000023417s,@LLVMCC1@,$LLVMCC1,;t t
23418s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000023419s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000023420s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
23421s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
23422s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
23423s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
23424s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
23425s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
23426s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
23427s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
23428s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
23429s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000023430s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000023431s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000023432CEOF
23433
23434_ACEOF
23435
23436 cat >>$CONFIG_STATUS <<\_ACEOF
23437 # Split the substitutions into bite-sized pieces for seds with
23438 # small command number limits, like on Digital OSF/1 and HP-UX.
23439 ac_max_sed_lines=48
23440 ac_sed_frag=1 # Number of current file.
23441 ac_beg=1 # First line for current file.
23442 ac_end=$ac_max_sed_lines # Line after last line for current file.
23443 ac_more_lines=:
23444 ac_sed_cmds=
23445 while $ac_more_lines; do
23446 if test $ac_beg -gt 1; then
23447 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23448 else
23449 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
23450 fi
23451 if test ! -s $tmp/subs.frag; then
23452 ac_more_lines=false
23453 else
23454 # The purpose of the label and of the branching condition is to
23455 # speed up the sed processing (if there are no `@' at all, there
23456 # is no need to browse any of the substitutions).
23457 # These are the two extra sed commands mentioned above.
23458 (echo ':t
23459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
23460 if test -z "$ac_sed_cmds"; then
Brian Gaeke0a621332004-09-08 20:38:05 +000023461 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000023462 else
Brian Gaeke0a621332004-09-08 20:38:05 +000023463 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000023464 fi
23465 ac_sed_frag=`expr $ac_sed_frag + 1`
23466 ac_beg=$ac_end
23467 ac_end=`expr $ac_end + $ac_max_sed_lines`
23468 fi
23469 done
23470 if test -z "$ac_sed_cmds"; then
23471 ac_sed_cmds=cat
23472 fi
23473fi # test -n "$CONFIG_FILES"
23474
23475_ACEOF
23476cat >>$CONFIG_STATUS <<\_ACEOF
23477for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
23478 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23479 case $ac_file in
23480 - | *:- | *:-:* ) # input from stdin
Brian Gaeke0a621332004-09-08 20:38:05 +000023481 cat >$tmp/stdin
23482 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23483 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000023484 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Brian Gaeke0a621332004-09-08 20:38:05 +000023485 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000023486 * ) ac_file_in=$ac_file.in ;;
23487 esac
23488
23489 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23490 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23491$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Brian Gaeke0a621332004-09-08 20:38:05 +000023492 X"$ac_file" : 'X\(//\)[^/]' \| \
23493 X"$ac_file" : 'X\(//\)$' \| \
23494 X"$ac_file" : 'X\(/\)' \| \
23495 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000023496echo X"$ac_file" |
23497 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23498 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23499 /^X\(\/\/\)$/{ s//\1/; q; }
23500 /^X\(\/\).*/{ s//\1/; q; }
23501 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023502 { if $as_mkdir_p; then
23503 mkdir -p "$ac_dir"
23504 else
23505 as_dir="$ac_dir"
23506 as_dirs=
23507 while test ! -d "$as_dir"; do
23508 as_dirs="$as_dir $as_dirs"
23509 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23510$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Brian Gaeke0a621332004-09-08 20:38:05 +000023511 X"$as_dir" : 'X\(//\)[^/]' \| \
23512 X"$as_dir" : 'X\(//\)$' \| \
23513 X"$as_dir" : 'X\(/\)' \| \
23514 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000023515echo X"$as_dir" |
23516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23517 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23518 /^X\(\/\/\)$/{ s//\1/; q; }
23519 /^X\(\/\).*/{ s//\1/; q; }
23520 s/.*/./; q'`
23521 done
23522 test ! -n "$as_dirs" || mkdir $as_dirs
23523 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23524echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23525 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023526
23527 ac_builddir=.
23528
23529if test "$ac_dir" != .; then
23530 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23531 # A "../" for each directory in $ac_dir_suffix.
23532 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23533else
23534 ac_dir_suffix= ac_top_builddir=
23535fi
23536
23537case $srcdir in
23538 .) # No --srcdir option. We are building in place.
23539 ac_srcdir=.
23540 if test -z "$ac_top_builddir"; then
23541 ac_top_srcdir=.
23542 else
23543 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23544 fi ;;
23545 [\\/]* | ?:[\\/]* ) # Absolute path.
23546 ac_srcdir=$srcdir$ac_dir_suffix;
23547 ac_top_srcdir=$srcdir ;;
23548 *) # Relative path.
23549 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23550 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23551esac
Brian Gaeke0a621332004-09-08 20:38:05 +000023552# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
23553# absolute.
23554ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
23555ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
23556ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
23557ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
John Criswell7a73b802003-06-30 21:59:07 +000023558
23559
23560 case $INSTALL in
23561 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23562 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23563 esac
23564
23565 if test x"$ac_file" != x-; then
23566 { echo "$as_me:$LINENO: creating $ac_file" >&5
23567echo "$as_me: creating $ac_file" >&6;}
23568 rm -f "$ac_file"
23569 fi
23570 # Let's still pretend it is `configure' which instantiates (i.e., don't
23571 # use $as_me), people would be surprised to read:
23572 # /* config.h. Generated by config.status. */
23573 if test x"$ac_file" = x-; then
23574 configure_input=
23575 else
23576 configure_input="$ac_file. "
23577 fi
23578 configure_input=$configure_input"Generated from `echo $ac_file_in |
Brian Gaeke0a621332004-09-08 20:38:05 +000023579 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000023580
23581 # First look for the input files in the build tree, otherwise in the
23582 # src tree.
23583 ac_file_inputs=`IFS=:
23584 for f in $ac_file_in; do
23585 case $f in
23586 -) echo $tmp/stdin ;;
23587 [\\/$]*)
Brian Gaeke0a621332004-09-08 20:38:05 +000023588 # Absolute (can't be DOS-style, as IFS=:)
23589 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000023590echo "$as_me: error: cannot find input file: $f" >&2;}
23591 { (exit 1); exit 1; }; }
Brian Gaeke0a621332004-09-08 20:38:05 +000023592 echo $f;;
John Criswell7a73b802003-06-30 21:59:07 +000023593 *) # Relative
Brian Gaeke0a621332004-09-08 20:38:05 +000023594 if test -f "$f"; then
23595 # Build tree
23596 echo $f
23597 elif test -f "$srcdir/$f"; then
23598 # Source tree
23599 echo $srcdir/$f
23600 else
23601 # /dev/null tree
23602 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000023603echo "$as_me: error: cannot find input file: $f" >&2;}
23604 { (exit 1); exit 1; }; }
Brian Gaeke0a621332004-09-08 20:38:05 +000023605 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000023606 esac
23607 done` || { (exit 1); exit 1; }
23608_ACEOF
23609cat >>$CONFIG_STATUS <<_ACEOF
23610 sed "$ac_vpsub
23611$extrasub
23612_ACEOF
23613cat >>$CONFIG_STATUS <<\_ACEOF
23614:t
23615/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23616s,@configure_input@,$configure_input,;t t
23617s,@srcdir@,$ac_srcdir,;t t
23618s,@abs_srcdir@,$ac_abs_srcdir,;t t
23619s,@top_srcdir@,$ac_top_srcdir,;t t
23620s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23621s,@builddir@,$ac_builddir,;t t
23622s,@abs_builddir@,$ac_abs_builddir,;t t
23623s,@top_builddir@,$ac_top_builddir,;t t
23624s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23625s,@INSTALL@,$ac_INSTALL,;t t
23626" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23627 rm -f $tmp/stdin
23628 if test x"$ac_file" != x-; then
23629 mv $tmp/out $ac_file
23630 else
23631 cat $tmp/out
23632 rm -f $tmp/out
23633 fi
23634
23635done
23636_ACEOF
23637cat >>$CONFIG_STATUS <<\_ACEOF
23638
23639#
23640# CONFIG_HEADER section.
23641#
23642
23643# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23644# NAME is the cpp macro being defined and VALUE is the value it is being given.
23645#
23646# ac_d sets the value in "#define NAME VALUE" lines.
Brian Gaeke0a621332004-09-08 20:38:05 +000023647ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23648ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000023649ac_dC=' '
23650ac_dD=',;t'
23651# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Brian Gaeke0a621332004-09-08 20:38:05 +000023652ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000023653ac_uB='$,\1#\2define\3'
23654ac_uC=' '
23655ac_uD=',;t'
23656
23657for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23658 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23659 case $ac_file in
23660 - | *:- | *:-:* ) # input from stdin
Brian Gaeke0a621332004-09-08 20:38:05 +000023661 cat >$tmp/stdin
23662 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23663 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000023664 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Brian Gaeke0a621332004-09-08 20:38:05 +000023665 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000023666 * ) ac_file_in=$ac_file.in ;;
23667 esac
23668
23669 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23670echo "$as_me: creating $ac_file" >&6;}
23671
23672 # First look for the input files in the build tree, otherwise in the
23673 # src tree.
23674 ac_file_inputs=`IFS=:
23675 for f in $ac_file_in; do
23676 case $f in
23677 -) echo $tmp/stdin ;;
23678 [\\/$]*)
Brian Gaeke0a621332004-09-08 20:38:05 +000023679 # Absolute (can't be DOS-style, as IFS=:)
23680 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000023681echo "$as_me: error: cannot find input file: $f" >&2;}
23682 { (exit 1); exit 1; }; }
Brian Gaeke0a621332004-09-08 20:38:05 +000023683 echo $f;;
John Criswell7a73b802003-06-30 21:59:07 +000023684 *) # Relative
Brian Gaeke0a621332004-09-08 20:38:05 +000023685 if test -f "$f"; then
23686 # Build tree
23687 echo $f
23688 elif test -f "$srcdir/$f"; then
23689 # Source tree
23690 echo $srcdir/$f
23691 else
23692 # /dev/null tree
23693 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000023694echo "$as_me: error: cannot find input file: $f" >&2;}
23695 { (exit 1); exit 1; }; }
Brian Gaeke0a621332004-09-08 20:38:05 +000023696 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000023697 esac
23698 done` || { (exit 1); exit 1; }
23699 # Remove the trailing spaces.
Brian Gaeke0a621332004-09-08 20:38:05 +000023700 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000023701
23702_ACEOF
23703
23704# Transform confdefs.h into two sed scripts, `conftest.defines' and
23705# `conftest.undefs', that substitutes the proper values into
23706# config.h.in to produce config.h. The first handles `#define'
23707# templates, and the second `#undef' templates.
23708# And first: Protect against being on the right side of a sed subst in
23709# config.status. Protect against being in an unquoted here document
23710# in config.status.
23711rm -f conftest.defines conftest.undefs
23712# Using a here document instead of a string reduces the quoting nightmare.
23713# Putting comments in sed scripts is not portable.
23714#
23715# `end' is used to avoid that the second main sed command (meant for
23716# 0-ary CPP macros) applies to n-ary macro definitions.
23717# See the Autoconf documentation for `clear'.
23718cat >confdef2sed.sed <<\_ACEOF
23719s/[\\&,]/\\&/g
23720s,[\\$`],\\&,g
23721t clear
23722: clear
Brian Gaeke0a621332004-09-08 20:38:05 +000023723s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000023724t end
Brian Gaeke0a621332004-09-08 20:38:05 +000023725s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000023726: end
23727_ACEOF
23728# If some macros were called several times there might be several times
23729# the same #defines, which is useless. Nevertheless, we may not want to
23730# sort them, since we want the *last* AC-DEFINE to be honored.
23731uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23732sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23733rm -f confdef2sed.sed
23734
23735# This sed command replaces #undef with comments. This is necessary, for
23736# example, in the case of _POSIX_SOURCE, which is predefined and required
23737# on some systems where configure will not decide to define it.
23738cat >>conftest.undefs <<\_ACEOF
Brian Gaeke0a621332004-09-08 20:38:05 +000023739s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000023740_ACEOF
23741
23742# Break up conftest.defines because some shells have a limit on the size
23743# of here documents, and old seds have small limits too (100 cmds).
23744echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Brian Gaeke0a621332004-09-08 20:38:05 +000023745echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023746echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23747echo ' :' >>$CONFIG_STATUS
23748rm -f conftest.tail
23749while grep . conftest.defines >/dev/null
23750do
23751 # Write a limited-size here document to $tmp/defines.sed.
23752 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23753 # Speed up: don't consider the non `#define' lines.
Brian Gaeke0a621332004-09-08 20:38:05 +000023754 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023755 # Work around the forget-to-reset-the-flag bug.
23756 echo 't clr' >>$CONFIG_STATUS
23757 echo ': clr' >>$CONFIG_STATUS
23758 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23759 echo 'CEOF
23760 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23761 rm -f $tmp/in
23762 mv $tmp/out $tmp/in
23763' >>$CONFIG_STATUS
23764 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23765 rm -f conftest.defines
23766 mv conftest.tail conftest.defines
23767done
23768rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000023769echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023770echo >>$CONFIG_STATUS
23771
23772# Break up conftest.undefs because some shells have a limit on the size
23773# of here documents, and old seds have small limits too (100 cmds).
23774echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23775rm -f conftest.tail
23776while grep . conftest.undefs >/dev/null
23777do
23778 # Write a limited-size here document to $tmp/undefs.sed.
23779 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23780 # Speed up: don't consider the non `#undef'
Brian Gaeke0a621332004-09-08 20:38:05 +000023781 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000023782 # Work around the forget-to-reset-the-flag bug.
23783 echo 't clr' >>$CONFIG_STATUS
23784 echo ': clr' >>$CONFIG_STATUS
23785 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23786 echo 'CEOF
23787 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23788 rm -f $tmp/in
23789 mv $tmp/out $tmp/in
23790' >>$CONFIG_STATUS
23791 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23792 rm -f conftest.undefs
23793 mv conftest.tail conftest.undefs
23794done
23795rm -f conftest.undefs
23796
23797cat >>$CONFIG_STATUS <<\_ACEOF
23798 # Let's still pretend it is `configure' which instantiates (i.e., don't
23799 # use $as_me), people would be surprised to read:
23800 # /* config.h. Generated by config.status. */
23801 if test x"$ac_file" = x-; then
23802 echo "/* Generated by configure. */" >$tmp/config.h
23803 else
23804 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23805 fi
23806 cat $tmp/in >>$tmp/config.h
23807 rm -f $tmp/in
23808 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000023809 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023810 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23811echo "$as_me: $ac_file is unchanged" >&6;}
23812 else
23813 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23814$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Brian Gaeke0a621332004-09-08 20:38:05 +000023815 X"$ac_file" : 'X\(//\)[^/]' \| \
23816 X"$ac_file" : 'X\(//\)$' \| \
23817 X"$ac_file" : 'X\(/\)' \| \
23818 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000023819echo X"$ac_file" |
23820 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23821 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23822 /^X\(\/\/\)$/{ s//\1/; q; }
23823 /^X\(\/\).*/{ s//\1/; q; }
23824 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023825 { if $as_mkdir_p; then
23826 mkdir -p "$ac_dir"
23827 else
23828 as_dir="$ac_dir"
23829 as_dirs=
23830 while test ! -d "$as_dir"; do
23831 as_dirs="$as_dir $as_dirs"
23832 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23833$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Brian Gaeke0a621332004-09-08 20:38:05 +000023834 X"$as_dir" : 'X\(//\)[^/]' \| \
23835 X"$as_dir" : 'X\(//\)$' \| \
23836 X"$as_dir" : 'X\(/\)' \| \
23837 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000023838echo X"$as_dir" |
23839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23840 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23841 /^X\(\/\/\)$/{ s//\1/; q; }
23842 /^X\(\/\).*/{ s//\1/; q; }
23843 s/.*/./; q'`
23844 done
23845 test ! -n "$as_dirs" || mkdir $as_dirs
23846 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23847echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23848 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000023849
23850 rm -f $ac_file
23851 mv $tmp/config.h $ac_file
23852 fi
23853 else
23854 cat $tmp/config.h
23855 rm -f $tmp/config.h
23856 fi
23857done
23858_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000023859cat >>$CONFIG_STATUS <<\_ACEOF
23860
23861#
Reid Spencerde8c47f2004-08-29 19:35:28 +000023862# CONFIG_LINKS section.
23863#
23864
23865for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
23866 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23867 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23868
23869 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
23870echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
23871
23872 if test ! -r $srcdir/$ac_source; then
23873 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
23874echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
23875 { (exit 1); exit 1; }; }
23876 fi
23877 rm -f $ac_dest
23878
23879 # Make relative symlinks.
23880 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
23881$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Brian Gaeke0a621332004-09-08 20:38:05 +000023882 X"$ac_dest" : 'X\(//\)[^/]' \| \
23883 X"$ac_dest" : 'X\(//\)$' \| \
23884 X"$ac_dest" : 'X\(/\)' \| \
23885 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000023886echo X"$ac_dest" |
23887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23889 /^X\(\/\/\)$/{ s//\1/; q; }
23890 /^X\(\/\).*/{ s//\1/; q; }
23891 s/.*/./; q'`
23892 { if $as_mkdir_p; then
23893 mkdir -p "$ac_dest_dir"
23894 else
23895 as_dir="$ac_dest_dir"
23896 as_dirs=
23897 while test ! -d "$as_dir"; do
23898 as_dirs="$as_dir $as_dirs"
23899 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23900$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Brian Gaeke0a621332004-09-08 20:38:05 +000023901 X"$as_dir" : 'X\(//\)[^/]' \| \
23902 X"$as_dir" : 'X\(//\)$' \| \
23903 X"$as_dir" : 'X\(/\)' \| \
23904 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000023905echo X"$as_dir" |
23906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23908 /^X\(\/\/\)$/{ s//\1/; q; }
23909 /^X\(\/\).*/{ s//\1/; q; }
23910 s/.*/./; q'`
23911 done
23912 test ! -n "$as_dirs" || mkdir $as_dirs
23913 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
23914echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
23915 { (exit 1); exit 1; }; }; }
23916
23917 ac_builddir=.
23918
23919if test "$ac_dest_dir" != .; then
23920 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
23921 # A "../" for each directory in $ac_dir_suffix.
23922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23923else
23924 ac_dir_suffix= ac_top_builddir=
23925fi
23926
23927case $srcdir in
23928 .) # No --srcdir option. We are building in place.
23929 ac_srcdir=.
23930 if test -z "$ac_top_builddir"; then
23931 ac_top_srcdir=.
23932 else
23933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23934 fi ;;
23935 [\\/]* | ?:[\\/]* ) # Absolute path.
23936 ac_srcdir=$srcdir$ac_dir_suffix;
23937 ac_top_srcdir=$srcdir ;;
23938 *) # Relative path.
23939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23941esac
Brian Gaeke0a621332004-09-08 20:38:05 +000023942# Don't blindly perform a `cd "$ac_dest_dir"/$ac_foo && pwd` since $ac_foo can be
23943# absolute.
23944ac_abs_builddir=`cd "$ac_dest_dir" && cd $ac_builddir && pwd`
23945ac_abs_top_builddir=`cd "$ac_dest_dir" && cd ${ac_top_builddir}. && pwd`
23946ac_abs_srcdir=`cd "$ac_dest_dir" && cd $ac_srcdir && pwd`
23947ac_abs_top_srcdir=`cd "$ac_dest_dir" && cd $ac_top_srcdir && pwd`
Reid Spencerde8c47f2004-08-29 19:35:28 +000023948
23949
23950 case $srcdir in
23951 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
23952 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
23953 esac
23954
23955 # Try a symlink, then a hard link, then a copy.
23956 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
23957 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
23958 cp -p $srcdir/$ac_source $ac_dest ||
23959 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
23960echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
23961 { (exit 1); exit 1; }; }
23962done
23963_ACEOF
23964cat >>$CONFIG_STATUS <<\_ACEOF
23965
23966#
John Criswellc764fbc2003-09-06 15:17:13 +000023967# CONFIG_COMMANDS section.
23968#
23969for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23970 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23971 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23972 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23973$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Brian Gaeke0a621332004-09-08 20:38:05 +000023974 X"$ac_dest" : 'X\(//\)[^/]' \| \
23975 X"$ac_dest" : 'X\(//\)$' \| \
23976 X"$ac_dest" : 'X\(/\)' \| \
23977 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000023978echo X"$ac_dest" |
23979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23981 /^X\(\/\/\)$/{ s//\1/; q; }
23982 /^X\(\/\).*/{ s//\1/; q; }
23983 s/.*/./; q'`
23984 ac_builddir=.
23985
23986if test "$ac_dir" != .; then
23987 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23988 # A "../" for each directory in $ac_dir_suffix.
23989 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23990else
23991 ac_dir_suffix= ac_top_builddir=
23992fi
23993
23994case $srcdir in
23995 .) # No --srcdir option. We are building in place.
23996 ac_srcdir=.
23997 if test -z "$ac_top_builddir"; then
23998 ac_top_srcdir=.
23999 else
24000 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24001 fi ;;
24002 [\\/]* | ?:[\\/]* ) # Absolute path.
24003 ac_srcdir=$srcdir$ac_dir_suffix;
24004 ac_top_srcdir=$srcdir ;;
24005 *) # Relative path.
24006 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24007 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24008esac
Brian Gaeke0a621332004-09-08 20:38:05 +000024009# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24010# absolute.
24011ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24012ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24013ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24014ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
John Criswellc764fbc2003-09-06 15:17:13 +000024015
24016
24017 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24018echo "$as_me: executing $ac_dest commands" >&6;}
24019 case $ac_dest in
24020 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
24021 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000024022 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024023 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024024 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024025 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
24026 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000024027 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
24028 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 +000024029 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024030 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024031 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024032 esac
24033done
24034_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024035
24036cat >>$CONFIG_STATUS <<\_ACEOF
24037
24038{ (exit 0); exit 0; }
24039_ACEOF
24040chmod +x $CONFIG_STATUS
24041ac_clean_files=$ac_clean_files_save
24042
24043
24044# configure is writing to config.log, and then calls config.status.
24045# config.status does its own redirection, appending to config.log.
24046# Unfortunately, on DOS this fails, as config.log is still kept open
24047# by configure, so config.status won't be able to write to it; its
24048# output is simply discarded. So we exec the FD to /dev/null,
24049# effectively closing config.log, so it can be properly (re)opened and
24050# appended to by config.status. When coming back to configure, we
24051# need to make the FD available again.
24052if test "$no_create" != yes; then
24053 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000024054 ac_config_status_args=
24055 test "$silent" = yes &&
24056 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000024057 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000024058 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000024059 exec 5>>config.log
24060 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24061 # would make configure fail if this is the last instruction.
24062 $ac_cs_success || { (exit 1); exit 1; }
24063fi
24064
John Criswell12399a12003-09-30 15:55:44 +000024065#
24066# CONFIG_SUBDIRS section.
24067#
24068if test "$no_recursion" != yes; then
24069
24070 # Remove --cache-file and --srcdir arguments so they do not pile up.
24071 ac_sub_configure_args=
24072 ac_prev=
24073 for ac_arg in $ac_configure_args; do
24074 if test -n "$ac_prev"; then
24075 ac_prev=
24076 continue
24077 fi
24078 case $ac_arg in
24079 -cache-file | --cache-file | --cache-fil | --cache-fi \
24080 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24081 ac_prev=cache_file ;;
24082 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24083 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24084 | --c=*)
24085 ;;
24086 --config-cache | -C)
24087 ;;
24088 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24089 ac_prev=srcdir ;;
24090 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24091 ;;
24092 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24093 ac_prev=prefix ;;
24094 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24095 ;;
24096 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24097 esac
24098 done
24099
24100 # Always prepend --prefix to ensure using the same prefix
24101 # in subdir configurations.
24102 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24103
24104 ac_popdir=`pwd`
24105 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24106
24107 # Do not complain, so a configure script can configure whichever
24108 # parts of a large source tree are present.
24109 test -d $srcdir/$ac_dir || continue
24110
24111 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24112echo "$as_me: configuring in $ac_dir" >&6;}
24113 { if $as_mkdir_p; then
24114 mkdir -p "$ac_dir"
24115 else
24116 as_dir="$ac_dir"
24117 as_dirs=
24118 while test ! -d "$as_dir"; do
24119 as_dirs="$as_dir $as_dirs"
24120 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24121$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Brian Gaeke0a621332004-09-08 20:38:05 +000024122 X"$as_dir" : 'X\(//\)[^/]' \| \
24123 X"$as_dir" : 'X\(//\)$' \| \
24124 X"$as_dir" : 'X\(/\)' \| \
24125 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000024126echo X"$as_dir" |
24127 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24128 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24129 /^X\(\/\/\)$/{ s//\1/; q; }
24130 /^X\(\/\).*/{ s//\1/; q; }
24131 s/.*/./; q'`
24132 done
24133 test ! -n "$as_dirs" || mkdir $as_dirs
24134 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24135echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24136 { (exit 1); exit 1; }; }; }
24137
24138 ac_builddir=.
24139
24140if test "$ac_dir" != .; then
24141 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24142 # A "../" for each directory in $ac_dir_suffix.
24143 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24144else
24145 ac_dir_suffix= ac_top_builddir=
24146fi
24147
24148case $srcdir in
24149 .) # No --srcdir option. We are building in place.
24150 ac_srcdir=.
24151 if test -z "$ac_top_builddir"; then
24152 ac_top_srcdir=.
24153 else
24154 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24155 fi ;;
24156 [\\/]* | ?:[\\/]* ) # Absolute path.
24157 ac_srcdir=$srcdir$ac_dir_suffix;
24158 ac_top_srcdir=$srcdir ;;
24159 *) # Relative path.
24160 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24161 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24162esac
Brian Gaeke0a621332004-09-08 20:38:05 +000024163# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24164# absolute.
24165ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24166ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24167ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24168ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
John Criswell12399a12003-09-30 15:55:44 +000024169
24170
24171 cd $ac_dir
24172
24173 # Check for guested configure; otherwise get Cygnus style configure.
24174 if test -f $ac_srcdir/configure.gnu; then
24175 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24176 elif test -f $ac_srcdir/configure; then
24177 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24178 elif test -f $ac_srcdir/configure.in; then
24179 ac_sub_configure=$ac_configure
24180 else
24181 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24182echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24183 ac_sub_configure=
24184 fi
24185
24186 # The recursion is here.
24187 if test -n "$ac_sub_configure"; then
24188 # Make the cache file name correct relative to the subdirectory.
24189 case $cache_file in
24190 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24191 *) # Relative path.
Brian Gaeke0a621332004-09-08 20:38:05 +000024192 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000024193 esac
24194
24195 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24196echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24197 # The eval makes quoting arguments work.
24198 eval $ac_sub_configure $ac_sub_configure_args \
Brian Gaeke0a621332004-09-08 20:38:05 +000024199 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24200 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000024201echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24202 { (exit 1); exit 1; }; }
24203 fi
24204
24205 cd $ac_popdir
24206 done
24207fi
24208
Brian Gaekef3b24102003-11-16 18:38:14 +000024209
24210if test $llvmgccwarn = yes
24211then
24212 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
24213echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
24214 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
24215echo "$as_me: WARNING: ***** appear to be working." >&2;}
24216 { echo "$as_me:$LINENO: WARNING: ***** " >&5
24217echo "$as_me: WARNING: ***** " >&2;}
24218 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
24219echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
24220 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
24221echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
24222 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
24223echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
24224fi
Brian Gaeke554831c2004-01-21 19:39:29 +000024225