blob: 6b0fccfed1e8372197ea03041768a982d9a836c3 [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencere9de0912004-08-20 09:03:57 +00003# Generated by GNU Autoconf 2.59 for LLVM 1.4.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer2b51a082004-08-04 00:34:49 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000010## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
Reid Spencer2b51a082004-08-04 00:34:49 +000024DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000025
26# Support unset when possible.
Reid Spencer2b51a082004-08-04 00:34:49 +000027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000028 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
Reid Spencer2b51a082004-08-04 00:34:49 +000046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000047 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
Reid Spencer2b51a082004-08-04 00:34:49 +0000223 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
Reid Spencer2b51a082004-08-04 00:34:49 +0000230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000231
232# Sed expression to map a string onto a valid variable name.
Reid Spencer2b51a082004-08-04 00:34:49 +0000233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
John Criswell7a73b802003-06-30 21:59:07 +0000245
John Criswell7a73b802003-06-30 21:59:07 +0000246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
John Criswell47fdd832003-07-14 16:52:07 +0000264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000276$*
John Criswell7a73b802003-06-30 21:59:07 +0000277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
John Criswell47fdd832003-07-14 16:52:07 +0000310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000311 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000312 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
John Criswell47fdd832003-07-14 16:52:07 +0000321 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
John Criswell47fdd832003-07-14 16:52:07 +0000395
396tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
398tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399
John Criswell7a73b802003-06-30 21:59:07 +0000400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000411ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
Reid Spencer2b51a082004-08-04 00:34:49 +0000424PACKAGE_NAME='LLVM'
425PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000426PACKAGE_VERSION='1.4'
427PACKAGE_STRING='LLVM 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000428PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
John Criswell33a911a2003-11-25 20:36:46 +0000430ac_subdirs_all="$ac_subdirs_all projects/${i}"
John Criswell7a73b802003-06-30 21:59:07 +0000431# Factoring default headers for most tests.
432ac_includes_default="\
433#include <stdio.h>
434#if HAVE_SYS_TYPES_H
435# include <sys/types.h>
436#endif
437#if HAVE_SYS_STAT_H
438# include <sys/stat.h>
439#endif
440#if STDC_HEADERS
441# include <stdlib.h>
442# include <stddef.h>
443#else
444# if HAVE_STDLIB_H
445# include <stdlib.h>
446# endif
447#endif
448#if HAVE_STRING_H
449# if !STDC_HEADERS && HAVE_MEMORY_H
450# include <memory.h>
451# endif
452# include <string.h>
453#endif
454#if HAVE_STRINGS_H
455# include <strings.h>
456#endif
457#if HAVE_INTTYPES_H
458# include <inttypes.h>
459#else
460# if HAVE_STDINT_H
461# include <stdint.h>
462# endif
463#endif
464#if HAVE_UNISTD_H
465# include <unistd.h>
466#endif"
467
468ac_unique_file=""Makefile.config.in""
Reid Spencere9de0912004-08-20 09:03:57 +0000469ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS subdirs INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os OS LLVMGCCDIR ARCH CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP ifGNUmake LEX LEXLIB LEX_OUTPUT_ROOT YACC BISON EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL DOT ETAGS ETAGSFLAGS PYTHON QMTEST HAVE_PTHREAD_MUTEX_LOCK INCLUDE_SYS_TYPES_H INCLUDE_INTTYPES_H INCLUDE_STDINT_H ENDIAN HAVE_STD_EXT_HASH_MAP HAVE_GNU_EXT_HASH_MAP HAVE_GLOBAL_HASH_MAP HAVE_STD_EXT_HASH_SET HAVE_GNU_EXT_HASH_SET HAVE_GLOBAL_HASH_SET HAVE_STD_ITERATOR HAVE_BI_ITERATOR HAVE_FWD_ITERATOR ALLOCA MMAP_FILE ENABLE_OPTIMIZED SPEC95_ROOT USE_SPEC95 SPEC2000_ROOT USE_SPEC2000 POVRAY_ROOT USE_POVRAY UPB DISABLE_LLC_DIFFS JIT LLVMCC1 LLVMCC1PLUS BCR PAPIDIR SHLIBEXT LLVM_PREFIX LLVM_BINDIR LLVM_LIBDIR LLVM_DATADIR LLVM_DOCSDIR LLVM_ETCDIR LLVM_INCLUDEDIR LLVM_INFODIR LLVM_MANDIR LLVM_CONFIGTIME LIBOBJS LTLIBOBJS'
John Criswell0c38eaf2003-09-10 15:17:25 +0000470ac_subst_files=''
John Criswell7a73b802003-06-30 21:59:07 +0000471
472# Initialize some variables set by options.
473ac_init_help=
474ac_init_version=false
475# The variables have the same names as the options, with
476# dashes changed to underlines.
477cache_file=/dev/null
478exec_prefix=NONE
479no_create=
480no_recursion=
481prefix=NONE
482program_prefix=NONE
483program_suffix=NONE
484program_transform_name=s,x,x,
485silent=
486site=
487srcdir=
488verbose=
489x_includes=NONE
490x_libraries=NONE
491
492# Installation directory options.
493# These are left unexpanded so users can "make install exec_prefix=/foo"
494# and all the variables that are supposed to be based on exec_prefix
495# by default will actually change.
496# Use braces instead of parens because sh, perl, etc. also accept them.
497bindir='${exec_prefix}/bin'
498sbindir='${exec_prefix}/sbin'
499libexecdir='${exec_prefix}/libexec'
500datadir='${prefix}/share'
501sysconfdir='${prefix}/etc'
502sharedstatedir='${prefix}/com'
503localstatedir='${prefix}/var'
504libdir='${exec_prefix}/lib'
505includedir='${prefix}/include'
506oldincludedir='/usr/include'
507infodir='${prefix}/info'
508mandir='${prefix}/man'
509
510ac_prev=
511for ac_option
512do
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
516 ac_prev=
517 continue
518 fi
519
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521
522 # Accept the important Cygnus configure options, so we can diagnose typos.
523
524 case $ac_option in
525
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 ac_prev=bindir ;;
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 bindir=$ac_optarg ;;
530
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
535
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
542
543 --config-cache | -C)
544 cache_file=config.cache ;;
545
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 ac_prev=datadir ;;
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 | --da=*)
550 datadir=$ac_optarg ;;
551
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
560
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 case $ac_option in
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 *) ac_optarg=yes ;;
571 esac
572 eval "enable_$ac_feature='$ac_optarg'" ;;
573
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
582
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
585 with_gas=yes ;;
586
587 -help | --help | --hel | --he | -h)
588 ac_init_help=long ;;
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
593
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
598
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
605
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 ac_prev=infodir ;;
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
610
611 -libdir | --libdir | --libdi | --libd)
612 ac_prev=libdir ;;
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 libdir=$ac_optarg ;;
615
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
622
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
631
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 ac_prev=mandir ;;
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
635 mandir=$ac_optarg ;;
636
637 -nfp | --nfp | --nf)
638 # Obsolete; use --without-fp.
639 with_fp=no ;;
640
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
643 no_create=yes ;;
644
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 no_recursion=yes ;;
648
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
657
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 ac_prev=prefix ;;
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 prefix=$ac_optarg ;;
662
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
669
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
676
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
693
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
696 silent=yes ;;
697
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 ac_prev=sbindir ;;
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 | --sbi=* | --sb=*)
702 sbindir=$ac_optarg ;;
703
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
707 | --sha | --sh)
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 | --sha=* | --sh=*)
713 sharedstatedir=$ac_optarg ;;
714
715 -site | --site | --sit)
716 ac_prev=site ;;
717 -site=* | --site=* | --sit=*)
718 site=$ac_optarg ;;
719
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 ac_prev=srcdir ;;
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 srcdir=$ac_optarg ;;
724
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
731
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
736
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 verbose=yes ;;
739
740 -version | --version | --versio | --versi | --vers | -V)
741 ac_init_version=: ;;
742
743 -with-* | --with-*)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 case $ac_option in
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 *) ac_optarg=yes ;;
753 esac
754 eval "with_$ac_package='$ac_optarg'" ;;
755
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
764
765 --x)
766 # Obsolete; use --with-x.
767 with_x=yes ;;
768
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
775
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
782
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
786 ;;
787
788 *=*)
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
796 export $ac_envvar ;;
797
798 *)
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
804 ;;
805
806 esac
807done
808
809if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
813fi
814
815# Be sure to have absolute paths.
816for ac_var in exec_prefix prefix
817do
818 eval ac_val=$`echo $ac_var`
819 case $ac_val in
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
823 esac
824done
825
826# Be sure to have absolute paths.
827for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Reid Spencer2b51a082004-08-04 00:34:49 +0000828 localstatedir libdir includedir oldincludedir infodir mandir
John Criswell7a73b802003-06-30 21:59:07 +0000829do
830 eval ac_val=$`echo $ac_var`
831 case $ac_val in
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
835 esac
836done
837
838# There might be people who depend on the old broken behavior: `$host'
839# used to hold the argument of --host etc.
840# FIXME: To remove some day.
841build=$build_alias
842host=$host_alias
843target=$target_alias
844
845# FIXME: To remove some day.
846if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
852 cross_compiling=yes
853 fi
854fi
855
856ac_tool_prefix=
857test -n "$host_alias" && ac_tool_prefix=$host_alias-
858
859test "$silent" = yes && exec 6>/dev/null
860
861
862# Find the source files, if location was not specified.
863if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +0000868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +0000872echo X"$0" |
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
877 s/.*/./; q'`
878 srcdir=$ac_confdir
879 if test ! -r $srcdir/$ac_unique_file; then
880 srcdir=..
881 fi
882else
883 ac_srcdir_defaulted=no
884fi
885if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
889 else
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
892 fi
893fi
John Criswell0c38eaf2003-09-10 15:17:25 +0000894(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
John Criswell7a73b802003-06-30 21:59:07 +0000897srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898ac_env_build_alias_set=${build_alias+set}
899ac_env_build_alias_value=$build_alias
900ac_cv_env_build_alias_set=${build_alias+set}
901ac_cv_env_build_alias_value=$build_alias
902ac_env_host_alias_set=${host_alias+set}
903ac_env_host_alias_value=$host_alias
904ac_cv_env_host_alias_set=${host_alias+set}
905ac_cv_env_host_alias_value=$host_alias
906ac_env_target_alias_set=${target_alias+set}
907ac_env_target_alias_value=$target_alias
908ac_cv_env_target_alias_set=${target_alias+set}
909ac_cv_env_target_alias_value=$target_alias
910ac_env_CXX_set=${CXX+set}
911ac_env_CXX_value=$CXX
912ac_cv_env_CXX_set=${CXX+set}
913ac_cv_env_CXX_value=$CXX
914ac_env_CXXFLAGS_set=${CXXFLAGS+set}
915ac_env_CXXFLAGS_value=$CXXFLAGS
916ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
917ac_cv_env_CXXFLAGS_value=$CXXFLAGS
918ac_env_LDFLAGS_set=${LDFLAGS+set}
919ac_env_LDFLAGS_value=$LDFLAGS
920ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921ac_cv_env_LDFLAGS_value=$LDFLAGS
922ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923ac_env_CPPFLAGS_value=$CPPFLAGS
924ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926ac_env_CC_set=${CC+set}
927ac_env_CC_value=$CC
928ac_cv_env_CC_set=${CC+set}
929ac_cv_env_CC_value=$CC
930ac_env_CFLAGS_set=${CFLAGS+set}
931ac_env_CFLAGS_value=$CFLAGS
932ac_cv_env_CFLAGS_set=${CFLAGS+set}
933ac_cv_env_CFLAGS_value=$CFLAGS
934ac_env_CPP_set=${CPP+set}
935ac_env_CPP_value=$CPP
936ac_cv_env_CPP_set=${CPP+set}
937ac_cv_env_CPP_value=$CPP
John Criswell47fdd832003-07-14 16:52:07 +0000938ac_env_CXXCPP_set=${CXXCPP+set}
939ac_env_CXXCPP_value=$CXXCPP
940ac_cv_env_CXXCPP_set=${CXXCPP+set}
941ac_cv_env_CXXCPP_value=$CXXCPP
942ac_env_F77_set=${F77+set}
943ac_env_F77_value=$F77
944ac_cv_env_F77_set=${F77+set}
945ac_cv_env_F77_value=$F77
946ac_env_FFLAGS_set=${FFLAGS+set}
947ac_env_FFLAGS_value=$FFLAGS
948ac_cv_env_FFLAGS_set=${FFLAGS+set}
949ac_cv_env_FFLAGS_value=$FFLAGS
John Criswell7a73b802003-06-30 21:59:07 +0000950
951#
952# Report the --help message.
953#
954if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
957 cat <<_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +0000958\`configure' configures LLVM 1.4 to adapt to many kinds of systems.
John Criswell7a73b802003-06-30 21:59:07 +0000959
960Usage: $0 [OPTION]... [VAR=VALUE]...
961
962To assign environment variables (e.g., CC, CFLAGS...), specify them as
963VAR=VALUE. See below for descriptions of some of the useful variables.
964
965Defaults for the options are specified in brackets.
966
967Configuration:
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
977
978_ACEOF
979
980 cat <<_ACEOF
981Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
Reid Spencer2b51a082004-08-04 00:34:49 +0000983 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer2b51a082004-08-04 00:34:49 +0000985 [PREFIX]
John Criswell7a73b802003-06-30 21:59:07 +0000986
987By default, \`make install' will install all the files in
988\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990for instance \`--prefix=\$HOME'.
991
992For better control, use the options below.
993
994Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1007_ACEOF
1008
1009 cat <<\_ACEOF
1010
1011System types:
1012 --build=BUILD configure for building on BUILD [guessed]
1013 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1014 --target=TARGET configure for building compilers for TARGET [HOST]
1015_ACEOF
1016fi
1017
1018if test -n "$ac_init_help"; then
1019 case $ac_init_help in
Reid Spencere9de0912004-08-20 09:03:57 +00001020 short | recursive ) echo "Configuration of LLVM 1.4:";;
John Criswell7a73b802003-06-30 21:59:07 +00001021 esac
1022 cat <<\_ACEOF
1023
1024Optional Features:
1025 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1026 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
John Criswell47fdd832003-07-14 16:52:07 +00001027 --enable-shared[=PKGS]
1028 build shared libraries [default=yes]
1029 --enable-static[=PKGS]
1030 build static libraries [default=yes]
1031 --enable-fast-install[=PKGS]
1032 optimize for fast installation [default=yes]
John Criswell7a73b802003-06-30 21:59:07 +00001033 --disable-libtool-lock avoid locking (might break parallel builds)
John Criswell7a73b802003-06-30 21:59:07 +00001034 --enable-optimized Compile with optimizations enabled (default is NO)
Brian Gaekee773b862004-04-16 17:13:44 +00001035 --enable-spec95=ARG Use spec95 as a benchmark (srcs in DIR)
1036 --enable-spec2000=ARG Use spec2000 as a benchmark (srcs in DIR)
1037 --enable-povray=ARG Use povray as a benchmark (srcs in DIR)
John Criswell7a73b802003-06-30 21:59:07 +00001038 --enable-precompiled_bytecode
1039 Use pre-compiled bytecode (default is NO)
John Criswellf02dbf02003-07-22 20:07:49 +00001040 --enable-llc_diffs Enable LLC Diffs when testing (default is YES)
John Criswellc78022e2003-07-29 19:11:58 +00001041 --enable-jit Enable Just In Time Compiling (default is YES)
John Criswell7a73b802003-06-30 21:59:07 +00001042
1043Optional Packages:
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
John Criswell47fdd832003-07-14 16:52:07 +00001046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1048 both]
1049 --with-tags[=TAGS]
1050 include additional configurations [automatic]
John Criswell7a73b802003-06-30 21:59:07 +00001051 --with-llvmgccdir Location of LLVM GCC front-end
1052 --with-bcrepos Location of Bytecode Repository
1053 --with-papi Location of PAPI
John Criswell7a73b802003-06-30 21:59:07 +00001054
1055Some influential environment variables:
1056 CXX C++ compiler command
1057 CXXFLAGS C++ compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1062 CC C compiler command
1063 CFLAGS C compiler flags
1064 CPP C preprocessor
John Criswell47fdd832003-07-14 16:52:07 +00001065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
John Criswell7a73b802003-06-30 21:59:07 +00001068
1069Use these variables to override the choices made by `configure' or to help
1070it to find libraries and programs with nonstandard names/locations.
1071
1072Report bugs to <llvmbugs@cs.uiuc.edu>.
1073_ACEOF
1074fi
1075
1076if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087else
1088 ac_dir_suffix= ac_top_builddir=
1089fi
1090
1091case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105esac
Reid Spencer2b51a082004-08-04 00:34:49 +00001106
1107# Do not use `cd foo && pwd` to compute absolute paths, because
1108# the directories may not exist.
1109case `pwd` in
1110.) ac_abs_builddir="$ac_dir";;
1111*)
1112 case "$ac_dir" in
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 esac;;
1117esac
1118case $ac_abs_builddir in
1119.) ac_abs_top_builddir=${ac_top_builddir}.;;
1120*)
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 esac;;
1126esac
1127case $ac_abs_builddir in
1128.) ac_abs_srcdir=$ac_srcdir;;
1129*)
1130 case $ac_srcdir in
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 esac;;
1135esac
1136case $ac_abs_builddir in
1137.) ac_abs_top_srcdir=$ac_top_srcdir;;
1138*)
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 esac;;
1144esac
John Criswell7a73b802003-06-30 21:59:07 +00001145
1146 cd $ac_dir
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1149 echo
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1152 echo
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
Reid Spencer2b51a082004-08-04 00:34:49 +00001155 test -f $ac_srcdir/configure.in; then
John Criswell7a73b802003-06-30 21:59:07 +00001156 echo
1157 $ac_configure --help
1158 else
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 fi
1161 cd $ac_popdir
1162 done
1163fi
1164
1165test -n "$ac_init_help" && exit 0
1166if $ac_init_version; then
1167 cat <<\_ACEOF
Reid Spencere9de0912004-08-20 09:03:57 +00001168LLVM configure 1.4
Reid Spencer2b51a082004-08-04 00:34:49 +00001169generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001170
Reid Spencer2b51a082004-08-04 00:34:49 +00001171Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00001172This configure script is free software; the Free Software Foundation
1173gives unlimited permission to copy, distribute and modify it.
1174_ACEOF
1175 exit 0
1176fi
1177exec 5>config.log
1178cat >&5 <<_ACEOF
1179This file contains any messages produced by compilers while
1180running configure, to aid debugging if configure makes a mistake.
1181
Reid Spencere9de0912004-08-20 09:03:57 +00001182It was created by LLVM $as_me 1.4, which was
Reid Spencer2b51a082004-08-04 00:34:49 +00001183generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +00001184
1185 $ $0 $@
1186
1187_ACEOF
1188{
1189cat <<_ASUNAME
1190## --------- ##
1191## Platform. ##
1192## --------- ##
1193
1194hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198uname -v = `(uname -v) 2>/dev/null || echo unknown`
1199
1200/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1202
1203/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1210
1211_ASUNAME
1212
1213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1214for as_dir in $PATH
1215do
1216 IFS=$as_save_IFS
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1219done
1220
1221} >&5
1222
1223cat >&5 <<_ACEOF
1224
1225
1226## ----------- ##
1227## Core tests. ##
1228## ----------- ##
1229
1230_ACEOF
1231
1232
1233# Keep a trace of the command line.
1234# Strip out --no-create and --no-recursion so they do not pile up.
John Criswell0c38eaf2003-09-10 15:17:25 +00001235# Strip out --silent because we don't want to record it for future runs.
John Criswell7a73b802003-06-30 21:59:07 +00001236# Also quote any args containing shell meta-characters.
John Criswell0c38eaf2003-09-10 15:17:25 +00001237# Make two passes to allow for proper duplicate-argument suppression.
John Criswell7a73b802003-06-30 21:59:07 +00001238ac_configure_args=
John Criswell0c38eaf2003-09-10 15:17:25 +00001239ac_configure_args0=
1240ac_configure_args1=
John Criswell7a73b802003-06-30 21:59:07 +00001241ac_sep=
John Criswell0c38eaf2003-09-10 15:17:25 +00001242ac_must_keep_next=false
1243for ac_pass in 1 2
John Criswell7a73b802003-06-30 21:59:07 +00001244do
John Criswell0c38eaf2003-09-10 15:17:25 +00001245 for ac_arg
1246 do
1247 case $ac_arg in
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1251 continue ;;
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1254 esac
1255 case $ac_pass in
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1257 2)
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
Reid Spencer2b51a082004-08-04 00:34:49 +00001260 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001261 else
Reid Spencer2b51a082004-08-04 00:34:49 +00001262 case $ac_arg in
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1269 esac
1270 ;;
1271 -* ) ac_must_keep_next=true ;;
1272 esac
John Criswell0c38eaf2003-09-10 15:17:25 +00001273 fi
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1276 ac_sep=" "
1277 ;;
1278 esac
1279 done
John Criswell7a73b802003-06-30 21:59:07 +00001280done
John Criswell0c38eaf2003-09-10 15:17:25 +00001281$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282$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 +00001283
1284# When interrupted or exit'd, cleanup temporary files, and complete
1285# config.log. We remove comments because anyway the quotes in there
1286# would cause problems or look ugly.
1287# WARNING: Be sure not to use single quotes in there, as some shells,
1288# such as our DU 5.0 friend, will then `close' the trap.
1289trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1291 {
1292 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001293
John Criswell7a73b802003-06-30 21:59:07 +00001294 cat <<\_ASBOX
1295## ---------------- ##
1296## Cache variables. ##
1297## ---------------- ##
1298_ASBOX
1299 echo
1300 # The following way of writing the cache mishandles newlines in values,
1301{
1302 (set) 2>&1 |
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1304 *ac_space=\ *)
1305 sed -n \
Reid Spencer2b51a082004-08-04 00:34:49 +00001306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
John Criswell7a73b802003-06-30 21:59:07 +00001308 ;;
1309 *)
1310 sed -n \
Reid Spencer2b51a082004-08-04 00:34:49 +00001311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +00001312 ;;
1313 esac;
1314}
1315 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001316
1317 cat <<\_ASBOX
1318## ----------------- ##
1319## Output variables. ##
1320## ----------------- ##
1321_ASBOX
1322 echo
1323 for ac_var in $ac_subst_vars
1324 do
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1327 done | sort
1328 echo
1329
1330 if test -n "$ac_subst_files"; then
1331 cat <<\_ASBOX
1332## ------------- ##
1333## Output files. ##
1334## ------------- ##
1335_ASBOX
1336 echo
1337 for ac_var in $ac_subst_files
1338 do
1339 eval ac_val=$`echo $ac_var`
Reid Spencer2b51a082004-08-04 00:34:49 +00001340 echo "$ac_var='"'"'$ac_val'"'"'"
John Criswell0c38eaf2003-09-10 15:17:25 +00001341 done | sort
1342 echo
1343 fi
1344
John Criswell7a73b802003-06-30 21:59:07 +00001345 if test -s confdefs.h; then
1346 cat <<\_ASBOX
1347## ----------- ##
1348## confdefs.h. ##
1349## ----------- ##
1350_ASBOX
1351 echo
John Criswell0c38eaf2003-09-10 15:17:25 +00001352 sed "/^$/d" confdefs.h | sort
John Criswell7a73b802003-06-30 21:59:07 +00001353 echo
1354 fi
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1358 } >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00001359 rm -f core *.core &&
John Criswell7a73b802003-06-30 21:59:07 +00001360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1361 exit $exit_status
1362 ' 0
1363for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1365done
1366ac_signal=0
1367
1368# confdefs.h avoids OS command line length limits that DEFS can exceed.
1369rm -rf conftest* confdefs.h
1370# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1371echo >confdefs.h
1372
1373# Predefined preprocessor variables.
1374
1375cat >>confdefs.h <<_ACEOF
1376#define PACKAGE_NAME "$PACKAGE_NAME"
1377_ACEOF
1378
1379
1380cat >>confdefs.h <<_ACEOF
1381#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1382_ACEOF
1383
1384
1385cat >>confdefs.h <<_ACEOF
1386#define PACKAGE_VERSION "$PACKAGE_VERSION"
1387_ACEOF
1388
1389
1390cat >>confdefs.h <<_ACEOF
1391#define PACKAGE_STRING "$PACKAGE_STRING"
1392_ACEOF
1393
1394
1395cat >>confdefs.h <<_ACEOF
1396#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1397_ACEOF
1398
1399
1400# Let the site file select an alternate cache file if it wants to.
1401# Prefer explicitly selected file to automatically selected ones.
1402if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1405 else
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1407 fi
1408fi
1409for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1414 . "$ac_site_file"
1415 fi
1416done
1417
1418if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423echo "$as_me: loading cache $cache_file" >&6;}
1424 case $cache_file in
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1427 esac
1428 fi
1429else
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431echo "$as_me: creating cache $cache_file" >&6;}
1432 >$cache_file
1433fi
1434
1435# Check that the precious variables saved in the cache have kept the same
1436# value.
1437ac_cache_corrupted=false
1438for ac_var in `(set) 2>&1 |
Reid Spencer2b51a082004-08-04 00:34:49 +00001439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
John Criswell7a73b802003-06-30 21:59:07 +00001440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1445 set,)
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1449 ,set)
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1453 ,);;
1454 *)
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
Reid Spencer2b51a082004-08-04 00:34:49 +00001456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001457echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00001458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001459echo "$as_me: former value: $ac_old_val" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00001460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
John Criswell7a73b802003-06-30 21:59:07 +00001461echo "$as_me: current value: $ac_new_val" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00001462 ac_cache_corrupted=:
John Criswell7a73b802003-06-30 21:59:07 +00001463 fi;;
1464 esac
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1467 case $ac_new_val in
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1471 esac
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1475 esac
1476 fi
1477done
1478if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1484fi
1485
1486ac_ext=c
1487ac_cpp='$CPP $CPPFLAGS'
1488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490ac_compiler_gnu=$ac_cv_c_compiler_gnu
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
John Criswell0c38eaf2003-09-10 15:17:25 +00001518
John Criswell7a73b802003-06-30 21:59:07 +00001519ac_aux_dir=
John Criswell392aaa32003-07-22 19:18:09 +00001520for ac_dir in autoconf $srcdir/autoconf; do
John Criswell7a73b802003-06-30 21:59:07 +00001521 if test -f $ac_dir/install-sh; then
1522 ac_aux_dir=$ac_dir
1523 ac_install_sh="$ac_aux_dir/install-sh -c"
1524 break
1525 elif test -f $ac_dir/install.sh; then
1526 ac_aux_dir=$ac_dir
1527 ac_install_sh="$ac_aux_dir/install.sh -c"
1528 break
1529 elif test -f $ac_dir/shtool; then
1530 ac_aux_dir=$ac_dir
1531 ac_install_sh="$ac_aux_dir/shtool install -c"
1532 break
1533 fi
1534done
1535if test -z "$ac_aux_dir"; then
John Criswell392aaa32003-07-22 19:18:09 +00001536 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5
1537echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00001538 { (exit 1); exit 1; }; }
1539fi
1540ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1541ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1542ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1543
John Criswell392aaa32003-07-22 19:18:09 +00001544
John Criswell1b824322003-09-15 17:19:42 +00001545if test ${srcdir} != "."
John Criswell93e1c722003-09-15 17:04:06 +00001546then
John Criswell1b824322003-09-15 17:19:42 +00001547 if test -f ${srcdir}/include/Config/config.h
1548 then
1549 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
John Criswell93e1c722003-09-15 17:04:06 +00001550echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1551 { (exit 1); exit 1; }; }
John Criswell1b824322003-09-15 17:19:42 +00001552 fi
John Criswell93e1c722003-09-15 17:04:06 +00001553fi
1554
John Criswell33a911a2003-11-25 20:36:46 +00001555for i in `ls ${srcdir}/projects`
1556do
1557 if test ${i} != "CVS"
1558 then
John Criswell2f2741b2003-12-12 20:15:23 +00001559 if test -f ${srcdir}/projects/${i}/configure
John Criswell33a911a2003-11-25 20:36:46 +00001560 then
John Criswell7ec78aa2003-10-16 01:49:00 +00001561
1562
John Criswell33a911a2003-11-25 20:36:46 +00001563subdirs="$subdirs projects/${i}"
John Criswell7ec78aa2003-10-16 01:49:00 +00001564
John Criswell33a911a2003-11-25 20:36:46 +00001565 fi
1566 fi
1567done
John Criswell559a6c12003-09-30 16:31:48 +00001568
John Criswell0c38eaf2003-09-10 15:17:25 +00001569 ac_config_headers="$ac_config_headers include/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001570
John Criswelldc76e322004-07-23 15:40:57 +00001571
1572 ac_config_files="$ac_config_files Makefile.config include/Support/DataTypes.h include/Support/ThreadSupport.h include/Support/hash_map include/Support/hash_set include/Support/iterator"
1573
1574
John Criswell0c38eaf2003-09-10 15:17:25 +00001575 ac_config_commands="$ac_config_commands Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001576
1577
John Criswell0c38eaf2003-09-10 15:17:25 +00001578 ac_config_commands="$ac_config_commands Makefile.common"
John Criswellc764fbc2003-09-06 15:17:13 +00001579
1580
Reid Spencer5f285392004-08-24 16:32:21 +00001581 ac_config_commands="$ac_config_commands examples/Makefile"
1582
1583
John Criswell0c38eaf2003-09-10 15:17:25 +00001584 ac_config_commands="$ac_config_commands lib/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001585
1586
John Criswell0c38eaf2003-09-10 15:17:25 +00001587 ac_config_commands="$ac_config_commands runtime/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001588
1589
John Criswell0c38eaf2003-09-10 15:17:25 +00001590 ac_config_commands="$ac_config_commands test/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001591
1592
John Criswell0c38eaf2003-09-10 15:17:25 +00001593 ac_config_commands="$ac_config_commands test/Makefile.tests"
John Criswellc764fbc2003-09-06 15:17:13 +00001594
1595
John Criswellf424d742003-10-07 21:13:47 +00001596 ac_config_commands="$ac_config_commands test/QMTest/llvm.py"
1597
1598
1599 ac_config_commands="$ac_config_commands test/QMTest/llvmdb.py"
John Criswell08acb9b2003-09-16 02:12:45 +00001600
1601
John Criswell0c38eaf2003-09-10 15:17:25 +00001602 ac_config_commands="$ac_config_commands test/Programs/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001603
1604
John Criswell0c38eaf2003-09-10 15:17:25 +00001605 ac_config_commands="$ac_config_commands test/Programs/Makefile.programs"
John Criswellc764fbc2003-09-06 15:17:13 +00001606
1607
John Criswell8a54a1e2004-06-22 21:35:10 +00001608 ac_config_commands="$ac_config_commands test/Programs/Makefile.tests"
1609
1610
John Criswell0c38eaf2003-09-10 15:17:25 +00001611 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001612
1613
John Criswell0c38eaf2003-09-10 15:17:25 +00001614 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001615
1616
John Criswell0c38eaf2003-09-10 15:17:25 +00001617 ac_config_commands="$ac_config_commands test/Programs/TEST.aa.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001618
1619
John Criswell0c38eaf2003-09-10 15:17:25 +00001620 ac_config_commands="$ac_config_commands test/Programs/TEST.example.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001621
1622
John Criswell0c38eaf2003-09-10 15:17:25 +00001623 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001624
1625
John Criswell0c38eaf2003-09-10 15:17:25 +00001626 ac_config_commands="$ac_config_commands test/Programs/TEST.buildrepo.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001627
1628
John Criswell0c38eaf2003-09-10 15:17:25 +00001629 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001630
1631
John Criswell0c38eaf2003-09-10 15:17:25 +00001632 ac_config_commands="$ac_config_commands test/Programs/TEST.nightly.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001633
1634
John Criswell0c38eaf2003-09-10 15:17:25 +00001635 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001636
1637
John Criswell0c38eaf2003-09-10 15:17:25 +00001638 ac_config_commands="$ac_config_commands test/Programs/TEST.jit.report"
John Criswellc764fbc2003-09-06 15:17:13 +00001639
1640
John Criswell0c38eaf2003-09-10 15:17:25 +00001641 ac_config_commands="$ac_config_commands test/Programs/TEST.typesafe.Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001642
1643
John Criswell0c38eaf2003-09-10 15:17:25 +00001644 ac_config_commands="$ac_config_commands test/Programs/TEST.dsgraph.gnuplot"
John Criswellc764fbc2003-09-06 15:17:13 +00001645
1646
John Criswell878be7d2004-02-24 21:43:38 +00001647 ac_config_commands="$ac_config_commands test/Programs/TEST.vtl.Makefile"
1648
1649
John Criswell0c38eaf2003-09-10 15:17:25 +00001650 ac_config_commands="$ac_config_commands test/Programs/External/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001651
1652
John Criswell0c38eaf2003-09-10 15:17:25 +00001653 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001654
1655
John Criswell613758d2003-09-11 18:03:50 +00001656 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec"
1657
1658
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001659 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec2000"
1660
1661
John Criswellcf2e9f72004-02-10 22:36:35 +00001662 ac_config_commands="$ac_config_commands test/Programs/External/SPEC/Makefile.spec95"
1663
1664
John Criswell0c38eaf2003-09-10 15:17:25 +00001665 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001666
1667
John Criswell0c38eaf2003-09-10 15:17:25 +00001668 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Makefile.multisrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001669
1670
Misha Brukman811ce9f2003-11-12 22:16:51 +00001671 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in"
1672
1673
1674 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile"
1675
1676
1677 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in"
1678
1679
1680 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile"
1681
1682
1683 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in"
1684
1685
1686 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile"
1687
1688
1689 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in"
1690
1691
1692 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile"
1693
1694
1695 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in"
1696
1697
1698 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile"
1699
1700
1701 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in"
1702
1703
1704 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile"
1705
1706
1707 ac_config_commands="$ac_config_commands test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in"
1708
1709
John Criswell0c38eaf2003-09-10 15:17:25 +00001710 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001711
1712
John Criswell0c38eaf2003-09-10 15:17:25 +00001713 ac_config_commands="$ac_config_commands test/Programs/SingleSource/Makefile.singlesrc"
John Criswellc764fbc2003-09-06 15:17:13 +00001714
1715
Alkis Evlogimenos271143f2004-02-26 04:14:10 +00001716 ac_config_commands="$ac_config_commands test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile"
1717
1718
John Criswell0c38eaf2003-09-10 15:17:25 +00001719 ac_config_commands="$ac_config_commands tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001720
1721
Brian Gaekec45be042003-10-07 06:01:34 +00001722 ac_config_commands="$ac_config_commands utils/Makefile"
1723
1724
John Criswell0c38eaf2003-09-10 15:17:25 +00001725 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001726
1727
John Criswell392aaa32003-07-22 19:18:09 +00001728
John Criswell7a73b802003-06-30 21:59:07 +00001729# Find a good install program. We prefer a C program (faster),
1730# so one script is as good as another. But avoid the broken or
1731# incompatible versions:
1732# SysV /etc/install, /usr/sbin/install
1733# SunOS /usr/etc/install
1734# IRIX /sbin/install
1735# AIX /bin/install
1736# AmigaOS /C/install, which installs bootblocks on floppy discs
1737# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1738# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1739# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Reid Spencer2b51a082004-08-04 00:34:49 +00001740# OS/2's system install, which has a completely different semantic
John Criswell7a73b802003-06-30 21:59:07 +00001741# ./install, which can be erroneously created by make from ./install.sh.
1742echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1743echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1744if test -z "$INSTALL"; then
1745if test "${ac_cv_path_install+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1747else
1748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1749for as_dir in $PATH
1750do
1751 IFS=$as_save_IFS
1752 test -z "$as_dir" && as_dir=.
1753 # Account for people who put trailing slashes in PATH elements.
1754case $as_dir/ in
1755 ./ | .// | /cC/* | \
1756 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Reid Spencer2b51a082004-08-04 00:34:49 +00001757 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
John Criswell7a73b802003-06-30 21:59:07 +00001758 /usr/ucb/* ) ;;
1759 *)
1760 # OSF1 and SCO ODT 3.0 have their own names for install.
1761 # Don't use installbsd from OSF since it installs stuff as root
1762 # by default.
1763 for ac_prog in ginstall scoinst install; do
1764 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencer2b51a082004-08-04 00:34:49 +00001765 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1766 if test $ac_prog = install &&
1767 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1768 # AIX install. It has an incompatible calling convention.
1769 :
1770 elif test $ac_prog = install &&
1771 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1772 # program-specific install script used by HP pwplus--don't use.
1773 :
1774 else
1775 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1776 break 3
1777 fi
1778 fi
John Criswell7a73b802003-06-30 21:59:07 +00001779 done
1780 done
1781 ;;
1782esac
1783done
1784
1785
1786fi
1787 if test "${ac_cv_path_install+set}" = set; then
1788 INSTALL=$ac_cv_path_install
1789 else
1790 # As a last resort, use the slow shell script. We don't cache a
1791 # path for INSTALL within a source directory, because that will
1792 # break other packages using the cache if that directory is
1793 # removed, or if the path is relative.
1794 INSTALL=$ac_install_sh
1795 fi
1796fi
1797echo "$as_me:$LINENO: result: $INSTALL" >&5
1798echo "${ECHO_T}$INSTALL" >&6
1799
1800# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1801# It thinks the first close brace ends the variable substitution.
1802test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1803
1804test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1805
1806test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1807
1808
1809# Make sure we can run config.sub.
1810$ac_config_sub sun4 >/dev/null 2>&1 ||
1811 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1812echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1813 { (exit 1); exit 1; }; }
1814
1815echo "$as_me:$LINENO: checking build system type" >&5
1816echo $ECHO_N "checking build system type... $ECHO_C" >&6
1817if test "${ac_cv_build+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819else
1820 ac_cv_build_alias=$build_alias
1821test -z "$ac_cv_build_alias" &&
1822 ac_cv_build_alias=`$ac_config_guess`
1823test -z "$ac_cv_build_alias" &&
1824 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1825echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1826 { (exit 1); exit 1; }; }
1827ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1828 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1829echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1830 { (exit 1); exit 1; }; }
1831
1832fi
1833echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1834echo "${ECHO_T}$ac_cv_build" >&6
1835build=$ac_cv_build
1836build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1837build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1838build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1839
1840
1841echo "$as_me:$LINENO: checking host system type" >&5
1842echo $ECHO_N "checking host system type... $ECHO_C" >&6
1843if test "${ac_cv_host+set}" = set; then
1844 echo $ECHO_N "(cached) $ECHO_C" >&6
1845else
1846 ac_cv_host_alias=$host_alias
1847test -z "$ac_cv_host_alias" &&
1848 ac_cv_host_alias=$ac_cv_build_alias
1849ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1850 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1851echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1852 { (exit 1); exit 1; }; }
1853
1854fi
1855echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1856echo "${ECHO_T}$ac_cv_host" >&6
1857host=$ac_cv_host
1858host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1859host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1860host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1861
1862
1863echo "$as_me:$LINENO: checking target system type" >&5
1864echo $ECHO_N "checking target system type... $ECHO_C" >&6
1865if test "${ac_cv_target+set}" = set; then
1866 echo $ECHO_N "(cached) $ECHO_C" >&6
1867else
1868 ac_cv_target_alias=$target_alias
1869test "x$ac_cv_target_alias" = "x" &&
1870 ac_cv_target_alias=$ac_cv_host_alias
1871ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1872 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1873echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1874 { (exit 1); exit 1; }; }
1875
1876fi
1877echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1878echo "${ECHO_T}$ac_cv_target" >&6
1879target=$ac_cv_target
1880target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1881target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1882target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1883
1884
1885# The aliases save the names the user supplied, while $host etc.
1886# will get canonicalized.
1887test -n "$target_alias" &&
1888 test "$program_prefix$program_suffix$program_transform_name" = \
1889 NONENONEs,x,x, &&
1890 program_prefix=${target_alias}-
1891
1892case $build in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001893 *-*-linux*)
1894 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001895
Brian Gaekef3b24102003-11-16 18:38:14 +00001896 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1897 then
1898 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001899
Brian Gaekef3b24102003-11-16 18:38:14 +00001900 fi
John Criswell7a73b802003-06-30 21:59:07 +00001901 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001902 *-*-solaris*)
1903 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001904
Brian Gaekef3b24102003-11-16 18:38:14 +00001905 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1906 then
1907 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001908
Brian Gaekef3b24102003-11-16 18:38:14 +00001909 fi
John Criswell7a73b802003-06-30 21:59:07 +00001910 ;;
John Criswelld6621562004-06-07 14:26:24 +00001911 *-*-cygwin*)
1912 OS=Cygwin
1913
1914 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001915 *-*-darwin*)
1916 OS=Darwin
1917
1918 ;;
Misha Brukmandb84a092004-06-22 15:35:32 +00001919 *-*-aix*)
1920 OS=AIX
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001921
Misha Brukmandb84a092004-06-22 15:35:32 +00001922 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001923 *) OS=Unknown
1924
1925 ;;
1926esac
1927
1928case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001929 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001930
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001931 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001932esac
1933
John Criswell76595452003-07-01 22:07:39 +00001934case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001935 i*86-*) ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001936
1937 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001938 sparc*-*) ARCH=Sparc
1939
1940 ;;
1941 powerpc*-*) ARCH=PowerPC
1942
1943 ;;
1944 *) ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001945
1946 ;;
1947esac
1948
John Criswell7a73b802003-06-30 21:59:07 +00001949ac_ext=cc
1950ac_cpp='$CXXCPP $CPPFLAGS'
1951ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1952ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1953ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1954if test -n "$ac_tool_prefix"; then
1955 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1956 do
1957 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1958set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1959echo "$as_me:$LINENO: checking for $ac_word" >&5
1960echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1961if test "${ac_cv_prog_CXX+set}" = set; then
1962 echo $ECHO_N "(cached) $ECHO_C" >&6
1963else
1964 if test -n "$CXX"; then
1965 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1966else
1967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1968for as_dir in $PATH
1969do
1970 IFS=$as_save_IFS
1971 test -z "$as_dir" && as_dir=.
1972 for ac_exec_ext in '' $ac_executable_extensions; do
1973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1974 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1976 break 2
1977 fi
1978done
1979done
1980
1981fi
1982fi
1983CXX=$ac_cv_prog_CXX
1984if test -n "$CXX"; then
1985 echo "$as_me:$LINENO: result: $CXX" >&5
1986echo "${ECHO_T}$CXX" >&6
1987else
1988 echo "$as_me:$LINENO: result: no" >&5
1989echo "${ECHO_T}no" >&6
1990fi
1991
1992 test -n "$CXX" && break
1993 done
1994fi
1995if test -z "$CXX"; then
1996 ac_ct_CXX=$CXX
1997 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1998do
1999 # Extract the first word of "$ac_prog", so it can be a program name with args.
2000set dummy $ac_prog; ac_word=$2
2001echo "$as_me:$LINENO: checking for $ac_word" >&5
2002echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2005else
2006 if test -n "$ac_ct_CXX"; then
2007 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2008else
2009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2010for as_dir in $PATH
2011do
2012 IFS=$as_save_IFS
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_ac_ct_CXX="$ac_prog"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2018 break 2
2019 fi
2020done
2021done
2022
2023fi
2024fi
2025ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2026if test -n "$ac_ct_CXX"; then
2027 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2028echo "${ECHO_T}$ac_ct_CXX" >&6
2029else
2030 echo "$as_me:$LINENO: result: no" >&5
2031echo "${ECHO_T}no" >&6
2032fi
2033
2034 test -n "$ac_ct_CXX" && break
2035done
2036test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2037
2038 CXX=$ac_ct_CXX
2039fi
2040
2041
2042# Provide some information about the compiler.
2043echo "$as_me:$LINENO:" \
2044 "checking for C++ compiler version" >&5
2045ac_compiler=`set X $ac_compile; echo $2`
2046{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2047 (eval $ac_compiler --version </dev/null >&5) 2>&5
2048 ac_status=$?
2049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2050 (exit $ac_status); }
2051{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2052 (eval $ac_compiler -v </dev/null >&5) 2>&5
2053 ac_status=$?
2054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055 (exit $ac_status); }
2056{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2057 (eval $ac_compiler -V </dev/null >&5) 2>&5
2058 ac_status=$?
2059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2060 (exit $ac_status); }
2061
2062cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002063/* confdefs.h. */
2064_ACEOF
2065cat confdefs.h >>conftest.$ac_ext
2066cat >>conftest.$ac_ext <<_ACEOF
2067/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002068
John Criswell7a73b802003-06-30 21:59:07 +00002069int
2070main ()
2071{
2072
2073 ;
2074 return 0;
2075}
2076_ACEOF
2077ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002078ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002079# Try to create an executable without -o first, disregard a.out.
2080# It will help us diagnose broken compilers, and finding out an intuition
2081# of exeext.
Reid Spencer2b51a082004-08-04 00:34:49 +00002082echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2083echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002084ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2085if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2086 (eval $ac_link_default) 2>&5
2087 ac_status=$?
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }; then
2090 # Find the output, starting from the most likely. This scheme is
2091# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2092# resort.
2093
2094# Be careful to initialize this variable, since it used to be cached.
2095# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2096ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002097# b.out is created by i960 compilers.
2098for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2099do
2100 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002101 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer2b51a082004-08-04 00:34:49 +00002103 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002104 conftest.$ac_ext )
Reid Spencer2b51a082004-08-04 00:34:49 +00002105 # This is the source file.
2106 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002107 [ab].out )
Reid Spencer2b51a082004-08-04 00:34:49 +00002108 # We found the default executable, but exeext='' is most
2109 # certainly right.
2110 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002111 *.* )
Reid Spencer2b51a082004-08-04 00:34:49 +00002112 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2113 # FIXME: I believe we export ac_cv_exeext for Libtool,
2114 # but it would be cool to find out if it's true. Does anybody
2115 # maintain Libtool? --akim.
2116 export ac_cv_exeext
2117 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002118 * )
Reid Spencer2b51a082004-08-04 00:34:49 +00002119 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002120 esac
2121done
2122else
2123 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002124sed 's/^/| /' conftest.$ac_ext >&5
2125
2126{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2127See \`config.log' for more details." >&5
2128echo "$as_me: error: C++ compiler cannot create executables
2129See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002130 { (exit 77); exit 77; }; }
2131fi
2132
2133ac_exeext=$ac_cv_exeext
2134echo "$as_me:$LINENO: result: $ac_file" >&5
2135echo "${ECHO_T}$ac_file" >&6
2136
2137# Check the compiler produces executables we can run. If not, either
2138# the compiler is broken, or we cross compile.
2139echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2140echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2141# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2142# If not cross compiling, check that we can run a simple program.
2143if test "$cross_compiling" != yes; then
2144 if { ac_try='./$ac_file'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2146 (eval $ac_try) 2>&5
2147 ac_status=$?
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; }; then
2150 cross_compiling=no
2151 else
2152 if test "$cross_compiling" = maybe; then
2153 cross_compiling=yes
2154 else
2155 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002156If you meant to cross compile, use \`--host'.
2157See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002158echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002159If you meant to cross compile, use \`--host'.
2160See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002161 { (exit 1); exit 1; }; }
2162 fi
2163 fi
2164fi
2165echo "$as_me:$LINENO: result: yes" >&5
2166echo "${ECHO_T}yes" >&6
2167
John Criswell0c38eaf2003-09-10 15:17:25 +00002168rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002169ac_clean_files=$ac_clean_files_save
2170# Check the compiler produces executables we can run. If not, either
2171# the compiler is broken, or we cross compile.
2172echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2173echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2174echo "$as_me:$LINENO: result: $cross_compiling" >&5
2175echo "${ECHO_T}$cross_compiling" >&6
2176
2177echo "$as_me:$LINENO: checking for suffix of executables" >&5
2178echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2179if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2180 (eval $ac_link) 2>&5
2181 ac_status=$?
2182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2183 (exit $ac_status); }; then
2184 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2185# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2186# work properly (i.e., refer to `conftest.exe'), while it won't with
2187# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002188for ac_file in conftest.exe conftest conftest.*; do
2189 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002190 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002192 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer2b51a082004-08-04 00:34:49 +00002193 export ac_cv_exeext
2194 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002195 * ) break;;
2196 esac
2197done
2198else
John Criswell0c38eaf2003-09-10 15:17:25 +00002199 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2200See \`config.log' for more details." >&5
2201echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2202See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002203 { (exit 1); exit 1; }; }
2204fi
2205
2206rm -f conftest$ac_cv_exeext
2207echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2208echo "${ECHO_T}$ac_cv_exeext" >&6
2209
2210rm -f conftest.$ac_ext
2211EXEEXT=$ac_cv_exeext
2212ac_exeext=$EXEEXT
2213echo "$as_me:$LINENO: checking for suffix of object files" >&5
2214echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2215if test "${ac_cv_objext+set}" = set; then
2216 echo $ECHO_N "(cached) $ECHO_C" >&6
2217else
2218 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002219/* confdefs.h. */
2220_ACEOF
2221cat confdefs.h >>conftest.$ac_ext
2222cat >>conftest.$ac_ext <<_ACEOF
2223/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002224
John Criswell7a73b802003-06-30 21:59:07 +00002225int
2226main ()
2227{
2228
2229 ;
2230 return 0;
2231}
2232_ACEOF
2233rm -f conftest.o conftest.obj
2234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235 (eval $ac_compile) 2>&5
2236 ac_status=$?
2237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2238 (exit $ac_status); }; then
2239 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2240 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002241 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002242 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2243 break;;
2244 esac
2245done
2246else
2247 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002248sed 's/^/| /' conftest.$ac_ext >&5
2249
2250{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2251See \`config.log' for more details." >&5
2252echo "$as_me: error: cannot compute suffix of object files: cannot compile
2253See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002254 { (exit 1); exit 1; }; }
2255fi
2256
2257rm -f conftest.$ac_cv_objext conftest.$ac_ext
2258fi
2259echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2260echo "${ECHO_T}$ac_cv_objext" >&6
2261OBJEXT=$ac_cv_objext
2262ac_objext=$OBJEXT
2263echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2264echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2265if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2267else
2268 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002269/* confdefs.h. */
2270_ACEOF
2271cat confdefs.h >>conftest.$ac_ext
2272cat >>conftest.$ac_ext <<_ACEOF
2273/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002274
John Criswell7a73b802003-06-30 21:59:07 +00002275int
2276main ()
2277{
2278#ifndef __GNUC__
2279 choke me
2280#endif
2281
2282 ;
2283 return 0;
2284}
2285_ACEOF
2286rm -f conftest.$ac_objext
2287if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002288 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002289 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002290 grep -v '^ *+' conftest.er1 >conftest.err
2291 rm -f conftest.er1
2292 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2294 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002295 { ac_try='test -z "$ac_cxx_werror_flag"
2296 || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 ac_compiler_gnu=yes
2309else
2310 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002311sed 's/^/| /' conftest.$ac_ext >&5
2312
John Criswell7a73b802003-06-30 21:59:07 +00002313ac_compiler_gnu=no
2314fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002315rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002316ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2317
2318fi
2319echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2320echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2321GXX=`test $ac_compiler_gnu = yes && echo yes`
2322ac_test_CXXFLAGS=${CXXFLAGS+set}
2323ac_save_CXXFLAGS=$CXXFLAGS
2324CXXFLAGS="-g"
2325echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2326echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2327if test "${ac_cv_prog_cxx_g+set}" = set; then
2328 echo $ECHO_N "(cached) $ECHO_C" >&6
2329else
2330 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002331/* confdefs.h. */
2332_ACEOF
2333cat confdefs.h >>conftest.$ac_ext
2334cat >>conftest.$ac_ext <<_ACEOF
2335/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002336
John Criswell7a73b802003-06-30 21:59:07 +00002337int
2338main ()
2339{
2340
2341 ;
2342 return 0;
2343}
2344_ACEOF
2345rm -f conftest.$ac_objext
2346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002347 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002348 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002349 grep -v '^ *+' conftest.er1 >conftest.err
2350 rm -f conftest.er1
2351 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2353 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002354 { ac_try='test -z "$ac_cxx_werror_flag"
2355 || test ! -s conftest.err'
2356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2357 (eval $ac_try) 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }; } &&
2361 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 (eval $ac_try) 2>&5
2364 ac_status=$?
2365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366 (exit $ac_status); }; }; then
2367 ac_cv_prog_cxx_g=yes
2368else
2369 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002370sed 's/^/| /' conftest.$ac_ext >&5
2371
John Criswell7a73b802003-06-30 21:59:07 +00002372ac_cv_prog_cxx_g=no
2373fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002375fi
2376echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2377echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2378if test "$ac_test_CXXFLAGS" = set; then
2379 CXXFLAGS=$ac_save_CXXFLAGS
2380elif test $ac_cv_prog_cxx_g = yes; then
2381 if test "$GXX" = yes; then
2382 CXXFLAGS="-g -O2"
2383 else
2384 CXXFLAGS="-g"
2385 fi
2386else
2387 if test "$GXX" = yes; then
2388 CXXFLAGS="-O2"
2389 else
2390 CXXFLAGS=
2391 fi
2392fi
2393for ac_declaration in \
Reid Spencer2b51a082004-08-04 00:34:49 +00002394 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002395 'extern "C" void std::exit (int) throw (); using std::exit;' \
2396 'extern "C" void std::exit (int); using std::exit;' \
2397 'extern "C" void exit (int) throw ();' \
2398 'extern "C" void exit (int);' \
2399 'void exit (int);'
2400do
2401 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002402/* confdefs.h. */
2403_ACEOF
2404cat confdefs.h >>conftest.$ac_ext
2405cat >>conftest.$ac_ext <<_ACEOF
2406/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002407$ac_declaration
Reid Spencer2b51a082004-08-04 00:34:49 +00002408#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002409int
2410main ()
2411{
2412exit (42);
2413 ;
2414 return 0;
2415}
2416_ACEOF
2417rm -f conftest.$ac_objext
2418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002419 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002420 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002421 grep -v '^ *+' conftest.er1 >conftest.err
2422 rm -f conftest.er1
2423 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002426 { ac_try='test -z "$ac_cxx_werror_flag"
2427 || test ! -s conftest.err'
2428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429 (eval $ac_try) 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; } &&
2433 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435 (eval $ac_try) 2>&5
2436 ac_status=$?
2437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438 (exit $ac_status); }; }; then
2439 :
2440else
2441 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002442sed 's/^/| /' conftest.$ac_ext >&5
2443
John Criswell7a73b802003-06-30 21:59:07 +00002444continue
2445fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002446rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002447 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002448/* confdefs.h. */
2449_ACEOF
2450cat confdefs.h >>conftest.$ac_ext
2451cat >>conftest.$ac_ext <<_ACEOF
2452/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002453$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002454int
2455main ()
2456{
2457exit (42);
2458 ;
2459 return 0;
2460}
2461_ACEOF
2462rm -f conftest.$ac_objext
2463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002464 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002465 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002466 grep -v '^ *+' conftest.er1 >conftest.err
2467 rm -f conftest.er1
2468 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002471 { ac_try='test -z "$ac_cxx_werror_flag"
2472 || test ! -s conftest.err'
2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 (eval $ac_try) 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; } &&
2478 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480 (eval $ac_try) 2>&5
2481 ac_status=$?
2482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483 (exit $ac_status); }; }; then
2484 break
2485else
2486 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002487sed 's/^/| /' conftest.$ac_ext >&5
2488
John Criswell7a73b802003-06-30 21:59:07 +00002489fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002490rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002491done
2492rm -f conftest*
2493if test -n "$ac_declaration"; then
2494 echo '#ifdef __cplusplus' >>confdefs.h
2495 echo $ac_declaration >>confdefs.h
2496 echo '#endif' >>confdefs.h
2497fi
2498
2499ac_ext=c
2500ac_cpp='$CPP $CPPFLAGS'
2501ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2502ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2503ac_compiler_gnu=$ac_cv_c_compiler_gnu
2504
2505ac_ext=c
2506ac_cpp='$CPP $CPPFLAGS'
2507ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509ac_compiler_gnu=$ac_cv_c_compiler_gnu
2510if test -n "$ac_tool_prefix"; then
2511 for ac_prog in gcc
2512 do
2513 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2514set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2515echo "$as_me:$LINENO: checking for $ac_word" >&5
2516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2517if test "${ac_cv_prog_CC+set}" = set; then
2518 echo $ECHO_N "(cached) $ECHO_C" >&6
2519else
2520 if test -n "$CC"; then
2521 ac_cv_prog_CC="$CC" # Let the user override the test.
2522else
2523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2524for as_dir in $PATH
2525do
2526 IFS=$as_save_IFS
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2532 break 2
2533 fi
2534done
2535done
2536
2537fi
2538fi
2539CC=$ac_cv_prog_CC
2540if test -n "$CC"; then
2541 echo "$as_me:$LINENO: result: $CC" >&5
2542echo "${ECHO_T}$CC" >&6
2543else
2544 echo "$as_me:$LINENO: result: no" >&5
2545echo "${ECHO_T}no" >&6
2546fi
2547
2548 test -n "$CC" && break
2549 done
2550fi
2551if test -z "$CC"; then
2552 ac_ct_CC=$CC
2553 for ac_prog in gcc
2554do
2555 # Extract the first word of "$ac_prog", so it can be a program name with args.
2556set dummy $ac_prog; ac_word=$2
2557echo "$as_me:$LINENO: checking for $ac_word" >&5
2558echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2559if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561else
2562 if test -n "$ac_ct_CC"; then
2563 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2564else
2565as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566for as_dir in $PATH
2567do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2572 ac_cv_prog_ac_ct_CC="$ac_prog"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2575 fi
2576done
2577done
2578
2579fi
2580fi
2581ac_ct_CC=$ac_cv_prog_ac_ct_CC
2582if test -n "$ac_ct_CC"; then
2583 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2584echo "${ECHO_T}$ac_ct_CC" >&6
2585else
2586 echo "$as_me:$LINENO: result: no" >&5
2587echo "${ECHO_T}no" >&6
2588fi
2589
2590 test -n "$ac_ct_CC" && break
2591done
2592
2593 CC=$ac_ct_CC
2594fi
2595
2596
John Criswell0c38eaf2003-09-10 15:17:25 +00002597test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2598See \`config.log' for more details." >&5
2599echo "$as_me: error: no acceptable C compiler found in \$PATH
2600See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002601 { (exit 1); exit 1; }; }
2602
2603# Provide some information about the compiler.
2604echo "$as_me:$LINENO:" \
2605 "checking for C compiler version" >&5
2606ac_compiler=`set X $ac_compile; echo $2`
2607{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2608 (eval $ac_compiler --version </dev/null >&5) 2>&5
2609 ac_status=$?
2610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611 (exit $ac_status); }
2612{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2613 (eval $ac_compiler -v </dev/null >&5) 2>&5
2614 ac_status=$?
2615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2616 (exit $ac_status); }
2617{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2618 (eval $ac_compiler -V </dev/null >&5) 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }
2622
2623echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2624echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2625if test "${ac_cv_c_compiler_gnu+set}" = set; then
2626 echo $ECHO_N "(cached) $ECHO_C" >&6
2627else
2628 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002629/* confdefs.h. */
2630_ACEOF
2631cat confdefs.h >>conftest.$ac_ext
2632cat >>conftest.$ac_ext <<_ACEOF
2633/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002634
John Criswell7a73b802003-06-30 21:59:07 +00002635int
2636main ()
2637{
2638#ifndef __GNUC__
2639 choke me
2640#endif
2641
2642 ;
2643 return 0;
2644}
2645_ACEOF
2646rm -f conftest.$ac_objext
2647if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002648 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002649 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002650 grep -v '^ *+' conftest.er1 >conftest.err
2651 rm -f conftest.er1
2652 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2654 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002655 { ac_try='test -z "$ac_c_werror_flag"
2656 || test ! -s conftest.err'
2657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658 (eval $ac_try) 2>&5
2659 ac_status=$?
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); }; } &&
2662 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2664 (eval $ac_try) 2>&5
2665 ac_status=$?
2666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667 (exit $ac_status); }; }; then
2668 ac_compiler_gnu=yes
2669else
2670 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002671sed 's/^/| /' conftest.$ac_ext >&5
2672
John Criswell7a73b802003-06-30 21:59:07 +00002673ac_compiler_gnu=no
2674fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002675rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002676ac_cv_c_compiler_gnu=$ac_compiler_gnu
2677
2678fi
2679echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2680echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2681GCC=`test $ac_compiler_gnu = yes && echo yes`
2682ac_test_CFLAGS=${CFLAGS+set}
2683ac_save_CFLAGS=$CFLAGS
2684CFLAGS="-g"
2685echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2686echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2687if test "${ac_cv_prog_cc_g+set}" = set; then
2688 echo $ECHO_N "(cached) $ECHO_C" >&6
2689else
2690 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002691/* confdefs.h. */
2692_ACEOF
2693cat confdefs.h >>conftest.$ac_ext
2694cat >>conftest.$ac_ext <<_ACEOF
2695/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002696
John Criswell7a73b802003-06-30 21:59:07 +00002697int
2698main ()
2699{
2700
2701 ;
2702 return 0;
2703}
2704_ACEOF
2705rm -f conftest.$ac_objext
2706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002707 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002708 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002714 { ac_try='test -z "$ac_c_werror_flag"
2715 || test ! -s conftest.err'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 (eval $ac_try) 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; } &&
2721 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2723 (eval $ac_try) 2>&5
2724 ac_status=$?
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); }; }; then
2727 ac_cv_prog_cc_g=yes
2728else
2729 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002730sed 's/^/| /' conftest.$ac_ext >&5
2731
John Criswell7a73b802003-06-30 21:59:07 +00002732ac_cv_prog_cc_g=no
2733fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002735fi
2736echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2737echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2738if test "$ac_test_CFLAGS" = set; then
2739 CFLAGS=$ac_save_CFLAGS
2740elif test $ac_cv_prog_cc_g = yes; then
2741 if test "$GCC" = yes; then
2742 CFLAGS="-g -O2"
2743 else
2744 CFLAGS="-g"
2745 fi
2746else
2747 if test "$GCC" = yes; then
2748 CFLAGS="-O2"
2749 else
2750 CFLAGS=
2751 fi
2752fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002753echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2754echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2755if test "${ac_cv_prog_cc_stdc+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2757else
2758 ac_cv_prog_cc_stdc=no
2759ac_save_CC=$CC
2760cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002761/* confdefs.h. */
2762_ACEOF
2763cat confdefs.h >>conftest.$ac_ext
2764cat >>conftest.$ac_ext <<_ACEOF
2765/* end confdefs.h. */
2766#include <stdarg.h>
2767#include <stdio.h>
2768#include <sys/types.h>
2769#include <sys/stat.h>
2770/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2771struct buf { int x; };
2772FILE * (*rcsopen) (struct buf *, struct stat *, int);
2773static char *e (p, i)
2774 char **p;
2775 int i;
2776{
2777 return p[i];
2778}
2779static char *f (char * (*g) (char **, int), char **p, ...)
2780{
2781 char *s;
2782 va_list v;
2783 va_start (v,p);
2784 s = g (p, va_arg (v,int));
2785 va_end (v);
2786 return s;
2787}
Reid Spencer2b51a082004-08-04 00:34:49 +00002788
2789/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2790 function prototypes and stuff, but not '\xHH' hex character constants.
2791 These don't provoke an error unfortunately, instead are silently treated
2792 as 'x'. The following induces an error, until -std1 is added to get
2793 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2794 array size at least. It's necessary to write '\x00'==0 to get something
2795 that's true only with -std1. */
2796int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2797
John Criswell0c38eaf2003-09-10 15:17:25 +00002798int test (int i, double x);
2799struct s1 {int (*f) (int a);};
2800struct s2 {int (*f) (double a);};
2801int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2802int argc;
2803char **argv;
2804int
2805main ()
2806{
2807return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2808 ;
2809 return 0;
2810}
2811_ACEOF
2812# Don't try gcc -ansi; that turns off useful extensions and
2813# breaks some systems' header files.
2814# AIX -qlanglvl=ansi
2815# Ultrix and OSF/1 -std1
2816# HP-UX 10.20 and later -Ae
2817# HP-UX older versions -Aa -D_HPUX_SOURCE
2818# SVR4 -Xc -D__EXTENSIONS__
2819for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2820do
2821 CC="$ac_save_CC $ac_arg"
2822 rm -f conftest.$ac_objext
2823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002824 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00002825 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002826 grep -v '^ *+' conftest.er1 >conftest.err
2827 rm -f conftest.er1
2828 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002831 { ac_try='test -z "$ac_c_werror_flag"
2832 || test ! -s conftest.err'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2834 (eval $ac_try) 2>&5
2835 ac_status=$?
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; } &&
2838 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00002839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2840 (eval $ac_try) 2>&5
2841 ac_status=$?
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2844 ac_cv_prog_cc_stdc=$ac_arg
2845break
2846else
2847 echo "$as_me: failed program was:" >&5
2848sed 's/^/| /' conftest.$ac_ext >&5
2849
2850fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002851rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00002852done
2853rm -f conftest.$ac_ext conftest.$ac_objext
2854CC=$ac_save_CC
2855
2856fi
2857
2858case "x$ac_cv_prog_cc_stdc" in
2859 x|xno)
2860 echo "$as_me:$LINENO: result: none needed" >&5
2861echo "${ECHO_T}none needed" >&6 ;;
2862 *)
2863 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2864echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2865 CC="$CC $ac_cv_prog_cc_stdc" ;;
2866esac
2867
John Criswell7a73b802003-06-30 21:59:07 +00002868# Some people use a C++ compiler to compile C. Since we use `exit',
2869# in C++ we need to declare it. In case someone uses the same compiler
2870# for both compiling C and C++ we need to have the C++ compiler decide
2871# the declaration of exit, since it's the most demanding environment.
2872cat >conftest.$ac_ext <<_ACEOF
2873#ifndef __cplusplus
2874 choke me
2875#endif
2876_ACEOF
2877rm -f conftest.$ac_objext
2878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002879 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002880 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002881 grep -v '^ *+' conftest.er1 >conftest.err
2882 rm -f conftest.er1
2883 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002886 { ac_try='test -z "$ac_c_werror_flag"
2887 || test ! -s conftest.err'
2888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2889 (eval $ac_try) 2>&5
2890 ac_status=$?
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }; } &&
2893 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2895 (eval $ac_try) 2>&5
2896 ac_status=$?
2897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898 (exit $ac_status); }; }; then
2899 for ac_declaration in \
Reid Spencer2b51a082004-08-04 00:34:49 +00002900 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002901 'extern "C" void std::exit (int) throw (); using std::exit;' \
2902 'extern "C" void std::exit (int); using std::exit;' \
2903 'extern "C" void exit (int) throw ();' \
2904 'extern "C" void exit (int);' \
2905 'void exit (int);'
2906do
2907 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002908/* confdefs.h. */
2909_ACEOF
2910cat confdefs.h >>conftest.$ac_ext
2911cat >>conftest.$ac_ext <<_ACEOF
2912/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002913$ac_declaration
Reid Spencer2b51a082004-08-04 00:34:49 +00002914#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002915int
2916main ()
2917{
2918exit (42);
2919 ;
2920 return 0;
2921}
2922_ACEOF
2923rm -f conftest.$ac_objext
2924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002925 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002926 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002927 grep -v '^ *+' conftest.er1 >conftest.err
2928 rm -f conftest.er1
2929 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002932 { ac_try='test -z "$ac_c_werror_flag"
2933 || test ! -s conftest.err'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2935 (eval $ac_try) 2>&5
2936 ac_status=$?
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; } &&
2939 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2941 (eval $ac_try) 2>&5
2942 ac_status=$?
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; }; then
2945 :
2946else
2947 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002948sed 's/^/| /' conftest.$ac_ext >&5
2949
John Criswell7a73b802003-06-30 21:59:07 +00002950continue
2951fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002953 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002954/* confdefs.h. */
2955_ACEOF
2956cat confdefs.h >>conftest.$ac_ext
2957cat >>conftest.$ac_ext <<_ACEOF
2958/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002959$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002960int
2961main ()
2962{
2963exit (42);
2964 ;
2965 return 0;
2966}
2967_ACEOF
2968rm -f conftest.$ac_objext
2969if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00002970 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002971 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00002972 grep -v '^ *+' conftest.er1 >conftest.err
2973 rm -f conftest.er1
2974 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00002977 { ac_try='test -z "$ac_c_werror_flag"
2978 || test ! -s conftest.err'
2979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 (eval $ac_try) 2>&5
2981 ac_status=$?
2982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983 (exit $ac_status); }; } &&
2984 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 (eval $ac_try) 2>&5
2987 ac_status=$?
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; }; then
2990 break
2991else
2992 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002993sed 's/^/| /' conftest.$ac_ext >&5
2994
John Criswell7a73b802003-06-30 21:59:07 +00002995fi
Reid Spencer2b51a082004-08-04 00:34:49 +00002996rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002997done
2998rm -f conftest*
2999if test -n "$ac_declaration"; then
3000 echo '#ifdef __cplusplus' >>confdefs.h
3001 echo $ac_declaration >>confdefs.h
3002 echo '#endif' >>confdefs.h
3003fi
3004
3005else
3006 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003007sed 's/^/| /' conftest.$ac_ext >&5
3008
John Criswell7a73b802003-06-30 21:59:07 +00003009fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003011ac_ext=c
3012ac_cpp='$CPP $CPPFLAGS'
3013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3015ac_compiler_gnu=$ac_cv_c_compiler_gnu
3016
3017ac_ext=c
3018ac_cpp='$CPP $CPPFLAGS'
3019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3021ac_compiler_gnu=$ac_cv_c_compiler_gnu
3022echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3023echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3024# On Suns, sometimes $CPP names a directory.
3025if test -n "$CPP" && test -d "$CPP"; then
3026 CPP=
3027fi
3028if test -z "$CPP"; then
3029 if test "${ac_cv_prog_CPP+set}" = set; then
3030 echo $ECHO_N "(cached) $ECHO_C" >&6
3031else
3032 # Double quotes because CPP needs to be expanded
3033 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3034 do
3035 ac_preproc_ok=false
3036for ac_c_preproc_warn_flag in '' yes
3037do
3038 # Use a header file that comes with gcc, so configuring glibc
3039 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3041 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003042 # On the NeXT, cc -E runs the code through the compiler's parser,
3043 # not just through cpp. "Syntax error" is here to catch this case.
3044 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003045/* confdefs.h. */
3046_ACEOF
3047cat confdefs.h >>conftest.$ac_ext
3048cat >>conftest.$ac_ext <<_ACEOF
3049/* end confdefs.h. */
3050#ifdef __STDC__
3051# include <limits.h>
3052#else
3053# include <assert.h>
3054#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00003055 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003056_ACEOF
3057if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3059 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003060 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003061 rm -f conftest.er1
3062 cat conftest.err >&5
3063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064 (exit $ac_status); } >/dev/null; then
3065 if test -s conftest.err; then
3066 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003067 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003068 else
3069 ac_cpp_err=
3070 fi
3071else
3072 ac_cpp_err=yes
3073fi
3074if test -z "$ac_cpp_err"; then
3075 :
3076else
3077 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003078sed 's/^/| /' conftest.$ac_ext >&5
3079
John Criswell7a73b802003-06-30 21:59:07 +00003080 # Broken: fails on valid input.
3081continue
3082fi
3083rm -f conftest.err conftest.$ac_ext
3084
3085 # OK, works on sane cases. Now check whether non-existent headers
3086 # can be detected and how.
3087 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003088/* confdefs.h. */
3089_ACEOF
3090cat confdefs.h >>conftest.$ac_ext
3091cat >>conftest.$ac_ext <<_ACEOF
3092/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003093#include <ac_nonexistent.h>
3094_ACEOF
3095if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3096 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3097 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003098 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003099 rm -f conftest.er1
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } >/dev/null; then
3103 if test -s conftest.err; then
3104 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003105 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003106 else
3107 ac_cpp_err=
3108 fi
3109else
3110 ac_cpp_err=yes
3111fi
3112if test -z "$ac_cpp_err"; then
3113 # Broken: success on invalid input.
3114continue
3115else
3116 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003117sed 's/^/| /' conftest.$ac_ext >&5
3118
John Criswell7a73b802003-06-30 21:59:07 +00003119 # Passes both tests.
3120ac_preproc_ok=:
3121break
3122fi
3123rm -f conftest.err conftest.$ac_ext
3124
3125done
3126# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3127rm -f conftest.err conftest.$ac_ext
3128if $ac_preproc_ok; then
3129 break
3130fi
3131
3132 done
3133 ac_cv_prog_CPP=$CPP
3134
3135fi
3136 CPP=$ac_cv_prog_CPP
3137else
3138 ac_cv_prog_CPP=$CPP
3139fi
3140echo "$as_me:$LINENO: result: $CPP" >&5
3141echo "${ECHO_T}$CPP" >&6
3142ac_preproc_ok=false
3143for ac_c_preproc_warn_flag in '' yes
3144do
3145 # Use a header file that comes with gcc, so configuring glibc
3146 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3148 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003149 # On the NeXT, cc -E runs the code through the compiler's parser,
3150 # not just through cpp. "Syntax error" is here to catch this case.
3151 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003152/* confdefs.h. */
3153_ACEOF
3154cat confdefs.h >>conftest.$ac_ext
3155cat >>conftest.$ac_ext <<_ACEOF
3156/* end confdefs.h. */
3157#ifdef __STDC__
3158# include <limits.h>
3159#else
3160# include <assert.h>
3161#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00003162 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003163_ACEOF
3164if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3165 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3166 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003167 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003168 rm -f conftest.er1
3169 cat conftest.err >&5
3170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3171 (exit $ac_status); } >/dev/null; then
3172 if test -s conftest.err; then
3173 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003174 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003175 else
3176 ac_cpp_err=
3177 fi
3178else
3179 ac_cpp_err=yes
3180fi
3181if test -z "$ac_cpp_err"; then
3182 :
3183else
3184 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003185sed 's/^/| /' conftest.$ac_ext >&5
3186
John Criswell7a73b802003-06-30 21:59:07 +00003187 # Broken: fails on valid input.
3188continue
3189fi
3190rm -f conftest.err conftest.$ac_ext
3191
3192 # OK, works on sane cases. Now check whether non-existent headers
3193 # can be detected and how.
3194 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003195/* confdefs.h. */
3196_ACEOF
3197cat confdefs.h >>conftest.$ac_ext
3198cat >>conftest.$ac_ext <<_ACEOF
3199/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003200#include <ac_nonexistent.h>
3201_ACEOF
3202if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3203 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3204 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003205 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003206 rm -f conftest.er1
3207 cat conftest.err >&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); } >/dev/null; then
3210 if test -s conftest.err; then
3211 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00003212 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003213 else
3214 ac_cpp_err=
3215 fi
3216else
3217 ac_cpp_err=yes
3218fi
3219if test -z "$ac_cpp_err"; then
3220 # Broken: success on invalid input.
3221continue
3222else
3223 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003224sed 's/^/| /' conftest.$ac_ext >&5
3225
John Criswell7a73b802003-06-30 21:59:07 +00003226 # Passes both tests.
3227ac_preproc_ok=:
3228break
3229fi
3230rm -f conftest.err conftest.$ac_ext
3231
3232done
3233# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3234rm -f conftest.err conftest.$ac_ext
3235if $ac_preproc_ok; then
3236 :
3237else
John Criswell0c38eaf2003-09-10 15:17:25 +00003238 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3239See \`config.log' for more details." >&5
3240echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3241See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003242 { (exit 1); exit 1; }; }
3243fi
3244
3245ac_ext=c
3246ac_cpp='$CPP $CPPFLAGS'
3247ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3248ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3249ac_compiler_gnu=$ac_cv_c_compiler_gnu
3250
3251
3252if test "$GCC" != "yes"
3253then
3254 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3255echo "$as_me: error: gcc required but not found" >&2;}
3256 { (exit 1); exit 1; }; }
3257fi
John Criswell7a73b802003-06-30 21:59:07 +00003258if test "$GXX" != "yes"
3259then
3260 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3261echo "$as_me: error: g++ required but not found" >&2;}
3262 { (exit 1); exit 1; }; }
3263fi
3264
John Criswellde00db22003-08-25 16:49:54 +00003265gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3266if test "$gccmajor" -lt "3"
3267then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003268 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3269echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003270 { (exit 1); exit 1; }; }
3271fi
3272
John Criswell7a73b802003-06-30 21:59:07 +00003273 echo "$as_me:$LINENO: checking for GNU make" >&5
3274echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3275if test "${_cv_gnu_make_command+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278 _cv_gnu_make_command='' ;
3279 for a in "$MAKE" make gmake gnumake ; do
3280 if test -z "$a" ; then continue ; fi ;
3281 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3282 _cv_gnu_make_command=$a ;
3283 break;
3284 fi
3285 done ;
3286
3287fi
3288echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3289echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3290 if test "x$_cv_gnu_make_command" != "x" ; then
3291 ifGNUmake='' ;
3292 else
3293 ifGNUmake='#' ;
3294 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3295echo "${ECHO_T}\"Not found\"" >&6;
3296 fi
3297
3298
3299if test -z "$_cv_gnu_make_command"
3300then
3301 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3302echo "$as_me: error: GNU Make required but not found" >&2;}
3303 { (exit 1); exit 1; }; }
3304fi
3305
3306
3307echo "$as_me:$LINENO: checking " >&5
3308echo $ECHO_N "checking ... $ECHO_C" >&6
3309if test "${ac_cv_has_flex+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311else
3312 for ac_prog in flex lex
3313do
3314 # Extract the first word of "$ac_prog", so it can be a program name with args.
3315set dummy $ac_prog; ac_word=$2
3316echo "$as_me:$LINENO: checking for $ac_word" >&5
3317echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3318if test "${ac_cv_prog_LEX+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320else
3321 if test -n "$LEX"; then
3322 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3323else
3324as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325for as_dir in $PATH
3326do
3327 IFS=$as_save_IFS
3328 test -z "$as_dir" && as_dir=.
3329 for ac_exec_ext in '' $ac_executable_extensions; do
3330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3331 ac_cv_prog_LEX="$ac_prog"
3332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3333 break 2
3334 fi
3335done
3336done
3337
3338fi
3339fi
3340LEX=$ac_cv_prog_LEX
3341if test -n "$LEX"; then
3342 echo "$as_me:$LINENO: result: $LEX" >&5
3343echo "${ECHO_T}$LEX" >&6
3344else
3345 echo "$as_me:$LINENO: result: no" >&5
3346echo "${ECHO_T}no" >&6
3347fi
3348
3349 test -n "$LEX" && break
3350done
3351test -n "$LEX" || LEX=":"
3352
3353if test -z "$LEXLIB"
3354then
3355 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3356echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3357if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359else
3360 ac_check_lib_save_LIBS=$LIBS
3361LIBS="-lfl $LIBS"
3362cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003363/* confdefs.h. */
3364_ACEOF
3365cat confdefs.h >>conftest.$ac_ext
3366cat >>conftest.$ac_ext <<_ACEOF
3367/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003368
3369/* Override any gcc2 internal prototype to avoid an error. */
3370#ifdef __cplusplus
3371extern "C"
3372#endif
3373/* We use char because int might match the return type of a gcc2
3374 builtin and then its argument prototype would still apply. */
3375char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003376int
3377main ()
3378{
3379yywrap ();
3380 ;
3381 return 0;
3382}
3383_ACEOF
3384rm -f conftest.$ac_objext conftest$ac_exeext
3385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00003386 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003387 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00003388 grep -v '^ *+' conftest.er1 >conftest.err
3389 rm -f conftest.er1
3390 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00003393 { ac_try='test -z "$ac_c_werror_flag"
3394 || test ! -s conftest.err'
3395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396 (eval $ac_try) 2>&5
3397 ac_status=$?
3398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399 (exit $ac_status); }; } &&
3400 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402 (eval $ac_try) 2>&5
3403 ac_status=$?
3404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405 (exit $ac_status); }; }; then
3406 ac_cv_lib_fl_yywrap=yes
3407else
3408 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003409sed 's/^/| /' conftest.$ac_ext >&5
3410
John Criswell7a73b802003-06-30 21:59:07 +00003411ac_cv_lib_fl_yywrap=no
3412fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003413rm -f conftest.err conftest.$ac_objext \
3414 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003415LIBS=$ac_check_lib_save_LIBS
3416fi
3417echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3418echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3419if test $ac_cv_lib_fl_yywrap = yes; then
3420 LEXLIB="-lfl"
3421else
3422 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3423echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3424if test "${ac_cv_lib_l_yywrap+set}" = set; then
3425 echo $ECHO_N "(cached) $ECHO_C" >&6
3426else
3427 ac_check_lib_save_LIBS=$LIBS
3428LIBS="-ll $LIBS"
3429cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003430/* confdefs.h. */
3431_ACEOF
3432cat confdefs.h >>conftest.$ac_ext
3433cat >>conftest.$ac_ext <<_ACEOF
3434/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003435
3436/* Override any gcc2 internal prototype to avoid an error. */
3437#ifdef __cplusplus
3438extern "C"
3439#endif
3440/* We use char because int might match the return type of a gcc2
3441 builtin and then its argument prototype would still apply. */
3442char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003443int
3444main ()
3445{
3446yywrap ();
3447 ;
3448 return 0;
3449}
3450_ACEOF
3451rm -f conftest.$ac_objext conftest$ac_exeext
3452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00003453 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003454 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00003455 grep -v '^ *+' conftest.er1 >conftest.err
3456 rm -f conftest.er1
3457 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00003460 { ac_try='test -z "$ac_c_werror_flag"
3461 || test ! -s conftest.err'
3462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3463 (eval $ac_try) 2>&5
3464 ac_status=$?
3465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3466 (exit $ac_status); }; } &&
3467 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3469 (eval $ac_try) 2>&5
3470 ac_status=$?
3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472 (exit $ac_status); }; }; then
3473 ac_cv_lib_l_yywrap=yes
3474else
3475 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003476sed 's/^/| /' conftest.$ac_ext >&5
3477
John Criswell7a73b802003-06-30 21:59:07 +00003478ac_cv_lib_l_yywrap=no
3479fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003480rm -f conftest.err conftest.$ac_objext \
3481 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003482LIBS=$ac_check_lib_save_LIBS
3483fi
3484echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
3485echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3486if test $ac_cv_lib_l_yywrap = yes; then
3487 LEXLIB="-ll"
3488fi
3489
3490fi
3491
3492fi
3493
3494if test "x$LEX" != "x:"; then
3495 echo "$as_me:$LINENO: checking lex output file root" >&5
3496echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3497if test "${ac_cv_prog_lex_root+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499else
3500 # The minimal lex program is just a single line: %%. But some broken lexes
3501# (Solaris, I think it was) want two %% lines, so accommodate them.
3502cat >conftest.l <<_ACEOF
3503%%
3504%%
3505_ACEOF
3506{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3507 (eval $LEX conftest.l) 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }
3511if test -f lex.yy.c; then
3512 ac_cv_prog_lex_root=lex.yy
3513elif test -f lexyy.c; then
3514 ac_cv_prog_lex_root=lexyy
3515else
3516 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3517echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3518 { (exit 1); exit 1; }; }
3519fi
3520fi
3521echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3522echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3523rm -f conftest.l
3524LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3525
3526echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3527echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3528if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3529 echo $ECHO_N "(cached) $ECHO_C" >&6
3530else
3531 # POSIX says lex can declare yytext either as a pointer or an array; the
3532# default is implementation-dependent. Figure out which it is, since
3533# not all implementations provide the %pointer and %array declarations.
3534ac_cv_prog_lex_yytext_pointer=no
3535echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3536ac_save_LIBS=$LIBS
3537LIBS="$LIBS $LEXLIB"
3538cat >conftest.$ac_ext <<_ACEOF
3539`cat $LEX_OUTPUT_ROOT.c`
3540_ACEOF
3541rm -f conftest.$ac_objext conftest$ac_exeext
3542if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00003543 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003544 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00003545 grep -v '^ *+' conftest.er1 >conftest.err
3546 rm -f conftest.er1
3547 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00003550 { ac_try='test -z "$ac_c_werror_flag"
3551 || test ! -s conftest.err'
3552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3553 (eval $ac_try) 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; } &&
3557 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3559 (eval $ac_try) 2>&5
3560 ac_status=$?
3561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3562 (exit $ac_status); }; }; then
3563 ac_cv_prog_lex_yytext_pointer=yes
3564else
3565 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003566sed 's/^/| /' conftest.$ac_ext >&5
3567
John Criswell7a73b802003-06-30 21:59:07 +00003568fi
Reid Spencer2b51a082004-08-04 00:34:49 +00003569rm -f conftest.err conftest.$ac_objext \
3570 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003571LIBS=$ac_save_LIBS
3572rm -f "${LEX_OUTPUT_ROOT}.c"
3573
3574fi
3575echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3576echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3577if test $ac_cv_prog_lex_yytext_pointer = yes; then
3578
3579cat >>confdefs.h <<\_ACEOF
3580#define YYTEXT_POINTER 1
3581_ACEOF
3582
3583fi
3584
3585fi
3586
3587fi
3588echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3589echo "${ECHO_T}$ac_cv_has_flex" >&6
3590if test "$LEX" != "flex"; then
3591 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3592echo "$as_me: error: flex not found but required" >&2;}
3593 { (exit 1); exit 1; }; }
3594fi
3595
3596echo "$as_me:$LINENO: checking " >&5
3597echo $ECHO_N "checking ... $ECHO_C" >&6
3598if test "${ac_cv_has_bison+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3600else
3601 for ac_prog in 'bison -y' byacc
3602do
3603 # Extract the first word of "$ac_prog", so it can be a program name with args.
3604set dummy $ac_prog; ac_word=$2
3605echo "$as_me:$LINENO: checking for $ac_word" >&5
3606echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3607if test "${ac_cv_prog_YACC+set}" = set; then
3608 echo $ECHO_N "(cached) $ECHO_C" >&6
3609else
3610 if test -n "$YACC"; then
3611 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3612else
3613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614for as_dir in $PATH
3615do
3616 IFS=$as_save_IFS
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_prog_YACC="$ac_prog"
3621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3622 break 2
3623 fi
3624done
3625done
3626
3627fi
3628fi
3629YACC=$ac_cv_prog_YACC
3630if test -n "$YACC"; then
3631 echo "$as_me:$LINENO: result: $YACC" >&5
3632echo "${ECHO_T}$YACC" >&6
3633else
3634 echo "$as_me:$LINENO: result: no" >&5
3635echo "${ECHO_T}no" >&6
3636fi
3637
3638 test -n "$YACC" && break
3639done
3640test -n "$YACC" || YACC="yacc"
3641
3642
3643fi
3644echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3645echo "${ECHO_T}$ac_cv_has_bison" >&6
3646if test "$YACC" != "bison -y"; then
3647 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3648echo "$as_me: error: bison not found but required" >&2;}
3649 { (exit 1); exit 1; }; }
3650else
Brian Gaeke12810632004-01-13 06:52:10 +00003651 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003652
3653fi
3654
John Criswell7a73b802003-06-30 21:59:07 +00003655# Check whether --enable-shared or --disable-shared was given.
3656if test "${enable_shared+set}" = set; then
3657 enableval="$enable_shared"
3658 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003659 case $enableval in
3660 yes) enable_shared=yes ;;
3661 no) enable_shared=no ;;
3662 *)
3663 enable_shared=no
3664 # Look at the argument we got. We use all the common list separators.
3665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3666 for pkg in $enableval; do
3667 IFS="$lt_save_ifs"
3668 if test "X$pkg" = "X$p"; then
3669 enable_shared=yes
3670 fi
3671 done
3672 IFS="$lt_save_ifs"
3673 ;;
3674 esac
John Criswell7a73b802003-06-30 21:59:07 +00003675else
3676 enable_shared=yes
3677fi;
John Criswell47fdd832003-07-14 16:52:07 +00003678
John Criswell7a73b802003-06-30 21:59:07 +00003679# Check whether --enable-static or --disable-static was given.
3680if test "${enable_static+set}" = set; then
3681 enableval="$enable_static"
3682 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003683 case $enableval in
3684 yes) enable_static=yes ;;
3685 no) enable_static=no ;;
3686 *)
3687 enable_static=no
3688 # Look at the argument we got. We use all the common list separators.
3689 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3690 for pkg in $enableval; do
3691 IFS="$lt_save_ifs"
3692 if test "X$pkg" = "X$p"; then
3693 enable_static=yes
3694 fi
3695 done
3696 IFS="$lt_save_ifs"
3697 ;;
3698 esac
John Criswell7a73b802003-06-30 21:59:07 +00003699else
3700 enable_static=yes
3701fi;
John Criswell47fdd832003-07-14 16:52:07 +00003702
John Criswell7a73b802003-06-30 21:59:07 +00003703# Check whether --enable-fast-install or --disable-fast-install was given.
3704if test "${enable_fast_install+set}" = set; then
3705 enableval="$enable_fast_install"
3706 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003707 case $enableval in
3708 yes) enable_fast_install=yes ;;
3709 no) enable_fast_install=no ;;
3710 *)
3711 enable_fast_install=no
3712 # Look at the argument we got. We use all the common list separators.
3713 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3714 for pkg in $enableval; do
3715 IFS="$lt_save_ifs"
3716 if test "X$pkg" = "X$p"; then
3717 enable_fast_install=yes
3718 fi
3719 done
3720 IFS="$lt_save_ifs"
3721 ;;
3722 esac
John Criswell7a73b802003-06-30 21:59:07 +00003723else
3724 enable_fast_install=yes
3725fi;
John Criswell47fdd832003-07-14 16:52:07 +00003726
3727echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3728echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3729if test "${lt_cv_path_SED+set}" = set; then
3730 echo $ECHO_N "(cached) $ECHO_C" >&6
3731else
3732 # Loop through the user's path and test for sed and gsed.
3733# Then use that list of sed's as ones to test for truncation.
3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH
3736do
3737 IFS=$as_save_IFS
3738 test -z "$as_dir" && as_dir=.
3739 for lt_ac_prog in sed gsed; do
3740 for ac_exec_ext in '' $ac_executable_extensions; do
3741 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3742 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3743 fi
3744 done
3745 done
3746done
3747lt_ac_max=0
3748lt_ac_count=0
3749# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3750# along with /bin/sed that truncates output.
3751for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3752 test ! -f $lt_ac_sed && break
3753 cat /dev/null > conftest.in
3754 lt_ac_count=0
3755 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3756 # Check for GNU sed and select it if it is found.
3757 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3758 lt_cv_path_SED=$lt_ac_sed
3759 break
3760 fi
3761 while true; do
3762 cat conftest.in conftest.in >conftest.tmp
3763 mv conftest.tmp conftest.in
3764 cp conftest.in conftest.nl
3765 echo >>conftest.nl
3766 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3767 cmp -s conftest.out conftest.nl || break
3768 # 10000 chars as input seems more than enough
3769 test $lt_ac_count -gt 10 && break
3770 lt_ac_count=`expr $lt_ac_count + 1`
3771 if test $lt_ac_count -gt $lt_ac_max; then
3772 lt_ac_max=$lt_ac_count
3773 lt_cv_path_SED=$lt_ac_sed
3774 fi
3775 done
3776done
3777SED=$lt_cv_path_SED
3778
John Criswell7a73b802003-06-30 21:59:07 +00003779fi
3780
John Criswell47fdd832003-07-14 16:52:07 +00003781echo "$as_me:$LINENO: result: $SED" >&5
3782echo "${ECHO_T}$SED" >&6
3783
3784echo "$as_me:$LINENO: checking for egrep" >&5
3785echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3786if test "${ac_cv_prog_egrep+set}" = set; then
3787 echo $ECHO_N "(cached) $ECHO_C" >&6
3788else
3789 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3790 then ac_cv_prog_egrep='grep -E'
3791 else ac_cv_prog_egrep='egrep'
3792 fi
3793fi
3794echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3795echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3796 EGREP=$ac_cv_prog_egrep
3797
3798
John Criswell7a73b802003-06-30 21:59:07 +00003799
3800# Check whether --with-gnu-ld or --without-gnu-ld was given.
3801if test "${with_gnu_ld+set}" = set; then
3802 withval="$with_gnu_ld"
3803 test "$withval" = no || with_gnu_ld=yes
3804else
3805 with_gnu_ld=no
3806fi;
3807ac_prog=ld
3808if test "$GCC" = yes; then
3809 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003810 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3811echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003812 case $host in
3813 *-*-mingw*)
3814 # gcc leaves a trailing carriage return which upsets mingw
3815 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3816 *)
3817 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3818 esac
3819 case $ac_prog in
3820 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003821 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003822 re_direlt='/[^/][^/]*/\.\./'
3823 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003824 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003825 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003826 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003827 done
3828 test -z "$LD" && LD="$ac_prog"
3829 ;;
3830 "")
3831 # If it fails, then pretend we aren't using GCC.
3832 ac_prog=ld
3833 ;;
3834 *)
3835 # If it is relative, then search for the first ld in PATH.
3836 with_gnu_ld=unknown
3837 ;;
3838 esac
3839elif test "$with_gnu_ld" = yes; then
3840 echo "$as_me:$LINENO: checking for GNU ld" >&5
3841echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3842else
3843 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3844echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3845fi
3846if test "${lt_cv_path_LD+set}" = set; then
3847 echo $ECHO_N "(cached) $ECHO_C" >&6
3848else
3849 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003850 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003851 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003852 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003853 test -z "$ac_dir" && ac_dir=.
3854 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3855 lt_cv_path_LD="$ac_dir/$ac_prog"
3856 # Check to see if the program is GNU ld. I'd rather use --version,
3857 # but apparently some GNU ld's only accept -v.
3858 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003859 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3860 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003861 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003862 ;;
3863 *)
John Criswell7a73b802003-06-30 21:59:07 +00003864 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003865 ;;
3866 esac
John Criswell7a73b802003-06-30 21:59:07 +00003867 fi
3868 done
John Criswell47fdd832003-07-14 16:52:07 +00003869 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003870else
3871 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3872fi
3873fi
3874
3875LD="$lt_cv_path_LD"
3876if test -n "$LD"; then
3877 echo "$as_me:$LINENO: result: $LD" >&5
3878echo "${ECHO_T}$LD" >&6
3879else
3880 echo "$as_me:$LINENO: result: no" >&5
3881echo "${ECHO_T}no" >&6
3882fi
3883test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3884echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3885 { (exit 1); exit 1; }; }
3886echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3887echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3888if test "${lt_cv_prog_gnu_ld+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890else
3891 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003892case `"$LD" -v 2>&1 </dev/null` in
3893*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003894 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003895 ;;
3896*)
John Criswell7a73b802003-06-30 21:59:07 +00003897 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003898 ;;
3899esac
John Criswell7a73b802003-06-30 21:59:07 +00003900fi
3901echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3902echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3903with_gnu_ld=$lt_cv_prog_gnu_ld
3904
3905
3906echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3907echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3908if test "${lt_cv_ld_reload_flag+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910else
3911 lt_cv_ld_reload_flag='-r'
3912fi
3913echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3914echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3915reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003916case $reload_flag in
3917"" | " "*) ;;
3918*) reload_flag=" $reload_flag" ;;
3919esac
3920reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003921
3922echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3923echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3924if test "${lt_cv_path_NM+set}" = set; then
3925 echo $ECHO_N "(cached) $ECHO_C" >&6
3926else
3927 if test -n "$NM"; then
3928 # Let the user override the test.
3929 lt_cv_path_NM="$NM"
3930else
John Criswell47fdd832003-07-14 16:52:07 +00003931 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003932 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003933 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003934 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003935 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3936 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003937 # Check to see if the nm accepts a BSD-compat flag.
3938 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3939 # nm: unknown option "B" ignored
3940 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003941 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3942 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003943 lt_cv_path_NM="$tmp_nm -B"
3944 break
John Criswell47fdd832003-07-14 16:52:07 +00003945 ;;
3946 *)
3947 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3948 */dev/null*)
3949 lt_cv_path_NM="$tmp_nm -p"
3950 break
3951 ;;
3952 *)
3953 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3954 continue # so that we can try to find one that supports BSD flags
3955 ;;
3956 esac
3957 esac
John Criswell7a73b802003-06-30 21:59:07 +00003958 fi
3959 done
John Criswell47fdd832003-07-14 16:52:07 +00003960 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003961 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3962fi
3963fi
John Criswell47fdd832003-07-14 16:52:07 +00003964echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3965echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003966NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003967
3968echo "$as_me:$LINENO: checking whether ln -s works" >&5
3969echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3970LN_S=$as_ln_s
3971if test "$LN_S" = "ln -s"; then
3972 echo "$as_me:$LINENO: result: yes" >&5
3973echo "${ECHO_T}yes" >&6
3974else
3975 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3976echo "${ECHO_T}no, using $LN_S" >&6
3977fi
3978
John Criswell47fdd832003-07-14 16:52:07 +00003979echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3980echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003981if test "${lt_cv_deplibs_check_method+set}" = set; then
3982 echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984 lt_cv_file_magic_cmd='$MAGIC_CMD'
3985lt_cv_file_magic_test_file=
3986lt_cv_deplibs_check_method='unknown'
3987# Need to set the preceding variable on all platforms that support
3988# interlibrary dependencies.
3989# 'none' -- dependencies not supported.
3990# `unknown' -- same as none, but documents that we really don't know.
3991# 'pass_all' -- all dependencies passed with no checks.
3992# 'test_compile' -- check by making test program.
3993# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003994# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003995# If you have `file' or equivalent on your system and you're not sure
3996# whether `pass_all' will *always* work, you probably want this one.
3997
3998case $host_os in
3999aix4* | aix5*)
4000 lt_cv_deplibs_check_method=pass_all
4001 ;;
4002
4003beos*)
4004 lt_cv_deplibs_check_method=pass_all
4005 ;;
4006
4007bsdi4*)
4008 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4009 lt_cv_file_magic_cmd='/usr/bin/file -L'
4010 lt_cv_file_magic_test_file=/shlib/libc.so
4011 ;;
4012
4013cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00004014 # win32_libid is a shell function defined in ltmain.sh
4015 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4016 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00004017 ;;
4018
4019darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00004020 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00004021 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4022 lt_cv_file_magic_cmd='/usr/bin/file -L'
4023 case "$host_os" in
4024 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00004025 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00004026 ;;
4027 *) # Darwin 1.3 on
4028 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4029 ;;
4030 esac
John Criswell47fdd832003-07-14 16:52:07 +00004031 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00004032 ;;
4033
4034freebsd*)
4035 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4036 case $host_cpu in
4037 i*86 )
4038 # Not sure whether the presence of OpenBSD here was a mistake.
4039 # Let's accept both of them until this is cleared up.
4040 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4041 lt_cv_file_magic_cmd=/usr/bin/file
4042 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4043 ;;
4044 esac
4045 else
4046 lt_cv_deplibs_check_method=pass_all
4047 fi
4048 ;;
4049
4050gnu*)
4051 lt_cv_deplibs_check_method=pass_all
4052 ;;
4053
John Criswell47fdd832003-07-14 16:52:07 +00004054hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00004055 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00004056 case "$host_cpu" in
4057 ia64*)
4058 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4059 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4060 ;;
4061 hppa*64*)
4062 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]'
4063 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4064 ;;
4065 *)
4066 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4067 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4068 ;;
4069 esac
John Criswell7a73b802003-06-30 21:59:07 +00004070 ;;
4071
John Criswell47fdd832003-07-14 16:52:07 +00004072irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004073 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004074 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004075 # this will be overridden with pass_all, but let us keep it just in case
4076 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4077 ;;
4078 *)
4079 case $LD in
4080 *-32|*"-32 ") libmagic=32-bit;;
4081 *-n32|*"-n32 ") libmagic=N32;;
4082 *-64|*"-64 ") libmagic=64-bit;;
4083 *) libmagic=never-match;;
4084 esac
4085 # this will be overridden with pass_all, but let us keep it just in case
4086 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4087 ;;
4088 esac
4089 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4090 lt_cv_deplibs_check_method=pass_all
4091 ;;
4092
4093# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004094linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004095 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004096 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004097 lt_cv_deplibs_check_method=pass_all ;;
4098 *)
4099 # glibc up to 2.1.1 does not perform some relocations on ARM
4100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4101 esac
4102 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4103 ;;
4104
4105netbsd*)
4106 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004108 else
John Criswell47fdd832003-07-14 16:52:07 +00004109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004110 fi
4111 ;;
4112
4113newos6*)
4114 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4115 lt_cv_file_magic_cmd=/usr/bin/file
4116 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4117 ;;
4118
John Criswell47fdd832003-07-14 16:52:07 +00004119nto-qnx)
4120 lt_cv_deplibs_check_method=unknown
4121 ;;
4122
John Criswell7a73b802003-06-30 21:59:07 +00004123openbsd*)
4124 lt_cv_file_magic_cmd=/usr/bin/file
4125 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4126 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4127 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4128 else
4129 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4130 fi
4131 ;;
4132
4133osf3* | osf4* | osf5*)
4134 # this will be overridden with pass_all, but let us keep it just in case
4135 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4136 lt_cv_file_magic_test_file=/shlib/libc.so
4137 lt_cv_deplibs_check_method=pass_all
4138 ;;
4139
4140sco3.2v5*)
4141 lt_cv_deplibs_check_method=pass_all
4142 ;;
4143
4144solaris*)
4145 lt_cv_deplibs_check_method=pass_all
4146 lt_cv_file_magic_test_file=/lib/libc.so
4147 ;;
4148
John Criswell7a73b802003-06-30 21:59:07 +00004149sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4150 case $host_vendor in
4151 motorola)
4152 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]'
4153 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4154 ;;
4155 ncr)
4156 lt_cv_deplibs_check_method=pass_all
4157 ;;
4158 sequent)
4159 lt_cv_file_magic_cmd='/bin/file'
4160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4161 ;;
4162 sni)
4163 lt_cv_file_magic_cmd='/bin/file'
4164 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4165 lt_cv_file_magic_test_file=/lib/libc.so
4166 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004167 siemens)
4168 lt_cv_deplibs_check_method=pass_all
4169 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004170 esac
4171 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004172
4173sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4174 lt_cv_deplibs_check_method=pass_all
4175 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004176esac
4177
4178fi
4179echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4180echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4181file_magic_cmd=$lt_cv_file_magic_cmd
4182deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004183test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004184
4185
4186
4187
John Criswell47fdd832003-07-14 16:52:07 +00004188# If no C compiler was specified, use CC.
4189LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004190
John Criswell47fdd832003-07-14 16:52:07 +00004191# Allow CC to be a program name with arguments.
4192compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004193
John Criswell47fdd832003-07-14 16:52:07 +00004194# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4195if test "${enable_libtool_lock+set}" = set; then
4196 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004197
John Criswell47fdd832003-07-14 16:52:07 +00004198fi;
4199test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004200
John Criswell47fdd832003-07-14 16:52:07 +00004201# Some flags need to be propagated to the compiler or linker for good
4202# libtool support.
4203case $host in
4204ia64-*-hpux*)
4205 # Find out which ABI we are using.
4206 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4209 ac_status=$?
4210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004212 case `/usr/bin/file conftest.$ac_objext` in
4213 *ELF-32*)
4214 HPUX_IA64_MODE="32"
4215 ;;
4216 *ELF-64*)
4217 HPUX_IA64_MODE="64"
4218 ;;
4219 esac
4220 fi
4221 rm -rf conftest*
4222 ;;
4223*-*-irix6*)
4224 # Find out which ABI we are using.
Reid Spencer5f285392004-08-24 16:32:21 +00004225 echo '#line 4225 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004226 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4227 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004228 ac_status=$?
4229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004230 (exit $ac_status); }; then
4231 if test "$lt_cv_prog_gnu_ld" = yes; then
4232 case `/usr/bin/file conftest.$ac_objext` in
4233 *32-bit*)
4234 LD="${LD-ld} -melf32bsmip"
4235 ;;
4236 *N32*)
4237 LD="${LD-ld} -melf32bmipn32"
4238 ;;
4239 *64-bit*)
4240 LD="${LD-ld} -melf64bmip"
4241 ;;
4242 esac
4243 else
4244 case `/usr/bin/file conftest.$ac_objext` in
4245 *32-bit*)
4246 LD="${LD-ld} -32"
4247 ;;
4248 *N32*)
4249 LD="${LD-ld} -n32"
4250 ;;
4251 *64-bit*)
4252 LD="${LD-ld} -64"
4253 ;;
4254 esac
4255 fi
4256 fi
4257 rm -rf conftest*
4258 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004259
John Criswell47fdd832003-07-14 16:52:07 +00004260x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4261 # Find out which ABI we are using.
4262 echo 'int i;' > conftest.$ac_ext
4263 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4264 (eval $ac_compile) 2>&5
4265 ac_status=$?
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; then
4268 case "`/usr/bin/file conftest.o`" in
4269 *32-bit*)
4270 case $host in
4271 x86_64-*linux*)
4272 LD="${LD-ld} -m elf_i386"
4273 ;;
4274 ppc64-*linux*)
4275 LD="${LD-ld} -m elf32ppclinux"
4276 ;;
4277 s390x-*linux*)
4278 LD="${LD-ld} -m elf_s390"
4279 ;;
4280 sparc64-*linux*)
4281 LD="${LD-ld} -m elf32_sparc"
4282 ;;
4283 esac
4284 ;;
4285 *64-bit*)
4286 case $host in
4287 x86_64-*linux*)
4288 LD="${LD-ld} -m elf_x86_64"
4289 ;;
4290 ppc*-*linux*|powerpc*-*linux*)
4291 LD="${LD-ld} -m elf64ppc"
4292 ;;
4293 s390*-*linux*)
4294 LD="${LD-ld} -m elf64_s390"
4295 ;;
4296 sparc*-*linux*)
4297 LD="${LD-ld} -m elf64_sparc"
4298 ;;
4299 esac
4300 ;;
4301 esac
4302 fi
4303 rm -rf conftest*
4304 ;;
4305
4306*-*-sco3.2v5*)
4307 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4308 SAVE_CFLAGS="$CFLAGS"
4309 CFLAGS="$CFLAGS -belf"
4310 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4311echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4312if test "${lt_cv_cc_needs_belf+set}" = set; then
4313 echo $ECHO_N "(cached) $ECHO_C" >&6
4314else
4315 ac_ext=c
4316ac_cpp='$CPP $CPPFLAGS'
4317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319ac_compiler_gnu=$ac_cv_c_compiler_gnu
4320
4321 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004322/* confdefs.h. */
4323_ACEOF
4324cat confdefs.h >>conftest.$ac_ext
4325cat >>conftest.$ac_ext <<_ACEOF
4326/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004327
John Criswell47fdd832003-07-14 16:52:07 +00004328int
4329main ()
John Criswell7a73b802003-06-30 21:59:07 +00004330{
John Criswell7a73b802003-06-30 21:59:07 +00004331
John Criswell47fdd832003-07-14 16:52:07 +00004332 ;
4333 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004334}
John Criswell47fdd832003-07-14 16:52:07 +00004335_ACEOF
4336rm -f conftest.$ac_objext conftest$ac_exeext
4337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004338 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004339 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004340 grep -v '^ *+' conftest.er1 >conftest.err
4341 rm -f conftest.er1
4342 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004344 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004345 { ac_try='test -z "$ac_c_werror_flag"
4346 || test ! -s conftest.err'
4347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4348 (eval $ac_try) 2>&5
4349 ac_status=$?
4350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4351 (exit $ac_status); }; } &&
4352 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00004353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4354 (eval $ac_try) 2>&5
4355 ac_status=$?
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; }; then
4358 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004359else
John Criswell47fdd832003-07-14 16:52:07 +00004360 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004361sed 's/^/| /' conftest.$ac_ext >&5
4362
John Criswell47fdd832003-07-14 16:52:07 +00004363lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004364fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004365rm -f conftest.err conftest.$ac_objext \
4366 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004367 ac_ext=c
4368ac_cpp='$CPP $CPPFLAGS'
4369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372
John Criswell7a73b802003-06-30 21:59:07 +00004373fi
John Criswell47fdd832003-07-14 16:52:07 +00004374echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4375echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4376 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4377 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4378 CFLAGS="$SAVE_CFLAGS"
4379 fi
4380 ;;
4381
4382esac
4383
4384need_locks="$enable_libtool_lock"
4385
John Criswell7a73b802003-06-30 21:59:07 +00004386
4387
4388echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4389echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4390if test "${ac_cv_header_stdc+set}" = set; then
4391 echo $ECHO_N "(cached) $ECHO_C" >&6
4392else
4393 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004394/* confdefs.h. */
4395_ACEOF
4396cat confdefs.h >>conftest.$ac_ext
4397cat >>conftest.$ac_ext <<_ACEOF
4398/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004399#include <stdlib.h>
4400#include <stdarg.h>
4401#include <string.h>
4402#include <float.h>
4403
John Criswell0c38eaf2003-09-10 15:17:25 +00004404int
4405main ()
4406{
4407
4408 ;
4409 return 0;
4410}
John Criswell7a73b802003-06-30 21:59:07 +00004411_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004412rm -f conftest.$ac_objext
4413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004414 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004415 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004416 grep -v '^ *+' conftest.er1 >conftest.err
4417 rm -f conftest.er1
4418 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004420 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004421 { ac_try='test -z "$ac_c_werror_flag"
4422 || test ! -s conftest.err'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 (eval $ac_try) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; } &&
4428 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00004429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004434 ac_cv_header_stdc=yes
4435else
4436 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004437sed 's/^/| /' conftest.$ac_ext >&5
4438
4439ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004440fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004442
4443if test $ac_cv_header_stdc = yes; then
4444 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4445 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004446/* confdefs.h. */
4447_ACEOF
4448cat confdefs.h >>conftest.$ac_ext
4449cat >>conftest.$ac_ext <<_ACEOF
4450/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004451#include <string.h>
4452
4453_ACEOF
4454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004455 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004456 :
4457else
4458 ac_cv_header_stdc=no
4459fi
4460rm -f conftest*
4461
4462fi
4463
4464if test $ac_cv_header_stdc = yes; then
4465 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4466 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004467/* confdefs.h. */
4468_ACEOF
4469cat confdefs.h >>conftest.$ac_ext
4470cat >>conftest.$ac_ext <<_ACEOF
4471/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004472#include <stdlib.h>
4473
4474_ACEOF
4475if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004476 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004477 :
4478else
4479 ac_cv_header_stdc=no
4480fi
4481rm -f conftest*
4482
4483fi
4484
4485if test $ac_cv_header_stdc = yes; then
4486 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4487 if test "$cross_compiling" = yes; then
4488 :
4489else
4490 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004491/* confdefs.h. */
4492_ACEOF
4493cat confdefs.h >>conftest.$ac_ext
4494cat >>conftest.$ac_ext <<_ACEOF
4495/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004496#include <ctype.h>
4497#if ((' ' & 0x0FF) == 0x020)
4498# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4499# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4500#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004501# define ISLOWER(c) \
Reid Spencer2b51a082004-08-04 00:34:49 +00004502 (('a' <= (c) && (c) <= 'i') \
4503 || ('j' <= (c) && (c) <= 'r') \
4504 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004505# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4506#endif
4507
4508#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4509int
4510main ()
4511{
4512 int i;
4513 for (i = 0; i < 256; i++)
4514 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2b51a082004-08-04 00:34:49 +00004515 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00004516 exit(2);
4517 exit (0);
4518}
4519_ACEOF
4520rm -f conftest$ac_exeext
4521if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4522 (eval $ac_link) 2>&5
4523 ac_status=$?
4524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4525 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4527 (eval $ac_try) 2>&5
4528 ac_status=$?
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; }; then
4531 :
4532else
4533 echo "$as_me: program exited with status $ac_status" >&5
4534echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004535sed 's/^/| /' conftest.$ac_ext >&5
4536
John Criswell7a73b802003-06-30 21:59:07 +00004537( exit $ac_status )
4538ac_cv_header_stdc=no
4539fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004540rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004541fi
4542fi
4543fi
4544echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4545echo "${ECHO_T}$ac_cv_header_stdc" >&6
4546if test $ac_cv_header_stdc = yes; then
4547
4548cat >>confdefs.h <<\_ACEOF
4549#define STDC_HEADERS 1
4550_ACEOF
4551
4552fi
4553
4554# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer2b51a082004-08-04 00:34:49 +00004565 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00004566do
4567as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4568echo "$as_me:$LINENO: checking for $ac_header" >&5
4569echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4570if eval "test \"\${$as_ac_Header+set}\" = set"; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572else
4573 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004574/* confdefs.h. */
4575_ACEOF
4576cat confdefs.h >>conftest.$ac_ext
4577cat >>conftest.$ac_ext <<_ACEOF
4578/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004579$ac_includes_default
4580
4581#include <$ac_header>
4582_ACEOF
4583rm -f conftest.$ac_objext
4584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004585 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004586 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004592 { ac_try='test -z "$ac_c_werror_flag"
4593 || test ! -s conftest.err'
4594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 (eval $ac_try) 2>&5
4596 ac_status=$?
4597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4598 (exit $ac_status); }; } &&
4599 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 (eval $ac_try) 2>&5
4602 ac_status=$?
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }; }; then
4605 eval "$as_ac_Header=yes"
4606else
4607 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004608sed 's/^/| /' conftest.$ac_ext >&5
4609
John Criswell7a73b802003-06-30 21:59:07 +00004610eval "$as_ac_Header=no"
4611fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004612rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004613fi
4614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4616if test `eval echo '${'$as_ac_Header'}'` = yes; then
4617 cat >>confdefs.h <<_ACEOF
4618#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4619_ACEOF
4620
4621fi
4622
4623done
4624
4625
4626
4627for ac_header in dlfcn.h
4628do
4629as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4630if eval "test \"\${$as_ac_Header+set}\" = set"; then
4631 echo "$as_me:$LINENO: checking for $ac_header" >&5
4632echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4633if eval "test \"\${$as_ac_Header+set}\" = set"; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635fi
4636echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4637echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4638else
4639 # Is the header compilable?
4640echo "$as_me:$LINENO: checking $ac_header usability" >&5
4641echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4642cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004643/* confdefs.h. */
4644_ACEOF
4645cat confdefs.h >>conftest.$ac_ext
4646cat >>conftest.$ac_ext <<_ACEOF
4647/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004648$ac_includes_default
4649#include <$ac_header>
4650_ACEOF
4651rm -f conftest.$ac_objext
4652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00004653 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004654 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00004655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00004660 { ac_try='test -z "$ac_c_werror_flag"
4661 || test ! -s conftest.err'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; } &&
4667 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4669 (eval $ac_try) 2>&5
4670 ac_status=$?
4671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); }; }; then
4673 ac_header_compiler=yes
4674else
4675 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004676sed 's/^/| /' conftest.$ac_ext >&5
4677
John Criswell7a73b802003-06-30 21:59:07 +00004678ac_header_compiler=no
4679fi
Reid Spencer2b51a082004-08-04 00:34:49 +00004680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004681echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4682echo "${ECHO_T}$ac_header_compiler" >&6
4683
4684# Is the header present?
4685echo "$as_me:$LINENO: checking $ac_header presence" >&5
4686echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4687cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004688/* confdefs.h. */
4689_ACEOF
4690cat confdefs.h >>conftest.$ac_ext
4691cat >>conftest.$ac_ext <<_ACEOF
4692/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004693#include <$ac_header>
4694_ACEOF
4695if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4696 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4697 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004698 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004699 rm -f conftest.er1
4700 cat conftest.err >&5
4701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702 (exit $ac_status); } >/dev/null; then
4703 if test -s conftest.err; then
4704 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004705 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004706 else
4707 ac_cpp_err=
4708 fi
4709else
4710 ac_cpp_err=yes
4711fi
4712if test -z "$ac_cpp_err"; then
4713 ac_header_preproc=yes
4714else
4715 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004716sed 's/^/| /' conftest.$ac_ext >&5
4717
John Criswell7a73b802003-06-30 21:59:07 +00004718 ac_header_preproc=no
4719fi
4720rm -f conftest.err conftest.$ac_ext
4721echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4722echo "${ECHO_T}$ac_header_preproc" >&6
4723
4724# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +00004725case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4726 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +00004727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4728echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00004729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4730echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4731 ac_header_preproc=yes
John Criswell0c38eaf2003-09-10 15:17:25 +00004732 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +00004733 no:yes:* )
John Criswell7a73b802003-06-30 21:59:07 +00004734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4735echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00004736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4737echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4739echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4741echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00004742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004743echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +00004744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4745echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +00004746 (
4747 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +00004748## ----------------------------------- ##
4749## Report this to llvmbugs@cs.uiuc.edu ##
4750## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00004751_ASBOX
4752 ) |
4753 sed "s/^/$as_me: WARNING: /" >&2
4754 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004755esac
4756echo "$as_me:$LINENO: checking for $ac_header" >&5
4757echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4758if eval "test \"\${$as_ac_Header+set}\" = set"; then
4759 echo $ECHO_N "(cached) $ECHO_C" >&6
4760else
Reid Spencer2b51a082004-08-04 00:34:49 +00004761 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00004762fi
4763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4764echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4765
4766fi
4767if test `eval echo '${'$as_ac_Header'}'` = yes; then
4768 cat >>confdefs.h <<_ACEOF
4769#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4770_ACEOF
4771
4772fi
4773
4774done
4775
John Criswell47fdd832003-07-14 16:52:07 +00004776ac_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
4781echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4782echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4783if test -z "$CXXCPP"; then
4784 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004785 echo $ECHO_N "(cached) $ECHO_C" >&6
4786else
John Criswell47fdd832003-07-14 16:52:07 +00004787 # Double quotes because CXXCPP needs to be expanded
4788 for CXXCPP in "$CXX -E" "/lib/cpp"
4789 do
4790 ac_preproc_ok=false
4791for ac_cxx_preproc_warn_flag in '' yes
4792do
4793 # Use a header file that comes with gcc, so configuring glibc
4794 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4796 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004797 # On the NeXT, cc -E runs the code through the compiler's parser,
4798 # not just through cpp. "Syntax error" is here to catch this case.
4799 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004800/* confdefs.h. */
4801_ACEOF
4802cat confdefs.h >>conftest.$ac_ext
4803cat >>conftest.$ac_ext <<_ACEOF
4804/* end confdefs.h. */
4805#ifdef __STDC__
4806# include <limits.h>
4807#else
4808# include <assert.h>
4809#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00004810 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004811_ACEOF
4812if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4813 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4814 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004815 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004816 rm -f conftest.er1
4817 cat conftest.err >&5
4818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4819 (exit $ac_status); } >/dev/null; then
4820 if test -s conftest.err; then
4821 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004822 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004823 else
John Criswell47fdd832003-07-14 16:52:07 +00004824 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004825 fi
John Criswell47fdd832003-07-14 16:52:07 +00004826else
4827 ac_cpp_err=yes
4828fi
4829if test -z "$ac_cpp_err"; then
4830 :
4831else
4832 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004833sed 's/^/| /' conftest.$ac_ext >&5
4834
John Criswell47fdd832003-07-14 16:52:07 +00004835 # Broken: fails on valid input.
4836continue
4837fi
4838rm -f conftest.err conftest.$ac_ext
4839
4840 # OK, works on sane cases. Now check whether non-existent headers
4841 # can be detected and how.
4842 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004843/* confdefs.h. */
4844_ACEOF
4845cat confdefs.h >>conftest.$ac_ext
4846cat >>conftest.$ac_ext <<_ACEOF
4847/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004848#include <ac_nonexistent.h>
4849_ACEOF
4850if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4851 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4852 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004853 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004854 rm -f conftest.er1
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } >/dev/null; then
4858 if test -s conftest.err; then
4859 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004860 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004861 else
4862 ac_cpp_err=
4863 fi
4864else
4865 ac_cpp_err=yes
4866fi
4867if test -z "$ac_cpp_err"; then
4868 # Broken: success on invalid input.
4869continue
4870else
4871 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004872sed 's/^/| /' conftest.$ac_ext >&5
4873
John Criswell47fdd832003-07-14 16:52:07 +00004874 # Passes both tests.
4875ac_preproc_ok=:
4876break
4877fi
4878rm -f conftest.err conftest.$ac_ext
4879
4880done
4881# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4882rm -f conftest.err conftest.$ac_ext
4883if $ac_preproc_ok; then
4884 break
John Criswell7a73b802003-06-30 21:59:07 +00004885fi
4886
John Criswell47fdd832003-07-14 16:52:07 +00004887 done
4888 ac_cv_prog_CXXCPP=$CXXCPP
4889
4890fi
4891 CXXCPP=$ac_cv_prog_CXXCPP
4892else
4893 ac_cv_prog_CXXCPP=$CXXCPP
4894fi
4895echo "$as_me:$LINENO: result: $CXXCPP" >&5
4896echo "${ECHO_T}$CXXCPP" >&6
4897ac_preproc_ok=false
4898for ac_cxx_preproc_warn_flag in '' yes
4899do
4900 # Use a header file that comes with gcc, so configuring glibc
4901 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4903 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004904 # On the NeXT, cc -E runs the code through the compiler's parser,
4905 # not just through cpp. "Syntax error" is here to catch this case.
4906 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004907/* confdefs.h. */
4908_ACEOF
4909cat confdefs.h >>conftest.$ac_ext
4910cat >>conftest.$ac_ext <<_ACEOF
4911/* end confdefs.h. */
4912#ifdef __STDC__
4913# include <limits.h>
4914#else
4915# include <assert.h>
4916#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00004917 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004918_ACEOF
4919if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4920 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4921 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004922 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004923 rm -f conftest.er1
4924 cat conftest.err >&5
4925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4926 (exit $ac_status); } >/dev/null; then
4927 if test -s conftest.err; then
4928 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004929 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004930 else
4931 ac_cpp_err=
4932 fi
4933else
4934 ac_cpp_err=yes
4935fi
4936if test -z "$ac_cpp_err"; then
4937 :
4938else
4939 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004940sed 's/^/| /' conftest.$ac_ext >&5
4941
John Criswell47fdd832003-07-14 16:52:07 +00004942 # Broken: fails on valid input.
4943continue
4944fi
4945rm -f conftest.err conftest.$ac_ext
4946
4947 # OK, works on sane cases. Now check whether non-existent headers
4948 # can be detected and how.
4949 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004950/* confdefs.h. */
4951_ACEOF
4952cat confdefs.h >>conftest.$ac_ext
4953cat >>conftest.$ac_ext <<_ACEOF
4954/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004955#include <ac_nonexistent.h>
4956_ACEOF
4957if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4958 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4959 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004960 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004961 rm -f conftest.er1
4962 cat conftest.err >&5
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); } >/dev/null; then
4965 if test -s conftest.err; then
4966 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +00004967 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004968 else
4969 ac_cpp_err=
4970 fi
4971else
4972 ac_cpp_err=yes
4973fi
4974if test -z "$ac_cpp_err"; then
4975 # Broken: success on invalid input.
4976continue
4977else
4978 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004979sed 's/^/| /' conftest.$ac_ext >&5
4980
John Criswell47fdd832003-07-14 16:52:07 +00004981 # Passes both tests.
4982ac_preproc_ok=:
4983break
4984fi
4985rm -f conftest.err conftest.$ac_ext
4986
4987done
4988# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4989rm -f conftest.err conftest.$ac_ext
4990if $ac_preproc_ok; then
4991 :
4992else
John Criswell0c38eaf2003-09-10 15:17:25 +00004993 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4994See \`config.log' for more details." >&5
4995echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4996See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004997 { (exit 1); exit 1; }; }
4998fi
4999
5000ac_ext=cc
5001ac_cpp='$CXXCPP $CPPFLAGS'
5002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5005
5006
5007ac_ext=f
5008ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5009ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5010ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5011if test -n "$ac_tool_prefix"; then
Reid Spencer2b51a082004-08-04 00:34:49 +00005012 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
John Criswell47fdd832003-07-14 16:52:07 +00005013 do
5014 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5015set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5016echo "$as_me:$LINENO: checking for $ac_word" >&5
5017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5018if test "${ac_cv_prog_F77+set}" = set; then
5019 echo $ECHO_N "(cached) $ECHO_C" >&6
5020else
5021 if test -n "$F77"; then
5022 ac_cv_prog_F77="$F77" # Let the user override the test.
5023else
5024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025for as_dir in $PATH
5026do
5027 IFS=$as_save_IFS
5028 test -z "$as_dir" && as_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5031 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033 break 2
5034 fi
5035done
5036done
5037
5038fi
5039fi
5040F77=$ac_cv_prog_F77
5041if test -n "$F77"; then
5042 echo "$as_me:$LINENO: result: $F77" >&5
5043echo "${ECHO_T}$F77" >&6
5044else
5045 echo "$as_me:$LINENO: result: no" >&5
5046echo "${ECHO_T}no" >&6
5047fi
5048
5049 test -n "$F77" && break
5050 done
5051fi
5052if test -z "$F77"; then
5053 ac_ct_F77=$F77
Reid Spencer2b51a082004-08-04 00:34:49 +00005054 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
John Criswell47fdd832003-07-14 16:52:07 +00005055do
5056 # Extract the first word of "$ac_prog", so it can be a program name with args.
5057set dummy $ac_prog; ac_word=$2
5058echo "$as_me:$LINENO: checking for $ac_word" >&5
5059echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062else
5063 if test -n "$ac_ct_F77"; then
5064 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5065else
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_ac_ct_F77="$ac_prog"
5074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5076 fi
5077done
5078done
5079
5080fi
5081fi
5082ac_ct_F77=$ac_cv_prog_ac_ct_F77
5083if test -n "$ac_ct_F77"; then
5084 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5085echo "${ECHO_T}$ac_ct_F77" >&6
5086else
5087 echo "$as_me:$LINENO: result: no" >&5
5088echo "${ECHO_T}no" >&6
5089fi
5090
5091 test -n "$ac_ct_F77" && break
5092done
5093
5094 F77=$ac_ct_F77
5095fi
5096
5097
5098# Provide some information about the compiler.
Reid Spencer5f285392004-08-24 16:32:21 +00005099echo "$as_me:5099:" \
John Criswell47fdd832003-07-14 16:52:07 +00005100 "checking for Fortran 77 compiler version" >&5
5101ac_compiler=`set X $ac_compile; echo $2`
5102{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5103 (eval $ac_compiler --version </dev/null >&5) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }
5107{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5108 (eval $ac_compiler -v </dev/null >&5) 2>&5
5109 ac_status=$?
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); }
5112{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5113 (eval $ac_compiler -V </dev/null >&5) 2>&5
5114 ac_status=$?
5115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5116 (exit $ac_status); }
Reid Spencer2b51a082004-08-04 00:34:49 +00005117rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00005118
5119# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer2b51a082004-08-04 00:34:49 +00005120# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00005121ac_save_ext=$ac_ext
5122ac_ext=F
5123echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5124echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5125if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127else
5128 cat >conftest.$ac_ext <<_ACEOF
5129 program main
5130#ifndef __GNUC__
5131 choke me
5132#endif
5133
5134 end
5135_ACEOF
5136rm -f conftest.$ac_objext
5137if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00005138 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005139 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00005140 grep -v '^ *+' conftest.er1 >conftest.err
5141 rm -f conftest.er1
5142 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00005145 { ac_try='test -z "$ac_f77_werror_flag"
5146 || test ! -s conftest.err'
5147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5148 (eval $ac_try) 2>&5
5149 ac_status=$?
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; } &&
5152 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154 (eval $ac_try) 2>&5
5155 ac_status=$?
5156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157 (exit $ac_status); }; }; then
5158 ac_compiler_gnu=yes
5159else
5160 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005161sed 's/^/| /' conftest.$ac_ext >&5
5162
John Criswell47fdd832003-07-14 16:52:07 +00005163ac_compiler_gnu=no
5164fi
Reid Spencer2b51a082004-08-04 00:34:49 +00005165rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005166ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5167
5168fi
5169echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5170echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5171ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005172ac_test_FFLAGS=${FFLAGS+set}
5173ac_save_FFLAGS=$FFLAGS
5174FFLAGS=
5175echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5176echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5177if test "${ac_cv_prog_f77_g+set}" = set; then
5178 echo $ECHO_N "(cached) $ECHO_C" >&6
5179else
5180 FFLAGS=-g
5181cat >conftest.$ac_ext <<_ACEOF
5182 program main
5183
5184 end
5185_ACEOF
5186rm -f conftest.$ac_objext
5187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00005188 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005189 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00005190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00005195 { ac_try='test -z "$ac_f77_werror_flag"
5196 || test ! -s conftest.err'
5197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 (eval $ac_try) 2>&5
5199 ac_status=$?
5200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5201 (exit $ac_status); }; } &&
5202 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 (eval $ac_try) 2>&5
5205 ac_status=$?
5206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207 (exit $ac_status); }; }; then
5208 ac_cv_prog_f77_g=yes
5209else
5210 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005211sed 's/^/| /' conftest.$ac_ext >&5
5212
John Criswell47fdd832003-07-14 16:52:07 +00005213ac_cv_prog_f77_g=no
5214fi
Reid Spencer2b51a082004-08-04 00:34:49 +00005215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005216
5217fi
5218echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5219echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5220if test "$ac_test_FFLAGS" = set; then
5221 FFLAGS=$ac_save_FFLAGS
5222elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer2b51a082004-08-04 00:34:49 +00005223 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005224 FFLAGS="-g -O2"
5225 else
5226 FFLAGS="-g"
5227 fi
5228else
Reid Spencer2b51a082004-08-04 00:34:49 +00005229 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005230 FFLAGS="-O2"
5231 else
5232 FFLAGS=
5233 fi
5234fi
Reid Spencer2b51a082004-08-04 00:34:49 +00005235
5236G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00005237ac_ext=c
5238ac_cpp='$CPP $CPPFLAGS'
5239ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241ac_compiler_gnu=$ac_cv_c_compiler_gnu
5242
5243
5244
5245# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5246
5247# find the maximum length of command line arguments
5248echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5249echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5250if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5251 echo $ECHO_N "(cached) $ECHO_C" >&6
5252else
5253 i=0
5254 testring="ABCD"
5255
5256 case $build_os in
5257 msdosdjgpp*)
5258 # On DJGPP, this test can blow up pretty badly due to problems in libc
5259 # (any single argument exceeding 2000 bytes causes a buffer overrun
5260 # during glob expansion). Even if it were fixed, the result of this
5261 # check would be larger than it should be.
5262 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5263 ;;
5264
5265 gnu*)
5266 # Under GNU Hurd, this test is not required because there is
5267 # no limit to the length of command line arguments.
5268 # Libtool will interpret -1 as no limit whatsoever
5269 lt_cv_sys_max_cmd_len=-1;
5270 ;;
5271
5272 cygwin* | mingw*)
5273 # On Win9x/ME, this test blows up -- it succeeds, but takes
5274 # about 5 minutes as the teststring grows exponentially.
5275 # Worse, since 9x/ME are not pre-emptively multitasking,
5276 # you end up with a "frozen" computer, even though with patience
5277 # the test eventually succeeds (with a max line length of 256k).
5278 # Instead, let's just punt: use the minimum linelength reported by
5279 # all of the supported platforms: 8192 (on NT/2K/XP).
5280 lt_cv_sys_max_cmd_len=8192;
5281 ;;
5282
5283 *)
5284 # If test is not a shell built-in, we'll probably end up computing a
5285 # maximum length that is only half of the actual maximum length, but
5286 # we can't tell.
5287 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5288 = "XX$testring") >/dev/null 2>&1 &&
5289 new_result=`expr "X$testring" : ".*" 2>&1` &&
5290 lt_cv_sys_max_cmd_len=$new_result &&
5291 test $i != 17 # 1/2 MB should be enough
5292 do
5293 i=`expr $i + 1`
5294 testring=$testring$testring
5295 done
5296 testring=
5297 # Add a significant safety factor because C++ compilers can tack on massive
5298 # amounts of additional arguments before passing them to the linker.
5299 # It appears as though 1/2 is a usable value.
5300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5301 ;;
5302 esac
5303
5304fi
5305
5306if test -n $lt_cv_sys_max_cmd_len ; then
5307 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5308echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5309else
5310 echo "$as_me:$LINENO: result: none" >&5
5311echo "${ECHO_T}none" >&6
5312fi
5313
5314
5315
5316
5317# Check for command to grab the raw symbol name followed by C symbol from nm.
5318echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5319echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5320if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5321 echo $ECHO_N "(cached) $ECHO_C" >&6
5322else
5323
5324# These are sane defaults that work on at least a few old systems.
5325# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5326
5327# Character class describing NM global symbol codes.
5328symcode='[BCDEGRST]'
5329
5330# Regexp to match symbols that can be accessed directly from C.
5331sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5332
5333# Transform the above into a raw symbol and a C symbol.
5334symxfrm='\1 \2\3 \3'
5335
5336# Transform an extracted symbol line into a proper C declaration
5337lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5338
5339# Transform an extracted symbol line into symbol name and symbol address
5340lt_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'"
5341
5342# Define system-specific variables.
5343case $host_os in
5344aix*)
5345 symcode='[BCDT]'
5346 ;;
5347cygwin* | mingw* | pw32*)
5348 symcode='[ABCDGISTW]'
5349 ;;
5350hpux*) # Its linker distinguishes data from code symbols
5351 if test "$host_cpu" = ia64; then
5352 symcode='[ABCDEGRST]'
5353 fi
5354 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5355 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'"
5356 ;;
5357irix* | nonstopux*)
5358 symcode='[BCDEGRST]'
5359 ;;
5360osf*)
5361 symcode='[BCDEGQRST]'
5362 ;;
5363solaris* | sysv5*)
5364 symcode='[BDT]'
5365 ;;
5366sysv4)
5367 symcode='[DFNSTU]'
5368 ;;
5369esac
5370
5371# Handle CRLF in mingw tool chain
5372opt_cr=
5373case $build_os in
5374mingw*)
5375 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5376 ;;
5377esac
5378
5379# If we're using GNU nm, then use its standard symbol codes.
5380case `$NM -V 2>&1` in
5381*GNU* | *'with BFD'*)
5382 symcode='[ABCDGISTW]' ;;
5383esac
5384
5385# Try without a prefix undercore, then with it.
5386for ac_symprfx in "" "_"; do
5387
5388 # Write the raw and C identifiers.
5389 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5390
5391 # Check to see that the pipe works correctly.
5392 pipe_works=no
5393
5394 rm -f conftest*
5395 cat > conftest.$ac_ext <<EOF
5396#ifdef __cplusplus
5397extern "C" {
5398#endif
5399char nm_test_var;
5400void nm_test_func(){}
5401#ifdef __cplusplus
5402}
5403#endif
5404int main(){nm_test_var='a';nm_test_func();return(0);}
5405EOF
5406
5407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5408 (eval $ac_compile) 2>&5
5409 ac_status=$?
5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5411 (exit $ac_status); }; then
5412 # Now try to grab the symbols.
5413 nlist=conftest.nm
5414 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5415 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && test -s "$nlist"; then
5419 # Try sorting and uniquifying the output.
5420 if sort "$nlist" | uniq > "$nlist"T; then
5421 mv -f "$nlist"T "$nlist"
5422 else
5423 rm -f "$nlist"T
5424 fi
5425
5426 # Make sure that we snagged all the symbols we need.
5427 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5428 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5429 cat <<EOF > conftest.$ac_ext
5430#ifdef __cplusplus
5431extern "C" {
5432#endif
5433
5434EOF
5435 # Now generate the symbol file.
5436 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5437
5438 cat <<EOF >> conftest.$ac_ext
5439#if defined (__STDC__) && __STDC__
5440# define lt_ptr_t void *
5441#else
5442# define lt_ptr_t char *
5443# define const
5444#endif
5445
5446/* The mapping between symbol names and symbols. */
5447const struct {
5448 const char *name;
5449 lt_ptr_t address;
5450}
5451lt_preloaded_symbols[] =
5452{
5453EOF
5454 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5455 cat <<\EOF >> conftest.$ac_ext
5456 {0, (lt_ptr_t) 0}
5457};
5458
5459#ifdef __cplusplus
5460}
5461#endif
5462EOF
5463 # Now try linking the two files.
5464 mv conftest.$ac_objext conftstm.$ac_objext
5465 lt_save_LIBS="$LIBS"
5466 lt_save_CFLAGS="$CFLAGS"
5467 LIBS="conftstm.$ac_objext"
5468 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5470 (eval $ac_link) 2>&5
5471 ac_status=$?
5472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5473 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5474 pipe_works=yes
5475 fi
5476 LIBS="$lt_save_LIBS"
5477 CFLAGS="$lt_save_CFLAGS"
5478 else
5479 echo "cannot find nm_test_func in $nlist" >&5
5480 fi
5481 else
5482 echo "cannot find nm_test_var in $nlist" >&5
5483 fi
5484 else
5485 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5486 fi
5487 else
5488 echo "$progname: failed program was:" >&5
5489 cat conftest.$ac_ext >&5
5490 fi
5491 rm -f conftest* conftst*
5492
5493 # Do not use the global_symbol_pipe unless it works.
5494 if test "$pipe_works" = yes; then
5495 break
5496 else
5497 lt_cv_sys_global_symbol_pipe=
5498 fi
5499done
5500
5501fi
5502
5503if test -z "$lt_cv_sys_global_symbol_pipe"; then
5504 lt_cv_sys_global_symbol_to_cdecl=
5505fi
5506if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5507 echo "$as_me:$LINENO: result: failed" >&5
5508echo "${ECHO_T}failed" >&6
5509else
5510 echo "$as_me:$LINENO: result: ok" >&5
5511echo "${ECHO_T}ok" >&6
5512fi
5513
5514echo "$as_me:$LINENO: checking for objdir" >&5
5515echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5516if test "${lt_cv_objdir+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518else
5519 rm -f .libs 2>/dev/null
5520mkdir .libs 2>/dev/null
5521if test -d .libs; then
5522 lt_cv_objdir=.libs
5523else
5524 # MS-DOS does not allow filenames that begin with a dot.
5525 lt_cv_objdir=_libs
5526fi
5527rmdir .libs 2>/dev/null
5528fi
5529echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5530echo "${ECHO_T}$lt_cv_objdir" >&6
5531objdir=$lt_cv_objdir
5532
5533
5534
5535
5536
5537case $host_os in
5538aix3*)
5539 # AIX sometimes has problems with the GCC collect2 program. For some
5540 # reason, if we set the COLLECT_NAMES environment variable, the problems
5541 # vanish in a puff of smoke.
5542 if test "X${COLLECT_NAMES+set}" != Xset; then
5543 COLLECT_NAMES=
5544 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005545 fi
5546 ;;
5547esac
5548
John Criswell47fdd832003-07-14 16:52:07 +00005549# Sed substitution that helps us do robust quoting. It backslashifies
5550# metacharacters that are still active within double-quoted strings.
5551Xsed='sed -e s/^X//'
5552sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5553
5554# Same as above, but do not quote variable references.
5555double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5556
5557# Sed substitution to delay expansion of an escaped shell variable in a
5558# double_quote_subst'ed string.
5559delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5560
5561# Sed substitution to avoid accidental globbing in evaled expressions
5562no_glob_subst='s/\*/\\\*/g'
5563
5564# Constants:
5565rm="rm -f"
5566
5567# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005568default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005569can_build_shared=yes
5570
5571# All known linkers require a `.a' archive for static linking (except M$VC,
5572# which needs '.lib').
5573libext=a
5574ltmain="$ac_aux_dir/ltmain.sh"
5575ofile="$default_ofile"
5576with_gnu_ld="$lt_cv_prog_gnu_ld"
5577
5578if test -n "$ac_tool_prefix"; then
5579 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5580set dummy ${ac_tool_prefix}ar; ac_word=$2
5581echo "$as_me:$LINENO: checking for $ac_word" >&5
5582echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5583if test "${ac_cv_prog_AR+set}" = set; then
5584 echo $ECHO_N "(cached) $ECHO_C" >&6
5585else
5586 if test -n "$AR"; then
5587 ac_cv_prog_AR="$AR" # Let the user override the test.
5588else
5589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5590for as_dir in $PATH
5591do
5592 IFS=$as_save_IFS
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5596 ac_cv_prog_AR="${ac_tool_prefix}ar"
5597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 break 2
5599 fi
5600done
5601done
5602
5603fi
5604fi
5605AR=$ac_cv_prog_AR
5606if test -n "$AR"; then
5607 echo "$as_me:$LINENO: result: $AR" >&5
5608echo "${ECHO_T}$AR" >&6
5609else
5610 echo "$as_me:$LINENO: result: no" >&5
5611echo "${ECHO_T}no" >&6
5612fi
5613
5614fi
5615if test -z "$ac_cv_prog_AR"; then
5616 ac_ct_AR=$AR
5617 # Extract the first word of "ar", so it can be a program name with args.
5618set dummy ar; ac_word=$2
5619echo "$as_me:$LINENO: checking for $ac_word" >&5
5620echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5621if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5622 echo $ECHO_N "(cached) $ECHO_C" >&6
5623else
5624 if test -n "$ac_ct_AR"; then
5625 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5626else
5627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628for as_dir in $PATH
5629do
5630 IFS=$as_save_IFS
5631 test -z "$as_dir" && as_dir=.
5632 for ac_exec_ext in '' $ac_executable_extensions; do
5633 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_ac_ct_AR="ar"
5635 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5636 break 2
5637 fi
5638done
5639done
5640
5641 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5642fi
5643fi
5644ac_ct_AR=$ac_cv_prog_ac_ct_AR
5645if test -n "$ac_ct_AR"; then
5646 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5647echo "${ECHO_T}$ac_ct_AR" >&6
5648else
5649 echo "$as_me:$LINENO: result: no" >&5
5650echo "${ECHO_T}no" >&6
5651fi
5652
5653 AR=$ac_ct_AR
5654else
5655 AR="$ac_cv_prog_AR"
5656fi
5657
John Criswell7a73b802003-06-30 21:59:07 +00005658if test -n "$ac_tool_prefix"; then
5659 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5660set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5661echo "$as_me:$LINENO: checking for $ac_word" >&5
5662echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5663if test "${ac_cv_prog_RANLIB+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665else
5666 if test -n "$RANLIB"; then
5667 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5668else
5669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5670for as_dir in $PATH
5671do
5672 IFS=$as_save_IFS
5673 test -z "$as_dir" && as_dir=.
5674 for ac_exec_ext in '' $ac_executable_extensions; do
5675 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5676 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5678 break 2
5679 fi
5680done
5681done
5682
5683fi
5684fi
5685RANLIB=$ac_cv_prog_RANLIB
5686if test -n "$RANLIB"; then
5687 echo "$as_me:$LINENO: result: $RANLIB" >&5
5688echo "${ECHO_T}$RANLIB" >&6
5689else
5690 echo "$as_me:$LINENO: result: no" >&5
5691echo "${ECHO_T}no" >&6
5692fi
5693
5694fi
5695if test -z "$ac_cv_prog_RANLIB"; then
5696 ac_ct_RANLIB=$RANLIB
5697 # Extract the first word of "ranlib", so it can be a program name with args.
5698set dummy ranlib; ac_word=$2
5699echo "$as_me:$LINENO: checking for $ac_word" >&5
5700echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5701if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5703else
5704 if test -n "$ac_ct_RANLIB"; then
5705 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5706else
5707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708for as_dir in $PATH
5709do
5710 IFS=$as_save_IFS
5711 test -z "$as_dir" && as_dir=.
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5714 ac_cv_prog_ac_ct_RANLIB="ranlib"
5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5716 break 2
5717 fi
5718done
5719done
5720
5721 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5722fi
5723fi
5724ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5725if test -n "$ac_ct_RANLIB"; then
5726 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5727echo "${ECHO_T}$ac_ct_RANLIB" >&6
5728else
5729 echo "$as_me:$LINENO: result: no" >&5
5730echo "${ECHO_T}no" >&6
5731fi
5732
5733 RANLIB=$ac_ct_RANLIB
5734else
5735 RANLIB="$ac_cv_prog_RANLIB"
5736fi
5737
5738if test -n "$ac_tool_prefix"; then
5739 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5740set dummy ${ac_tool_prefix}strip; ac_word=$2
5741echo "$as_me:$LINENO: checking for $ac_word" >&5
5742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5743if test "${ac_cv_prog_STRIP+set}" = set; then
5744 echo $ECHO_N "(cached) $ECHO_C" >&6
5745else
5746 if test -n "$STRIP"; then
5747 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5748else
5749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5750for as_dir in $PATH
5751do
5752 IFS=$as_save_IFS
5753 test -z "$as_dir" && as_dir=.
5754 for ac_exec_ext in '' $ac_executable_extensions; do
5755 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5756 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5757 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5758 break 2
5759 fi
5760done
5761done
5762
5763fi
5764fi
5765STRIP=$ac_cv_prog_STRIP
5766if test -n "$STRIP"; then
5767 echo "$as_me:$LINENO: result: $STRIP" >&5
5768echo "${ECHO_T}$STRIP" >&6
5769else
5770 echo "$as_me:$LINENO: result: no" >&5
5771echo "${ECHO_T}no" >&6
5772fi
5773
5774fi
5775if test -z "$ac_cv_prog_STRIP"; then
5776 ac_ct_STRIP=$STRIP
5777 # Extract the first word of "strip", so it can be a program name with args.
5778set dummy strip; ac_word=$2
5779echo "$as_me:$LINENO: checking for $ac_word" >&5
5780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5781if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5783else
5784 if test -n "$ac_ct_STRIP"; then
5785 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5786else
5787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788for as_dir in $PATH
5789do
5790 IFS=$as_save_IFS
5791 test -z "$as_dir" && as_dir=.
5792 for ac_exec_ext in '' $ac_executable_extensions; do
5793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5794 ac_cv_prog_ac_ct_STRIP="strip"
5795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5796 break 2
5797 fi
5798done
5799done
5800
5801 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5802fi
5803fi
5804ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5805if test -n "$ac_ct_STRIP"; then
5806 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5807echo "${ECHO_T}$ac_ct_STRIP" >&6
5808else
5809 echo "$as_me:$LINENO: result: no" >&5
5810echo "${ECHO_T}no" >&6
5811fi
5812
5813 STRIP=$ac_ct_STRIP
5814else
5815 STRIP="$ac_cv_prog_STRIP"
5816fi
5817
5818
John Criswell7a73b802003-06-30 21:59:07 +00005819old_CC="$CC"
5820old_CFLAGS="$CFLAGS"
5821
5822# Set sane defaults for various variables
5823test -z "$AR" && AR=ar
5824test -z "$AR_FLAGS" && AR_FLAGS=cru
5825test -z "$AS" && AS=as
5826test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005827test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005828test -z "$DLLTOOL" && DLLTOOL=dlltool
5829test -z "$LD" && LD=ld
5830test -z "$LN_S" && LN_S="ln -s"
5831test -z "$MAGIC_CMD" && MAGIC_CMD=file
5832test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005833test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005834test -z "$OBJDUMP" && OBJDUMP=objdump
5835test -z "$RANLIB" && RANLIB=:
5836test -z "$STRIP" && STRIP=:
5837test -z "$ac_objext" && ac_objext=o
5838
John Criswell7a73b802003-06-30 21:59:07 +00005839# Determine commands to create old-style static archives.
5840old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5841old_postinstall_cmds='chmod 644 $oldlib'
5842old_postuninstall_cmds=
5843
5844if test -n "$RANLIB"; then
5845 case $host_os in
5846 openbsd*)
5847 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5848 ;;
5849 *)
5850 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5851 ;;
5852 esac
5853 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5854fi
5855
John Criswell47fdd832003-07-14 16:52:07 +00005856# Only perform the check for file, if the check method requires it
5857case $deplibs_check_method in
5858file_magic*)
5859 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5860 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5861echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5862if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005864else
John Criswell47fdd832003-07-14 16:52:07 +00005865 case $MAGIC_CMD in
5866[\\/*] | ?:[\\/]*)
5867 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5868 ;;
5869*)
5870 lt_save_MAGIC_CMD="$MAGIC_CMD"
5871 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5872 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5873 for ac_dir in $ac_dummy; do
5874 IFS="$lt_save_ifs"
5875 test -z "$ac_dir" && ac_dir=.
5876 if test -f $ac_dir/${ac_tool_prefix}file; then
5877 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5878 if test -n "$file_magic_test_file"; then
5879 case $deplibs_check_method in
5880 "file_magic "*)
5881 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5882 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5883 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5884 $EGREP "$file_magic_regex" > /dev/null; then
5885 :
5886 else
5887 cat <<EOF 1>&2
5888
5889*** Warning: the command libtool uses to detect shared libraries,
5890*** $file_magic_cmd, produces output that libtool cannot recognize.
5891*** The result is that libtool may fail to recognize shared libraries
5892*** as such. This will affect the creation of libtool libraries that
5893*** depend on shared libraries, but programs linked with such libtool
5894*** libraries will work regardless of this problem. Nevertheless, you
5895*** may want to report the problem to your system manager and/or to
5896*** bug-libtool@gnu.org
5897
5898EOF
5899 fi ;;
5900 esac
5901 fi
5902 break
5903 fi
5904 done
5905 IFS="$lt_save_ifs"
5906 MAGIC_CMD="$lt_save_MAGIC_CMD"
5907 ;;
5908esac
John Criswell7a73b802003-06-30 21:59:07 +00005909fi
John Criswell7a73b802003-06-30 21:59:07 +00005910
John Criswell47fdd832003-07-14 16:52:07 +00005911MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5912if test -n "$MAGIC_CMD"; then
5913 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5914echo "${ECHO_T}$MAGIC_CMD" >&6
5915else
5916 echo "$as_me:$LINENO: result: no" >&5
5917echo "${ECHO_T}no" >&6
5918fi
John Criswell7a73b802003-06-30 21:59:07 +00005919
John Criswell47fdd832003-07-14 16:52:07 +00005920if test -z "$lt_cv_path_MAGIC_CMD"; then
5921 if test -n "$ac_tool_prefix"; then
5922 echo "$as_me:$LINENO: checking for file" >&5
5923echo $ECHO_N "checking for file... $ECHO_C" >&6
5924if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926else
5927 case $MAGIC_CMD in
5928[\\/*] | ?:[\\/]*)
5929 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5930 ;;
5931*)
5932 lt_save_MAGIC_CMD="$MAGIC_CMD"
5933 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5934 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5935 for ac_dir in $ac_dummy; do
5936 IFS="$lt_save_ifs"
5937 test -z "$ac_dir" && ac_dir=.
5938 if test -f $ac_dir/file; then
5939 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5940 if test -n "$file_magic_test_file"; then
5941 case $deplibs_check_method in
5942 "file_magic "*)
5943 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5944 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5945 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5946 $EGREP "$file_magic_regex" > /dev/null; then
5947 :
5948 else
5949 cat <<EOF 1>&2
5950
5951*** Warning: the command libtool uses to detect shared libraries,
5952*** $file_magic_cmd, produces output that libtool cannot recognize.
5953*** The result is that libtool may fail to recognize shared libraries
5954*** as such. This will affect the creation of libtool libraries that
5955*** depend on shared libraries, but programs linked with such libtool
5956*** libraries will work regardless of this problem. Nevertheless, you
5957*** may want to report the problem to your system manager and/or to
5958*** bug-libtool@gnu.org
5959
5960EOF
5961 fi ;;
5962 esac
5963 fi
5964 break
5965 fi
5966 done
5967 IFS="$lt_save_ifs"
5968 MAGIC_CMD="$lt_save_MAGIC_CMD"
5969 ;;
5970esac
5971fi
5972
5973MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5974if test -n "$MAGIC_CMD"; then
5975 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5976echo "${ECHO_T}$MAGIC_CMD" >&6
5977else
5978 echo "$as_me:$LINENO: result: no" >&5
5979echo "${ECHO_T}no" >&6
5980fi
5981
5982 else
5983 MAGIC_CMD=:
5984 fi
5985fi
5986
5987 fi
5988 ;;
5989esac
5990
5991enable_dlopen=no
5992enable_win32_dll=no
5993
5994# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5995if test "${enable_libtool_lock+set}" = set; then
5996 enableval="$enable_libtool_lock"
5997
5998fi;
5999test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6000
John Criswell7a73b802003-06-30 21:59:07 +00006001
6002# Check whether --with-pic or --without-pic was given.
6003if test "${with_pic+set}" = set; then
6004 withval="$with_pic"
6005 pic_mode="$withval"
6006else
6007 pic_mode=default
6008fi;
6009test -z "$pic_mode" && pic_mode=default
6010
John Criswell47fdd832003-07-14 16:52:07 +00006011# Use C for the default configuration in the libtool script
6012tagname=
6013lt_save_CC="$CC"
6014ac_ext=c
6015ac_cpp='$CPP $CPPFLAGS'
6016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6018ac_compiler_gnu=$ac_cv_c_compiler_gnu
6019
6020
6021# Source file extension for C test sources.
6022ac_ext=c
6023
6024# Object file extension for compiled C test sources.
6025objext=o
6026objext=$objext
6027
6028# Code to be used in simple compile tests
6029lt_simple_compile_test_code="int some_variable = 0;\n"
6030
6031# Code to be used in simple link tests
6032lt_simple_link_test_code='int main(){return(0);}\n'
6033
6034
6035# If no C compiler was specified, use CC.
6036LTCC=${LTCC-"$CC"}
6037
6038# Allow CC to be a program name with arguments.
6039compiler=$CC
6040
6041
6042#
6043# Check for any special shared library compilation flags.
6044#
6045lt_prog_cc_shlib=
6046if test "$GCC" = no; then
6047 case $host_os in
6048 sco3.2v5*)
6049 lt_prog_cc_shlib='-belf'
6050 ;;
6051 esac
6052fi
6053if test -n "$lt_prog_cc_shlib"; then
6054 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6055echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6056 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6057 else
6058 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6059echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6060 lt_cv_prog_cc_can_build_shared=no
6061 fi
6062fi
6063
6064
6065#
6066# Check to make sure the static flag actually works.
6067#
6068echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6069echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6070if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006071 echo $ECHO_N "(cached) $ECHO_C" >&6
6072else
John Criswell47fdd832003-07-14 16:52:07 +00006073 lt_prog_compiler_static_works=no
6074 save_LDFLAGS="$LDFLAGS"
6075 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6076 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6077 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6078 # The compiler can only warn and ignore the option if not recognized
6079 # So say no if there are warnings
6080 if test -s conftest.err; then
6081 # Append any errors to the config.log.
6082 cat conftest.err 1>&5
6083 else
6084 lt_prog_compiler_static_works=yes
6085 fi
6086 fi
6087 $rm conftest*
6088 LDFLAGS="$save_LDFLAGS"
6089
6090fi
6091echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6092echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6093
6094if test x"$lt_prog_compiler_static_works" = xyes; then
6095 :
6096else
6097 lt_prog_compiler_static=
6098fi
6099
6100
6101
Reid Spencer2b51a082004-08-04 00:34:49 +00006102## CAVEAT EMPTOR:
6103## There is no encapsulation within the following macros, do not change
6104## the running order or otherwise move them around unless you know exactly
6105## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +00006106
6107lt_prog_compiler_no_builtin_flag=
6108
6109if test "$GCC" = yes; then
6110 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6111
6112 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6113echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6114if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116else
6117 lt_cv_prog_compiler_rtti_exceptions=no
6118 ac_outfile=conftest.$ac_objext
6119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6120 lt_compiler_flag="-fno-rtti -fno-exceptions"
6121 # Insert the option either (1) after the last *FLAGS variable, or
6122 # (2) before a word containing "conftest.", or (3) at the end.
6123 # Note that $ac_compile itself does not contain backslashes and begins
6124 # with a dollar sign (not a hyphen), so the echo should work correctly.
6125 # The option is referenced via a variable to avoid confusing sed.
6126 lt_compile=`echo "$ac_compile" | $SED \
6127 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6129 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5f285392004-08-24 16:32:21 +00006130 (eval echo "\"\$as_me:6130: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006131 (eval "$lt_compile" 2>conftest.err)
6132 ac_status=$?
6133 cat conftest.err >&5
Reid Spencer5f285392004-08-24 16:32:21 +00006134 echo "$as_me:6134: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006135 if (exit $ac_status) && test -s "$ac_outfile"; then
6136 # The compiler can only warn and ignore the option if not recognized
6137 # So say no if there are warnings
6138 if test ! -s conftest.err; then
6139 lt_cv_prog_compiler_rtti_exceptions=yes
6140 fi
6141 fi
6142 $rm conftest*
6143
6144fi
6145echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6146echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6147
6148if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6149 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6150else
6151 :
6152fi
6153
6154fi
6155
6156lt_prog_compiler_wl=
6157lt_prog_compiler_pic=
6158lt_prog_compiler_static=
6159
6160echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6161echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006162
6163 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006164 lt_prog_compiler_wl='-Wl,'
6165 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006166
6167 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006168 aix*)
6169 # All AIX code is PIC.
6170 if test "$host_cpu" = ia64; then
6171 # AIX 5 now supports IA64 processor
6172 lt_prog_compiler_static='-Bstatic'
6173 fi
John Criswell7a73b802003-06-30 21:59:07 +00006174 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006175
John Criswell7a73b802003-06-30 21:59:07 +00006176 amigaos*)
6177 # FIXME: we need at least 68020 code to build shared libraries, but
6178 # adding the `-m68020' flag to GCC prevents building anything better,
6179 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006180 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006181 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006182
6183 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006184 # PIC is the default for these OSes.
6185 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006186
6187 mingw* | pw32* | os2*)
6188 # This hack is so that the source file can tell whether it is being
6189 # built for inclusion in a dll (and should export symbols for example).
6190 lt_prog_compiler_pic='-DDLL_EXPORT'
6191 ;;
6192
John Criswell7a73b802003-06-30 21:59:07 +00006193 darwin* | rhapsody*)
6194 # PIC is the default on this platform
6195 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006196 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006197 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006198
6199 msdosdjgpp*)
6200 # Just because we use GCC doesn't mean we suddenly get shared libraries
6201 # on systems that don't support them.
6202 lt_prog_compiler_can_build_shared=no
6203 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006204 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006205
John Criswell7a73b802003-06-30 21:59:07 +00006206 sysv4*MP*)
6207 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006208 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006209 fi
6210 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006211
6212 hpux*)
6213 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6214 # not for PA HP-UX.
6215 case "$host_cpu" in
6216 hppa*64*|ia64*)
6217 # +Z the default
6218 ;;
6219 *)
6220 lt_prog_compiler_pic='-fPIC'
6221 ;;
6222 esac
6223 ;;
6224
John Criswell7a73b802003-06-30 21:59:07 +00006225 *)
John Criswell47fdd832003-07-14 16:52:07 +00006226 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006227 ;;
6228 esac
6229 else
John Criswell47fdd832003-07-14 16:52:07 +00006230 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006231 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006232 aix*)
6233 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006234 if test "$host_cpu" = ia64; then
6235 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006236 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006237 else
John Criswell47fdd832003-07-14 16:52:07 +00006238 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006239 fi
6240 ;;
6241
John Criswell47fdd832003-07-14 16:52:07 +00006242 mingw* | pw32* | os2*)
6243 # This hack is so that the source file can tell whether it is being
6244 # built for inclusion in a dll (and should export symbols for example).
6245 lt_prog_compiler_pic='-DDLL_EXPORT'
6246 ;;
6247
John Criswell7a73b802003-06-30 21:59:07 +00006248 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006249 lt_prog_compiler_wl='-Wl,'
6250 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6251 # not for PA HP-UX.
6252 case "$host_cpu" in
6253 hppa*64*|ia64*)
6254 # +Z the default
6255 ;;
6256 *)
6257 lt_prog_compiler_pic='+Z'
6258 ;;
6259 esac
6260 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6261 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006262 ;;
6263
John Criswell47fdd832003-07-14 16:52:07 +00006264 irix5* | irix6* | nonstopux*)
6265 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006266 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006267 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006268 ;;
6269
6270 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006271 lt_prog_compiler_pic='-KPIC'
6272 lt_prog_compiler_static='-Bstatic'
6273 ;;
6274
6275 linux*)
6276 case $CC in
6277 icc|ecc)
6278 lt_prog_compiler_wl='-Wl,'
6279 lt_prog_compiler_pic='-KPIC'
6280 lt_prog_compiler_static='-static'
6281 ;;
6282 ccc)
6283 lt_prog_compiler_wl='-Wl,'
6284 # All Alpha code is PIC.
6285 lt_prog_compiler_static='-non_shared'
6286 ;;
6287 esac
John Criswell7a73b802003-06-30 21:59:07 +00006288 ;;
6289
6290 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006291 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006292 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006293 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006294 ;;
6295
6296 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006297 lt_prog_compiler_pic='-Kpic'
6298 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006299 ;;
6300
6301 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006302 lt_prog_compiler_wl='-Wl,'
6303 lt_prog_compiler_pic='-KPIC'
6304 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006305 ;;
6306
6307 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006308 lt_prog_compiler_wl='-Qoption ld '
6309 lt_prog_compiler_pic='-PIC'
6310 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006311 ;;
6312
6313 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006314 lt_prog_compiler_wl='-Wl,'
6315 lt_prog_compiler_pic='-KPIC'
6316 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006317 ;;
6318
6319 sysv4*MP*)
6320 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006321 lt_prog_compiler_pic='-Kconform_pic'
6322 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006323 fi
6324 ;;
6325
John Criswell47fdd832003-07-14 16:52:07 +00006326 uts4*)
6327 lt_prog_compiler_pic='-pic'
6328 lt_prog_compiler_static='-Bstatic'
6329 ;;
6330
John Criswell7a73b802003-06-30 21:59:07 +00006331 *)
John Criswell47fdd832003-07-14 16:52:07 +00006332 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006333 ;;
6334 esac
6335 fi
6336
John Criswell47fdd832003-07-14 16:52:07 +00006337echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6338echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006339
John Criswell47fdd832003-07-14 16:52:07 +00006340#
6341# Check to make sure the PIC flag actually works.
6342#
6343if test -n "$lt_prog_compiler_pic"; then
6344 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6345echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6346if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006347 echo $ECHO_N "(cached) $ECHO_C" >&6
6348else
John Criswell47fdd832003-07-14 16:52:07 +00006349 lt_prog_compiler_pic_works=no
6350 ac_outfile=conftest.$ac_objext
6351 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6352 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6353 # Insert the option either (1) after the last *FLAGS variable, or
6354 # (2) before a word containing "conftest.", or (3) at the end.
6355 # Note that $ac_compile itself does not contain backslashes and begins
6356 # with a dollar sign (not a hyphen), so the echo should work correctly.
6357 # The option is referenced via a variable to avoid confusing sed.
6358 lt_compile=`echo "$ac_compile" | $SED \
6359 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6361 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5f285392004-08-24 16:32:21 +00006362 (eval echo "\"\$as_me:6362: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006363 (eval "$lt_compile" 2>conftest.err)
6364 ac_status=$?
6365 cat conftest.err >&5
Reid Spencer5f285392004-08-24 16:32:21 +00006366 echo "$as_me:6366: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006367 if (exit $ac_status) && test -s "$ac_outfile"; then
6368 # The compiler can only warn and ignore the option if not recognized
6369 # So say no if there are warnings
6370 if test ! -s conftest.err; then
6371 lt_prog_compiler_pic_works=yes
6372 fi
6373 fi
6374 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006375
John Criswell47fdd832003-07-14 16:52:07 +00006376fi
6377echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6378echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006379
John Criswell47fdd832003-07-14 16:52:07 +00006380if test x"$lt_prog_compiler_pic_works" = xyes; then
6381 case $lt_prog_compiler_pic in
6382 "" | " "*) ;;
6383 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6384 esac
John Criswell7a73b802003-06-30 21:59:07 +00006385else
John Criswell47fdd832003-07-14 16:52:07 +00006386 lt_prog_compiler_pic=
6387 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006388fi
6389
John Criswell7a73b802003-06-30 21:59:07 +00006390fi
John Criswell47fdd832003-07-14 16:52:07 +00006391case "$host_os" in
6392 # For platforms which do not support PIC, -DPIC is meaningless:
6393 *djgpp*)
6394 lt_prog_compiler_pic=
6395 ;;
6396 *)
6397 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6398 ;;
6399esac
John Criswell7a73b802003-06-30 21:59:07 +00006400
John Criswell7a73b802003-06-30 21:59:07 +00006401echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6402echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006403if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405else
John Criswell47fdd832003-07-14 16:52:07 +00006406 lt_cv_prog_compiler_c_o=no
6407 $rm -r conftest 2>/dev/null
6408 mkdir conftest
6409 cd conftest
6410 mkdir out
6411 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006412
John Criswell47fdd832003-07-14 16:52:07 +00006413 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6414 # that will create temporary files in the current directory regardless of
6415 # the output directory. Thus, making CWD read-only will cause this test
6416 # to fail, enabling locking or at least warning the user not to do parallel
6417 # builds.
6418 chmod -w .
6419
6420 lt_compiler_flag="-o out/conftest2.$ac_objext"
6421 # Insert the option either (1) after the last *FLAGS variable, or
6422 # (2) before a word containing "conftest.", or (3) at the end.
6423 # Note that $ac_compile itself does not contain backslashes and begins
6424 # with a dollar sign (not a hyphen), so the echo should work correctly.
6425 lt_compile=`echo "$ac_compile" | $SED \
6426 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6427 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6428 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5f285392004-08-24 16:32:21 +00006429 (eval echo "\"\$as_me:6429: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006430 (eval "$lt_compile" 2>out/conftest.err)
6431 ac_status=$?
6432 cat out/conftest.err >&5
Reid Spencer5f285392004-08-24 16:32:21 +00006433 echo "$as_me:6433: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006434 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6435 then
6436 # The compiler can only warn and ignore the option if not recognized
6437 # So say no if there are warnings
6438 if test ! -s out/conftest.err; then
6439 lt_cv_prog_compiler_c_o=yes
6440 fi
6441 fi
6442 chmod u+w .
6443 $rm conftest* out/*
6444 rmdir out
6445 cd ..
6446 rmdir conftest
6447 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006448
6449fi
John Criswell47fdd832003-07-14 16:52:07 +00006450echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6451echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006452
John Criswell7a73b802003-06-30 21:59:07 +00006453
John Criswell7a73b802003-06-30 21:59:07 +00006454hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006455if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006456 # do not overwrite the value of need_locks provided by the user
6457 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6458echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6459 hard_links=yes
6460 $rm conftest*
6461 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6462 touch conftest.a
6463 ln conftest.a conftest.b 2>&5 || hard_links=no
6464 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6465 echo "$as_me:$LINENO: result: $hard_links" >&5
6466echo "${ECHO_T}$hard_links" >&6
6467 if test "$hard_links" = no; then
6468 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6469echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6470 need_locks=warn
6471 fi
6472else
6473 need_locks=no
6474fi
John Criswell7a73b802003-06-30 21:59:07 +00006475
John Criswell47fdd832003-07-14 16:52:07 +00006476echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6477echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6478
6479 runpath_var=
6480 allow_undefined_flag=
6481 enable_shared_with_static_runtimes=no
6482 archive_cmds=
6483 archive_expsym_cmds=
6484 old_archive_From_new_cmds=
6485 old_archive_from_expsyms_cmds=
6486 export_dynamic_flag_spec=
6487 whole_archive_flag_spec=
6488 thread_safe_flag_spec=
6489 hardcode_libdir_flag_spec=
6490 hardcode_libdir_flag_spec_ld=
6491 hardcode_libdir_separator=
6492 hardcode_direct=no
6493 hardcode_minus_L=no
6494 hardcode_shlibpath_var=unsupported
6495 link_all_deplibs=unknown
6496 hardcode_automatic=no
6497 module_cmds=
6498 module_expsym_cmds=
6499 always_export_symbols=no
6500 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6501 # include_expsyms should be a list of space-separated symbols to be *always*
6502 # included in the symbol list
6503 include_expsyms=
6504 # exclude_expsyms can be an extended regexp of symbols to exclude
6505 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6506 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6507 # as well as any symbol that contains `d'.
6508 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6509 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6510 # platforms (ab)use it in PIC code, but their linkers get confused if
6511 # the symbol is explicitly referenced. Since portable code cannot
6512 # rely on this symbol name, it's probably fine to never include it in
6513 # preloaded symbol tables.
6514 extract_expsyms_cmds=
6515
6516 case $host_os in
6517 cygwin* | mingw* | pw32*)
6518 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6519 # When not using gcc, we currently assume that we are using
6520 # Microsoft Visual C++.
6521 if test "$GCC" != yes; then
6522 with_gnu_ld=no
6523 fi
6524 ;;
6525 openbsd*)
6526 with_gnu_ld=no
6527 ;;
6528 esac
6529
6530 ld_shlibs=yes
6531 if test "$with_gnu_ld" = yes; then
6532 # If archive_cmds runs LD, not CC, wlarc should be empty
6533 wlarc='${wl}'
6534
6535 # See if GNU ld supports shared libraries.
6536 case $host_os in
6537 aix3* | aix4* | aix5*)
6538 # On AIX/PPC, the GNU linker is very broken
6539 if test "$host_cpu" != ia64; then
6540 ld_shlibs=no
6541 cat <<EOF 1>&2
6542
6543*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6544*** to be unable to reliably create shared libraries on AIX.
6545*** Therefore, libtool is disabling shared libraries support. If you
6546*** really care for shared libraries, you may want to modify your PATH
6547*** so that a non-GNU linker is found, and then restart.
6548
6549EOF
6550 fi
6551 ;;
6552
6553 amigaos*)
6554 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6555 hardcode_libdir_flag_spec='-L$libdir'
6556 hardcode_minus_L=yes
6557
6558 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6559 # that the semantics of dynamic libraries on AmigaOS, at least up
6560 # to version 4, is to share data among multiple programs linked
6561 # with the same dynamic library. Since this doesn't match the
6562 # behavior of shared libraries on other platforms, we can't use
6563 # them.
6564 ld_shlibs=no
6565 ;;
6566
6567 beos*)
6568 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6569 allow_undefined_flag=unsupported
6570 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6571 # support --undefined. This deserves some investigation. FIXME
6572 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6573 else
6574 ld_shlibs=no
6575 fi
6576 ;;
6577
6578 cygwin* | mingw* | pw32*)
6579 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6580 # as there is no search path for DLLs.
6581 hardcode_libdir_flag_spec='-L$libdir'
6582 allow_undefined_flag=unsupported
6583 always_export_symbols=no
6584 enable_shared_with_static_runtimes=yes
6585 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6586
6587 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6589 # If the export-symbols file already is a .def file (1st line
6590 # is EXPORTS), use it as is; otherwise, prepend...
6591 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6592 cp $export_symbols $output_objdir/$soname.def;
6593 else
6594 echo EXPORTS > $output_objdir/$soname.def;
6595 cat $export_symbols >> $output_objdir/$soname.def;
6596 fi~
6597 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6598 else
6599 ld_shlibs=no
6600 fi
6601 ;;
6602
6603 netbsd*)
6604 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6605 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6606 wlarc=
6607 else
6608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6610 fi
6611 ;;
6612
6613 solaris* | sysv5*)
6614 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6615 ld_shlibs=no
6616 cat <<EOF 1>&2
6617
6618*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6619*** create shared libraries on Solaris systems. Therefore, libtool
6620*** is disabling shared libraries support. We urge you to upgrade GNU
6621*** binutils to release 2.9.1 or newer. Another option is to modify
6622*** your PATH or compiler configuration so that the native linker is
6623*** used, and then restart.
6624
6625EOF
6626 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6628 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6629 else
6630 ld_shlibs=no
6631 fi
6632 ;;
6633
6634 sunos4*)
6635 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6636 wlarc=
6637 hardcode_direct=yes
6638 hardcode_shlibpath_var=no
6639 ;;
6640
6641 *)
6642 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6643 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6644 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6645 else
6646 ld_shlibs=no
6647 fi
6648 ;;
6649 esac
6650
6651 if test "$ld_shlibs" = yes; then
6652 runpath_var=LD_RUN_PATH
6653 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6654 export_dynamic_flag_spec='${wl}--export-dynamic'
6655 # ancient GNU ld didn't support --whole-archive et. al.
6656 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6657 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6658 else
6659 whole_archive_flag_spec=
6660 fi
6661 fi
6662 else
6663 # PORTME fill in a description of your system's linker (not GNU ld)
6664 case $host_os in
6665 aix3*)
6666 allow_undefined_flag=unsupported
6667 always_export_symbols=yes
6668 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6669 # Note: this linker hardcodes the directories in LIBPATH if there
6670 # are no directories specified by -L.
6671 hardcode_minus_L=yes
6672 if test "$GCC" = yes && test -z "$link_static_flag"; then
6673 # Neither direct hardcoding nor static linking is supported with a
6674 # broken collect2.
6675 hardcode_direct=unsupported
6676 fi
6677 ;;
6678
6679 aix4* | aix5*)
6680 if test "$host_cpu" = ia64; then
6681 # On IA64, the linker does run time linking by default, so we don't
6682 # have to do anything special.
6683 aix_use_runtimelinking=no
6684 exp_sym_flag='-Bexport'
6685 no_entry_flag=""
6686 else
6687 # If we're using GNU nm, then we don't want the "-C" option.
6688 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6689 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6690 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'
6691 else
6692 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'
6693 fi
6694 aix_use_runtimelinking=no
6695
6696 # Test if we are trying to use run time linking or normal
6697 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6698 # need to do runtime linking.
6699 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6700 for ld_flag in $LDFLAGS; do
6701 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6702 aix_use_runtimelinking=yes
6703 break
6704 fi
6705 done
6706 esac
6707
6708 exp_sym_flag='-bexport'
6709 no_entry_flag='-bnoentry'
6710 fi
6711
6712 # When large executables or shared objects are built, AIX ld can
6713 # have problems creating the table of contents. If linking a library
6714 # or program results in "error TOC overflow" add -mminimal-toc to
6715 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6716 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6717
6718 archive_cmds=''
6719 hardcode_direct=yes
6720 hardcode_libdir_separator=':'
6721 link_all_deplibs=yes
6722
6723 if test "$GCC" = yes; then
6724 case $host_os in aix4.012|aix4.012.*)
6725 # We only want to do this on AIX 4.2 and lower, the check
6726 # below for broken collect2 doesn't work under 4.3+
6727 collect2name=`${CC} -print-prog-name=collect2`
6728 if test -f "$collect2name" && \
6729 strings "$collect2name" | grep resolve_lib_name >/dev/null
6730 then
6731 # We have reworked collect2
6732 hardcode_direct=yes
6733 else
6734 # We have old collect2
6735 hardcode_direct=unsupported
6736 # It fails to find uninstalled libraries when the uninstalled
6737 # path is not listed in the libpath. Setting hardcode_minus_L
6738 # to unsupported forces relinking
6739 hardcode_minus_L=yes
6740 hardcode_libdir_flag_spec='-L$libdir'
6741 hardcode_libdir_separator=
6742 fi
6743 esac
6744 shared_flag='-shared'
6745 else
6746 # not using gcc
6747 if test "$host_cpu" = ia64; then
6748 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6749 # chokes on -Wl,-G. The following line is correct:
6750 shared_flag='-G'
6751 else
6752 if test "$aix_use_runtimelinking" = yes; then
6753 shared_flag='${wl}-G'
6754 else
6755 shared_flag='${wl}-bM:SRE'
6756 fi
6757 fi
6758 fi
6759
6760 # It seems that -bexpall does not export symbols beginning with
6761 # underscore (_), so it is better to generate a list of symbols to export.
6762 always_export_symbols=yes
6763 if test "$aix_use_runtimelinking" = yes; then
6764 # Warning - without using the other runtime loading flags (-brtl),
6765 # -berok will link without error, but may produce a broken library.
6766 allow_undefined_flag='-berok'
6767 # Determine the default libpath from the value encoded in an empty executable.
6768 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006769/* confdefs.h. */
6770_ACEOF
6771cat confdefs.h >>conftest.$ac_ext
6772cat >>conftest.$ac_ext <<_ACEOF
6773/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006774
John Criswell7a73b802003-06-30 21:59:07 +00006775int
6776main ()
6777{
John Criswell47fdd832003-07-14 16:52:07 +00006778
John Criswell7a73b802003-06-30 21:59:07 +00006779 ;
6780 return 0;
6781}
6782_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006783rm -f conftest.$ac_objext conftest$ac_exeext
6784if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00006785 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006786 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00006787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00006792 { ac_try='test -z "$ac_c_werror_flag"
6793 || test ! -s conftest.err'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; } &&
6799 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006805
John Criswell47fdd832003-07-14 16:52:07 +00006806aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6807}'`
6808# Check for a 64-bit object if we didn't find anything.
6809if 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; }
6810}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006811else
6812 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006813sed 's/^/| /' conftest.$ac_ext >&5
6814
John Criswell7a73b802003-06-30 21:59:07 +00006815fi
Reid Spencer2b51a082004-08-04 00:34:49 +00006816rm -f conftest.err conftest.$ac_objext \
6817 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006818if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006819
John Criswell47fdd832003-07-14 16:52:07 +00006820 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6821 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"
6822 else
6823 if test "$host_cpu" = ia64; then
6824 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6825 allow_undefined_flag="-z nodefs"
6826 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"
6827 else
6828 # Determine the default libpath from the value encoded in an empty executable.
6829 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006830/* confdefs.h. */
6831_ACEOF
6832cat confdefs.h >>conftest.$ac_ext
6833cat >>conftest.$ac_ext <<_ACEOF
6834/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006835
John Criswell47fdd832003-07-14 16:52:07 +00006836int
6837main ()
6838{
John Criswell7a73b802003-06-30 21:59:07 +00006839
John Criswell47fdd832003-07-14 16:52:07 +00006840 ;
6841 return 0;
6842}
6843_ACEOF
6844rm -f conftest.$ac_objext conftest$ac_exeext
6845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00006846 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00006847 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00006848 grep -v '^ *+' conftest.er1 >conftest.err
6849 rm -f conftest.er1
6850 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00006851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00006853 { ac_try='test -z "$ac_c_werror_flag"
6854 || test ! -s conftest.err'
6855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856 (eval $ac_try) 2>&5
6857 ac_status=$?
6858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859 (exit $ac_status); }; } &&
6860 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862 (eval $ac_try) 2>&5
6863 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006866
John Criswell47fdd832003-07-14 16:52:07 +00006867aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6868}'`
6869# Check for a 64-bit object if we didn't find anything.
6870if 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; }
6871}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006872else
John Criswell47fdd832003-07-14 16:52:07 +00006873 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006874sed 's/^/| /' conftest.$ac_ext >&5
6875
John Criswell47fdd832003-07-14 16:52:07 +00006876fi
Reid Spencer2b51a082004-08-04 00:34:49 +00006877rm -f conftest.err conftest.$ac_objext \
6878 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006879if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006880
John Criswell47fdd832003-07-14 16:52:07 +00006881 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6882 # Warning - without using the other run time loading flags,
6883 # -berok will link without error, but may produce a broken library.
6884 no_undefined_flag=' ${wl}-bernotok'
6885 allow_undefined_flag=' ${wl}-berok'
6886 # -bexpall does not export symbols beginning with underscore (_)
6887 always_export_symbols=yes
6888 # Exported symbols can be pulled into shared objects from archives
6889 whole_archive_flag_spec=' '
6890 archive_cmds_need_lc=yes
6891 # This is similar to how AIX traditionally builds it's shared libraries.
6892 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
John Criswell7a73b802003-06-30 21:59:07 +00006893 fi
6894 fi
John Criswell7a73b802003-06-30 21:59:07 +00006895 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006896
6897 amigaos*)
6898 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6899 hardcode_libdir_flag_spec='-L$libdir'
6900 hardcode_minus_L=yes
6901 # see comment about different semantics on the GNU ld section
6902 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006903 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006904
John Criswell47fdd832003-07-14 16:52:07 +00006905 bsdi4*)
6906 export_dynamic_flag_spec=-rdynamic
6907 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006908
John Criswell47fdd832003-07-14 16:52:07 +00006909 cygwin* | mingw* | pw32*)
6910 # When not using gcc, we currently assume that we are using
6911 # Microsoft Visual C++.
6912 # hardcode_libdir_flag_spec is actually meaningless, as there is
6913 # no search path for DLLs.
6914 hardcode_libdir_flag_spec=' '
6915 allow_undefined_flag=unsupported
6916 # Tell ltmain to make .lib files, not .a files.
6917 libext=lib
6918 # Tell ltmain to make .dll files, not .so files.
6919 shrext=".dll"
6920 # FIXME: Setting linknames here is a bad hack.
6921 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6922 # The linker will automatically build a .lib file if we build a DLL.
6923 old_archive_From_new_cmds='true'
6924 # FIXME: Should let the user specify the lib program.
6925 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6926 fix_srcfile_path='`cygpath -w "$srcfile"`'
6927 enable_shared_with_static_runtimes=yes
6928 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006929
John Criswell47fdd832003-07-14 16:52:07 +00006930 darwin* | rhapsody*)
6931 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6932 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006933 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006934 rhapsody* | darwin1.[012])
6935 allow_undefined_flag='-undefined suppress'
6936 ;;
6937 *) # Darwin 1.3 on
6938 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006939 ;;
6940 esac
John Criswell47fdd832003-07-14 16:52:07 +00006941 # FIXME: Relying on posixy $() will cause problems for
6942 # cross-compilation, but unfortunately the echo tests do not
6943 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6944 # `"' quotes if we put them in here... so don't!
6945 lt_int_apple_cc_single_mod=no
6946 output_verbose_link_cmd='echo'
6947 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6948 lt_int_apple_cc_single_mod=yes
6949 fi
6950 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6951 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6952 else
6953 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6954 fi
6955 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6956 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6957 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6958 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6959 else
6960 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6961 fi
6962 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6963 hardcode_direct=no
6964 hardcode_automatic=yes
6965 hardcode_shlibpath_var=unsupported
6966 whole_archive_flag_spec='-all_load $convenience'
6967 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006968 fi
John Criswell47fdd832003-07-14 16:52:07 +00006969 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006970
John Criswell47fdd832003-07-14 16:52:07 +00006971 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006973 hardcode_libdir_flag_spec='-L$libdir'
6974 hardcode_shlibpath_var=no
6975 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006976
John Criswell47fdd832003-07-14 16:52:07 +00006977 freebsd1*)
6978 ld_shlibs=no
6979 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006980
John Criswell47fdd832003-07-14 16:52:07 +00006981 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6982 # support. Future versions do this automatically, but an explicit c++rt0.o
6983 # does not break anything, and helps significantly (at the cost of a little
6984 # extra space).
6985 freebsd2.2*)
6986 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6987 hardcode_libdir_flag_spec='-R$libdir'
6988 hardcode_direct=yes
6989 hardcode_shlibpath_var=no
6990 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006991
John Criswell47fdd832003-07-14 16:52:07 +00006992 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6993 freebsd2*)
6994 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6995 hardcode_direct=yes
6996 hardcode_minus_L=yes
6997 hardcode_shlibpath_var=no
6998 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006999
John Criswell47fdd832003-07-14 16:52:07 +00007000 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7001 freebsd*)
7002 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7003 hardcode_libdir_flag_spec='-R$libdir'
7004 hardcode_direct=yes
7005 hardcode_shlibpath_var=no
7006 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007007
John Criswell47fdd832003-07-14 16:52:07 +00007008 hpux9*)
7009 if test "$GCC" = yes; then
7010 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7011 else
7012 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7013 fi
7014 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7015 hardcode_libdir_separator=:
7016 hardcode_direct=yes
7017
7018 # hardcode_minus_L: Not really in the search PATH,
7019 # but as the default location of the library.
7020 hardcode_minus_L=yes
7021 export_dynamic_flag_spec='${wl}-E'
7022 ;;
7023
7024 hpux10* | hpux11*)
7025 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7026 case "$host_cpu" in
7027 hppa*64*|ia64*)
7028 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7029 ;;
7030 *)
7031 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7032 ;;
7033 esac
7034 else
7035 case "$host_cpu" in
7036 hppa*64*|ia64*)
7037 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7038 ;;
7039 *)
7040 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7041 ;;
7042 esac
7043 fi
7044 if test "$with_gnu_ld" = no; then
7045 case "$host_cpu" in
7046 hppa*64*)
7047 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7048 hardcode_libdir_flag_spec_ld='+b $libdir'
7049 hardcode_libdir_separator=:
7050 hardcode_direct=no
7051 hardcode_shlibpath_var=no
7052 ;;
7053 ia64*)
7054 hardcode_libdir_flag_spec='-L$libdir'
7055 hardcode_direct=no
7056 hardcode_shlibpath_var=no
7057
7058 # hardcode_minus_L: Not really in the search PATH,
7059 # but as the default location of the library.
7060 hardcode_minus_L=yes
7061 ;;
7062 *)
7063 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7064 hardcode_libdir_separator=:
7065 hardcode_direct=yes
7066 export_dynamic_flag_spec='${wl}-E'
7067
7068 # hardcode_minus_L: Not really in the search PATH,
7069 # but as the default location of the library.
7070 hardcode_minus_L=yes
7071 ;;
7072 esac
7073 fi
7074 ;;
7075
7076 irix5* | irix6* | nonstopux*)
7077 if test "$GCC" = yes; then
7078 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'
7079 else
7080 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'
7081 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7082 fi
7083 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7084 hardcode_libdir_separator=:
7085 link_all_deplibs=yes
7086 ;;
7087
7088 netbsd*)
7089 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7090 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7091 else
7092 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7093 fi
7094 hardcode_libdir_flag_spec='-R$libdir'
7095 hardcode_direct=yes
7096 hardcode_shlibpath_var=no
7097 ;;
7098
7099 newsos6)
7100 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7101 hardcode_direct=yes
7102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7103 hardcode_libdir_separator=:
7104 hardcode_shlibpath_var=no
7105 ;;
7106
7107 openbsd*)
7108 hardcode_direct=yes
7109 hardcode_shlibpath_var=no
7110 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7111 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7112 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7113 export_dynamic_flag_spec='${wl}-E'
7114 else
7115 case $host_os in
7116 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7118 hardcode_libdir_flag_spec='-R$libdir'
7119 ;;
7120 *)
7121 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7122 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7123 ;;
7124 esac
7125 fi
7126 ;;
7127
7128 os2*)
7129 hardcode_libdir_flag_spec='-L$libdir'
7130 hardcode_minus_L=yes
7131 allow_undefined_flag=unsupported
7132 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
7133 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7134 ;;
7135
7136 osf3*)
7137 if test "$GCC" = yes; then
7138 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7139 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'
7140 else
7141 allow_undefined_flag=' -expect_unresolved \*'
7142 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'
7143 fi
7144 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7145 hardcode_libdir_separator=:
7146 ;;
7147
7148 osf4* | osf5*) # as osf3* with the addition of -msym flag
7149 if test "$GCC" = yes; then
7150 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7151 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'
7152 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7153 else
7154 allow_undefined_flag=' -expect_unresolved \*'
7155 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'
7156 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7157 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7158
7159 # Both c and cxx compiler support -rpath directly
7160 hardcode_libdir_flag_spec='-rpath $libdir'
7161 fi
7162 hardcode_libdir_separator=:
7163 ;;
7164
7165 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007166 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7167 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007168 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007169 runpath_var=LD_RUN_PATH
7170 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007171 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007172
John Criswell47fdd832003-07-14 16:52:07 +00007173 solaris*)
7174 no_undefined_flag=' -z text'
7175 if test "$GCC" = yes; then
7176 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7177 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7178 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7179 else
7180 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7181 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7182 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7183 fi
7184 hardcode_libdir_flag_spec='-R$libdir'
7185 hardcode_shlibpath_var=no
7186 case $host_os in
7187 solaris2.[0-5] | solaris2.[0-5].*) ;;
7188 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7189 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7190 esac
7191 link_all_deplibs=yes
7192 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007193
John Criswell47fdd832003-07-14 16:52:07 +00007194 sunos4*)
7195 if test "x$host_vendor" = xsequent; then
7196 # Use $CC to link under sequent, because it throws in some extra .o
7197 # files that make .init and .fini sections work.
7198 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7199 else
7200 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7201 fi
7202 hardcode_libdir_flag_spec='-L$libdir'
7203 hardcode_direct=yes
7204 hardcode_minus_L=yes
7205 hardcode_shlibpath_var=no
7206 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007207
John Criswell47fdd832003-07-14 16:52:07 +00007208 sysv4)
7209 case $host_vendor in
7210 sni)
7211 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7212 hardcode_direct=yes # is this really true???
7213 ;;
7214 siemens)
7215 ## LD is ld it makes a PLAMLIB
7216 ## CC just makes a GrossModule.
7217 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7218 reload_cmds='$CC -r -o $output$reload_objs'
7219 hardcode_direct=no
7220 ;;
7221 motorola)
7222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7223 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7224 ;;
7225 esac
7226 runpath_var='LD_RUN_PATH'
7227 hardcode_shlibpath_var=no
7228 ;;
7229
7230 sysv4.3*)
7231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7232 hardcode_shlibpath_var=no
7233 export_dynamic_flag_spec='-Bexport'
7234 ;;
7235
7236 sysv4*MP*)
7237 if test -d /usr/nec; then
7238 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7239 hardcode_shlibpath_var=no
7240 runpath_var=LD_RUN_PATH
7241 hardcode_runpath_var=yes
7242 ld_shlibs=yes
7243 fi
7244 ;;
7245
7246 sysv4.2uw2*)
7247 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7248 hardcode_direct=yes
7249 hardcode_minus_L=no
7250 hardcode_shlibpath_var=no
7251 hardcode_runpath_var=yes
7252 runpath_var=LD_RUN_PATH
7253 ;;
7254
7255 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7256 no_undefined_flag='${wl}-z ${wl}text'
7257 if test "$GCC" = yes; then
7258 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7259 else
7260 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7261 fi
7262 runpath_var='LD_RUN_PATH'
7263 hardcode_shlibpath_var=no
7264 ;;
7265
7266 sysv5*)
7267 no_undefined_flag=' -z text'
7268 # $CC -shared without GNU ld will not create a library from C++
7269 # object files and a static libstdc++, better avoid it by now
7270 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7271 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7272 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7273 hardcode_libdir_flag_spec=
7274 hardcode_shlibpath_var=no
7275 runpath_var='LD_RUN_PATH'
7276 ;;
7277
7278 uts4*)
7279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7280 hardcode_libdir_flag_spec='-L$libdir'
7281 hardcode_shlibpath_var=no
7282 ;;
7283
7284 *)
7285 ld_shlibs=no
7286 ;;
7287 esac
7288 fi
7289
John Criswell7a73b802003-06-30 21:59:07 +00007290echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7291echo "${ECHO_T}$ld_shlibs" >&6
7292test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007293
John Criswell47fdd832003-07-14 16:52:07 +00007294variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7295if test "$GCC" = yes; then
7296 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7297fi
7298
7299#
7300# Do we need to explicitly link libc?
7301#
7302case "x$archive_cmds_need_lc" in
7303x|xyes)
7304 # Assume -lc should be added
7305 archive_cmds_need_lc=yes
7306
7307 if test "$enable_shared" = yes && test "$GCC" = yes; then
7308 case $archive_cmds in
7309 *'~'*)
7310 # FIXME: we may have to deal with multi-command sequences.
7311 ;;
7312 '$CC '*)
7313 # Test whether the compiler implicitly links with -lc since on some
7314 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7315 # to ld, don't add -lc before -lgcc.
7316 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7317echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7318 $rm conftest*
7319 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7320
7321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7322 (eval $ac_compile) 2>&5
7323 ac_status=$?
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } 2>conftest.err; then
7326 soname=conftest
7327 lib=conftest
7328 libobjs=conftest.$ac_objext
7329 deplibs=
7330 wl=$lt_prog_compiler_wl
7331 compiler_flags=-v
7332 linker_flags=-v
7333 verstring=
7334 output_objdir=.
7335 libname=conftest
7336 lt_save_allow_undefined_flag=$allow_undefined_flag
7337 allow_undefined_flag=
7338 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7339 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7340 ac_status=$?
7341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); }
7343 then
7344 archive_cmds_need_lc=no
7345 else
7346 archive_cmds_need_lc=yes
7347 fi
7348 allow_undefined_flag=$lt_save_allow_undefined_flag
7349 else
7350 cat conftest.err 1>&5
7351 fi
7352 $rm conftest*
7353 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7354echo "${ECHO_T}$archive_cmds_need_lc" >&6
7355 ;;
7356 esac
7357 fi
7358 ;;
7359esac
7360
John Criswell7a73b802003-06-30 21:59:07 +00007361echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7362echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7363hardcode_action=
7364if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007365 test -n "$runpath_var " || \
7366 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007367
7368 # We can hardcode non-existant directories.
7369 if test "$hardcode_direct" != no &&
7370 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7371 # have to relink, otherwise we might link with an installed library
7372 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007373 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007374 test "$hardcode_minus_L" != no; then
7375 # Linking always hardcodes the temporary library directory.
7376 hardcode_action=relink
7377 else
7378 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7379 hardcode_action=immediate
7380 fi
7381else
7382 # We cannot hardcode anything, or else we can only hardcode existing
7383 # directories.
7384 hardcode_action=unsupported
7385fi
7386echo "$as_me:$LINENO: result: $hardcode_action" >&5
7387echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007388
John Criswell47fdd832003-07-14 16:52:07 +00007389if test "$hardcode_action" = relink; then
7390 # Fast installation is not supported
7391 enable_fast_install=no
7392elif test "$shlibpath_overrides_runpath" = yes ||
7393 test "$enable_shared" = no; then
7394 # Fast installation is not necessary
7395 enable_fast_install=needless
7396fi
7397
John Criswell7a73b802003-06-30 21:59:07 +00007398striplib=
7399old_striplib=
7400echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7401echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7402if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7403 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7404 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7405 echo "$as_me:$LINENO: result: yes" >&5
7406echo "${ECHO_T}yes" >&6
7407else
John Criswell47fdd832003-07-14 16:52:07 +00007408# FIXME - insert some real tests, host_os isn't really good enough
7409 case $host_os in
7410 darwin*)
7411 if test -n "$STRIP" ; then
7412 striplib="$STRIP -x"
7413 echo "$as_me:$LINENO: result: yes" >&5
7414echo "${ECHO_T}yes" >&6
7415 else
John Criswell7a73b802003-06-30 21:59:07 +00007416 echo "$as_me:$LINENO: result: no" >&5
7417echo "${ECHO_T}no" >&6
7418fi
John Criswell47fdd832003-07-14 16:52:07 +00007419 ;;
7420 *)
7421 echo "$as_me:$LINENO: result: no" >&5
7422echo "${ECHO_T}no" >&6
7423 ;;
7424 esac
7425fi
John Criswell7a73b802003-06-30 21:59:07 +00007426
John Criswell7a73b802003-06-30 21:59:07 +00007427echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7428echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7429library_names_spec=
7430libname_spec='lib$name'
7431soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007432shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007433postinstall_cmds=
7434postuninstall_cmds=
7435finish_cmds=
7436finish_eval=
7437shlibpath_var=
7438shlibpath_overrides_runpath=unknown
7439version_type=none
7440dynamic_linker="$host_os ld.so"
7441sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007442if test "$GCC" = yes; then
7443 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7444 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7445 # if the path contains ";" then we assume it to be the separator
7446 # otherwise default to the standard path separator (i.e. ":") - it is
7447 # assumed that no part of a normal pathname contains ";" but that should
7448 # okay in the real world where ";" in dirpaths is itself problematic.
7449 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7450 else
7451 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7452 fi
7453else
7454 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7455fi
7456need_lib_prefix=unknown
7457hardcode_into_libs=no
7458
7459# when you set need_version to no, make sure it does not cause -set_version
7460# flags to be left without arguments
7461need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007462
7463case $host_os in
7464aix3*)
7465 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007466 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007467 shlibpath_var=LIBPATH
7468
John Criswell47fdd832003-07-14 16:52:07 +00007469 # AIX 3 has no versioning support, so we append a major version to the name.
7470 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007471 ;;
7472
7473aix4* | aix5*)
7474 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007475 need_lib_prefix=no
7476 need_version=no
7477 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007478 if test "$host_cpu" = ia64; then
7479 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007480 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007481 shlibpath_var=LD_LIBRARY_PATH
7482 else
7483 # With GCC up to 2.95.x, collect2 would create an import file
7484 # for dependence libraries. The import file would start with
7485 # the line `#! .'. This would cause the generated library to
7486 # depend on `.', always an invalid library. This was fixed in
7487 # development snapshots of GCC prior to 3.0.
7488 case $host_os in
7489 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007490 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7491 echo ' yes '
7492 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7493 :
7494 else
7495 can_build_shared=no
7496 fi
7497 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007498 esac
John Criswell47fdd832003-07-14 16:52:07 +00007499 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7500 # soname into executable. Probably we can add versioning support to
7501 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007502 if test "$aix_use_runtimelinking" = yes; then
7503 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7504 # instead of lib<name>.a to let people know that these are not
7505 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007507 else
7508 # We preserve .a as extension for shared libraries through AIX4.2
7509 # and later when we are not doing run time linking.
7510 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007511 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007512 fi
7513 shlibpath_var=LIBPATH
7514 fi
7515 ;;
7516
7517amigaos*)
7518 library_names_spec='$libname.ixlibrary $libname.a'
7519 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7520 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'
7521 ;;
7522
7523beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007524 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007525 dynamic_linker="$host_os ld.so"
7526 shlibpath_var=LIBRARY_PATH
7527 ;;
7528
7529bsdi4*)
7530 version_type=linux
7531 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7533 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007534 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7535 shlibpath_var=LD_LIBRARY_PATH
7536 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7537 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007538 # the default ld.so.conf also contains /usr/contrib/lib and
7539 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7540 # libtool to hard-code these into programs
7541 ;;
7542
7543cygwin* | mingw* | pw32*)
7544 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007545 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007546 need_version=no
7547 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007548
John Criswell7a73b802003-06-30 21:59:07 +00007549 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007550 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007551 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007552 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7553 postinstall_cmds='base_file=`basename \${file}`~
7554 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007555 dldir=$destdir/`dirname \$dlpath`~
7556 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007557 $install_prog $dir/$dlname \$dldir/$dlname'
7558 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007559 dlpath=$dir/\$dldll~
7560 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007561 shlibpath_overrides_runpath=yes
7562
7563 case $host_os in
7564 cygwin*)
7565 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7566 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7567 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7568 ;;
7569 mingw*)
7570 # MinGW DLLs use traditional 'lib' prefix
7571 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7572 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7573 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7574 # It is most probably a Windows format PATH printed by
7575 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7576 # path with ; separators, and with drive letters. We can handle the
7577 # drive letters (cygwin fileutils understands them), so leave them,
7578 # especially as we might pass files found there to a mingw objdump,
7579 # which wouldn't understand a cygwinified path. Ahh.
7580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7581 else
7582 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7583 fi
7584 ;;
7585 pw32*)
7586 # pw32 DLLs use 'pw' prefix rather than 'lib'
7587 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7588 ;;
7589 esac
John Criswell7a73b802003-06-30 21:59:07 +00007590 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007591
John Criswell7a73b802003-06-30 21:59:07 +00007592 *)
John Criswell47fdd832003-07-14 16:52:07 +00007593 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007594 ;;
7595 esac
7596 dynamic_linker='Win32 ld.exe'
7597 # FIXME: first we should search . and the directory the executable is in
7598 shlibpath_var=PATH
7599 ;;
7600
7601darwin* | rhapsody*)
7602 dynamic_linker="$host_os dyld"
7603 version_type=darwin
7604 need_lib_prefix=no
7605 need_version=no
7606 # FIXME: Relying on posixy $() will cause problems for
7607 # cross-compilation, but unfortunately the echo tests do not
7608 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007609 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7610 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007611 shlibpath_overrides_runpath=yes
7612 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007613 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7614 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7615 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7616 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"`
7617 fi
7618 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7619 ;;
7620
7621dgux*)
7622 version_type=linux
7623 need_lib_prefix=no
7624 need_version=no
7625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7626 soname_spec='${libname}${release}${shared_ext}$major'
7627 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007628 ;;
7629
7630freebsd1*)
7631 dynamic_linker=no
7632 ;;
7633
7634freebsd*)
7635 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7636 version_type=freebsd-$objformat
7637 case $version_type in
7638 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007640 need_version=no
7641 need_lib_prefix=no
7642 ;;
7643 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007644 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007645 need_version=yes
7646 ;;
7647 esac
7648 shlibpath_var=LD_LIBRARY_PATH
7649 case $host_os in
7650 freebsd2*)
7651 shlibpath_overrides_runpath=yes
7652 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007653 freebsd3.01* | freebsdelf3.01*)
7654 shlibpath_overrides_runpath=yes
7655 hardcode_into_libs=yes
7656 ;;
7657 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007658 shlibpath_overrides_runpath=no
7659 hardcode_into_libs=yes
7660 ;;
7661 esac
7662 ;;
7663
7664gnu*)
7665 version_type=linux
7666 need_lib_prefix=no
7667 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7669 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007670 shlibpath_var=LD_LIBRARY_PATH
7671 hardcode_into_libs=yes
7672 ;;
7673
7674hpux9* | hpux10* | hpux11*)
7675 # Give a soname corresponding to the major version so that dld.sl refuses to
7676 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007677 version_type=sunos
7678 need_lib_prefix=no
7679 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007680 case "$host_cpu" in
7681 ia64*)
7682 shrext='.so'
7683 hardcode_into_libs=yes
7684 dynamic_linker="$host_os dld.so"
7685 shlibpath_var=LD_LIBRARY_PATH
7686 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7688 soname_spec='${libname}${release}${shared_ext}$major'
7689 if test "X$HPUX_IA64_MODE" = X32; then
7690 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7691 else
7692 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7693 fi
7694 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7695 ;;
7696 hppa*64*)
7697 shrext='.sl'
7698 hardcode_into_libs=yes
7699 dynamic_linker="$host_os dld.sl"
7700 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7701 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7703 soname_spec='${libname}${release}${shared_ext}$major'
7704 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7705 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7706 ;;
7707 *)
7708 shrext='.sl'
7709 dynamic_linker="$host_os dld.sl"
7710 shlibpath_var=SHLIB_PATH
7711 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7713 soname_spec='${libname}${release}${shared_ext}$major'
7714 ;;
7715 esac
John Criswell7a73b802003-06-30 21:59:07 +00007716 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7717 postinstall_cmds='chmod 555 $lib'
7718 ;;
7719
John Criswell47fdd832003-07-14 16:52:07 +00007720irix5* | irix6* | nonstopux*)
7721 case $host_os in
7722 nonstopux*) version_type=nonstopux ;;
7723 *)
7724 if test "$lt_cv_prog_gnu_ld" = yes; then
7725 version_type=linux
7726 else
7727 version_type=irix
7728 fi ;;
7729 esac
John Criswell7a73b802003-06-30 21:59:07 +00007730 need_lib_prefix=no
7731 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007732 soname_spec='${libname}${release}${shared_ext}$major'
7733 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 +00007734 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007735 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007736 libsuff= shlibsuff=
7737 ;;
7738 *)
7739 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007740 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7741 libsuff= shlibsuff= libmagic=32-bit;;
7742 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7743 libsuff=32 shlibsuff=N32 libmagic=N32;;
7744 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7745 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007746 *) libsuff= shlibsuff= libmagic=never-match;;
7747 esac
7748 ;;
7749 esac
7750 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7751 shlibpath_overrides_runpath=no
7752 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7753 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007754 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007755 ;;
7756
7757# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007758linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007759 dynamic_linker=no
7760 ;;
7761
7762# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007763linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007764 version_type=linux
7765 need_lib_prefix=no
7766 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7768 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007769 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7770 shlibpath_var=LD_LIBRARY_PATH
7771 shlibpath_overrides_runpath=no
7772 # This implies no fast_install, which is unacceptable.
7773 # Some rework will be needed to allow for fast_install
7774 # before this can be enabled.
7775 hardcode_into_libs=yes
7776
7777 # We used to test for /lib/ld.so.1 and disable shared libraries on
7778 # powerpc, because MkLinux only supported shared libraries with the
7779 # GNU dynamic linker. Since this was broken with cross compilers,
7780 # most powerpc-linux boxes support dynamic linking these days and
7781 # people can always --disable-shared, the test was removed, and we
7782 # assume the GNU/Linux dynamic linker is in use.
7783 dynamic_linker='GNU/Linux ld.so'
7784 ;;
7785
7786netbsd*)
7787 version_type=sunos
7788 need_lib_prefix=no
7789 need_version=no
7790 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7793 dynamic_linker='NetBSD (a.out) ld.so'
7794 else
John Criswell47fdd832003-07-14 16:52:07 +00007795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7796 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007797 dynamic_linker='NetBSD ld.elf_so'
7798 fi
7799 shlibpath_var=LD_LIBRARY_PATH
7800 shlibpath_overrides_runpath=yes
7801 hardcode_into_libs=yes
7802 ;;
7803
7804newsos6)
7805 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7807 shlibpath_var=LD_LIBRARY_PATH
7808 shlibpath_overrides_runpath=yes
7809 ;;
7810
7811nto-qnx)
7812 version_type=linux
7813 need_lib_prefix=no
7814 need_version=no
7815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7816 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007817 shlibpath_var=LD_LIBRARY_PATH
7818 shlibpath_overrides_runpath=yes
7819 ;;
7820
7821openbsd*)
7822 version_type=sunos
7823 need_lib_prefix=no
7824 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7827 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007828 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 +00007829 case $host_os in
7830 openbsd2.[89] | openbsd2.[89].*)
7831 shlibpath_overrides_runpath=no
7832 ;;
7833 *)
7834 shlibpath_overrides_runpath=yes
7835 ;;
7836 esac
John Criswell7a73b802003-06-30 21:59:07 +00007837 else
7838 shlibpath_overrides_runpath=yes
7839 fi
John Criswell7a73b802003-06-30 21:59:07 +00007840 ;;
7841
7842os2*)
7843 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007844 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007845 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007846 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007847 dynamic_linker='OS/2 ld.exe'
7848 shlibpath_var=LIBPATH
7849 ;;
7850
7851osf3* | osf4* | osf5*)
7852 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007853 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007854 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007855 soname_spec='${libname}${release}${shared_ext}$major'
7856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007857 shlibpath_var=LD_LIBRARY_PATH
7858 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7859 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7860 ;;
7861
7862sco3.2v5*)
7863 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007864 soname_spec='${libname}${release}${shared_ext}$major'
7865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007866 shlibpath_var=LD_LIBRARY_PATH
7867 ;;
7868
7869solaris*)
7870 version_type=linux
7871 need_lib_prefix=no
7872 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7874 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007875 shlibpath_var=LD_LIBRARY_PATH
7876 shlibpath_overrides_runpath=yes
7877 hardcode_into_libs=yes
7878 # ldd complains unless libraries are executable
7879 postinstall_cmds='chmod +x $lib'
7880 ;;
7881
7882sunos4*)
7883 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007885 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7886 shlibpath_var=LD_LIBRARY_PATH
7887 shlibpath_overrides_runpath=yes
7888 if test "$with_gnu_ld" = yes; then
7889 need_lib_prefix=no
7890 fi
7891 need_version=yes
7892 ;;
7893
7894sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7895 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7897 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007898 shlibpath_var=LD_LIBRARY_PATH
7899 case $host_vendor in
7900 sni)
7901 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007902 need_lib_prefix=no
7903 export_dynamic_flag_spec='${wl}-Blargedynsym'
7904 runpath_var=LD_RUN_PATH
7905 ;;
7906 siemens)
7907 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007908 ;;
7909 motorola)
7910 need_lib_prefix=no
7911 need_version=no
7912 shlibpath_overrides_runpath=no
7913 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7914 ;;
7915 esac
7916 ;;
7917
John Criswell7a73b802003-06-30 21:59:07 +00007918sysv4*MP*)
7919 if test -d /usr/nec ;then
7920 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007921 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7922 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007923 shlibpath_var=LD_LIBRARY_PATH
7924 fi
7925 ;;
7926
John Criswell47fdd832003-07-14 16:52:07 +00007927uts4*)
7928 version_type=linux
7929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930 soname_spec='${libname}${release}${shared_ext}$major'
7931 shlibpath_var=LD_LIBRARY_PATH
7932 ;;
7933
John Criswell7a73b802003-06-30 21:59:07 +00007934*)
7935 dynamic_linker=no
7936 ;;
7937esac
7938echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7939echo "${ECHO_T}$dynamic_linker" >&6
7940test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007941
7942if test "x$enable_dlopen" != xyes; then
7943 enable_dlopen=unknown
7944 enable_dlopen_self=unknown
7945 enable_dlopen_self_static=unknown
7946else
7947 lt_cv_dlopen=no
7948 lt_cv_dlopen_libs=
7949
7950 case $host_os in
7951 beos*)
7952 lt_cv_dlopen="load_add_on"
7953 lt_cv_dlopen_libs=
7954 lt_cv_dlopen_self=yes
7955 ;;
7956
John Criswell47fdd832003-07-14 16:52:07 +00007957 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007958 lt_cv_dlopen="LoadLibrary"
7959 lt_cv_dlopen_libs=
7960 ;;
7961
John Criswell47fdd832003-07-14 16:52:07 +00007962 cygwin*)
7963 lt_cv_dlopen="dlopen"
7964 lt_cv_dlopen_libs=
7965 ;;
7966
7967 darwin*)
7968 # if libdl is installed we need to link against it
7969 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7970echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7971if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973else
7974 ac_check_lib_save_LIBS=$LIBS
7975LIBS="-ldl $LIBS"
7976cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00007977/* confdefs.h. */
7978_ACEOF
7979cat confdefs.h >>conftest.$ac_ext
7980cat >>conftest.$ac_ext <<_ACEOF
7981/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007982
7983/* Override any gcc2 internal prototype to avoid an error. */
7984#ifdef __cplusplus
7985extern "C"
7986#endif
7987/* We use char because int might match the return type of a gcc2
7988 builtin and then its argument prototype would still apply. */
7989char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007990int
7991main ()
7992{
7993dlopen ();
7994 ;
7995 return 0;
7996}
7997_ACEOF
7998rm -f conftest.$ac_objext conftest$ac_exeext
7999if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008000 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00008001 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008002 grep -v '^ *+' conftest.er1 >conftest.err
8003 rm -f conftest.er1
8004 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00008005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008007 { ac_try='test -z "$ac_c_werror_flag"
8008 || test ! -s conftest.err'
8009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8010 (eval $ac_try) 2>&5
8011 ac_status=$?
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); }; } &&
8014 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00008015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016 (eval $ac_try) 2>&5
8017 ac_status=$?
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); }; }; then
8020 ac_cv_lib_dl_dlopen=yes
8021else
8022 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008023sed 's/^/| /' conftest.$ac_ext >&5
8024
John Criswell47fdd832003-07-14 16:52:07 +00008025ac_cv_lib_dl_dlopen=no
8026fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008027rm -f conftest.err conftest.$ac_objext \
8028 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00008029LIBS=$ac_check_lib_save_LIBS
8030fi
8031echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8032echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8033if test $ac_cv_lib_dl_dlopen = yes; then
8034 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8035else
8036
8037 lt_cv_dlopen="dyld"
8038 lt_cv_dlopen_libs=
8039 lt_cv_dlopen_self=yes
8040
8041fi
8042
8043 ;;
8044
John Criswell7a73b802003-06-30 21:59:07 +00008045 *)
8046 echo "$as_me:$LINENO: checking for shl_load" >&5
8047echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8048if test "${ac_cv_func_shl_load+set}" = set; then
8049 echo $ECHO_N "(cached) $ECHO_C" >&6
8050else
8051 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008052/* confdefs.h. */
8053_ACEOF
8054cat confdefs.h >>conftest.$ac_ext
8055cat >>conftest.$ac_ext <<_ACEOF
8056/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008057/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8059#define shl_load innocuous_shl_load
8060
John Criswell7a73b802003-06-30 21:59:07 +00008061/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008062 which can conflict with char shl_load (); below.
8063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8064 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008065
John Criswell0c38eaf2003-09-10 15:17:25 +00008066#ifdef __STDC__
8067# include <limits.h>
8068#else
8069# include <assert.h>
8070#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00008071
8072#undef shl_load
8073
John Criswell7a73b802003-06-30 21:59:07 +00008074/* Override any gcc2 internal prototype to avoid an error. */
8075#ifdef __cplusplus
8076extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008077{
John Criswell7a73b802003-06-30 21:59:07 +00008078#endif
8079/* We use char because int might match the return type of a gcc2
8080 builtin and then its argument prototype would still apply. */
8081char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008082/* The GNU C library defines this for functions which it implements
8083 to always fail with ENOSYS. Some functions are actually named
8084 something starting with __ and the normal name is an alias. */
8085#if defined (__stub_shl_load) || defined (__stub___shl_load)
8086choke me
8087#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008088char (*f) () = shl_load;
8089#endif
8090#ifdef __cplusplus
8091}
John Criswell7a73b802003-06-30 21:59:07 +00008092#endif
8093
John Criswell0c38eaf2003-09-10 15:17:25 +00008094int
8095main ()
8096{
8097return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008098 ;
8099 return 0;
8100}
8101_ACEOF
8102rm -f conftest.$ac_objext conftest$ac_exeext
8103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008104 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008105 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008106 grep -v '^ *+' conftest.er1 >conftest.err
8107 rm -f conftest.er1
8108 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008111 { ac_try='test -z "$ac_c_werror_flag"
8112 || test ! -s conftest.err'
8113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8114 (eval $ac_try) 2>&5
8115 ac_status=$?
8116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8117 (exit $ac_status); }; } &&
8118 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8120 (eval $ac_try) 2>&5
8121 ac_status=$?
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); }; }; then
8124 ac_cv_func_shl_load=yes
8125else
8126 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008127sed 's/^/| /' conftest.$ac_ext >&5
8128
John Criswell7a73b802003-06-30 21:59:07 +00008129ac_cv_func_shl_load=no
8130fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008131rm -f conftest.err conftest.$ac_objext \
8132 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008133fi
8134echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8135echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8136if test $ac_cv_func_shl_load = yes; then
8137 lt_cv_dlopen="shl_load"
8138else
8139 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8140echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8141if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144 ac_check_lib_save_LIBS=$LIBS
8145LIBS="-ldld $LIBS"
8146cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008147/* confdefs.h. */
8148_ACEOF
8149cat confdefs.h >>conftest.$ac_ext
8150cat >>conftest.$ac_ext <<_ACEOF
8151/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008152
8153/* Override any gcc2 internal prototype to avoid an error. */
8154#ifdef __cplusplus
8155extern "C"
8156#endif
8157/* We use char because int might match the return type of a gcc2
8158 builtin and then its argument prototype would still apply. */
8159char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008160int
8161main ()
8162{
8163shl_load ();
8164 ;
8165 return 0;
8166}
8167_ACEOF
8168rm -f conftest.$ac_objext conftest$ac_exeext
8169if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008170 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008171 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008172 grep -v '^ *+' conftest.er1 >conftest.err
8173 rm -f conftest.er1
8174 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008177 { ac_try='test -z "$ac_c_werror_flag"
8178 || test ! -s conftest.err'
8179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 (eval $ac_try) 2>&5
8181 ac_status=$?
8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183 (exit $ac_status); }; } &&
8184 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8186 (eval $ac_try) 2>&5
8187 ac_status=$?
8188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8189 (exit $ac_status); }; }; then
8190 ac_cv_lib_dld_shl_load=yes
8191else
8192 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008193sed 's/^/| /' conftest.$ac_ext >&5
8194
John Criswell7a73b802003-06-30 21:59:07 +00008195ac_cv_lib_dld_shl_load=no
8196fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008197rm -f conftest.err conftest.$ac_objext \
8198 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008199LIBS=$ac_check_lib_save_LIBS
8200fi
8201echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8202echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8203if test $ac_cv_lib_dld_shl_load = yes; then
8204 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8205else
8206 echo "$as_me:$LINENO: checking for dlopen" >&5
8207echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8208if test "${ac_cv_func_dlopen+set}" = set; then
8209 echo $ECHO_N "(cached) $ECHO_C" >&6
8210else
8211 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008212/* confdefs.h. */
8213_ACEOF
8214cat confdefs.h >>conftest.$ac_ext
8215cat >>conftest.$ac_ext <<_ACEOF
8216/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008217/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8218 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8219#define dlopen innocuous_dlopen
8220
John Criswell7a73b802003-06-30 21:59:07 +00008221/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008222 which can conflict with char dlopen (); below.
8223 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8224 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +00008225
John Criswell0c38eaf2003-09-10 15:17:25 +00008226#ifdef __STDC__
8227# include <limits.h>
8228#else
8229# include <assert.h>
8230#endif
Reid Spencer2b51a082004-08-04 00:34:49 +00008231
8232#undef dlopen
8233
John Criswell7a73b802003-06-30 21:59:07 +00008234/* Override any gcc2 internal prototype to avoid an error. */
8235#ifdef __cplusplus
8236extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008237{
John Criswell7a73b802003-06-30 21:59:07 +00008238#endif
8239/* We use char because int might match the return type of a gcc2
8240 builtin and then its argument prototype would still apply. */
8241char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008242/* The GNU C library defines this for functions which it implements
8243 to always fail with ENOSYS. Some functions are actually named
8244 something starting with __ and the normal name is an alias. */
8245#if defined (__stub_dlopen) || defined (__stub___dlopen)
8246choke me
8247#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008248char (*f) () = dlopen;
8249#endif
8250#ifdef __cplusplus
8251}
John Criswell7a73b802003-06-30 21:59:07 +00008252#endif
8253
John Criswell0c38eaf2003-09-10 15:17:25 +00008254int
8255main ()
8256{
8257return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008258 ;
8259 return 0;
8260}
8261_ACEOF
8262rm -f conftest.$ac_objext conftest$ac_exeext
8263if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008264 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008265 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008266 grep -v '^ *+' conftest.er1 >conftest.err
8267 rm -f conftest.er1
8268 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008271 { ac_try='test -z "$ac_c_werror_flag"
8272 || test ! -s conftest.err'
8273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8274 (eval $ac_try) 2>&5
8275 ac_status=$?
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); }; } &&
8278 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8280 (eval $ac_try) 2>&5
8281 ac_status=$?
8282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8283 (exit $ac_status); }; }; then
8284 ac_cv_func_dlopen=yes
8285else
8286 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008287sed 's/^/| /' conftest.$ac_ext >&5
8288
John Criswell7a73b802003-06-30 21:59:07 +00008289ac_cv_func_dlopen=no
8290fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008291rm -f conftest.err conftest.$ac_objext \
8292 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008293fi
8294echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8295echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8296if test $ac_cv_func_dlopen = yes; then
8297 lt_cv_dlopen="dlopen"
8298else
8299 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8300echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8301if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303else
8304 ac_check_lib_save_LIBS=$LIBS
8305LIBS="-ldl $LIBS"
8306cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008307/* confdefs.h. */
8308_ACEOF
8309cat confdefs.h >>conftest.$ac_ext
8310cat >>conftest.$ac_ext <<_ACEOF
8311/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008312
8313/* Override any gcc2 internal prototype to avoid an error. */
8314#ifdef __cplusplus
8315extern "C"
8316#endif
8317/* We use char because int might match the return type of a gcc2
8318 builtin and then its argument prototype would still apply. */
8319char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008320int
8321main ()
8322{
8323dlopen ();
8324 ;
8325 return 0;
8326}
8327_ACEOF
8328rm -f conftest.$ac_objext conftest$ac_exeext
8329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008330 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008331 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008337 { ac_try='test -z "$ac_c_werror_flag"
8338 || test ! -s conftest.err'
8339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8340 (eval $ac_try) 2>&5
8341 ac_status=$?
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); }; } &&
8344 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8346 (eval $ac_try) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); }; }; then
8350 ac_cv_lib_dl_dlopen=yes
8351else
8352 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008353sed 's/^/| /' conftest.$ac_ext >&5
8354
John Criswell7a73b802003-06-30 21:59:07 +00008355ac_cv_lib_dl_dlopen=no
8356fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008357rm -f conftest.err conftest.$ac_objext \
8358 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008359LIBS=$ac_check_lib_save_LIBS
8360fi
8361echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8362echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8363if test $ac_cv_lib_dl_dlopen = yes; then
8364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8365else
8366 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8367echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8368if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370else
8371 ac_check_lib_save_LIBS=$LIBS
8372LIBS="-lsvld $LIBS"
8373cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008374/* confdefs.h. */
8375_ACEOF
8376cat confdefs.h >>conftest.$ac_ext
8377cat >>conftest.$ac_ext <<_ACEOF
8378/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008379
8380/* Override any gcc2 internal prototype to avoid an error. */
8381#ifdef __cplusplus
8382extern "C"
8383#endif
8384/* We use char because int might match the return type of a gcc2
8385 builtin and then its argument prototype would still apply. */
8386char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008387int
8388main ()
8389{
8390dlopen ();
8391 ;
8392 return 0;
8393}
8394_ACEOF
8395rm -f conftest.$ac_objext conftest$ac_exeext
8396if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008397 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008398 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008404 { ac_try='test -z "$ac_c_werror_flag"
8405 || test ! -s conftest.err'
8406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407 (eval $ac_try) 2>&5
8408 ac_status=$?
8409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410 (exit $ac_status); }; } &&
8411 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8413 (eval $ac_try) 2>&5
8414 ac_status=$?
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); }; }; then
8417 ac_cv_lib_svld_dlopen=yes
8418else
8419 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008420sed 's/^/| /' conftest.$ac_ext >&5
8421
John Criswell7a73b802003-06-30 21:59:07 +00008422ac_cv_lib_svld_dlopen=no
8423fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008424rm -f conftest.err conftest.$ac_objext \
8425 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008426LIBS=$ac_check_lib_save_LIBS
8427fi
8428echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8429echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8430if test $ac_cv_lib_svld_dlopen = yes; then
8431 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8432else
8433 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8434echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8435if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8437else
8438 ac_check_lib_save_LIBS=$LIBS
8439LIBS="-ldld $LIBS"
8440cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008441/* confdefs.h. */
8442_ACEOF
8443cat confdefs.h >>conftest.$ac_ext
8444cat >>conftest.$ac_ext <<_ACEOF
8445/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008446
8447/* Override any gcc2 internal prototype to avoid an error. */
8448#ifdef __cplusplus
8449extern "C"
8450#endif
8451/* We use char because int might match the return type of a gcc2
8452 builtin and then its argument prototype would still apply. */
8453char dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008454int
8455main ()
8456{
8457dld_link ();
8458 ;
8459 return 0;
8460}
8461_ACEOF
8462rm -f conftest.$ac_objext conftest$ac_exeext
8463if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00008464 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008465 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00008466 grep -v '^ *+' conftest.er1 >conftest.err
8467 rm -f conftest.er1
8468 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8470 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00008471 { ac_try='test -z "$ac_c_werror_flag"
8472 || test ! -s conftest.err'
8473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8474 (eval $ac_try) 2>&5
8475 ac_status=$?
8476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477 (exit $ac_status); }; } &&
8478 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8480 (eval $ac_try) 2>&5
8481 ac_status=$?
8482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483 (exit $ac_status); }; }; then
8484 ac_cv_lib_dld_dld_link=yes
8485else
8486 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008487sed 's/^/| /' conftest.$ac_ext >&5
8488
John Criswell7a73b802003-06-30 21:59:07 +00008489ac_cv_lib_dld_dld_link=no
8490fi
Reid Spencer2b51a082004-08-04 00:34:49 +00008491rm -f conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008493LIBS=$ac_check_lib_save_LIBS
8494fi
8495echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8496echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8497if test $ac_cv_lib_dld_dld_link = yes; then
8498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8499fi
8500
8501
8502fi
8503
8504
8505fi
8506
8507
8508fi
8509
8510
8511fi
8512
8513
8514fi
8515
8516 ;;
8517 esac
8518
8519 if test "x$lt_cv_dlopen" != xno; then
8520 enable_dlopen=yes
8521 else
8522 enable_dlopen=no
8523 fi
8524
8525 case $lt_cv_dlopen in
8526 dlopen)
8527 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008529
8530 save_LDFLAGS="$LDFLAGS"
8531 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8532
8533 save_LIBS="$LIBS"
8534 LIBS="$lt_cv_dlopen_libs $LIBS"
8535
8536 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8537echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8538if test "${lt_cv_dlopen_self+set}" = set; then
8539 echo $ECHO_N "(cached) $ECHO_C" >&6
8540else
8541 if test "$cross_compiling" = yes; then :
8542 lt_cv_dlopen_self=cross
8543else
John Criswell47fdd832003-07-14 16:52:07 +00008544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008545 lt_status=$lt_dlunknown
8546 cat > conftest.$ac_ext <<EOF
Reid Spencer5f285392004-08-24 16:32:21 +00008547#line 8547 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008548#include "confdefs.h"
8549
8550#if HAVE_DLFCN_H
8551#include <dlfcn.h>
8552#endif
8553
8554#include <stdio.h>
8555
8556#ifdef RTLD_GLOBAL
8557# define LT_DLGLOBAL RTLD_GLOBAL
8558#else
8559# ifdef DL_GLOBAL
8560# define LT_DLGLOBAL DL_GLOBAL
8561# else
8562# define LT_DLGLOBAL 0
8563# endif
8564#endif
8565
8566/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8567 find out it does not work in some platform. */
8568#ifndef LT_DLLAZY_OR_NOW
8569# ifdef RTLD_LAZY
8570# define LT_DLLAZY_OR_NOW RTLD_LAZY
8571# else
8572# ifdef DL_LAZY
8573# define LT_DLLAZY_OR_NOW DL_LAZY
8574# else
8575# ifdef RTLD_NOW
8576# define LT_DLLAZY_OR_NOW RTLD_NOW
8577# else
8578# ifdef DL_NOW
8579# define LT_DLLAZY_OR_NOW DL_NOW
8580# else
8581# define LT_DLLAZY_OR_NOW 0
8582# endif
8583# endif
8584# endif
8585# endif
8586#endif
8587
8588#ifdef __cplusplus
8589extern "C" void exit (int);
8590#endif
8591
8592void fnord() { int i=42;}
8593int main ()
8594{
8595 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8596 int status = $lt_dlunknown;
8597
8598 if (self)
8599 {
8600 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8601 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8602 /* dlclose (self); */
8603 }
8604
8605 exit (status);
8606}
8607EOF
8608 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8609 (eval $ac_link) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8613 (./conftest; exit; ) 2>/dev/null
8614 lt_status=$?
8615 case x$lt_status in
8616 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8617 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8618 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8619 esac
8620 else :
8621 # compilation failed
8622 lt_cv_dlopen_self=no
8623 fi
8624fi
8625rm -fr conftest*
8626
8627
8628fi
8629echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8630echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8631
8632 if test "x$lt_cv_dlopen_self" = xyes; then
8633 LDFLAGS="$LDFLAGS $link_static_flag"
8634 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8635echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8636if test "${lt_cv_dlopen_self_static+set}" = set; then
8637 echo $ECHO_N "(cached) $ECHO_C" >&6
8638else
8639 if test "$cross_compiling" = yes; then :
8640 lt_cv_dlopen_self_static=cross
8641else
John Criswell47fdd832003-07-14 16:52:07 +00008642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008643 lt_status=$lt_dlunknown
8644 cat > conftest.$ac_ext <<EOF
Reid Spencer5f285392004-08-24 16:32:21 +00008645#line 8645 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008646#include "confdefs.h"
8647
8648#if HAVE_DLFCN_H
8649#include <dlfcn.h>
8650#endif
8651
8652#include <stdio.h>
8653
8654#ifdef RTLD_GLOBAL
8655# define LT_DLGLOBAL RTLD_GLOBAL
8656#else
8657# ifdef DL_GLOBAL
8658# define LT_DLGLOBAL DL_GLOBAL
8659# else
8660# define LT_DLGLOBAL 0
8661# endif
8662#endif
8663
8664/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8665 find out it does not work in some platform. */
8666#ifndef LT_DLLAZY_OR_NOW
8667# ifdef RTLD_LAZY
8668# define LT_DLLAZY_OR_NOW RTLD_LAZY
8669# else
8670# ifdef DL_LAZY
8671# define LT_DLLAZY_OR_NOW DL_LAZY
8672# else
8673# ifdef RTLD_NOW
8674# define LT_DLLAZY_OR_NOW RTLD_NOW
8675# else
8676# ifdef DL_NOW
8677# define LT_DLLAZY_OR_NOW DL_NOW
8678# else
8679# define LT_DLLAZY_OR_NOW 0
8680# endif
8681# endif
8682# endif
8683# endif
8684#endif
8685
8686#ifdef __cplusplus
8687extern "C" void exit (int);
8688#endif
8689
8690void fnord() { int i=42;}
8691int main ()
8692{
8693 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8694 int status = $lt_dlunknown;
8695
8696 if (self)
8697 {
8698 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8699 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8700 /* dlclose (self); */
8701 }
8702
8703 exit (status);
8704}
8705EOF
8706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8707 (eval $ac_link) 2>&5
8708 ac_status=$?
8709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8711 (./conftest; exit; ) 2>/dev/null
8712 lt_status=$?
8713 case x$lt_status in
8714 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8715 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8716 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8717 esac
8718 else :
8719 # compilation failed
8720 lt_cv_dlopen_self_static=no
8721 fi
8722fi
8723rm -fr conftest*
8724
8725
8726fi
8727echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8728echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8729 fi
8730
8731 CPPFLAGS="$save_CPPFLAGS"
8732 LDFLAGS="$save_LDFLAGS"
8733 LIBS="$save_LIBS"
8734 ;;
8735 esac
8736
8737 case $lt_cv_dlopen_self in
8738 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8739 *) enable_dlopen_self=unknown ;;
8740 esac
8741
8742 case $lt_cv_dlopen_self_static in
8743 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8744 *) enable_dlopen_self_static=unknown ;;
8745 esac
8746fi
8747
8748
John Criswell47fdd832003-07-14 16:52:07 +00008749# Report which librarie types wil actually be built
8750echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8751echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8752echo "$as_me:$LINENO: result: $can_build_shared" >&5
8753echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008754
John Criswell47fdd832003-07-14 16:52:07 +00008755echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8756echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8757test "$can_build_shared" = "no" && enable_shared=no
8758
8759# On AIX, shared libraries and static libraries use the same namespace, and
8760# are all built from PIC.
8761case "$host_os" in
8762aix3*)
8763 test "$enable_shared" = yes && enable_static=no
8764 if test -n "$RANLIB"; then
8765 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8766 postinstall_cmds='$RANLIB $lib'
8767 fi
8768 ;;
8769
8770aix4*)
8771 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8772 test "$enable_shared" = yes && enable_static=no
8773 fi
8774 ;;
8775 darwin* | rhapsody*)
8776 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8777 archive_cmds_need_lc=no
8778 case "$host_os" in
8779 rhapsody* | darwin1.[012])
8780 allow_undefined_flag='-undefined suppress'
8781 ;;
8782 *) # Darwin 1.3 on
8783 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8784 ;;
8785 esac
8786 # FIXME: Relying on posixy $() will cause problems for
8787 # cross-compilation, but unfortunately the echo tests do not
8788 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8789 # `"' quotes if we put them in here... so don't!
8790 output_verbose_link_cmd='echo'
8791 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8792 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8793 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8794 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8795 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8796 hardcode_direct=no
8797 hardcode_automatic=yes
8798 hardcode_shlibpath_var=unsupported
8799 whole_archive_flag_spec='-all_load $convenience'
8800 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008801 fi
John Criswell7a73b802003-06-30 21:59:07 +00008802 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008803esac
8804echo "$as_me:$LINENO: result: $enable_shared" >&5
8805echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008806
John Criswell47fdd832003-07-14 16:52:07 +00008807echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8808echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8809# Make sure either enable_shared or enable_static is yes.
8810test "$enable_shared" = yes || enable_static=yes
8811echo "$as_me:$LINENO: result: $enable_static" >&5
8812echo "${ECHO_T}$enable_static" >&6
8813
8814# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008815# libtool distribution, otherwise you forgot to ship ltmain.sh
8816# with your package, and you will get complaints that there are
8817# no rules to generate ltmain.sh.
8818if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008819 # See if we are running on zsh, and set the options which allow our commands through
8820 # without removal of \ escapes.
8821 if test -n "${ZSH_VERSION+set}" ; then
8822 setopt NO_GLOB_SUBST
8823 fi
John Criswell7a73b802003-06-30 21:59:07 +00008824 # Now quote all the things that may contain metacharacters while being
8825 # careful not to overquote the AC_SUBSTed values. We take copies of the
8826 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008827 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8828 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8829 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8830 deplibs_check_method reload_flag reload_cmds need_locks \
8831 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8832 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008833 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008834 old_postinstall_cmds old_postuninstall_cmds \
8835 compiler \
8836 CC \
8837 LD \
8838 lt_prog_compiler_wl \
8839 lt_prog_compiler_pic \
8840 lt_prog_compiler_static \
8841 lt_prog_compiler_no_builtin_flag \
8842 export_dynamic_flag_spec \
8843 thread_safe_flag_spec \
8844 whole_archive_flag_spec \
8845 enable_shared_with_static_runtimes \
8846 old_archive_cmds \
8847 old_archive_from_new_cmds \
8848 predep_objects \
8849 postdep_objects \
8850 predeps \
8851 postdeps \
8852 compiler_lib_search_path \
8853 archive_cmds \
8854 archive_expsym_cmds \
8855 postinstall_cmds \
8856 postuninstall_cmds \
8857 old_archive_from_expsyms_cmds \
8858 allow_undefined_flag \
8859 no_undefined_flag \
8860 export_symbols_cmds \
8861 hardcode_libdir_flag_spec \
8862 hardcode_libdir_flag_spec_ld \
8863 hardcode_libdir_separator \
8864 hardcode_automatic \
8865 module_cmds \
8866 module_expsym_cmds \
8867 lt_cv_prog_compiler_c_o \
8868 exclude_expsyms \
8869 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008870
8871 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008872 old_archive_cmds | \
8873 old_archive_from_new_cmds | \
8874 archive_cmds | \
8875 archive_expsym_cmds | \
8876 module_cmds | \
8877 module_expsym_cmds | \
8878 old_archive_from_expsyms_cmds | \
8879 export_symbols_cmds | \
8880 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008881 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008882 old_postinstall_cmds | old_postuninstall_cmds | \
8883 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008884 # Double-quote double-evaled strings.
8885 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8886 ;;
8887 *)
8888 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8889 ;;
8890 esac
8891 done
8892
John Criswell47fdd832003-07-14 16:52:07 +00008893 case $lt_echo in
8894 *'\$0 --fallback-echo"')
8895 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8896 ;;
8897 esac
8898
8899cfgfile="${ofile}T"
8900 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8901 $rm -f "$cfgfile"
8902 { echo "$as_me:$LINENO: creating $ofile" >&5
8903echo "$as_me: creating $ofile" >&6;}
8904
8905 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008906#! $SHELL
8907
John Criswell47fdd832003-07-14 16:52:07 +00008908# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008909# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8910# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8911#
John Criswell47fdd832003-07-14 16:52:07 +00008912# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8913# Free Software Foundation, Inc.
8914#
8915# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008916# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8917#
8918# This program is free software; you can redistribute it and/or modify
8919# it under the terms of the GNU General Public License as published by
8920# the Free Software Foundation; either version 2 of the License, or
8921# (at your option) any later version.
8922#
8923# This program is distributed in the hope that it will be useful, but
8924# WITHOUT ANY WARRANTY; without even the implied warranty of
8925# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8926# General Public License for more details.
8927#
8928# You should have received a copy of the GNU General Public License
8929# along with this program; if not, write to the Free Software
8930# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8931#
8932# As a special exception to the GNU General Public License, if you
8933# distribute this file as part of a program that contains a
8934# configuration script generated by Autoconf, you may include it under
8935# the same distribution terms that you use for the rest of that program.
8936
John Criswell47fdd832003-07-14 16:52:07 +00008937# A sed program that does not truncate output.
8938SED=$lt_SED
8939
John Criswell7a73b802003-06-30 21:59:07 +00008940# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008941Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008942
8943# The HP-UX ksh and POSIX shell print the target directory to stdout
8944# if CDPATH is set.
8945if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8946
John Criswell47fdd832003-07-14 16:52:07 +00008947# The names of the tagged configurations supported by this script.
8948available_tags=
8949
John Criswell7a73b802003-06-30 21:59:07 +00008950# ### BEGIN LIBTOOL CONFIG
8951
8952# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8953
8954# Shell to use when invoking shell scripts.
8955SHELL=$lt_SHELL
8956
8957# Whether or not to build shared libraries.
8958build_libtool_libs=$enable_shared
8959
8960# Whether or not to build static libraries.
8961build_old_libs=$enable_static
8962
8963# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008964build_libtool_need_lc=$archive_cmds_need_lc
8965
8966# Whether or not to disallow shared libs when runtime libs are static
8967allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008968
8969# Whether or not to optimize for fast installation.
8970fast_install=$enable_fast_install
8971
8972# The host system.
8973host_alias=$host_alias
8974host=$host
8975
8976# An echo program that does not interpret backslashes.
8977echo=$lt_echo
8978
8979# The archiver.
8980AR=$lt_AR
8981AR_FLAGS=$lt_AR_FLAGS
8982
John Criswell47fdd832003-07-14 16:52:07 +00008983# A C compiler.
8984LTCC=$lt_LTCC
8985
8986# A language-specific compiler.
8987CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008988
8989# Is the compiler the GNU C compiler?
8990with_gcc=$GCC
8991
John Criswell47fdd832003-07-14 16:52:07 +00008992# An ERE matcher.
8993EGREP=$lt_EGREP
8994
John Criswell7a73b802003-06-30 21:59:07 +00008995# The linker used to build libraries.
8996LD=$lt_LD
8997
8998# Whether we need hard or soft links.
8999LN_S=$lt_LN_S
9000
9001# A BSD-compatible nm program.
9002NM=$lt_NM
9003
9004# A symbol stripping program
9005STRIP=$STRIP
9006
9007# Used to examine libraries when file_magic_cmd begins "file"
9008MAGIC_CMD=$MAGIC_CMD
9009
9010# Used on cygwin: DLL creation program.
9011DLLTOOL="$DLLTOOL"
9012
9013# Used on cygwin: object dumper.
9014OBJDUMP="$OBJDUMP"
9015
9016# Used on cygwin: assembler.
9017AS="$AS"
9018
9019# The name of the directory that contains temporary libtool files.
9020objdir=$objdir
9021
9022# How to create reloadable object files.
9023reload_flag=$lt_reload_flag
9024reload_cmds=$lt_reload_cmds
9025
9026# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00009027wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00009028
9029# Object file suffix (normally "o").
9030objext="$ac_objext"
9031
9032# Old archive suffix (normally "a").
9033libext="$libext"
9034
John Criswell47fdd832003-07-14 16:52:07 +00009035# Shared library suffix (normally ".so").
9036shrext='$shrext'
9037
John Criswell7a73b802003-06-30 21:59:07 +00009038# Executable file suffix (normally "").
9039exeext="$exeext"
9040
9041# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00009042pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00009043pic_mode=$pic_mode
9044
John Criswell47fdd832003-07-14 16:52:07 +00009045# What is the maximum length of a command?
9046max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00009047
John Criswell47fdd832003-07-14 16:52:07 +00009048# Does compiler simultaneously support -c and -o options?
9049compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00009050
9051# Must we lock files when doing compilation ?
9052need_locks=$lt_need_locks
9053
9054# Do we need the lib prefix for modules?
9055need_lib_prefix=$need_lib_prefix
9056
9057# Do we need a version for libraries?
9058need_version=$need_version
9059
9060# Whether dlopen is supported.
9061dlopen_support=$enable_dlopen
9062
9063# Whether dlopen of programs is supported.
9064dlopen_self=$enable_dlopen_self
9065
9066# Whether dlopen of statically linked programs is supported.
9067dlopen_self_static=$enable_dlopen_self_static
9068
9069# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009070link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009071
9072# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009073no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009074
9075# Compiler flag to allow reflexive dlopens.
9076export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9077
9078# Compiler flag to generate shared objects directly from archives.
9079whole_archive_flag_spec=$lt_whole_archive_flag_spec
9080
9081# Compiler flag to generate thread-safe objects.
9082thread_safe_flag_spec=$lt_thread_safe_flag_spec
9083
9084# Library versioning type.
9085version_type=$version_type
9086
9087# Format of library name prefix.
9088libname_spec=$lt_libname_spec
9089
9090# List of archive names. First name is the real one, the rest are links.
9091# The last name is the one that the linker finds with -lNAME.
9092library_names_spec=$lt_library_names_spec
9093
9094# The coded name of the library, if different from the real name.
9095soname_spec=$lt_soname_spec
9096
9097# Commands used to build and install an old-style archive.
9098RANLIB=$lt_RANLIB
9099old_archive_cmds=$lt_old_archive_cmds
9100old_postinstall_cmds=$lt_old_postinstall_cmds
9101old_postuninstall_cmds=$lt_old_postuninstall_cmds
9102
9103# Create an old-style archive from a shared archive.
9104old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9105
9106# Create a temporary old-style archive to link instead of a shared archive.
9107old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9108
9109# Commands used to build and install a shared archive.
9110archive_cmds=$lt_archive_cmds
9111archive_expsym_cmds=$lt_archive_expsym_cmds
9112postinstall_cmds=$lt_postinstall_cmds
9113postuninstall_cmds=$lt_postuninstall_cmds
9114
John Criswell47fdd832003-07-14 16:52:07 +00009115# Commands used to build a loadable module (assumed same as above if empty)
9116module_cmds=$lt_module_cmds
9117module_expsym_cmds=$lt_module_expsym_cmds
9118
John Criswell7a73b802003-06-30 21:59:07 +00009119# Commands to strip libraries.
9120old_striplib=$lt_old_striplib
9121striplib=$lt_striplib
9122
John Criswell47fdd832003-07-14 16:52:07 +00009123# Dependencies to place before the objects being linked to create a
9124# shared library.
9125predep_objects=$lt_predep_objects
9126
9127# Dependencies to place after the objects being linked to create a
9128# shared library.
9129postdep_objects=$lt_postdep_objects
9130
9131# Dependencies to place before the objects being linked to create a
9132# shared library.
9133predeps=$lt_predeps
9134
9135# Dependencies to place after the objects being linked to create a
9136# shared library.
9137postdeps=$lt_postdeps
9138
9139# The library search path used internally by the compiler when linking
9140# a shared library.
9141compiler_lib_search_path=$lt_compiler_lib_search_path
9142
John Criswell7a73b802003-06-30 21:59:07 +00009143# Method to check whether dependent libraries are shared objects.
9144deplibs_check_method=$lt_deplibs_check_method
9145
9146# Command to use when deplibs_check_method == file_magic.
9147file_magic_cmd=$lt_file_magic_cmd
9148
9149# Flag that allows shared libraries with undefined symbols to be built.
9150allow_undefined_flag=$lt_allow_undefined_flag
9151
9152# Flag that forces no undefined symbols.
9153no_undefined_flag=$lt_no_undefined_flag
9154
9155# Commands used to finish a libtool library installation in a directory.
9156finish_cmds=$lt_finish_cmds
9157
9158# Same as above, but a single script fragment to be evaled but not shown.
9159finish_eval=$lt_finish_eval
9160
9161# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009162global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009163
9164# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009165global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009166
9167# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009168global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009169
9170# This is the shared library runtime path variable.
9171runpath_var=$runpath_var
9172
9173# This is the shared library path variable.
9174shlibpath_var=$shlibpath_var
9175
9176# Is shlibpath searched before the hard-coded library search path?
9177shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9178
9179# How to hardcode a shared library path into an executable.
9180hardcode_action=$hardcode_action
9181
9182# Whether we should hardcode library paths into libraries.
9183hardcode_into_libs=$hardcode_into_libs
9184
9185# Flag to hardcode \$libdir into a binary during linking.
9186# This must work even if \$libdir does not exist.
9187hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9188
John Criswell47fdd832003-07-14 16:52:07 +00009189# If ld is used when linking, flag to hardcode \$libdir into
9190# a binary during linking. This must work even if \$libdir does
9191# not exist.
9192hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9193
John Criswell7a73b802003-06-30 21:59:07 +00009194# Whether we need a single -rpath flag with a separated argument.
9195hardcode_libdir_separator=$lt_hardcode_libdir_separator
9196
John Criswell47fdd832003-07-14 16:52:07 +00009197# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009198# resulting binary.
9199hardcode_direct=$hardcode_direct
9200
9201# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9202# resulting binary.
9203hardcode_minus_L=$hardcode_minus_L
9204
9205# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9206# the resulting binary.
9207hardcode_shlibpath_var=$hardcode_shlibpath_var
9208
John Criswell47fdd832003-07-14 16:52:07 +00009209# Set to yes if building a shared library automatically hardcodes DIR into the library
9210# and all subsequent libraries and executables linked against it.
9211hardcode_automatic=$hardcode_automatic
9212
John Criswell7a73b802003-06-30 21:59:07 +00009213# Variables whose values should be saved in libtool wrapper scripts and
9214# restored at relink time.
9215variables_saved_for_relink="$variables_saved_for_relink"
9216
9217# Whether libtool must link a program against all its dependency libraries.
9218link_all_deplibs=$link_all_deplibs
9219
9220# Compile-time system search path for libraries
9221sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9222
9223# Run-time system search path for libraries
9224sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9225
9226# Fix the shell variable \$srcfile for the compiler.
9227fix_srcfile_path="$fix_srcfile_path"
9228
9229# Set to yes if exported symbols are required.
9230always_export_symbols=$always_export_symbols
9231
9232# The commands to list exported symbols.
9233export_symbols_cmds=$lt_export_symbols_cmds
9234
9235# The commands to extract the exported symbol list from a shared archive.
9236extract_expsyms_cmds=$lt_extract_expsyms_cmds
9237
9238# Symbols that should not be listed in the preloaded symbols.
9239exclude_expsyms=$lt_exclude_expsyms
9240
9241# Symbols that must always be exported.
9242include_expsyms=$lt_include_expsyms
9243
9244# ### END LIBTOOL CONFIG
9245
9246__EOF__
9247
John Criswell47fdd832003-07-14 16:52:07 +00009248
John Criswell7a73b802003-06-30 21:59:07 +00009249 case $host_os in
9250 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009251 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009252
9253# AIX sometimes has problems with the GCC collect2 program. For some
9254# reason, if we set the COLLECT_NAMES environment variable, the problems
9255# vanish in a puff of smoke.
9256if test "X${COLLECT_NAMES+set}" != Xset; then
9257 COLLECT_NAMES=
9258 export COLLECT_NAMES
9259fi
9260EOF
9261 ;;
9262 esac
9263
John Criswell7a73b802003-06-30 21:59:07 +00009264 # We use sed instead of cat because bash on DJGPP gets confused if
9265 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9266 # text mode, it properly converts lines to CR/LF. This bash problem
9267 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009268 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009269
John Criswell47fdd832003-07-14 16:52:07 +00009270 mv -f "$cfgfile" "$ofile" || \
9271 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009272 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009273
9274else
9275 # If there is no Makefile yet, we rely on a make rule to execute
9276 # `config.status --recheck' to rerun these tests and create the
9277 # libtool script then.
9278 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009279fi
John Criswell7a73b802003-06-30 21:59:07 +00009280
9281
John Criswell47fdd832003-07-14 16:52:07 +00009282ac_ext=c
9283ac_cpp='$CPP $CPPFLAGS'
9284ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9285ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9286ac_compiler_gnu=$ac_cv_c_compiler_gnu
9287
9288CC="$lt_save_CC"
9289
9290
9291# Check whether --with-tags or --without-tags was given.
9292if test "${with_tags+set}" = set; then
9293 withval="$with_tags"
9294 tagnames="$withval"
9295fi;
9296
9297if test -f "$ltmain" && test -n "$tagnames"; then
9298 if test ! -f "${ofile}"; then
9299 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9300echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9301 fi
9302
9303 if test -z "$LTCC"; then
9304 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9305 if test -z "$LTCC"; then
9306 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9307echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9308 else
9309 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9310echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9311 fi
9312 fi
9313
9314 # Extract list of available tagged configurations in $ofile.
9315 # Note that this assumes the entire list is on one line.
9316 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9317
9318 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9319 for tagname in $tagnames; do
9320 IFS="$lt_save_ifs"
9321 # Check whether tagname contains only valid characters
9322 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9323 "") ;;
9324 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9325echo "$as_me: error: invalid tag name: $tagname" >&2;}
9326 { (exit 1); exit 1; }; }
9327 ;;
9328 esac
9329
9330 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9331 then
9332 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9333echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9334 { (exit 1); exit 1; }; }
9335 fi
9336
9337 # Update the list of available tags.
9338 if test -n "$tagname"; then
9339 echo appending configuration tag \"$tagname\" to $ofile
9340
9341 case $tagname in
9342 CXX)
9343 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9344 ac_ext=cc
9345ac_cpp='$CXXCPP $CPPFLAGS'
9346ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9347ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9348ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9349
9350
9351
9352
9353archive_cmds_need_lc_CXX=no
9354allow_undefined_flag_CXX=
9355always_export_symbols_CXX=no
9356archive_expsym_cmds_CXX=
9357export_dynamic_flag_spec_CXX=
9358hardcode_direct_CXX=no
9359hardcode_libdir_flag_spec_CXX=
9360hardcode_libdir_flag_spec_ld_CXX=
9361hardcode_libdir_separator_CXX=
9362hardcode_minus_L_CXX=no
9363hardcode_automatic_CXX=no
9364module_cmds_CXX=
9365module_expsym_cmds_CXX=
9366link_all_deplibs_CXX=unknown
9367old_archive_cmds_CXX=$old_archive_cmds
9368no_undefined_flag_CXX=
9369whole_archive_flag_spec_CXX=
9370enable_shared_with_static_runtimes_CXX=no
9371
9372# Dependencies to place before and after the object being linked:
9373predep_objects_CXX=
9374postdep_objects_CXX=
9375predeps_CXX=
9376postdeps_CXX=
9377compiler_lib_search_path_CXX=
9378
9379# Source file extension for C++ test sources.
9380ac_ext=cc
9381
9382# Object file extension for compiled C++ test sources.
9383objext=o
9384objext_CXX=$objext
9385
9386# Code to be used in simple compile tests
9387lt_simple_compile_test_code="int some_variable = 0;\n"
9388
9389# Code to be used in simple link tests
9390lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9391
9392# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9393
9394# If no C compiler was specified, use CC.
9395LTCC=${LTCC-"$CC"}
9396
9397# Allow CC to be a program name with arguments.
9398compiler=$CC
9399
9400
9401# Allow CC to be a program name with arguments.
9402lt_save_CC=$CC
9403lt_save_LD=$LD
9404lt_save_GCC=$GCC
9405GCC=$GXX
9406lt_save_with_gnu_ld=$with_gnu_ld
9407lt_save_path_LD=$lt_cv_path_LD
9408if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9409 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9410else
9411 unset lt_cv_prog_gnu_ld
9412fi
9413if test -n "${lt_cv_path_LDCXX+set}"; then
9414 lt_cv_path_LD=$lt_cv_path_LDCXX
9415else
9416 unset lt_cv_path_LD
9417fi
9418test -z "${LDCXX+set}" || LD=$LDCXX
9419CC=${CXX-"c++"}
9420compiler=$CC
9421compiler_CXX=$CC
9422cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9423
9424# We don't want -fno-exception wen compiling C++ code, so set the
9425# no_builtin_flag separately
9426if test "$GXX" = yes; then
9427 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9428else
9429 lt_prog_compiler_no_builtin_flag_CXX=
9430fi
9431
9432if test "$GXX" = yes; then
9433 # Set up default GNU C++ configuration
9434
9435
9436# Check whether --with-gnu-ld or --without-gnu-ld was given.
9437if test "${with_gnu_ld+set}" = set; then
9438 withval="$with_gnu_ld"
9439 test "$withval" = no || with_gnu_ld=yes
9440else
9441 with_gnu_ld=no
9442fi;
9443ac_prog=ld
9444if test "$GCC" = yes; then
9445 # Check if gcc -print-prog-name=ld gives a path.
9446 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9447echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9448 case $host in
9449 *-*-mingw*)
9450 # gcc leaves a trailing carriage return which upsets mingw
9451 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9452 *)
9453 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9454 esac
9455 case $ac_prog in
9456 # Accept absolute paths.
9457 [\\/]* | ?:[\\/]*)
9458 re_direlt='/[^/][^/]*/\.\./'
9459 # Canonicalize the path of ld
9460 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9461 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9462 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9463 done
9464 test -z "$LD" && LD="$ac_prog"
9465 ;;
9466 "")
9467 # If it fails, then pretend we aren't using GCC.
9468 ac_prog=ld
9469 ;;
9470 *)
9471 # If it is relative, then search for the first ld in PATH.
9472 with_gnu_ld=unknown
9473 ;;
9474 esac
9475elif test "$with_gnu_ld" = yes; then
9476 echo "$as_me:$LINENO: checking for GNU ld" >&5
9477echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9478else
9479 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9480echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9481fi
9482if test "${lt_cv_path_LD+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484else
9485 if test -z "$LD"; then
9486 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9487 for ac_dir in $PATH; do
9488 IFS="$lt_save_ifs"
9489 test -z "$ac_dir" && ac_dir=.
9490 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9491 lt_cv_path_LD="$ac_dir/$ac_prog"
9492 # Check to see if the program is GNU ld. I'd rather use --version,
9493 # but apparently some GNU ld's only accept -v.
9494 # Break only if it was the GNU/non-GNU ld that we prefer.
9495 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9496 *GNU* | *'with BFD'*)
9497 test "$with_gnu_ld" != no && break
9498 ;;
9499 *)
9500 test "$with_gnu_ld" != yes && break
9501 ;;
9502 esac
9503 fi
9504 done
9505 IFS="$lt_save_ifs"
9506else
9507 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9508fi
9509fi
9510
9511LD="$lt_cv_path_LD"
9512if test -n "$LD"; then
9513 echo "$as_me:$LINENO: result: $LD" >&5
9514echo "${ECHO_T}$LD" >&6
9515else
9516 echo "$as_me:$LINENO: result: no" >&5
9517echo "${ECHO_T}no" >&6
9518fi
9519test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9520echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9521 { (exit 1); exit 1; }; }
9522echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9523echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9524if test "${lt_cv_prog_gnu_ld+set}" = set; then
9525 echo $ECHO_N "(cached) $ECHO_C" >&6
9526else
9527 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9528case `"$LD" -v 2>&1 </dev/null` in
9529*GNU* | *'with BFD'*)
9530 lt_cv_prog_gnu_ld=yes
9531 ;;
9532*)
9533 lt_cv_prog_gnu_ld=no
9534 ;;
9535esac
9536fi
9537echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9538echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9539with_gnu_ld=$lt_cv_prog_gnu_ld
9540
9541
9542
9543 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9544 # archiving commands below assume that GNU ld is being used.
9545 if test "$with_gnu_ld" = yes; then
9546 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9547 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'
9548
9549 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9550 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9551
9552 # If archive_cmds runs LD, not CC, wlarc should be empty
9553 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9554 # investigate it a little bit more. (MM)
9555 wlarc='${wl}'
9556
9557 # ancient GNU ld didn't support --whole-archive et. al.
9558 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9559 grep 'no-whole-archive' > /dev/null; then
9560 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9561 else
9562 whole_archive_flag_spec_CXX=
9563 fi
9564 else
9565 with_gnu_ld=no
9566 wlarc=
9567
9568 # A generic and very simple default shared library creation
9569 # command for GNU C++ for the case where it uses the native
9570 # linker, instead of GNU ld. If possible, this setting should
9571 # overridden to take advantage of the native linker features on
9572 # the platform it is being used on.
9573 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9574 fi
9575
9576 # Commands to make compiler produce verbose output that lists
9577 # what "hidden" libraries, object files and flags are used when
9578 # linking a shared library.
9579 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9580
9581else
9582 GXX=no
9583 with_gnu_ld=no
9584 wlarc=
9585fi
9586
9587# PORTME: fill in a description of your system's C++ link characteristics
9588echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9589echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9590ld_shlibs_CXX=yes
9591case $host_os in
9592 aix3*)
9593 # FIXME: insert proper C++ library support
9594 ld_shlibs_CXX=no
9595 ;;
9596 aix4* | aix5*)
9597 if test "$host_cpu" = ia64; then
9598 # On IA64, the linker does run time linking by default, so we don't
9599 # have to do anything special.
9600 aix_use_runtimelinking=no
9601 exp_sym_flag='-Bexport'
9602 no_entry_flag=""
9603 else
9604 aix_use_runtimelinking=no
9605
9606 # Test if we are trying to use run time linking or normal
9607 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9608 # need to do runtime linking.
9609 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9610 for ld_flag in $LDFLAGS; do
9611 case $ld_flag in
9612 *-brtl*)
9613 aix_use_runtimelinking=yes
9614 break
9615 ;;
9616 esac
9617 done
9618 esac
9619
9620 exp_sym_flag='-bexport'
9621 no_entry_flag='-bnoentry'
9622 fi
9623
9624 # When large executables or shared objects are built, AIX ld can
9625 # have problems creating the table of contents. If linking a library
9626 # or program results in "error TOC overflow" add -mminimal-toc to
9627 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9628 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9629
9630 archive_cmds_CXX=''
9631 hardcode_direct_CXX=yes
9632 hardcode_libdir_separator_CXX=':'
9633 link_all_deplibs_CXX=yes
9634
9635 if test "$GXX" = yes; then
9636 case $host_os in aix4.012|aix4.012.*)
9637 # We only want to do this on AIX 4.2 and lower, the check
9638 # below for broken collect2 doesn't work under 4.3+
9639 collect2name=`${CC} -print-prog-name=collect2`
9640 if test -f "$collect2name" && \
9641 strings "$collect2name" | grep resolve_lib_name >/dev/null
9642 then
9643 # We have reworked collect2
9644 hardcode_direct_CXX=yes
9645 else
9646 # We have old collect2
9647 hardcode_direct_CXX=unsupported
9648 # It fails to find uninstalled libraries when the uninstalled
9649 # path is not listed in the libpath. Setting hardcode_minus_L
9650 # to unsupported forces relinking
9651 hardcode_minus_L_CXX=yes
9652 hardcode_libdir_flag_spec_CXX='-L$libdir'
9653 hardcode_libdir_separator_CXX=
9654 fi
9655 esac
9656 shared_flag='-shared'
9657 else
9658 # not using gcc
9659 if test "$host_cpu" = ia64; then
9660 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9661 # chokes on -Wl,-G. The following line is correct:
9662 shared_flag='-G'
9663 else
9664 if test "$aix_use_runtimelinking" = yes; then
9665 shared_flag='${wl}-G'
9666 else
9667 shared_flag='${wl}-bM:SRE'
9668 fi
9669 fi
9670 fi
9671
9672 # It seems that -bexpall does not export symbols beginning with
9673 # underscore (_), so it is better to generate a list of symbols to export.
9674 always_export_symbols_CXX=yes
9675 if test "$aix_use_runtimelinking" = yes; then
9676 # Warning - without using the other runtime loading flags (-brtl),
9677 # -berok will link without error, but may produce a broken library.
9678 allow_undefined_flag_CXX='-berok'
9679 # Determine the default libpath from the value encoded in an empty executable.
9680 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009681/* confdefs.h. */
9682_ACEOF
9683cat confdefs.h >>conftest.$ac_ext
9684cat >>conftest.$ac_ext <<_ACEOF
9685/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009686
John Criswell47fdd832003-07-14 16:52:07 +00009687int
9688main ()
9689{
9690
9691 ;
9692 return 0;
9693}
9694_ACEOF
9695rm -f conftest.$ac_objext conftest$ac_exeext
9696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00009697 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009698 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00009699 grep -v '^ *+' conftest.er1 >conftest.err
9700 rm -f conftest.er1
9701 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00009704 { ac_try='test -z "$ac_cxx_werror_flag"
9705 || test ! -s conftest.err'
9706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9707 (eval $ac_try) 2>&5
9708 ac_status=$?
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 (exit $ac_status); }; } &&
9711 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9713 (eval $ac_try) 2>&5
9714 ac_status=$?
9715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9716 (exit $ac_status); }; }; then
9717
9718aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9719}'`
9720# Check for a 64-bit object if we didn't find anything.
9721if 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; }
9722}'`; fi
9723else
9724 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009725sed 's/^/| /' conftest.$ac_ext >&5
9726
John Criswell47fdd832003-07-14 16:52:07 +00009727fi
Reid Spencer2b51a082004-08-04 00:34:49 +00009728rm -f conftest.err conftest.$ac_objext \
9729 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009730if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9731
9732 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9733
9734 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"
9735 else
9736 if test "$host_cpu" = ia64; then
9737 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9738 allow_undefined_flag_CXX="-z nodefs"
9739 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"
9740 else
9741 # Determine the default libpath from the value encoded in an empty executable.
9742 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009743/* confdefs.h. */
9744_ACEOF
9745cat confdefs.h >>conftest.$ac_ext
9746cat >>conftest.$ac_ext <<_ACEOF
9747/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009748
John Criswell47fdd832003-07-14 16:52:07 +00009749int
9750main ()
9751{
9752
9753 ;
9754 return 0;
9755}
9756_ACEOF
9757rm -f conftest.$ac_objext conftest$ac_exeext
9758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +00009759 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009760 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +00009761 grep -v '^ *+' conftest.er1 >conftest.err
9762 rm -f conftest.er1
9763 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +00009766 { ac_try='test -z "$ac_cxx_werror_flag"
9767 || test ! -s conftest.err'
9768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9769 (eval $ac_try) 2>&5
9770 ac_status=$?
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 (exit $ac_status); }; } &&
9773 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9775 (eval $ac_try) 2>&5
9776 ac_status=$?
9777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); }; }; then
9779
9780aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9781}'`
9782# Check for a 64-bit object if we didn't find anything.
9783if 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; }
9784}'`; fi
9785else
9786 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009787sed 's/^/| /' conftest.$ac_ext >&5
9788
John Criswell47fdd832003-07-14 16:52:07 +00009789fi
Reid Spencer2b51a082004-08-04 00:34:49 +00009790rm -f conftest.err conftest.$ac_objext \
9791 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009792if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9793
9794 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9795 # Warning - without using the other run time loading flags,
9796 # -berok will link without error, but may produce a broken library.
9797 no_undefined_flag_CXX=' ${wl}-bernotok'
9798 allow_undefined_flag_CXX=' ${wl}-berok'
9799 # -bexpall does not export symbols beginning with underscore (_)
9800 always_export_symbols_CXX=yes
9801 # Exported symbols can be pulled into shared objects from archives
9802 whole_archive_flag_spec_CXX=' '
9803 archive_cmds_need_lc_CXX=yes
9804 # This is similar to how AIX traditionally builds it's shared libraries.
9805 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9806 fi
9807 fi
9808 ;;
9809 chorus*)
9810 case $cc_basename in
9811 *)
9812 # FIXME: insert proper C++ library support
9813 ld_shlibs_CXX=no
9814 ;;
9815 esac
9816 ;;
9817
9818 cygwin* | mingw* | pw32*)
9819 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9820 # as there is no search path for DLLs.
9821 hardcode_libdir_flag_spec_CXX='-L$libdir'
9822 allow_undefined_flag_CXX=unsupported
9823 always_export_symbols_CXX=no
9824 enable_shared_with_static_runtimes_CXX=yes
9825
9826 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9827 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'
9828 # If the export-symbols file already is a .def file (1st line
9829 # is EXPORTS), use it as is; otherwise, prepend...
9830 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9831 cp $export_symbols $output_objdir/$soname.def;
9832 else
9833 echo EXPORTS > $output_objdir/$soname.def;
9834 cat $export_symbols >> $output_objdir/$soname.def;
9835 fi~
9836 $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'
9837 else
9838 ld_shlibs_CXX=no
9839 fi
9840 ;;
9841
9842 darwin* | rhapsody*)
9843 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9844 archive_cmds_need_lc_CXX=no
9845 case "$host_os" in
9846 rhapsody* | darwin1.[012])
9847 allow_undefined_flag_CXX='-undefined suppress'
9848 ;;
9849 *) # Darwin 1.3 on
9850 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9851 ;;
9852 esac
9853 lt_int_apple_cc_single_mod=no
9854 output_verbose_link_cmd='echo'
9855 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9856 lt_int_apple_cc_single_mod=yes
9857 fi
9858 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9859 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9860 else
9861 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9862 fi
9863 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9864
9865 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9866 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9867 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9868 else
9869 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9870 fi
9871 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9872 hardcode_direct_CXX=no
9873 hardcode_automatic_CXX=yes
9874 hardcode_shlibpath_var_CXX=unsupported
9875 whole_archive_flag_spec_CXX='-all_load $convenience'
9876 link_all_deplibs_CXX=yes
9877 fi
9878 ;;
9879
9880 dgux*)
9881 case $cc_basename in
9882 ec++)
9883 # FIXME: insert proper C++ library support
9884 ld_shlibs_CXX=no
9885 ;;
9886 ghcx)
9887 # Green Hills C++ Compiler
9888 # FIXME: insert proper C++ library support
9889 ld_shlibs_CXX=no
9890 ;;
9891 *)
9892 # FIXME: insert proper C++ library support
9893 ld_shlibs_CXX=no
9894 ;;
9895 esac
9896 ;;
9897 freebsd12*)
9898 # C++ shared libraries reported to be fairly broken before switch to ELF
9899 ld_shlibs_CXX=no
9900 ;;
9901 freebsd-elf*)
9902 archive_cmds_need_lc_CXX=no
9903 ;;
9904 freebsd*)
9905 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9906 # conventions
9907 ld_shlibs_CXX=yes
9908 ;;
9909 gnu*)
9910 ;;
9911 hpux9*)
9912 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9913 hardcode_libdir_separator_CXX=:
9914 export_dynamic_flag_spec_CXX='${wl}-E'
9915 hardcode_direct_CXX=yes
9916 hardcode_minus_L_CXX=yes # Not in the search PATH,
9917 # but as the default
9918 # location of the library.
9919
9920 case $cc_basename in
9921 CC)
9922 # FIXME: insert proper C++ library support
9923 ld_shlibs_CXX=no
9924 ;;
9925 aCC)
9926 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9927 # Commands to make compiler produce verbose output that lists
9928 # what "hidden" libraries, object files and flags are used when
9929 # linking a shared library.
9930 #
9931 # There doesn't appear to be a way to prevent this compiler from
9932 # explicitly linking system object files so we need to strip them
9933 # from the output so that they don't get included in the library
9934 # dependencies.
9935 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'
9936 ;;
9937 *)
9938 if test "$GXX" = yes; then
9939 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9940 else
9941 # FIXME: insert proper C++ library support
9942 ld_shlibs_CXX=no
9943 fi
9944 ;;
9945 esac
9946 ;;
9947 hpux10*|hpux11*)
9948 if test $with_gnu_ld = no; then
9949 case "$host_cpu" in
9950 hppa*64*)
9951 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9952 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9953 hardcode_libdir_separator_CXX=:
9954 ;;
9955 ia64*)
9956 hardcode_libdir_flag_spec_CXX='-L$libdir'
9957 ;;
9958 *)
9959 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9960 hardcode_libdir_separator_CXX=:
9961 export_dynamic_flag_spec_CXX='${wl}-E'
9962 ;;
9963 esac
9964 fi
9965 case "$host_cpu" in
9966 hppa*64*)
9967 hardcode_direct_CXX=no
9968 hardcode_shlibpath_var_CXX=no
9969 ;;
9970 ia64*)
9971 hardcode_direct_CXX=no
9972 hardcode_shlibpath_var_CXX=no
9973 hardcode_minus_L_CXX=yes # Not in the search PATH,
9974 # but as the default
9975 # location of the library.
9976 ;;
9977 *)
9978 hardcode_direct_CXX=yes
9979 hardcode_minus_L_CXX=yes # Not in the search PATH,
9980 # but as the default
9981 # location of the library.
9982 ;;
9983 esac
9984
9985 case $cc_basename in
9986 CC)
9987 # FIXME: insert proper C++ library support
9988 ld_shlibs_CXX=no
9989 ;;
9990 aCC)
9991 case "$host_cpu" in
9992 hppa*64*|ia64*)
9993 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9994 ;;
9995 *)
9996 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9997 ;;
9998 esac
9999 # Commands to make compiler produce verbose output that lists
10000 # what "hidden" libraries, object files and flags are used when
10001 # linking a shared library.
10002 #
10003 # There doesn't appear to be a way to prevent this compiler from
10004 # explicitly linking system object files so we need to strip them
10005 # from the output so that they don't get included in the library
10006 # dependencies.
10007 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'
10008 ;;
10009 *)
10010 if test "$GXX" = yes; then
10011 if test $with_gnu_ld = no; then
10012 case "$host_cpu" in
10013 ia64*|hppa*64*)
10014 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10015 ;;
10016 *)
10017 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'
10018 ;;
10019 esac
10020 fi
10021 else
10022 # FIXME: insert proper C++ library support
10023 ld_shlibs_CXX=no
10024 fi
10025 ;;
10026 esac
10027 ;;
10028 irix5* | irix6*)
10029 case $cc_basename in
10030 CC)
10031 # SGI C++
10032 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'
10033
10034 # Archives containing C++ object files must be created using
10035 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10036 # necessary to make sure instantiated templates are included
10037 # in the archive.
10038 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10039 ;;
10040 *)
10041 if test "$GXX" = yes; then
10042 if test "$with_gnu_ld" = no; then
10043 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'
10044 else
10045 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'
10046 fi
10047 fi
10048 link_all_deplibs_CXX=yes
10049 ;;
10050 esac
10051 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10052 hardcode_libdir_separator_CXX=:
10053 ;;
10054 linux*)
10055 case $cc_basename in
10056 KCC)
10057 # Kuck and Associates, Inc. (KAI) C++ Compiler
10058
10059 # KCC will only create a shared library if the output file
10060 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10061 # to its proper name (with version) after linking.
10062 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'
10063 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'
10064 # Commands to make compiler produce verbose output that lists
10065 # what "hidden" libraries, object files and flags are used when
10066 # linking a shared library.
10067 #
10068 # There doesn't appear to be a way to prevent this compiler from
10069 # explicitly linking system object files so we need to strip them
10070 # from the output so that they don't get included in the library
10071 # dependencies.
10072 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'
10073
10074 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10075 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10076
10077 # Archives containing C++ object files must be created using
10078 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10079 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10080 ;;
10081 icpc)
10082 # Intel C++
10083 with_gnu_ld=yes
10084 archive_cmds_need_lc_CXX=no
10085 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10086 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'
10087 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10088 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10089 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10090 ;;
10091 cxx)
10092 # Compaq C++
10093 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10094 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'
10095
10096 runpath_var=LD_RUN_PATH
10097 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10098 hardcode_libdir_separator_CXX=:
10099
10100 # Commands to make compiler produce verbose output that lists
10101 # what "hidden" libraries, object files and flags are used when
10102 # linking a shared library.
10103 #
10104 # There doesn't appear to be a way to prevent this compiler from
10105 # explicitly linking system object files so we need to strip them
10106 # from the output so that they don't get included in the library
10107 # dependencies.
10108 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'
10109 ;;
10110 esac
10111 ;;
10112 lynxos*)
10113 # FIXME: insert proper C++ library support
10114 ld_shlibs_CXX=no
10115 ;;
10116 m88k*)
10117 # FIXME: insert proper C++ library support
10118 ld_shlibs_CXX=no
10119 ;;
10120 mvs*)
10121 case $cc_basename in
10122 cxx)
10123 # FIXME: insert proper C++ library support
10124 ld_shlibs_CXX=no
10125 ;;
10126 *)
10127 # FIXME: insert proper C++ library support
10128 ld_shlibs_CXX=no
10129 ;;
10130 esac
10131 ;;
10132 netbsd*)
10133 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10134 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10135 wlarc=
10136 hardcode_libdir_flag_spec_CXX='-R$libdir'
10137 hardcode_direct_CXX=yes
10138 hardcode_shlibpath_var_CXX=no
10139 fi
10140 # Workaround some broken pre-1.5 toolchains
10141 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10142 ;;
10143 osf3*)
10144 case $cc_basename in
10145 KCC)
10146 # Kuck and Associates, Inc. (KAI) C++ Compiler
10147
10148 # KCC will only create a shared library if the output file
10149 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10150 # to its proper name (with version) after linking.
10151 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'
10152
10153 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10154 hardcode_libdir_separator_CXX=:
10155
10156 # Archives containing C++ object files must be created using
10157 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10158 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10159
10160 ;;
10161 RCC)
10162 # Rational C++ 2.4.1
10163 # FIXME: insert proper C++ library support
10164 ld_shlibs_CXX=no
10165 ;;
10166 cxx)
10167 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10168 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'
10169
10170 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10171 hardcode_libdir_separator_CXX=:
10172
10173 # Commands to make compiler produce verbose output that lists
10174 # what "hidden" libraries, object files and flags are used when
10175 # linking a shared library.
10176 #
10177 # There doesn't appear to be a way to prevent this compiler from
10178 # explicitly linking system object files so we need to strip them
10179 # from the output so that they don't get included in the library
10180 # dependencies.
10181 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'
10182 ;;
10183 *)
10184 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10185 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10186 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'
10187
10188 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10189 hardcode_libdir_separator_CXX=:
10190
10191 # Commands to make compiler produce verbose output that lists
10192 # what "hidden" libraries, object files and flags are used when
10193 # linking a shared library.
10194 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10195
10196 else
10197 # FIXME: insert proper C++ library support
10198 ld_shlibs_CXX=no
10199 fi
10200 ;;
10201 esac
10202 ;;
10203 osf4* | osf5*)
10204 case $cc_basename in
10205 KCC)
10206 # Kuck and Associates, Inc. (KAI) C++ Compiler
10207
10208 # KCC will only create a shared library if the output file
10209 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10210 # to its proper name (with version) after linking.
10211 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'
10212
10213 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10214 hardcode_libdir_separator_CXX=:
10215
10216 # Archives containing C++ object files must be created using
10217 # the KAI C++ compiler.
10218 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10219 ;;
10220 RCC)
10221 # Rational C++ 2.4.1
10222 # FIXME: insert proper C++ library support
10223 ld_shlibs_CXX=no
10224 ;;
10225 cxx)
10226 allow_undefined_flag_CXX=' -expect_unresolved \*'
10227 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'
10228 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10229 echo "-hidden">> $lib.exp~
10230 $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~
10231 $rm $lib.exp'
10232
10233 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10234 hardcode_libdir_separator_CXX=:
10235
10236 # Commands to make compiler produce verbose output that lists
10237 # what "hidden" libraries, object files and flags are used when
10238 # linking a shared library.
10239 #
10240 # There doesn't appear to be a way to prevent this compiler from
10241 # explicitly linking system object files so we need to strip them
10242 # from the output so that they don't get included in the library
10243 # dependencies.
10244 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'
10245 ;;
10246 *)
10247 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10248 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10249 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'
10250
10251 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10252 hardcode_libdir_separator_CXX=:
10253
10254 # Commands to make compiler produce verbose output that lists
10255 # what "hidden" libraries, object files and flags are used when
10256 # linking a shared library.
10257 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10258
10259 else
10260 # FIXME: insert proper C++ library support
10261 ld_shlibs_CXX=no
10262 fi
10263 ;;
10264 esac
10265 ;;
10266 psos*)
10267 # FIXME: insert proper C++ library support
10268 ld_shlibs_CXX=no
10269 ;;
10270 sco*)
10271 archive_cmds_need_lc_CXX=no
10272 case $cc_basename in
10273 CC)
10274 # FIXME: insert proper C++ library support
10275 ld_shlibs_CXX=no
10276 ;;
10277 *)
10278 # FIXME: insert proper C++ library support
10279 ld_shlibs_CXX=no
10280 ;;
10281 esac
10282 ;;
10283 sunos4*)
10284 case $cc_basename in
10285 CC)
10286 # Sun C++ 4.x
10287 # FIXME: insert proper C++ library support
10288 ld_shlibs_CXX=no
10289 ;;
10290 lcc)
10291 # Lucid
10292 # FIXME: insert proper C++ library support
10293 ld_shlibs_CXX=no
10294 ;;
10295 *)
10296 # FIXME: insert proper C++ library support
10297 ld_shlibs_CXX=no
10298 ;;
10299 esac
10300 ;;
10301 solaris*)
10302 case $cc_basename in
10303 CC)
10304 # Sun C++ 4.2, 5.x and Centerline C++
10305 no_undefined_flag_CXX=' -zdefs'
10306 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10307 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10308 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10309
10310 hardcode_libdir_flag_spec_CXX='-R$libdir'
10311 hardcode_shlibpath_var_CXX=no
10312 case $host_os in
10313 solaris2.0-5 | solaris2.0-5.*) ;;
10314 *)
10315 # The C++ compiler is used as linker so we must use $wl
10316 # flag to pass the commands to the underlying system
10317 # linker.
10318 # Supported since Solaris 2.6 (maybe 2.5.1?)
10319 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10320 ;;
10321 esac
10322 link_all_deplibs_CXX=yes
10323
10324 # Commands to make compiler produce verbose output that lists
10325 # what "hidden" libraries, object files and flags are used when
10326 # linking a shared library.
10327 #
10328 # There doesn't appear to be a way to prevent this compiler from
10329 # explicitly linking system object files so we need to strip them
10330 # from the output so that they don't get included in the library
10331 # dependencies.
10332 output_verbose_link_cmd='templist=`$CC -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'
10333
10334 # Archives containing C++ object files must be created using
10335 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10336 # necessary to make sure instantiated templates are included
10337 # in the archive.
10338 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10339 ;;
10340 gcx)
10341 # Green Hills C++ Compiler
10342 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10343
10344 # The C++ compiler must be used to create the archive.
10345 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10346 ;;
10347 *)
10348 # GNU C++ compiler with Solaris linker
10349 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10350 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10351 if $CC --version | grep -v '^2\.7' > /dev/null; then
10352 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10353 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10354 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10355
10356 # Commands to make compiler produce verbose output that lists
10357 # what "hidden" libraries, object files and flags are used when
10358 # linking a shared library.
10359 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10360 else
10361 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10362 # platform.
10363 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10364 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10365 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10366
10367 # Commands to make compiler produce verbose output that lists
10368 # what "hidden" libraries, object files and flags are used when
10369 # linking a shared library.
10370 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10371 fi
10372
10373 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10374 fi
10375 ;;
10376 esac
10377 ;;
10378 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10379 archive_cmds_need_lc_CXX=no
10380 ;;
10381 tandem*)
10382 case $cc_basename in
10383 NCC)
10384 # NonStop-UX NCC 3.20
10385 # FIXME: insert proper C++ library support
10386 ld_shlibs_CXX=no
10387 ;;
10388 *)
10389 # FIXME: insert proper C++ library support
10390 ld_shlibs_CXX=no
10391 ;;
10392 esac
10393 ;;
10394 vxworks*)
10395 # FIXME: insert proper C++ library support
10396 ld_shlibs_CXX=no
10397 ;;
10398 *)
10399 # FIXME: insert proper C++ library support
10400 ld_shlibs_CXX=no
10401 ;;
10402esac
10403echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10404echo "${ECHO_T}$ld_shlibs_CXX" >&6
10405test "$ld_shlibs_CXX" = no && can_build_shared=no
10406
10407GCC_CXX="$GXX"
10408LD_CXX="$LD"
10409
Reid Spencer2b51a082004-08-04 00:34:49 +000010410## CAVEAT EMPTOR:
10411## There is no encapsulation within the following macros, do not change
10412## the running order or otherwise move them around unless you know exactly
10413## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000010414
10415cat > conftest.$ac_ext <<EOF
10416class Foo
10417{
10418public:
10419 Foo (void) { a = 0; }
10420private:
10421 int a;
10422};
10423EOF
10424
10425if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10426 (eval $ac_compile) 2>&5
10427 ac_status=$?
10428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10429 (exit $ac_status); }; then
10430 # Parse the compiler output and extract the necessary
10431 # objects, libraries and library flags.
10432
10433 # Sentinel used to keep track of whether or not we are before
10434 # the conftest object file.
10435 pre_test_object_deps_done=no
10436
10437 # The `*' in the case matches for architectures that use `case' in
10438 # $output_verbose_cmd can trigger glob expansion during the loop
10439 # eval without this substitution.
10440 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10441
10442 for p in `eval $output_verbose_link_cmd`; do
10443 case $p in
10444
10445 -L* | -R* | -l*)
10446 # Some compilers place space between "-{L,R}" and the path.
10447 # Remove the space.
10448 if test $p = "-L" \
10449 || test $p = "-R"; then
10450 prev=$p
10451 continue
10452 else
10453 prev=
10454 fi
10455
10456 if test "$pre_test_object_deps_done" = no; then
10457 case $p in
10458 -L* | -R*)
10459 # Internal compiler library paths should come after those
10460 # provided the user. The postdeps already come after the
10461 # user supplied libs so there is no need to process them.
10462 if test -z "$compiler_lib_search_path_CXX"; then
10463 compiler_lib_search_path_CXX="${prev}${p}"
10464 else
10465 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10466 fi
10467 ;;
10468 # The "-l" case would never come before the object being
10469 # linked, so don't bother handling this case.
10470 esac
10471 else
10472 if test -z "$postdeps_CXX"; then
10473 postdeps_CXX="${prev}${p}"
10474 else
10475 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10476 fi
10477 fi
10478 ;;
10479
10480 *.$objext)
10481 # This assumes that the test object file only shows up
10482 # once in the compiler output.
10483 if test "$p" = "conftest.$objext"; then
10484 pre_test_object_deps_done=yes
10485 continue
10486 fi
10487
10488 if test "$pre_test_object_deps_done" = no; then
10489 if test -z "$predep_objects_CXX"; then
10490 predep_objects_CXX="$p"
10491 else
10492 predep_objects_CXX="$predep_objects_CXX $p"
10493 fi
10494 else
10495 if test -z "$postdep_objects_CXX"; then
10496 postdep_objects_CXX="$p"
10497 else
10498 postdep_objects_CXX="$postdep_objects_CXX $p"
10499 fi
10500 fi
10501 ;;
10502
10503 *) ;; # Ignore the rest.
10504
10505 esac
10506 done
10507
10508 # Clean up.
10509 rm -f a.out a.exe
10510else
10511 echo "libtool.m4: error: problem compiling CXX test program"
10512fi
10513
10514$rm -f confest.$objext
10515
10516case " $postdeps_CXX " in
10517*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10518esac
10519
10520lt_prog_compiler_wl_CXX=
10521lt_prog_compiler_pic_CXX=
10522lt_prog_compiler_static_CXX=
10523
10524echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10525echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10526
10527 # C++ specific cases for pic, static, wl, etc.
10528 if test "$GXX" = yes; then
10529 lt_prog_compiler_wl_CXX='-Wl,'
10530 lt_prog_compiler_static_CXX='-static'
10531
10532 case $host_os in
10533 aix*)
10534 # All AIX code is PIC.
10535 if test "$host_cpu" = ia64; then
10536 # AIX 5 now supports IA64 processor
10537 lt_prog_compiler_static_CXX='-Bstatic'
10538 fi
10539 ;;
10540 amigaos*)
10541 # FIXME: we need at least 68020 code to build shared libraries, but
10542 # adding the `-m68020' flag to GCC prevents building anything better,
10543 # like `-m68040'.
10544 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10545 ;;
10546 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10547 # PIC is the default for these OSes.
10548 ;;
10549 mingw* | os2* | pw32*)
10550 # This hack is so that the source file can tell whether it is being
10551 # built for inclusion in a dll (and should export symbols for example).
10552 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10553 ;;
10554 darwin* | rhapsody*)
10555 # PIC is the default on this platform
10556 # Common symbols not allowed in MH_DYLIB files
10557 lt_prog_compiler_pic_CXX='-fno-common'
10558 ;;
10559 *djgpp*)
10560 # DJGPP does not support shared libraries at all
10561 lt_prog_compiler_pic_CXX=
10562 ;;
10563 sysv4*MP*)
10564 if test -d /usr/nec; then
10565 lt_prog_compiler_pic_CXX=-Kconform_pic
10566 fi
10567 ;;
10568 hpux*)
10569 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10570 # not for PA HP-UX.
10571 case "$host_cpu" in
10572 hppa*64*|ia64*)
10573 ;;
10574 *)
10575 lt_prog_compiler_pic_CXX='-fPIC'
10576 ;;
10577 esac
10578 ;;
10579 *)
10580 lt_prog_compiler_pic_CXX='-fPIC'
10581 ;;
10582 esac
10583 else
10584 case $host_os in
10585 aix4* | aix5*)
10586 # All AIX code is PIC.
10587 if test "$host_cpu" = ia64; then
10588 # AIX 5 now supports IA64 processor
10589 lt_prog_compiler_static_CXX='-Bstatic'
10590 else
10591 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10592 fi
10593 ;;
10594 chorus*)
10595 case $cc_basename in
10596 cxch68)
10597 # Green Hills C++ Compiler
10598 # _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"
10599 ;;
10600 esac
10601 ;;
10602 dgux*)
10603 case $cc_basename in
10604 ec++)
10605 lt_prog_compiler_pic_CXX='-KPIC'
10606 ;;
10607 ghcx)
10608 # Green Hills C++ Compiler
10609 lt_prog_compiler_pic_CXX='-pic'
10610 ;;
10611 *)
10612 ;;
10613 esac
10614 ;;
10615 freebsd*)
10616 # FreeBSD uses GNU C++
10617 ;;
10618 hpux9* | hpux10* | hpux11*)
10619 case $cc_basename in
10620 CC)
10621 lt_prog_compiler_wl_CXX='-Wl,'
10622 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10623 if test "$host_cpu" != ia64; then
10624 lt_prog_compiler_pic_CXX='+Z'
10625 fi
10626 ;;
10627 aCC)
10628 lt_prog_compiler_wl_CXX='-Wl,'
10629 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10630 case "$host_cpu" in
10631 hppa*64*|ia64*)
10632 # +Z the default
10633 ;;
10634 *)
10635 lt_prog_compiler_pic_CXX='+Z'
10636 ;;
10637 esac
10638 ;;
10639 *)
10640 ;;
10641 esac
10642 ;;
10643 irix5* | irix6* | nonstopux*)
10644 case $cc_basename in
10645 CC)
10646 lt_prog_compiler_wl_CXX='-Wl,'
10647 lt_prog_compiler_static_CXX='-non_shared'
10648 # CC pic flag -KPIC is the default.
10649 ;;
10650 *)
10651 ;;
10652 esac
10653 ;;
10654 linux*)
10655 case $cc_basename in
10656 KCC)
10657 # KAI C++ Compiler
10658 lt_prog_compiler_wl_CXX='--backend -Wl,'
10659 lt_prog_compiler_pic_CXX='-fPIC'
10660 ;;
10661 icpc)
10662 # Intel C++
10663 lt_prog_compiler_wl_CXX='-Wl,'
10664 lt_prog_compiler_pic_CXX='-KPIC'
10665 lt_prog_compiler_static_CXX='-static'
10666 ;;
10667 cxx)
10668 # Compaq C++
10669 # Make sure the PIC flag is empty. It appears that all Alpha
10670 # Linux and Compaq Tru64 Unix objects are PIC.
10671 lt_prog_compiler_pic_CXX=
10672 lt_prog_compiler_static_CXX='-non_shared'
10673 ;;
10674 *)
10675 ;;
10676 esac
10677 ;;
10678 lynxos*)
10679 ;;
10680 m88k*)
10681 ;;
10682 mvs*)
10683 case $cc_basename in
10684 cxx)
10685 lt_prog_compiler_pic_CXX='-W c,exportall'
10686 ;;
10687 *)
10688 ;;
10689 esac
10690 ;;
10691 netbsd*)
10692 ;;
10693 osf3* | osf4* | osf5*)
10694 case $cc_basename in
10695 KCC)
10696 lt_prog_compiler_wl_CXX='--backend -Wl,'
10697 ;;
10698 RCC)
10699 # Rational C++ 2.4.1
10700 lt_prog_compiler_pic_CXX='-pic'
10701 ;;
10702 cxx)
10703 # Digital/Compaq C++
10704 lt_prog_compiler_wl_CXX='-Wl,'
10705 # Make sure the PIC flag is empty. It appears that all Alpha
10706 # Linux and Compaq Tru64 Unix objects are PIC.
10707 lt_prog_compiler_pic_CXX=
10708 lt_prog_compiler_static_CXX='-non_shared'
10709 ;;
10710 *)
10711 ;;
10712 esac
10713 ;;
10714 psos*)
10715 ;;
10716 sco*)
10717 case $cc_basename in
10718 CC)
10719 lt_prog_compiler_pic_CXX='-fPIC'
10720 ;;
10721 *)
10722 ;;
10723 esac
10724 ;;
10725 solaris*)
10726 case $cc_basename in
10727 CC)
10728 # Sun C++ 4.2, 5.x and Centerline C++
10729 lt_prog_compiler_pic_CXX='-KPIC'
10730 lt_prog_compiler_static_CXX='-Bstatic'
10731 lt_prog_compiler_wl_CXX='-Qoption ld '
10732 ;;
10733 gcx)
10734 # Green Hills C++ Compiler
10735 lt_prog_compiler_pic_CXX='-PIC'
10736 ;;
10737 *)
10738 ;;
10739 esac
10740 ;;
10741 sunos4*)
10742 case $cc_basename in
10743 CC)
10744 # Sun C++ 4.x
10745 lt_prog_compiler_pic_CXX='-pic'
10746 lt_prog_compiler_static_CXX='-Bstatic'
10747 ;;
10748 lcc)
10749 # Lucid
10750 lt_prog_compiler_pic_CXX='-pic'
10751 ;;
10752 *)
10753 ;;
10754 esac
10755 ;;
10756 tandem*)
10757 case $cc_basename in
10758 NCC)
10759 # NonStop-UX NCC 3.20
10760 lt_prog_compiler_pic_CXX='-KPIC'
10761 ;;
10762 *)
10763 ;;
10764 esac
10765 ;;
10766 unixware*)
10767 ;;
10768 vxworks*)
10769 ;;
10770 *)
10771 lt_prog_compiler_can_build_shared_CXX=no
10772 ;;
10773 esac
10774 fi
10775
10776echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10777echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10778
10779#
10780# Check to make sure the PIC flag actually works.
10781#
10782if test -n "$lt_prog_compiler_pic_CXX"; then
10783 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10784echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10785if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10787else
10788 lt_prog_compiler_pic_works_CXX=no
10789 ac_outfile=conftest.$ac_objext
10790 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10791 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10792 # Insert the option either (1) after the last *FLAGS variable, or
10793 # (2) before a word containing "conftest.", or (3) at the end.
10794 # Note that $ac_compile itself does not contain backslashes and begins
10795 # with a dollar sign (not a hyphen), so the echo should work correctly.
10796 # The option is referenced via a variable to avoid confusing sed.
10797 lt_compile=`echo "$ac_compile" | $SED \
10798 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10799 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10800 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5f285392004-08-24 16:32:21 +000010801 (eval echo "\"\$as_me:10801: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010802 (eval "$lt_compile" 2>conftest.err)
10803 ac_status=$?
10804 cat conftest.err >&5
Reid Spencer5f285392004-08-24 16:32:21 +000010805 echo "$as_me:10805: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010806 if (exit $ac_status) && test -s "$ac_outfile"; then
10807 # The compiler can only warn and ignore the option if not recognized
10808 # So say no if there are warnings
10809 if test ! -s conftest.err; then
10810 lt_prog_compiler_pic_works_CXX=yes
10811 fi
10812 fi
10813 $rm conftest*
10814
10815fi
10816echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10817echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10818
10819if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10820 case $lt_prog_compiler_pic_CXX in
10821 "" | " "*) ;;
10822 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10823 esac
10824else
10825 lt_prog_compiler_pic_CXX=
10826 lt_prog_compiler_can_build_shared_CXX=no
10827fi
10828
10829fi
10830case "$host_os" in
10831 # For platforms which do not support PIC, -DPIC is meaningless:
10832 *djgpp*)
10833 lt_prog_compiler_pic_CXX=
10834 ;;
10835 *)
10836 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10837 ;;
10838esac
10839
10840echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10841echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10842if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10844else
10845 lt_cv_prog_compiler_c_o_CXX=no
10846 $rm -r conftest 2>/dev/null
10847 mkdir conftest
10848 cd conftest
10849 mkdir out
10850 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10851
10852 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10853 # that will create temporary files in the current directory regardless of
10854 # the output directory. Thus, making CWD read-only will cause this test
10855 # to fail, enabling locking or at least warning the user not to do parallel
10856 # builds.
10857 chmod -w .
10858
10859 lt_compiler_flag="-o out/conftest2.$ac_objext"
10860 # Insert the option either (1) after the last *FLAGS variable, or
10861 # (2) before a word containing "conftest.", or (3) at the end.
10862 # Note that $ac_compile itself does not contain backslashes and begins
10863 # with a dollar sign (not a hyphen), so the echo should work correctly.
10864 lt_compile=`echo "$ac_compile" | $SED \
10865 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10866 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10867 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5f285392004-08-24 16:32:21 +000010868 (eval echo "\"\$as_me:10868: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010869 (eval "$lt_compile" 2>out/conftest.err)
10870 ac_status=$?
10871 cat out/conftest.err >&5
Reid Spencer5f285392004-08-24 16:32:21 +000010872 echo "$as_me:10872: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010873 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10874 then
10875 # The compiler can only warn and ignore the option if not recognized
10876 # So say no if there are warnings
10877 if test ! -s out/conftest.err; then
10878 lt_cv_prog_compiler_c_o_CXX=yes
10879 fi
10880 fi
10881 chmod u+w .
10882 $rm conftest* out/*
10883 rmdir out
10884 cd ..
10885 rmdir conftest
10886 $rm conftest*
10887
10888fi
10889echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10890echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10891
10892
10893hard_links="nottested"
10894if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10895 # do not overwrite the value of need_locks provided by the user
10896 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10897echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10898 hard_links=yes
10899 $rm conftest*
10900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10901 touch conftest.a
10902 ln conftest.a conftest.b 2>&5 || hard_links=no
10903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10904 echo "$as_me:$LINENO: result: $hard_links" >&5
10905echo "${ECHO_T}$hard_links" >&6
10906 if test "$hard_links" = no; then
10907 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10908echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10909 need_locks=warn
10910 fi
10911else
10912 need_locks=no
10913fi
10914
10915echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10916echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10917
10918 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10919 case $host_os in
10920 aix4* | aix5*)
10921 # If we're using GNU nm, then we don't want the "-C" option.
10922 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10923 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10924 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'
10925 else
10926 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'
10927 fi
10928 ;;
10929 pw32*)
10930 export_symbols_cmds_CXX="$ltdll_cmds"
10931 ;;
10932 cygwin* | mingw*)
10933 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10934 ;;
10935 *)
10936 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10937 ;;
10938 esac
10939
10940echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10941echo "${ECHO_T}$ld_shlibs_CXX" >&6
10942test "$ld_shlibs_CXX" = no && can_build_shared=no
10943
10944variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10945if test "$GCC" = yes; then
10946 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10947fi
10948
10949#
10950# Do we need to explicitly link libc?
10951#
10952case "x$archive_cmds_need_lc_CXX" in
10953x|xyes)
10954 # Assume -lc should be added
10955 archive_cmds_need_lc_CXX=yes
10956
10957 if test "$enable_shared" = yes && test "$GCC" = yes; then
10958 case $archive_cmds_CXX in
10959 *'~'*)
10960 # FIXME: we may have to deal with multi-command sequences.
10961 ;;
10962 '$CC '*)
10963 # Test whether the compiler implicitly links with -lc since on some
10964 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10965 # to ld, don't add -lc before -lgcc.
10966 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10967echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10968 $rm conftest*
10969 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10970
10971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10972 (eval $ac_compile) 2>&5
10973 ac_status=$?
10974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10975 (exit $ac_status); } 2>conftest.err; then
10976 soname=conftest
10977 lib=conftest
10978 libobjs=conftest.$ac_objext
10979 deplibs=
10980 wl=$lt_prog_compiler_wl_CXX
10981 compiler_flags=-v
10982 linker_flags=-v
10983 verstring=
10984 output_objdir=.
10985 libname=conftest
10986 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10987 allow_undefined_flag_CXX=
10988 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10989 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10990 ac_status=$?
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); }
10993 then
10994 archive_cmds_need_lc_CXX=no
10995 else
10996 archive_cmds_need_lc_CXX=yes
10997 fi
10998 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10999 else
11000 cat conftest.err 1>&5
11001 fi
11002 $rm conftest*
11003 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11004echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11005 ;;
11006 esac
11007 fi
11008 ;;
11009esac
11010
11011echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11012echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11013hardcode_action_CXX=
11014if test -n "$hardcode_libdir_flag_spec_CXX" || \
11015 test -n "$runpath_var CXX" || \
11016 test "X$hardcode_automatic_CXX"="Xyes" ; then
11017
11018 # We can hardcode non-existant directories.
11019 if test "$hardcode_direct_CXX" != no &&
11020 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11021 # have to relink, otherwise we might link with an installed library
11022 # when we should be linking with a yet-to-be-installed one
11023 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11024 test "$hardcode_minus_L_CXX" != no; then
11025 # Linking always hardcodes the temporary library directory.
11026 hardcode_action_CXX=relink
11027 else
11028 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11029 hardcode_action_CXX=immediate
11030 fi
11031else
11032 # We cannot hardcode anything, or else we can only hardcode existing
11033 # directories.
11034 hardcode_action_CXX=unsupported
11035fi
11036echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11037echo "${ECHO_T}$hardcode_action_CXX" >&6
11038
11039if test "$hardcode_action_CXX" = relink; then
11040 # Fast installation is not supported
11041 enable_fast_install=no
11042elif test "$shlibpath_overrides_runpath" = yes ||
11043 test "$enable_shared" = no; then
11044 # Fast installation is not necessary
11045 enable_fast_install=needless
11046fi
11047
11048striplib=
11049old_striplib=
11050echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11051echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11052if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11053 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11054 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11055 echo "$as_me:$LINENO: result: yes" >&5
11056echo "${ECHO_T}yes" >&6
11057else
11058# FIXME - insert some real tests, host_os isn't really good enough
11059 case $host_os in
11060 darwin*)
11061 if test -n "$STRIP" ; then
11062 striplib="$STRIP -x"
11063 echo "$as_me:$LINENO: result: yes" >&5
11064echo "${ECHO_T}yes" >&6
11065 else
11066 echo "$as_me:$LINENO: result: no" >&5
11067echo "${ECHO_T}no" >&6
11068fi
11069 ;;
11070 *)
11071 echo "$as_me:$LINENO: result: no" >&5
11072echo "${ECHO_T}no" >&6
11073 ;;
11074 esac
11075fi
11076
11077echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11078echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11079library_names_spec=
11080libname_spec='lib$name'
11081soname_spec=
11082shrext=".so"
11083postinstall_cmds=
11084postuninstall_cmds=
11085finish_cmds=
11086finish_eval=
11087shlibpath_var=
11088shlibpath_overrides_runpath=unknown
11089version_type=none
11090dynamic_linker="$host_os ld.so"
11091sys_lib_dlsearch_path_spec="/lib /usr/lib"
11092if test "$GCC" = yes; then
11093 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11094 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11095 # if the path contains ";" then we assume it to be the separator
11096 # otherwise default to the standard path separator (i.e. ":") - it is
11097 # assumed that no part of a normal pathname contains ";" but that should
11098 # okay in the real world where ";" in dirpaths is itself problematic.
11099 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11100 else
11101 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11102 fi
11103else
11104 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11105fi
11106need_lib_prefix=unknown
11107hardcode_into_libs=no
11108
11109# when you set need_version to no, make sure it does not cause -set_version
11110# flags to be left without arguments
11111need_version=unknown
11112
11113case $host_os in
11114aix3*)
11115 version_type=linux
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11117 shlibpath_var=LIBPATH
11118
11119 # AIX 3 has no versioning support, so we append a major version to the name.
11120 soname_spec='${libname}${release}${shared_ext}$major'
11121 ;;
11122
11123aix4* | aix5*)
11124 version_type=linux
11125 need_lib_prefix=no
11126 need_version=no
11127 hardcode_into_libs=yes
11128 if test "$host_cpu" = ia64; then
11129 # AIX 5 supports IA64
11130 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11131 shlibpath_var=LD_LIBRARY_PATH
11132 else
11133 # With GCC up to 2.95.x, collect2 would create an import file
11134 # for dependence libraries. The import file would start with
11135 # the line `#! .'. This would cause the generated library to
11136 # depend on `.', always an invalid library. This was fixed in
11137 # development snapshots of GCC prior to 3.0.
11138 case $host_os in
11139 aix4 | aix4.[01] | aix4.[01].*)
11140 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11141 echo ' yes '
11142 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11143 :
11144 else
11145 can_build_shared=no
11146 fi
11147 ;;
11148 esac
11149 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11150 # soname into executable. Probably we can add versioning support to
11151 # collect2, so additional links can be useful in future.
11152 if test "$aix_use_runtimelinking" = yes; then
11153 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11154 # instead of lib<name>.a to let people know that these are not
11155 # typical AIX shared libraries.
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157 else
11158 # We preserve .a as extension for shared libraries through AIX4.2
11159 # and later when we are not doing run time linking.
11160 library_names_spec='${libname}${release}.a $libname.a'
11161 soname_spec='${libname}${release}${shared_ext}$major'
11162 fi
11163 shlibpath_var=LIBPATH
11164 fi
11165 ;;
11166
11167amigaos*)
11168 library_names_spec='$libname.ixlibrary $libname.a'
11169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11170 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'
11171 ;;
11172
11173beos*)
11174 library_names_spec='${libname}${shared_ext}'
11175 dynamic_linker="$host_os ld.so"
11176 shlibpath_var=LIBRARY_PATH
11177 ;;
11178
11179bsdi4*)
11180 version_type=linux
11181 need_version=no
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11183 soname_spec='${libname}${release}${shared_ext}$major'
11184 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11185 shlibpath_var=LD_LIBRARY_PATH
11186 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11187 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11188 # the default ld.so.conf also contains /usr/contrib/lib and
11189 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11190 # libtool to hard-code these into programs
11191 ;;
11192
11193cygwin* | mingw* | pw32*)
11194 version_type=windows
11195 shrext=".dll"
11196 need_version=no
11197 need_lib_prefix=no
11198
11199 case $GCC,$host_os in
11200 yes,cygwin* | yes,mingw* | yes,pw32*)
11201 library_names_spec='$libname.dll.a'
11202 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11203 postinstall_cmds='base_file=`basename \${file}`~
11204 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11205 dldir=$destdir/`dirname \$dlpath`~
11206 test -d \$dldir || mkdir -p \$dldir~
11207 $install_prog $dir/$dlname \$dldir/$dlname'
11208 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11209 dlpath=$dir/\$dldll~
11210 $rm \$dlpath'
11211 shlibpath_overrides_runpath=yes
11212
11213 case $host_os in
11214 cygwin*)
11215 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11216 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11217 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11218 ;;
11219 mingw*)
11220 # MinGW DLLs use traditional 'lib' prefix
11221 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11222 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11223 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11224 # It is most probably a Windows format PATH printed by
11225 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11226 # path with ; separators, and with drive letters. We can handle the
11227 # drive letters (cygwin fileutils understands them), so leave them,
11228 # especially as we might pass files found there to a mingw objdump,
11229 # which wouldn't understand a cygwinified path. Ahh.
11230 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11231 else
11232 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11233 fi
11234 ;;
11235 pw32*)
11236 # pw32 DLLs use 'pw' prefix rather than 'lib'
11237 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11238 ;;
11239 esac
11240 ;;
11241
11242 *)
11243 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11244 ;;
11245 esac
11246 dynamic_linker='Win32 ld.exe'
11247 # FIXME: first we should search . and the directory the executable is in
11248 shlibpath_var=PATH
11249 ;;
11250
11251darwin* | rhapsody*)
11252 dynamic_linker="$host_os dyld"
11253 version_type=darwin
11254 need_lib_prefix=no
11255 need_version=no
11256 # FIXME: Relying on posixy $() will cause problems for
11257 # cross-compilation, but unfortunately the echo tests do not
11258 # yet detect zsh echo's removal of \ escapes.
11259 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11260 soname_spec='${libname}${release}${major}$shared_ext'
11261 shlibpath_overrides_runpath=yes
11262 shlibpath_var=DYLD_LIBRARY_PATH
11263 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11264 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11265 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11266 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"`
11267 fi
11268 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11269 ;;
11270
11271dgux*)
11272 version_type=linux
11273 need_lib_prefix=no
11274 need_version=no
11275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11276 soname_spec='${libname}${release}${shared_ext}$major'
11277 shlibpath_var=LD_LIBRARY_PATH
11278 ;;
11279
11280freebsd1*)
11281 dynamic_linker=no
11282 ;;
11283
11284freebsd*)
11285 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11286 version_type=freebsd-$objformat
11287 case $version_type in
11288 freebsd-elf*)
11289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11290 need_version=no
11291 need_lib_prefix=no
11292 ;;
11293 freebsd-*)
11294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11295 need_version=yes
11296 ;;
11297 esac
11298 shlibpath_var=LD_LIBRARY_PATH
11299 case $host_os in
11300 freebsd2*)
11301 shlibpath_overrides_runpath=yes
11302 ;;
11303 freebsd3.01* | freebsdelf3.01*)
11304 shlibpath_overrides_runpath=yes
11305 hardcode_into_libs=yes
11306 ;;
11307 *) # from 3.2 on
11308 shlibpath_overrides_runpath=no
11309 hardcode_into_libs=yes
11310 ;;
11311 esac
11312 ;;
11313
11314gnu*)
11315 version_type=linux
11316 need_lib_prefix=no
11317 need_version=no
11318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11319 soname_spec='${libname}${release}${shared_ext}$major'
11320 shlibpath_var=LD_LIBRARY_PATH
11321 hardcode_into_libs=yes
11322 ;;
11323
11324hpux9* | hpux10* | hpux11*)
11325 # Give a soname corresponding to the major version so that dld.sl refuses to
11326 # link against other versions.
11327 version_type=sunos
11328 need_lib_prefix=no
11329 need_version=no
11330 case "$host_cpu" in
11331 ia64*)
11332 shrext='.so'
11333 hardcode_into_libs=yes
11334 dynamic_linker="$host_os dld.so"
11335 shlibpath_var=LD_LIBRARY_PATH
11336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11338 soname_spec='${libname}${release}${shared_ext}$major'
11339 if test "X$HPUX_IA64_MODE" = X32; then
11340 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11341 else
11342 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11343 fi
11344 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11345 ;;
11346 hppa*64*)
11347 shrext='.sl'
11348 hardcode_into_libs=yes
11349 dynamic_linker="$host_os dld.sl"
11350 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11353 soname_spec='${libname}${release}${shared_ext}$major'
11354 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11355 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11356 ;;
11357 *)
11358 shrext='.sl'
11359 dynamic_linker="$host_os dld.sl"
11360 shlibpath_var=SHLIB_PATH
11361 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11364 ;;
11365 esac
11366 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11367 postinstall_cmds='chmod 555 $lib'
11368 ;;
11369
11370irix5* | irix6* | nonstopux*)
11371 case $host_os in
11372 nonstopux*) version_type=nonstopux ;;
11373 *)
11374 if test "$lt_cv_prog_gnu_ld" = yes; then
11375 version_type=linux
11376 else
11377 version_type=irix
11378 fi ;;
11379 esac
11380 need_lib_prefix=no
11381 need_version=no
11382 soname_spec='${libname}${release}${shared_ext}$major'
11383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11384 case $host_os in
11385 irix5* | nonstopux*)
11386 libsuff= shlibsuff=
11387 ;;
11388 *)
11389 case $LD in # libtool.m4 will add one of these switches to LD
11390 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11391 libsuff= shlibsuff= libmagic=32-bit;;
11392 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11393 libsuff=32 shlibsuff=N32 libmagic=N32;;
11394 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11395 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11396 *) libsuff= shlibsuff= libmagic=never-match;;
11397 esac
11398 ;;
11399 esac
11400 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11401 shlibpath_overrides_runpath=no
11402 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11403 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11404 hardcode_into_libs=yes
11405 ;;
11406
11407# No shared lib support for Linux oldld, aout, or coff.
11408linux*oldld* | linux*aout* | linux*coff*)
11409 dynamic_linker=no
11410 ;;
11411
11412# This must be Linux ELF.
11413linux*)
11414 version_type=linux
11415 need_lib_prefix=no
11416 need_version=no
11417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11418 soname_spec='${libname}${release}${shared_ext}$major'
11419 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11420 shlibpath_var=LD_LIBRARY_PATH
11421 shlibpath_overrides_runpath=no
11422 # This implies no fast_install, which is unacceptable.
11423 # Some rework will be needed to allow for fast_install
11424 # before this can be enabled.
11425 hardcode_into_libs=yes
11426
11427 # We used to test for /lib/ld.so.1 and disable shared libraries on
11428 # powerpc, because MkLinux only supported shared libraries with the
11429 # GNU dynamic linker. Since this was broken with cross compilers,
11430 # most powerpc-linux boxes support dynamic linking these days and
11431 # people can always --disable-shared, the test was removed, and we
11432 # assume the GNU/Linux dynamic linker is in use.
11433 dynamic_linker='GNU/Linux ld.so'
11434 ;;
11435
11436netbsd*)
11437 version_type=sunos
11438 need_lib_prefix=no
11439 need_version=no
11440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11443 dynamic_linker='NetBSD (a.out) ld.so'
11444 else
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11446 soname_spec='${libname}${release}${shared_ext}$major'
11447 dynamic_linker='NetBSD ld.elf_so'
11448 fi
11449 shlibpath_var=LD_LIBRARY_PATH
11450 shlibpath_overrides_runpath=yes
11451 hardcode_into_libs=yes
11452 ;;
11453
11454newsos6)
11455 version_type=linux
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457 shlibpath_var=LD_LIBRARY_PATH
11458 shlibpath_overrides_runpath=yes
11459 ;;
11460
11461nto-qnx)
11462 version_type=linux
11463 need_lib_prefix=no
11464 need_version=no
11465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11466 soname_spec='${libname}${release}${shared_ext}$major'
11467 shlibpath_var=LD_LIBRARY_PATH
11468 shlibpath_overrides_runpath=yes
11469 ;;
11470
11471openbsd*)
11472 version_type=sunos
11473 need_lib_prefix=no
11474 need_version=no
11475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11476 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11477 shlibpath_var=LD_LIBRARY_PATH
11478 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11479 case $host_os in
11480 openbsd2.[89] | openbsd2.[89].*)
11481 shlibpath_overrides_runpath=no
11482 ;;
11483 *)
11484 shlibpath_overrides_runpath=yes
11485 ;;
11486 esac
11487 else
11488 shlibpath_overrides_runpath=yes
11489 fi
11490 ;;
11491
11492os2*)
11493 libname_spec='$name'
11494 shrext=".dll"
11495 need_lib_prefix=no
11496 library_names_spec='$libname${shared_ext} $libname.a'
11497 dynamic_linker='OS/2 ld.exe'
11498 shlibpath_var=LIBPATH
11499 ;;
11500
11501osf3* | osf4* | osf5*)
11502 version_type=osf
11503 need_lib_prefix=no
11504 need_version=no
11505 soname_spec='${libname}${release}${shared_ext}$major'
11506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11509 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11510 ;;
11511
11512sco3.2v5*)
11513 version_type=osf
11514 soname_spec='${libname}${release}${shared_ext}$major'
11515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11516 shlibpath_var=LD_LIBRARY_PATH
11517 ;;
11518
11519solaris*)
11520 version_type=linux
11521 need_lib_prefix=no
11522 need_version=no
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 shlibpath_var=LD_LIBRARY_PATH
11526 shlibpath_overrides_runpath=yes
11527 hardcode_into_libs=yes
11528 # ldd complains unless libraries are executable
11529 postinstall_cmds='chmod +x $lib'
11530 ;;
11531
11532sunos4*)
11533 version_type=sunos
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11535 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11536 shlibpath_var=LD_LIBRARY_PATH
11537 shlibpath_overrides_runpath=yes
11538 if test "$with_gnu_ld" = yes; then
11539 need_lib_prefix=no
11540 fi
11541 need_version=yes
11542 ;;
11543
11544sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11545 version_type=linux
11546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11547 soname_spec='${libname}${release}${shared_ext}$major'
11548 shlibpath_var=LD_LIBRARY_PATH
11549 case $host_vendor in
11550 sni)
11551 shlibpath_overrides_runpath=no
11552 need_lib_prefix=no
11553 export_dynamic_flag_spec='${wl}-Blargedynsym'
11554 runpath_var=LD_RUN_PATH
11555 ;;
11556 siemens)
11557 need_lib_prefix=no
11558 ;;
11559 motorola)
11560 need_lib_prefix=no
11561 need_version=no
11562 shlibpath_overrides_runpath=no
11563 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11564 ;;
11565 esac
11566 ;;
11567
11568sysv4*MP*)
11569 if test -d /usr/nec ;then
11570 version_type=linux
11571 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11572 soname_spec='$libname${shared_ext}.$major'
11573 shlibpath_var=LD_LIBRARY_PATH
11574 fi
11575 ;;
11576
11577uts4*)
11578 version_type=linux
11579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11580 soname_spec='${libname}${release}${shared_ext}$major'
11581 shlibpath_var=LD_LIBRARY_PATH
11582 ;;
11583
11584*)
11585 dynamic_linker=no
11586 ;;
11587esac
11588echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11589echo "${ECHO_T}$dynamic_linker" >&6
11590test "$dynamic_linker" = no && can_build_shared=no
11591
11592if test "x$enable_dlopen" != xyes; then
11593 enable_dlopen=unknown
11594 enable_dlopen_self=unknown
11595 enable_dlopen_self_static=unknown
11596else
11597 lt_cv_dlopen=no
11598 lt_cv_dlopen_libs=
11599
11600 case $host_os in
11601 beos*)
11602 lt_cv_dlopen="load_add_on"
11603 lt_cv_dlopen_libs=
11604 lt_cv_dlopen_self=yes
11605 ;;
11606
11607 mingw* | pw32*)
11608 lt_cv_dlopen="LoadLibrary"
11609 lt_cv_dlopen_libs=
11610 ;;
11611
11612 cygwin*)
11613 lt_cv_dlopen="dlopen"
11614 lt_cv_dlopen_libs=
11615 ;;
11616
11617 darwin*)
11618 # if libdl is installed we need to link against it
11619 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11620echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11621if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11622 echo $ECHO_N "(cached) $ECHO_C" >&6
11623else
11624 ac_check_lib_save_LIBS=$LIBS
11625LIBS="-ldl $LIBS"
11626cat >conftest.$ac_ext <<_ACEOF
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
Reid Spencer2b51a082004-08-04 00:34:49 +000011650 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011651 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011652 grep -v '^ *+' conftest.er1 >conftest.err
11653 rm -f conftest.er1
11654 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011657 { ac_try='test -z "$ac_cxx_werror_flag"
11658 || test ! -s conftest.err'
11659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11660 (eval $ac_try) 2>&5
11661 ac_status=$?
11662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); }; } &&
11664 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11666 (eval $ac_try) 2>&5
11667 ac_status=$?
11668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11669 (exit $ac_status); }; }; then
11670 ac_cv_lib_dl_dlopen=yes
11671else
11672 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011673sed 's/^/| /' conftest.$ac_ext >&5
11674
John Criswell47fdd832003-07-14 16:52:07 +000011675ac_cv_lib_dl_dlopen=no
11676fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011677rm -f conftest.err conftest.$ac_objext \
11678 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011679LIBS=$ac_check_lib_save_LIBS
11680fi
11681echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11682echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11683if test $ac_cv_lib_dl_dlopen = yes; then
11684 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11685else
11686
11687 lt_cv_dlopen="dyld"
11688 lt_cv_dlopen_libs=
11689 lt_cv_dlopen_self=yes
11690
11691fi
11692
11693 ;;
11694
11695 *)
11696 echo "$as_me:$LINENO: checking for shl_load" >&5
11697echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11698if test "${ac_cv_func_shl_load+set}" = set; then
11699 echo $ECHO_N "(cached) $ECHO_C" >&6
11700else
11701 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011702/* confdefs.h. */
11703_ACEOF
11704cat confdefs.h >>conftest.$ac_ext
11705cat >>conftest.$ac_ext <<_ACEOF
11706/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011707/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11709#define shl_load innocuous_shl_load
11710
John Criswell47fdd832003-07-14 16:52:07 +000011711/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011712 which can conflict with char shl_load (); below.
11713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11714 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011715
John Criswell0c38eaf2003-09-10 15:17:25 +000011716#ifdef __STDC__
11717# include <limits.h>
11718#else
11719# include <assert.h>
11720#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000011721
11722#undef shl_load
11723
John Criswell47fdd832003-07-14 16:52:07 +000011724/* Override any gcc2 internal prototype to avoid an error. */
11725#ifdef __cplusplus
11726extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011727{
John Criswell47fdd832003-07-14 16:52:07 +000011728#endif
11729/* We use char because int might match the return type of a gcc2
11730 builtin and then its argument prototype would still apply. */
11731char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011732/* The GNU C library defines this for functions which it implements
11733 to always fail with ENOSYS. Some functions are actually named
11734 something starting with __ and the normal name is an alias. */
11735#if defined (__stub_shl_load) || defined (__stub___shl_load)
11736choke me
11737#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011738char (*f) () = shl_load;
11739#endif
11740#ifdef __cplusplus
11741}
John Criswell47fdd832003-07-14 16:52:07 +000011742#endif
11743
John Criswell0c38eaf2003-09-10 15:17:25 +000011744int
11745main ()
11746{
11747return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011748 ;
11749 return 0;
11750}
11751_ACEOF
11752rm -f conftest.$ac_objext conftest$ac_exeext
11753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011754 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011755 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011756 grep -v '^ *+' conftest.er1 >conftest.err
11757 rm -f conftest.er1
11758 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011761 { ac_try='test -z "$ac_cxx_werror_flag"
11762 || test ! -s conftest.err'
11763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11764 (eval $ac_try) 2>&5
11765 ac_status=$?
11766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11767 (exit $ac_status); }; } &&
11768 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11770 (eval $ac_try) 2>&5
11771 ac_status=$?
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 (exit $ac_status); }; }; then
11774 ac_cv_func_shl_load=yes
11775else
11776 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011777sed 's/^/| /' conftest.$ac_ext >&5
11778
John Criswell47fdd832003-07-14 16:52:07 +000011779ac_cv_func_shl_load=no
11780fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011781rm -f conftest.err conftest.$ac_objext \
11782 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011783fi
11784echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11785echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11786if test $ac_cv_func_shl_load = yes; then
11787 lt_cv_dlopen="shl_load"
11788else
11789 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11790echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11791if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11793else
11794 ac_check_lib_save_LIBS=$LIBS
11795LIBS="-ldld $LIBS"
11796cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011797/* confdefs.h. */
11798_ACEOF
11799cat confdefs.h >>conftest.$ac_ext
11800cat >>conftest.$ac_ext <<_ACEOF
11801/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011802
11803/* Override any gcc2 internal prototype to avoid an error. */
11804#ifdef __cplusplus
11805extern "C"
11806#endif
11807/* We use char because int might match the return type of a gcc2
11808 builtin and then its argument prototype would still apply. */
11809char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011810int
11811main ()
11812{
11813shl_load ();
11814 ;
11815 return 0;
11816}
11817_ACEOF
11818rm -f conftest.$ac_objext conftest$ac_exeext
11819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011820 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011821 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011822 grep -v '^ *+' conftest.er1 >conftest.err
11823 rm -f conftest.er1
11824 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011827 { ac_try='test -z "$ac_cxx_werror_flag"
11828 || test ! -s conftest.err'
11829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11830 (eval $ac_try) 2>&5
11831 ac_status=$?
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); }; } &&
11834 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11836 (eval $ac_try) 2>&5
11837 ac_status=$?
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); }; }; then
11840 ac_cv_lib_dld_shl_load=yes
11841else
11842 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011843sed 's/^/| /' conftest.$ac_ext >&5
11844
John Criswell47fdd832003-07-14 16:52:07 +000011845ac_cv_lib_dld_shl_load=no
11846fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011847rm -f conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011849LIBS=$ac_check_lib_save_LIBS
11850fi
11851echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11852echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11853if test $ac_cv_lib_dld_shl_load = yes; then
11854 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11855else
11856 echo "$as_me:$LINENO: checking for dlopen" >&5
11857echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11858if test "${ac_cv_func_dlopen+set}" = set; then
11859 echo $ECHO_N "(cached) $ECHO_C" >&6
11860else
11861 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011862/* confdefs.h. */
11863_ACEOF
11864cat confdefs.h >>conftest.$ac_ext
11865cat >>conftest.$ac_ext <<_ACEOF
11866/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011867/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11869#define dlopen innocuous_dlopen
11870
John Criswell47fdd832003-07-14 16:52:07 +000011871/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011872 which can conflict with char dlopen (); below.
11873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11874 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000011875
John Criswell0c38eaf2003-09-10 15:17:25 +000011876#ifdef __STDC__
11877# include <limits.h>
11878#else
11879# include <assert.h>
11880#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000011881
11882#undef dlopen
11883
John Criswell47fdd832003-07-14 16:52:07 +000011884/* Override any gcc2 internal prototype to avoid an error. */
11885#ifdef __cplusplus
11886extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011887{
John Criswell47fdd832003-07-14 16:52:07 +000011888#endif
11889/* We use char because int might match the return type of a gcc2
11890 builtin and then its argument prototype would still apply. */
11891char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011892/* The GNU C library defines this for functions which it implements
11893 to always fail with ENOSYS. Some functions are actually named
11894 something starting with __ and the normal name is an alias. */
11895#if defined (__stub_dlopen) || defined (__stub___dlopen)
11896choke me
11897#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011898char (*f) () = dlopen;
11899#endif
11900#ifdef __cplusplus
11901}
John Criswell47fdd832003-07-14 16:52:07 +000011902#endif
11903
John Criswell0c38eaf2003-09-10 15:17:25 +000011904int
11905main ()
11906{
11907return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011908 ;
11909 return 0;
11910}
11911_ACEOF
11912rm -f conftest.$ac_objext conftest$ac_exeext
11913if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011914 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011915 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011921 { ac_try='test -z "$ac_cxx_werror_flag"
11922 || test ! -s conftest.err'
11923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11924 (eval $ac_try) 2>&5
11925 ac_status=$?
11926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11927 (exit $ac_status); }; } &&
11928 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11930 (eval $ac_try) 2>&5
11931 ac_status=$?
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 (exit $ac_status); }; }; then
11934 ac_cv_func_dlopen=yes
11935else
11936 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011937sed 's/^/| /' conftest.$ac_ext >&5
11938
John Criswell47fdd832003-07-14 16:52:07 +000011939ac_cv_func_dlopen=no
11940fi
Reid Spencer2b51a082004-08-04 00:34:49 +000011941rm -f conftest.err conftest.$ac_objext \
11942 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011943fi
11944echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11945echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11946if test $ac_cv_func_dlopen = yes; then
11947 lt_cv_dlopen="dlopen"
11948else
11949 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11950echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11951if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11953else
11954 ac_check_lib_save_LIBS=$LIBS
11955LIBS="-ldl $LIBS"
11956cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011957/* confdefs.h. */
11958_ACEOF
11959cat confdefs.h >>conftest.$ac_ext
11960cat >>conftest.$ac_ext <<_ACEOF
11961/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011962
11963/* Override any gcc2 internal prototype to avoid an error. */
11964#ifdef __cplusplus
11965extern "C"
11966#endif
11967/* We use char because int might match the return type of a gcc2
11968 builtin and then its argument prototype would still apply. */
11969char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011970int
11971main ()
11972{
11973dlopen ();
11974 ;
11975 return 0;
11976}
11977_ACEOF
11978rm -f conftest.$ac_objext conftest$ac_exeext
11979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000011980 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011981 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000011982 grep -v '^ *+' conftest.er1 >conftest.err
11983 rm -f conftest.er1
11984 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11986 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000011987 { ac_try='test -z "$ac_cxx_werror_flag"
11988 || test ! -s conftest.err'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11991 ac_status=$?
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; } &&
11994 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11996 (eval $ac_try) 2>&5
11997 ac_status=$?
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 ac_cv_lib_dl_dlopen=yes
12001else
12002 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012003sed 's/^/| /' conftest.$ac_ext >&5
12004
John Criswell47fdd832003-07-14 16:52:07 +000012005ac_cv_lib_dl_dlopen=no
12006fi
Reid Spencer2b51a082004-08-04 00:34:49 +000012007rm -f conftest.err conftest.$ac_objext \
12008 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012009LIBS=$ac_check_lib_save_LIBS
12010fi
12011echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12012echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12013if test $ac_cv_lib_dl_dlopen = yes; then
12014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12015else
12016 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12017echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12018if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020else
12021 ac_check_lib_save_LIBS=$LIBS
12022LIBS="-lsvld $LIBS"
12023cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012024/* confdefs.h. */
12025_ACEOF
12026cat confdefs.h >>conftest.$ac_ext
12027cat >>conftest.$ac_ext <<_ACEOF
12028/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012029
12030/* Override any gcc2 internal prototype to avoid an error. */
12031#ifdef __cplusplus
12032extern "C"
12033#endif
12034/* We use char because int might match the return type of a gcc2
12035 builtin and then its argument prototype would still apply. */
12036char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000012037int
12038main ()
12039{
12040dlopen ();
12041 ;
12042 return 0;
12043}
12044_ACEOF
12045rm -f conftest.$ac_objext conftest$ac_exeext
12046if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000012047 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012048 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000012049 grep -v '^ *+' conftest.er1 >conftest.err
12050 rm -f conftest.er1
12051 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12053 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000012054 { ac_try='test -z "$ac_cxx_werror_flag"
12055 || test ! -s conftest.err'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12058 ac_status=$?
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; } &&
12061 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12063 (eval $ac_try) 2>&5
12064 ac_status=$?
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); }; }; then
12067 ac_cv_lib_svld_dlopen=yes
12068else
12069 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012070sed 's/^/| /' conftest.$ac_ext >&5
12071
John Criswell47fdd832003-07-14 16:52:07 +000012072ac_cv_lib_svld_dlopen=no
12073fi
Reid Spencer2b51a082004-08-04 00:34:49 +000012074rm -f conftest.err conftest.$ac_objext \
12075 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012076LIBS=$ac_check_lib_save_LIBS
12077fi
12078echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12079echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12080if test $ac_cv_lib_svld_dlopen = yes; then
12081 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12082else
12083 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12084echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12085if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087else
12088 ac_check_lib_save_LIBS=$LIBS
12089LIBS="-ldld $LIBS"
12090cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000012091/* confdefs.h. */
12092_ACEOF
12093cat confdefs.h >>conftest.$ac_ext
12094cat >>conftest.$ac_ext <<_ACEOF
12095/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000012096
12097/* Override any gcc2 internal prototype to avoid an error. */
12098#ifdef __cplusplus
12099extern "C"
12100#endif
12101/* We use char because int might match the return type of a gcc2
12102 builtin and then its argument prototype would still apply. */
12103char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012104int
12105main ()
12106{
12107dld_link ();
12108 ;
12109 return 0;
12110}
12111_ACEOF
12112rm -f conftest.$ac_objext conftest$ac_exeext
12113if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000012114 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012115 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000012116 grep -v '^ *+' conftest.er1 >conftest.err
12117 rm -f conftest.er1
12118 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000012119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000012121 { ac_try='test -z "$ac_cxx_werror_flag"
12122 || test ! -s conftest.err'
12123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124 (eval $ac_try) 2>&5
12125 ac_status=$?
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); }; } &&
12128 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000012129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12131 ac_status=$?
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; }; then
12134 ac_cv_lib_dld_dld_link=yes
12135else
12136 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000012137sed 's/^/| /' conftest.$ac_ext >&5
12138
John Criswell47fdd832003-07-14 16:52:07 +000012139ac_cv_lib_dld_dld_link=no
12140fi
Reid Spencer2b51a082004-08-04 00:34:49 +000012141rm -f conftest.err conftest.$ac_objext \
12142 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000012143LIBS=$ac_check_lib_save_LIBS
12144fi
12145echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12146echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12147if test $ac_cv_lib_dld_dld_link = yes; then
12148 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12149fi
12150
12151
12152fi
12153
12154
12155fi
12156
12157
12158fi
12159
12160
12161fi
12162
12163
12164fi
12165
12166 ;;
12167 esac
12168
12169 if test "x$lt_cv_dlopen" != xno; then
12170 enable_dlopen=yes
12171 else
12172 enable_dlopen=no
12173 fi
12174
12175 case $lt_cv_dlopen in
12176 dlopen)
12177 save_CPPFLAGS="$CPPFLAGS"
12178 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12179
12180 save_LDFLAGS="$LDFLAGS"
12181 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12182
12183 save_LIBS="$LIBS"
12184 LIBS="$lt_cv_dlopen_libs $LIBS"
12185
12186 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12187echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12188if test "${lt_cv_dlopen_self+set}" = set; then
12189 echo $ECHO_N "(cached) $ECHO_C" >&6
12190else
12191 if test "$cross_compiling" = yes; then :
12192 lt_cv_dlopen_self=cross
12193else
12194 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12195 lt_status=$lt_dlunknown
12196 cat > conftest.$ac_ext <<EOF
Reid Spencer5f285392004-08-24 16:32:21 +000012197#line 12197 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012198#include "confdefs.h"
12199
12200#if HAVE_DLFCN_H
12201#include <dlfcn.h>
12202#endif
12203
12204#include <stdio.h>
12205
12206#ifdef RTLD_GLOBAL
12207# define LT_DLGLOBAL RTLD_GLOBAL
12208#else
12209# ifdef DL_GLOBAL
12210# define LT_DLGLOBAL DL_GLOBAL
12211# else
12212# define LT_DLGLOBAL 0
12213# endif
12214#endif
12215
12216/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12217 find out it does not work in some platform. */
12218#ifndef LT_DLLAZY_OR_NOW
12219# ifdef RTLD_LAZY
12220# define LT_DLLAZY_OR_NOW RTLD_LAZY
12221# else
12222# ifdef DL_LAZY
12223# define LT_DLLAZY_OR_NOW DL_LAZY
12224# else
12225# ifdef RTLD_NOW
12226# define LT_DLLAZY_OR_NOW RTLD_NOW
12227# else
12228# ifdef DL_NOW
12229# define LT_DLLAZY_OR_NOW DL_NOW
12230# else
12231# define LT_DLLAZY_OR_NOW 0
12232# endif
12233# endif
12234# endif
12235# endif
12236#endif
12237
12238#ifdef __cplusplus
12239extern "C" void exit (int);
12240#endif
12241
12242void fnord() { int i=42;}
12243int main ()
12244{
12245 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12246 int status = $lt_dlunknown;
12247
12248 if (self)
12249 {
12250 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12251 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12252 /* dlclose (self); */
12253 }
12254
12255 exit (status);
12256}
12257EOF
12258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12259 (eval $ac_link) 2>&5
12260 ac_status=$?
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12263 (./conftest; exit; ) 2>/dev/null
12264 lt_status=$?
12265 case x$lt_status in
12266 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12267 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12268 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12269 esac
12270 else :
12271 # compilation failed
12272 lt_cv_dlopen_self=no
12273 fi
12274fi
12275rm -fr conftest*
12276
12277
12278fi
12279echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12280echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12281
12282 if test "x$lt_cv_dlopen_self" = xyes; then
12283 LDFLAGS="$LDFLAGS $link_static_flag"
12284 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12285echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12286if test "${lt_cv_dlopen_self_static+set}" = set; then
12287 echo $ECHO_N "(cached) $ECHO_C" >&6
12288else
12289 if test "$cross_compiling" = yes; then :
12290 lt_cv_dlopen_self_static=cross
12291else
12292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12293 lt_status=$lt_dlunknown
12294 cat > conftest.$ac_ext <<EOF
Reid Spencer5f285392004-08-24 16:32:21 +000012295#line 12295 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012296#include "confdefs.h"
12297
12298#if HAVE_DLFCN_H
12299#include <dlfcn.h>
12300#endif
12301
12302#include <stdio.h>
12303
12304#ifdef RTLD_GLOBAL
12305# define LT_DLGLOBAL RTLD_GLOBAL
12306#else
12307# ifdef DL_GLOBAL
12308# define LT_DLGLOBAL DL_GLOBAL
12309# else
12310# define LT_DLGLOBAL 0
12311# endif
12312#endif
12313
12314/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12315 find out it does not work in some platform. */
12316#ifndef LT_DLLAZY_OR_NOW
12317# ifdef RTLD_LAZY
12318# define LT_DLLAZY_OR_NOW RTLD_LAZY
12319# else
12320# ifdef DL_LAZY
12321# define LT_DLLAZY_OR_NOW DL_LAZY
12322# else
12323# ifdef RTLD_NOW
12324# define LT_DLLAZY_OR_NOW RTLD_NOW
12325# else
12326# ifdef DL_NOW
12327# define LT_DLLAZY_OR_NOW DL_NOW
12328# else
12329# define LT_DLLAZY_OR_NOW 0
12330# endif
12331# endif
12332# endif
12333# endif
12334#endif
12335
12336#ifdef __cplusplus
12337extern "C" void exit (int);
12338#endif
12339
12340void fnord() { int i=42;}
12341int main ()
12342{
12343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12344 int status = $lt_dlunknown;
12345
12346 if (self)
12347 {
12348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12349 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12350 /* dlclose (self); */
12351 }
12352
12353 exit (status);
12354}
12355EOF
12356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12357 (eval $ac_link) 2>&5
12358 ac_status=$?
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12361 (./conftest; exit; ) 2>/dev/null
12362 lt_status=$?
12363 case x$lt_status in
12364 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12365 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12366 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12367 esac
12368 else :
12369 # compilation failed
12370 lt_cv_dlopen_self_static=no
12371 fi
12372fi
12373rm -fr conftest*
12374
12375
12376fi
12377echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12378echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12379 fi
12380
12381 CPPFLAGS="$save_CPPFLAGS"
12382 LDFLAGS="$save_LDFLAGS"
12383 LIBS="$save_LIBS"
12384 ;;
12385 esac
12386
12387 case $lt_cv_dlopen_self in
12388 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12389 *) enable_dlopen_self=unknown ;;
12390 esac
12391
12392 case $lt_cv_dlopen_self_static in
12393 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12394 *) enable_dlopen_self_static=unknown ;;
12395 esac
12396fi
12397
12398
12399# The else clause should only fire when bootstrapping the
12400# libtool distribution, otherwise you forgot to ship ltmain.sh
12401# with your package, and you will get complaints that there are
12402# no rules to generate ltmain.sh.
12403if test -f "$ltmain"; then
12404 # See if we are running on zsh, and set the options which allow our commands through
12405 # without removal of \ escapes.
12406 if test -n "${ZSH_VERSION+set}" ; then
12407 setopt NO_GLOB_SUBST
12408 fi
12409 # Now quote all the things that may contain metacharacters while being
12410 # careful not to overquote the AC_SUBSTed values. We take copies of the
12411 # variables and quote the copies for generation of the libtool script.
12412 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12413 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12414 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12415 deplibs_check_method reload_flag reload_cmds need_locks \
12416 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12417 lt_cv_sys_global_symbol_to_c_name_address \
12418 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12419 old_postinstall_cmds old_postuninstall_cmds \
12420 compiler_CXX \
12421 CC_CXX \
12422 LD_CXX \
12423 lt_prog_compiler_wl_CXX \
12424 lt_prog_compiler_pic_CXX \
12425 lt_prog_compiler_static_CXX \
12426 lt_prog_compiler_no_builtin_flag_CXX \
12427 export_dynamic_flag_spec_CXX \
12428 thread_safe_flag_spec_CXX \
12429 whole_archive_flag_spec_CXX \
12430 enable_shared_with_static_runtimes_CXX \
12431 old_archive_cmds_CXX \
12432 old_archive_from_new_cmds_CXX \
12433 predep_objects_CXX \
12434 postdep_objects_CXX \
12435 predeps_CXX \
12436 postdeps_CXX \
12437 compiler_lib_search_path_CXX \
12438 archive_cmds_CXX \
12439 archive_expsym_cmds_CXX \
12440 postinstall_cmds_CXX \
12441 postuninstall_cmds_CXX \
12442 old_archive_from_expsyms_cmds_CXX \
12443 allow_undefined_flag_CXX \
12444 no_undefined_flag_CXX \
12445 export_symbols_cmds_CXX \
12446 hardcode_libdir_flag_spec_CXX \
12447 hardcode_libdir_flag_spec_ld_CXX \
12448 hardcode_libdir_separator_CXX \
12449 hardcode_automatic_CXX \
12450 module_cmds_CXX \
12451 module_expsym_cmds_CXX \
12452 lt_cv_prog_compiler_c_o_CXX \
12453 exclude_expsyms_CXX \
12454 include_expsyms_CXX; do
12455
12456 case $var in
12457 old_archive_cmds_CXX | \
12458 old_archive_from_new_cmds_CXX | \
12459 archive_cmds_CXX | \
12460 archive_expsym_cmds_CXX | \
12461 module_cmds_CXX | \
12462 module_expsym_cmds_CXX | \
12463 old_archive_from_expsyms_cmds_CXX | \
12464 export_symbols_cmds_CXX | \
12465 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12466 postinstall_cmds | postuninstall_cmds | \
12467 old_postinstall_cmds | old_postuninstall_cmds | \
12468 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12469 # Double-quote double-evaled strings.
12470 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12471 ;;
12472 *)
12473 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12474 ;;
12475 esac
12476 done
12477
12478 case $lt_echo in
12479 *'\$0 --fallback-echo"')
12480 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12481 ;;
12482 esac
12483
12484cfgfile="$ofile"
12485
12486 cat <<__EOF__ >> "$cfgfile"
12487# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12488
12489# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12490
12491# Shell to use when invoking shell scripts.
12492SHELL=$lt_SHELL
12493
12494# Whether or not to build shared libraries.
12495build_libtool_libs=$enable_shared
12496
12497# Whether or not to build static libraries.
12498build_old_libs=$enable_static
12499
12500# Whether or not to add -lc for building shared libraries.
12501build_libtool_need_lc=$archive_cmds_need_lc_CXX
12502
12503# Whether or not to disallow shared libs when runtime libs are static
12504allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12505
12506# Whether or not to optimize for fast installation.
12507fast_install=$enable_fast_install
12508
12509# The host system.
12510host_alias=$host_alias
12511host=$host
12512
12513# An echo program that does not interpret backslashes.
12514echo=$lt_echo
12515
12516# The archiver.
12517AR=$lt_AR
12518AR_FLAGS=$lt_AR_FLAGS
12519
12520# A C compiler.
12521LTCC=$lt_LTCC
12522
12523# A language-specific compiler.
12524CC=$lt_compiler_CXX
12525
12526# Is the compiler the GNU C compiler?
12527with_gcc=$GCC_CXX
12528
12529# An ERE matcher.
12530EGREP=$lt_EGREP
12531
12532# The linker used to build libraries.
12533LD=$lt_LD_CXX
12534
12535# Whether we need hard or soft links.
12536LN_S=$lt_LN_S
12537
12538# A BSD-compatible nm program.
12539NM=$lt_NM
12540
12541# A symbol stripping program
12542STRIP=$STRIP
12543
12544# Used to examine libraries when file_magic_cmd begins "file"
12545MAGIC_CMD=$MAGIC_CMD
12546
12547# Used on cygwin: DLL creation program.
12548DLLTOOL="$DLLTOOL"
12549
12550# Used on cygwin: object dumper.
12551OBJDUMP="$OBJDUMP"
12552
12553# Used on cygwin: assembler.
12554AS="$AS"
12555
12556# The name of the directory that contains temporary libtool files.
12557objdir=$objdir
12558
12559# How to create reloadable object files.
12560reload_flag=$lt_reload_flag
12561reload_cmds=$lt_reload_cmds
12562
12563# How to pass a linker flag through the compiler.
12564wl=$lt_lt_prog_compiler_wl_CXX
12565
12566# Object file suffix (normally "o").
12567objext="$ac_objext"
12568
12569# Old archive suffix (normally "a").
12570libext="$libext"
12571
12572# Shared library suffix (normally ".so").
12573shrext='$shrext'
12574
12575# Executable file suffix (normally "").
12576exeext="$exeext"
12577
12578# Additional compiler flags for building library objects.
12579pic_flag=$lt_lt_prog_compiler_pic_CXX
12580pic_mode=$pic_mode
12581
12582# What is the maximum length of a command?
12583max_cmd_len=$lt_cv_sys_max_cmd_len
12584
12585# Does compiler simultaneously support -c and -o options?
12586compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12587
12588# Must we lock files when doing compilation ?
12589need_locks=$lt_need_locks
12590
12591# Do we need the lib prefix for modules?
12592need_lib_prefix=$need_lib_prefix
12593
12594# Do we need a version for libraries?
12595need_version=$need_version
12596
12597# Whether dlopen is supported.
12598dlopen_support=$enable_dlopen
12599
12600# Whether dlopen of programs is supported.
12601dlopen_self=$enable_dlopen_self
12602
12603# Whether dlopen of statically linked programs is supported.
12604dlopen_self_static=$enable_dlopen_self_static
12605
12606# Compiler flag to prevent dynamic linking.
12607link_static_flag=$lt_lt_prog_compiler_static_CXX
12608
12609# Compiler flag to turn off builtin functions.
12610no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12611
12612# Compiler flag to allow reflexive dlopens.
12613export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12614
12615# Compiler flag to generate shared objects directly from archives.
12616whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12617
12618# Compiler flag to generate thread-safe objects.
12619thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12620
12621# Library versioning type.
12622version_type=$version_type
12623
12624# Format of library name prefix.
12625libname_spec=$lt_libname_spec
12626
12627# List of archive names. First name is the real one, the rest are links.
12628# The last name is the one that the linker finds with -lNAME.
12629library_names_spec=$lt_library_names_spec
12630
12631# The coded name of the library, if different from the real name.
12632soname_spec=$lt_soname_spec
12633
12634# Commands used to build and install an old-style archive.
12635RANLIB=$lt_RANLIB
12636old_archive_cmds=$lt_old_archive_cmds_CXX
12637old_postinstall_cmds=$lt_old_postinstall_cmds
12638old_postuninstall_cmds=$lt_old_postuninstall_cmds
12639
12640# Create an old-style archive from a shared archive.
12641old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12642
12643# Create a temporary old-style archive to link instead of a shared archive.
12644old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12645
12646# Commands used to build and install a shared archive.
12647archive_cmds=$lt_archive_cmds_CXX
12648archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12649postinstall_cmds=$lt_postinstall_cmds
12650postuninstall_cmds=$lt_postuninstall_cmds
12651
12652# Commands used to build a loadable module (assumed same as above if empty)
12653module_cmds=$lt_module_cmds_CXX
12654module_expsym_cmds=$lt_module_expsym_cmds_CXX
12655
12656# Commands to strip libraries.
12657old_striplib=$lt_old_striplib
12658striplib=$lt_striplib
12659
12660# Dependencies to place before the objects being linked to create a
12661# shared library.
12662predep_objects=$lt_predep_objects_CXX
12663
12664# Dependencies to place after the objects being linked to create a
12665# shared library.
12666postdep_objects=$lt_postdep_objects_CXX
12667
12668# Dependencies to place before the objects being linked to create a
12669# shared library.
12670predeps=$lt_predeps_CXX
12671
12672# Dependencies to place after the objects being linked to create a
12673# shared library.
12674postdeps=$lt_postdeps_CXX
12675
12676# The library search path used internally by the compiler when linking
12677# a shared library.
12678compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12679
12680# Method to check whether dependent libraries are shared objects.
12681deplibs_check_method=$lt_deplibs_check_method
12682
12683# Command to use when deplibs_check_method == file_magic.
12684file_magic_cmd=$lt_file_magic_cmd
12685
12686# Flag that allows shared libraries with undefined symbols to be built.
12687allow_undefined_flag=$lt_allow_undefined_flag_CXX
12688
12689# Flag that forces no undefined symbols.
12690no_undefined_flag=$lt_no_undefined_flag_CXX
12691
12692# Commands used to finish a libtool library installation in a directory.
12693finish_cmds=$lt_finish_cmds
12694
12695# Same as above, but a single script fragment to be evaled but not shown.
12696finish_eval=$lt_finish_eval
12697
12698# Take the output of nm and produce a listing of raw symbols and C names.
12699global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12700
12701# Transform the output of nm in a proper C declaration
12702global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12703
12704# Transform the output of nm in a C name address pair
12705global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12706
12707# This is the shared library runtime path variable.
12708runpath_var=$runpath_var
12709
12710# This is the shared library path variable.
12711shlibpath_var=$shlibpath_var
12712
12713# Is shlibpath searched before the hard-coded library search path?
12714shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12715
12716# How to hardcode a shared library path into an executable.
12717hardcode_action=$hardcode_action_CXX
12718
12719# Whether we should hardcode library paths into libraries.
12720hardcode_into_libs=$hardcode_into_libs
12721
12722# Flag to hardcode \$libdir into a binary during linking.
12723# This must work even if \$libdir does not exist.
12724hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12725
12726# If ld is used when linking, flag to hardcode \$libdir into
12727# a binary during linking. This must work even if \$libdir does
12728# not exist.
12729hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12730
12731# Whether we need a single -rpath flag with a separated argument.
12732hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12733
12734# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12735# resulting binary.
12736hardcode_direct=$hardcode_direct_CXX
12737
12738# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12739# resulting binary.
12740hardcode_minus_L=$hardcode_minus_L_CXX
12741
12742# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12743# the resulting binary.
12744hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12745
12746# Set to yes if building a shared library automatically hardcodes DIR into the library
12747# and all subsequent libraries and executables linked against it.
12748hardcode_automatic=$hardcode_automatic_CXX
12749
12750# Variables whose values should be saved in libtool wrapper scripts and
12751# restored at relink time.
12752variables_saved_for_relink="$variables_saved_for_relink"
12753
12754# Whether libtool must link a program against all its dependency libraries.
12755link_all_deplibs=$link_all_deplibs_CXX
12756
12757# Compile-time system search path for libraries
12758sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12759
12760# Run-time system search path for libraries
12761sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12762
12763# Fix the shell variable \$srcfile for the compiler.
12764fix_srcfile_path="$fix_srcfile_path_CXX"
12765
12766# Set to yes if exported symbols are required.
12767always_export_symbols=$always_export_symbols_CXX
12768
12769# The commands to list exported symbols.
12770export_symbols_cmds=$lt_export_symbols_cmds_CXX
12771
12772# The commands to extract the exported symbol list from a shared archive.
12773extract_expsyms_cmds=$lt_extract_expsyms_cmds
12774
12775# Symbols that should not be listed in the preloaded symbols.
12776exclude_expsyms=$lt_exclude_expsyms_CXX
12777
12778# Symbols that must always be exported.
12779include_expsyms=$lt_include_expsyms_CXX
12780
12781# ### END LIBTOOL TAG CONFIG: $tagname
12782
12783__EOF__
12784
12785
12786else
12787 # If there is no Makefile yet, we rely on a make rule to execute
12788 # `config.status --recheck' to rerun these tests and create the
12789 # libtool script then.
12790 test -f Makefile && make "$ltmain"
12791fi
12792
12793
12794ac_ext=c
12795ac_cpp='$CPP $CPPFLAGS'
12796ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12797ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12798ac_compiler_gnu=$ac_cv_c_compiler_gnu
12799
12800CC=$lt_save_CC
12801LDCXX=$LD
12802LD=$lt_save_LD
12803GCC=$lt_save_GCC
12804with_gnu_ldcxx=$with_gnu_ld
12805with_gnu_ld=$lt_save_with_gnu_ld
12806lt_cv_path_LDCXX=$lt_cv_path_LD
12807lt_cv_path_LD=$lt_save_path_LD
12808lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12809lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12810
12811 else
12812 tagname=""
12813 fi
12814 ;;
12815
12816 F77)
12817 if test -n "$F77" && test "X$F77" != "Xno"; then
12818
12819ac_ext=f
12820ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12821ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12822ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12823
12824
12825archive_cmds_need_lc_F77=no
12826allow_undefined_flag_F77=
12827always_export_symbols_F77=no
12828archive_expsym_cmds_F77=
12829export_dynamic_flag_spec_F77=
12830hardcode_direct_F77=no
12831hardcode_libdir_flag_spec_F77=
12832hardcode_libdir_flag_spec_ld_F77=
12833hardcode_libdir_separator_F77=
12834hardcode_minus_L_F77=no
12835hardcode_automatic_F77=no
12836module_cmds_F77=
12837module_expsym_cmds_F77=
12838link_all_deplibs_F77=unknown
12839old_archive_cmds_F77=$old_archive_cmds
12840no_undefined_flag_F77=
12841whole_archive_flag_spec_F77=
12842enable_shared_with_static_runtimes_F77=no
12843
12844# Source file extension for f77 test sources.
12845ac_ext=f
12846
12847# Object file extension for compiled f77 test sources.
12848objext=o
12849objext_F77=$objext
12850
12851# Code to be used in simple compile tests
12852lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12853
12854# Code to be used in simple link tests
12855lt_simple_link_test_code=" program t\n end\n"
12856
12857# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12858
12859# If no C compiler was specified, use CC.
12860LTCC=${LTCC-"$CC"}
12861
12862# Allow CC to be a program name with arguments.
12863compiler=$CC
12864
12865
12866# Allow CC to be a program name with arguments.
12867lt_save_CC="$CC"
12868CC=${F77-"f77"}
12869compiler=$CC
12870compiler_F77=$CC
12871cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12872
12873echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12874echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12875echo "$as_me:$LINENO: result: $can_build_shared" >&5
12876echo "${ECHO_T}$can_build_shared" >&6
12877
12878echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12879echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12880test "$can_build_shared" = "no" && enable_shared=no
12881
12882# On AIX, shared libraries and static libraries use the same namespace, and
12883# are all built from PIC.
12884case "$host_os" in
12885aix3*)
12886 test "$enable_shared" = yes && enable_static=no
12887 if test -n "$RANLIB"; then
12888 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12889 postinstall_cmds='$RANLIB $lib'
12890 fi
12891 ;;
12892aix4*)
12893 test "$enable_shared" = yes && enable_static=no
12894 ;;
12895esac
12896echo "$as_me:$LINENO: result: $enable_shared" >&5
12897echo "${ECHO_T}$enable_shared" >&6
12898
12899echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12900echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12901# Make sure either enable_shared or enable_static is yes.
12902test "$enable_shared" = yes || enable_static=yes
12903echo "$as_me:$LINENO: result: $enable_static" >&5
12904echo "${ECHO_T}$enable_static" >&6
12905
12906test "$ld_shlibs_F77" = no && can_build_shared=no
12907
12908GCC_F77="$G77"
12909LD_F77="$LD"
12910
12911lt_prog_compiler_wl_F77=
12912lt_prog_compiler_pic_F77=
12913lt_prog_compiler_static_F77=
12914
12915echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12916echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12917
12918 if test "$GCC" = yes; then
12919 lt_prog_compiler_wl_F77='-Wl,'
12920 lt_prog_compiler_static_F77='-static'
12921
12922 case $host_os in
12923 aix*)
12924 # All AIX code is PIC.
12925 if test "$host_cpu" = ia64; then
12926 # AIX 5 now supports IA64 processor
12927 lt_prog_compiler_static_F77='-Bstatic'
12928 fi
12929 ;;
12930
12931 amigaos*)
12932 # FIXME: we need at least 68020 code to build shared libraries, but
12933 # adding the `-m68020' flag to GCC prevents building anything better,
12934 # like `-m68040'.
12935 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12936 ;;
12937
12938 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12939 # PIC is the default for these OSes.
12940 ;;
12941
12942 mingw* | pw32* | os2*)
12943 # This hack is so that the source file can tell whether it is being
12944 # built for inclusion in a dll (and should export symbols for example).
12945 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12946 ;;
12947
12948 darwin* | rhapsody*)
12949 # PIC is the default on this platform
12950 # Common symbols not allowed in MH_DYLIB files
12951 lt_prog_compiler_pic_F77='-fno-common'
12952 ;;
12953
12954 msdosdjgpp*)
12955 # Just because we use GCC doesn't mean we suddenly get shared libraries
12956 # on systems that don't support them.
12957 lt_prog_compiler_can_build_shared_F77=no
12958 enable_shared=no
12959 ;;
12960
12961 sysv4*MP*)
12962 if test -d /usr/nec; then
12963 lt_prog_compiler_pic_F77=-Kconform_pic
12964 fi
12965 ;;
12966
12967 hpux*)
12968 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12969 # not for PA HP-UX.
12970 case "$host_cpu" in
12971 hppa*64*|ia64*)
12972 # +Z the default
12973 ;;
12974 *)
12975 lt_prog_compiler_pic_F77='-fPIC'
12976 ;;
12977 esac
12978 ;;
12979
12980 *)
12981 lt_prog_compiler_pic_F77='-fPIC'
12982 ;;
12983 esac
12984 else
12985 # PORTME Check for flag to pass linker flags through the system compiler.
12986 case $host_os in
12987 aix*)
12988 lt_prog_compiler_wl_F77='-Wl,'
12989 if test "$host_cpu" = ia64; then
12990 # AIX 5 now supports IA64 processor
12991 lt_prog_compiler_static_F77='-Bstatic'
12992 else
12993 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12994 fi
12995 ;;
12996
12997 mingw* | pw32* | os2*)
12998 # This hack is so that the source file can tell whether it is being
12999 # built for inclusion in a dll (and should export symbols for example).
13000 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13001 ;;
13002
13003 hpux9* | hpux10* | hpux11*)
13004 lt_prog_compiler_wl_F77='-Wl,'
13005 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13006 # not for PA HP-UX.
13007 case "$host_cpu" in
13008 hppa*64*|ia64*)
13009 # +Z the default
13010 ;;
13011 *)
13012 lt_prog_compiler_pic_F77='+Z'
13013 ;;
13014 esac
13015 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13016 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13017 ;;
13018
13019 irix5* | irix6* | nonstopux*)
13020 lt_prog_compiler_wl_F77='-Wl,'
13021 # PIC (with -KPIC) is the default.
13022 lt_prog_compiler_static_F77='-non_shared'
13023 ;;
13024
13025 newsos6)
13026 lt_prog_compiler_pic_F77='-KPIC'
13027 lt_prog_compiler_static_F77='-Bstatic'
13028 ;;
13029
13030 linux*)
13031 case $CC in
13032 icc|ecc)
13033 lt_prog_compiler_wl_F77='-Wl,'
13034 lt_prog_compiler_pic_F77='-KPIC'
13035 lt_prog_compiler_static_F77='-static'
13036 ;;
13037 ccc)
13038 lt_prog_compiler_wl_F77='-Wl,'
13039 # All Alpha code is PIC.
13040 lt_prog_compiler_static_F77='-non_shared'
13041 ;;
13042 esac
13043 ;;
13044
13045 osf3* | osf4* | osf5*)
13046 lt_prog_compiler_wl_F77='-Wl,'
13047 # All OSF/1 code is PIC.
13048 lt_prog_compiler_static_F77='-non_shared'
13049 ;;
13050
13051 sco3.2v5*)
13052 lt_prog_compiler_pic_F77='-Kpic'
13053 lt_prog_compiler_static_F77='-dn'
13054 ;;
13055
13056 solaris*)
13057 lt_prog_compiler_wl_F77='-Wl,'
13058 lt_prog_compiler_pic_F77='-KPIC'
13059 lt_prog_compiler_static_F77='-Bstatic'
13060 ;;
13061
13062 sunos4*)
13063 lt_prog_compiler_wl_F77='-Qoption ld '
13064 lt_prog_compiler_pic_F77='-PIC'
13065 lt_prog_compiler_static_F77='-Bstatic'
13066 ;;
13067
13068 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13069 lt_prog_compiler_wl_F77='-Wl,'
13070 lt_prog_compiler_pic_F77='-KPIC'
13071 lt_prog_compiler_static_F77='-Bstatic'
13072 ;;
13073
13074 sysv4*MP*)
13075 if test -d /usr/nec ;then
13076 lt_prog_compiler_pic_F77='-Kconform_pic'
13077 lt_prog_compiler_static_F77='-Bstatic'
13078 fi
13079 ;;
13080
13081 uts4*)
13082 lt_prog_compiler_pic_F77='-pic'
13083 lt_prog_compiler_static_F77='-Bstatic'
13084 ;;
13085
13086 *)
13087 lt_prog_compiler_can_build_shared_F77=no
13088 ;;
13089 esac
13090 fi
13091
13092echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13093echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13094
13095#
13096# Check to make sure the PIC flag actually works.
13097#
13098if test -n "$lt_prog_compiler_pic_F77"; then
13099 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13100echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13101if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13102 echo $ECHO_N "(cached) $ECHO_C" >&6
13103else
13104 lt_prog_compiler_pic_works_F77=no
13105 ac_outfile=conftest.$ac_objext
13106 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13107 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13108 # Insert the option either (1) after the last *FLAGS variable, or
13109 # (2) before a word containing "conftest.", or (3) at the end.
13110 # Note that $ac_compile itself does not contain backslashes and begins
13111 # with a dollar sign (not a hyphen), so the echo should work correctly.
13112 # The option is referenced via a variable to avoid confusing sed.
13113 lt_compile=`echo "$ac_compile" | $SED \
13114 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13116 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5f285392004-08-24 16:32:21 +000013117 (eval echo "\"\$as_me:13117: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013118 (eval "$lt_compile" 2>conftest.err)
13119 ac_status=$?
13120 cat conftest.err >&5
Reid Spencer5f285392004-08-24 16:32:21 +000013121 echo "$as_me:13121: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013122 if (exit $ac_status) && test -s "$ac_outfile"; then
13123 # The compiler can only warn and ignore the option if not recognized
13124 # So say no if there are warnings
13125 if test ! -s conftest.err; then
13126 lt_prog_compiler_pic_works_F77=yes
13127 fi
13128 fi
13129 $rm conftest*
13130
13131fi
13132echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13133echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13134
13135if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13136 case $lt_prog_compiler_pic_F77 in
13137 "" | " "*) ;;
13138 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13139 esac
13140else
13141 lt_prog_compiler_pic_F77=
13142 lt_prog_compiler_can_build_shared_F77=no
13143fi
13144
13145fi
13146case "$host_os" in
13147 # For platforms which do not support PIC, -DPIC is meaningless:
13148 *djgpp*)
13149 lt_prog_compiler_pic_F77=
13150 ;;
13151 *)
13152 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13153 ;;
13154esac
13155
13156echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13157echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13158if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160else
13161 lt_cv_prog_compiler_c_o_F77=no
13162 $rm -r conftest 2>/dev/null
13163 mkdir conftest
13164 cd conftest
13165 mkdir out
13166 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13167
13168 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13169 # that will create temporary files in the current directory regardless of
13170 # the output directory. Thus, making CWD read-only will cause this test
13171 # to fail, enabling locking or at least warning the user not to do parallel
13172 # builds.
13173 chmod -w .
13174
13175 lt_compiler_flag="-o out/conftest2.$ac_objext"
13176 # Insert the option either (1) after the last *FLAGS variable, or
13177 # (2) before a word containing "conftest.", or (3) at the end.
13178 # Note that $ac_compile itself does not contain backslashes and begins
13179 # with a dollar sign (not a hyphen), so the echo should work correctly.
13180 lt_compile=`echo "$ac_compile" | $SED \
13181 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13182 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13183 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5f285392004-08-24 16:32:21 +000013184 (eval echo "\"\$as_me:13184: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013185 (eval "$lt_compile" 2>out/conftest.err)
13186 ac_status=$?
13187 cat out/conftest.err >&5
Reid Spencer5f285392004-08-24 16:32:21 +000013188 echo "$as_me:13188: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013189 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13190 then
13191 # The compiler can only warn and ignore the option if not recognized
13192 # So say no if there are warnings
13193 if test ! -s out/conftest.err; then
13194 lt_cv_prog_compiler_c_o_F77=yes
13195 fi
13196 fi
13197 chmod u+w .
13198 $rm conftest* out/*
13199 rmdir out
13200 cd ..
13201 rmdir conftest
13202 $rm conftest*
13203
13204fi
13205echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13206echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13207
13208
13209hard_links="nottested"
13210if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13211 # do not overwrite the value of need_locks provided by the user
13212 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13213echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13214 hard_links=yes
13215 $rm conftest*
13216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13217 touch conftest.a
13218 ln conftest.a conftest.b 2>&5 || hard_links=no
13219 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13220 echo "$as_me:$LINENO: result: $hard_links" >&5
13221echo "${ECHO_T}$hard_links" >&6
13222 if test "$hard_links" = no; then
13223 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13224echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13225 need_locks=warn
13226 fi
13227else
13228 need_locks=no
13229fi
13230
13231echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13232echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13233
13234 runpath_var=
13235 allow_undefined_flag_F77=
13236 enable_shared_with_static_runtimes_F77=no
13237 archive_cmds_F77=
13238 archive_expsym_cmds_F77=
13239 old_archive_From_new_cmds_F77=
13240 old_archive_from_expsyms_cmds_F77=
13241 export_dynamic_flag_spec_F77=
13242 whole_archive_flag_spec_F77=
13243 thread_safe_flag_spec_F77=
13244 hardcode_libdir_flag_spec_F77=
13245 hardcode_libdir_flag_spec_ld_F77=
13246 hardcode_libdir_separator_F77=
13247 hardcode_direct_F77=no
13248 hardcode_minus_L_F77=no
13249 hardcode_shlibpath_var_F77=unsupported
13250 link_all_deplibs_F77=unknown
13251 hardcode_automatic_F77=no
13252 module_cmds_F77=
13253 module_expsym_cmds_F77=
13254 always_export_symbols_F77=no
13255 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13256 # include_expsyms should be a list of space-separated symbols to be *always*
13257 # included in the symbol list
13258 include_expsyms_F77=
13259 # exclude_expsyms can be an extended regexp of symbols to exclude
13260 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13261 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13262 # as well as any symbol that contains `d'.
13263 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13264 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13265 # platforms (ab)use it in PIC code, but their linkers get confused if
13266 # the symbol is explicitly referenced. Since portable code cannot
13267 # rely on this symbol name, it's probably fine to never include it in
13268 # preloaded symbol tables.
13269 extract_expsyms_cmds=
13270
13271 case $host_os in
13272 cygwin* | mingw* | pw32*)
13273 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13274 # When not using gcc, we currently assume that we are using
13275 # Microsoft Visual C++.
13276 if test "$GCC" != yes; then
13277 with_gnu_ld=no
13278 fi
13279 ;;
13280 openbsd*)
13281 with_gnu_ld=no
13282 ;;
13283 esac
13284
13285 ld_shlibs_F77=yes
13286 if test "$with_gnu_ld" = yes; then
13287 # If archive_cmds runs LD, not CC, wlarc should be empty
13288 wlarc='${wl}'
13289
13290 # See if GNU ld supports shared libraries.
13291 case $host_os in
13292 aix3* | aix4* | aix5*)
13293 # On AIX/PPC, the GNU linker is very broken
13294 if test "$host_cpu" != ia64; then
13295 ld_shlibs_F77=no
13296 cat <<EOF 1>&2
13297
13298*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13299*** to be unable to reliably create shared libraries on AIX.
13300*** Therefore, libtool is disabling shared libraries support. If you
13301*** really care for shared libraries, you may want to modify your PATH
13302*** so that a non-GNU linker is found, and then restart.
13303
13304EOF
13305 fi
13306 ;;
13307
13308 amigaos*)
13309 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13310 hardcode_libdir_flag_spec_F77='-L$libdir'
13311 hardcode_minus_L_F77=yes
13312
13313 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13314 # that the semantics of dynamic libraries on AmigaOS, at least up
13315 # to version 4, is to share data among multiple programs linked
13316 # with the same dynamic library. Since this doesn't match the
13317 # behavior of shared libraries on other platforms, we can't use
13318 # them.
13319 ld_shlibs_F77=no
13320 ;;
13321
13322 beos*)
13323 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13324 allow_undefined_flag_F77=unsupported
13325 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13326 # support --undefined. This deserves some investigation. FIXME
13327 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13328 else
13329 ld_shlibs_F77=no
13330 fi
13331 ;;
13332
13333 cygwin* | mingw* | pw32*)
13334 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13335 # as there is no search path for DLLs.
13336 hardcode_libdir_flag_spec_F77='-L$libdir'
13337 allow_undefined_flag_F77=unsupported
13338 always_export_symbols_F77=no
13339 enable_shared_with_static_runtimes_F77=yes
13340 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13341
13342 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13343 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13344 # If the export-symbols file already is a .def file (1st line
13345 # is EXPORTS), use it as is; otherwise, prepend...
13346 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13347 cp $export_symbols $output_objdir/$soname.def;
13348 else
13349 echo EXPORTS > $output_objdir/$soname.def;
13350 cat $export_symbols >> $output_objdir/$soname.def;
13351 fi~
13352 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13353 else
13354 ld_shlibs=no
13355 fi
13356 ;;
13357
13358 netbsd*)
13359 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13360 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13361 wlarc=
13362 else
13363 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13364 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13365 fi
13366 ;;
13367
13368 solaris* | sysv5*)
13369 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13370 ld_shlibs_F77=no
13371 cat <<EOF 1>&2
13372
13373*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13374*** create shared libraries on Solaris systems. Therefore, libtool
13375*** is disabling shared libraries support. We urge you to upgrade GNU
13376*** binutils to release 2.9.1 or newer. Another option is to modify
13377*** your PATH or compiler configuration so that the native linker is
13378*** used, and then restart.
13379
13380EOF
13381 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13382 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13383 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13384 else
13385 ld_shlibs_F77=no
13386 fi
13387 ;;
13388
13389 sunos4*)
13390 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13391 wlarc=
13392 hardcode_direct_F77=yes
13393 hardcode_shlibpath_var_F77=no
13394 ;;
13395
13396 *)
13397 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13398 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13399 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13400 else
13401 ld_shlibs_F77=no
13402 fi
13403 ;;
13404 esac
13405
13406 if test "$ld_shlibs_F77" = yes; then
13407 runpath_var=LD_RUN_PATH
13408 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13409 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13410 # ancient GNU ld didn't support --whole-archive et. al.
13411 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13412 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13413 else
13414 whole_archive_flag_spec_F77=
13415 fi
13416 fi
13417 else
13418 # PORTME fill in a description of your system's linker (not GNU ld)
13419 case $host_os in
13420 aix3*)
13421 allow_undefined_flag_F77=unsupported
13422 always_export_symbols_F77=yes
13423 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13424 # Note: this linker hardcodes the directories in LIBPATH if there
13425 # are no directories specified by -L.
13426 hardcode_minus_L_F77=yes
13427 if test "$GCC" = yes && test -z "$link_static_flag"; then
13428 # Neither direct hardcoding nor static linking is supported with a
13429 # broken collect2.
13430 hardcode_direct_F77=unsupported
13431 fi
13432 ;;
13433
13434 aix4* | aix5*)
13435 if test "$host_cpu" = ia64; then
13436 # On IA64, the linker does run time linking by default, so we don't
13437 # have to do anything special.
13438 aix_use_runtimelinking=no
13439 exp_sym_flag='-Bexport'
13440 no_entry_flag=""
13441 else
13442 # If we're using GNU nm, then we don't want the "-C" option.
13443 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13444 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13445 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'
13446 else
13447 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'
13448 fi
13449 aix_use_runtimelinking=no
13450
13451 # Test if we are trying to use run time linking or normal
13452 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13453 # need to do runtime linking.
13454 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13455 for ld_flag in $LDFLAGS; do
13456 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13457 aix_use_runtimelinking=yes
13458 break
13459 fi
13460 done
13461 esac
13462
13463 exp_sym_flag='-bexport'
13464 no_entry_flag='-bnoentry'
13465 fi
13466
13467 # When large executables or shared objects are built, AIX ld can
13468 # have problems creating the table of contents. If linking a library
13469 # or program results in "error TOC overflow" add -mminimal-toc to
13470 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13471 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13472
13473 archive_cmds_F77=''
13474 hardcode_direct_F77=yes
13475 hardcode_libdir_separator_F77=':'
13476 link_all_deplibs_F77=yes
13477
13478 if test "$GCC" = yes; then
13479 case $host_os in aix4.012|aix4.012.*)
13480 # We only want to do this on AIX 4.2 and lower, the check
13481 # below for broken collect2 doesn't work under 4.3+
13482 collect2name=`${CC} -print-prog-name=collect2`
13483 if test -f "$collect2name" && \
13484 strings "$collect2name" | grep resolve_lib_name >/dev/null
13485 then
13486 # We have reworked collect2
13487 hardcode_direct_F77=yes
13488 else
13489 # We have old collect2
13490 hardcode_direct_F77=unsupported
13491 # It fails to find uninstalled libraries when the uninstalled
13492 # path is not listed in the libpath. Setting hardcode_minus_L
13493 # to unsupported forces relinking
13494 hardcode_minus_L_F77=yes
13495 hardcode_libdir_flag_spec_F77='-L$libdir'
13496 hardcode_libdir_separator_F77=
13497 fi
13498 esac
13499 shared_flag='-shared'
13500 else
13501 # not using gcc
13502 if test "$host_cpu" = ia64; then
13503 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13504 # chokes on -Wl,-G. The following line is correct:
13505 shared_flag='-G'
13506 else
13507 if test "$aix_use_runtimelinking" = yes; then
13508 shared_flag='${wl}-G'
13509 else
13510 shared_flag='${wl}-bM:SRE'
13511 fi
13512 fi
13513 fi
13514
13515 # It seems that -bexpall does not export symbols beginning with
13516 # underscore (_), so it is better to generate a list of symbols to export.
13517 always_export_symbols_F77=yes
13518 if test "$aix_use_runtimelinking" = yes; then
13519 # Warning - without using the other runtime loading flags (-brtl),
13520 # -berok will link without error, but may produce a broken library.
13521 allow_undefined_flag_F77='-berok'
13522 # Determine the default libpath from the value encoded in an empty executable.
13523 cat >conftest.$ac_ext <<_ACEOF
13524 program main
13525
13526 end
13527_ACEOF
13528rm -f conftest.$ac_objext conftest$ac_exeext
13529if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000013530 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013531 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000013532 grep -v '^ *+' conftest.er1 >conftest.err
13533 rm -f conftest.er1
13534 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13536 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000013537 { ac_try='test -z "$ac_f77_werror_flag"
13538 || test ! -s conftest.err'
13539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13540 (eval $ac_try) 2>&5
13541 ac_status=$?
13542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13543 (exit $ac_status); }; } &&
13544 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13546 (eval $ac_try) 2>&5
13547 ac_status=$?
13548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13549 (exit $ac_status); }; }; then
13550
13551aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13552}'`
13553# Check for a 64-bit object if we didn't find anything.
13554if 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; }
13555}'`; fi
13556else
13557 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013558sed 's/^/| /' conftest.$ac_ext >&5
13559
John Criswell47fdd832003-07-14 16:52:07 +000013560fi
Reid Spencer2b51a082004-08-04 00:34:49 +000013561rm -f conftest.err conftest.$ac_objext \
13562 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013563if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13564
13565 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13566 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"
13567 else
13568 if test "$host_cpu" = ia64; then
13569 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13570 allow_undefined_flag_F77="-z nodefs"
13571 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"
13572 else
13573 # Determine the default libpath from the value encoded in an empty executable.
13574 cat >conftest.$ac_ext <<_ACEOF
13575 program main
13576
13577 end
13578_ACEOF
13579rm -f conftest.$ac_objext conftest$ac_exeext
13580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000013581 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013582 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000013583 grep -v '^ *+' conftest.er1 >conftest.err
13584 rm -f conftest.er1
13585 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000013588 { ac_try='test -z "$ac_f77_werror_flag"
13589 || test ! -s conftest.err'
13590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13591 (eval $ac_try) 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; } &&
13595 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13597 (eval $ac_try) 2>&5
13598 ac_status=$?
13599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600 (exit $ac_status); }; }; then
13601
13602aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13603}'`
13604# Check for a 64-bit object if we didn't find anything.
13605if 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; }
13606}'`; fi
13607else
13608 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013609sed 's/^/| /' conftest.$ac_ext >&5
13610
John Criswell47fdd832003-07-14 16:52:07 +000013611fi
Reid Spencer2b51a082004-08-04 00:34:49 +000013612rm -f conftest.err conftest.$ac_objext \
13613 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013614if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13615
13616 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13617 # Warning - without using the other run time loading flags,
13618 # -berok will link without error, but may produce a broken library.
13619 no_undefined_flag_F77=' ${wl}-bernotok'
13620 allow_undefined_flag_F77=' ${wl}-berok'
13621 # -bexpall does not export symbols beginning with underscore (_)
13622 always_export_symbols_F77=yes
13623 # Exported symbols can be pulled into shared objects from archives
13624 whole_archive_flag_spec_F77=' '
13625 archive_cmds_need_lc_F77=yes
13626 # This is similar to how AIX traditionally builds it's shared libraries.
13627 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13628 fi
13629 fi
13630 ;;
13631
13632 amigaos*)
13633 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
13634 hardcode_libdir_flag_spec_F77='-L$libdir'
13635 hardcode_minus_L_F77=yes
13636 # see comment about different semantics on the GNU ld section
13637 ld_shlibs_F77=no
13638 ;;
13639
13640 bsdi4*)
13641 export_dynamic_flag_spec_F77=-rdynamic
13642 ;;
13643
13644 cygwin* | mingw* | pw32*)
13645 # When not using gcc, we currently assume that we are using
13646 # Microsoft Visual C++.
13647 # hardcode_libdir_flag_spec is actually meaningless, as there is
13648 # no search path for DLLs.
13649 hardcode_libdir_flag_spec_F77=' '
13650 allow_undefined_flag_F77=unsupported
13651 # Tell ltmain to make .lib files, not .a files.
13652 libext=lib
13653 # Tell ltmain to make .dll files, not .so files.
13654 shrext=".dll"
13655 # FIXME: Setting linknames here is a bad hack.
13656 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13657 # The linker will automatically build a .lib file if we build a DLL.
13658 old_archive_From_new_cmds_F77='true'
13659 # FIXME: Should let the user specify the lib program.
13660 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13661 fix_srcfile_path='`cygpath -w "$srcfile"`'
13662 enable_shared_with_static_runtimes_F77=yes
13663 ;;
13664
13665 darwin* | rhapsody*)
13666 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13667 archive_cmds_need_lc_F77=no
13668 case "$host_os" in
13669 rhapsody* | darwin1.[012])
13670 allow_undefined_flag_F77='-undefined suppress'
13671 ;;
13672 *) # Darwin 1.3 on
13673 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13674 ;;
13675 esac
13676 # FIXME: Relying on posixy $() will cause problems for
13677 # cross-compilation, but unfortunately the echo tests do not
13678 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13679 # `"' quotes if we put them in here... so don't!
13680 lt_int_apple_cc_single_mod=no
13681 output_verbose_link_cmd='echo'
13682 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13683 lt_int_apple_cc_single_mod=yes
13684 fi
13685 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13686 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13687 else
13688 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13689 fi
13690 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13691 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13692 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13693 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13694 else
13695 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13696 fi
13697 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13698 hardcode_direct_F77=no
13699 hardcode_automatic_F77=yes
13700 hardcode_shlibpath_var_F77=unsupported
13701 whole_archive_flag_spec_F77='-all_load $convenience'
13702 link_all_deplibs_F77=yes
13703 fi
13704 ;;
13705
13706 dgux*)
13707 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13708 hardcode_libdir_flag_spec_F77='-L$libdir'
13709 hardcode_shlibpath_var_F77=no
13710 ;;
13711
13712 freebsd1*)
13713 ld_shlibs_F77=no
13714 ;;
13715
13716 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13717 # support. Future versions do this automatically, but an explicit c++rt0.o
13718 # does not break anything, and helps significantly (at the cost of a little
13719 # extra space).
13720 freebsd2.2*)
13721 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13722 hardcode_libdir_flag_spec_F77='-R$libdir'
13723 hardcode_direct_F77=yes
13724 hardcode_shlibpath_var_F77=no
13725 ;;
13726
13727 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13728 freebsd2*)
13729 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13730 hardcode_direct_F77=yes
13731 hardcode_minus_L_F77=yes
13732 hardcode_shlibpath_var_F77=no
13733 ;;
13734
13735 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13736 freebsd*)
13737 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13738 hardcode_libdir_flag_spec_F77='-R$libdir'
13739 hardcode_direct_F77=yes
13740 hardcode_shlibpath_var_F77=no
13741 ;;
13742
13743 hpux9*)
13744 if test "$GCC" = yes; then
13745 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13746 else
13747 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13748 fi
13749 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13750 hardcode_libdir_separator_F77=:
13751 hardcode_direct_F77=yes
13752
13753 # hardcode_minus_L: Not really in the search PATH,
13754 # but as the default location of the library.
13755 hardcode_minus_L_F77=yes
13756 export_dynamic_flag_spec_F77='${wl}-E'
13757 ;;
13758
13759 hpux10* | hpux11*)
13760 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13761 case "$host_cpu" in
13762 hppa*64*|ia64*)
13763 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13764 ;;
13765 *)
13766 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13767 ;;
13768 esac
13769 else
13770 case "$host_cpu" in
13771 hppa*64*|ia64*)
13772 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13773 ;;
13774 *)
13775 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13776 ;;
13777 esac
13778 fi
13779 if test "$with_gnu_ld" = no; then
13780 case "$host_cpu" in
13781 hppa*64*)
13782 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13783 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13784 hardcode_libdir_separator_F77=:
13785 hardcode_direct_F77=no
13786 hardcode_shlibpath_var_F77=no
13787 ;;
13788 ia64*)
13789 hardcode_libdir_flag_spec_F77='-L$libdir'
13790 hardcode_direct_F77=no
13791 hardcode_shlibpath_var_F77=no
13792
13793 # hardcode_minus_L: Not really in the search PATH,
13794 # but as the default location of the library.
13795 hardcode_minus_L_F77=yes
13796 ;;
13797 *)
13798 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13799 hardcode_libdir_separator_F77=:
13800 hardcode_direct_F77=yes
13801 export_dynamic_flag_spec_F77='${wl}-E'
13802
13803 # hardcode_minus_L: Not really in the search PATH,
13804 # but as the default location of the library.
13805 hardcode_minus_L_F77=yes
13806 ;;
13807 esac
13808 fi
13809 ;;
13810
13811 irix5* | irix6* | nonstopux*)
13812 if test "$GCC" = yes; then
13813 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'
13814 else
13815 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'
13816 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13817 fi
13818 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13819 hardcode_libdir_separator_F77=:
13820 link_all_deplibs_F77=yes
13821 ;;
13822
13823 netbsd*)
13824 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13825 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13826 else
13827 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13828 fi
13829 hardcode_libdir_flag_spec_F77='-R$libdir'
13830 hardcode_direct_F77=yes
13831 hardcode_shlibpath_var_F77=no
13832 ;;
13833
13834 newsos6)
13835 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13836 hardcode_direct_F77=yes
13837 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13838 hardcode_libdir_separator_F77=:
13839 hardcode_shlibpath_var_F77=no
13840 ;;
13841
13842 openbsd*)
13843 hardcode_direct_F77=yes
13844 hardcode_shlibpath_var_F77=no
13845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13846 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13847 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13848 export_dynamic_flag_spec_F77='${wl}-E'
13849 else
13850 case $host_os in
13851 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13852 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13853 hardcode_libdir_flag_spec_F77='-R$libdir'
13854 ;;
13855 *)
13856 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13857 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13858 ;;
13859 esac
13860 fi
13861 ;;
13862
13863 os2*)
13864 hardcode_libdir_flag_spec_F77='-L$libdir'
13865 hardcode_minus_L_F77=yes
13866 allow_undefined_flag_F77=unsupported
13867 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13868 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13869 ;;
13870
13871 osf3*)
13872 if test "$GCC" = yes; then
13873 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13874 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'
13875 else
13876 allow_undefined_flag_F77=' -expect_unresolved \*'
13877 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'
13878 fi
13879 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13880 hardcode_libdir_separator_F77=:
13881 ;;
13882
13883 osf4* | osf5*) # as osf3* with the addition of -msym flag
13884 if test "$GCC" = yes; then
13885 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13886 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'
13887 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13888 else
13889 allow_undefined_flag_F77=' -expect_unresolved \*'
13890 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'
13891 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~
13892 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13893
13894 # Both c and cxx compiler support -rpath directly
13895 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13896 fi
13897 hardcode_libdir_separator_F77=:
13898 ;;
13899
13900 sco3.2v5*)
13901 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13902 hardcode_shlibpath_var_F77=no
13903 export_dynamic_flag_spec_F77='${wl}-Bexport'
13904 runpath_var=LD_RUN_PATH
13905 hardcode_runpath_var=yes
13906 ;;
13907
13908 solaris*)
13909 no_undefined_flag_F77=' -z text'
13910 if test "$GCC" = yes; then
13911 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13912 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13913 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13914 else
13915 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13916 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13917 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13918 fi
13919 hardcode_libdir_flag_spec_F77='-R$libdir'
13920 hardcode_shlibpath_var_F77=no
13921 case $host_os in
13922 solaris2.[0-5] | solaris2.[0-5].*) ;;
13923 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13924 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13925 esac
13926 link_all_deplibs_F77=yes
13927 ;;
13928
13929 sunos4*)
13930 if test "x$host_vendor" = xsequent; then
13931 # Use $CC to link under sequent, because it throws in some extra .o
13932 # files that make .init and .fini sections work.
13933 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13934 else
13935 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13936 fi
13937 hardcode_libdir_flag_spec_F77='-L$libdir'
13938 hardcode_direct_F77=yes
13939 hardcode_minus_L_F77=yes
13940 hardcode_shlibpath_var_F77=no
13941 ;;
13942
13943 sysv4)
13944 case $host_vendor in
13945 sni)
13946 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13947 hardcode_direct_F77=yes # is this really true???
13948 ;;
13949 siemens)
13950 ## LD is ld it makes a PLAMLIB
13951 ## CC just makes a GrossModule.
13952 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13953 reload_cmds_F77='$CC -r -o $output$reload_objs'
13954 hardcode_direct_F77=no
13955 ;;
13956 motorola)
13957 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13958 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13959 ;;
13960 esac
13961 runpath_var='LD_RUN_PATH'
13962 hardcode_shlibpath_var_F77=no
13963 ;;
13964
13965 sysv4.3*)
13966 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13967 hardcode_shlibpath_var_F77=no
13968 export_dynamic_flag_spec_F77='-Bexport'
13969 ;;
13970
13971 sysv4*MP*)
13972 if test -d /usr/nec; then
13973 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13974 hardcode_shlibpath_var_F77=no
13975 runpath_var=LD_RUN_PATH
13976 hardcode_runpath_var=yes
13977 ld_shlibs_F77=yes
13978 fi
13979 ;;
13980
13981 sysv4.2uw2*)
13982 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13983 hardcode_direct_F77=yes
13984 hardcode_minus_L_F77=no
13985 hardcode_shlibpath_var_F77=no
13986 hardcode_runpath_var=yes
13987 runpath_var=LD_RUN_PATH
13988 ;;
13989
13990 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13991 no_undefined_flag_F77='${wl}-z ${wl}text'
13992 if test "$GCC" = yes; then
13993 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13994 else
13995 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13996 fi
13997 runpath_var='LD_RUN_PATH'
13998 hardcode_shlibpath_var_F77=no
13999 ;;
14000
14001 sysv5*)
14002 no_undefined_flag_F77=' -z text'
14003 # $CC -shared without GNU ld will not create a library from C++
14004 # object files and a static libstdc++, better avoid it by now
14005 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14006 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14007 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14008 hardcode_libdir_flag_spec_F77=
14009 hardcode_shlibpath_var_F77=no
14010 runpath_var='LD_RUN_PATH'
14011 ;;
14012
14013 uts4*)
14014 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14015 hardcode_libdir_flag_spec_F77='-L$libdir'
14016 hardcode_shlibpath_var_F77=no
14017 ;;
14018
14019 *)
14020 ld_shlibs_F77=no
14021 ;;
14022 esac
14023 fi
14024
14025echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14026echo "${ECHO_T}$ld_shlibs_F77" >&6
14027test "$ld_shlibs_F77" = no && can_build_shared=no
14028
14029variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14030if test "$GCC" = yes; then
14031 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14032fi
14033
14034#
14035# Do we need to explicitly link libc?
14036#
14037case "x$archive_cmds_need_lc_F77" in
14038x|xyes)
14039 # Assume -lc should be added
14040 archive_cmds_need_lc_F77=yes
14041
14042 if test "$enable_shared" = yes && test "$GCC" = yes; then
14043 case $archive_cmds_F77 in
14044 *'~'*)
14045 # FIXME: we may have to deal with multi-command sequences.
14046 ;;
14047 '$CC '*)
14048 # Test whether the compiler implicitly links with -lc since on some
14049 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14050 # to ld, don't add -lc before -lgcc.
14051 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14052echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14053 $rm conftest*
14054 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14055
14056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14057 (eval $ac_compile) 2>&5
14058 ac_status=$?
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } 2>conftest.err; then
14061 soname=conftest
14062 lib=conftest
14063 libobjs=conftest.$ac_objext
14064 deplibs=
14065 wl=$lt_prog_compiler_wl_F77
14066 compiler_flags=-v
14067 linker_flags=-v
14068 verstring=
14069 output_objdir=.
14070 libname=conftest
14071 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14072 allow_undefined_flag_F77=
14073 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14074 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14075 ac_status=$?
14076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14077 (exit $ac_status); }
14078 then
14079 archive_cmds_need_lc_F77=no
14080 else
14081 archive_cmds_need_lc_F77=yes
14082 fi
14083 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14084 else
14085 cat conftest.err 1>&5
14086 fi
14087 $rm conftest*
14088 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14089echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14090 ;;
14091 esac
14092 fi
14093 ;;
14094esac
14095
14096echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14097echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14098hardcode_action_F77=
14099if test -n "$hardcode_libdir_flag_spec_F77" || \
14100 test -n "$runpath_var F77" || \
14101 test "X$hardcode_automatic_F77"="Xyes" ; then
14102
14103 # We can hardcode non-existant directories.
14104 if test "$hardcode_direct_F77" != no &&
14105 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14106 # have to relink, otherwise we might link with an installed library
14107 # when we should be linking with a yet-to-be-installed one
14108 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14109 test "$hardcode_minus_L_F77" != no; then
14110 # Linking always hardcodes the temporary library directory.
14111 hardcode_action_F77=relink
14112 else
14113 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14114 hardcode_action_F77=immediate
14115 fi
14116else
14117 # We cannot hardcode anything, or else we can only hardcode existing
14118 # directories.
14119 hardcode_action_F77=unsupported
14120fi
14121echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14122echo "${ECHO_T}$hardcode_action_F77" >&6
14123
14124if test "$hardcode_action_F77" = relink; then
14125 # Fast installation is not supported
14126 enable_fast_install=no
14127elif test "$shlibpath_overrides_runpath" = yes ||
14128 test "$enable_shared" = no; then
14129 # Fast installation is not necessary
14130 enable_fast_install=needless
14131fi
14132
14133striplib=
14134old_striplib=
14135echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14136echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14137if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14138 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14139 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14140 echo "$as_me:$LINENO: result: yes" >&5
14141echo "${ECHO_T}yes" >&6
14142else
14143# FIXME - insert some real tests, host_os isn't really good enough
14144 case $host_os in
14145 darwin*)
14146 if test -n "$STRIP" ; then
14147 striplib="$STRIP -x"
14148 echo "$as_me:$LINENO: result: yes" >&5
14149echo "${ECHO_T}yes" >&6
14150 else
14151 echo "$as_me:$LINENO: result: no" >&5
14152echo "${ECHO_T}no" >&6
14153fi
14154 ;;
14155 *)
14156 echo "$as_me:$LINENO: result: no" >&5
14157echo "${ECHO_T}no" >&6
14158 ;;
14159 esac
14160fi
14161
14162echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14163echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14164library_names_spec=
14165libname_spec='lib$name'
14166soname_spec=
14167shrext=".so"
14168postinstall_cmds=
14169postuninstall_cmds=
14170finish_cmds=
14171finish_eval=
14172shlibpath_var=
14173shlibpath_overrides_runpath=unknown
14174version_type=none
14175dynamic_linker="$host_os ld.so"
14176sys_lib_dlsearch_path_spec="/lib /usr/lib"
14177if test "$GCC" = yes; then
14178 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14179 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14180 # if the path contains ";" then we assume it to be the separator
14181 # otherwise default to the standard path separator (i.e. ":") - it is
14182 # assumed that no part of a normal pathname contains ";" but that should
14183 # okay in the real world where ";" in dirpaths is itself problematic.
14184 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14185 else
14186 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14187 fi
14188else
14189 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14190fi
14191need_lib_prefix=unknown
14192hardcode_into_libs=no
14193
14194# when you set need_version to no, make sure it does not cause -set_version
14195# flags to be left without arguments
14196need_version=unknown
14197
14198case $host_os in
14199aix3*)
14200 version_type=linux
14201 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14202 shlibpath_var=LIBPATH
14203
14204 # AIX 3 has no versioning support, so we append a major version to the name.
14205 soname_spec='${libname}${release}${shared_ext}$major'
14206 ;;
14207
14208aix4* | aix5*)
14209 version_type=linux
14210 need_lib_prefix=no
14211 need_version=no
14212 hardcode_into_libs=yes
14213 if test "$host_cpu" = ia64; then
14214 # AIX 5 supports IA64
14215 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14216 shlibpath_var=LD_LIBRARY_PATH
14217 else
14218 # With GCC up to 2.95.x, collect2 would create an import file
14219 # for dependence libraries. The import file would start with
14220 # the line `#! .'. This would cause the generated library to
14221 # depend on `.', always an invalid library. This was fixed in
14222 # development snapshots of GCC prior to 3.0.
14223 case $host_os in
14224 aix4 | aix4.[01] | aix4.[01].*)
14225 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14226 echo ' yes '
14227 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14228 :
14229 else
14230 can_build_shared=no
14231 fi
14232 ;;
14233 esac
14234 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14235 # soname into executable. Probably we can add versioning support to
14236 # collect2, so additional links can be useful in future.
14237 if test "$aix_use_runtimelinking" = yes; then
14238 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14239 # instead of lib<name>.a to let people know that these are not
14240 # typical AIX shared libraries.
14241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14242 else
14243 # We preserve .a as extension for shared libraries through AIX4.2
14244 # and later when we are not doing run time linking.
14245 library_names_spec='${libname}${release}.a $libname.a'
14246 soname_spec='${libname}${release}${shared_ext}$major'
14247 fi
14248 shlibpath_var=LIBPATH
14249 fi
14250 ;;
14251
14252amigaos*)
14253 library_names_spec='$libname.ixlibrary $libname.a'
14254 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14255 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'
14256 ;;
14257
14258beos*)
14259 library_names_spec='${libname}${shared_ext}'
14260 dynamic_linker="$host_os ld.so"
14261 shlibpath_var=LIBRARY_PATH
14262 ;;
14263
14264bsdi4*)
14265 version_type=linux
14266 need_version=no
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268 soname_spec='${libname}${release}${shared_ext}$major'
14269 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14270 shlibpath_var=LD_LIBRARY_PATH
14271 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14272 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14273 # the default ld.so.conf also contains /usr/contrib/lib and
14274 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14275 # libtool to hard-code these into programs
14276 ;;
14277
14278cygwin* | mingw* | pw32*)
14279 version_type=windows
14280 shrext=".dll"
14281 need_version=no
14282 need_lib_prefix=no
14283
14284 case $GCC,$host_os in
14285 yes,cygwin* | yes,mingw* | yes,pw32*)
14286 library_names_spec='$libname.dll.a'
14287 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14288 postinstall_cmds='base_file=`basename \${file}`~
14289 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14290 dldir=$destdir/`dirname \$dlpath`~
14291 test -d \$dldir || mkdir -p \$dldir~
14292 $install_prog $dir/$dlname \$dldir/$dlname'
14293 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14294 dlpath=$dir/\$dldll~
14295 $rm \$dlpath'
14296 shlibpath_overrides_runpath=yes
14297
14298 case $host_os in
14299 cygwin*)
14300 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14301 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14302 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14303 ;;
14304 mingw*)
14305 # MinGW DLLs use traditional 'lib' prefix
14306 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14307 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14308 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14309 # It is most probably a Windows format PATH printed by
14310 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14311 # path with ; separators, and with drive letters. We can handle the
14312 # drive letters (cygwin fileutils understands them), so leave them,
14313 # especially as we might pass files found there to a mingw objdump,
14314 # which wouldn't understand a cygwinified path. Ahh.
14315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14316 else
14317 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14318 fi
14319 ;;
14320 pw32*)
14321 # pw32 DLLs use 'pw' prefix rather than 'lib'
14322 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14323 ;;
14324 esac
14325 ;;
14326
14327 *)
14328 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14329 ;;
14330 esac
14331 dynamic_linker='Win32 ld.exe'
14332 # FIXME: first we should search . and the directory the executable is in
14333 shlibpath_var=PATH
14334 ;;
14335
14336darwin* | rhapsody*)
14337 dynamic_linker="$host_os dyld"
14338 version_type=darwin
14339 need_lib_prefix=no
14340 need_version=no
14341 # FIXME: Relying on posixy $() will cause problems for
14342 # cross-compilation, but unfortunately the echo tests do not
14343 # yet detect zsh echo's removal of \ escapes.
14344 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14345 soname_spec='${libname}${release}${major}$shared_ext'
14346 shlibpath_overrides_runpath=yes
14347 shlibpath_var=DYLD_LIBRARY_PATH
14348 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14349 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14350 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14351 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"`
14352 fi
14353 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14354 ;;
14355
14356dgux*)
14357 version_type=linux
14358 need_lib_prefix=no
14359 need_version=no
14360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14361 soname_spec='${libname}${release}${shared_ext}$major'
14362 shlibpath_var=LD_LIBRARY_PATH
14363 ;;
14364
14365freebsd1*)
14366 dynamic_linker=no
14367 ;;
14368
14369freebsd*)
14370 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14371 version_type=freebsd-$objformat
14372 case $version_type in
14373 freebsd-elf*)
14374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14375 need_version=no
14376 need_lib_prefix=no
14377 ;;
14378 freebsd-*)
14379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14380 need_version=yes
14381 ;;
14382 esac
14383 shlibpath_var=LD_LIBRARY_PATH
14384 case $host_os in
14385 freebsd2*)
14386 shlibpath_overrides_runpath=yes
14387 ;;
14388 freebsd3.01* | freebsdelf3.01*)
14389 shlibpath_overrides_runpath=yes
14390 hardcode_into_libs=yes
14391 ;;
14392 *) # from 3.2 on
14393 shlibpath_overrides_runpath=no
14394 hardcode_into_libs=yes
14395 ;;
14396 esac
14397 ;;
14398
14399gnu*)
14400 version_type=linux
14401 need_lib_prefix=no
14402 need_version=no
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14404 soname_spec='${libname}${release}${shared_ext}$major'
14405 shlibpath_var=LD_LIBRARY_PATH
14406 hardcode_into_libs=yes
14407 ;;
14408
14409hpux9* | hpux10* | hpux11*)
14410 # Give a soname corresponding to the major version so that dld.sl refuses to
14411 # link against other versions.
14412 version_type=sunos
14413 need_lib_prefix=no
14414 need_version=no
14415 case "$host_cpu" in
14416 ia64*)
14417 shrext='.so'
14418 hardcode_into_libs=yes
14419 dynamic_linker="$host_os dld.so"
14420 shlibpath_var=LD_LIBRARY_PATH
14421 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14423 soname_spec='${libname}${release}${shared_ext}$major'
14424 if test "X$HPUX_IA64_MODE" = X32; then
14425 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14426 else
14427 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14428 fi
14429 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14430 ;;
14431 hppa*64*)
14432 shrext='.sl'
14433 hardcode_into_libs=yes
14434 dynamic_linker="$host_os dld.sl"
14435 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14436 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14438 soname_spec='${libname}${release}${shared_ext}$major'
14439 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14440 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14441 ;;
14442 *)
14443 shrext='.sl'
14444 dynamic_linker="$host_os dld.sl"
14445 shlibpath_var=SHLIB_PATH
14446 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448 soname_spec='${libname}${release}${shared_ext}$major'
14449 ;;
14450 esac
14451 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14452 postinstall_cmds='chmod 555 $lib'
14453 ;;
14454
14455irix5* | irix6* | nonstopux*)
14456 case $host_os in
14457 nonstopux*) version_type=nonstopux ;;
14458 *)
14459 if test "$lt_cv_prog_gnu_ld" = yes; then
14460 version_type=linux
14461 else
14462 version_type=irix
14463 fi ;;
14464 esac
14465 need_lib_prefix=no
14466 need_version=no
14467 soname_spec='${libname}${release}${shared_ext}$major'
14468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14469 case $host_os in
14470 irix5* | nonstopux*)
14471 libsuff= shlibsuff=
14472 ;;
14473 *)
14474 case $LD in # libtool.m4 will add one of these switches to LD
14475 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14476 libsuff= shlibsuff= libmagic=32-bit;;
14477 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14478 libsuff=32 shlibsuff=N32 libmagic=N32;;
14479 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14480 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14481 *) libsuff= shlibsuff= libmagic=never-match;;
14482 esac
14483 ;;
14484 esac
14485 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14486 shlibpath_overrides_runpath=no
14487 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14488 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14489 hardcode_into_libs=yes
14490 ;;
14491
14492# No shared lib support for Linux oldld, aout, or coff.
14493linux*oldld* | linux*aout* | linux*coff*)
14494 dynamic_linker=no
14495 ;;
14496
14497# This must be Linux ELF.
14498linux*)
14499 version_type=linux
14500 need_lib_prefix=no
14501 need_version=no
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503 soname_spec='${libname}${release}${shared_ext}$major'
14504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 shlibpath_overrides_runpath=no
14507 # This implies no fast_install, which is unacceptable.
14508 # Some rework will be needed to allow for fast_install
14509 # before this can be enabled.
14510 hardcode_into_libs=yes
14511
14512 # We used to test for /lib/ld.so.1 and disable shared libraries on
14513 # powerpc, because MkLinux only supported shared libraries with the
14514 # GNU dynamic linker. Since this was broken with cross compilers,
14515 # most powerpc-linux boxes support dynamic linking these days and
14516 # people can always --disable-shared, the test was removed, and we
14517 # assume the GNU/Linux dynamic linker is in use.
14518 dynamic_linker='GNU/Linux ld.so'
14519 ;;
14520
14521netbsd*)
14522 version_type=sunos
14523 need_lib_prefix=no
14524 need_version=no
14525 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14528 dynamic_linker='NetBSD (a.out) ld.so'
14529 else
14530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14531 soname_spec='${libname}${release}${shared_ext}$major'
14532 dynamic_linker='NetBSD ld.elf_so'
14533 fi
14534 shlibpath_var=LD_LIBRARY_PATH
14535 shlibpath_overrides_runpath=yes
14536 hardcode_into_libs=yes
14537 ;;
14538
14539newsos6)
14540 version_type=linux
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14542 shlibpath_var=LD_LIBRARY_PATH
14543 shlibpath_overrides_runpath=yes
14544 ;;
14545
14546nto-qnx)
14547 version_type=linux
14548 need_lib_prefix=no
14549 need_version=no
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14551 soname_spec='${libname}${release}${shared_ext}$major'
14552 shlibpath_var=LD_LIBRARY_PATH
14553 shlibpath_overrides_runpath=yes
14554 ;;
14555
14556openbsd*)
14557 version_type=sunos
14558 need_lib_prefix=no
14559 need_version=no
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14561 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14562 shlibpath_var=LD_LIBRARY_PATH
14563 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14564 case $host_os in
14565 openbsd2.[89] | openbsd2.[89].*)
14566 shlibpath_overrides_runpath=no
14567 ;;
14568 *)
14569 shlibpath_overrides_runpath=yes
14570 ;;
14571 esac
14572 else
14573 shlibpath_overrides_runpath=yes
14574 fi
14575 ;;
14576
14577os2*)
14578 libname_spec='$name'
14579 shrext=".dll"
14580 need_lib_prefix=no
14581 library_names_spec='$libname${shared_ext} $libname.a'
14582 dynamic_linker='OS/2 ld.exe'
14583 shlibpath_var=LIBPATH
14584 ;;
14585
14586osf3* | osf4* | osf5*)
14587 version_type=osf
14588 need_lib_prefix=no
14589 need_version=no
14590 soname_spec='${libname}${release}${shared_ext}$major'
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14592 shlibpath_var=LD_LIBRARY_PATH
14593 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14594 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14595 ;;
14596
14597sco3.2v5*)
14598 version_type=osf
14599 soname_spec='${libname}${release}${shared_ext}$major'
14600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14601 shlibpath_var=LD_LIBRARY_PATH
14602 ;;
14603
14604solaris*)
14605 version_type=linux
14606 need_lib_prefix=no
14607 need_version=no
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609 soname_spec='${libname}${release}${shared_ext}$major'
14610 shlibpath_var=LD_LIBRARY_PATH
14611 shlibpath_overrides_runpath=yes
14612 hardcode_into_libs=yes
14613 # ldd complains unless libraries are executable
14614 postinstall_cmds='chmod +x $lib'
14615 ;;
14616
14617sunos4*)
14618 version_type=sunos
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14620 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14621 shlibpath_var=LD_LIBRARY_PATH
14622 shlibpath_overrides_runpath=yes
14623 if test "$with_gnu_ld" = yes; then
14624 need_lib_prefix=no
14625 fi
14626 need_version=yes
14627 ;;
14628
14629sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14630 version_type=linux
14631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14632 soname_spec='${libname}${release}${shared_ext}$major'
14633 shlibpath_var=LD_LIBRARY_PATH
14634 case $host_vendor in
14635 sni)
14636 shlibpath_overrides_runpath=no
14637 need_lib_prefix=no
14638 export_dynamic_flag_spec='${wl}-Blargedynsym'
14639 runpath_var=LD_RUN_PATH
14640 ;;
14641 siemens)
14642 need_lib_prefix=no
14643 ;;
14644 motorola)
14645 need_lib_prefix=no
14646 need_version=no
14647 shlibpath_overrides_runpath=no
14648 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14649 ;;
14650 esac
14651 ;;
14652
14653sysv4*MP*)
14654 if test -d /usr/nec ;then
14655 version_type=linux
14656 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14657 soname_spec='$libname${shared_ext}.$major'
14658 shlibpath_var=LD_LIBRARY_PATH
14659 fi
14660 ;;
14661
14662uts4*)
14663 version_type=linux
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14665 soname_spec='${libname}${release}${shared_ext}$major'
14666 shlibpath_var=LD_LIBRARY_PATH
14667 ;;
14668
14669*)
14670 dynamic_linker=no
14671 ;;
14672esac
14673echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14674echo "${ECHO_T}$dynamic_linker" >&6
14675test "$dynamic_linker" = no && can_build_shared=no
14676
14677
14678# The else clause should only fire when bootstrapping the
14679# libtool distribution, otherwise you forgot to ship ltmain.sh
14680# with your package, and you will get complaints that there are
14681# no rules to generate ltmain.sh.
14682if test -f "$ltmain"; then
14683 # See if we are running on zsh, and set the options which allow our commands through
14684 # without removal of \ escapes.
14685 if test -n "${ZSH_VERSION+set}" ; then
14686 setopt NO_GLOB_SUBST
14687 fi
14688 # Now quote all the things that may contain metacharacters while being
14689 # careful not to overquote the AC_SUBSTed values. We take copies of the
14690 # variables and quote the copies for generation of the libtool script.
14691 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14692 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14693 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14694 deplibs_check_method reload_flag reload_cmds need_locks \
14695 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14696 lt_cv_sys_global_symbol_to_c_name_address \
14697 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14698 old_postinstall_cmds old_postuninstall_cmds \
14699 compiler_F77 \
14700 CC_F77 \
14701 LD_F77 \
14702 lt_prog_compiler_wl_F77 \
14703 lt_prog_compiler_pic_F77 \
14704 lt_prog_compiler_static_F77 \
14705 lt_prog_compiler_no_builtin_flag_F77 \
14706 export_dynamic_flag_spec_F77 \
14707 thread_safe_flag_spec_F77 \
14708 whole_archive_flag_spec_F77 \
14709 enable_shared_with_static_runtimes_F77 \
14710 old_archive_cmds_F77 \
14711 old_archive_from_new_cmds_F77 \
14712 predep_objects_F77 \
14713 postdep_objects_F77 \
14714 predeps_F77 \
14715 postdeps_F77 \
14716 compiler_lib_search_path_F77 \
14717 archive_cmds_F77 \
14718 archive_expsym_cmds_F77 \
14719 postinstall_cmds_F77 \
14720 postuninstall_cmds_F77 \
14721 old_archive_from_expsyms_cmds_F77 \
14722 allow_undefined_flag_F77 \
14723 no_undefined_flag_F77 \
14724 export_symbols_cmds_F77 \
14725 hardcode_libdir_flag_spec_F77 \
14726 hardcode_libdir_flag_spec_ld_F77 \
14727 hardcode_libdir_separator_F77 \
14728 hardcode_automatic_F77 \
14729 module_cmds_F77 \
14730 module_expsym_cmds_F77 \
14731 lt_cv_prog_compiler_c_o_F77 \
14732 exclude_expsyms_F77 \
14733 include_expsyms_F77; do
14734
14735 case $var in
14736 old_archive_cmds_F77 | \
14737 old_archive_from_new_cmds_F77 | \
14738 archive_cmds_F77 | \
14739 archive_expsym_cmds_F77 | \
14740 module_cmds_F77 | \
14741 module_expsym_cmds_F77 | \
14742 old_archive_from_expsyms_cmds_F77 | \
14743 export_symbols_cmds_F77 | \
14744 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14745 postinstall_cmds | postuninstall_cmds | \
14746 old_postinstall_cmds | old_postuninstall_cmds | \
14747 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14748 # Double-quote double-evaled strings.
14749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14750 ;;
14751 *)
14752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14753 ;;
14754 esac
14755 done
14756
14757 case $lt_echo in
14758 *'\$0 --fallback-echo"')
14759 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14760 ;;
14761 esac
14762
14763cfgfile="$ofile"
14764
14765 cat <<__EOF__ >> "$cfgfile"
14766# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14767
14768# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14769
14770# Shell to use when invoking shell scripts.
14771SHELL=$lt_SHELL
14772
14773# Whether or not to build shared libraries.
14774build_libtool_libs=$enable_shared
14775
14776# Whether or not to build static libraries.
14777build_old_libs=$enable_static
14778
14779# Whether or not to add -lc for building shared libraries.
14780build_libtool_need_lc=$archive_cmds_need_lc_F77
14781
14782# Whether or not to disallow shared libs when runtime libs are static
14783allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14784
14785# Whether or not to optimize for fast installation.
14786fast_install=$enable_fast_install
14787
14788# The host system.
14789host_alias=$host_alias
14790host=$host
14791
14792# An echo program that does not interpret backslashes.
14793echo=$lt_echo
14794
14795# The archiver.
14796AR=$lt_AR
14797AR_FLAGS=$lt_AR_FLAGS
14798
14799# A C compiler.
14800LTCC=$lt_LTCC
14801
14802# A language-specific compiler.
14803CC=$lt_compiler_F77
14804
14805# Is the compiler the GNU C compiler?
14806with_gcc=$GCC_F77
14807
14808# An ERE matcher.
14809EGREP=$lt_EGREP
14810
14811# The linker used to build libraries.
14812LD=$lt_LD_F77
14813
14814# Whether we need hard or soft links.
14815LN_S=$lt_LN_S
14816
14817# A BSD-compatible nm program.
14818NM=$lt_NM
14819
14820# A symbol stripping program
14821STRIP=$STRIP
14822
14823# Used to examine libraries when file_magic_cmd begins "file"
14824MAGIC_CMD=$MAGIC_CMD
14825
14826# Used on cygwin: DLL creation program.
14827DLLTOOL="$DLLTOOL"
14828
14829# Used on cygwin: object dumper.
14830OBJDUMP="$OBJDUMP"
14831
14832# Used on cygwin: assembler.
14833AS="$AS"
14834
14835# The name of the directory that contains temporary libtool files.
14836objdir=$objdir
14837
14838# How to create reloadable object files.
14839reload_flag=$lt_reload_flag
14840reload_cmds=$lt_reload_cmds
14841
14842# How to pass a linker flag through the compiler.
14843wl=$lt_lt_prog_compiler_wl_F77
14844
14845# Object file suffix (normally "o").
14846objext="$ac_objext"
14847
14848# Old archive suffix (normally "a").
14849libext="$libext"
14850
14851# Shared library suffix (normally ".so").
14852shrext='$shrext'
14853
14854# Executable file suffix (normally "").
14855exeext="$exeext"
14856
14857# Additional compiler flags for building library objects.
14858pic_flag=$lt_lt_prog_compiler_pic_F77
14859pic_mode=$pic_mode
14860
14861# What is the maximum length of a command?
14862max_cmd_len=$lt_cv_sys_max_cmd_len
14863
14864# Does compiler simultaneously support -c and -o options?
14865compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14866
14867# Must we lock files when doing compilation ?
14868need_locks=$lt_need_locks
14869
14870# Do we need the lib prefix for modules?
14871need_lib_prefix=$need_lib_prefix
14872
14873# Do we need a version for libraries?
14874need_version=$need_version
14875
14876# Whether dlopen is supported.
14877dlopen_support=$enable_dlopen
14878
14879# Whether dlopen of programs is supported.
14880dlopen_self=$enable_dlopen_self
14881
14882# Whether dlopen of statically linked programs is supported.
14883dlopen_self_static=$enable_dlopen_self_static
14884
14885# Compiler flag to prevent dynamic linking.
14886link_static_flag=$lt_lt_prog_compiler_static_F77
14887
14888# Compiler flag to turn off builtin functions.
14889no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14890
14891# Compiler flag to allow reflexive dlopens.
14892export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14893
14894# Compiler flag to generate shared objects directly from archives.
14895whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14896
14897# Compiler flag to generate thread-safe objects.
14898thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14899
14900# Library versioning type.
14901version_type=$version_type
14902
14903# Format of library name prefix.
14904libname_spec=$lt_libname_spec
14905
14906# List of archive names. First name is the real one, the rest are links.
14907# The last name is the one that the linker finds with -lNAME.
14908library_names_spec=$lt_library_names_spec
14909
14910# The coded name of the library, if different from the real name.
14911soname_spec=$lt_soname_spec
14912
14913# Commands used to build and install an old-style archive.
14914RANLIB=$lt_RANLIB
14915old_archive_cmds=$lt_old_archive_cmds_F77
14916old_postinstall_cmds=$lt_old_postinstall_cmds
14917old_postuninstall_cmds=$lt_old_postuninstall_cmds
14918
14919# Create an old-style archive from a shared archive.
14920old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14921
14922# Create a temporary old-style archive to link instead of a shared archive.
14923old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14924
14925# Commands used to build and install a shared archive.
14926archive_cmds=$lt_archive_cmds_F77
14927archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14928postinstall_cmds=$lt_postinstall_cmds
14929postuninstall_cmds=$lt_postuninstall_cmds
14930
14931# Commands used to build a loadable module (assumed same as above if empty)
14932module_cmds=$lt_module_cmds_F77
14933module_expsym_cmds=$lt_module_expsym_cmds_F77
14934
14935# Commands to strip libraries.
14936old_striplib=$lt_old_striplib
14937striplib=$lt_striplib
14938
14939# Dependencies to place before the objects being linked to create a
14940# shared library.
14941predep_objects=$lt_predep_objects_F77
14942
14943# Dependencies to place after the objects being linked to create a
14944# shared library.
14945postdep_objects=$lt_postdep_objects_F77
14946
14947# Dependencies to place before the objects being linked to create a
14948# shared library.
14949predeps=$lt_predeps_F77
14950
14951# Dependencies to place after the objects being linked to create a
14952# shared library.
14953postdeps=$lt_postdeps_F77
14954
14955# The library search path used internally by the compiler when linking
14956# a shared library.
14957compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14958
14959# Method to check whether dependent libraries are shared objects.
14960deplibs_check_method=$lt_deplibs_check_method
14961
14962# Command to use when deplibs_check_method == file_magic.
14963file_magic_cmd=$lt_file_magic_cmd
14964
14965# Flag that allows shared libraries with undefined symbols to be built.
14966allow_undefined_flag=$lt_allow_undefined_flag_F77
14967
14968# Flag that forces no undefined symbols.
14969no_undefined_flag=$lt_no_undefined_flag_F77
14970
14971# Commands used to finish a libtool library installation in a directory.
14972finish_cmds=$lt_finish_cmds
14973
14974# Same as above, but a single script fragment to be evaled but not shown.
14975finish_eval=$lt_finish_eval
14976
14977# Take the output of nm and produce a listing of raw symbols and C names.
14978global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14979
14980# Transform the output of nm in a proper C declaration
14981global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14982
14983# Transform the output of nm in a C name address pair
14984global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14985
14986# This is the shared library runtime path variable.
14987runpath_var=$runpath_var
14988
14989# This is the shared library path variable.
14990shlibpath_var=$shlibpath_var
14991
14992# Is shlibpath searched before the hard-coded library search path?
14993shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14994
14995# How to hardcode a shared library path into an executable.
14996hardcode_action=$hardcode_action_F77
14997
14998# Whether we should hardcode library paths into libraries.
14999hardcode_into_libs=$hardcode_into_libs
15000
15001# Flag to hardcode \$libdir into a binary during linking.
15002# This must work even if \$libdir does not exist.
15003hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15004
15005# If ld is used when linking, flag to hardcode \$libdir into
15006# a binary during linking. This must work even if \$libdir does
15007# not exist.
15008hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15009
15010# Whether we need a single -rpath flag with a separated argument.
15011hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15012
15013# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15014# resulting binary.
15015hardcode_direct=$hardcode_direct_F77
15016
15017# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15018# resulting binary.
15019hardcode_minus_L=$hardcode_minus_L_F77
15020
15021# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15022# the resulting binary.
15023hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15024
15025# Set to yes if building a shared library automatically hardcodes DIR into the library
15026# and all subsequent libraries and executables linked against it.
15027hardcode_automatic=$hardcode_automatic_F77
15028
15029# Variables whose values should be saved in libtool wrapper scripts and
15030# restored at relink time.
15031variables_saved_for_relink="$variables_saved_for_relink"
15032
15033# Whether libtool must link a program against all its dependency libraries.
15034link_all_deplibs=$link_all_deplibs_F77
15035
15036# Compile-time system search path for libraries
15037sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15038
15039# Run-time system search path for libraries
15040sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15041
15042# Fix the shell variable \$srcfile for the compiler.
15043fix_srcfile_path="$fix_srcfile_path_F77"
15044
15045# Set to yes if exported symbols are required.
15046always_export_symbols=$always_export_symbols_F77
15047
15048# The commands to list exported symbols.
15049export_symbols_cmds=$lt_export_symbols_cmds_F77
15050
15051# The commands to extract the exported symbol list from a shared archive.
15052extract_expsyms_cmds=$lt_extract_expsyms_cmds
15053
15054# Symbols that should not be listed in the preloaded symbols.
15055exclude_expsyms=$lt_exclude_expsyms_F77
15056
15057# Symbols that must always be exported.
15058include_expsyms=$lt_include_expsyms_F77
15059
15060# ### END LIBTOOL TAG CONFIG: $tagname
15061
15062__EOF__
15063
15064
15065else
15066 # If there is no Makefile yet, we rely on a make rule to execute
15067 # `config.status --recheck' to rerun these tests and create the
15068 # libtool script then.
15069 test -f Makefile && make "$ltmain"
15070fi
15071
15072
15073ac_ext=c
15074ac_cpp='$CPP $CPPFLAGS'
15075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15077ac_compiler_gnu=$ac_cv_c_compiler_gnu
15078
15079CC="$lt_save_CC"
15080
15081 else
15082 tagname=""
15083 fi
15084 ;;
15085
15086 GCJ)
15087 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15088
15089
15090
15091# Source file extension for Java test sources.
15092ac_ext=java
15093
15094# Object file extension for compiled Java test sources.
15095objext=o
15096objext_GCJ=$objext
15097
15098# Code to be used in simple compile tests
15099lt_simple_compile_test_code="class foo {}\n"
15100
15101# Code to be used in simple link tests
15102lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15103
15104# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15105
15106# If no C compiler was specified, use CC.
15107LTCC=${LTCC-"$CC"}
15108
15109# Allow CC to be a program name with arguments.
15110compiler=$CC
15111
15112
15113# Allow CC to be a program name with arguments.
15114lt_save_CC="$CC"
15115CC=${GCJ-"gcj"}
15116compiler=$CC
15117compiler_GCJ=$CC
15118
15119# GCJ did not exist at the time GCC didn't implicitly link libc in.
15120archive_cmds_need_lc_GCJ=no
15121
Reid Spencer2b51a082004-08-04 00:34:49 +000015122## CAVEAT EMPTOR:
15123## There is no encapsulation within the following macros, do not change
15124## the running order or otherwise move them around unless you know exactly
15125## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000015126
15127lt_prog_compiler_no_builtin_flag_GCJ=
15128
15129if test "$GCC" = yes; then
15130 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15131
15132 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15133echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15134if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15135 echo $ECHO_N "(cached) $ECHO_C" >&6
15136else
15137 lt_cv_prog_compiler_rtti_exceptions=no
15138 ac_outfile=conftest.$ac_objext
15139 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15140 lt_compiler_flag="-fno-rtti -fno-exceptions"
15141 # Insert the option either (1) after the last *FLAGS variable, or
15142 # (2) before a word containing "conftest.", or (3) at the end.
15143 # Note that $ac_compile itself does not contain backslashes and begins
15144 # with a dollar sign (not a hyphen), so the echo should work correctly.
15145 # The option is referenced via a variable to avoid confusing sed.
15146 lt_compile=`echo "$ac_compile" | $SED \
15147 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15149 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5f285392004-08-24 16:32:21 +000015150 (eval echo "\"\$as_me:15150: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015151 (eval "$lt_compile" 2>conftest.err)
15152 ac_status=$?
15153 cat conftest.err >&5
Reid Spencer5f285392004-08-24 16:32:21 +000015154 echo "$as_me:15154: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015155 if (exit $ac_status) && test -s "$ac_outfile"; then
15156 # The compiler can only warn and ignore the option if not recognized
15157 # So say no if there are warnings
15158 if test ! -s conftest.err; then
15159 lt_cv_prog_compiler_rtti_exceptions=yes
15160 fi
15161 fi
15162 $rm conftest*
15163
15164fi
15165echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15166echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15167
15168if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15169 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15170else
15171 :
15172fi
15173
15174fi
15175
15176lt_prog_compiler_wl_GCJ=
15177lt_prog_compiler_pic_GCJ=
15178lt_prog_compiler_static_GCJ=
15179
15180echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15181echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15182
15183 if test "$GCC" = yes; then
15184 lt_prog_compiler_wl_GCJ='-Wl,'
15185 lt_prog_compiler_static_GCJ='-static'
15186
15187 case $host_os in
15188 aix*)
15189 # All AIX code is PIC.
15190 if test "$host_cpu" = ia64; then
15191 # AIX 5 now supports IA64 processor
15192 lt_prog_compiler_static_GCJ='-Bstatic'
15193 fi
15194 ;;
15195
15196 amigaos*)
15197 # FIXME: we need at least 68020 code to build shared libraries, but
15198 # adding the `-m68020' flag to GCC prevents building anything better,
15199 # like `-m68040'.
15200 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15201 ;;
15202
15203 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15204 # PIC is the default for these OSes.
15205 ;;
15206
15207 mingw* | pw32* | os2*)
15208 # This hack is so that the source file can tell whether it is being
15209 # built for inclusion in a dll (and should export symbols for example).
15210 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15211 ;;
15212
15213 darwin* | rhapsody*)
15214 # PIC is the default on this platform
15215 # Common symbols not allowed in MH_DYLIB files
15216 lt_prog_compiler_pic_GCJ='-fno-common'
15217 ;;
15218
15219 msdosdjgpp*)
15220 # Just because we use GCC doesn't mean we suddenly get shared libraries
15221 # on systems that don't support them.
15222 lt_prog_compiler_can_build_shared_GCJ=no
15223 enable_shared=no
15224 ;;
15225
15226 sysv4*MP*)
15227 if test -d /usr/nec; then
15228 lt_prog_compiler_pic_GCJ=-Kconform_pic
15229 fi
15230 ;;
15231
15232 hpux*)
15233 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15234 # not for PA HP-UX.
15235 case "$host_cpu" in
15236 hppa*64*|ia64*)
15237 # +Z the default
15238 ;;
15239 *)
15240 lt_prog_compiler_pic_GCJ='-fPIC'
15241 ;;
15242 esac
15243 ;;
15244
15245 *)
15246 lt_prog_compiler_pic_GCJ='-fPIC'
15247 ;;
15248 esac
15249 else
15250 # PORTME Check for flag to pass linker flags through the system compiler.
15251 case $host_os in
15252 aix*)
15253 lt_prog_compiler_wl_GCJ='-Wl,'
15254 if test "$host_cpu" = ia64; then
15255 # AIX 5 now supports IA64 processor
15256 lt_prog_compiler_static_GCJ='-Bstatic'
15257 else
15258 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15259 fi
15260 ;;
15261
15262 mingw* | pw32* | os2*)
15263 # This hack is so that the source file can tell whether it is being
15264 # built for inclusion in a dll (and should export symbols for example).
15265 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15266 ;;
15267
15268 hpux9* | hpux10* | hpux11*)
15269 lt_prog_compiler_wl_GCJ='-Wl,'
15270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15271 # not for PA HP-UX.
15272 case "$host_cpu" in
15273 hppa*64*|ia64*)
15274 # +Z the default
15275 ;;
15276 *)
15277 lt_prog_compiler_pic_GCJ='+Z'
15278 ;;
15279 esac
15280 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15281 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15282 ;;
15283
15284 irix5* | irix6* | nonstopux*)
15285 lt_prog_compiler_wl_GCJ='-Wl,'
15286 # PIC (with -KPIC) is the default.
15287 lt_prog_compiler_static_GCJ='-non_shared'
15288 ;;
15289
15290 newsos6)
15291 lt_prog_compiler_pic_GCJ='-KPIC'
15292 lt_prog_compiler_static_GCJ='-Bstatic'
15293 ;;
15294
15295 linux*)
15296 case $CC in
15297 icc|ecc)
15298 lt_prog_compiler_wl_GCJ='-Wl,'
15299 lt_prog_compiler_pic_GCJ='-KPIC'
15300 lt_prog_compiler_static_GCJ='-static'
15301 ;;
15302 ccc)
15303 lt_prog_compiler_wl_GCJ='-Wl,'
15304 # All Alpha code is PIC.
15305 lt_prog_compiler_static_GCJ='-non_shared'
15306 ;;
15307 esac
15308 ;;
15309
15310 osf3* | osf4* | osf5*)
15311 lt_prog_compiler_wl_GCJ='-Wl,'
15312 # All OSF/1 code is PIC.
15313 lt_prog_compiler_static_GCJ='-non_shared'
15314 ;;
15315
15316 sco3.2v5*)
15317 lt_prog_compiler_pic_GCJ='-Kpic'
15318 lt_prog_compiler_static_GCJ='-dn'
15319 ;;
15320
15321 solaris*)
15322 lt_prog_compiler_wl_GCJ='-Wl,'
15323 lt_prog_compiler_pic_GCJ='-KPIC'
15324 lt_prog_compiler_static_GCJ='-Bstatic'
15325 ;;
15326
15327 sunos4*)
15328 lt_prog_compiler_wl_GCJ='-Qoption ld '
15329 lt_prog_compiler_pic_GCJ='-PIC'
15330 lt_prog_compiler_static_GCJ='-Bstatic'
15331 ;;
15332
15333 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15334 lt_prog_compiler_wl_GCJ='-Wl,'
15335 lt_prog_compiler_pic_GCJ='-KPIC'
15336 lt_prog_compiler_static_GCJ='-Bstatic'
15337 ;;
15338
15339 sysv4*MP*)
15340 if test -d /usr/nec ;then
15341 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15342 lt_prog_compiler_static_GCJ='-Bstatic'
15343 fi
15344 ;;
15345
15346 uts4*)
15347 lt_prog_compiler_pic_GCJ='-pic'
15348 lt_prog_compiler_static_GCJ='-Bstatic'
15349 ;;
15350
15351 *)
15352 lt_prog_compiler_can_build_shared_GCJ=no
15353 ;;
15354 esac
15355 fi
15356
15357echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15358echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15359
15360#
15361# Check to make sure the PIC flag actually works.
15362#
15363if test -n "$lt_prog_compiler_pic_GCJ"; then
15364 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15365echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15366if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15368else
15369 lt_prog_compiler_pic_works_GCJ=no
15370 ac_outfile=conftest.$ac_objext
15371 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15372 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15373 # Insert the option either (1) after the last *FLAGS variable, or
15374 # (2) before a word containing "conftest.", or (3) at the end.
15375 # Note that $ac_compile itself does not contain backslashes and begins
15376 # with a dollar sign (not a hyphen), so the echo should work correctly.
15377 # The option is referenced via a variable to avoid confusing sed.
15378 lt_compile=`echo "$ac_compile" | $SED \
15379 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15381 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5f285392004-08-24 16:32:21 +000015382 (eval echo "\"\$as_me:15382: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015383 (eval "$lt_compile" 2>conftest.err)
15384 ac_status=$?
15385 cat conftest.err >&5
Reid Spencer5f285392004-08-24 16:32:21 +000015386 echo "$as_me:15386: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015387 if (exit $ac_status) && test -s "$ac_outfile"; then
15388 # The compiler can only warn and ignore the option if not recognized
15389 # So say no if there are warnings
15390 if test ! -s conftest.err; then
15391 lt_prog_compiler_pic_works_GCJ=yes
15392 fi
15393 fi
15394 $rm conftest*
15395
15396fi
15397echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15398echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15399
15400if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15401 case $lt_prog_compiler_pic_GCJ in
15402 "" | " "*) ;;
15403 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15404 esac
15405else
15406 lt_prog_compiler_pic_GCJ=
15407 lt_prog_compiler_can_build_shared_GCJ=no
15408fi
15409
15410fi
15411case "$host_os" in
15412 # For platforms which do not support PIC, -DPIC is meaningless:
15413 *djgpp*)
15414 lt_prog_compiler_pic_GCJ=
15415 ;;
15416 *)
15417 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15418 ;;
15419esac
15420
15421echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15422echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15423if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15425else
15426 lt_cv_prog_compiler_c_o_GCJ=no
15427 $rm -r conftest 2>/dev/null
15428 mkdir conftest
15429 cd conftest
15430 mkdir out
15431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15432
15433 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15434 # that will create temporary files in the current directory regardless of
15435 # the output directory. Thus, making CWD read-only will cause this test
15436 # to fail, enabling locking or at least warning the user not to do parallel
15437 # builds.
15438 chmod -w .
15439
15440 lt_compiler_flag="-o out/conftest2.$ac_objext"
15441 # Insert the option either (1) after the last *FLAGS variable, or
15442 # (2) before a word containing "conftest.", or (3) at the end.
15443 # Note that $ac_compile itself does not contain backslashes and begins
15444 # with a dollar sign (not a hyphen), so the echo should work correctly.
15445 lt_compile=`echo "$ac_compile" | $SED \
15446 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15448 -e 's:$: $lt_compiler_flag:'`
Reid Spencer5f285392004-08-24 16:32:21 +000015449 (eval echo "\"\$as_me:15449: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015450 (eval "$lt_compile" 2>out/conftest.err)
15451 ac_status=$?
15452 cat out/conftest.err >&5
Reid Spencer5f285392004-08-24 16:32:21 +000015453 echo "$as_me:15453: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015454 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15455 then
15456 # The compiler can only warn and ignore the option if not recognized
15457 # So say no if there are warnings
15458 if test ! -s out/conftest.err; then
15459 lt_cv_prog_compiler_c_o_GCJ=yes
15460 fi
15461 fi
15462 chmod u+w .
15463 $rm conftest* out/*
15464 rmdir out
15465 cd ..
15466 rmdir conftest
15467 $rm conftest*
15468
15469fi
15470echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15471echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15472
15473
15474hard_links="nottested"
15475if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15476 # do not overwrite the value of need_locks provided by the user
15477 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15478echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15479 hard_links=yes
15480 $rm conftest*
15481 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15482 touch conftest.a
15483 ln conftest.a conftest.b 2>&5 || hard_links=no
15484 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15485 echo "$as_me:$LINENO: result: $hard_links" >&5
15486echo "${ECHO_T}$hard_links" >&6
15487 if test "$hard_links" = no; then
15488 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15489echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15490 need_locks=warn
15491 fi
15492else
15493 need_locks=no
15494fi
15495
15496echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15497echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15498
15499 runpath_var=
15500 allow_undefined_flag_GCJ=
15501 enable_shared_with_static_runtimes_GCJ=no
15502 archive_cmds_GCJ=
15503 archive_expsym_cmds_GCJ=
15504 old_archive_From_new_cmds_GCJ=
15505 old_archive_from_expsyms_cmds_GCJ=
15506 export_dynamic_flag_spec_GCJ=
15507 whole_archive_flag_spec_GCJ=
15508 thread_safe_flag_spec_GCJ=
15509 hardcode_libdir_flag_spec_GCJ=
15510 hardcode_libdir_flag_spec_ld_GCJ=
15511 hardcode_libdir_separator_GCJ=
15512 hardcode_direct_GCJ=no
15513 hardcode_minus_L_GCJ=no
15514 hardcode_shlibpath_var_GCJ=unsupported
15515 link_all_deplibs_GCJ=unknown
15516 hardcode_automatic_GCJ=no
15517 module_cmds_GCJ=
15518 module_expsym_cmds_GCJ=
15519 always_export_symbols_GCJ=no
15520 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15521 # include_expsyms should be a list of space-separated symbols to be *always*
15522 # included in the symbol list
15523 include_expsyms_GCJ=
15524 # exclude_expsyms can be an extended regexp of symbols to exclude
15525 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15526 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15527 # as well as any symbol that contains `d'.
15528 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15529 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15530 # platforms (ab)use it in PIC code, but their linkers get confused if
15531 # the symbol is explicitly referenced. Since portable code cannot
15532 # rely on this symbol name, it's probably fine to never include it in
15533 # preloaded symbol tables.
15534 extract_expsyms_cmds=
15535
15536 case $host_os in
15537 cygwin* | mingw* | pw32*)
15538 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15539 # When not using gcc, we currently assume that we are using
15540 # Microsoft Visual C++.
15541 if test "$GCC" != yes; then
15542 with_gnu_ld=no
15543 fi
15544 ;;
15545 openbsd*)
15546 with_gnu_ld=no
15547 ;;
15548 esac
15549
15550 ld_shlibs_GCJ=yes
15551 if test "$with_gnu_ld" = yes; then
15552 # If archive_cmds runs LD, not CC, wlarc should be empty
15553 wlarc='${wl}'
15554
15555 # See if GNU ld supports shared libraries.
15556 case $host_os in
15557 aix3* | aix4* | aix5*)
15558 # On AIX/PPC, the GNU linker is very broken
15559 if test "$host_cpu" != ia64; then
15560 ld_shlibs_GCJ=no
15561 cat <<EOF 1>&2
15562
15563*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15564*** to be unable to reliably create shared libraries on AIX.
15565*** Therefore, libtool is disabling shared libraries support. If you
15566*** really care for shared libraries, you may want to modify your PATH
15567*** so that a non-GNU linker is found, and then restart.
15568
15569EOF
15570 fi
15571 ;;
15572
15573 amigaos*)
15574 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15575 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15576 hardcode_minus_L_GCJ=yes
15577
15578 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15579 # that the semantics of dynamic libraries on AmigaOS, at least up
15580 # to version 4, is to share data among multiple programs linked
15581 # with the same dynamic library. Since this doesn't match the
15582 # behavior of shared libraries on other platforms, we can't use
15583 # them.
15584 ld_shlibs_GCJ=no
15585 ;;
15586
15587 beos*)
15588 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15589 allow_undefined_flag_GCJ=unsupported
15590 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15591 # support --undefined. This deserves some investigation. FIXME
15592 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15593 else
15594 ld_shlibs_GCJ=no
15595 fi
15596 ;;
15597
15598 cygwin* | mingw* | pw32*)
15599 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15600 # as there is no search path for DLLs.
15601 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15602 allow_undefined_flag_GCJ=unsupported
15603 always_export_symbols_GCJ=no
15604 enable_shared_with_static_runtimes_GCJ=yes
15605 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15606
15607 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15608 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15609 # If the export-symbols file already is a .def file (1st line
15610 # is EXPORTS), use it as is; otherwise, prepend...
15611 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15612 cp $export_symbols $output_objdir/$soname.def;
15613 else
15614 echo EXPORTS > $output_objdir/$soname.def;
15615 cat $export_symbols >> $output_objdir/$soname.def;
15616 fi~
15617 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15618 else
15619 ld_shlibs=no
15620 fi
15621 ;;
15622
15623 netbsd*)
15624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15625 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15626 wlarc=
15627 else
15628 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15630 fi
15631 ;;
15632
15633 solaris* | sysv5*)
15634 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15635 ld_shlibs_GCJ=no
15636 cat <<EOF 1>&2
15637
15638*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15639*** create shared libraries on Solaris systems. Therefore, libtool
15640*** is disabling shared libraries support. We urge you to upgrade GNU
15641*** binutils to release 2.9.1 or newer. Another option is to modify
15642*** your PATH or compiler configuration so that the native linker is
15643*** used, and then restart.
15644
15645EOF
15646 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15647 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15648 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15649 else
15650 ld_shlibs_GCJ=no
15651 fi
15652 ;;
15653
15654 sunos4*)
15655 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15656 wlarc=
15657 hardcode_direct_GCJ=yes
15658 hardcode_shlibpath_var_GCJ=no
15659 ;;
15660
15661 *)
15662 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15663 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15664 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15665 else
15666 ld_shlibs_GCJ=no
15667 fi
15668 ;;
15669 esac
15670
15671 if test "$ld_shlibs_GCJ" = yes; then
15672 runpath_var=LD_RUN_PATH
15673 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15674 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15675 # ancient GNU ld didn't support --whole-archive et. al.
15676 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15677 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15678 else
15679 whole_archive_flag_spec_GCJ=
15680 fi
15681 fi
15682 else
15683 # PORTME fill in a description of your system's linker (not GNU ld)
15684 case $host_os in
15685 aix3*)
15686 allow_undefined_flag_GCJ=unsupported
15687 always_export_symbols_GCJ=yes
15688 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
15689 # Note: this linker hardcodes the directories in LIBPATH if there
15690 # are no directories specified by -L.
15691 hardcode_minus_L_GCJ=yes
15692 if test "$GCC" = yes && test -z "$link_static_flag"; then
15693 # Neither direct hardcoding nor static linking is supported with a
15694 # broken collect2.
15695 hardcode_direct_GCJ=unsupported
15696 fi
15697 ;;
15698
15699 aix4* | aix5*)
15700 if test "$host_cpu" = ia64; then
15701 # On IA64, the linker does run time linking by default, so we don't
15702 # have to do anything special.
15703 aix_use_runtimelinking=no
15704 exp_sym_flag='-Bexport'
15705 no_entry_flag=""
15706 else
15707 # If we're using GNU nm, then we don't want the "-C" option.
15708 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15709 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15710 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'
15711 else
15712 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'
15713 fi
15714 aix_use_runtimelinking=no
15715
15716 # Test if we are trying to use run time linking or normal
15717 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15718 # need to do runtime linking.
15719 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15720 for ld_flag in $LDFLAGS; do
15721 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15722 aix_use_runtimelinking=yes
15723 break
15724 fi
15725 done
15726 esac
15727
15728 exp_sym_flag='-bexport'
15729 no_entry_flag='-bnoentry'
15730 fi
15731
15732 # When large executables or shared objects are built, AIX ld can
15733 # have problems creating the table of contents. If linking a library
15734 # or program results in "error TOC overflow" add -mminimal-toc to
15735 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15736 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15737
15738 archive_cmds_GCJ=''
15739 hardcode_direct_GCJ=yes
15740 hardcode_libdir_separator_GCJ=':'
15741 link_all_deplibs_GCJ=yes
15742
15743 if test "$GCC" = yes; then
15744 case $host_os in aix4.012|aix4.012.*)
15745 # We only want to do this on AIX 4.2 and lower, the check
15746 # below for broken collect2 doesn't work under 4.3+
15747 collect2name=`${CC} -print-prog-name=collect2`
15748 if test -f "$collect2name" && \
15749 strings "$collect2name" | grep resolve_lib_name >/dev/null
15750 then
15751 # We have reworked collect2
15752 hardcode_direct_GCJ=yes
15753 else
15754 # We have old collect2
15755 hardcode_direct_GCJ=unsupported
15756 # It fails to find uninstalled libraries when the uninstalled
15757 # path is not listed in the libpath. Setting hardcode_minus_L
15758 # to unsupported forces relinking
15759 hardcode_minus_L_GCJ=yes
15760 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15761 hardcode_libdir_separator_GCJ=
15762 fi
15763 esac
15764 shared_flag='-shared'
15765 else
15766 # not using gcc
15767 if test "$host_cpu" = ia64; then
15768 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15769 # chokes on -Wl,-G. The following line is correct:
15770 shared_flag='-G'
15771 else
15772 if test "$aix_use_runtimelinking" = yes; then
15773 shared_flag='${wl}-G'
15774 else
15775 shared_flag='${wl}-bM:SRE'
15776 fi
15777 fi
15778 fi
15779
15780 # It seems that -bexpall does not export symbols beginning with
15781 # underscore (_), so it is better to generate a list of symbols to export.
15782 always_export_symbols_GCJ=yes
15783 if test "$aix_use_runtimelinking" = yes; then
15784 # Warning - without using the other runtime loading flags (-brtl),
15785 # -berok will link without error, but may produce a broken library.
15786 allow_undefined_flag_GCJ='-berok'
15787 # Determine the default libpath from the value encoded in an empty executable.
15788 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015789/* confdefs.h. */
15790_ACEOF
15791cat confdefs.h >>conftest.$ac_ext
15792cat >>conftest.$ac_ext <<_ACEOF
15793/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015794
John Criswell47fdd832003-07-14 16:52:07 +000015795int
15796main ()
15797{
15798
15799 ;
15800 return 0;
15801}
15802_ACEOF
15803rm -f conftest.$ac_objext conftest$ac_exeext
15804if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000015805 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015806 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000015807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000015812 { ac_try='test -z "$ac_c_werror_flag"
15813 || test ! -s conftest.err'
15814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15815 (eval $ac_try) 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15821 (eval $ac_try) 2>&5
15822 ac_status=$?
15823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15824 (exit $ac_status); }; }; then
15825
15826aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15827}'`
15828# Check for a 64-bit object if we didn't find anything.
15829if 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; }
15830}'`; fi
15831else
15832 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015833sed 's/^/| /' conftest.$ac_ext >&5
15834
John Criswell47fdd832003-07-14 16:52:07 +000015835fi
Reid Spencer2b51a082004-08-04 00:34:49 +000015836rm -f conftest.err conftest.$ac_objext \
15837 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015838if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15839
15840 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15841 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"
15842 else
15843 if test "$host_cpu" = ia64; then
15844 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15845 allow_undefined_flag_GCJ="-z nodefs"
15846 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"
15847 else
15848 # Determine the default libpath from the value encoded in an empty executable.
15849 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015850/* confdefs.h. */
15851_ACEOF
15852cat confdefs.h >>conftest.$ac_ext
15853cat >>conftest.$ac_ext <<_ACEOF
15854/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015855
John Criswell47fdd832003-07-14 16:52:07 +000015856int
15857main ()
15858{
15859
15860 ;
15861 return 0;
15862}
15863_ACEOF
15864rm -f conftest.$ac_objext conftest$ac_exeext
15865if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000015866 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015867 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000015868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000015873 { ac_try='test -z "$ac_c_werror_flag"
15874 || test ! -s conftest.err'
15875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15876 (eval $ac_try) 2>&5
15877 ac_status=$?
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); }; } &&
15880 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15882 (eval $ac_try) 2>&5
15883 ac_status=$?
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); }; }; then
15886
15887aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15888}'`
15889# Check for a 64-bit object if we didn't find anything.
15890if 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; }
15891}'`; fi
15892else
15893 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015894sed 's/^/| /' conftest.$ac_ext >&5
15895
John Criswell47fdd832003-07-14 16:52:07 +000015896fi
Reid Spencer2b51a082004-08-04 00:34:49 +000015897rm -f conftest.err conftest.$ac_objext \
15898 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015899if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15900
15901 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15902 # Warning - without using the other run time loading flags,
15903 # -berok will link without error, but may produce a broken library.
15904 no_undefined_flag_GCJ=' ${wl}-bernotok'
15905 allow_undefined_flag_GCJ=' ${wl}-berok'
15906 # -bexpall does not export symbols beginning with underscore (_)
15907 always_export_symbols_GCJ=yes
15908 # Exported symbols can be pulled into shared objects from archives
15909 whole_archive_flag_spec_GCJ=' '
15910 archive_cmds_need_lc_GCJ=yes
15911 # This is similar to how AIX traditionally builds it's shared libraries.
15912 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15913 fi
15914 fi
15915 ;;
15916
15917 amigaos*)
15918 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
15919 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15920 hardcode_minus_L_GCJ=yes
15921 # see comment about different semantics on the GNU ld section
15922 ld_shlibs_GCJ=no
15923 ;;
15924
15925 bsdi4*)
15926 export_dynamic_flag_spec_GCJ=-rdynamic
15927 ;;
15928
15929 cygwin* | mingw* | pw32*)
15930 # When not using gcc, we currently assume that we are using
15931 # Microsoft Visual C++.
15932 # hardcode_libdir_flag_spec is actually meaningless, as there is
15933 # no search path for DLLs.
15934 hardcode_libdir_flag_spec_GCJ=' '
15935 allow_undefined_flag_GCJ=unsupported
15936 # Tell ltmain to make .lib files, not .a files.
15937 libext=lib
15938 # Tell ltmain to make .dll files, not .so files.
15939 shrext=".dll"
15940 # FIXME: Setting linknames here is a bad hack.
15941 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15942 # The linker will automatically build a .lib file if we build a DLL.
15943 old_archive_From_new_cmds_GCJ='true'
15944 # FIXME: Should let the user specify the lib program.
15945 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15946 fix_srcfile_path='`cygpath -w "$srcfile"`'
15947 enable_shared_with_static_runtimes_GCJ=yes
15948 ;;
15949
15950 darwin* | rhapsody*)
15951 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15952 archive_cmds_need_lc_GCJ=no
15953 case "$host_os" in
15954 rhapsody* | darwin1.[012])
15955 allow_undefined_flag_GCJ='-undefined suppress'
15956 ;;
15957 *) # Darwin 1.3 on
15958 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15959 ;;
15960 esac
15961 # FIXME: Relying on posixy $() will cause problems for
15962 # cross-compilation, but unfortunately the echo tests do not
15963 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15964 # `"' quotes if we put them in here... so don't!
15965 lt_int_apple_cc_single_mod=no
15966 output_verbose_link_cmd='echo'
15967 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15968 lt_int_apple_cc_single_mod=yes
15969 fi
15970 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15971 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15972 else
15973 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15974 fi
15975 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15976 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15977 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15978 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15979 else
15980 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15981 fi
15982 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15983 hardcode_direct_GCJ=no
15984 hardcode_automatic_GCJ=yes
15985 hardcode_shlibpath_var_GCJ=unsupported
15986 whole_archive_flag_spec_GCJ='-all_load $convenience'
15987 link_all_deplibs_GCJ=yes
15988 fi
15989 ;;
15990
15991 dgux*)
15992 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15993 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15994 hardcode_shlibpath_var_GCJ=no
15995 ;;
15996
15997 freebsd1*)
15998 ld_shlibs_GCJ=no
15999 ;;
16000
16001 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16002 # support. Future versions do this automatically, but an explicit c++rt0.o
16003 # does not break anything, and helps significantly (at the cost of a little
16004 # extra space).
16005 freebsd2.2*)
16006 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16007 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16008 hardcode_direct_GCJ=yes
16009 hardcode_shlibpath_var_GCJ=no
16010 ;;
16011
16012 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16013 freebsd2*)
16014 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16015 hardcode_direct_GCJ=yes
16016 hardcode_minus_L_GCJ=yes
16017 hardcode_shlibpath_var_GCJ=no
16018 ;;
16019
16020 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16021 freebsd*)
16022 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16023 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16024 hardcode_direct_GCJ=yes
16025 hardcode_shlibpath_var_GCJ=no
16026 ;;
16027
16028 hpux9*)
16029 if test "$GCC" = yes; then
16030 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16031 else
16032 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16033 fi
16034 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16035 hardcode_libdir_separator_GCJ=:
16036 hardcode_direct_GCJ=yes
16037
16038 # hardcode_minus_L: Not really in the search PATH,
16039 # but as the default location of the library.
16040 hardcode_minus_L_GCJ=yes
16041 export_dynamic_flag_spec_GCJ='${wl}-E'
16042 ;;
16043
16044 hpux10* | hpux11*)
16045 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16046 case "$host_cpu" in
16047 hppa*64*|ia64*)
16048 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16049 ;;
16050 *)
16051 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16052 ;;
16053 esac
16054 else
16055 case "$host_cpu" in
16056 hppa*64*|ia64*)
16057 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16058 ;;
16059 *)
16060 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16061 ;;
16062 esac
16063 fi
16064 if test "$with_gnu_ld" = no; then
16065 case "$host_cpu" in
16066 hppa*64*)
16067 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16068 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16069 hardcode_libdir_separator_GCJ=:
16070 hardcode_direct_GCJ=no
16071 hardcode_shlibpath_var_GCJ=no
16072 ;;
16073 ia64*)
16074 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16075 hardcode_direct_GCJ=no
16076 hardcode_shlibpath_var_GCJ=no
16077
16078 # hardcode_minus_L: Not really in the search PATH,
16079 # but as the default location of the library.
16080 hardcode_minus_L_GCJ=yes
16081 ;;
16082 *)
16083 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16084 hardcode_libdir_separator_GCJ=:
16085 hardcode_direct_GCJ=yes
16086 export_dynamic_flag_spec_GCJ='${wl}-E'
16087
16088 # hardcode_minus_L: Not really in the search PATH,
16089 # but as the default location of the library.
16090 hardcode_minus_L_GCJ=yes
16091 ;;
16092 esac
16093 fi
16094 ;;
16095
16096 irix5* | irix6* | nonstopux*)
16097 if test "$GCC" = yes; then
16098 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'
16099 else
16100 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'
16101 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16102 fi
16103 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16104 hardcode_libdir_separator_GCJ=:
16105 link_all_deplibs_GCJ=yes
16106 ;;
16107
16108 netbsd*)
16109 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16110 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16111 else
16112 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16113 fi
16114 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16115 hardcode_direct_GCJ=yes
16116 hardcode_shlibpath_var_GCJ=no
16117 ;;
16118
16119 newsos6)
16120 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16121 hardcode_direct_GCJ=yes
16122 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16123 hardcode_libdir_separator_GCJ=:
16124 hardcode_shlibpath_var_GCJ=no
16125 ;;
16126
16127 openbsd*)
16128 hardcode_direct_GCJ=yes
16129 hardcode_shlibpath_var_GCJ=no
16130 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16131 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16132 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16133 export_dynamic_flag_spec_GCJ='${wl}-E'
16134 else
16135 case $host_os in
16136 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16137 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16138 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16139 ;;
16140 *)
16141 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16142 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16143 ;;
16144 esac
16145 fi
16146 ;;
16147
16148 os2*)
16149 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16150 hardcode_minus_L_GCJ=yes
16151 allow_undefined_flag_GCJ=unsupported
16152 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
16153 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16154 ;;
16155
16156 osf3*)
16157 if test "$GCC" = yes; then
16158 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16159 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'
16160 else
16161 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16162 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'
16163 fi
16164 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16165 hardcode_libdir_separator_GCJ=:
16166 ;;
16167
16168 osf4* | osf5*) # as osf3* with the addition of -msym flag
16169 if test "$GCC" = yes; then
16170 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16171 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'
16172 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16173 else
16174 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16175 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'
16176 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~
16177 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16178
16179 # Both c and cxx compiler support -rpath directly
16180 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16181 fi
16182 hardcode_libdir_separator_GCJ=:
16183 ;;
16184
16185 sco3.2v5*)
16186 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16187 hardcode_shlibpath_var_GCJ=no
16188 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16189 runpath_var=LD_RUN_PATH
16190 hardcode_runpath_var=yes
16191 ;;
16192
16193 solaris*)
16194 no_undefined_flag_GCJ=' -z text'
16195 if test "$GCC" = yes; then
16196 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16197 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16198 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16199 else
16200 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16201 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16202 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16203 fi
16204 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16205 hardcode_shlibpath_var_GCJ=no
16206 case $host_os in
16207 solaris2.[0-5] | solaris2.[0-5].*) ;;
16208 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16209 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16210 esac
16211 link_all_deplibs_GCJ=yes
16212 ;;
16213
16214 sunos4*)
16215 if test "x$host_vendor" = xsequent; then
16216 # Use $CC to link under sequent, because it throws in some extra .o
16217 # files that make .init and .fini sections work.
16218 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16219 else
16220 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16221 fi
16222 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16223 hardcode_direct_GCJ=yes
16224 hardcode_minus_L_GCJ=yes
16225 hardcode_shlibpath_var_GCJ=no
16226 ;;
16227
16228 sysv4)
16229 case $host_vendor in
16230 sni)
16231 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16232 hardcode_direct_GCJ=yes # is this really true???
16233 ;;
16234 siemens)
16235 ## LD is ld it makes a PLAMLIB
16236 ## CC just makes a GrossModule.
16237 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16238 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16239 hardcode_direct_GCJ=no
16240 ;;
16241 motorola)
16242 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16243 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16244 ;;
16245 esac
16246 runpath_var='LD_RUN_PATH'
16247 hardcode_shlibpath_var_GCJ=no
16248 ;;
16249
16250 sysv4.3*)
16251 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16252 hardcode_shlibpath_var_GCJ=no
16253 export_dynamic_flag_spec_GCJ='-Bexport'
16254 ;;
16255
16256 sysv4*MP*)
16257 if test -d /usr/nec; then
16258 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16259 hardcode_shlibpath_var_GCJ=no
16260 runpath_var=LD_RUN_PATH
16261 hardcode_runpath_var=yes
16262 ld_shlibs_GCJ=yes
16263 fi
16264 ;;
16265
16266 sysv4.2uw2*)
16267 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16268 hardcode_direct_GCJ=yes
16269 hardcode_minus_L_GCJ=no
16270 hardcode_shlibpath_var_GCJ=no
16271 hardcode_runpath_var=yes
16272 runpath_var=LD_RUN_PATH
16273 ;;
16274
16275 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16276 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16277 if test "$GCC" = yes; then
16278 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16279 else
16280 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16281 fi
16282 runpath_var='LD_RUN_PATH'
16283 hardcode_shlibpath_var_GCJ=no
16284 ;;
16285
16286 sysv5*)
16287 no_undefined_flag_GCJ=' -z text'
16288 # $CC -shared without GNU ld will not create a library from C++
16289 # object files and a static libstdc++, better avoid it by now
16290 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16291 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16292 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16293 hardcode_libdir_flag_spec_GCJ=
16294 hardcode_shlibpath_var_GCJ=no
16295 runpath_var='LD_RUN_PATH'
16296 ;;
16297
16298 uts4*)
16299 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16300 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16301 hardcode_shlibpath_var_GCJ=no
16302 ;;
16303
16304 *)
16305 ld_shlibs_GCJ=no
16306 ;;
16307 esac
16308 fi
16309
16310echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16311echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16312test "$ld_shlibs_GCJ" = no && can_build_shared=no
16313
16314variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16315if test "$GCC" = yes; then
16316 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16317fi
16318
16319#
16320# Do we need to explicitly link libc?
16321#
16322case "x$archive_cmds_need_lc_GCJ" in
16323x|xyes)
16324 # Assume -lc should be added
16325 archive_cmds_need_lc_GCJ=yes
16326
16327 if test "$enable_shared" = yes && test "$GCC" = yes; then
16328 case $archive_cmds_GCJ in
16329 *'~'*)
16330 # FIXME: we may have to deal with multi-command sequences.
16331 ;;
16332 '$CC '*)
16333 # Test whether the compiler implicitly links with -lc since on some
16334 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16335 # to ld, don't add -lc before -lgcc.
16336 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16337echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16338 $rm conftest*
16339 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16340
16341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16342 (eval $ac_compile) 2>&5
16343 ac_status=$?
16344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16345 (exit $ac_status); } 2>conftest.err; then
16346 soname=conftest
16347 lib=conftest
16348 libobjs=conftest.$ac_objext
16349 deplibs=
16350 wl=$lt_prog_compiler_wl_GCJ
16351 compiler_flags=-v
16352 linker_flags=-v
16353 verstring=
16354 output_objdir=.
16355 libname=conftest
16356 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16357 allow_undefined_flag_GCJ=
16358 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16359 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16360 ac_status=$?
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }
16363 then
16364 archive_cmds_need_lc_GCJ=no
16365 else
16366 archive_cmds_need_lc_GCJ=yes
16367 fi
16368 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16369 else
16370 cat conftest.err 1>&5
16371 fi
16372 $rm conftest*
16373 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16374echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16375 ;;
16376 esac
16377 fi
16378 ;;
16379esac
16380
16381echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16382echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16383hardcode_action_GCJ=
16384if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16385 test -n "$runpath_var GCJ" || \
16386 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16387
16388 # We can hardcode non-existant directories.
16389 if test "$hardcode_direct_GCJ" != no &&
16390 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16391 # have to relink, otherwise we might link with an installed library
16392 # when we should be linking with a yet-to-be-installed one
16393 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16394 test "$hardcode_minus_L_GCJ" != no; then
16395 # Linking always hardcodes the temporary library directory.
16396 hardcode_action_GCJ=relink
16397 else
16398 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16399 hardcode_action_GCJ=immediate
16400 fi
16401else
16402 # We cannot hardcode anything, or else we can only hardcode existing
16403 # directories.
16404 hardcode_action_GCJ=unsupported
16405fi
16406echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16407echo "${ECHO_T}$hardcode_action_GCJ" >&6
16408
16409if test "$hardcode_action_GCJ" = relink; then
16410 # Fast installation is not supported
16411 enable_fast_install=no
16412elif test "$shlibpath_overrides_runpath" = yes ||
16413 test "$enable_shared" = no; then
16414 # Fast installation is not necessary
16415 enable_fast_install=needless
16416fi
16417
16418striplib=
16419old_striplib=
16420echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16421echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16422if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16423 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16424 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16425 echo "$as_me:$LINENO: result: yes" >&5
16426echo "${ECHO_T}yes" >&6
16427else
16428# FIXME - insert some real tests, host_os isn't really good enough
16429 case $host_os in
16430 darwin*)
16431 if test -n "$STRIP" ; then
16432 striplib="$STRIP -x"
16433 echo "$as_me:$LINENO: result: yes" >&5
16434echo "${ECHO_T}yes" >&6
16435 else
16436 echo "$as_me:$LINENO: result: no" >&5
16437echo "${ECHO_T}no" >&6
16438fi
16439 ;;
16440 *)
16441 echo "$as_me:$LINENO: result: no" >&5
16442echo "${ECHO_T}no" >&6
16443 ;;
16444 esac
16445fi
16446
16447echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16448echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16449library_names_spec=
16450libname_spec='lib$name'
16451soname_spec=
16452shrext=".so"
16453postinstall_cmds=
16454postuninstall_cmds=
16455finish_cmds=
16456finish_eval=
16457shlibpath_var=
16458shlibpath_overrides_runpath=unknown
16459version_type=none
16460dynamic_linker="$host_os ld.so"
16461sys_lib_dlsearch_path_spec="/lib /usr/lib"
16462if test "$GCC" = yes; then
16463 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16464 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16465 # if the path contains ";" then we assume it to be the separator
16466 # otherwise default to the standard path separator (i.e. ":") - it is
16467 # assumed that no part of a normal pathname contains ";" but that should
16468 # okay in the real world where ";" in dirpaths is itself problematic.
16469 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16470 else
16471 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16472 fi
16473else
16474 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16475fi
16476need_lib_prefix=unknown
16477hardcode_into_libs=no
16478
16479# when you set need_version to no, make sure it does not cause -set_version
16480# flags to be left without arguments
16481need_version=unknown
16482
16483case $host_os in
16484aix3*)
16485 version_type=linux
16486 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16487 shlibpath_var=LIBPATH
16488
16489 # AIX 3 has no versioning support, so we append a major version to the name.
16490 soname_spec='${libname}${release}${shared_ext}$major'
16491 ;;
16492
16493aix4* | aix5*)
16494 version_type=linux
16495 need_lib_prefix=no
16496 need_version=no
16497 hardcode_into_libs=yes
16498 if test "$host_cpu" = ia64; then
16499 # AIX 5 supports IA64
16500 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16501 shlibpath_var=LD_LIBRARY_PATH
16502 else
16503 # With GCC up to 2.95.x, collect2 would create an import file
16504 # for dependence libraries. The import file would start with
16505 # the line `#! .'. This would cause the generated library to
16506 # depend on `.', always an invalid library. This was fixed in
16507 # development snapshots of GCC prior to 3.0.
16508 case $host_os in
16509 aix4 | aix4.[01] | aix4.[01].*)
16510 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16511 echo ' yes '
16512 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16513 :
16514 else
16515 can_build_shared=no
16516 fi
16517 ;;
16518 esac
16519 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16520 # soname into executable. Probably we can add versioning support to
16521 # collect2, so additional links can be useful in future.
16522 if test "$aix_use_runtimelinking" = yes; then
16523 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16524 # instead of lib<name>.a to let people know that these are not
16525 # typical AIX shared libraries.
16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16527 else
16528 # We preserve .a as extension for shared libraries through AIX4.2
16529 # and later when we are not doing run time linking.
16530 library_names_spec='${libname}${release}.a $libname.a'
16531 soname_spec='${libname}${release}${shared_ext}$major'
16532 fi
16533 shlibpath_var=LIBPATH
16534 fi
16535 ;;
16536
16537amigaos*)
16538 library_names_spec='$libname.ixlibrary $libname.a'
16539 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16540 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'
16541 ;;
16542
16543beos*)
16544 library_names_spec='${libname}${shared_ext}'
16545 dynamic_linker="$host_os ld.so"
16546 shlibpath_var=LIBRARY_PATH
16547 ;;
16548
16549bsdi4*)
16550 version_type=linux
16551 need_version=no
16552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16553 soname_spec='${libname}${release}${shared_ext}$major'
16554 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16555 shlibpath_var=LD_LIBRARY_PATH
16556 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16557 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16558 # the default ld.so.conf also contains /usr/contrib/lib and
16559 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16560 # libtool to hard-code these into programs
16561 ;;
16562
16563cygwin* | mingw* | pw32*)
16564 version_type=windows
16565 shrext=".dll"
16566 need_version=no
16567 need_lib_prefix=no
16568
16569 case $GCC,$host_os in
16570 yes,cygwin* | yes,mingw* | yes,pw32*)
16571 library_names_spec='$libname.dll.a'
16572 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16573 postinstall_cmds='base_file=`basename \${file}`~
16574 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16575 dldir=$destdir/`dirname \$dlpath`~
16576 test -d \$dldir || mkdir -p \$dldir~
16577 $install_prog $dir/$dlname \$dldir/$dlname'
16578 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16579 dlpath=$dir/\$dldll~
16580 $rm \$dlpath'
16581 shlibpath_overrides_runpath=yes
16582
16583 case $host_os in
16584 cygwin*)
16585 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16586 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16587 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16588 ;;
16589 mingw*)
16590 # MinGW DLLs use traditional 'lib' prefix
16591 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16592 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16593 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16594 # It is most probably a Windows format PATH printed by
16595 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16596 # path with ; separators, and with drive letters. We can handle the
16597 # drive letters (cygwin fileutils understands them), so leave them,
16598 # especially as we might pass files found there to a mingw objdump,
16599 # which wouldn't understand a cygwinified path. Ahh.
16600 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16601 else
16602 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16603 fi
16604 ;;
16605 pw32*)
16606 # pw32 DLLs use 'pw' prefix rather than 'lib'
16607 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16608 ;;
16609 esac
16610 ;;
16611
16612 *)
16613 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16614 ;;
16615 esac
16616 dynamic_linker='Win32 ld.exe'
16617 # FIXME: first we should search . and the directory the executable is in
16618 shlibpath_var=PATH
16619 ;;
16620
16621darwin* | rhapsody*)
16622 dynamic_linker="$host_os dyld"
16623 version_type=darwin
16624 need_lib_prefix=no
16625 need_version=no
16626 # FIXME: Relying on posixy $() will cause problems for
16627 # cross-compilation, but unfortunately the echo tests do not
16628 # yet detect zsh echo's removal of \ escapes.
16629 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16630 soname_spec='${libname}${release}${major}$shared_ext'
16631 shlibpath_overrides_runpath=yes
16632 shlibpath_var=DYLD_LIBRARY_PATH
16633 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16634 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16635 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16636 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"`
16637 fi
16638 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16639 ;;
16640
16641dgux*)
16642 version_type=linux
16643 need_lib_prefix=no
16644 need_version=no
16645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16646 soname_spec='${libname}${release}${shared_ext}$major'
16647 shlibpath_var=LD_LIBRARY_PATH
16648 ;;
16649
16650freebsd1*)
16651 dynamic_linker=no
16652 ;;
16653
16654freebsd*)
16655 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16656 version_type=freebsd-$objformat
16657 case $version_type in
16658 freebsd-elf*)
16659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16660 need_version=no
16661 need_lib_prefix=no
16662 ;;
16663 freebsd-*)
16664 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16665 need_version=yes
16666 ;;
16667 esac
16668 shlibpath_var=LD_LIBRARY_PATH
16669 case $host_os in
16670 freebsd2*)
16671 shlibpath_overrides_runpath=yes
16672 ;;
16673 freebsd3.01* | freebsdelf3.01*)
16674 shlibpath_overrides_runpath=yes
16675 hardcode_into_libs=yes
16676 ;;
16677 *) # from 3.2 on
16678 shlibpath_overrides_runpath=no
16679 hardcode_into_libs=yes
16680 ;;
16681 esac
16682 ;;
16683
16684gnu*)
16685 version_type=linux
16686 need_lib_prefix=no
16687 need_version=no
16688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16689 soname_spec='${libname}${release}${shared_ext}$major'
16690 shlibpath_var=LD_LIBRARY_PATH
16691 hardcode_into_libs=yes
16692 ;;
16693
16694hpux9* | hpux10* | hpux11*)
16695 # Give a soname corresponding to the major version so that dld.sl refuses to
16696 # link against other versions.
16697 version_type=sunos
16698 need_lib_prefix=no
16699 need_version=no
16700 case "$host_cpu" in
16701 ia64*)
16702 shrext='.so'
16703 hardcode_into_libs=yes
16704 dynamic_linker="$host_os dld.so"
16705 shlibpath_var=LD_LIBRARY_PATH
16706 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16708 soname_spec='${libname}${release}${shared_ext}$major'
16709 if test "X$HPUX_IA64_MODE" = X32; then
16710 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16711 else
16712 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16713 fi
16714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16715 ;;
16716 hppa*64*)
16717 shrext='.sl'
16718 hardcode_into_libs=yes
16719 dynamic_linker="$host_os dld.sl"
16720 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16721 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16723 soname_spec='${libname}${release}${shared_ext}$major'
16724 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16725 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16726 ;;
16727 *)
16728 shrext='.sl'
16729 dynamic_linker="$host_os dld.sl"
16730 shlibpath_var=SHLIB_PATH
16731 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16733 soname_spec='${libname}${release}${shared_ext}$major'
16734 ;;
16735 esac
16736 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16737 postinstall_cmds='chmod 555 $lib'
16738 ;;
16739
16740irix5* | irix6* | nonstopux*)
16741 case $host_os in
16742 nonstopux*) version_type=nonstopux ;;
16743 *)
16744 if test "$lt_cv_prog_gnu_ld" = yes; then
16745 version_type=linux
16746 else
16747 version_type=irix
16748 fi ;;
16749 esac
16750 need_lib_prefix=no
16751 need_version=no
16752 soname_spec='${libname}${release}${shared_ext}$major'
16753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16754 case $host_os in
16755 irix5* | nonstopux*)
16756 libsuff= shlibsuff=
16757 ;;
16758 *)
16759 case $LD in # libtool.m4 will add one of these switches to LD
16760 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16761 libsuff= shlibsuff= libmagic=32-bit;;
16762 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16763 libsuff=32 shlibsuff=N32 libmagic=N32;;
16764 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16765 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16766 *) libsuff= shlibsuff= libmagic=never-match;;
16767 esac
16768 ;;
16769 esac
16770 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16771 shlibpath_overrides_runpath=no
16772 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16773 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16774 hardcode_into_libs=yes
16775 ;;
16776
16777# No shared lib support for Linux oldld, aout, or coff.
16778linux*oldld* | linux*aout* | linux*coff*)
16779 dynamic_linker=no
16780 ;;
16781
16782# This must be Linux ELF.
16783linux*)
16784 version_type=linux
16785 need_lib_prefix=no
16786 need_version=no
16787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16788 soname_spec='${libname}${release}${shared_ext}$major'
16789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16790 shlibpath_var=LD_LIBRARY_PATH
16791 shlibpath_overrides_runpath=no
16792 # This implies no fast_install, which is unacceptable.
16793 # Some rework will be needed to allow for fast_install
16794 # before this can be enabled.
16795 hardcode_into_libs=yes
16796
16797 # We used to test for /lib/ld.so.1 and disable shared libraries on
16798 # powerpc, because MkLinux only supported shared libraries with the
16799 # GNU dynamic linker. Since this was broken with cross compilers,
16800 # most powerpc-linux boxes support dynamic linking these days and
16801 # people can always --disable-shared, the test was removed, and we
16802 # assume the GNU/Linux dynamic linker is in use.
16803 dynamic_linker='GNU/Linux ld.so'
16804 ;;
16805
16806netbsd*)
16807 version_type=sunos
16808 need_lib_prefix=no
16809 need_version=no
16810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16813 dynamic_linker='NetBSD (a.out) ld.so'
16814 else
16815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16816 soname_spec='${libname}${release}${shared_ext}$major'
16817 dynamic_linker='NetBSD ld.elf_so'
16818 fi
16819 shlibpath_var=LD_LIBRARY_PATH
16820 shlibpath_overrides_runpath=yes
16821 hardcode_into_libs=yes
16822 ;;
16823
16824newsos6)
16825 version_type=linux
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827 shlibpath_var=LD_LIBRARY_PATH
16828 shlibpath_overrides_runpath=yes
16829 ;;
16830
16831nto-qnx)
16832 version_type=linux
16833 need_lib_prefix=no
16834 need_version=no
16835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836 soname_spec='${libname}${release}${shared_ext}$major'
16837 shlibpath_var=LD_LIBRARY_PATH
16838 shlibpath_overrides_runpath=yes
16839 ;;
16840
16841openbsd*)
16842 version_type=sunos
16843 need_lib_prefix=no
16844 need_version=no
16845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16846 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16847 shlibpath_var=LD_LIBRARY_PATH
16848 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16849 case $host_os in
16850 openbsd2.[89] | openbsd2.[89].*)
16851 shlibpath_overrides_runpath=no
16852 ;;
16853 *)
16854 shlibpath_overrides_runpath=yes
16855 ;;
16856 esac
16857 else
16858 shlibpath_overrides_runpath=yes
16859 fi
16860 ;;
16861
16862os2*)
16863 libname_spec='$name'
16864 shrext=".dll"
16865 need_lib_prefix=no
16866 library_names_spec='$libname${shared_ext} $libname.a'
16867 dynamic_linker='OS/2 ld.exe'
16868 shlibpath_var=LIBPATH
16869 ;;
16870
16871osf3* | osf4* | osf5*)
16872 version_type=osf
16873 need_lib_prefix=no
16874 need_version=no
16875 soname_spec='${libname}${release}${shared_ext}$major'
16876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16877 shlibpath_var=LD_LIBRARY_PATH
16878 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16879 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16880 ;;
16881
16882sco3.2v5*)
16883 version_type=osf
16884 soname_spec='${libname}${release}${shared_ext}$major'
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886 shlibpath_var=LD_LIBRARY_PATH
16887 ;;
16888
16889solaris*)
16890 version_type=linux
16891 need_lib_prefix=no
16892 need_version=no
16893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16894 soname_spec='${libname}${release}${shared_ext}$major'
16895 shlibpath_var=LD_LIBRARY_PATH
16896 shlibpath_overrides_runpath=yes
16897 hardcode_into_libs=yes
16898 # ldd complains unless libraries are executable
16899 postinstall_cmds='chmod +x $lib'
16900 ;;
16901
16902sunos4*)
16903 version_type=sunos
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16905 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16906 shlibpath_var=LD_LIBRARY_PATH
16907 shlibpath_overrides_runpath=yes
16908 if test "$with_gnu_ld" = yes; then
16909 need_lib_prefix=no
16910 fi
16911 need_version=yes
16912 ;;
16913
16914sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16915 version_type=linux
16916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917 soname_spec='${libname}${release}${shared_ext}$major'
16918 shlibpath_var=LD_LIBRARY_PATH
16919 case $host_vendor in
16920 sni)
16921 shlibpath_overrides_runpath=no
16922 need_lib_prefix=no
16923 export_dynamic_flag_spec='${wl}-Blargedynsym'
16924 runpath_var=LD_RUN_PATH
16925 ;;
16926 siemens)
16927 need_lib_prefix=no
16928 ;;
16929 motorola)
16930 need_lib_prefix=no
16931 need_version=no
16932 shlibpath_overrides_runpath=no
16933 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16934 ;;
16935 esac
16936 ;;
16937
16938sysv4*MP*)
16939 if test -d /usr/nec ;then
16940 version_type=linux
16941 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16942 soname_spec='$libname${shared_ext}.$major'
16943 shlibpath_var=LD_LIBRARY_PATH
16944 fi
16945 ;;
16946
16947uts4*)
16948 version_type=linux
16949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16950 soname_spec='${libname}${release}${shared_ext}$major'
16951 shlibpath_var=LD_LIBRARY_PATH
16952 ;;
16953
16954*)
16955 dynamic_linker=no
16956 ;;
16957esac
16958echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16959echo "${ECHO_T}$dynamic_linker" >&6
16960test "$dynamic_linker" = no && can_build_shared=no
16961
16962if test "x$enable_dlopen" != xyes; then
16963 enable_dlopen=unknown
16964 enable_dlopen_self=unknown
16965 enable_dlopen_self_static=unknown
16966else
16967 lt_cv_dlopen=no
16968 lt_cv_dlopen_libs=
16969
16970 case $host_os in
16971 beos*)
16972 lt_cv_dlopen="load_add_on"
16973 lt_cv_dlopen_libs=
16974 lt_cv_dlopen_self=yes
16975 ;;
16976
16977 mingw* | pw32*)
16978 lt_cv_dlopen="LoadLibrary"
16979 lt_cv_dlopen_libs=
16980 ;;
16981
16982 cygwin*)
16983 lt_cv_dlopen="dlopen"
16984 lt_cv_dlopen_libs=
16985 ;;
16986
16987 darwin*)
16988 # if libdl is installed we need to link against it
16989 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16990echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16991if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16992 echo $ECHO_N "(cached) $ECHO_C" >&6
16993else
16994 ac_check_lib_save_LIBS=$LIBS
16995LIBS="-ldl $LIBS"
16996cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016997/* confdefs.h. */
16998_ACEOF
16999cat confdefs.h >>conftest.$ac_ext
17000cat >>conftest.$ac_ext <<_ACEOF
17001/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017002
17003/* Override any gcc2 internal prototype to avoid an error. */
17004#ifdef __cplusplus
17005extern "C"
17006#endif
17007/* We use char because int might match the return type of a gcc2
17008 builtin and then its argument prototype would still apply. */
17009char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017010int
17011main ()
17012{
17013dlopen ();
17014 ;
17015 return 0;
17016}
17017_ACEOF
17018rm -f conftest.$ac_objext conftest$ac_exeext
17019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017020 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017021 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017022 grep -v '^ *+' conftest.er1 >conftest.err
17023 rm -f conftest.er1
17024 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017027 { ac_try='test -z "$ac_c_werror_flag"
17028 || test ! -s conftest.err'
17029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17030 (eval $ac_try) 2>&5
17031 ac_status=$?
17032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17033 (exit $ac_status); }; } &&
17034 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17036 (eval $ac_try) 2>&5
17037 ac_status=$?
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); }; }; then
17040 ac_cv_lib_dl_dlopen=yes
17041else
17042 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017043sed 's/^/| /' conftest.$ac_ext >&5
17044
John Criswell47fdd832003-07-14 16:52:07 +000017045ac_cv_lib_dl_dlopen=no
17046fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017047rm -f conftest.err conftest.$ac_objext \
17048 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017049LIBS=$ac_check_lib_save_LIBS
17050fi
17051echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17052echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17053if test $ac_cv_lib_dl_dlopen = yes; then
17054 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17055else
17056
17057 lt_cv_dlopen="dyld"
17058 lt_cv_dlopen_libs=
17059 lt_cv_dlopen_self=yes
17060
17061fi
17062
17063 ;;
17064
17065 *)
17066 echo "$as_me:$LINENO: checking for shl_load" >&5
17067echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17068if test "${ac_cv_func_shl_load+set}" = set; then
17069 echo $ECHO_N "(cached) $ECHO_C" >&6
17070else
17071 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017072/* confdefs.h. */
17073_ACEOF
17074cat confdefs.h >>conftest.$ac_ext
17075cat >>conftest.$ac_ext <<_ACEOF
17076/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017077/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17078 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17079#define shl_load innocuous_shl_load
17080
John Criswell47fdd832003-07-14 16:52:07 +000017081/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017082 which can conflict with char shl_load (); below.
17083 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17084 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017085
John Criswell0c38eaf2003-09-10 15:17:25 +000017086#ifdef __STDC__
17087# include <limits.h>
17088#else
17089# include <assert.h>
17090#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000017091
17092#undef shl_load
17093
John Criswell47fdd832003-07-14 16:52:07 +000017094/* Override any gcc2 internal prototype to avoid an error. */
17095#ifdef __cplusplus
17096extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017097{
John Criswell47fdd832003-07-14 16:52:07 +000017098#endif
17099/* We use char because int might match the return type of a gcc2
17100 builtin and then its argument prototype would still apply. */
17101char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017102/* The GNU C library defines this for functions which it implements
17103 to always fail with ENOSYS. Some functions are actually named
17104 something starting with __ and the normal name is an alias. */
17105#if defined (__stub_shl_load) || defined (__stub___shl_load)
17106choke me
17107#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017108char (*f) () = shl_load;
17109#endif
17110#ifdef __cplusplus
17111}
John Criswell47fdd832003-07-14 16:52:07 +000017112#endif
17113
John Criswell0c38eaf2003-09-10 15:17:25 +000017114int
17115main ()
17116{
17117return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017118 ;
17119 return 0;
17120}
17121_ACEOF
17122rm -f conftest.$ac_objext conftest$ac_exeext
17123if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017124 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017125 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017126 grep -v '^ *+' conftest.er1 >conftest.err
17127 rm -f conftest.er1
17128 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017131 { ac_try='test -z "$ac_c_werror_flag"
17132 || test ! -s conftest.err'
17133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17134 (eval $ac_try) 2>&5
17135 ac_status=$?
17136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17137 (exit $ac_status); }; } &&
17138 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17140 (eval $ac_try) 2>&5
17141 ac_status=$?
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); }; }; then
17144 ac_cv_func_shl_load=yes
17145else
17146 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017147sed 's/^/| /' conftest.$ac_ext >&5
17148
John Criswell47fdd832003-07-14 16:52:07 +000017149ac_cv_func_shl_load=no
17150fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017151rm -f conftest.err conftest.$ac_objext \
17152 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017153fi
17154echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17155echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17156if test $ac_cv_func_shl_load = yes; then
17157 lt_cv_dlopen="shl_load"
17158else
17159 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17160echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17161if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17163else
17164 ac_check_lib_save_LIBS=$LIBS
17165LIBS="-ldld $LIBS"
17166cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017167/* confdefs.h. */
17168_ACEOF
17169cat confdefs.h >>conftest.$ac_ext
17170cat >>conftest.$ac_ext <<_ACEOF
17171/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017172
17173/* Override any gcc2 internal prototype to avoid an error. */
17174#ifdef __cplusplus
17175extern "C"
17176#endif
17177/* We use char because int might match the return type of a gcc2
17178 builtin and then its argument prototype would still apply. */
17179char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017180int
17181main ()
17182{
17183shl_load ();
17184 ;
17185 return 0;
17186}
17187_ACEOF
17188rm -f conftest.$ac_objext conftest$ac_exeext
17189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017190 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017191 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017192 grep -v '^ *+' conftest.er1 >conftest.err
17193 rm -f conftest.er1
17194 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17196 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017197 { ac_try='test -z "$ac_c_werror_flag"
17198 || test ! -s conftest.err'
17199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17200 (eval $ac_try) 2>&5
17201 ac_status=$?
17202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17203 (exit $ac_status); }; } &&
17204 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17206 (eval $ac_try) 2>&5
17207 ac_status=$?
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); }; }; then
17210 ac_cv_lib_dld_shl_load=yes
17211else
17212 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017213sed 's/^/| /' conftest.$ac_ext >&5
17214
John Criswell47fdd832003-07-14 16:52:07 +000017215ac_cv_lib_dld_shl_load=no
17216fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017217rm -f conftest.err conftest.$ac_objext \
17218 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017219LIBS=$ac_check_lib_save_LIBS
17220fi
17221echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17222echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17223if test $ac_cv_lib_dld_shl_load = yes; then
17224 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17225else
17226 echo "$as_me:$LINENO: checking for dlopen" >&5
17227echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17228if test "${ac_cv_func_dlopen+set}" = set; then
17229 echo $ECHO_N "(cached) $ECHO_C" >&6
17230else
17231 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017232/* confdefs.h. */
17233_ACEOF
17234cat confdefs.h >>conftest.$ac_ext
17235cat >>conftest.$ac_ext <<_ACEOF
17236/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017237/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17239#define dlopen innocuous_dlopen
17240
John Criswell47fdd832003-07-14 16:52:07 +000017241/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017242 which can conflict with char dlopen (); below.
17243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17244 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000017245
John Criswell0c38eaf2003-09-10 15:17:25 +000017246#ifdef __STDC__
17247# include <limits.h>
17248#else
17249# include <assert.h>
17250#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000017251
17252#undef dlopen
17253
John Criswell47fdd832003-07-14 16:52:07 +000017254/* Override any gcc2 internal prototype to avoid an error. */
17255#ifdef __cplusplus
17256extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017257{
John Criswell47fdd832003-07-14 16:52:07 +000017258#endif
17259/* We use char because int might match the return type of a gcc2
17260 builtin and then its argument prototype would still apply. */
17261char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017262/* The GNU C library defines this for functions which it implements
17263 to always fail with ENOSYS. Some functions are actually named
17264 something starting with __ and the normal name is an alias. */
17265#if defined (__stub_dlopen) || defined (__stub___dlopen)
17266choke me
17267#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017268char (*f) () = dlopen;
17269#endif
17270#ifdef __cplusplus
17271}
John Criswell47fdd832003-07-14 16:52:07 +000017272#endif
17273
John Criswell0c38eaf2003-09-10 15:17:25 +000017274int
17275main ()
17276{
17277return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017278 ;
17279 return 0;
17280}
17281_ACEOF
17282rm -f conftest.$ac_objext conftest$ac_exeext
17283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017284 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017285 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017286 grep -v '^ *+' conftest.er1 >conftest.err
17287 rm -f conftest.er1
17288 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017291 { ac_try='test -z "$ac_c_werror_flag"
17292 || test ! -s conftest.err'
17293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17294 (eval $ac_try) 2>&5
17295 ac_status=$?
17296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17297 (exit $ac_status); }; } &&
17298 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17300 (eval $ac_try) 2>&5
17301 ac_status=$?
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); }; }; then
17304 ac_cv_func_dlopen=yes
17305else
17306 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017307sed 's/^/| /' conftest.$ac_ext >&5
17308
John Criswell47fdd832003-07-14 16:52:07 +000017309ac_cv_func_dlopen=no
17310fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017311rm -f conftest.err conftest.$ac_objext \
17312 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017313fi
17314echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17315echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17316if test $ac_cv_func_dlopen = yes; then
17317 lt_cv_dlopen="dlopen"
17318else
17319 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17320echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17321if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17323else
17324 ac_check_lib_save_LIBS=$LIBS
17325LIBS="-ldl $LIBS"
17326cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017327/* confdefs.h. */
17328_ACEOF
17329cat confdefs.h >>conftest.$ac_ext
17330cat >>conftest.$ac_ext <<_ACEOF
17331/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017332
17333/* Override any gcc2 internal prototype to avoid an error. */
17334#ifdef __cplusplus
17335extern "C"
17336#endif
17337/* We use char because int might match the return type of a gcc2
17338 builtin and then its argument prototype would still apply. */
17339char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017340int
17341main ()
17342{
17343dlopen ();
17344 ;
17345 return 0;
17346}
17347_ACEOF
17348rm -f conftest.$ac_objext conftest$ac_exeext
17349if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017350 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017351 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017352 grep -v '^ *+' conftest.er1 >conftest.err
17353 rm -f conftest.er1
17354 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017357 { ac_try='test -z "$ac_c_werror_flag"
17358 || test ! -s conftest.err'
17359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17360 (eval $ac_try) 2>&5
17361 ac_status=$?
17362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17363 (exit $ac_status); }; } &&
17364 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17366 (eval $ac_try) 2>&5
17367 ac_status=$?
17368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369 (exit $ac_status); }; }; then
17370 ac_cv_lib_dl_dlopen=yes
17371else
17372 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017373sed 's/^/| /' conftest.$ac_ext >&5
17374
John Criswell47fdd832003-07-14 16:52:07 +000017375ac_cv_lib_dl_dlopen=no
17376fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017377rm -f conftest.err conftest.$ac_objext \
17378 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017379LIBS=$ac_check_lib_save_LIBS
17380fi
17381echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17382echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17383if test $ac_cv_lib_dl_dlopen = yes; then
17384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17385else
17386 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17387echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17388if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17390else
17391 ac_check_lib_save_LIBS=$LIBS
17392LIBS="-lsvld $LIBS"
17393cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017394/* confdefs.h. */
17395_ACEOF
17396cat confdefs.h >>conftest.$ac_ext
17397cat >>conftest.$ac_ext <<_ACEOF
17398/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017399
17400/* Override any gcc2 internal prototype to avoid an error. */
17401#ifdef __cplusplus
17402extern "C"
17403#endif
17404/* We use char because int might match the return type of a gcc2
17405 builtin and then its argument prototype would still apply. */
17406char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017407int
17408main ()
17409{
17410dlopen ();
17411 ;
17412 return 0;
17413}
17414_ACEOF
17415rm -f conftest.$ac_objext conftest$ac_exeext
17416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017417 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017418 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017419 grep -v '^ *+' conftest.er1 >conftest.err
17420 rm -f conftest.er1
17421 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017424 { ac_try='test -z "$ac_c_werror_flag"
17425 || test ! -s conftest.err'
17426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17427 (eval $ac_try) 2>&5
17428 ac_status=$?
17429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17430 (exit $ac_status); }; } &&
17431 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17433 (eval $ac_try) 2>&5
17434 ac_status=$?
17435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); }; }; then
17437 ac_cv_lib_svld_dlopen=yes
17438else
17439 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017440sed 's/^/| /' conftest.$ac_ext >&5
17441
John Criswell47fdd832003-07-14 16:52:07 +000017442ac_cv_lib_svld_dlopen=no
17443fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017444rm -f conftest.err conftest.$ac_objext \
17445 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017446LIBS=$ac_check_lib_save_LIBS
17447fi
17448echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17449echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17450if test $ac_cv_lib_svld_dlopen = yes; then
17451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17452else
17453 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17454echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17455if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17457else
17458 ac_check_lib_save_LIBS=$LIBS
17459LIBS="-ldld $LIBS"
17460cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017461/* confdefs.h. */
17462_ACEOF
17463cat confdefs.h >>conftest.$ac_ext
17464cat >>conftest.$ac_ext <<_ACEOF
17465/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017466
17467/* Override any gcc2 internal prototype to avoid an error. */
17468#ifdef __cplusplus
17469extern "C"
17470#endif
17471/* We use char because int might match the return type of a gcc2
17472 builtin and then its argument prototype would still apply. */
17473char dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017474int
17475main ()
17476{
17477dld_link ();
17478 ;
17479 return 0;
17480}
17481_ACEOF
17482rm -f conftest.$ac_objext conftest$ac_exeext
17483if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000017484 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017485 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000017486 grep -v '^ *+' conftest.er1 >conftest.err
17487 rm -f conftest.er1
17488 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000017491 { ac_try='test -z "$ac_c_werror_flag"
17492 || test ! -s conftest.err'
17493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17494 (eval $ac_try) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }; } &&
17498 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17500 (eval $ac_try) 2>&5
17501 ac_status=$?
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; }; then
17504 ac_cv_lib_dld_dld_link=yes
17505else
17506 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017507sed 's/^/| /' conftest.$ac_ext >&5
17508
John Criswell47fdd832003-07-14 16:52:07 +000017509ac_cv_lib_dld_dld_link=no
17510fi
Reid Spencer2b51a082004-08-04 00:34:49 +000017511rm -f conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017513LIBS=$ac_check_lib_save_LIBS
17514fi
17515echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17516echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17517if test $ac_cv_lib_dld_dld_link = yes; then
17518 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17519fi
17520
17521
17522fi
17523
17524
17525fi
17526
17527
17528fi
17529
17530
17531fi
17532
17533
17534fi
17535
17536 ;;
17537 esac
17538
17539 if test "x$lt_cv_dlopen" != xno; then
17540 enable_dlopen=yes
17541 else
17542 enable_dlopen=no
17543 fi
17544
17545 case $lt_cv_dlopen in
17546 dlopen)
17547 save_CPPFLAGS="$CPPFLAGS"
17548 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17549
17550 save_LDFLAGS="$LDFLAGS"
17551 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17552
17553 save_LIBS="$LIBS"
17554 LIBS="$lt_cv_dlopen_libs $LIBS"
17555
17556 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17557echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17558if test "${lt_cv_dlopen_self+set}" = set; then
17559 echo $ECHO_N "(cached) $ECHO_C" >&6
17560else
17561 if test "$cross_compiling" = yes; then :
17562 lt_cv_dlopen_self=cross
17563else
17564 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17565 lt_status=$lt_dlunknown
17566 cat > conftest.$ac_ext <<EOF
Reid Spencer5f285392004-08-24 16:32:21 +000017567#line 17567 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017568#include "confdefs.h"
17569
17570#if HAVE_DLFCN_H
17571#include <dlfcn.h>
17572#endif
17573
17574#include <stdio.h>
17575
17576#ifdef RTLD_GLOBAL
17577# define LT_DLGLOBAL RTLD_GLOBAL
17578#else
17579# ifdef DL_GLOBAL
17580# define LT_DLGLOBAL DL_GLOBAL
17581# else
17582# define LT_DLGLOBAL 0
17583# endif
17584#endif
17585
17586/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17587 find out it does not work in some platform. */
17588#ifndef LT_DLLAZY_OR_NOW
17589# ifdef RTLD_LAZY
17590# define LT_DLLAZY_OR_NOW RTLD_LAZY
17591# else
17592# ifdef DL_LAZY
17593# define LT_DLLAZY_OR_NOW DL_LAZY
17594# else
17595# ifdef RTLD_NOW
17596# define LT_DLLAZY_OR_NOW RTLD_NOW
17597# else
17598# ifdef DL_NOW
17599# define LT_DLLAZY_OR_NOW DL_NOW
17600# else
17601# define LT_DLLAZY_OR_NOW 0
17602# endif
17603# endif
17604# endif
17605# endif
17606#endif
17607
17608#ifdef __cplusplus
17609extern "C" void exit (int);
17610#endif
17611
17612void fnord() { int i=42;}
17613int main ()
17614{
17615 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17616 int status = $lt_dlunknown;
17617
17618 if (self)
17619 {
17620 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17621 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17622 /* dlclose (self); */
17623 }
17624
17625 exit (status);
17626}
17627EOF
17628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17629 (eval $ac_link) 2>&5
17630 ac_status=$?
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17633 (./conftest; exit; ) 2>/dev/null
17634 lt_status=$?
17635 case x$lt_status in
17636 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17637 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17638 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17639 esac
17640 else :
17641 # compilation failed
17642 lt_cv_dlopen_self=no
17643 fi
17644fi
17645rm -fr conftest*
17646
17647
17648fi
17649echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17650echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17651
17652 if test "x$lt_cv_dlopen_self" = xyes; then
17653 LDFLAGS="$LDFLAGS $link_static_flag"
17654 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17655echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17656if test "${lt_cv_dlopen_self_static+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17658else
17659 if test "$cross_compiling" = yes; then :
17660 lt_cv_dlopen_self_static=cross
17661else
17662 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17663 lt_status=$lt_dlunknown
17664 cat > conftest.$ac_ext <<EOF
Reid Spencer5f285392004-08-24 16:32:21 +000017665#line 17665 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017666#include "confdefs.h"
17667
17668#if HAVE_DLFCN_H
17669#include <dlfcn.h>
17670#endif
17671
17672#include <stdio.h>
17673
17674#ifdef RTLD_GLOBAL
17675# define LT_DLGLOBAL RTLD_GLOBAL
17676#else
17677# ifdef DL_GLOBAL
17678# define LT_DLGLOBAL DL_GLOBAL
17679# else
17680# define LT_DLGLOBAL 0
17681# endif
17682#endif
17683
17684/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17685 find out it does not work in some platform. */
17686#ifndef LT_DLLAZY_OR_NOW
17687# ifdef RTLD_LAZY
17688# define LT_DLLAZY_OR_NOW RTLD_LAZY
17689# else
17690# ifdef DL_LAZY
17691# define LT_DLLAZY_OR_NOW DL_LAZY
17692# else
17693# ifdef RTLD_NOW
17694# define LT_DLLAZY_OR_NOW RTLD_NOW
17695# else
17696# ifdef DL_NOW
17697# define LT_DLLAZY_OR_NOW DL_NOW
17698# else
17699# define LT_DLLAZY_OR_NOW 0
17700# endif
17701# endif
17702# endif
17703# endif
17704#endif
17705
17706#ifdef __cplusplus
17707extern "C" void exit (int);
17708#endif
17709
17710void fnord() { int i=42;}
17711int main ()
17712{
17713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17714 int status = $lt_dlunknown;
17715
17716 if (self)
17717 {
17718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17719 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17720 /* dlclose (self); */
17721 }
17722
17723 exit (status);
17724}
17725EOF
17726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17727 (eval $ac_link) 2>&5
17728 ac_status=$?
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17731 (./conftest; exit; ) 2>/dev/null
17732 lt_status=$?
17733 case x$lt_status in
17734 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17735 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17736 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17737 esac
17738 else :
17739 # compilation failed
17740 lt_cv_dlopen_self_static=no
17741 fi
17742fi
17743rm -fr conftest*
17744
17745
17746fi
17747echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17748echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17749 fi
17750
17751 CPPFLAGS="$save_CPPFLAGS"
17752 LDFLAGS="$save_LDFLAGS"
17753 LIBS="$save_LIBS"
17754 ;;
17755 esac
17756
17757 case $lt_cv_dlopen_self in
17758 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17759 *) enable_dlopen_self=unknown ;;
17760 esac
17761
17762 case $lt_cv_dlopen_self_static in
17763 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17764 *) enable_dlopen_self_static=unknown ;;
17765 esac
17766fi
17767
17768
17769# The else clause should only fire when bootstrapping the
17770# libtool distribution, otherwise you forgot to ship ltmain.sh
17771# with your package, and you will get complaints that there are
17772# no rules to generate ltmain.sh.
17773if test -f "$ltmain"; then
17774 # See if we are running on zsh, and set the options which allow our commands through
17775 # without removal of \ escapes.
17776 if test -n "${ZSH_VERSION+set}" ; then
17777 setopt NO_GLOB_SUBST
17778 fi
17779 # Now quote all the things that may contain metacharacters while being
17780 # careful not to overquote the AC_SUBSTed values. We take copies of the
17781 # variables and quote the copies for generation of the libtool script.
17782 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17783 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17784 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17785 deplibs_check_method reload_flag reload_cmds need_locks \
17786 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17787 lt_cv_sys_global_symbol_to_c_name_address \
17788 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17789 old_postinstall_cmds old_postuninstall_cmds \
17790 compiler_GCJ \
17791 CC_GCJ \
17792 LD_GCJ \
17793 lt_prog_compiler_wl_GCJ \
17794 lt_prog_compiler_pic_GCJ \
17795 lt_prog_compiler_static_GCJ \
17796 lt_prog_compiler_no_builtin_flag_GCJ \
17797 export_dynamic_flag_spec_GCJ \
17798 thread_safe_flag_spec_GCJ \
17799 whole_archive_flag_spec_GCJ \
17800 enable_shared_with_static_runtimes_GCJ \
17801 old_archive_cmds_GCJ \
17802 old_archive_from_new_cmds_GCJ \
17803 predep_objects_GCJ \
17804 postdep_objects_GCJ \
17805 predeps_GCJ \
17806 postdeps_GCJ \
17807 compiler_lib_search_path_GCJ \
17808 archive_cmds_GCJ \
17809 archive_expsym_cmds_GCJ \
17810 postinstall_cmds_GCJ \
17811 postuninstall_cmds_GCJ \
17812 old_archive_from_expsyms_cmds_GCJ \
17813 allow_undefined_flag_GCJ \
17814 no_undefined_flag_GCJ \
17815 export_symbols_cmds_GCJ \
17816 hardcode_libdir_flag_spec_GCJ \
17817 hardcode_libdir_flag_spec_ld_GCJ \
17818 hardcode_libdir_separator_GCJ \
17819 hardcode_automatic_GCJ \
17820 module_cmds_GCJ \
17821 module_expsym_cmds_GCJ \
17822 lt_cv_prog_compiler_c_o_GCJ \
17823 exclude_expsyms_GCJ \
17824 include_expsyms_GCJ; do
17825
17826 case $var in
17827 old_archive_cmds_GCJ | \
17828 old_archive_from_new_cmds_GCJ | \
17829 archive_cmds_GCJ | \
17830 archive_expsym_cmds_GCJ | \
17831 module_cmds_GCJ | \
17832 module_expsym_cmds_GCJ | \
17833 old_archive_from_expsyms_cmds_GCJ | \
17834 export_symbols_cmds_GCJ | \
17835 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17836 postinstall_cmds | postuninstall_cmds | \
17837 old_postinstall_cmds | old_postuninstall_cmds | \
17838 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17839 # Double-quote double-evaled strings.
17840 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17841 ;;
17842 *)
17843 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17844 ;;
17845 esac
17846 done
17847
17848 case $lt_echo in
17849 *'\$0 --fallback-echo"')
17850 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17851 ;;
17852 esac
17853
17854cfgfile="$ofile"
17855
17856 cat <<__EOF__ >> "$cfgfile"
17857# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17858
17859# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17860
17861# Shell to use when invoking shell scripts.
17862SHELL=$lt_SHELL
17863
17864# Whether or not to build shared libraries.
17865build_libtool_libs=$enable_shared
17866
17867# Whether or not to build static libraries.
17868build_old_libs=$enable_static
17869
17870# Whether or not to add -lc for building shared libraries.
17871build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17872
17873# Whether or not to disallow shared libs when runtime libs are static
17874allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17875
17876# Whether or not to optimize for fast installation.
17877fast_install=$enable_fast_install
17878
17879# The host system.
17880host_alias=$host_alias
17881host=$host
17882
17883# An echo program that does not interpret backslashes.
17884echo=$lt_echo
17885
17886# The archiver.
17887AR=$lt_AR
17888AR_FLAGS=$lt_AR_FLAGS
17889
17890# A C compiler.
17891LTCC=$lt_LTCC
17892
17893# A language-specific compiler.
17894CC=$lt_compiler_GCJ
17895
17896# Is the compiler the GNU C compiler?
17897with_gcc=$GCC_GCJ
17898
17899# An ERE matcher.
17900EGREP=$lt_EGREP
17901
17902# The linker used to build libraries.
17903LD=$lt_LD_GCJ
17904
17905# Whether we need hard or soft links.
17906LN_S=$lt_LN_S
17907
17908# A BSD-compatible nm program.
17909NM=$lt_NM
17910
17911# A symbol stripping program
17912STRIP=$STRIP
17913
17914# Used to examine libraries when file_magic_cmd begins "file"
17915MAGIC_CMD=$MAGIC_CMD
17916
17917# Used on cygwin: DLL creation program.
17918DLLTOOL="$DLLTOOL"
17919
17920# Used on cygwin: object dumper.
17921OBJDUMP="$OBJDUMP"
17922
17923# Used on cygwin: assembler.
17924AS="$AS"
17925
17926# The name of the directory that contains temporary libtool files.
17927objdir=$objdir
17928
17929# How to create reloadable object files.
17930reload_flag=$lt_reload_flag
17931reload_cmds=$lt_reload_cmds
17932
17933# How to pass a linker flag through the compiler.
17934wl=$lt_lt_prog_compiler_wl_GCJ
17935
17936# Object file suffix (normally "o").
17937objext="$ac_objext"
17938
17939# Old archive suffix (normally "a").
17940libext="$libext"
17941
17942# Shared library suffix (normally ".so").
17943shrext='$shrext'
17944
17945# Executable file suffix (normally "").
17946exeext="$exeext"
17947
17948# Additional compiler flags for building library objects.
17949pic_flag=$lt_lt_prog_compiler_pic_GCJ
17950pic_mode=$pic_mode
17951
17952# What is the maximum length of a command?
17953max_cmd_len=$lt_cv_sys_max_cmd_len
17954
17955# Does compiler simultaneously support -c and -o options?
17956compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17957
17958# Must we lock files when doing compilation ?
17959need_locks=$lt_need_locks
17960
17961# Do we need the lib prefix for modules?
17962need_lib_prefix=$need_lib_prefix
17963
17964# Do we need a version for libraries?
17965need_version=$need_version
17966
17967# Whether dlopen is supported.
17968dlopen_support=$enable_dlopen
17969
17970# Whether dlopen of programs is supported.
17971dlopen_self=$enable_dlopen_self
17972
17973# Whether dlopen of statically linked programs is supported.
17974dlopen_self_static=$enable_dlopen_self_static
17975
17976# Compiler flag to prevent dynamic linking.
17977link_static_flag=$lt_lt_prog_compiler_static_GCJ
17978
17979# Compiler flag to turn off builtin functions.
17980no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17981
17982# Compiler flag to allow reflexive dlopens.
17983export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17984
17985# Compiler flag to generate shared objects directly from archives.
17986whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17987
17988# Compiler flag to generate thread-safe objects.
17989thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17990
17991# Library versioning type.
17992version_type=$version_type
17993
17994# Format of library name prefix.
17995libname_spec=$lt_libname_spec
17996
17997# List of archive names. First name is the real one, the rest are links.
17998# The last name is the one that the linker finds with -lNAME.
17999library_names_spec=$lt_library_names_spec
18000
18001# The coded name of the library, if different from the real name.
18002soname_spec=$lt_soname_spec
18003
18004# Commands used to build and install an old-style archive.
18005RANLIB=$lt_RANLIB
18006old_archive_cmds=$lt_old_archive_cmds_GCJ
18007old_postinstall_cmds=$lt_old_postinstall_cmds
18008old_postuninstall_cmds=$lt_old_postuninstall_cmds
18009
18010# Create an old-style archive from a shared archive.
18011old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18012
18013# Create a temporary old-style archive to link instead of a shared archive.
18014old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18015
18016# Commands used to build and install a shared archive.
18017archive_cmds=$lt_archive_cmds_GCJ
18018archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18019postinstall_cmds=$lt_postinstall_cmds
18020postuninstall_cmds=$lt_postuninstall_cmds
18021
18022# Commands used to build a loadable module (assumed same as above if empty)
18023module_cmds=$lt_module_cmds_GCJ
18024module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18025
18026# Commands to strip libraries.
18027old_striplib=$lt_old_striplib
18028striplib=$lt_striplib
18029
18030# Dependencies to place before the objects being linked to create a
18031# shared library.
18032predep_objects=$lt_predep_objects_GCJ
18033
18034# Dependencies to place after the objects being linked to create a
18035# shared library.
18036postdep_objects=$lt_postdep_objects_GCJ
18037
18038# Dependencies to place before the objects being linked to create a
18039# shared library.
18040predeps=$lt_predeps_GCJ
18041
18042# Dependencies to place after the objects being linked to create a
18043# shared library.
18044postdeps=$lt_postdeps_GCJ
18045
18046# The library search path used internally by the compiler when linking
18047# a shared library.
18048compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18049
18050# Method to check whether dependent libraries are shared objects.
18051deplibs_check_method=$lt_deplibs_check_method
18052
18053# Command to use when deplibs_check_method == file_magic.
18054file_magic_cmd=$lt_file_magic_cmd
18055
18056# Flag that allows shared libraries with undefined symbols to be built.
18057allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18058
18059# Flag that forces no undefined symbols.
18060no_undefined_flag=$lt_no_undefined_flag_GCJ
18061
18062# Commands used to finish a libtool library installation in a directory.
18063finish_cmds=$lt_finish_cmds
18064
18065# Same as above, but a single script fragment to be evaled but not shown.
18066finish_eval=$lt_finish_eval
18067
18068# Take the output of nm and produce a listing of raw symbols and C names.
18069global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18070
18071# Transform the output of nm in a proper C declaration
18072global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18073
18074# Transform the output of nm in a C name address pair
18075global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18076
18077# This is the shared library runtime path variable.
18078runpath_var=$runpath_var
18079
18080# This is the shared library path variable.
18081shlibpath_var=$shlibpath_var
18082
18083# Is shlibpath searched before the hard-coded library search path?
18084shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18085
18086# How to hardcode a shared library path into an executable.
18087hardcode_action=$hardcode_action_GCJ
18088
18089# Whether we should hardcode library paths into libraries.
18090hardcode_into_libs=$hardcode_into_libs
18091
18092# Flag to hardcode \$libdir into a binary during linking.
18093# This must work even if \$libdir does not exist.
18094hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18095
18096# If ld is used when linking, flag to hardcode \$libdir into
18097# a binary during linking. This must work even if \$libdir does
18098# not exist.
18099hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18100
18101# Whether we need a single -rpath flag with a separated argument.
18102hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18103
18104# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18105# resulting binary.
18106hardcode_direct=$hardcode_direct_GCJ
18107
18108# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18109# resulting binary.
18110hardcode_minus_L=$hardcode_minus_L_GCJ
18111
18112# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18113# the resulting binary.
18114hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18115
18116# Set to yes if building a shared library automatically hardcodes DIR into the library
18117# and all subsequent libraries and executables linked against it.
18118hardcode_automatic=$hardcode_automatic_GCJ
18119
18120# Variables whose values should be saved in libtool wrapper scripts and
18121# restored at relink time.
18122variables_saved_for_relink="$variables_saved_for_relink"
18123
18124# Whether libtool must link a program against all its dependency libraries.
18125link_all_deplibs=$link_all_deplibs_GCJ
18126
18127# Compile-time system search path for libraries
18128sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18129
18130# Run-time system search path for libraries
18131sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18132
18133# Fix the shell variable \$srcfile for the compiler.
18134fix_srcfile_path="$fix_srcfile_path_GCJ"
18135
18136# Set to yes if exported symbols are required.
18137always_export_symbols=$always_export_symbols_GCJ
18138
18139# The commands to list exported symbols.
18140export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18141
18142# The commands to extract the exported symbol list from a shared archive.
18143extract_expsyms_cmds=$lt_extract_expsyms_cmds
18144
18145# Symbols that should not be listed in the preloaded symbols.
18146exclude_expsyms=$lt_exclude_expsyms_GCJ
18147
18148# Symbols that must always be exported.
18149include_expsyms=$lt_include_expsyms_GCJ
18150
18151# ### END LIBTOOL TAG CONFIG: $tagname
18152
18153__EOF__
18154
18155
18156else
18157 # If there is no Makefile yet, we rely on a make rule to execute
18158 # `config.status --recheck' to rerun these tests and create the
18159 # libtool script then.
18160 test -f Makefile && make "$ltmain"
18161fi
18162
18163
18164ac_ext=c
18165ac_cpp='$CPP $CPPFLAGS'
18166ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18167ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18168ac_compiler_gnu=$ac_cv_c_compiler_gnu
18169
18170CC="$lt_save_CC"
18171
18172 else
18173 tagname=""
18174 fi
18175 ;;
18176
18177 RC)
18178
18179
18180
18181# Source file extension for RC test sources.
18182ac_ext=rc
18183
18184# Object file extension for compiled RC test sources.
18185objext=o
18186objext_RC=$objext
18187
18188# Code to be used in simple compile tests
18189lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18190
18191# Code to be used in simple link tests
18192lt_simple_link_test_code="$lt_simple_compile_test_code"
18193
18194# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18195
18196# If no C compiler was specified, use CC.
18197LTCC=${LTCC-"$CC"}
18198
18199# Allow CC to be a program name with arguments.
18200compiler=$CC
18201
18202
18203# Allow CC to be a program name with arguments.
18204lt_save_CC="$CC"
18205CC=${RC-"windres"}
18206compiler=$CC
18207compiler_RC=$CC
18208lt_cv_prog_compiler_c_o_RC=yes
18209
18210# The else clause should only fire when bootstrapping the
18211# libtool distribution, otherwise you forgot to ship ltmain.sh
18212# with your package, and you will get complaints that there are
18213# no rules to generate ltmain.sh.
18214if test -f "$ltmain"; then
18215 # See if we are running on zsh, and set the options which allow our commands through
18216 # without removal of \ escapes.
18217 if test -n "${ZSH_VERSION+set}" ; then
18218 setopt NO_GLOB_SUBST
18219 fi
18220 # Now quote all the things that may contain metacharacters while being
18221 # careful not to overquote the AC_SUBSTed values. We take copies of the
18222 # variables and quote the copies for generation of the libtool script.
18223 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18224 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18225 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18226 deplibs_check_method reload_flag reload_cmds need_locks \
18227 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18228 lt_cv_sys_global_symbol_to_c_name_address \
18229 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18230 old_postinstall_cmds old_postuninstall_cmds \
18231 compiler_RC \
18232 CC_RC \
18233 LD_RC \
18234 lt_prog_compiler_wl_RC \
18235 lt_prog_compiler_pic_RC \
18236 lt_prog_compiler_static_RC \
18237 lt_prog_compiler_no_builtin_flag_RC \
18238 export_dynamic_flag_spec_RC \
18239 thread_safe_flag_spec_RC \
18240 whole_archive_flag_spec_RC \
18241 enable_shared_with_static_runtimes_RC \
18242 old_archive_cmds_RC \
18243 old_archive_from_new_cmds_RC \
18244 predep_objects_RC \
18245 postdep_objects_RC \
18246 predeps_RC \
18247 postdeps_RC \
18248 compiler_lib_search_path_RC \
18249 archive_cmds_RC \
18250 archive_expsym_cmds_RC \
18251 postinstall_cmds_RC \
18252 postuninstall_cmds_RC \
18253 old_archive_from_expsyms_cmds_RC \
18254 allow_undefined_flag_RC \
18255 no_undefined_flag_RC \
18256 export_symbols_cmds_RC \
18257 hardcode_libdir_flag_spec_RC \
18258 hardcode_libdir_flag_spec_ld_RC \
18259 hardcode_libdir_separator_RC \
18260 hardcode_automatic_RC \
18261 module_cmds_RC \
18262 module_expsym_cmds_RC \
18263 lt_cv_prog_compiler_c_o_RC \
18264 exclude_expsyms_RC \
18265 include_expsyms_RC; do
18266
18267 case $var in
18268 old_archive_cmds_RC | \
18269 old_archive_from_new_cmds_RC | \
18270 archive_cmds_RC | \
18271 archive_expsym_cmds_RC | \
18272 module_cmds_RC | \
18273 module_expsym_cmds_RC | \
18274 old_archive_from_expsyms_cmds_RC | \
18275 export_symbols_cmds_RC | \
18276 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18277 postinstall_cmds | postuninstall_cmds | \
18278 old_postinstall_cmds | old_postuninstall_cmds | \
18279 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18280 # Double-quote double-evaled strings.
18281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18282 ;;
18283 *)
18284 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18285 ;;
18286 esac
18287 done
18288
18289 case $lt_echo in
18290 *'\$0 --fallback-echo"')
18291 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18292 ;;
18293 esac
18294
18295cfgfile="$ofile"
18296
18297 cat <<__EOF__ >> "$cfgfile"
18298# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18299
18300# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18301
18302# Shell to use when invoking shell scripts.
18303SHELL=$lt_SHELL
18304
18305# Whether or not to build shared libraries.
18306build_libtool_libs=$enable_shared
18307
18308# Whether or not to build static libraries.
18309build_old_libs=$enable_static
18310
18311# Whether or not to add -lc for building shared libraries.
18312build_libtool_need_lc=$archive_cmds_need_lc_RC
18313
18314# Whether or not to disallow shared libs when runtime libs are static
18315allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18316
18317# Whether or not to optimize for fast installation.
18318fast_install=$enable_fast_install
18319
18320# The host system.
18321host_alias=$host_alias
18322host=$host
18323
18324# An echo program that does not interpret backslashes.
18325echo=$lt_echo
18326
18327# The archiver.
18328AR=$lt_AR
18329AR_FLAGS=$lt_AR_FLAGS
18330
18331# A C compiler.
18332LTCC=$lt_LTCC
18333
18334# A language-specific compiler.
18335CC=$lt_compiler_RC
18336
18337# Is the compiler the GNU C compiler?
18338with_gcc=$GCC_RC
18339
18340# An ERE matcher.
18341EGREP=$lt_EGREP
18342
18343# The linker used to build libraries.
18344LD=$lt_LD_RC
18345
18346# Whether we need hard or soft links.
18347LN_S=$lt_LN_S
18348
18349# A BSD-compatible nm program.
18350NM=$lt_NM
18351
18352# A symbol stripping program
18353STRIP=$STRIP
18354
18355# Used to examine libraries when file_magic_cmd begins "file"
18356MAGIC_CMD=$MAGIC_CMD
18357
18358# Used on cygwin: DLL creation program.
18359DLLTOOL="$DLLTOOL"
18360
18361# Used on cygwin: object dumper.
18362OBJDUMP="$OBJDUMP"
18363
18364# Used on cygwin: assembler.
18365AS="$AS"
18366
18367# The name of the directory that contains temporary libtool files.
18368objdir=$objdir
18369
18370# How to create reloadable object files.
18371reload_flag=$lt_reload_flag
18372reload_cmds=$lt_reload_cmds
18373
18374# How to pass a linker flag through the compiler.
18375wl=$lt_lt_prog_compiler_wl_RC
18376
18377# Object file suffix (normally "o").
18378objext="$ac_objext"
18379
18380# Old archive suffix (normally "a").
18381libext="$libext"
18382
18383# Shared library suffix (normally ".so").
18384shrext='$shrext'
18385
18386# Executable file suffix (normally "").
18387exeext="$exeext"
18388
18389# Additional compiler flags for building library objects.
18390pic_flag=$lt_lt_prog_compiler_pic_RC
18391pic_mode=$pic_mode
18392
18393# What is the maximum length of a command?
18394max_cmd_len=$lt_cv_sys_max_cmd_len
18395
18396# Does compiler simultaneously support -c and -o options?
18397compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18398
18399# Must we lock files when doing compilation ?
18400need_locks=$lt_need_locks
18401
18402# Do we need the lib prefix for modules?
18403need_lib_prefix=$need_lib_prefix
18404
18405# Do we need a version for libraries?
18406need_version=$need_version
18407
18408# Whether dlopen is supported.
18409dlopen_support=$enable_dlopen
18410
18411# Whether dlopen of programs is supported.
18412dlopen_self=$enable_dlopen_self
18413
18414# Whether dlopen of statically linked programs is supported.
18415dlopen_self_static=$enable_dlopen_self_static
18416
18417# Compiler flag to prevent dynamic linking.
18418link_static_flag=$lt_lt_prog_compiler_static_RC
18419
18420# Compiler flag to turn off builtin functions.
18421no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18422
18423# Compiler flag to allow reflexive dlopens.
18424export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18425
18426# Compiler flag to generate shared objects directly from archives.
18427whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18428
18429# Compiler flag to generate thread-safe objects.
18430thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18431
18432# Library versioning type.
18433version_type=$version_type
18434
18435# Format of library name prefix.
18436libname_spec=$lt_libname_spec
18437
18438# List of archive names. First name is the real one, the rest are links.
18439# The last name is the one that the linker finds with -lNAME.
18440library_names_spec=$lt_library_names_spec
18441
18442# The coded name of the library, if different from the real name.
18443soname_spec=$lt_soname_spec
18444
18445# Commands used to build and install an old-style archive.
18446RANLIB=$lt_RANLIB
18447old_archive_cmds=$lt_old_archive_cmds_RC
18448old_postinstall_cmds=$lt_old_postinstall_cmds
18449old_postuninstall_cmds=$lt_old_postuninstall_cmds
18450
18451# Create an old-style archive from a shared archive.
18452old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18453
18454# Create a temporary old-style archive to link instead of a shared archive.
18455old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18456
18457# Commands used to build and install a shared archive.
18458archive_cmds=$lt_archive_cmds_RC
18459archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18460postinstall_cmds=$lt_postinstall_cmds
18461postuninstall_cmds=$lt_postuninstall_cmds
18462
18463# Commands used to build a loadable module (assumed same as above if empty)
18464module_cmds=$lt_module_cmds_RC
18465module_expsym_cmds=$lt_module_expsym_cmds_RC
18466
18467# Commands to strip libraries.
18468old_striplib=$lt_old_striplib
18469striplib=$lt_striplib
18470
18471# Dependencies to place before the objects being linked to create a
18472# shared library.
18473predep_objects=$lt_predep_objects_RC
18474
18475# Dependencies to place after the objects being linked to create a
18476# shared library.
18477postdep_objects=$lt_postdep_objects_RC
18478
18479# Dependencies to place before the objects being linked to create a
18480# shared library.
18481predeps=$lt_predeps_RC
18482
18483# Dependencies to place after the objects being linked to create a
18484# shared library.
18485postdeps=$lt_postdeps_RC
18486
18487# The library search path used internally by the compiler when linking
18488# a shared library.
18489compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18490
18491# Method to check whether dependent libraries are shared objects.
18492deplibs_check_method=$lt_deplibs_check_method
18493
18494# Command to use when deplibs_check_method == file_magic.
18495file_magic_cmd=$lt_file_magic_cmd
18496
18497# Flag that allows shared libraries with undefined symbols to be built.
18498allow_undefined_flag=$lt_allow_undefined_flag_RC
18499
18500# Flag that forces no undefined symbols.
18501no_undefined_flag=$lt_no_undefined_flag_RC
18502
18503# Commands used to finish a libtool library installation in a directory.
18504finish_cmds=$lt_finish_cmds
18505
18506# Same as above, but a single script fragment to be evaled but not shown.
18507finish_eval=$lt_finish_eval
18508
18509# Take the output of nm and produce a listing of raw symbols and C names.
18510global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18511
18512# Transform the output of nm in a proper C declaration
18513global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18514
18515# Transform the output of nm in a C name address pair
18516global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18517
18518# This is the shared library runtime path variable.
18519runpath_var=$runpath_var
18520
18521# This is the shared library path variable.
18522shlibpath_var=$shlibpath_var
18523
18524# Is shlibpath searched before the hard-coded library search path?
18525shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18526
18527# How to hardcode a shared library path into an executable.
18528hardcode_action=$hardcode_action_RC
18529
18530# Whether we should hardcode library paths into libraries.
18531hardcode_into_libs=$hardcode_into_libs
18532
18533# Flag to hardcode \$libdir into a binary during linking.
18534# This must work even if \$libdir does not exist.
18535hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18536
18537# If ld is used when linking, flag to hardcode \$libdir into
18538# a binary during linking. This must work even if \$libdir does
18539# not exist.
18540hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18541
18542# Whether we need a single -rpath flag with a separated argument.
18543hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18544
18545# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18546# resulting binary.
18547hardcode_direct=$hardcode_direct_RC
18548
18549# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18550# resulting binary.
18551hardcode_minus_L=$hardcode_minus_L_RC
18552
18553# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18554# the resulting binary.
18555hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18556
18557# Set to yes if building a shared library automatically hardcodes DIR into the library
18558# and all subsequent libraries and executables linked against it.
18559hardcode_automatic=$hardcode_automatic_RC
18560
18561# Variables whose values should be saved in libtool wrapper scripts and
18562# restored at relink time.
18563variables_saved_for_relink="$variables_saved_for_relink"
18564
18565# Whether libtool must link a program against all its dependency libraries.
18566link_all_deplibs=$link_all_deplibs_RC
18567
18568# Compile-time system search path for libraries
18569sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18570
18571# Run-time system search path for libraries
18572sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18573
18574# Fix the shell variable \$srcfile for the compiler.
18575fix_srcfile_path="$fix_srcfile_path_RC"
18576
18577# Set to yes if exported symbols are required.
18578always_export_symbols=$always_export_symbols_RC
18579
18580# The commands to list exported symbols.
18581export_symbols_cmds=$lt_export_symbols_cmds_RC
18582
18583# The commands to extract the exported symbol list from a shared archive.
18584extract_expsyms_cmds=$lt_extract_expsyms_cmds
18585
18586# Symbols that should not be listed in the preloaded symbols.
18587exclude_expsyms=$lt_exclude_expsyms_RC
18588
18589# Symbols that must always be exported.
18590include_expsyms=$lt_include_expsyms_RC
18591
18592# ### END LIBTOOL TAG CONFIG: $tagname
18593
18594__EOF__
18595
18596
18597else
18598 # If there is no Makefile yet, we rely on a make rule to execute
18599 # `config.status --recheck' to rerun these tests and create the
18600 # libtool script then.
18601 test -f Makefile && make "$ltmain"
18602fi
18603
18604
18605ac_ext=c
18606ac_cpp='$CPP $CPPFLAGS'
18607ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18608ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18609ac_compiler_gnu=$ac_cv_c_compiler_gnu
18610
18611CC="$lt_save_CC"
18612
18613 ;;
18614
18615 *)
18616 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18617echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18618 { (exit 1); exit 1; }; }
18619 ;;
18620 esac
18621
18622 # Append the new tag name to the list of available tags.
18623 if test -n "$tagname" ; then
18624 available_tags="$available_tags $tagname"
18625 fi
18626 fi
18627 done
18628 IFS="$lt_save_ifs"
18629
18630 # Now substitute the updated list of available tags.
18631 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18632 mv "${ofile}T" "$ofile"
18633 chmod +x "$ofile"
18634 else
18635 rm -f "${ofile}T"
18636 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18637echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18638 { (exit 1); exit 1; }; }
18639 fi
18640fi
John Criswell7a73b802003-06-30 21:59:07 +000018641
18642
18643
18644# This can be used to rebuild libtool when needed
18645LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18646
18647# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018648LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018649
18650# Prevent multiple expansion
18651
18652
18653
John Criswell47fdd832003-07-14 16:52:07 +000018654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
John Criswell7a73b802003-06-30 21:59:07 +000018672# Extract the first word of "dot", so it can be a program name with args.
18673set dummy dot; ac_word=$2
18674echo "$as_me:$LINENO: checking for $ac_word" >&5
18675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18676if test "${ac_cv_path_DOT+set}" = set; then
18677 echo $ECHO_N "(cached) $ECHO_C" >&6
18678else
18679 case $DOT in
18680 [\\/]* | ?:[\\/]*)
18681 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18682 ;;
18683 *)
18684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18685for as_dir in $PATH
18686do
18687 IFS=$as_save_IFS
18688 test -z "$as_dir" && as_dir=.
18689 for ac_exec_ext in '' $ac_executable_extensions; do
18690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18691 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18693 break 2
18694 fi
18695done
18696done
18697
Brian Gaeke26be9c52004-01-13 06:43:16 +000018698 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018699 ;;
18700esac
18701fi
18702DOT=$ac_cv_path_DOT
18703
18704if test -n "$DOT"; then
18705 echo "$as_me:$LINENO: result: $DOT" >&5
18706echo "${ECHO_T}$DOT" >&6
18707else
18708 echo "$as_me:$LINENO: result: no" >&5
18709echo "${ECHO_T}no" >&6
18710fi
18711
18712# Extract the first word of "etags", so it can be a program name with args.
18713set dummy etags; ac_word=$2
18714echo "$as_me:$LINENO: checking for $ac_word" >&5
18715echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18716if test "${ac_cv_path_ETAGS+set}" = set; then
18717 echo $ECHO_N "(cached) $ECHO_C" >&6
18718else
18719 case $ETAGS in
18720 [\\/]* | ?:[\\/]*)
18721 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18722 ;;
18723 *)
18724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18725for as_dir in $PATH
18726do
18727 IFS=$as_save_IFS
18728 test -z "$as_dir" && as_dir=.
18729 for ac_exec_ext in '' $ac_executable_extensions; do
18730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18731 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18733 break 2
18734 fi
18735done
18736done
18737
Brian Gaeke26be9c52004-01-13 06:43:16 +000018738 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018739 ;;
18740esac
18741fi
18742ETAGS=$ac_cv_path_ETAGS
18743
18744if test -n "$ETAGS"; then
18745 echo "$as_me:$LINENO: result: $ETAGS" >&5
18746echo "${ECHO_T}$ETAGS" >&6
18747else
18748 echo "$as_me:$LINENO: result: no" >&5
18749echo "${ECHO_T}no" >&6
18750fi
18751
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018752etags_version=`$ETAGS --version 2>&1`
18753case "$etags_version" in
18754 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18755 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18756 *) ETAGSFLAGS="" ;;
18757esac
18758ETAGSFLAGS=$ETAGSFLAGS
18759
John Criswellde00db22003-08-25 16:49:54 +000018760# Extract the first word of "python", so it can be a program name with args.
18761set dummy python; ac_word=$2
18762echo "$as_me:$LINENO: checking for $ac_word" >&5
18763echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18764if test "${ac_cv_path_PYTHON+set}" = set; then
18765 echo $ECHO_N "(cached) $ECHO_C" >&6
18766else
18767 case $PYTHON in
18768 [\\/]* | ?:[\\/]*)
18769 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18770 ;;
18771 *)
18772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18773for as_dir in $PATH
18774do
18775 IFS=$as_save_IFS
18776 test -z "$as_dir" && as_dir=.
18777 for ac_exec_ext in '' $ac_executable_extensions; do
18778 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18779 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18781 break 2
18782 fi
18783done
18784done
18785
Brian Gaeke26be9c52004-01-13 06:43:16 +000018786 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018787 ;;
18788esac
18789fi
18790PYTHON=$ac_cv_path_PYTHON
18791
18792if test -n "$PYTHON"; then
18793 echo "$as_me:$LINENO: result: $PYTHON" >&5
18794echo "${ECHO_T}$PYTHON" >&6
18795else
18796 echo "$as_me:$LINENO: result: no" >&5
18797echo "${ECHO_T}no" >&6
18798fi
18799
Brian Gaeke26be9c52004-01-13 06:43:16 +000018800if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018801then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018802 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18803echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018804fi
John Criswellde00db22003-08-25 16:49:54 +000018805# Extract the first word of "qmtest", so it can be a program name with args.
18806set dummy qmtest; ac_word=$2
18807echo "$as_me:$LINENO: checking for $ac_word" >&5
18808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18809if test "${ac_cv_path_QMTEST+set}" = set; then
18810 echo $ECHO_N "(cached) $ECHO_C" >&6
18811else
18812 case $QMTEST in
18813 [\\/]* | ?:[\\/]*)
18814 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18815 ;;
18816 *)
18817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18818for as_dir in $PATH
18819do
18820 IFS=$as_save_IFS
18821 test -z "$as_dir" && as_dir=.
18822 for ac_exec_ext in '' $ac_executable_extensions; do
18823 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18824 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18826 break 2
18827 fi
18828done
18829done
18830
Brian Gaeke26be9c52004-01-13 06:43:16 +000018831 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018832 ;;
18833esac
18834fi
18835QMTEST=$ac_cv_path_QMTEST
18836
18837if test -n "$QMTEST"; then
18838 echo "$as_me:$LINENO: result: $QMTEST" >&5
18839echo "${ECHO_T}$QMTEST" >&6
18840else
18841 echo "$as_me:$LINENO: result: no" >&5
18842echo "${ECHO_T}no" >&6
18843fi
18844
Brian Gaeke26be9c52004-01-13 06:43:16 +000018845if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018846then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018847 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18848echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018849fi
John Criswellde00db22003-08-25 16:49:54 +000018850
18851pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18852pymajor=`echo $pyversion | cut -d. -f1`
18853pyminor=`echo $pyversion | cut -d. -f2`
18854
18855if test "$pymajor" -ge "2"
18856then
18857 if test "$pymajor" -eq "2"
18858 then
18859 if test "$pyminor" -lt "2"
18860 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018861 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18862echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018863 fi
18864 fi
18865else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018866 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18867echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018868fi
John Criswell7a73b802003-06-30 21:59:07 +000018869
18870
18871
18872
John Criswell7a73b802003-06-30 21:59:07 +000018873echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18874echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18875if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18877else
18878 ac_check_lib_save_LIBS=$LIBS
18879LIBS="-lelf $LIBS"
18880cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018881/* confdefs.h. */
18882_ACEOF
18883cat confdefs.h >>conftest.$ac_ext
18884cat >>conftest.$ac_ext <<_ACEOF
18885/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018886
18887/* Override any gcc2 internal prototype to avoid an error. */
18888#ifdef __cplusplus
18889extern "C"
18890#endif
18891/* We use char because int might match the return type of a gcc2
18892 builtin and then its argument prototype would still apply. */
18893char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018894int
18895main ()
18896{
18897elf_begin ();
18898 ;
18899 return 0;
18900}
18901_ACEOF
18902rm -f conftest.$ac_objext conftest$ac_exeext
18903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000018904 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000018905 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000018906 grep -v '^ *+' conftest.er1 >conftest.err
18907 rm -f conftest.er1
18908 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000018909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000018911 { ac_try='test -z "$ac_c_werror_flag"
18912 || test ! -s conftest.err'
18913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18914 (eval $ac_try) 2>&5
18915 ac_status=$?
18916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); }; } &&
18918 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18920 (eval $ac_try) 2>&5
18921 ac_status=$?
18922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18923 (exit $ac_status); }; }; then
18924 ac_cv_lib_elf_elf_begin=yes
18925else
18926 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018927sed 's/^/| /' conftest.$ac_ext >&5
18928
John Criswell7a73b802003-06-30 21:59:07 +000018929ac_cv_lib_elf_elf_begin=no
18930fi
Reid Spencer2b51a082004-08-04 00:34:49 +000018931rm -f conftest.err conftest.$ac_objext \
18932 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018933LIBS=$ac_check_lib_save_LIBS
18934fi
18935echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18936echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18937if test $ac_cv_lib_elf_elf_begin = yes; then
18938 cat >>confdefs.h <<_ACEOF
18939#define HAVE_LIBELF 1
18940_ACEOF
18941
18942 LIBS="-lelf $LIBS"
18943
18944fi
18945
18946
18947echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18948echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18949if test "${ac_cv_search_dlopen+set}" = set; then
18950 echo $ECHO_N "(cached) $ECHO_C" >&6
18951else
18952 ac_func_search_save_LIBS=$LIBS
18953ac_cv_search_dlopen=no
18954cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018955/* confdefs.h. */
18956_ACEOF
18957cat confdefs.h >>conftest.$ac_ext
18958cat >>conftest.$ac_ext <<_ACEOF
18959/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018960
18961/* Override any gcc2 internal prototype to avoid an error. */
18962#ifdef __cplusplus
18963extern "C"
18964#endif
18965/* We use char because int might match the return type of a gcc2
18966 builtin and then its argument prototype would still apply. */
18967char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018968int
18969main ()
18970{
18971dlopen ();
18972 ;
18973 return 0;
18974}
18975_ACEOF
18976rm -f conftest.$ac_objext conftest$ac_exeext
18977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000018978 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000018979 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000018980 grep -v '^ *+' conftest.er1 >conftest.err
18981 rm -f conftest.er1
18982 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000018983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000018985 { ac_try='test -z "$ac_c_werror_flag"
18986 || test ! -s conftest.err'
18987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18988 (eval $ac_try) 2>&5
18989 ac_status=$?
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); }; } &&
18992 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18994 (eval $ac_try) 2>&5
18995 ac_status=$?
18996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997 (exit $ac_status); }; }; then
18998 ac_cv_search_dlopen="none required"
18999else
19000 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019001sed 's/^/| /' conftest.$ac_ext >&5
19002
John Criswell7a73b802003-06-30 21:59:07 +000019003fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019004rm -f conftest.err conftest.$ac_objext \
19005 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019006if test "$ac_cv_search_dlopen" = no; then
19007 for ac_lib in dl; do
19008 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19009 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019010/* confdefs.h. */
19011_ACEOF
19012cat confdefs.h >>conftest.$ac_ext
19013cat >>conftest.$ac_ext <<_ACEOF
19014/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019015
19016/* Override any gcc2 internal prototype to avoid an error. */
19017#ifdef __cplusplus
19018extern "C"
19019#endif
19020/* We use char because int might match the return type of a gcc2
19021 builtin and then its argument prototype would still apply. */
19022char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000019023int
19024main ()
19025{
19026dlopen ();
19027 ;
19028 return 0;
19029}
19030_ACEOF
19031rm -f conftest.$ac_objext conftest$ac_exeext
19032if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019033 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019034 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019035 grep -v '^ *+' conftest.er1 >conftest.err
19036 rm -f conftest.er1
19037 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019040 { ac_try='test -z "$ac_c_werror_flag"
19041 || test ! -s conftest.err'
19042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19043 (eval $ac_try) 2>&5
19044 ac_status=$?
19045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19046 (exit $ac_status); }; } &&
19047 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19049 (eval $ac_try) 2>&5
19050 ac_status=$?
19051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19052 (exit $ac_status); }; }; then
19053 ac_cv_search_dlopen="-l$ac_lib"
19054break
19055else
19056 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019057sed 's/^/| /' conftest.$ac_ext >&5
19058
John Criswell7a73b802003-06-30 21:59:07 +000019059fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019060rm -f conftest.err conftest.$ac_objext \
19061 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019062 done
19063fi
19064LIBS=$ac_func_search_save_LIBS
19065fi
19066echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19067echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19068if test "$ac_cv_search_dlopen" != no; then
19069 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019070
19071cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019072#define HAVE_DLOPEN 1
19073_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019074
19075else
Brian Gaekec45be042003-10-07 06:01:34 +000019076 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19077echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019078fi
19079
19080
19081echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19082echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19083if test "${ac_cv_search_mallinfo+set}" = set; then
19084 echo $ECHO_N "(cached) $ECHO_C" >&6
19085else
19086 ac_func_search_save_LIBS=$LIBS
19087ac_cv_search_mallinfo=no
19088cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019089/* confdefs.h. */
19090_ACEOF
19091cat confdefs.h >>conftest.$ac_ext
19092cat >>conftest.$ac_ext <<_ACEOF
19093/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019094
19095/* Override any gcc2 internal prototype to avoid an error. */
19096#ifdef __cplusplus
19097extern "C"
19098#endif
19099/* We use char because int might match the return type of a gcc2
19100 builtin and then its argument prototype would still apply. */
19101char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019102int
19103main ()
19104{
19105mallinfo ();
19106 ;
19107 return 0;
19108}
19109_ACEOF
19110rm -f conftest.$ac_objext conftest$ac_exeext
19111if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019112 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019113 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019114 grep -v '^ *+' conftest.er1 >conftest.err
19115 rm -f conftest.er1
19116 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019119 { ac_try='test -z "$ac_c_werror_flag"
19120 || test ! -s conftest.err'
19121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; } &&
19126 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19128 (eval $ac_try) 2>&5
19129 ac_status=$?
19130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19131 (exit $ac_status); }; }; then
19132 ac_cv_search_mallinfo="none required"
19133else
19134 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019135sed 's/^/| /' conftest.$ac_ext >&5
19136
John Criswell7a73b802003-06-30 21:59:07 +000019137fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019138rm -f conftest.err conftest.$ac_objext \
19139 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019140if test "$ac_cv_search_mallinfo" = no; then
19141 for ac_lib in malloc; do
19142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19143 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019144/* confdefs.h. */
19145_ACEOF
19146cat confdefs.h >>conftest.$ac_ext
19147cat >>conftest.$ac_ext <<_ACEOF
19148/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019149
19150/* Override any gcc2 internal prototype to avoid an error. */
19151#ifdef __cplusplus
19152extern "C"
19153#endif
19154/* We use char because int might match the return type of a gcc2
19155 builtin and then its argument prototype would still apply. */
19156char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019157int
19158main ()
19159{
19160mallinfo ();
19161 ;
19162 return 0;
19163}
19164_ACEOF
19165rm -f conftest.$ac_objext conftest$ac_exeext
19166if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019167 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019168 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019169 grep -v '^ *+' conftest.er1 >conftest.err
19170 rm -f conftest.er1
19171 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019174 { ac_try='test -z "$ac_c_werror_flag"
19175 || test ! -s conftest.err'
19176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19177 (eval $ac_try) 2>&5
19178 ac_status=$?
19179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19180 (exit $ac_status); }; } &&
19181 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19184 ac_status=$?
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187 ac_cv_search_mallinfo="-l$ac_lib"
19188break
19189else
19190 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019191sed 's/^/| /' conftest.$ac_ext >&5
19192
John Criswell7a73b802003-06-30 21:59:07 +000019193fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019194rm -f conftest.err conftest.$ac_objext \
19195 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019196 done
19197fi
19198LIBS=$ac_func_search_save_LIBS
19199fi
19200echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19201echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19202if test "$ac_cv_search_mallinfo" != no; then
19203 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019204
19205cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019206#define HAVE_MALLINFO 1
19207_ACEOF
19208
19209fi
19210
19211
Brian Gaeke5f268f72003-12-05 19:29:01 +000019212echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19213echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19214if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19215 echo $ECHO_N "(cached) $ECHO_C" >&6
19216else
19217 ac_func_search_save_LIBS=$LIBS
19218ac_cv_search_pthread_mutex_lock=no
19219cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019220/* confdefs.h. */
19221_ACEOF
19222cat confdefs.h >>conftest.$ac_ext
19223cat >>conftest.$ac_ext <<_ACEOF
19224/* end confdefs.h. */
19225
19226/* Override any gcc2 internal prototype to avoid an error. */
19227#ifdef __cplusplus
19228extern "C"
19229#endif
19230/* We use char because int might match the return type of a gcc2
19231 builtin and then its argument prototype would still apply. */
19232char pthread_mutex_lock ();
19233int
19234main ()
19235{
19236pthread_mutex_lock ();
19237 ;
19238 return 0;
19239}
19240_ACEOF
19241rm -f conftest.$ac_objext conftest$ac_exeext
19242if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019243 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019244 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019245 grep -v '^ *+' conftest.er1 >conftest.err
19246 rm -f conftest.er1
19247 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019250 { ac_try='test -z "$ac_c_werror_flag"
19251 || test ! -s conftest.err'
19252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19253 (eval $ac_try) 2>&5
19254 ac_status=$?
19255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19256 (exit $ac_status); }; } &&
19257 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19259 (eval $ac_try) 2>&5
19260 ac_status=$?
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; }; then
19263 ac_cv_search_pthread_mutex_lock="none required"
19264else
19265 echo "$as_me: failed program was:" >&5
19266sed 's/^/| /' conftest.$ac_ext >&5
19267
19268fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019269rm -f conftest.err conftest.$ac_objext \
19270 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019271if test "$ac_cv_search_pthread_mutex_lock" = no; then
19272 for ac_lib in pthread; do
19273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19274 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019275/* confdefs.h. */
19276_ACEOF
19277cat confdefs.h >>conftest.$ac_ext
19278cat >>conftest.$ac_ext <<_ACEOF
19279/* end confdefs.h. */
19280
19281/* Override any gcc2 internal prototype to avoid an error. */
19282#ifdef __cplusplus
19283extern "C"
19284#endif
19285/* We use char because int might match the return type of a gcc2
19286 builtin and then its argument prototype would still apply. */
19287char pthread_mutex_lock ();
19288int
19289main ()
19290{
19291pthread_mutex_lock ();
19292 ;
19293 return 0;
19294}
19295_ACEOF
19296rm -f conftest.$ac_objext conftest$ac_exeext
19297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019298 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019299 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019300 grep -v '^ *+' conftest.er1 >conftest.err
19301 rm -f conftest.er1
19302 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19304 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019305 { ac_try='test -z "$ac_c_werror_flag"
19306 || test ! -s conftest.err'
19307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308 (eval $ac_try) 2>&5
19309 ac_status=$?
19310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); }; } &&
19312 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19314 (eval $ac_try) 2>&5
19315 ac_status=$?
19316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19317 (exit $ac_status); }; }; then
19318 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19319break
19320else
19321 echo "$as_me: failed program was:" >&5
19322sed 's/^/| /' conftest.$ac_ext >&5
19323
19324fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019325rm -f conftest.err conftest.$ac_objext \
19326 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019327 done
19328fi
19329LIBS=$ac_func_search_save_LIBS
19330fi
19331echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19332echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19333if test "$ac_cv_search_pthread_mutex_lock" != no; then
19334 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000019335 HAVE_PTHREAD_MUTEX_LOCK=1
19336else
19337 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000019338fi
19339
19340
Brian Gaekec9a410c2004-02-23 21:30:37 +000019341
John Criswell7a73b802003-06-30 21:59:07 +000019342echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19343echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19344if test "${ac_cv_header_stdc+set}" = set; then
19345 echo $ECHO_N "(cached) $ECHO_C" >&6
19346else
19347 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019348/* confdefs.h. */
19349_ACEOF
19350cat confdefs.h >>conftest.$ac_ext
19351cat >>conftest.$ac_ext <<_ACEOF
19352/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019353#include <stdlib.h>
19354#include <stdarg.h>
19355#include <string.h>
19356#include <float.h>
19357
John Criswell0c38eaf2003-09-10 15:17:25 +000019358int
19359main ()
19360{
19361
19362 ;
19363 return 0;
19364}
John Criswell7a73b802003-06-30 21:59:07 +000019365_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019366rm -f conftest.$ac_objext
19367if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019368 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019369 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019370 grep -v '^ *+' conftest.er1 >conftest.err
19371 rm -f conftest.er1
19372 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019374 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019375 { ac_try='test -z "$ac_c_werror_flag"
19376 || test ! -s conftest.err'
19377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19378 (eval $ac_try) 2>&5
19379 ac_status=$?
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); }; } &&
19382 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000019383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19384 (eval $ac_try) 2>&5
19385 ac_status=$?
19386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19387 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019388 ac_cv_header_stdc=yes
19389else
19390 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019391sed 's/^/| /' conftest.$ac_ext >&5
19392
19393ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019394fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019395rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019396
19397if test $ac_cv_header_stdc = yes; then
19398 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19399 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019400/* confdefs.h. */
19401_ACEOF
19402cat confdefs.h >>conftest.$ac_ext
19403cat >>conftest.$ac_ext <<_ACEOF
19404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019405#include <string.h>
19406
19407_ACEOF
19408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019409 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019410 :
19411else
19412 ac_cv_header_stdc=no
19413fi
19414rm -f conftest*
19415
19416fi
19417
19418if test $ac_cv_header_stdc = yes; then
19419 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19420 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019421/* confdefs.h. */
19422_ACEOF
19423cat confdefs.h >>conftest.$ac_ext
19424cat >>conftest.$ac_ext <<_ACEOF
19425/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019426#include <stdlib.h>
19427
19428_ACEOF
19429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019430 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019431 :
19432else
19433 ac_cv_header_stdc=no
19434fi
19435rm -f conftest*
19436
19437fi
19438
19439if test $ac_cv_header_stdc = yes; then
19440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19441 if test "$cross_compiling" = yes; then
19442 :
19443else
19444 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019445/* confdefs.h. */
19446_ACEOF
19447cat confdefs.h >>conftest.$ac_ext
19448cat >>conftest.$ac_ext <<_ACEOF
19449/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019450#include <ctype.h>
19451#if ((' ' & 0x0FF) == 0x020)
19452# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19453# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19454#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019455# define ISLOWER(c) \
Reid Spencer2b51a082004-08-04 00:34:49 +000019456 (('a' <= (c) && (c) <= 'i') \
19457 || ('j' <= (c) && (c) <= 'r') \
19458 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000019459# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19460#endif
19461
19462#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19463int
19464main ()
19465{
19466 int i;
19467 for (i = 0; i < 256; i++)
19468 if (XOR (islower (i), ISLOWER (i))
Reid Spencer2b51a082004-08-04 00:34:49 +000019469 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000019470 exit(2);
19471 exit (0);
19472}
19473_ACEOF
19474rm -f conftest$ac_exeext
19475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19476 (eval $ac_link) 2>&5
19477 ac_status=$?
19478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19481 (eval $ac_try) 2>&5
19482 ac_status=$?
19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19484 (exit $ac_status); }; }; then
19485 :
19486else
19487 echo "$as_me: program exited with status $ac_status" >&5
19488echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019489sed 's/^/| /' conftest.$ac_ext >&5
19490
John Criswell7a73b802003-06-30 21:59:07 +000019491( exit $ac_status )
19492ac_cv_header_stdc=no
19493fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019494rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019495fi
19496fi
19497fi
19498echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19499echo "${ECHO_T}$ac_cv_header_stdc" >&6
19500if test $ac_cv_header_stdc = yes; then
19501
19502cat >>confdefs.h <<\_ACEOF
19503#define STDC_HEADERS 1
19504_ACEOF
19505
19506fi
19507
19508echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19509echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19510if test "${ac_cv_header_sys_wait_h+set}" = set; then
19511 echo $ECHO_N "(cached) $ECHO_C" >&6
19512else
19513 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019514/* confdefs.h. */
19515_ACEOF
19516cat confdefs.h >>conftest.$ac_ext
19517cat >>conftest.$ac_ext <<_ACEOF
19518/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019519#include <sys/types.h>
19520#include <sys/wait.h>
19521#ifndef WEXITSTATUS
19522# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19523#endif
19524#ifndef WIFEXITED
19525# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19526#endif
19527
John Criswell7a73b802003-06-30 21:59:07 +000019528int
19529main ()
19530{
19531 int s;
19532 wait (&s);
19533 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19534 ;
19535 return 0;
19536}
19537_ACEOF
19538rm -f conftest.$ac_objext
19539if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019540 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019541 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019542 grep -v '^ *+' conftest.er1 >conftest.err
19543 rm -f conftest.er1
19544 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019547 { ac_try='test -z "$ac_c_werror_flag"
19548 || test ! -s conftest.err'
19549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19550 (eval $ac_try) 2>&5
19551 ac_status=$?
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); }; } &&
19554 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19556 (eval $ac_try) 2>&5
19557 ac_status=$?
19558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19559 (exit $ac_status); }; }; then
19560 ac_cv_header_sys_wait_h=yes
19561else
19562 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019563sed 's/^/| /' conftest.$ac_ext >&5
19564
John Criswell7a73b802003-06-30 21:59:07 +000019565ac_cv_header_sys_wait_h=no
19566fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019567rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019568fi
19569echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19570echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19571if test $ac_cv_header_sys_wait_h = yes; then
19572
19573cat >>confdefs.h <<\_ACEOF
19574#define HAVE_SYS_WAIT_H 1
19575_ACEOF
19576
19577fi
19578
19579
19580
19581
19582
19583
19584
19585
19586
19587
Brian Gaeke26be9c52004-01-13 06:43:16 +000019588
Brian Gaekef5261472004-02-20 06:40:57 +000019589
John Criswellb2815e02004-05-27 20:40:39 +000019590
19591for 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 +000019592do
19593as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19594if eval "test \"\${$as_ac_Header+set}\" = set"; then
19595 echo "$as_me:$LINENO: checking for $ac_header" >&5
19596echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19597if eval "test \"\${$as_ac_Header+set}\" = set"; then
19598 echo $ECHO_N "(cached) $ECHO_C" >&6
19599fi
19600echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19601echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19602else
19603 # Is the header compilable?
19604echo "$as_me:$LINENO: checking $ac_header usability" >&5
19605echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19606cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019607/* confdefs.h. */
19608_ACEOF
19609cat confdefs.h >>conftest.$ac_ext
19610cat >>conftest.$ac_ext <<_ACEOF
19611/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019612$ac_includes_default
19613#include <$ac_header>
19614_ACEOF
19615rm -f conftest.$ac_objext
19616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019617 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019618 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019619 grep -v '^ *+' conftest.er1 >conftest.err
19620 rm -f conftest.er1
19621 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019624 { ac_try='test -z "$ac_c_werror_flag"
19625 || test ! -s conftest.err'
19626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19627 (eval $ac_try) 2>&5
19628 ac_status=$?
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; } &&
19631 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19633 (eval $ac_try) 2>&5
19634 ac_status=$?
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 ac_header_compiler=yes
19638else
19639 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019640sed 's/^/| /' conftest.$ac_ext >&5
19641
John Criswell7a73b802003-06-30 21:59:07 +000019642ac_header_compiler=no
19643fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019645echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19646echo "${ECHO_T}$ac_header_compiler" >&6
19647
19648# Is the header present?
19649echo "$as_me:$LINENO: checking $ac_header presence" >&5
19650echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19651cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019652/* confdefs.h. */
19653_ACEOF
19654cat confdefs.h >>conftest.$ac_ext
19655cat >>conftest.$ac_ext <<_ACEOF
19656/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019657#include <$ac_header>
19658_ACEOF
19659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19661 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019662 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019663 rm -f conftest.er1
19664 cat conftest.err >&5
19665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19666 (exit $ac_status); } >/dev/null; then
19667 if test -s conftest.err; then
19668 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000019669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000019670 else
19671 ac_cpp_err=
19672 fi
19673else
19674 ac_cpp_err=yes
19675fi
19676if test -z "$ac_cpp_err"; then
19677 ac_header_preproc=yes
19678else
19679 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019680sed 's/^/| /' conftest.$ac_ext >&5
19681
John Criswell7a73b802003-06-30 21:59:07 +000019682 ac_header_preproc=no
19683fi
19684rm -f conftest.err conftest.$ac_ext
19685echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19686echo "${ECHO_T}$ac_header_preproc" >&6
19687
19688# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000019689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19690 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000019691 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19692echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19694echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19695 ac_header_preproc=yes
John Criswell0c38eaf2003-09-10 15:17:25 +000019696 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000019697 no:yes:* )
John Criswell7a73b802003-06-30 21:59:07 +000019698 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19699echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019700 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19701echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19702 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19703echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19704 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19705echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019706 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019707echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019708 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19709echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000019710 (
19711 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000019712## ----------------------------------- ##
19713## Report this to llvmbugs@cs.uiuc.edu ##
19714## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000019715_ASBOX
19716 ) |
19717 sed "s/^/$as_me: WARNING: /" >&2
19718 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019719esac
19720echo "$as_me:$LINENO: checking for $ac_header" >&5
19721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19722if eval "test \"\${$as_ac_Header+set}\" = set"; then
19723 echo $ECHO_N "(cached) $ECHO_C" >&6
19724else
Reid Spencer2b51a082004-08-04 00:34:49 +000019725 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000019726fi
19727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19729
19730fi
19731if test `eval echo '${'$as_ac_Header'}'` = yes; then
19732 cat >>confdefs.h <<_ACEOF
19733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19734_ACEOF
19735
19736fi
19737
19738done
19739
19740
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019741if test "${ac_cv_header_sys_types_h+set}" = set; then
19742 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19743echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19744if test "${ac_cv_header_sys_types_h+set}" = set; then
19745 echo $ECHO_N "(cached) $ECHO_C" >&6
19746fi
19747echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19748echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19749else
19750 # Is the header compilable?
19751echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19752echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19753cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019754/* confdefs.h. */
19755_ACEOF
19756cat confdefs.h >>conftest.$ac_ext
19757cat >>conftest.$ac_ext <<_ACEOF
19758/* end confdefs.h. */
19759$ac_includes_default
19760#include <sys/types.h>
19761_ACEOF
19762rm -f conftest.$ac_objext
19763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019764 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019765 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019766 grep -v '^ *+' conftest.er1 >conftest.err
19767 rm -f conftest.er1
19768 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019771 { ac_try='test -z "$ac_c_werror_flag"
19772 || test ! -s conftest.err'
19773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19774 (eval $ac_try) 2>&5
19775 ac_status=$?
19776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19777 (exit $ac_status); }; } &&
19778 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19780 (eval $ac_try) 2>&5
19781 ac_status=$?
19782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19783 (exit $ac_status); }; }; then
19784 ac_header_compiler=yes
19785else
19786 echo "$as_me: failed program was:" >&5
19787sed 's/^/| /' conftest.$ac_ext >&5
19788
19789ac_header_compiler=no
19790fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019792echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19793echo "${ECHO_T}$ac_header_compiler" >&6
19794
19795# Is the header present?
19796echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19797echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19798cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019799/* confdefs.h. */
19800_ACEOF
19801cat confdefs.h >>conftest.$ac_ext
19802cat >>conftest.$ac_ext <<_ACEOF
19803/* end confdefs.h. */
19804#include <sys/types.h>
19805_ACEOF
19806if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19808 ac_status=$?
19809 grep -v '^ *+' conftest.er1 >conftest.err
19810 rm -f conftest.er1
19811 cat conftest.err >&5
19812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); } >/dev/null; then
19814 if test -s conftest.err; then
19815 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000019816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019817 else
19818 ac_cpp_err=
19819 fi
19820else
19821 ac_cpp_err=yes
19822fi
19823if test -z "$ac_cpp_err"; then
19824 ac_header_preproc=yes
19825else
19826 echo "$as_me: failed program was:" >&5
19827sed 's/^/| /' conftest.$ac_ext >&5
19828
19829 ac_header_preproc=no
19830fi
19831rm -f conftest.err conftest.$ac_ext
19832echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19833echo "${ECHO_T}$ac_header_preproc" >&6
19834
19835# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000019836case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19837 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019838 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19839echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019840 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19841echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19842 ac_header_preproc=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019843 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000019844 no:yes:* )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019845 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19846echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019847 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19848echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19849 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19850echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19851 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
19852echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019853 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19854echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019855 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19856echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019857 (
19858 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000019859## ----------------------------------- ##
19860## Report this to llvmbugs@cs.uiuc.edu ##
19861## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019862_ASBOX
19863 ) |
19864 sed "s/^/$as_me: WARNING: /" >&2
19865 ;;
19866esac
19867echo "$as_me:$LINENO: checking for sys/types.h" >&5
19868echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19869if test "${ac_cv_header_sys_types_h+set}" = set; then
19870 echo $ECHO_N "(cached) $ECHO_C" >&6
19871else
19872 ac_cv_header_sys_types_h=$ac_header_preproc
19873fi
19874echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19875echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19876
19877fi
19878if test $ac_cv_header_sys_types_h = yes; then
19879 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19880else
19881 INCLUDE_SYS_TYPES_H=''
19882fi
19883
19884
19885
19886if test "${ac_cv_header_inttypes_h+set}" = set; then
19887 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19888echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19889if test "${ac_cv_header_inttypes_h+set}" = set; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19891fi
19892echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19893echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19894else
19895 # Is the header compilable?
19896echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19897echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19898cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019899/* confdefs.h. */
19900_ACEOF
19901cat confdefs.h >>conftest.$ac_ext
19902cat >>conftest.$ac_ext <<_ACEOF
19903/* end confdefs.h. */
19904$ac_includes_default
19905#include <inttypes.h>
19906_ACEOF
19907rm -f conftest.$ac_objext
19908if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000019909 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019910 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000019911 grep -v '^ *+' conftest.er1 >conftest.err
19912 rm -f conftest.er1
19913 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000019916 { ac_try='test -z "$ac_c_werror_flag"
19917 || test ! -s conftest.err'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; } &&
19923 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19925 (eval $ac_try) 2>&5
19926 ac_status=$?
19927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19928 (exit $ac_status); }; }; then
19929 ac_header_compiler=yes
19930else
19931 echo "$as_me: failed program was:" >&5
19932sed 's/^/| /' conftest.$ac_ext >&5
19933
19934ac_header_compiler=no
19935fi
Reid Spencer2b51a082004-08-04 00:34:49 +000019936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019937echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19938echo "${ECHO_T}$ac_header_compiler" >&6
19939
19940# Is the header present?
19941echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19942echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19943cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019944/* confdefs.h. */
19945_ACEOF
19946cat confdefs.h >>conftest.$ac_ext
19947cat >>conftest.$ac_ext <<_ACEOF
19948/* end confdefs.h. */
19949#include <inttypes.h>
19950_ACEOF
19951if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19953 ac_status=$?
19954 grep -v '^ *+' conftest.er1 >conftest.err
19955 rm -f conftest.er1
19956 cat conftest.err >&5
19957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958 (exit $ac_status); } >/dev/null; then
19959 if test -s conftest.err; then
19960 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000019961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019962 else
19963 ac_cpp_err=
19964 fi
19965else
19966 ac_cpp_err=yes
19967fi
19968if test -z "$ac_cpp_err"; then
19969 ac_header_preproc=yes
19970else
19971 echo "$as_me: failed program was:" >&5
19972sed 's/^/| /' conftest.$ac_ext >&5
19973
19974 ac_header_preproc=no
19975fi
19976rm -f conftest.err conftest.$ac_ext
19977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19978echo "${ECHO_T}$ac_header_preproc" >&6
19979
19980# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000019981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19982 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019983 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19984echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019985 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
19986echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
19987 ac_header_preproc=yes
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019988 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000019989 no:yes:* )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019990 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19991echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000019992 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19993echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19994 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
19995echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
19996 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
19997echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019998 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19999echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020000 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
20001echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020002 (
20003 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000020004## ----------------------------------- ##
20005## Report this to llvmbugs@cs.uiuc.edu ##
20006## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020007_ASBOX
20008 ) |
20009 sed "s/^/$as_me: WARNING: /" >&2
20010 ;;
20011esac
20012echo "$as_me:$LINENO: checking for inttypes.h" >&5
20013echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
20014if test "${ac_cv_header_inttypes_h+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20016else
20017 ac_cv_header_inttypes_h=$ac_header_preproc
20018fi
20019echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
20020echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
20021
20022fi
20023if test $ac_cv_header_inttypes_h = yes; then
20024 INCLUDE_INTTYPES_H='#include <inttypes.h>'
20025else
20026 INCLUDE_INTTYPES_H=''
20027fi
20028
20029
20030
John Criswell7ed43ad2004-07-19 16:12:29 +000020031if test "${ac_cv_header_stdint_h+set}" = set; then
20032 echo "$as_me:$LINENO: checking for stdint.h" >&5
20033echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20034if test "${ac_cv_header_stdint_h+set}" = set; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
20036fi
20037echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20038echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20039else
20040 # Is the header compilable?
20041echo "$as_me:$LINENO: checking stdint.h usability" >&5
20042echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
20043cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020044/* confdefs.h. */
20045_ACEOF
20046cat confdefs.h >>conftest.$ac_ext
20047cat >>conftest.$ac_ext <<_ACEOF
20048/* end confdefs.h. */
20049$ac_includes_default
20050#include <stdint.h>
20051_ACEOF
20052rm -f conftest.$ac_objext
20053if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020054 (eval $ac_compile) 2>conftest.er1
John Criswell7ed43ad2004-07-19 16:12:29 +000020055 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020056 grep -v '^ *+' conftest.er1 >conftest.err
20057 rm -f conftest.er1
20058 cat conftest.err >&5
John Criswell7ed43ad2004-07-19 16:12:29 +000020059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20060 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020061 { ac_try='test -z "$ac_c_werror_flag"
20062 || test ! -s conftest.err'
20063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064 (eval $ac_try) 2>&5
20065 ac_status=$?
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; } &&
20068 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000020069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20071 ac_status=$?
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_header_compiler=yes
20075else
20076 echo "$as_me: failed program was:" >&5
20077sed 's/^/| /' conftest.$ac_ext >&5
20078
20079ac_header_compiler=no
20080fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000020082echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20083echo "${ECHO_T}$ac_header_compiler" >&6
20084
20085# Is the header present?
20086echo "$as_me:$LINENO: checking stdint.h presence" >&5
20087echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20088cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020089/* confdefs.h. */
20090_ACEOF
20091cat confdefs.h >>conftest.$ac_ext
20092cat >>conftest.$ac_ext <<_ACEOF
20093/* end confdefs.h. */
20094#include <stdint.h>
20095_ACEOF
20096if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20098 ac_status=$?
20099 grep -v '^ *+' conftest.er1 >conftest.err
20100 rm -f conftest.er1
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } >/dev/null; then
20104 if test -s conftest.err; then
20105 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000020106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7ed43ad2004-07-19 16:12:29 +000020107 else
20108 ac_cpp_err=
20109 fi
20110else
20111 ac_cpp_err=yes
20112fi
20113if test -z "$ac_cpp_err"; then
20114 ac_header_preproc=yes
20115else
20116 echo "$as_me: failed program was:" >&5
20117sed 's/^/| /' conftest.$ac_ext >&5
20118
20119 ac_header_preproc=no
20120fi
20121rm -f conftest.err conftest.$ac_ext
20122echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20123echo "${ECHO_T}$ac_header_preproc" >&6
20124
20125# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000020126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20127 yes:no: )
John Criswell7ed43ad2004-07-19 16:12:29 +000020128 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20129echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020130 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20131echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20132 ac_header_preproc=yes
John Criswell7ed43ad2004-07-19 16:12:29 +000020133 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000020134 no:yes:* )
John Criswell7ed43ad2004-07-19 16:12:29 +000020135 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20136echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020137 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20138echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20139 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20140echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20141 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20142echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7ed43ad2004-07-19 16:12:29 +000020143 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20144echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000020145 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20146echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
John Criswell7ed43ad2004-07-19 16:12:29 +000020147 (
20148 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000020149## ----------------------------------- ##
20150## Report this to llvmbugs@cs.uiuc.edu ##
20151## ----------------------------------- ##
John Criswell7ed43ad2004-07-19 16:12:29 +000020152_ASBOX
20153 ) |
20154 sed "s/^/$as_me: WARNING: /" >&2
20155 ;;
20156esac
20157echo "$as_me:$LINENO: checking for stdint.h" >&5
20158echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20159if test "${ac_cv_header_stdint_h+set}" = set; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20161else
20162 ac_cv_header_stdint_h=$ac_header_preproc
20163fi
20164echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20165echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20166
20167fi
20168if test $ac_cv_header_stdint_h = yes; then
20169 INCLUDE_STDINT_H='#include <stdint.h>'
20170else
20171 INCLUDE_STDINT_H=''
20172fi
20173
20174
20175
20176
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020177
John Criswell7a73b802003-06-30 21:59:07 +000020178echo "$as_me:$LINENO: checking for pid_t" >&5
20179echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20180if test "${ac_cv_type_pid_t+set}" = set; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20182else
20183 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020184/* confdefs.h. */
20185_ACEOF
20186cat confdefs.h >>conftest.$ac_ext
20187cat >>conftest.$ac_ext <<_ACEOF
20188/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020189$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020190int
20191main ()
20192{
20193if ((pid_t *) 0)
20194 return 0;
20195if (sizeof (pid_t))
20196 return 0;
20197 ;
20198 return 0;
20199}
20200_ACEOF
20201rm -f conftest.$ac_objext
20202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020203 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020204 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020205 grep -v '^ *+' conftest.er1 >conftest.err
20206 rm -f conftest.er1
20207 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020210 { ac_try='test -z "$ac_c_werror_flag"
20211 || test ! -s conftest.err'
20212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20213 (eval $ac_try) 2>&5
20214 ac_status=$?
20215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20216 (exit $ac_status); }; } &&
20217 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20219 (eval $ac_try) 2>&5
20220 ac_status=$?
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); }; }; then
20223 ac_cv_type_pid_t=yes
20224else
20225 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020226sed 's/^/| /' conftest.$ac_ext >&5
20227
John Criswell7a73b802003-06-30 21:59:07 +000020228ac_cv_type_pid_t=no
20229fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020230rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020231fi
20232echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20233echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20234if test $ac_cv_type_pid_t = yes; then
20235 :
20236else
20237
20238cat >>confdefs.h <<_ACEOF
20239#define pid_t int
20240_ACEOF
20241
20242fi
20243
20244echo "$as_me:$LINENO: checking for size_t" >&5
20245echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20246if test "${ac_cv_type_size_t+set}" = set; then
20247 echo $ECHO_N "(cached) $ECHO_C" >&6
20248else
20249 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020250/* confdefs.h. */
20251_ACEOF
20252cat confdefs.h >>conftest.$ac_ext
20253cat >>conftest.$ac_ext <<_ACEOF
20254/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020255$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020256int
20257main ()
20258{
20259if ((size_t *) 0)
20260 return 0;
20261if (sizeof (size_t))
20262 return 0;
20263 ;
20264 return 0;
20265}
20266_ACEOF
20267rm -f conftest.$ac_objext
20268if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020269 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020270 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020271 grep -v '^ *+' conftest.er1 >conftest.err
20272 rm -f conftest.er1
20273 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20275 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020276 { ac_try='test -z "$ac_c_werror_flag"
20277 || test ! -s conftest.err'
20278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20279 (eval $ac_try) 2>&5
20280 ac_status=$?
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); }; } &&
20283 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285 (eval $ac_try) 2>&5
20286 ac_status=$?
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; }; then
20289 ac_cv_type_size_t=yes
20290else
20291 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020292sed 's/^/| /' conftest.$ac_ext >&5
20293
John Criswell7a73b802003-06-30 21:59:07 +000020294ac_cv_type_size_t=no
20295fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020296rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020297fi
20298echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20299echo "${ECHO_T}$ac_cv_type_size_t" >&6
20300if test $ac_cv_type_size_t = yes; then
20301 :
20302else
20303
20304cat >>confdefs.h <<_ACEOF
20305#define size_t unsigned
20306_ACEOF
20307
20308fi
20309
20310echo "$as_me:$LINENO: checking for int64_t" >&5
20311echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20312if test "${ac_cv_type_int64_t+set}" = set; then
20313 echo $ECHO_N "(cached) $ECHO_C" >&6
20314else
20315 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020316/* confdefs.h. */
20317_ACEOF
20318cat confdefs.h >>conftest.$ac_ext
20319cat >>conftest.$ac_ext <<_ACEOF
20320/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020321$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020322int
20323main ()
20324{
20325if ((int64_t *) 0)
20326 return 0;
20327if (sizeof (int64_t))
20328 return 0;
20329 ;
20330 return 0;
20331}
20332_ACEOF
20333rm -f conftest.$ac_objext
20334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020335 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020336 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020337 grep -v '^ *+' conftest.er1 >conftest.err
20338 rm -f conftest.er1
20339 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20341 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020342 { ac_try='test -z "$ac_c_werror_flag"
20343 || test ! -s conftest.err'
20344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20345 (eval $ac_try) 2>&5
20346 ac_status=$?
20347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20348 (exit $ac_status); }; } &&
20349 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351 (eval $ac_try) 2>&5
20352 ac_status=$?
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 ac_cv_type_int64_t=yes
20356else
20357 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020358sed 's/^/| /' conftest.$ac_ext >&5
20359
John Criswell7a73b802003-06-30 21:59:07 +000020360ac_cv_type_int64_t=no
20361fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020362rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020363fi
20364echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20365echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20366if test $ac_cv_type_int64_t = yes; then
20367
20368cat >>confdefs.h <<_ACEOF
20369#define HAVE_INT64_T 1
20370_ACEOF
20371
20372
20373else
20374 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20375echo "$as_me: error: Type int64_t required but not found" >&2;}
20376 { (exit 1); exit 1; }; }
20377fi
20378
20379echo "$as_me:$LINENO: checking for uint64_t" >&5
20380echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20381if test "${ac_cv_type_uint64_t+set}" = set; then
20382 echo $ECHO_N "(cached) $ECHO_C" >&6
20383else
20384 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020385/* confdefs.h. */
20386_ACEOF
20387cat confdefs.h >>conftest.$ac_ext
20388cat >>conftest.$ac_ext <<_ACEOF
20389/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020390$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020391int
20392main ()
20393{
20394if ((uint64_t *) 0)
20395 return 0;
20396if (sizeof (uint64_t))
20397 return 0;
20398 ;
20399 return 0;
20400}
20401_ACEOF
20402rm -f conftest.$ac_objext
20403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020404 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020405 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020406 grep -v '^ *+' conftest.er1 >conftest.err
20407 rm -f conftest.er1
20408 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20410 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020411 { ac_try='test -z "$ac_c_werror_flag"
20412 || test ! -s conftest.err'
20413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20414 (eval $ac_try) 2>&5
20415 ac_status=$?
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; } &&
20418 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20420 (eval $ac_try) 2>&5
20421 ac_status=$?
20422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); }; }; then
20424 ac_cv_type_uint64_t=yes
20425else
20426 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020427sed 's/^/| /' conftest.$ac_ext >&5
20428
John Criswell7a73b802003-06-30 21:59:07 +000020429ac_cv_type_uint64_t=no
20430fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020432fi
20433echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20434echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20435if test $ac_cv_type_uint64_t = yes; then
20436
20437cat >>confdefs.h <<_ACEOF
20438#define HAVE_UINT64_T 1
20439_ACEOF
20440
20441
20442else
20443 { { echo "$as_me:$LINENO: error: Type uint64_t required but not found" >&5
20444echo "$as_me: error: Type uint64_t required but not found" >&2;}
20445 { (exit 1); exit 1; }; }
20446fi
20447
20448echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20449echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20450if test "${ac_cv_header_time+set}" = set; then
20451 echo $ECHO_N "(cached) $ECHO_C" >&6
20452else
20453 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020454/* confdefs.h. */
20455_ACEOF
20456cat confdefs.h >>conftest.$ac_ext
20457cat >>conftest.$ac_ext <<_ACEOF
20458/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020459#include <sys/types.h>
20460#include <sys/time.h>
20461#include <time.h>
20462
John Criswell7a73b802003-06-30 21:59:07 +000020463int
20464main ()
20465{
20466if ((struct tm *) 0)
20467return 0;
20468 ;
20469 return 0;
20470}
20471_ACEOF
20472rm -f conftest.$ac_objext
20473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020474 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020475 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020476 grep -v '^ *+' conftest.er1 >conftest.err
20477 rm -f conftest.er1
20478 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020481 { ac_try='test -z "$ac_c_werror_flag"
20482 || test ! -s conftest.err'
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20485 ac_status=$?
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; } &&
20488 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20490 (eval $ac_try) 2>&5
20491 ac_status=$?
20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493 (exit $ac_status); }; }; then
20494 ac_cv_header_time=yes
20495else
20496 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020497sed 's/^/| /' conftest.$ac_ext >&5
20498
John Criswell7a73b802003-06-30 21:59:07 +000020499ac_cv_header_time=no
20500fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020501rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020502fi
20503echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20504echo "${ECHO_T}$ac_cv_header_time" >&6
20505if test $ac_cv_header_time = yes; then
20506
20507cat >>confdefs.h <<\_ACEOF
20508#define TIME_WITH_SYS_TIME 1
20509_ACEOF
20510
20511fi
20512
20513echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20514echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20515if test "${ac_cv_struct_tm+set}" = set; then
20516 echo $ECHO_N "(cached) $ECHO_C" >&6
20517else
20518 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020519/* confdefs.h. */
20520_ACEOF
20521cat confdefs.h >>conftest.$ac_ext
20522cat >>conftest.$ac_ext <<_ACEOF
20523/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020524#include <sys/types.h>
20525#include <time.h>
20526
John Criswell7a73b802003-06-30 21:59:07 +000020527int
20528main ()
20529{
20530struct tm *tp; tp->tm_sec;
20531 ;
20532 return 0;
20533}
20534_ACEOF
20535rm -f conftest.$ac_objext
20536if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020537 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020538 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020539 grep -v '^ *+' conftest.er1 >conftest.err
20540 rm -f conftest.er1
20541 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020544 { ac_try='test -z "$ac_c_werror_flag"
20545 || test ! -s conftest.err'
20546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20547 (eval $ac_try) 2>&5
20548 ac_status=$?
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; } &&
20551 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20553 (eval $ac_try) 2>&5
20554 ac_status=$?
20555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20556 (exit $ac_status); }; }; then
20557 ac_cv_struct_tm=time.h
20558else
20559 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020560sed 's/^/| /' conftest.$ac_ext >&5
20561
John Criswell7a73b802003-06-30 21:59:07 +000020562ac_cv_struct_tm=sys/time.h
20563fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020565fi
20566echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20567echo "${ECHO_T}$ac_cv_struct_tm" >&6
20568if test $ac_cv_struct_tm = sys/time.h; then
20569
20570cat >>confdefs.h <<\_ACEOF
20571#define TM_IN_SYS_TIME 1
20572_ACEOF
20573
20574fi
20575
20576
John Criswella0137d32003-10-13 16:22:01 +000020577
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020578 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20579echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
John Criswella0137d32003-10-13 16:22:01 +000020580
20581
20582 ac_ext=c
20583ac_cpp='$CPP $CPPFLAGS'
20584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20586ac_compiler_gnu=$ac_cv_c_compiler_gnu
20587
20588 if test "$cross_compiling" = yes; then
20589 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20590See \`config.log' for more details." >&5
20591echo "$as_me: error: cannot run test program while cross compiling
20592See \`config.log' for more details." >&2;}
20593 { (exit 1); exit 1; }; }
20594else
20595 cat >conftest.$ac_ext <<_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000020596/* confdefs.h. */
20597_ACEOF
20598cat confdefs.h >>conftest.$ac_ext
20599cat >>conftest.$ac_ext <<_ACEOF
20600/* end confdefs.h. */
20601#include <stdio.h>
20602 #include <stdlib.h>
20603int
20604main ()
20605{
20606
20607 volatile double A, B;
20608 char Buffer[100];
20609 A = 1;
20610 A /= 10.0;
20611 sprintf(Buffer, "%a", A);
20612 B = atof(Buffer);
20613 if (A != B)
20614 return (1);
20615 if (A != 0x1.999999999999ap-4)
20616 return (1);
20617 return (0);
20618 ;
20619 return 0;
20620}
20621_ACEOF
20622rm -f conftest$ac_exeext
20623if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20624 (eval $ac_link) 2>&5
20625 ac_status=$?
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20629 (eval $ac_try) 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; }; then
20633 ac_c_printf_a=yes
20634else
20635 echo "$as_me: program exited with status $ac_status" >&5
20636echo "$as_me: failed program was:" >&5
20637sed 's/^/| /' conftest.$ac_ext >&5
20638
20639( exit $ac_status )
20640ac_c_printf_a=no
20641fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020642rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000020643fi
20644 ac_ext=c
20645ac_cpp='$CPP $CPPFLAGS'
20646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20648ac_compiler_gnu=$ac_cv_c_compiler_gnu
20649
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020650 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20651echo "${ECHO_T}$ac_c_printf_a" >&6
John Criswella0137d32003-10-13 16:22:01 +000020652 if test "$ac_c_printf_a" = "yes"; then
20653
20654cat >>confdefs.h <<\_ACEOF
20655#define HAVE_PRINTF_A 1
20656_ACEOF
20657
20658 fi
20659
20660
John Criswell0021c312004-02-13 21:57:29 +000020661echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20662echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20663if test "${ac_cv_c_bigendian+set}" = set; then
20664 echo $ECHO_N "(cached) $ECHO_C" >&6
20665else
20666 # See if sys/param.h defines the BYTE_ORDER macro.
20667cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020668/* confdefs.h. */
20669_ACEOF
20670cat confdefs.h >>conftest.$ac_ext
20671cat >>conftest.$ac_ext <<_ACEOF
20672/* end confdefs.h. */
20673#include <sys/types.h>
20674#include <sys/param.h>
20675
20676int
20677main ()
20678{
20679#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20680 bogus endian macros
20681#endif
20682
20683 ;
20684 return 0;
20685}
20686_ACEOF
20687rm -f conftest.$ac_objext
20688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020689 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020690 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020691 grep -v '^ *+' conftest.er1 >conftest.err
20692 rm -f conftest.er1
20693 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020696 { ac_try='test -z "$ac_c_werror_flag"
20697 || test ! -s conftest.err'
20698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20699 (eval $ac_try) 2>&5
20700 ac_status=$?
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); }; } &&
20703 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20705 (eval $ac_try) 2>&5
20706 ac_status=$?
20707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); }; }; then
20709 # It does; now see whether it defined to BIG_ENDIAN or not.
20710cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020711/* confdefs.h. */
20712_ACEOF
20713cat confdefs.h >>conftest.$ac_ext
20714cat >>conftest.$ac_ext <<_ACEOF
20715/* end confdefs.h. */
20716#include <sys/types.h>
20717#include <sys/param.h>
20718
20719int
20720main ()
20721{
20722#if BYTE_ORDER != BIG_ENDIAN
20723 not big endian
20724#endif
20725
20726 ;
20727 return 0;
20728}
20729_ACEOF
20730rm -f conftest.$ac_objext
20731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020732 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020733 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020734 grep -v '^ *+' conftest.er1 >conftest.err
20735 rm -f conftest.er1
20736 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20738 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020739 { ac_try='test -z "$ac_c_werror_flag"
20740 || test ! -s conftest.err'
20741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20742 (eval $ac_try) 2>&5
20743 ac_status=$?
20744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); }; } &&
20746 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20748 (eval $ac_try) 2>&5
20749 ac_status=$?
20750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20751 (exit $ac_status); }; }; then
20752 ac_cv_c_bigendian=yes
20753else
20754 echo "$as_me: failed program was:" >&5
20755sed 's/^/| /' conftest.$ac_ext >&5
20756
20757ac_cv_c_bigendian=no
20758fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020760else
20761 echo "$as_me: failed program was:" >&5
20762sed 's/^/| /' conftest.$ac_ext >&5
20763
20764# It does not; compile a test program.
20765if test "$cross_compiling" = yes; then
20766 # try to guess the endianness by grepping values into an object file
20767 ac_cv_c_bigendian=unknown
20768 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020769/* confdefs.h. */
20770_ACEOF
20771cat confdefs.h >>conftest.$ac_ext
20772cat >>conftest.$ac_ext <<_ACEOF
20773/* end confdefs.h. */
20774short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20775short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20776void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20777short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20778short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20779void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20780int
20781main ()
20782{
20783 _ascii (); _ebcdic ();
20784 ;
20785 return 0;
20786}
20787_ACEOF
20788rm -f conftest.$ac_objext
20789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020790 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020791 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020792 grep -v '^ *+' conftest.er1 >conftest.err
20793 rm -f conftest.er1
20794 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20796 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020797 { ac_try='test -z "$ac_c_werror_flag"
20798 || test ! -s conftest.err'
20799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20800 (eval $ac_try) 2>&5
20801 ac_status=$?
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); }; } &&
20804 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20806 (eval $ac_try) 2>&5
20807 ac_status=$?
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; }; then
20810 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20811 ac_cv_c_bigendian=yes
20812fi
20813if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20814 if test "$ac_cv_c_bigendian" = unknown; then
20815 ac_cv_c_bigendian=no
20816 else
20817 # finding both strings is unlikely to happen, but who knows?
20818 ac_cv_c_bigendian=unknown
20819 fi
20820fi
20821else
20822 echo "$as_me: failed program was:" >&5
20823sed 's/^/| /' conftest.$ac_ext >&5
20824
20825fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020827else
20828 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020829/* confdefs.h. */
20830_ACEOF
20831cat confdefs.h >>conftest.$ac_ext
20832cat >>conftest.$ac_ext <<_ACEOF
20833/* end confdefs.h. */
20834int
20835main ()
20836{
20837 /* Are we little or big endian? From Harbison&Steele. */
20838 union
20839 {
20840 long l;
20841 char c[sizeof (long)];
20842 } u;
20843 u.l = 1;
20844 exit (u.c[sizeof (long) - 1] == 1);
20845}
20846_ACEOF
20847rm -f conftest$ac_exeext
20848if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20849 (eval $ac_link) 2>&5
20850 ac_status=$?
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20854 (eval $ac_try) 2>&5
20855 ac_status=$?
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); }; }; then
20858 ac_cv_c_bigendian=no
20859else
20860 echo "$as_me: program exited with status $ac_status" >&5
20861echo "$as_me: failed program was:" >&5
20862sed 's/^/| /' conftest.$ac_ext >&5
20863
20864( exit $ac_status )
20865ac_cv_c_bigendian=yes
20866fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020867rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020868fi
20869fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020870rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020871fi
20872echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20873echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20874case $ac_cv_c_bigendian in
20875 yes)
20876 ENDIAN=big
20877 ;;
20878 no)
20879 ENDIAN=little
20880 ;;
20881 *)
20882 { { echo "$as_me:$LINENO: error: unknown endianness
20883presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20884echo "$as_me: error: unknown endianness
20885presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20886 { (exit 1); exit 1; }; } ;;
20887esac
20888
20889
John Criswell7a73b802003-06-30 21:59:07 +000020890echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20891echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20892if test "${ac_cv_cxx_namespaces+set}" = set; then
20893 echo $ECHO_N "(cached) $ECHO_C" >&6
20894else
20895
20896
20897 ac_ext=cc
20898ac_cpp='$CXXCPP $CPPFLAGS'
20899ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20900ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20901ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20902
20903 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020904/* confdefs.h. */
20905_ACEOF
20906cat confdefs.h >>conftest.$ac_ext
20907cat >>conftest.$ac_ext <<_ACEOF
20908/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020909namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020910int
20911main ()
20912{
20913using namespace Outer::Inner; return i;
20914 ;
20915 return 0;
20916}
20917_ACEOF
20918rm -f conftest.$ac_objext
20919if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000020920 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020921 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000020922 grep -v '^ *+' conftest.er1 >conftest.err
20923 rm -f conftest.er1
20924 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000020927 { ac_try='test -z "$ac_cxx_werror_flag"
20928 || test ! -s conftest.err'
20929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20930 (eval $ac_try) 2>&5
20931 ac_status=$?
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); }; } &&
20934 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20936 (eval $ac_try) 2>&5
20937 ac_status=$?
20938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20939 (exit $ac_status); }; }; then
20940 ac_cv_cxx_namespaces=yes
20941else
20942 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020943sed 's/^/| /' conftest.$ac_ext >&5
20944
John Criswell7a73b802003-06-30 21:59:07 +000020945ac_cv_cxx_namespaces=no
20946fi
Reid Spencer2b51a082004-08-04 00:34:49 +000020947rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020948 ac_ext=c
20949ac_cpp='$CPP $CPPFLAGS'
20950ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20951ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20952ac_compiler_gnu=$ac_cv_c_compiler_gnu
20953
20954
20955fi
20956echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20957echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20958if test "$ac_cv_cxx_namespaces" = yes; then
20959
20960cat >>confdefs.h <<\_ACEOF
20961#define HAVE_NAMESPACES
20962_ACEOF
20963
20964fi
20965
Brian Gaeke90583492003-11-10 03:06:28 +000020966echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20967echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20968if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020969 echo $ECHO_N "(cached) $ECHO_C" >&6
20970else
20971
20972
20973
20974 ac_ext=cc
20975ac_cpp='$CXXCPP $CPPFLAGS'
20976ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20977ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20978ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20979
20980 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020981/* confdefs.h. */
20982_ACEOF
20983cat confdefs.h >>conftest.$ac_ext
20984cat >>conftest.$ac_ext <<_ACEOF
20985/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020986#include <ext/hash_map>
20987#ifdef HAVE_NAMESPACES
20988using namespace std;
20989#endif
John Criswell7a73b802003-06-30 21:59:07 +000020990int
20991main ()
20992{
Brian Gaeke90583492003-11-10 03:06:28 +000020993hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020994 ;
20995 return 0;
20996}
20997_ACEOF
20998rm -f conftest.$ac_objext
20999if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021000 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021001 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021002 grep -v '^ *+' conftest.er1 >conftest.err
21003 rm -f conftest.er1
21004 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021007 { ac_try='test -z "$ac_cxx_werror_flag"
21008 || test ! -s conftest.err'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21011 ac_status=$?
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; } &&
21014 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016 (eval $ac_try) 2>&5
21017 ac_status=$?
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021020 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000021021else
21022 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021023sed 's/^/| /' conftest.$ac_ext >&5
21024
Brian Gaeke90583492003-11-10 03:06:28 +000021025ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021026fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021027rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021028 ac_ext=c
21029ac_cpp='$CPP $CPPFLAGS'
21030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21032ac_compiler_gnu=$ac_cv_c_compiler_gnu
21033
John Criswell7a73b802003-06-30 21:59:07 +000021034fi
Brian Gaeke90583492003-11-10 03:06:28 +000021035echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21036echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021037 HAVE_STD_EXT_HASH_MAP=0
21038 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21039 then
21040 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021041 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021042
Brian Gaeke90583492003-11-10 03:06:28 +000021043 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21044echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21045if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21046 echo $ECHO_N "(cached) $ECHO_C" >&6
21047else
21048
21049
21050
21051 ac_ext=cc
21052ac_cpp='$CXXCPP $CPPFLAGS'
21053ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21054ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21055ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21056
21057 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021058/* confdefs.h. */
21059_ACEOF
21060cat confdefs.h >>conftest.$ac_ext
21061cat >>conftest.$ac_ext <<_ACEOF
21062/* end confdefs.h. */
21063#include <ext/hash_map>
21064#ifdef HAVE_NAMESPACES
21065using namespace __gnu_cxx;
21066#endif
21067int
21068main ()
21069{
21070hash_map<int,int> t;
21071 ;
21072 return 0;
21073}
21074_ACEOF
21075rm -f conftest.$ac_objext
21076if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021077 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021078 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021079 grep -v '^ *+' conftest.er1 >conftest.err
21080 rm -f conftest.er1
21081 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21083 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021084 { ac_try='test -z "$ac_cxx_werror_flag"
21085 || test ! -s conftest.err'
21086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21087 (eval $ac_try) 2>&5
21088 ac_status=$?
21089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090 (exit $ac_status); }; } &&
21091 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21093 (eval $ac_try) 2>&5
21094 ac_status=$?
21095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21096 (exit $ac_status); }; }; then
21097 ac_cv_cxx_have_gnu_ext_hash_map=yes
21098else
21099 echo "$as_me: failed program was:" >&5
21100sed 's/^/| /' conftest.$ac_ext >&5
21101
21102ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021103fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021105 ac_ext=c
21106ac_cpp='$CPP $CPPFLAGS'
21107ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21108ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21109ac_compiler_gnu=$ac_cv_c_compiler_gnu
21110
21111fi
21112echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21113echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021114 HAVE_GNU_EXT_HASH_MAP=0
21115 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21116 then
21117 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021118 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021119
Brian Gaeke90583492003-11-10 03:06:28 +000021120 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21121echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21122if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21123 echo $ECHO_N "(cached) $ECHO_C" >&6
21124else
John Criswell7a73b802003-06-30 21:59:07 +000021125
Brian Gaeke90583492003-11-10 03:06:28 +000021126
21127
21128 ac_ext=cc
21129ac_cpp='$CXXCPP $CPPFLAGS'
21130ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21131ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21132ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21133
21134 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021135/* confdefs.h. */
21136_ACEOF
21137cat confdefs.h >>conftest.$ac_ext
21138cat >>conftest.$ac_ext <<_ACEOF
21139/* end confdefs.h. */
21140#include <hash_map>
21141int
21142main ()
21143{
21144hash_map<int,int> t;
21145 ;
21146 return 0;
21147}
21148_ACEOF
21149rm -f conftest.$ac_objext
21150if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021151 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021152 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021153 grep -v '^ *+' conftest.er1 >conftest.err
21154 rm -f conftest.er1
21155 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21157 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021158 { ac_try='test -z "$ac_cxx_werror_flag"
21159 || test ! -s conftest.err'
21160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21161 (eval $ac_try) 2>&5
21162 ac_status=$?
21163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21164 (exit $ac_status); }; } &&
21165 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21167 (eval $ac_try) 2>&5
21168 ac_status=$?
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); }; }; then
21171 ac_cv_cxx_have_global_hash_map=yes
21172else
21173 echo "$as_me: failed program was:" >&5
21174sed 's/^/| /' conftest.$ac_ext >&5
21175
21176ac_cv_cxx_have_global_hash_map=no
21177fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021179 ac_ext=c
21180ac_cpp='$CPP $CPPFLAGS'
21181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21183ac_compiler_gnu=$ac_cv_c_compiler_gnu
21184
21185fi
21186echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21187echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021188 HAVE_GLOBAL_HASH_MAP=0
21189 if test "$ac_cv_cxx_have_global_hash_map" = yes
21190 then
21191 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021192 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021193
Brian Gaeke90583492003-11-10 03:06:28 +000021194echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21195echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21196if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021197 echo $ECHO_N "(cached) $ECHO_C" >&6
21198else
21199
21200
21201
21202 ac_ext=cc
21203ac_cpp='$CXXCPP $CPPFLAGS'
21204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21207
21208 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021209/* confdefs.h. */
21210_ACEOF
21211cat confdefs.h >>conftest.$ac_ext
21212cat >>conftest.$ac_ext <<_ACEOF
21213/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021214#include <ext/hash_set>
21215#ifdef HAVE_NAMESPACES
21216using namespace std;
21217#endif
John Criswell7a73b802003-06-30 21:59:07 +000021218int
21219main ()
21220{
Brian Gaeke90583492003-11-10 03:06:28 +000021221hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021222 ;
21223 return 0;
21224}
21225_ACEOF
21226rm -f conftest.$ac_objext
21227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021228 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021229 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021230 grep -v '^ *+' conftest.er1 >conftest.err
21231 rm -f conftest.er1
21232 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21234 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021235 { ac_try='test -z "$ac_cxx_werror_flag"
21236 || test ! -s conftest.err'
21237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21238 (eval $ac_try) 2>&5
21239 ac_status=$?
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); }; } &&
21242 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21244 (eval $ac_try) 2>&5
21245 ac_status=$?
21246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21247 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021248 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021249else
21250 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021251sed 's/^/| /' conftest.$ac_ext >&5
21252
Brian Gaeke90583492003-11-10 03:06:28 +000021253ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021254fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021255rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021256 ac_ext=c
21257ac_cpp='$CPP $CPPFLAGS'
21258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21260ac_compiler_gnu=$ac_cv_c_compiler_gnu
21261
21262fi
21263echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21264echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021265 HAVE_STD_EXT_HASH_SET=0
21266 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21267 then
21268 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021269 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021270
Brian Gaeke90583492003-11-10 03:06:28 +000021271 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21272echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21273if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21274 echo $ECHO_N "(cached) $ECHO_C" >&6
21275else
21276
21277
21278
21279 ac_ext=cc
21280ac_cpp='$CXXCPP $CPPFLAGS'
21281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21284
John Criswell7a73b802003-06-30 21:59:07 +000021285 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021286/* confdefs.h. */
21287_ACEOF
21288cat confdefs.h >>conftest.$ac_ext
21289cat >>conftest.$ac_ext <<_ACEOF
21290/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021291#include <ext/hash_set>
21292#ifdef HAVE_NAMESPACES
21293using namespace __gnu_cxx;
21294#endif
John Criswell7a73b802003-06-30 21:59:07 +000021295int
21296main ()
21297{
Brian Gaeke90583492003-11-10 03:06:28 +000021298hash_set<int> t;
21299 ;
21300 return 0;
21301}
21302_ACEOF
21303rm -f conftest.$ac_objext
21304if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021305 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021306 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021307 grep -v '^ *+' conftest.er1 >conftest.err
21308 rm -f conftest.er1
21309 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21311 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021312 { ac_try='test -z "$ac_cxx_werror_flag"
21313 || test ! -s conftest.err'
21314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21315 (eval $ac_try) 2>&5
21316 ac_status=$?
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); }; } &&
21319 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21321 (eval $ac_try) 2>&5
21322 ac_status=$?
21323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21324 (exit $ac_status); }; }; then
21325 ac_cv_cxx_have_gnu_ext_hash_set=yes
21326else
21327 echo "$as_me: failed program was:" >&5
21328sed 's/^/| /' conftest.$ac_ext >&5
21329
21330ac_cv_cxx_have_gnu_ext_hash_set=no
21331fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021332rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021333 ac_ext=c
21334ac_cpp='$CPP $CPPFLAGS'
21335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21337ac_compiler_gnu=$ac_cv_c_compiler_gnu
21338
21339fi
21340echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21341echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021342 HAVE_GNU_EXT_HASH_SET=0
21343 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21344 then
21345 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021346 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021347
Brian Gaeke90583492003-11-10 03:06:28 +000021348 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21349echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21350if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21351 echo $ECHO_N "(cached) $ECHO_C" >&6
21352else
21353
21354
21355
21356 ac_ext=cc
21357ac_cpp='$CXXCPP $CPPFLAGS'
21358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21361
21362 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021363/* confdefs.h. */
21364_ACEOF
21365cat confdefs.h >>conftest.$ac_ext
21366cat >>conftest.$ac_ext <<_ACEOF
21367/* end confdefs.h. */
21368#include <hash_set>
21369int
21370main ()
21371{
John Criswell7a73b802003-06-30 21:59:07 +000021372hash_set<int> t; return 0;
21373 ;
21374 return 0;
21375}
21376_ACEOF
21377rm -f conftest.$ac_objext
21378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021379 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021380 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021381 grep -v '^ *+' conftest.er1 >conftest.err
21382 rm -f conftest.er1
21383 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21385 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021386 { ac_try='test -z "$ac_cxx_werror_flag"
21387 || test ! -s conftest.err'
21388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21389 (eval $ac_try) 2>&5
21390 ac_status=$?
21391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21392 (exit $ac_status); }; } &&
21393 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21395 (eval $ac_try) 2>&5
21396 ac_status=$?
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021399 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021400else
21401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021402sed 's/^/| /' conftest.$ac_ext >&5
21403
Brian Gaeke90583492003-11-10 03:06:28 +000021404ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021405fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021406rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021407 ac_ext=c
21408ac_cpp='$CPP $CPPFLAGS'
21409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21411ac_compiler_gnu=$ac_cv_c_compiler_gnu
21412
John Criswell7a73b802003-06-30 21:59:07 +000021413fi
Brian Gaeke90583492003-11-10 03:06:28 +000021414echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21415echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021416 HAVE_GLOBAL_HASH_SET=0
21417 if test "$ac_cv_cxx_have_global_hash_set" = yes
21418 then
21419 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021420 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021421
John Criswell7a73b802003-06-30 21:59:07 +000021422echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21423echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21424if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21426else
21427
21428
21429
21430 ac_ext=cc
21431ac_cpp='$CXXCPP $CPPFLAGS'
21432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21435
21436 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021437/* confdefs.h. */
21438_ACEOF
21439cat confdefs.h >>conftest.$ac_ext
21440cat >>conftest.$ac_ext <<_ACEOF
21441/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021442#include <iterator>
21443#ifdef HAVE_NAMESPACES
21444using namespace std;
21445#endif
John Criswell7a73b802003-06-30 21:59:07 +000021446int
21447main ()
21448{
21449iterator<int,int,int> t; return 0;
21450 ;
21451 return 0;
21452}
21453_ACEOF
21454rm -f conftest.$ac_objext
21455if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021456 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021457 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021458 grep -v '^ *+' conftest.er1 >conftest.err
21459 rm -f conftest.er1
21460 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21462 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021463 { ac_try='test -z "$ac_cxx_werror_flag"
21464 || test ! -s conftest.err'
21465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21466 (eval $ac_try) 2>&5
21467 ac_status=$?
21468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469 (exit $ac_status); }; } &&
21470 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21472 (eval $ac_try) 2>&5
21473 ac_status=$?
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); }; }; then
21476 ac_cv_cxx_have_std_iterator=yes
21477else
21478 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021479sed 's/^/| /' conftest.$ac_ext >&5
21480
John Criswell7a73b802003-06-30 21:59:07 +000021481ac_cv_cxx_have_std_iterator=no
21482fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021483rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021484 ac_ext=c
21485ac_cpp='$CPP $CPPFLAGS'
21486ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21487ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21488ac_compiler_gnu=$ac_cv_c_compiler_gnu
21489
21490
21491fi
21492echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21493echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021494HAVE_STD_ITERATOR=0
21495if test "$ac_cv_cxx_have_std_iterator" = yes
21496then
21497 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021498fi
21499
21500echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21501echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21502if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21503 echo $ECHO_N "(cached) $ECHO_C" >&6
21504else
21505
21506
21507
21508 ac_ext=cc
21509ac_cpp='$CXXCPP $CPPFLAGS'
21510ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21511ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21512ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21513
21514 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021515/* confdefs.h. */
21516_ACEOF
21517cat confdefs.h >>conftest.$ac_ext
21518cat >>conftest.$ac_ext <<_ACEOF
21519/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021520#include <iterator>
21521#ifdef HAVE_NAMESPACES
21522using namespace std;
21523#endif
John Criswell7a73b802003-06-30 21:59:07 +000021524int
21525main ()
21526{
John Criswellc78022e2003-07-29 19:11:58 +000021527bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021528 ;
21529 return 0;
21530}
21531_ACEOF
21532rm -f conftest.$ac_objext
21533if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021534 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021535 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021536 grep -v '^ *+' conftest.er1 >conftest.err
21537 rm -f conftest.er1
21538 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21540 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021541 { ac_try='test -z "$ac_cxx_werror_flag"
21542 || test ! -s conftest.err'
21543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21544 (eval $ac_try) 2>&5
21545 ac_status=$?
21546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21547 (exit $ac_status); }; } &&
21548 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21550 (eval $ac_try) 2>&5
21551 ac_status=$?
21552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); }; }; then
21554 ac_cv_cxx_have_bi_iterator=yes
21555else
21556 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021557sed 's/^/| /' conftest.$ac_ext >&5
21558
John Criswell7a73b802003-06-30 21:59:07 +000021559ac_cv_cxx_have_bi_iterator=no
21560fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021561rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021562 ac_ext=c
21563ac_cpp='$CPP $CPPFLAGS'
21564ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21565ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21566ac_compiler_gnu=$ac_cv_c_compiler_gnu
21567
21568
21569fi
21570echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21571echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021572HAVE_BI_ITERATOR=0
21573if test "$ac_cv_cxx_have_bi_iterator" = yes
21574then
21575 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021576fi
21577
21578echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21579echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21580if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21581 echo $ECHO_N "(cached) $ECHO_C" >&6
21582else
21583
21584
21585
21586 ac_ext=cc
21587ac_cpp='$CXXCPP $CPPFLAGS'
21588ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21589ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21590ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21591
21592 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021593/* confdefs.h. */
21594_ACEOF
21595cat confdefs.h >>conftest.$ac_ext
21596cat >>conftest.$ac_ext <<_ACEOF
21597/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021598#include <iterator>
21599#ifdef HAVE_NAMESPACES
21600using namespace std;
21601#endif
John Criswell7a73b802003-06-30 21:59:07 +000021602int
21603main ()
21604{
John Criswellc78022e2003-07-29 19:11:58 +000021605forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021606 ;
21607 return 0;
21608}
21609_ACEOF
21610rm -f conftest.$ac_objext
21611if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021612 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021613 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021614 grep -v '^ *+' conftest.er1 >conftest.err
21615 rm -f conftest.er1
21616 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21618 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021619 { ac_try='test -z "$ac_cxx_werror_flag"
21620 || test ! -s conftest.err'
21621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21622 (eval $ac_try) 2>&5
21623 ac_status=$?
21624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625 (exit $ac_status); }; } &&
21626 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21628 (eval $ac_try) 2>&5
21629 ac_status=$?
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); }; }; then
21632 ac_cv_cxx_have_fwd_iterator=yes
21633else
21634 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021635sed 's/^/| /' conftest.$ac_ext >&5
21636
John Criswell7a73b802003-06-30 21:59:07 +000021637ac_cv_cxx_have_fwd_iterator=no
21638fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021639rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021640 ac_ext=c
21641ac_cpp='$CPP $CPPFLAGS'
21642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21644ac_compiler_gnu=$ac_cv_c_compiler_gnu
21645
21646
21647fi
21648echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21649echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021650HAVE_FWD_ITERATOR=0
21651if test "$ac_cv_cxx_have_fwd_iterator" = yes
21652then
21653 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021654fi
21655
21656
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021657
21658echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21659echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21660if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21661 echo $ECHO_N "(cached) $ECHO_C" >&6
21662else
21663 ac_ext=cc
21664ac_cpp='$CXXCPP $CPPFLAGS'
21665ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21666ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21667ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21668
21669 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021670/* confdefs.h. */
21671_ACEOF
21672cat confdefs.h >>conftest.$ac_ext
21673cat >>conftest.$ac_ext <<_ACEOF
21674/* end confdefs.h. */
21675#include <math.h>
21676 int foo(float f) {return isnan(f);}
21677_ACEOF
21678rm -f conftest.$ac_objext
21679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021680 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021681 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021682 grep -v '^ *+' conftest.er1 >conftest.err
21683 rm -f conftest.er1
21684 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021687 { ac_try='test -z "$ac_cxx_werror_flag"
21688 || test ! -s conftest.err'
21689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690 (eval $ac_try) 2>&5
21691 ac_status=$?
21692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693 (exit $ac_status); }; } &&
21694 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696 (eval $ac_try) 2>&5
21697 ac_status=$?
21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699 (exit $ac_status); }; }; then
21700 ac_cv_func_isnan_in_math_h=yes
21701else
21702 echo "$as_me: failed program was:" >&5
21703sed 's/^/| /' conftest.$ac_ext >&5
21704
21705ac_cv_func_isnan_in_math_h=no
21706fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021707rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021708 ac_ext=c
21709ac_cpp='$CPP $CPPFLAGS'
21710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21712ac_compiler_gnu=$ac_cv_c_compiler_gnu
21713
21714fi
21715echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21716echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21717 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21718 then
21719
21720cat >>confdefs.h <<\_ACEOF
21721#define HAVE_ISNAN_IN_MATH_H 1
21722_ACEOF
21723
21724 fi
21725echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21726echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21727if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21728 echo $ECHO_N "(cached) $ECHO_C" >&6
21729else
21730 ac_ext=cc
21731ac_cpp='$CXXCPP $CPPFLAGS'
21732ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21733ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21734ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21735
21736 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021737/* confdefs.h. */
21738_ACEOF
21739cat confdefs.h >>conftest.$ac_ext
21740cat >>conftest.$ac_ext <<_ACEOF
21741/* end confdefs.h. */
21742#include <cmath>
21743 int foo(float f) {return isnan(f);}
21744_ACEOF
21745rm -f conftest.$ac_objext
21746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021747 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021748 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021749 grep -v '^ *+' conftest.er1 >conftest.err
21750 rm -f conftest.er1
21751 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21753 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021754 { ac_try='test -z "$ac_cxx_werror_flag"
21755 || test ! -s conftest.err'
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21758 ac_status=$?
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; } &&
21761 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21763 (eval $ac_try) 2>&5
21764 ac_status=$?
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); }; }; then
21767 ac_cv_func_isnan_in_cmath=yes
21768else
21769 echo "$as_me: failed program was:" >&5
21770sed 's/^/| /' conftest.$ac_ext >&5
21771
21772ac_cv_func_isnan_in_cmath=no
21773fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021775 ac_ext=c
21776ac_cpp='$CPP $CPPFLAGS'
21777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21779ac_compiler_gnu=$ac_cv_c_compiler_gnu
21780
21781fi
21782echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21783echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21784 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21785 then
21786
21787cat >>confdefs.h <<\_ACEOF
21788#define HAVE_ISNAN_IN_CMATH 1
21789_ACEOF
21790
21791 fi
21792echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21793echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21794if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21796else
21797 ac_ext=cc
21798ac_cpp='$CXXCPP $CPPFLAGS'
21799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21802
21803 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021804/* confdefs.h. */
21805_ACEOF
21806cat confdefs.h >>conftest.$ac_ext
21807cat >>conftest.$ac_ext <<_ACEOF
21808/* end confdefs.h. */
21809#include <cmath>
21810 using std::isnan; int foo(float f) {return isnan(f);}
21811_ACEOF
21812rm -f conftest.$ac_objext
21813if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021814 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021815 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021816 grep -v '^ *+' conftest.er1 >conftest.err
21817 rm -f conftest.er1
21818 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21820 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021821 { ac_try='test -z "$ac_cxx_werror_flag"
21822 || test ! -s conftest.err'
21823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21824 (eval $ac_try) 2>&5
21825 ac_status=$?
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); }; } &&
21828 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21830 (eval $ac_try) 2>&5
21831 ac_status=$?
21832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21833 (exit $ac_status); }; }; then
21834 ac_cv_func_std_isnan_in_cmath=yes
21835else
21836 echo "$as_me: failed program was:" >&5
21837sed 's/^/| /' conftest.$ac_ext >&5
21838
21839ac_cv_func_std_isnan_in_cmath=no
21840fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021841rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021842 ac_ext=c
21843ac_cpp='$CPP $CPPFLAGS'
21844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21846ac_compiler_gnu=$ac_cv_c_compiler_gnu
21847
21848fi
21849echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21850echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21851 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21852 then
21853
21854cat >>confdefs.h <<\_ACEOF
21855#define HAVE_STD_ISNAN_IN_CMATH 1
21856_ACEOF
21857
21858 fi
21859
21860
Brian Gaeke52a551d2004-07-21 03:14:12 +000021861echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21862echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21863if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21864 echo $ECHO_N "(cached) $ECHO_C" >&6
21865else
21866 ac_ext=cc
21867ac_cpp='$CXXCPP $CPPFLAGS'
21868ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21869ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21870ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21871
21872 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021873/* confdefs.h. */
21874_ACEOF
21875cat confdefs.h >>conftest.$ac_ext
21876cat >>conftest.$ac_ext <<_ACEOF
21877/* end confdefs.h. */
21878#include <math.h>
21879 int foo(float f) {return isinf(f);}
21880_ACEOF
21881rm -f conftest.$ac_objext
21882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021883 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000021884 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021885 grep -v '^ *+' conftest.er1 >conftest.err
21886 rm -f conftest.er1
21887 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21889 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021890 { ac_try='test -z "$ac_cxx_werror_flag"
21891 || test ! -s conftest.err'
21892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21893 (eval $ac_try) 2>&5
21894 ac_status=$?
21895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21896 (exit $ac_status); }; } &&
21897 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000021898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21899 (eval $ac_try) 2>&5
21900 ac_status=$?
21901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902 (exit $ac_status); }; }; then
21903 ac_cv_func_isinf_in_math_h=yes
21904else
21905 echo "$as_me: failed program was:" >&5
21906sed 's/^/| /' conftest.$ac_ext >&5
21907
21908ac_cv_func_isinf_in_math_h=no
21909fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021910rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000021911 ac_ext=c
21912ac_cpp='$CPP $CPPFLAGS'
21913ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21914ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21915ac_compiler_gnu=$ac_cv_c_compiler_gnu
21916
21917fi
21918echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21919echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21920 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21921 then
21922
21923cat >>confdefs.h <<\_ACEOF
21924#define HAVE_ISINF_IN_MATH_H 1
21925_ACEOF
21926
21927 fi
21928echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21929echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21930if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21931 echo $ECHO_N "(cached) $ECHO_C" >&6
21932else
21933 ac_ext=cc
21934ac_cpp='$CXXCPP $CPPFLAGS'
21935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21938
21939 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021940/* confdefs.h. */
21941_ACEOF
21942cat confdefs.h >>conftest.$ac_ext
21943cat >>conftest.$ac_ext <<_ACEOF
21944/* end confdefs.h. */
21945#include <cmath>
21946 int foo(float f) {return isinf(f);}
21947_ACEOF
21948rm -f conftest.$ac_objext
21949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000021950 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000021951 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000021952 grep -v '^ *+' conftest.er1 >conftest.err
21953 rm -f conftest.er1
21954 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000021957 { ac_try='test -z "$ac_cxx_werror_flag"
21958 || test ! -s conftest.err'
21959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21960 (eval $ac_try) 2>&5
21961 ac_status=$?
21962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21963 (exit $ac_status); }; } &&
21964 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000021965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21966 (eval $ac_try) 2>&5
21967 ac_status=$?
21968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21969 (exit $ac_status); }; }; then
21970 ac_cv_func_isinf_in_cmath=yes
21971else
21972 echo "$as_me: failed program was:" >&5
21973sed 's/^/| /' conftest.$ac_ext >&5
21974
21975ac_cv_func_isinf_in_cmath=no
21976fi
Reid Spencer2b51a082004-08-04 00:34:49 +000021977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000021978 ac_ext=c
21979ac_cpp='$CPP $CPPFLAGS'
21980ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21981ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21982ac_compiler_gnu=$ac_cv_c_compiler_gnu
21983
21984fi
21985echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21986echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21987 if test "$ac_cv_func_isinf_in_cmath" = "yes"
21988 then
21989
21990cat >>confdefs.h <<\_ACEOF
21991#define HAVE_ISINF_IN_CMATH 1
21992_ACEOF
21993
21994 fi
21995echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21996echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21997if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21998 echo $ECHO_N "(cached) $ECHO_C" >&6
21999else
22000 ac_ext=cc
22001ac_cpp='$CXXCPP $CPPFLAGS'
22002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22005
22006 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022007/* confdefs.h. */
22008_ACEOF
22009cat confdefs.h >>conftest.$ac_ext
22010cat >>conftest.$ac_ext <<_ACEOF
22011/* end confdefs.h. */
22012#include <cmath>
22013 using std::isinf; int foo(float f) {return isinf(f);}
22014_ACEOF
22015rm -f conftest.$ac_objext
22016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022017 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022018 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022019 grep -v '^ *+' conftest.er1 >conftest.err
22020 rm -f conftest.er1
22021 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22023 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022024 { ac_try='test -z "$ac_cxx_werror_flag"
22025 || test ! -s conftest.err'
22026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22027 (eval $ac_try) 2>&5
22028 ac_status=$?
22029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030 (exit $ac_status); }; } &&
22031 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22033 (eval $ac_try) 2>&5
22034 ac_status=$?
22035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22036 (exit $ac_status); }; }; then
22037 ac_cv_func_std_isinf_in_cmath=yes
22038else
22039 echo "$as_me: failed program was:" >&5
22040sed 's/^/| /' conftest.$ac_ext >&5
22041
22042ac_cv_func_std_isinf_in_cmath=no
22043fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022045 ac_ext=c
22046ac_cpp='$CPP $CPPFLAGS'
22047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22049ac_compiler_gnu=$ac_cv_c_compiler_gnu
22050
22051fi
22052echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22053echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22054 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22055 then
22056
22057cat >>confdefs.h <<\_ACEOF
22058#define HAVE_STD_ISINF_IN_CMATH 1
22059_ACEOF
22060
22061 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000022062echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22063echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22064if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22065 echo $ECHO_N "(cached) $ECHO_C" >&6
22066else
22067 ac_ext=cc
22068ac_cpp='$CXXCPP $CPPFLAGS'
22069ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22070ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22071ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22072
22073 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000022074/* confdefs.h. */
22075_ACEOF
22076cat confdefs.h >>conftest.$ac_ext
22077cat >>conftest.$ac_ext <<_ACEOF
22078/* end confdefs.h. */
22079#include <ieeefp.h>
22080 int foo(float f) {return finite(f);}
22081_ACEOF
22082rm -f conftest.$ac_objext
22083if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022084 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000022085 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022086 grep -v '^ *+' conftest.er1 >conftest.err
22087 rm -f conftest.er1
22088 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000022089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022091 { ac_try='test -z "$ac_cxx_werror_flag"
22092 || test ! -s conftest.err'
22093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22094 (eval $ac_try) 2>&5
22095 ac_status=$?
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); }; } &&
22098 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000022099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100 (eval $ac_try) 2>&5
22101 ac_status=$?
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; }; then
22104 ac_cv_func_finite_in_ieeefp_h=yes
22105else
22106 echo "$as_me: failed program was:" >&5
22107sed 's/^/| /' conftest.$ac_ext >&5
22108
22109ac_cv_func_finite_in_ieeefp_h=no
22110fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022111rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeked59a6472004-07-21 03:33:58 +000022112 ac_ext=c
22113ac_cpp='$CPP $CPPFLAGS'
22114ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22115ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22116ac_compiler_gnu=$ac_cv_c_compiler_gnu
22117
22118fi
22119echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22120echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22121 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22122 then
22123
22124cat >>confdefs.h <<\_ACEOF
22125#define HAVE_FINITE_IN_IEEEFP_H 1
22126_ACEOF
22127
22128 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000022129
22130
John Criswell7a73b802003-06-30 21:59:07 +000022131# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22132# for constant arguments. Useless!
22133echo "$as_me:$LINENO: checking for working alloca.h" >&5
22134echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22135if test "${ac_cv_working_alloca_h+set}" = set; then
22136 echo $ECHO_N "(cached) $ECHO_C" >&6
22137else
22138 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022139/* confdefs.h. */
22140_ACEOF
22141cat confdefs.h >>conftest.$ac_ext
22142cat >>conftest.$ac_ext <<_ACEOF
22143/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022144#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000022145int
22146main ()
22147{
22148char *p = (char *) alloca (2 * sizeof (int));
22149 ;
22150 return 0;
22151}
22152_ACEOF
22153rm -f conftest.$ac_objext conftest$ac_exeext
22154if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022155 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022156 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022157 grep -v '^ *+' conftest.er1 >conftest.err
22158 rm -f conftest.er1
22159 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022162 { ac_try='test -z "$ac_c_werror_flag"
22163 || test ! -s conftest.err'
22164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22165 (eval $ac_try) 2>&5
22166 ac_status=$?
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); }; } &&
22169 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22171 (eval $ac_try) 2>&5
22172 ac_status=$?
22173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174 (exit $ac_status); }; }; then
22175 ac_cv_working_alloca_h=yes
22176else
22177 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022178sed 's/^/| /' conftest.$ac_ext >&5
22179
John Criswell7a73b802003-06-30 21:59:07 +000022180ac_cv_working_alloca_h=no
22181fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022182rm -f conftest.err conftest.$ac_objext \
22183 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022184fi
22185echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22186echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22187if test $ac_cv_working_alloca_h = yes; then
22188
22189cat >>confdefs.h <<\_ACEOF
22190#define HAVE_ALLOCA_H 1
22191_ACEOF
22192
22193fi
22194
22195echo "$as_me:$LINENO: checking for alloca" >&5
22196echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22197if test "${ac_cv_func_alloca_works+set}" = set; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
22199else
22200 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022201/* confdefs.h. */
22202_ACEOF
22203cat confdefs.h >>conftest.$ac_ext
22204cat >>conftest.$ac_ext <<_ACEOF
22205/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022206#ifdef __GNUC__
22207# define alloca __builtin_alloca
22208#else
22209# ifdef _MSC_VER
22210# include <malloc.h>
22211# define alloca _alloca
22212# else
22213# if HAVE_ALLOCA_H
22214# include <alloca.h>
22215# else
22216# ifdef _AIX
22217 #pragma alloca
22218# else
22219# ifndef alloca /* predefined by HP cc +Olibcalls */
22220char *alloca ();
22221# endif
22222# endif
22223# endif
22224# endif
22225#endif
22226
John Criswell7a73b802003-06-30 21:59:07 +000022227int
22228main ()
22229{
22230char *p = (char *) alloca (1);
22231 ;
22232 return 0;
22233}
22234_ACEOF
22235rm -f conftest.$ac_objext conftest$ac_exeext
22236if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022237 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022238 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022239 grep -v '^ *+' conftest.er1 >conftest.err
22240 rm -f conftest.er1
22241 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022244 { ac_try='test -z "$ac_c_werror_flag"
22245 || test ! -s conftest.err'
22246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22247 (eval $ac_try) 2>&5
22248 ac_status=$?
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); }; } &&
22251 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22253 (eval $ac_try) 2>&5
22254 ac_status=$?
22255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22256 (exit $ac_status); }; }; then
22257 ac_cv_func_alloca_works=yes
22258else
22259 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022260sed 's/^/| /' conftest.$ac_ext >&5
22261
John Criswell7a73b802003-06-30 21:59:07 +000022262ac_cv_func_alloca_works=no
22263fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022264rm -f conftest.err conftest.$ac_objext \
22265 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022266fi
22267echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22268echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22269
22270if test $ac_cv_func_alloca_works = yes; then
22271
22272cat >>confdefs.h <<\_ACEOF
22273#define HAVE_ALLOCA 1
22274_ACEOF
22275
22276else
22277 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22278# that cause trouble. Some versions do not even contain alloca or
22279# contain a buggy version. If you still want to use their alloca,
22280# use ar to extract alloca.o from them instead of compiling alloca.c.
22281
22282ALLOCA=alloca.$ac_objext
22283
22284cat >>confdefs.h <<\_ACEOF
22285#define C_ALLOCA 1
22286_ACEOF
22287
22288
22289echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22290echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22291if test "${ac_cv_os_cray+set}" = set; then
22292 echo $ECHO_N "(cached) $ECHO_C" >&6
22293else
22294 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022295/* confdefs.h. */
22296_ACEOF
22297cat confdefs.h >>conftest.$ac_ext
22298cat >>conftest.$ac_ext <<_ACEOF
22299/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022300#if defined(CRAY) && ! defined(CRAY2)
22301webecray
22302#else
22303wenotbecray
22304#endif
22305
22306_ACEOF
22307if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000022308 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022309 ac_cv_os_cray=yes
22310else
22311 ac_cv_os_cray=no
22312fi
22313rm -f conftest*
22314
22315fi
22316echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22317echo "${ECHO_T}$ac_cv_os_cray" >&6
22318if test $ac_cv_os_cray = yes; then
22319 for ac_func in _getb67 GETB67 getb67; do
22320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22321echo "$as_me:$LINENO: checking for $ac_func" >&5
22322echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22323if eval "test \"\${$as_ac_var+set}\" = set"; then
22324 echo $ECHO_N "(cached) $ECHO_C" >&6
22325else
22326 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022327/* confdefs.h. */
22328_ACEOF
22329cat confdefs.h >>conftest.$ac_ext
22330cat >>conftest.$ac_ext <<_ACEOF
22331/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022332/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22334#define $ac_func innocuous_$ac_func
22335
John Criswell7a73b802003-06-30 21:59:07 +000022336/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022337 which can conflict with char $ac_func (); below.
22338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22339 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022340
John Criswell0c38eaf2003-09-10 15:17:25 +000022341#ifdef __STDC__
22342# include <limits.h>
22343#else
22344# include <assert.h>
22345#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000022346
22347#undef $ac_func
22348
John Criswell7a73b802003-06-30 21:59:07 +000022349/* Override any gcc2 internal prototype to avoid an error. */
22350#ifdef __cplusplus
22351extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022352{
John Criswell7a73b802003-06-30 21:59:07 +000022353#endif
22354/* We use char because int might match the return type of a gcc2
22355 builtin and then its argument prototype would still apply. */
22356char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022357/* The GNU C library defines this for functions which it implements
22358 to always fail with ENOSYS. Some functions are actually named
22359 something starting with __ and the normal name is an alias. */
22360#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22361choke me
22362#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022363char (*f) () = $ac_func;
22364#endif
22365#ifdef __cplusplus
22366}
John Criswell7a73b802003-06-30 21:59:07 +000022367#endif
22368
John Criswell0c38eaf2003-09-10 15:17:25 +000022369int
22370main ()
22371{
22372return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022373 ;
22374 return 0;
22375}
22376_ACEOF
22377rm -f conftest.$ac_objext conftest$ac_exeext
22378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022379 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022380 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022381 grep -v '^ *+' conftest.er1 >conftest.err
22382 rm -f conftest.er1
22383 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22385 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022386 { ac_try='test -z "$ac_c_werror_flag"
22387 || test ! -s conftest.err'
22388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22389 (eval $ac_try) 2>&5
22390 ac_status=$?
22391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22392 (exit $ac_status); }; } &&
22393 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22395 (eval $ac_try) 2>&5
22396 ac_status=$?
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); }; }; then
22399 eval "$as_ac_var=yes"
22400else
22401 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022402sed 's/^/| /' conftest.$ac_ext >&5
22403
John Criswell7a73b802003-06-30 21:59:07 +000022404eval "$as_ac_var=no"
22405fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022406rm -f conftest.err conftest.$ac_objext \
22407 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022408fi
22409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22410echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22411if test `eval echo '${'$as_ac_var'}'` = yes; then
22412
22413cat >>confdefs.h <<_ACEOF
22414#define CRAY_STACKSEG_END $ac_func
22415_ACEOF
22416
22417 break
22418fi
22419
22420 done
22421fi
22422
22423echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22424echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22425if test "${ac_cv_c_stack_direction+set}" = set; then
22426 echo $ECHO_N "(cached) $ECHO_C" >&6
22427else
22428 if test "$cross_compiling" = yes; then
22429 ac_cv_c_stack_direction=0
22430else
22431 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022432/* confdefs.h. */
22433_ACEOF
22434cat confdefs.h >>conftest.$ac_ext
22435cat >>conftest.$ac_ext <<_ACEOF
22436/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022437int
22438find_stack_direction ()
22439{
22440 static char *addr = 0;
22441 auto char dummy;
22442 if (addr == 0)
22443 {
22444 addr = &dummy;
22445 return find_stack_direction ();
22446 }
22447 else
22448 return (&dummy > addr) ? 1 : -1;
22449}
22450
22451int
22452main ()
22453{
22454 exit (find_stack_direction () < 0);
22455}
22456_ACEOF
22457rm -f conftest$ac_exeext
22458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22459 (eval $ac_link) 2>&5
22460 ac_status=$?
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22463 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22464 (eval $ac_try) 2>&5
22465 ac_status=$?
22466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22467 (exit $ac_status); }; }; then
22468 ac_cv_c_stack_direction=1
22469else
22470 echo "$as_me: program exited with status $ac_status" >&5
22471echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022472sed 's/^/| /' conftest.$ac_ext >&5
22473
John Criswell7a73b802003-06-30 21:59:07 +000022474( exit $ac_status )
22475ac_cv_c_stack_direction=-1
22476fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022477rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022478fi
22479fi
22480echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22481echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22482
22483cat >>confdefs.h <<_ACEOF
22484#define STACK_DIRECTION $ac_cv_c_stack_direction
22485_ACEOF
22486
22487
22488fi
22489
John Criswell7a73b802003-06-30 21:59:07 +000022490
22491
22492for ac_header in stdlib.h unistd.h
22493do
22494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22495if eval "test \"\${$as_ac_Header+set}\" = set"; then
22496 echo "$as_me:$LINENO: checking for $ac_header" >&5
22497echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22498if eval "test \"\${$as_ac_Header+set}\" = set"; then
22499 echo $ECHO_N "(cached) $ECHO_C" >&6
22500fi
22501echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22502echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22503else
22504 # Is the header compilable?
22505echo "$as_me:$LINENO: checking $ac_header usability" >&5
22506echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22507cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022508/* confdefs.h. */
22509_ACEOF
22510cat confdefs.h >>conftest.$ac_ext
22511cat >>conftest.$ac_ext <<_ACEOF
22512/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022513$ac_includes_default
22514#include <$ac_header>
22515_ACEOF
22516rm -f conftest.$ac_objext
22517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022518 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022519 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022520 grep -v '^ *+' conftest.er1 >conftest.err
22521 rm -f conftest.er1
22522 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022525 { ac_try='test -z "$ac_c_werror_flag"
22526 || test ! -s conftest.err'
22527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22528 (eval $ac_try) 2>&5
22529 ac_status=$?
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); }; } &&
22532 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22535 ac_status=$?
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; }; then
22538 ac_header_compiler=yes
22539else
22540 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022541sed 's/^/| /' conftest.$ac_ext >&5
22542
John Criswell7a73b802003-06-30 21:59:07 +000022543ac_header_compiler=no
22544fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022546echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22547echo "${ECHO_T}$ac_header_compiler" >&6
22548
22549# Is the header present?
22550echo "$as_me:$LINENO: checking $ac_header presence" >&5
22551echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22552cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022553/* confdefs.h. */
22554_ACEOF
22555cat confdefs.h >>conftest.$ac_ext
22556cat >>conftest.$ac_ext <<_ACEOF
22557/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022558#include <$ac_header>
22559_ACEOF
22560if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22561 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22562 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000022563 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000022564 rm -f conftest.er1
22565 cat conftest.err >&5
22566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22567 (exit $ac_status); } >/dev/null; then
22568 if test -s conftest.err; then
22569 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer2b51a082004-08-04 00:34:49 +000022570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000022571 else
22572 ac_cpp_err=
22573 fi
22574else
22575 ac_cpp_err=yes
22576fi
22577if test -z "$ac_cpp_err"; then
22578 ac_header_preproc=yes
22579else
22580 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022581sed 's/^/| /' conftest.$ac_ext >&5
22582
John Criswell7a73b802003-06-30 21:59:07 +000022583 ac_header_preproc=no
22584fi
22585rm -f conftest.err conftest.$ac_ext
22586echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22587echo "${ECHO_T}$ac_header_preproc" >&6
22588
22589# So? What about this header?
Reid Spencer2b51a082004-08-04 00:34:49 +000022590case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22591 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000022592 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22593echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000022594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22595echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22596 ac_header_preproc=yes
John Criswell0c38eaf2003-09-10 15:17:25 +000022597 ;;
Reid Spencer2b51a082004-08-04 00:34:49 +000022598 no:yes:* )
John Criswell7a73b802003-06-30 21:59:07 +000022599 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22600echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000022601 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22602echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22603 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22604echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22605 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22606echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022608echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer2b51a082004-08-04 00:34:49 +000022609 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22610echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell0c38eaf2003-09-10 15:17:25 +000022611 (
22612 cat <<\_ASBOX
Reid Spencer2b51a082004-08-04 00:34:49 +000022613## ----------------------------------- ##
22614## Report this to llvmbugs@cs.uiuc.edu ##
22615## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000022616_ASBOX
22617 ) |
22618 sed "s/^/$as_me: WARNING: /" >&2
22619 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022620esac
22621echo "$as_me:$LINENO: checking for $ac_header" >&5
22622echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22623if eval "test \"\${$as_ac_Header+set}\" = set"; then
22624 echo $ECHO_N "(cached) $ECHO_C" >&6
22625else
Reid Spencer2b51a082004-08-04 00:34:49 +000022626 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000022627fi
22628echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22629echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22630
22631fi
22632if test `eval echo '${'$as_ac_Header'}'` = yes; then
22633 cat >>confdefs.h <<_ACEOF
22634#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22635_ACEOF
22636
22637fi
22638
22639done
22640
22641
22642for ac_func in getpagesize
22643do
22644as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22645echo "$as_me:$LINENO: checking for $ac_func" >&5
22646echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22647if eval "test \"\${$as_ac_var+set}\" = set"; then
22648 echo $ECHO_N "(cached) $ECHO_C" >&6
22649else
22650 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022651/* confdefs.h. */
22652_ACEOF
22653cat confdefs.h >>conftest.$ac_ext
22654cat >>conftest.$ac_ext <<_ACEOF
22655/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022656/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22657 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22658#define $ac_func innocuous_$ac_func
22659
John Criswell7a73b802003-06-30 21:59:07 +000022660/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022661 which can conflict with char $ac_func (); below.
22662 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22663 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000022664
John Criswell0c38eaf2003-09-10 15:17:25 +000022665#ifdef __STDC__
22666# include <limits.h>
22667#else
22668# include <assert.h>
22669#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000022670
22671#undef $ac_func
22672
John Criswell7a73b802003-06-30 21:59:07 +000022673/* Override any gcc2 internal prototype to avoid an error. */
22674#ifdef __cplusplus
22675extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022676{
John Criswell7a73b802003-06-30 21:59:07 +000022677#endif
22678/* We use char because int might match the return type of a gcc2
22679 builtin and then its argument prototype would still apply. */
22680char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022681/* The GNU C library defines this for functions which it implements
22682 to always fail with ENOSYS. Some functions are actually named
22683 something starting with __ and the normal name is an alias. */
22684#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22685choke me
22686#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022687char (*f) () = $ac_func;
22688#endif
22689#ifdef __cplusplus
22690}
John Criswell7a73b802003-06-30 21:59:07 +000022691#endif
22692
John Criswell0c38eaf2003-09-10 15:17:25 +000022693int
22694main ()
22695{
22696return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022697 ;
22698 return 0;
22699}
22700_ACEOF
22701rm -f conftest.$ac_objext conftest$ac_exeext
22702if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000022703 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022704 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000022705 grep -v '^ *+' conftest.er1 >conftest.err
22706 rm -f conftest.er1
22707 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000022710 { ac_try='test -z "$ac_c_werror_flag"
22711 || test ! -s conftest.err'
22712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22713 (eval $ac_try) 2>&5
22714 ac_status=$?
22715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22716 (exit $ac_status); }; } &&
22717 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22719 (eval $ac_try) 2>&5
22720 ac_status=$?
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); }; }; then
22723 eval "$as_ac_var=yes"
22724else
22725 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022726sed 's/^/| /' conftest.$ac_ext >&5
22727
John Criswell7a73b802003-06-30 21:59:07 +000022728eval "$as_ac_var=no"
22729fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022730rm -f conftest.err conftest.$ac_objext \
22731 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022732fi
22733echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22734echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22735if test `eval echo '${'$as_ac_var'}'` = yes; then
22736 cat >>confdefs.h <<_ACEOF
22737#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22738_ACEOF
22739
22740fi
22741done
22742
22743echo "$as_me:$LINENO: checking for working mmap" >&5
22744echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22745if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22746 echo $ECHO_N "(cached) $ECHO_C" >&6
22747else
22748 if test "$cross_compiling" = yes; then
22749 ac_cv_func_mmap_fixed_mapped=no
22750else
22751 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022752/* confdefs.h. */
22753_ACEOF
22754cat confdefs.h >>conftest.$ac_ext
22755cat >>conftest.$ac_ext <<_ACEOF
22756/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022757$ac_includes_default
22758/* malloc might have been renamed as rpl_malloc. */
22759#undef malloc
22760
22761/* Thanks to Mike Haertel and Jim Avera for this test.
22762 Here is a matrix of mmap possibilities:
22763 mmap private not fixed
22764 mmap private fixed at somewhere currently unmapped
22765 mmap private fixed at somewhere already mapped
22766 mmap shared not fixed
22767 mmap shared fixed at somewhere currently unmapped
22768 mmap shared fixed at somewhere already mapped
22769 For private mappings, we should verify that changes cannot be read()
22770 back from the file, nor mmap's back from the file at a different
22771 address. (There have been systems where private was not correctly
22772 implemented like the infamous i386 svr4.0, and systems where the
22773 VM page cache was not coherent with the file system buffer cache
22774 like early versions of FreeBSD and possibly contemporary NetBSD.)
22775 For shared mappings, we should conversely verify that changes get
22776 propagated back to all the places they're supposed to be.
22777
22778 Grep wants private fixed already mapped.
22779 The main things grep needs to know about mmap are:
22780 * does it exist and is it safe to write into the mmap'd area
22781 * how to use it (BSD variants) */
22782
22783#include <fcntl.h>
22784#include <sys/mman.h>
22785
22786#if !STDC_HEADERS && !HAVE_STDLIB_H
22787char *malloc ();
22788#endif
22789
22790/* This mess was copied from the GNU getpagesize.h. */
22791#if !HAVE_GETPAGESIZE
22792/* Assume that all systems that can run configure have sys/param.h. */
22793# if !HAVE_SYS_PARAM_H
22794# define HAVE_SYS_PARAM_H 1
22795# endif
22796
22797# ifdef _SC_PAGESIZE
22798# define getpagesize() sysconf(_SC_PAGESIZE)
22799# else /* no _SC_PAGESIZE */
22800# if HAVE_SYS_PARAM_H
22801# include <sys/param.h>
22802# ifdef EXEC_PAGESIZE
22803# define getpagesize() EXEC_PAGESIZE
22804# else /* no EXEC_PAGESIZE */
22805# ifdef NBPG
22806# define getpagesize() NBPG * CLSIZE
22807# ifndef CLSIZE
22808# define CLSIZE 1
22809# endif /* no CLSIZE */
22810# else /* no NBPG */
22811# ifdef NBPC
22812# define getpagesize() NBPC
22813# else /* no NBPC */
22814# ifdef PAGESIZE
22815# define getpagesize() PAGESIZE
22816# endif /* PAGESIZE */
22817# endif /* no NBPC */
22818# endif /* no NBPG */
22819# endif /* no EXEC_PAGESIZE */
22820# else /* no HAVE_SYS_PARAM_H */
22821# define getpagesize() 8192 /* punt totally */
22822# endif /* no HAVE_SYS_PARAM_H */
22823# endif /* no _SC_PAGESIZE */
22824
22825#endif /* no HAVE_GETPAGESIZE */
22826
22827int
22828main ()
22829{
22830 char *data, *data2, *data3;
22831 int i, pagesize;
22832 int fd;
22833
22834 pagesize = getpagesize ();
22835
22836 /* First, make a file with some known garbage in it. */
22837 data = (char *) malloc (pagesize);
22838 if (!data)
22839 exit (1);
22840 for (i = 0; i < pagesize; ++i)
22841 *(data + i) = rand ();
22842 umask (0);
22843 fd = creat ("conftest.mmap", 0600);
22844 if (fd < 0)
22845 exit (1);
22846 if (write (fd, data, pagesize) != pagesize)
22847 exit (1);
22848 close (fd);
22849
22850 /* Next, try to mmap the file at a fixed address which already has
22851 something else allocated at it. If we can, also make sure that
22852 we see the same garbage. */
22853 fd = open ("conftest.mmap", O_RDWR);
22854 if (fd < 0)
22855 exit (1);
22856 data2 = (char *) malloc (2 * pagesize);
22857 if (!data2)
22858 exit (1);
Reid Spencer2b51a082004-08-04 00:34:49 +000022859 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000022860 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer2b51a082004-08-04 00:34:49 +000022861 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000022862 exit (1);
22863 for (i = 0; i < pagesize; ++i)
22864 if (*(data + i) != *(data2 + i))
22865 exit (1);
22866
22867 /* Finally, make sure that changes to the mapped area do not
22868 percolate back to the file as seen by read(). (This is a bug on
22869 some variants of i386 svr4.0.) */
22870 for (i = 0; i < pagesize; ++i)
22871 *(data2 + i) = *(data2 + i) + 1;
22872 data3 = (char *) malloc (pagesize);
22873 if (!data3)
22874 exit (1);
22875 if (read (fd, data3, pagesize) != pagesize)
22876 exit (1);
22877 for (i = 0; i < pagesize; ++i)
22878 if (*(data + i) != *(data3 + i))
22879 exit (1);
22880 close (fd);
22881 exit (0);
22882}
22883_ACEOF
22884rm -f conftest$ac_exeext
22885if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22886 (eval $ac_link) 2>&5
22887 ac_status=$?
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22891 (eval $ac_try) 2>&5
22892 ac_status=$?
22893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22894 (exit $ac_status); }; }; then
22895 ac_cv_func_mmap_fixed_mapped=yes
22896else
22897 echo "$as_me: program exited with status $ac_status" >&5
22898echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022899sed 's/^/| /' conftest.$ac_ext >&5
22900
John Criswell7a73b802003-06-30 21:59:07 +000022901( exit $ac_status )
22902ac_cv_func_mmap_fixed_mapped=no
22903fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022904rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022905fi
22906fi
22907echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22908echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22909if test $ac_cv_func_mmap_fixed_mapped = yes; then
22910
22911cat >>confdefs.h <<\_ACEOF
22912#define HAVE_MMAP 1
22913_ACEOF
22914
22915fi
22916rm -f conftest.mmap
22917
Brian Gaeke26be9c52004-01-13 06:43:16 +000022918if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22919then
John Criswellf3ecf3a2004-05-27 00:57:50 +000022920 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22921echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000022922fi
John Criswell7a73b802003-06-30 21:59:07 +000022923echo "$as_me:$LINENO: checking for mmap of files" >&5
22924echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22925if test "${ac_cv_func_mmap_file+set}" = set; then
22926 echo $ECHO_N "(cached) $ECHO_C" >&6
22927else
22928
22929
22930 ac_ext=c
22931ac_cpp='$CPP $CPPFLAGS'
22932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22934ac_compiler_gnu=$ac_cv_c_compiler_gnu
22935
22936 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022937 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22938See \`config.log' for more details." >&5
22939echo "$as_me: error: cannot run test program while cross compiling
22940See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022941 { (exit 1); exit 1; }; }
22942else
22943 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022944/* confdefs.h. */
22945_ACEOF
22946cat confdefs.h >>conftest.$ac_ext
22947cat >>conftest.$ac_ext <<_ACEOF
22948/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022949
John Criswell7a73b802003-06-30 21:59:07 +000022950#ifdef HAVE_SYS_TYPES_H
22951#include <sys/types.h>
22952#endif
22953
John Criswell5ab73462003-10-09 15:44:28 +000022954#ifdef HAVE_SYS_MMAN_H
22955#include <sys/mman.h>
22956#endif
22957
John Criswell7a73b802003-06-30 21:59:07 +000022958#ifdef HAVE_FCNTL_H
22959#include <fcntl.h>
22960#endif
22961
22962 int fd;
22963 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022964 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 +000022965_ACEOF
22966rm -f conftest$ac_exeext
22967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22968 (eval $ac_link) 2>&5
22969 ac_status=$?
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22973 (eval $ac_try) 2>&5
22974 ac_status=$?
22975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976 (exit $ac_status); }; }; then
22977 ac_cv_func_mmap_file=yes
22978else
22979 echo "$as_me: program exited with status $ac_status" >&5
22980echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022981sed 's/^/| /' conftest.$ac_ext >&5
22982
John Criswell7a73b802003-06-30 21:59:07 +000022983( exit $ac_status )
22984ac_cv_func_mmap_file=no
22985fi
Reid Spencer2b51a082004-08-04 00:34:49 +000022986rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022987fi
22988 ac_ext=c
22989ac_cpp='$CPP $CPPFLAGS'
22990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22992ac_compiler_gnu=$ac_cv_c_compiler_gnu
22993
22994
22995fi
22996echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22997echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22998if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022999
23000cat >>confdefs.h <<\_ACEOF
23001#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000023002_ACEOF
23003
23004 MMAP_FILE=yes
23005
23006fi
23007
Brian Gaeke26be9c52004-01-13 06:43:16 +000023008if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000023009then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023010 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23011echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023012fi
23013echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23014echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23015if test "${ac_cv_header_mmap_anon+set}" = set; then
23016 echo $ECHO_N "(cached) $ECHO_C" >&6
23017else
23018
23019
23020 ac_ext=c
23021ac_cpp='$CPP $CPPFLAGS'
23022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23024ac_compiler_gnu=$ac_cv_c_compiler_gnu
23025
23026 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023027/* confdefs.h. */
23028_ACEOF
23029cat confdefs.h >>conftest.$ac_ext
23030cat >>conftest.$ac_ext <<_ACEOF
23031/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023032#include <sys/mman.h>
23033 #include <unistd.h>
23034 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000023035int
23036main ()
23037{
23038mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23039 ;
23040 return 0;
23041}
23042_ACEOF
23043rm -f conftest.$ac_objext
23044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023045 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023046 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023047 grep -v '^ *+' conftest.er1 >conftest.err
23048 rm -f conftest.er1
23049 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23051 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023052 { ac_try='test -z "$ac_c_werror_flag"
23053 || test ! -s conftest.err'
23054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23055 (eval $ac_try) 2>&5
23056 ac_status=$?
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); }; } &&
23059 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23061 (eval $ac_try) 2>&5
23062 ac_status=$?
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); }; }; then
23065 ac_cv_header_mmap_anon=yes
23066else
23067 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023068sed 's/^/| /' conftest.$ac_ext >&5
23069
John Criswell7a73b802003-06-30 21:59:07 +000023070ac_cv_header_mmap_anon=no
23071fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023072rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023073 ac_ext=c
23074ac_cpp='$CPP $CPPFLAGS'
23075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23077ac_compiler_gnu=$ac_cv_c_compiler_gnu
23078
23079
23080fi
23081echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23082echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23083if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023084
23085cat >>confdefs.h <<\_ACEOF
23086#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000023087_ACEOF
23088
23089fi
23090
23091echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23092echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23093if test "${ac_cv_type_signal+set}" = set; then
23094 echo $ECHO_N "(cached) $ECHO_C" >&6
23095else
23096 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023097/* confdefs.h. */
23098_ACEOF
23099cat confdefs.h >>conftest.$ac_ext
23100cat >>conftest.$ac_ext <<_ACEOF
23101/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023102#include <sys/types.h>
23103#include <signal.h>
23104#ifdef signal
23105# undef signal
23106#endif
23107#ifdef __cplusplus
23108extern "C" void (*signal (int, void (*)(int)))(int);
23109#else
23110void (*signal ()) ();
23111#endif
23112
John Criswell7a73b802003-06-30 21:59:07 +000023113int
23114main ()
23115{
23116int i;
23117 ;
23118 return 0;
23119}
23120_ACEOF
23121rm -f conftest.$ac_objext
23122if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023123 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023124 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023125 grep -v '^ *+' conftest.er1 >conftest.err
23126 rm -f conftest.er1
23127 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23129 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023130 { ac_try='test -z "$ac_c_werror_flag"
23131 || test ! -s conftest.err'
23132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23133 (eval $ac_try) 2>&5
23134 ac_status=$?
23135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136 (exit $ac_status); }; } &&
23137 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23139 (eval $ac_try) 2>&5
23140 ac_status=$?
23141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23142 (exit $ac_status); }; }; then
23143 ac_cv_type_signal=void
23144else
23145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023146sed 's/^/| /' conftest.$ac_ext >&5
23147
John Criswell7a73b802003-06-30 21:59:07 +000023148ac_cv_type_signal=int
23149fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023150rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023151fi
23152echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23153echo "${ECHO_T}$ac_cv_type_signal" >&6
23154
23155cat >>confdefs.h <<_ACEOF
23156#define RETSIGTYPE $ac_cv_type_signal
23157_ACEOF
23158
23159
23160
23161
23162
23163
23164
Brian Gaekef5261472004-02-20 06:40:57 +000023165
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000023166
John Criswelld6621562004-06-07 14:26:24 +000023167
23168
John Criswell7ed43ad2004-07-19 16:12:29 +000023169for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000023170do
23171as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23172echo "$as_me:$LINENO: checking for $ac_func" >&5
23173echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23174if eval "test \"\${$as_ac_var+set}\" = set"; then
23175 echo $ECHO_N "(cached) $ECHO_C" >&6
23176else
23177 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023178/* confdefs.h. */
23179_ACEOF
23180cat confdefs.h >>conftest.$ac_ext
23181cat >>conftest.$ac_ext <<_ACEOF
23182/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023183/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23185#define $ac_func innocuous_$ac_func
23186
John Criswell7a73b802003-06-30 21:59:07 +000023187/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023188 which can conflict with char $ac_func (); below.
23189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23190 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023191
John Criswell0c38eaf2003-09-10 15:17:25 +000023192#ifdef __STDC__
23193# include <limits.h>
23194#else
23195# include <assert.h>
23196#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000023197
23198#undef $ac_func
23199
John Criswell7a73b802003-06-30 21:59:07 +000023200/* Override any gcc2 internal prototype to avoid an error. */
23201#ifdef __cplusplus
23202extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023203{
John Criswell7a73b802003-06-30 21:59:07 +000023204#endif
23205/* We use char because int might match the return type of a gcc2
23206 builtin and then its argument prototype would still apply. */
23207char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023208/* The GNU C library defines this for functions which it implements
23209 to always fail with ENOSYS. Some functions are actually named
23210 something starting with __ and the normal name is an alias. */
23211#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23212choke me
23213#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023214char (*f) () = $ac_func;
23215#endif
23216#ifdef __cplusplus
23217}
John Criswell7a73b802003-06-30 21:59:07 +000023218#endif
23219
John Criswell0c38eaf2003-09-10 15:17:25 +000023220int
23221main ()
23222{
23223return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023224 ;
23225 return 0;
23226}
23227_ACEOF
23228rm -f conftest.$ac_objext conftest$ac_exeext
23229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023230 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023231 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023232 grep -v '^ *+' conftest.er1 >conftest.err
23233 rm -f conftest.er1
23234 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023237 { ac_try='test -z "$ac_c_werror_flag"
23238 || test ! -s conftest.err'
23239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23240 (eval $ac_try) 2>&5
23241 ac_status=$?
23242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23243 (exit $ac_status); }; } &&
23244 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23246 (eval $ac_try) 2>&5
23247 ac_status=$?
23248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); }; }; then
23250 eval "$as_ac_var=yes"
23251else
23252 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023253sed 's/^/| /' conftest.$ac_ext >&5
23254
John Criswell7a73b802003-06-30 21:59:07 +000023255eval "$as_ac_var=no"
23256fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023257rm -f conftest.err conftest.$ac_objext \
23258 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023259fi
23260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23261echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23262if test `eval echo '${'$as_ac_var'}'` = yes; then
23263 cat >>confdefs.h <<_ACEOF
23264#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23265_ACEOF
23266
23267fi
23268done
23269
John Criswell7a73b802003-06-30 21:59:07 +000023270echo "$as_me:$LINENO: checking for mprotect" >&5
23271echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23272if test "${ac_cv_func_mprotect+set}" = set; then
23273 echo $ECHO_N "(cached) $ECHO_C" >&6
23274else
23275 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023276/* confdefs.h. */
23277_ACEOF
23278cat confdefs.h >>conftest.$ac_ext
23279cat >>conftest.$ac_ext <<_ACEOF
23280/* end confdefs.h. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023281/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23283#define mprotect innocuous_mprotect
23284
John Criswell7a73b802003-06-30 21:59:07 +000023285/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023286 which can conflict with char mprotect (); below.
23287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23288 <limits.h> exists even on freestanding compilers. */
Reid Spencer2b51a082004-08-04 00:34:49 +000023289
John Criswell0c38eaf2003-09-10 15:17:25 +000023290#ifdef __STDC__
23291# include <limits.h>
23292#else
23293# include <assert.h>
23294#endif
Reid Spencer2b51a082004-08-04 00:34:49 +000023295
23296#undef mprotect
23297
John Criswell7a73b802003-06-30 21:59:07 +000023298/* Override any gcc2 internal prototype to avoid an error. */
23299#ifdef __cplusplus
23300extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023301{
John Criswell7a73b802003-06-30 21:59:07 +000023302#endif
23303/* We use char because int might match the return type of a gcc2
23304 builtin and then its argument prototype would still apply. */
23305char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000023306/* The GNU C library defines this for functions which it implements
23307 to always fail with ENOSYS. Some functions are actually named
23308 something starting with __ and the normal name is an alias. */
23309#if defined (__stub_mprotect) || defined (__stub___mprotect)
23310choke me
23311#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023312char (*f) () = mprotect;
23313#endif
23314#ifdef __cplusplus
23315}
John Criswell7a73b802003-06-30 21:59:07 +000023316#endif
23317
John Criswell0c38eaf2003-09-10 15:17:25 +000023318int
23319main ()
23320{
23321return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000023322 ;
23323 return 0;
23324}
23325_ACEOF
23326rm -f conftest.$ac_objext conftest$ac_exeext
23327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023328 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023329 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023330 grep -v '^ *+' conftest.er1 >conftest.err
23331 rm -f conftest.er1
23332 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023335 { ac_try='test -z "$ac_c_werror_flag"
23336 || test ! -s conftest.err'
23337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23338 (eval $ac_try) 2>&5
23339 ac_status=$?
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); }; } &&
23342 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23344 (eval $ac_try) 2>&5
23345 ac_status=$?
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); }; }; then
23348 ac_cv_func_mprotect=yes
23349else
23350 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023351sed 's/^/| /' conftest.$ac_ext >&5
23352
John Criswell7a73b802003-06-30 21:59:07 +000023353ac_cv_func_mprotect=no
23354fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023355rm -f conftest.err conftest.$ac_objext \
23356 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023357fi
23358echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23359echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23360if test $ac_cv_func_mprotect = yes; then
23361 :
23362else
23363 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23364echo "$as_me: error: Function mprotect() required but not found" >&2;}
23365 { (exit 1); exit 1; }; }
23366fi
23367
23368
John Criswellb13092b2003-07-22 21:00:24 +000023369
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023370 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23371echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000023372
23373
23374 ac_ext=c
23375ac_cpp='$CPP $CPPFLAGS'
23376ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23377ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23378ac_compiler_gnu=$ac_cv_c_compiler_gnu
23379
Brian Gaekef91a15c2003-11-18 06:20:41 +000023380 oldcflags="$CFLAGS"
23381 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000023382 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000023383int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000023384_ACEOF
23385rm -f conftest.$ac_objext conftest$ac_exeext
23386if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer2b51a082004-08-04 00:34:49 +000023387 (eval $ac_link) 2>conftest.er1
John Criswellcb7a1eb2003-11-17 19:46:02 +000023388 ac_status=$?
Reid Spencer2b51a082004-08-04 00:34:49 +000023389 grep -v '^ *+' conftest.er1 >conftest.err
23390 rm -f conftest.er1
23391 cat conftest.err >&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000023392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23393 (exit $ac_status); } &&
Reid Spencer2b51a082004-08-04 00:34:49 +000023394 { ac_try='test -z "$ac_c_werror_flag"
23395 || test ! -s conftest.err'
23396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23397 (eval $ac_try) 2>&5
23398 ac_status=$?
23399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23400 (exit $ac_status); }; } &&
23401 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000023402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23403 (eval $ac_try) 2>&5
23404 ac_status=$?
23405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23406 (exit $ac_status); }; }; then
23407 ac_cv_link_use_r=yes
23408else
23409 echo "$as_me: failed program was:" >&5
23410sed 's/^/| /' conftest.$ac_ext >&5
23411
Brian Gaekef91a15c2003-11-18 06:20:41 +000023412ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000023413fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023414rm -f conftest.err conftest.$ac_objext \
23415 conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000023416 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000023417 ac_ext=c
23418ac_cpp='$CPP $CPPFLAGS'
23419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23421ac_compiler_gnu=$ac_cv_c_compiler_gnu
23422
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023423 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23424echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000023425 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000023426 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000023427
23428cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000023429#define HAVE_LINK_R 1
23430_ACEOF
23431
23432 fi
23433
23434
John Criswell7a73b802003-06-30 21:59:07 +000023435# Check whether --enable-optimized or --disable-optimized was given.
23436if test "${enable_optimized+set}" = set; then
23437 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000023438
23439else
John Criswellb13092b2003-07-22 21:00:24 +000023440 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023441fi;
John Criswellb13092b2003-07-22 21:00:24 +000023442if test ${enableval} = "no"
23443then
23444 ENABLE_OPTIMIZED=
23445
23446else
23447 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23448
23449fi
23450
John Criswell55126592003-10-07 21:57:39 +000023451
23452
John Criswell55126592003-10-07 21:57:39 +000023453
Brian Gaekee773b862004-04-16 17:13:44 +000023454 # Check whether --enable-spec95 or --disable-spec95 was given.
John Criswellcf2e9f72004-02-10 22:36:35 +000023455if test "${enable_spec95+set}" = set; then
23456 enableval="$enable_spec95"
Brian Gaekee773b862004-04-16 17:13:44 +000023457 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000023458else
Brian Gaekee773b862004-04-16 17:13:44 +000023459 checkresult=auto
John Criswellcf2e9f72004-02-10 22:36:35 +000023460fi;
Brian Gaekee773b862004-04-16 17:13:44 +000023461echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23462echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23463case "$checkresult" in
23464auto|yes)
23465 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23466 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000023467 then
Brian Gaekee773b862004-04-16 17:13:44 +000023468 SPEC95_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000023469
23470 USE_SPEC95=USE_SPEC95=1
23471
Brian Gaekee773b862004-04-16 17:13:44 +000023472 checkresult="yes, found in $defaultdir"
23473 else
23474 checkresult=no
23475 fi
23476 ;;
23477no)
John Criswellcf2e9f72004-02-10 22:36:35 +000023478
23479
Brian Gaekee773b862004-04-16 17:13:44 +000023480 checkresult=no
23481 ;;
23482*) if test -d "$checkresult"
23483 then
23484 SPEC95_ROOT="$checkresult"
23485
23486 USE_SPEC95=USE_SPEC95=1
23487
23488 checkresult="yes, in $checkresult"
23489 else
23490
23491
23492 checkresult="no, not found in $checkresult"
23493 fi
23494 ;;
23495esac
23496echo "$as_me:$LINENO: result: $checkresult" >&5
23497echo "${ECHO_T}$checkresult" >&6
23498
23499
23500
23501 # Check whether --enable-spec2000 or --disable-spec2000 was given.
23502if test "${enable_spec2000+set}" = set; then
23503 enableval="$enable_spec2000"
23504 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000023505else
Brian Gaekee773b862004-04-16 17:13:44 +000023506 checkresult=auto
23507fi;
23508echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23509echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23510case "$checkresult" in
23511auto|yes)
23512 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23513 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000023514 then
Brian Gaekee773b862004-04-16 17:13:44 +000023515 SPEC2000_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000023516
Brian Gaekee773b862004-04-16 17:13:44 +000023517 USE_SPEC2000=USE_SPEC2000=1
John Criswellcf2e9f72004-02-10 22:36:35 +000023518
Brian Gaekee773b862004-04-16 17:13:44 +000023519 checkresult="yes, found in $defaultdir"
23520 else
23521 checkresult=no
23522 fi
23523 ;;
23524no)
John Criswellcf2e9f72004-02-10 22:36:35 +000023525
John Criswellcf2e9f72004-02-10 22:36:35 +000023526
Brian Gaekee773b862004-04-16 17:13:44 +000023527 checkresult=no
23528 ;;
23529*) if test -d "$checkresult"
23530 then
23531 SPEC2000_ROOT="$checkresult"
23532
23533 USE_SPEC2000=USE_SPEC2000=1
23534
23535 checkresult="yes, in $checkresult"
23536 else
23537
23538
23539 checkresult="no, not found in $checkresult"
23540 fi
23541 ;;
23542esac
23543echo "$as_me:$LINENO: result: $checkresult" >&5
23544echo "${ECHO_T}$checkresult" >&6
23545
23546
23547
23548 # Check whether --enable-povray or --disable-povray was given.
John Criswell0538d422004-02-20 22:30:22 +000023549if test "${enable_povray+set}" = set; then
23550 enableval="$enable_povray"
Brian Gaekee773b862004-04-16 17:13:44 +000023551 checkresult=$enableval
John Criswell0538d422004-02-20 22:30:22 +000023552else
Brian Gaekee773b862004-04-16 17:13:44 +000023553 checkresult=auto
John Criswell0538d422004-02-20 22:30:22 +000023554fi;
Brian Gaekee773b862004-04-16 17:13:44 +000023555echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23556echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23557case "$checkresult" in
Chris Lattner95f45c52004-04-14 16:32:09 +000023558auto|yes)
Brian Gaekef66cdf82004-04-13 19:03:49 +000023559 defaultdir=/home/vadve/shared/benchmarks/povray31
Brian Gaekee773b862004-04-16 17:13:44 +000023560 if test -d "$defaultdir"
John Criswell0538d422004-02-20 22:30:22 +000023561 then
Brian Gaekef66cdf82004-04-13 19:03:49 +000023562 POVRAY_ROOT=$defaultdir
John Criswell0538d422004-02-20 22:30:22 +000023563
23564 USE_POVRAY=USE_POVRAY=1
23565
Brian Gaekee773b862004-04-16 17:13:44 +000023566 checkresult="yes, found in $defaultdir"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023567 else
Brian Gaekee773b862004-04-16 17:13:44 +000023568 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000023569 fi
23570 ;;
Chris Lattner95f45c52004-04-14 16:32:09 +000023571no)
John Criswell0538d422004-02-20 22:30:22 +000023572
23573
Brian Gaekee773b862004-04-16 17:13:44 +000023574 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000023575 ;;
Brian Gaekee773b862004-04-16 17:13:44 +000023576*) if test -d "$checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023577 then
Brian Gaekee773b862004-04-16 17:13:44 +000023578 POVRAY_ROOT="$checkresult"
John Criswell0538d422004-02-20 22:30:22 +000023579
Brian Gaekef66cdf82004-04-13 19:03:49 +000023580 USE_POVRAY=USE_POVRAY=1
John Criswell0538d422004-02-20 22:30:22 +000023581
Brian Gaekee773b862004-04-16 17:13:44 +000023582 checkresult="yes, in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023583 else
John Criswell0538d422004-02-20 22:30:22 +000023584
John Criswell0538d422004-02-20 22:30:22 +000023585
Brian Gaekee773b862004-04-16 17:13:44 +000023586 checkresult="no, not found in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023587 fi
23588 ;;
23589esac
Brian Gaekee773b862004-04-16 17:13:44 +000023590echo "$as_me:$LINENO: result: $checkresult" >&5
23591echo "${ECHO_T}$checkresult" >&6
23592
23593
John Criswell0538d422004-02-20 22:30:22 +000023594
John Criswell7a73b802003-06-30 21:59:07 +000023595# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23596if test "${enable_precompiled_bytecode+set}" = set; then
23597 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000023598
23599else
John Criswellb13092b2003-07-22 21:00:24 +000023600 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023601fi;
John Criswellb13092b2003-07-22 21:00:24 +000023602if test ${enableval} = "no"
23603then
23604 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000023605
John Criswellb13092b2003-07-22 21:00:24 +000023606else
23607 UPB=USE_PRECOMPILED_BYTECODE=1
23608
23609fi
John Criswellf02dbf02003-07-22 20:07:49 +000023610
John Criswellf02dbf02003-07-22 20:07:49 +000023611# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23612if test "${enable_llc_diffs+set}" = set; then
23613 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000023614
23615else
John Criswellb13092b2003-07-22 21:00:24 +000023616 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000023617fi;
John Criswellb13092b2003-07-22 21:00:24 +000023618if test ${enableval} = "no"
23619then
23620 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000023621
John Criswellb13092b2003-07-22 21:00:24 +000023622else
23623 DISABLE_LLC_DIFFS=
23624
23625fi
23626
23627# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000023628if test "${enable_jit+set}" = set; then
23629 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000023630
23631else
John Criswellc78022e2003-07-29 19:11:58 +000023632 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000023633fi;
John Criswellb13092b2003-07-22 21:00:24 +000023634if test ${enableval} = "no"
23635then
23636 JIT=
23637
23638else
John Criswellc78022e2003-07-29 19:11:58 +000023639 case $target in
23640 *i*86*)
23641 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000023642
John Criswellc78022e2003-07-29 19:11:58 +000023643 ;;
23644 *sparc*)
23645 JIT=TARGET_HAS_JIT=1
23646
23647 ;;
23648 *)
23649 JIT=
23650
23651 ;;
23652 esac
John Criswellb13092b2003-07-22 21:00:24 +000023653fi
John Criswell7a73b802003-06-30 21:59:07 +000023654
23655
John Criswell7a73b802003-06-30 21:59:07 +000023656# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23657if test "${with_llvmgccdir+set}" = set; then
23658 withval="$with_llvmgccdir"
23659 LLVMGCCDIR=$withval
23660
23661fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000023662echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23663echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23664LLVM_GCC_CHECK=no
23665if test -d "$LLVMGCCDIR"
23666then
23667 if test -x "$LLVMGCCDIR/bin/gcc"
23668 then
23669 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23670 fi
23671fi
23672llvmgccwarn=no
23673echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23674echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23675if test "$LLVM_GCC_CHECK" = "no"
23676then
23677 llvmgccwarn=yes
23678fi
Brian Gaekef3b24102003-11-16 18:38:14 +000023679echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23680echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23681LLVM_GCC_SANE=no
23682if test -x "$LLVM_GCC_CHECK"
23683then
23684 cp /dev/null conftest.c
23685 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23686 if test $? -eq 0
23687 then
23688 LLVM_GCC_SANE=yes
23689 fi
23690 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000023691 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000023692 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000023693
23694 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000023695 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000023696
Brian Gaekef3b24102003-11-16 18:38:14 +000023697fi
23698echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23699echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23700if test "$LLVM_GCC_SANE" = "no"
23701then
23702 llvmgccwarn=yes
23703fi
23704
John Criswellc78022e2003-07-29 19:11:58 +000023705
John Criswell7a73b802003-06-30 21:59:07 +000023706# Check whether --with-bcrepos or --without-bcrepos was given.
23707if test "${with_bcrepos+set}" = set; then
23708 withval="$with_bcrepos"
23709 BCR=$withval
23710
23711else
23712 BCR=/home/vadve/lattner/LLVMPrograms
23713
23714fi;
23715
John Criswellc78022e2003-07-29 19:11:58 +000023716
John Criswell7a73b802003-06-30 21:59:07 +000023717# Check whether --with-papi or --without-papi was given.
23718if test "${with_papi+set}" = set; then
23719 withval="$with_papi"
23720 PAPIDIR=$withval
23721
23722else
John Criswellde00db22003-08-25 16:49:54 +000023723 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000023724
23725fi;
23726
Brian Gaeke554831c2004-01-21 19:39:29 +000023727echo "$as_me:$LINENO: checking for shared library suffix" >&5
23728echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23729eval "SHLIBEXT=$shrext"
23730echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23731echo "${ECHO_T}$SHLIBEXT" >&6
23732SHLIBEXT=$SHLIBEXT
23733
23734
23735cat >>confdefs.h <<_ACEOF
23736#define SHLIBEXT "$SHLIBEXT"
23737_ACEOF
23738
23739
Reid Spencere9de0912004-08-20 09:03:57 +000023740# Translate the various configuration directories and other basic
23741# information into substitutions that will end up in config.h.in so
23742# that these configured values can be hard-wired into a program.
23743eval LLVM_PREFIX="${prefix}";
23744eval LLVM_BINDIR="${prefix}/bin";
23745eval LLVM_LIBDIR="${prefix}/lib";
23746eval LLVM_DATADIR="${prefix}/data";
23747eval LLVM_DOCSDIR="${prefix}/docs";
23748eval LLVM_ETCDIR="${prefix}/etc";
23749eval LLVM_INCLUDEDIR="${prefix}/include";
23750eval LLVM_INFODIR="${prefix}/info";
23751eval LLVM_MANDIR="${prefix}/man";
23752LLVM_CONFIGTIME=`date`
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764cat >>confdefs.h <<_ACEOF
23765#define LLVM_PREFIX "$LLVM_PREFIX"
23766_ACEOF
23767
23768
23769cat >>confdefs.h <<_ACEOF
23770#define LLVM_BINDIR "$LLVM_BINDIR"
23771_ACEOF
23772
23773
23774cat >>confdefs.h <<_ACEOF
23775#define LLVM_LIBDIR "$LLVM_LIBDIR"
23776_ACEOF
23777
23778
23779cat >>confdefs.h <<_ACEOF
23780#define LLVM_DATADIR "$LLVM_DATADIR"
23781_ACEOF
23782
23783
23784cat >>confdefs.h <<_ACEOF
23785#define LLVM_DATADIR "$LLVM_DOCSDIR"
23786_ACEOF
23787
23788
23789cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000023790#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000023791_ACEOF
23792
23793
23794cat >>confdefs.h <<_ACEOF
23795#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23796_ACEOF
23797
23798
23799cat >>confdefs.h <<_ACEOF
23800#define LLVM_INFODIR "$LLVM_INFODIR"
23801_ACEOF
23802
23803
23804cat >>confdefs.h <<_ACEOF
23805#define LLVM_MANDIR "$LLVM_MANDIR"
23806_ACEOF
23807
23808
23809cat >>confdefs.h <<_ACEOF
23810#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23811_ACEOF
23812
23813
John Criswell7a73b802003-06-30 21:59:07 +000023814cat >confcache <<\_ACEOF
23815# This file is a shell script that caches the results of configure
23816# tests run on this system so they can be shared between configure
23817# scripts and configure runs, see configure's option --config-cache.
23818# It is not useful on other systems. If it contains results you don't
23819# want to keep, you may remove or edit it.
23820#
23821# config.status only pays attention to the cache file if you give it
23822# the --recheck option to rerun configure.
23823#
John Criswell0c38eaf2003-09-10 15:17:25 +000023824# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000023825# loading this file, other *unset* `ac_cv_foo' will be assigned the
23826# following values.
23827
23828_ACEOF
23829
23830# The following way of writing the cache mishandles newlines in values,
23831# but we know of no workaround that is simple, portable, and efficient.
23832# So, don't put newlines in cache variables' values.
23833# Ultrix sh set writes to stderr and can't be redirected directly,
23834# and sets the high bit in the cache file unless we assign to the vars.
23835{
23836 (set) 2>&1 |
23837 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23838 *ac_space=\ *)
23839 # `set' does not quote correctly, so add quotes (double-quote
23840 # substitution turns \\\\ into \\, and sed turns \\ into \).
23841 sed -n \
Reid Spencer2b51a082004-08-04 00:34:49 +000023842 "s/'/'\\\\''/g;
23843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000023844 ;;
23845 *)
23846 # `set' quotes correctly as required by POSIX, so do not add quotes.
23847 sed -n \
Reid Spencer2b51a082004-08-04 00:34:49 +000023848 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000023849 ;;
23850 esac;
23851} |
23852 sed '
23853 t clear
23854 : clear
23855 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23856 t end
23857 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23858 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000023859if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000023860 if test -w $cache_file; then
23861 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23862 cat confcache >$cache_file
23863 else
23864 echo "not updating unwritable cache $cache_file"
23865 fi
23866fi
23867rm -f confcache
23868
23869test "x$prefix" = xNONE && prefix=$ac_default_prefix
23870# Let make expand exec_prefix.
23871test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23872
23873# VPATH may cause trouble with some makes, so we remove $(srcdir),
23874# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23875# trailing colons and then remove the whole line if VPATH becomes empty
23876# (actually we leave an empty line to preserve line numbers).
23877if test "x$srcdir" = x.; then
Reid Spencer2b51a082004-08-04 00:34:49 +000023878 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000023879s/:*\$(srcdir):*/:/;
23880s/:*\${srcdir}:*/:/;
23881s/:*@srcdir@:*/:/;
Reid Spencer2b51a082004-08-04 00:34:49 +000023882s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000023883s/:*$//;
Reid Spencer2b51a082004-08-04 00:34:49 +000023884s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000023885}'
23886fi
23887
23888DEFS=-DHAVE_CONFIG_H
23889
John Criswell0c38eaf2003-09-10 15:17:25 +000023890ac_libobjs=
23891ac_ltlibobjs=
23892for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23893 # 1. Remove the extension, and $U if already installed.
23894 ac_i=`echo "$ac_i" |
Reid Spencer2b51a082004-08-04 00:34:49 +000023895 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023896 # 2. Add them.
23897 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23898 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23899done
23900LIBOBJS=$ac_libobjs
23901
23902LTLIBOBJS=$ac_ltlibobjs
23903
23904
John Criswell7a73b802003-06-30 21:59:07 +000023905
23906: ${CONFIG_STATUS=./config.status}
23907ac_clean_files_save=$ac_clean_files
23908ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23909{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23910echo "$as_me: creating $CONFIG_STATUS" >&6;}
23911cat >$CONFIG_STATUS <<_ACEOF
23912#! $SHELL
23913# Generated by $as_me.
23914# Run this file to recreate the current configuration.
23915# Compiler output produced by configure, useful for debugging
23916# configure, is in config.log if it exists.
23917
23918debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023919ac_cs_recheck=false
23920ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023921SHELL=\${CONFIG_SHELL-$SHELL}
23922_ACEOF
23923
23924cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023925## --------------------- ##
23926## M4sh Initialization. ##
23927## --------------------- ##
23928
23929# Be Bourne compatible
23930if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23931 emulate sh
23932 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023933 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23934 # is contrary to our usage. Disable this feature.
23935 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023936elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23937 set -o posix
23938fi
Reid Spencer2b51a082004-08-04 00:34:49 +000023939DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000023940
John Criswell7a73b802003-06-30 21:59:07 +000023941# Support unset when possible.
Reid Spencer2b51a082004-08-04 00:34:49 +000023942if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023943 as_unset=unset
23944else
23945 as_unset=false
23946fi
23947
John Criswell0c38eaf2003-09-10 15:17:25 +000023948
23949# Work around bugs in pre-3.0 UWIN ksh.
23950$as_unset ENV MAIL MAILPATH
23951PS1='$ '
23952PS2='> '
23953PS4='+ '
23954
23955# NLS nuisances.
23956for as_var in \
23957 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23958 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23959 LC_TELEPHONE LC_TIME
23960do
Reid Spencer2b51a082004-08-04 00:34:49 +000023961 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000023962 eval $as_var=C; export $as_var
23963 else
23964 $as_unset $as_var
23965 fi
23966done
23967
23968# Required to use basename.
23969if expr a : '\(a\)' >/dev/null 2>&1; then
23970 as_expr=expr
23971else
23972 as_expr=false
23973fi
23974
23975if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23976 as_basename=basename
23977else
23978 as_basename=false
23979fi
John Criswell7a73b802003-06-30 21:59:07 +000023980
23981
23982# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023983as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023984$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23985 X"$0" : 'X\(//\)$' \| \
23986 X"$0" : 'X\(/\)$' \| \
23987 . : '\(.\)' 2>/dev/null ||
23988echo X/"$0" |
23989 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23990 /^X\/\(\/\/\)$/{ s//\1/; q; }
23991 /^X\/\(\/\).*/{ s//\1/; q; }
23992 s/.*/./; q'`
23993
John Criswell0c38eaf2003-09-10 15:17:25 +000023994
John Criswell7a73b802003-06-30 21:59:07 +000023995# PATH needs CR, and LINENO needs CR and PATH.
23996# Avoid depending upon Character Ranges.
23997as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23998as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23999as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24000as_cr_digits='0123456789'
24001as_cr_alnum=$as_cr_Letters$as_cr_digits
24002
24003# The user is always right.
24004if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024005 echo "#! /bin/sh" >conf$$.sh
24006 echo "exit 0" >>conf$$.sh
24007 chmod +x conf$$.sh
24008 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024009 PATH_SEPARATOR=';'
24010 else
24011 PATH_SEPARATOR=:
24012 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000024013 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000024014fi
24015
24016
24017 as_lineno_1=$LINENO
24018 as_lineno_2=$LINENO
24019 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24020 test "x$as_lineno_1" != "x$as_lineno_2" &&
24021 test "x$as_lineno_3" = "x$as_lineno_2" || {
24022 # Find who we are. Look in the path if we contain no path at all
24023 # relative or not.
24024 case $0 in
24025 *[\\/]* ) as_myself=$0 ;;
24026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24027for as_dir in $PATH
24028do
24029 IFS=$as_save_IFS
24030 test -z "$as_dir" && as_dir=.
24031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24032done
24033
24034 ;;
24035 esac
24036 # We did not find ourselves, most probably we were run as `sh COMMAND'
24037 # in which case we are not to be found in the path.
24038 if test "x$as_myself" = x; then
24039 as_myself=$0
24040 fi
24041 if test ! -f "$as_myself"; then
24042 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24043echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24044 { (exit 1); exit 1; }; }
24045 fi
24046 case $CONFIG_SHELL in
24047 '')
24048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24049for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24050do
24051 IFS=$as_save_IFS
24052 test -z "$as_dir" && as_dir=.
24053 for as_base in sh bash ksh sh5; do
24054 case $as_dir in
24055 /*)
24056 if ("$as_dir/$as_base" -c '
24057 as_lineno_1=$LINENO
24058 as_lineno_2=$LINENO
24059 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24060 test "x$as_lineno_1" != "x$as_lineno_2" &&
24061 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024062 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24063 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000024064 CONFIG_SHELL=$as_dir/$as_base
24065 export CONFIG_SHELL
24066 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24067 fi;;
24068 esac
24069 done
24070done
24071;;
24072 esac
24073
24074 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24075 # uniformly replaced by the line number. The first 'sed' inserts a
24076 # line-number line before each line; the second 'sed' does the real
24077 # work. The second script uses 'N' to pair each line-number line
24078 # with the numbered line, and appends trailing '-' during
24079 # substitution so that $LINENO is not a special case at line end.
24080 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24081 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24082 sed '=' <$as_myself |
24083 sed '
24084 N
24085 s,$,-,
24086 : loop
24087 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24088 t loop
24089 s,-$,,
24090 s,^['$as_cr_digits']*\n,,
24091 ' >$as_me.lineno &&
24092 chmod +x $as_me.lineno ||
24093 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24094echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24095 { (exit 1); exit 1; }; }
24096
24097 # Don't try to exec as it changes $[0], causing all sort of problems
24098 # (the dirname of $[0] is not the place where we might find the
24099 # original and so on. Autoconf is especially sensible to this).
24100 . ./$as_me.lineno
24101 # Exit status is that of the last command.
24102 exit
24103}
24104
24105
24106case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24107 *c*,-n*) ECHO_N= ECHO_C='
24108' ECHO_T=' ' ;;
24109 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24110 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24111esac
24112
24113if expr a : '\(a\)' >/dev/null 2>&1; then
24114 as_expr=expr
24115else
24116 as_expr=false
24117fi
24118
24119rm -f conf$$ conf$$.exe conf$$.file
24120echo >conf$$.file
24121if ln -s conf$$.file conf$$ 2>/dev/null; then
24122 # We could just check for DJGPP; but this test a) works b) is more generic
24123 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24124 if test -f conf$$.exe; then
24125 # Don't use ln at all; we don't have any links
24126 as_ln_s='cp -p'
24127 else
24128 as_ln_s='ln -s'
24129 fi
24130elif ln conf$$.file conf$$ 2>/dev/null; then
24131 as_ln_s=ln
24132else
24133 as_ln_s='cp -p'
24134fi
24135rm -f conf$$ conf$$.exe conf$$.file
24136
John Criswell0c38eaf2003-09-10 15:17:25 +000024137if mkdir -p . 2>/dev/null; then
24138 as_mkdir_p=:
24139else
Reid Spencer2b51a082004-08-04 00:34:49 +000024140 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000024141 as_mkdir_p=false
24142fi
24143
John Criswell7a73b802003-06-30 21:59:07 +000024144as_executable_p="test -f"
24145
24146# Sed expression to map a string onto a valid CPP name.
Reid Spencer2b51a082004-08-04 00:34:49 +000024147as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024148
24149# Sed expression to map a string onto a valid variable name.
Reid Spencer2b51a082004-08-04 00:34:49 +000024150as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024151
24152
24153# IFS
24154# We need space, tab and new line, in precisely that order.
24155as_nl='
24156'
24157IFS=" $as_nl"
24158
24159# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000024160$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000024161
24162exec 6>&1
24163
24164# Open the log real soon, to keep \$[0] and so on meaningful, and to
24165# report actual input values of CONFIG_FILES etc. instead of their
24166# values after options handling. Logging --version etc. is OK.
24167exec 5>>config.log
24168{
24169 echo
24170 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24171## Running $as_me. ##
24172_ASBOX
24173} >&5
24174cat >&5 <<_CSEOF
24175
Reid Spencere9de0912004-08-20 09:03:57 +000024176This file was extended by LLVM $as_me 1.4, which was
Reid Spencer2b51a082004-08-04 00:34:49 +000024177generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000024178
24179 CONFIG_FILES = $CONFIG_FILES
24180 CONFIG_HEADERS = $CONFIG_HEADERS
24181 CONFIG_LINKS = $CONFIG_LINKS
24182 CONFIG_COMMANDS = $CONFIG_COMMANDS
24183 $ $0 $@
24184
24185_CSEOF
24186echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24187echo >&5
24188_ACEOF
24189
24190# Files that config.status was made for.
24191if test -n "$ac_config_files"; then
24192 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24193fi
24194
24195if test -n "$ac_config_headers"; then
24196 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24197fi
24198
24199if test -n "$ac_config_links"; then
24200 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24201fi
24202
24203if test -n "$ac_config_commands"; then
24204 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24205fi
24206
24207cat >>$CONFIG_STATUS <<\_ACEOF
24208
24209ac_cs_usage="\
24210\`$as_me' instantiates files from templates according to the
24211current configuration.
24212
24213Usage: $0 [OPTIONS] [FILE]...
24214
24215 -h, --help print this help, then exit
24216 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000024217 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000024218 -d, --debug don't remove temporary files
24219 --recheck update $as_me by reconfiguring in the same conditions
24220 --file=FILE[:TEMPLATE]
Reid Spencer2b51a082004-08-04 00:34:49 +000024221 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000024222 --header=FILE[:TEMPLATE]
Reid Spencer2b51a082004-08-04 00:34:49 +000024223 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000024224
24225Configuration files:
24226$config_files
24227
24228Configuration headers:
24229$config_headers
24230
John Criswellc764fbc2003-09-06 15:17:13 +000024231Configuration commands:
24232$config_commands
24233
John Criswell7a73b802003-06-30 21:59:07 +000024234Report bugs to <bug-autoconf@gnu.org>."
24235_ACEOF
24236
24237cat >>$CONFIG_STATUS <<_ACEOF
24238ac_cs_version="\\
Reid Spencere9de0912004-08-20 09:03:57 +000024239LLVM config.status 1.4
Reid Spencer2b51a082004-08-04 00:34:49 +000024240configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000024241 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24242
Reid Spencer2b51a082004-08-04 00:34:49 +000024243Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000024244This config.status script is free software; the Free Software Foundation
24245gives unlimited permission to copy, distribute and modify it."
24246srcdir=$srcdir
24247INSTALL="$INSTALL"
24248_ACEOF
24249
24250cat >>$CONFIG_STATUS <<\_ACEOF
24251# If no file are specified by the user, then we need to provide default
24252# value. By we need to know if files were specified by the user.
24253ac_need_defaults=:
24254while test $# != 0
24255do
24256 case $1 in
24257 --*=*)
24258 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24259 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024260 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000024261 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024262 -*)
24263 ac_option=$1
24264 ac_optarg=$2
24265 ac_shift=shift
24266 ;;
John Criswell7a73b802003-06-30 21:59:07 +000024267 *) # This is not an option, so the user has probably given explicit
24268 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000024269 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000024270 ac_need_defaults=false;;
24271 esac
24272
John Criswell0c38eaf2003-09-10 15:17:25 +000024273 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000024274 # Handling of the options.
24275_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000024276cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24278 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024279 --version | --vers* | -V )
24280 echo "$ac_cs_version"; exit 0 ;;
24281 --he | --h)
24282 # Conflict between --help and --header
24283 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24284Try \`$0 --help' for more information." >&5
24285echo "$as_me: error: ambiguous option: $1
24286Try \`$0 --help' for more information." >&2;}
24287 { (exit 1); exit 1; }; };;
24288 --help | --hel | -h )
24289 echo "$ac_cs_usage"; exit 0 ;;
24290 --debug | --d* | -d )
24291 debug=: ;;
24292 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000024293 $ac_shift
24294 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024295 ac_need_defaults=false;;
24296 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000024297 $ac_shift
24298 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024299 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024300 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24301 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24302 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024303
24304 # This is an error.
24305 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24306Try \`$0 --help' for more information." >&5
24307echo "$as_me: error: unrecognized option: $1
24308Try \`$0 --help' for more information." >&2;}
24309 { (exit 1); exit 1; }; } ;;
24310
24311 *) ac_config_targets="$ac_config_targets $1" ;;
24312
24313 esac
24314 shift
24315done
24316
John Criswell0c38eaf2003-09-10 15:17:25 +000024317ac_configure_extra_args=
24318
24319if $ac_cs_silent; then
24320 exec 6>/dev/null
24321 ac_configure_extra_args="$ac_configure_extra_args --silent"
24322fi
24323
24324_ACEOF
24325cat >>$CONFIG_STATUS <<_ACEOF
24326if \$ac_cs_recheck; then
24327 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24328 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24329fi
24330
John Criswell7a73b802003-06-30 21:59:07 +000024331_ACEOF
24332
John Criswellc764fbc2003-09-06 15:17:13 +000024333cat >>$CONFIG_STATUS <<_ACEOF
24334#
24335# INIT-COMMANDS section.
24336#
John Criswell7a73b802003-06-30 21:59:07 +000024337
John Criswellc764fbc2003-09-06 15:17:13 +000024338${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24339${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000024340${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024341${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024342${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024343${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24344${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000024345${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24346${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000024347${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile`
24348${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.programs`
John Criswell8a54a1e2004-06-22 21:35:10 +000024349${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/Makefile.tests`
John Criswellc764fbc2003-09-06 15:17:13 +000024350${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.Makefile`
24351${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.report`
John Criswellc764fbc2003-09-06 15:17:13 +000024352${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.aa.report`
24353${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.example.Makefile`
24354${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.Makefile`
24355${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.buildrepo.Makefile`
24356${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.Makefile`
24357${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.nightly.report`
24358${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.Makefile`
24359${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.jit.report`
24360${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.typesafe.Makefile`
24361${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.dsgraph.gnuplot`
John Criswell878be7d2004-02-24 21:43:38 +000024362${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/TEST.vtl.Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024363${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/Makefile`
24364${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile`
John Criswell613758d2003-09-11 18:03:50 +000024365${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024366${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec2000`
John Criswellcf2e9f72004-02-10 22:36:35 +000024367${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/External/SPEC/Makefile.spec95`
John Criswellc764fbc2003-09-06 15:17:13 +000024368${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile`
24369${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Makefile.multisrc`
Misha Brukman811ce9f2003-11-12 22:16:51 +000024370${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in`
24371${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile`
24372${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in`
24373${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile`
24374${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in`
24375${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile`
24376${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in`
24377${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile`
24378${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in`
24379${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile`
24380${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in`
24381${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile`
24382${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in`
John Criswellc764fbc2003-09-06 15:17:13 +000024383${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile`
24384${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/Makefile.singlesrc`
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024385${srcdir}/autoconf/mkinstalldirs `dirname test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024386${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000024387${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024388${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024389
24390_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024391
24392
24393
24394cat >>$CONFIG_STATUS <<\_ACEOF
24395for ac_config_target in $ac_config_targets
24396do
24397 case "$ac_config_target" in
24398 # Handling of arguments.
24399 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024400 "include/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/DataTypes.h" ;;
24401 "include/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/Support/ThreadSupport.h" ;;
Brian Gaeke793c5f22004-02-23 18:56:02 +000024402 "include/Support/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_map" ;;
24403 "include/Support/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/Support/hash_set" ;;
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024404 "include/Support/iterator" ) CONFIG_FILES="$CONFIG_FILES include/Support/iterator" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024405 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24406 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000024407 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024408 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024409 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024410 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24411 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000024412 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24413 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024414 "test/Programs/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile" ;;
24415 "test/Programs/Makefile.programs" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.programs" ;;
John Criswell8a54a1e2004-06-22 21:35:10 +000024416 "test/Programs/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/Makefile.tests" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024417 "test/Programs/TEST.aa.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.Makefile" ;;
24418 "test/Programs/TEST.dsgraph.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.report" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024419 "test/Programs/TEST.aa.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.aa.report" ;;
24420 "test/Programs/TEST.example.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.example.Makefile" ;;
24421 "test/Programs/TEST.nightly.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.Makefile" ;;
24422 "test/Programs/TEST.buildrepo.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.buildrepo.Makefile" ;;
24423 "test/Programs/TEST.jit.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.Makefile" ;;
24424 "test/Programs/TEST.nightly.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.nightly.report" ;;
24425 "test/Programs/TEST.dsgraph.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.Makefile" ;;
24426 "test/Programs/TEST.jit.report" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.jit.report" ;;
24427 "test/Programs/TEST.typesafe.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.typesafe.Makefile" ;;
24428 "test/Programs/TEST.dsgraph.gnuplot" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.dsgraph.gnuplot" ;;
John Criswell878be7d2004-02-24 21:43:38 +000024429 "test/Programs/TEST.vtl.Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/TEST.vtl.Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024430 "test/Programs/External/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/Makefile" ;;
24431 "test/Programs/External/SPEC/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile" ;;
John Criswell613758d2003-09-11 18:03:50 +000024432 "test/Programs/External/SPEC/Makefile.spec" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024433 "test/Programs/External/SPEC/Makefile.spec2000" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec2000" ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000024434 "test/Programs/External/SPEC/Makefile.spec95" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/External/SPEC/Makefile.spec95" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024435 "test/Programs/MultiSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile" ;;
24436 "test/Programs/MultiSource/Makefile.multisrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Makefile.multisrc" ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000024437 "test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in" ;;
24438 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile" ;;
24439 "test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in" ;;
24440 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile" ;;
24441 "test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in" ;;
24442 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile" ;;
24443 "test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in" ;;
24444 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile" ;;
24445 "test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in" ;;
24446 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile" ;;
24447 "test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in" ;;
24448 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile" ;;
24449 "test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024450 "test/Programs/SingleSource/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile" ;;
24451 "test/Programs/SingleSource/Makefile.singlesrc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/Makefile.singlesrc" ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000024452 "test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024453 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024454 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024455 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
John Criswell7a73b802003-06-30 21:59:07 +000024456 "include/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/Config/config.h" ;;
24457 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24458echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24459 { (exit 1); exit 1; }; };;
24460 esac
24461done
24462
24463# If the user did not use the arguments to specify the items to instantiate,
24464# then the envvar interface is used. Set only those that are not.
24465# We use the long form for the default assignment because of an extremely
24466# bizarre bug on SunOS 4.1.3.
24467if $ac_need_defaults; then
24468 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24469 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
John Criswellc764fbc2003-09-06 15:17:13 +000024470 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000024471fi
24472
John Criswell0c38eaf2003-09-10 15:17:25 +000024473# Have a temporary directory for convenience. Make it in the build tree
24474# simply because there is no reason to put it here, and in addition,
24475# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000024476# Create a temporary directory, and hook for its removal unless debugging.
24477$debug ||
24478{
24479 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24480 trap '{ (exit 1); exit 1; }' 1 2 13 15
24481}
24482
24483# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000024484
John Criswell7a73b802003-06-30 21:59:07 +000024485{
John Criswell0c38eaf2003-09-10 15:17:25 +000024486 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000024487 test -n "$tmp" && test -d "$tmp"
24488} ||
24489{
John Criswell0c38eaf2003-09-10 15:17:25 +000024490 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000024491 (umask 077 && mkdir $tmp)
24492} ||
24493{
John Criswell0c38eaf2003-09-10 15:17:25 +000024494 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000024495 { (exit 1); exit 1; }
24496}
24497
24498_ACEOF
24499
24500cat >>$CONFIG_STATUS <<_ACEOF
24501
24502#
24503# CONFIG_FILES section.
24504#
24505
24506# No need to generate the scripts if there are no CONFIG_FILES.
24507# This happens for instance when ./config.status config.h
24508if test -n "\$CONFIG_FILES"; then
24509 # Protect against being on the right side of a sed subst in config.status.
24510 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24511 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24512s,@SHELL@,$SHELL,;t t
24513s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24514s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24515s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24516s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24517s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24518s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24519s,@exec_prefix@,$exec_prefix,;t t
24520s,@prefix@,$prefix,;t t
24521s,@program_transform_name@,$program_transform_name,;t t
24522s,@bindir@,$bindir,;t t
24523s,@sbindir@,$sbindir,;t t
24524s,@libexecdir@,$libexecdir,;t t
24525s,@datadir@,$datadir,;t t
24526s,@sysconfdir@,$sysconfdir,;t t
24527s,@sharedstatedir@,$sharedstatedir,;t t
24528s,@localstatedir@,$localstatedir,;t t
24529s,@libdir@,$libdir,;t t
24530s,@includedir@,$includedir,;t t
24531s,@oldincludedir@,$oldincludedir,;t t
24532s,@infodir@,$infodir,;t t
24533s,@mandir@,$mandir,;t t
24534s,@build_alias@,$build_alias,;t t
24535s,@host_alias@,$host_alias,;t t
24536s,@target_alias@,$target_alias,;t t
24537s,@DEFS@,$DEFS,;t t
24538s,@ECHO_C@,$ECHO_C,;t t
24539s,@ECHO_N@,$ECHO_N,;t t
24540s,@ECHO_T@,$ECHO_T,;t t
24541s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000024542s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024543s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24544s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24545s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24546s,@build@,$build,;t t
24547s,@build_cpu@,$build_cpu,;t t
24548s,@build_vendor@,$build_vendor,;t t
24549s,@build_os@,$build_os,;t t
24550s,@host@,$host,;t t
24551s,@host_cpu@,$host_cpu,;t t
24552s,@host_vendor@,$host_vendor,;t t
24553s,@host_os@,$host_os,;t t
24554s,@target@,$target,;t t
24555s,@target_cpu@,$target_cpu,;t t
24556s,@target_vendor@,$target_vendor,;t t
24557s,@target_os@,$target_os,;t t
24558s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024559s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000024560s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024561s,@CXX@,$CXX,;t t
24562s,@CXXFLAGS@,$CXXFLAGS,;t t
24563s,@LDFLAGS@,$LDFLAGS,;t t
24564s,@CPPFLAGS@,$CPPFLAGS,;t t
24565s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24566s,@EXEEXT@,$EXEEXT,;t t
24567s,@OBJEXT@,$OBJEXT,;t t
24568s,@CC@,$CC,;t t
24569s,@CFLAGS@,$CFLAGS,;t t
24570s,@ac_ct_CC@,$ac_ct_CC,;t t
24571s,@CPP@,$CPP,;t t
24572s,@ifGNUmake@,$ifGNUmake,;t t
24573s,@LEX@,$LEX,;t t
24574s,@LEXLIB@,$LEXLIB,;t t
24575s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24576s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000024577s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024578s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024579s,@LN_S@,$LN_S,;t t
24580s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024581s,@AR@,$AR,;t t
24582s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024583s,@RANLIB@,$RANLIB,;t t
24584s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24585s,@STRIP@,$STRIP,;t t
24586s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024587s,@CXXCPP@,$CXXCPP,;t t
24588s,@F77@,$F77,;t t
24589s,@FFLAGS@,$FFLAGS,;t t
24590s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024591s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024592s,@DOT@,$DOT,;t t
24593s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000024594s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000024595s,@PYTHON@,$PYTHON,;t t
24596s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000024597s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024598s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24599s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
John Criswell7ed43ad2004-07-19 16:12:29 +000024600s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
John Criswell0021c312004-02-13 21:57:29 +000024601s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000024602s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24603s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24604s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24605s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24606s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24607s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000024608s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24609s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24610s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024611s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024612s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024613s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswellcf2e9f72004-02-10 22:36:35 +000024614s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24615s,@USE_SPEC95@,$USE_SPEC95,;t t
Brian Gaekee773b862004-04-16 17:13:44 +000024616s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24617s,@USE_SPEC2000@,$USE_SPEC2000,;t t
John Criswell0538d422004-02-20 22:30:22 +000024618s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24619s,@USE_POVRAY@,$USE_POVRAY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024620s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000024621s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024622s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000024623s,@LLVMCC1@,$LLVMCC1,;t t
24624s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024625s,@BCR@,$BCR,;t t
24626s,@PAPIDIR@,$PAPIDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000024627s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000024628s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24629s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24630s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24631s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24632s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24633s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24634s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24635s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24636s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24637s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000024638s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000024639s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024640CEOF
24641
24642_ACEOF
24643
24644 cat >>$CONFIG_STATUS <<\_ACEOF
24645 # Split the substitutions into bite-sized pieces for seds with
24646 # small command number limits, like on Digital OSF/1 and HP-UX.
24647 ac_max_sed_lines=48
24648 ac_sed_frag=1 # Number of current file.
24649 ac_beg=1 # First line for current file.
24650 ac_end=$ac_max_sed_lines # Line after last line for current file.
24651 ac_more_lines=:
24652 ac_sed_cmds=
24653 while $ac_more_lines; do
24654 if test $ac_beg -gt 1; then
24655 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24656 else
24657 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24658 fi
24659 if test ! -s $tmp/subs.frag; then
24660 ac_more_lines=false
24661 else
24662 # The purpose of the label and of the branching condition is to
24663 # speed up the sed processing (if there are no `@' at all, there
24664 # is no need to browse any of the substitutions).
24665 # These are the two extra sed commands mentioned above.
24666 (echo ':t
24667 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24668 if test -z "$ac_sed_cmds"; then
Reid Spencer2b51a082004-08-04 00:34:49 +000024669 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024670 else
Reid Spencer2b51a082004-08-04 00:34:49 +000024671 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024672 fi
24673 ac_sed_frag=`expr $ac_sed_frag + 1`
24674 ac_beg=$ac_end
24675 ac_end=`expr $ac_end + $ac_max_sed_lines`
24676 fi
24677 done
24678 if test -z "$ac_sed_cmds"; then
24679 ac_sed_cmds=cat
24680 fi
24681fi # test -n "$CONFIG_FILES"
24682
24683_ACEOF
24684cat >>$CONFIG_STATUS <<\_ACEOF
24685for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24686 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24687 case $ac_file in
24688 - | *:- | *:-:* ) # input from stdin
Reid Spencer2b51a082004-08-04 00:34:49 +000024689 cat >$tmp/stdin
24690 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24691 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024692 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2b51a082004-08-04 00:34:49 +000024693 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024694 * ) ac_file_in=$ac_file.in ;;
24695 esac
24696
24697 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24698 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24699$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000024700 X"$ac_file" : 'X\(//\)[^/]' \| \
24701 X"$ac_file" : 'X\(//\)$' \| \
24702 X"$ac_file" : 'X\(/\)' \| \
24703 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000024704echo X"$ac_file" |
24705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24706 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24707 /^X\(\/\/\)$/{ s//\1/; q; }
24708 /^X\(\/\).*/{ s//\1/; q; }
24709 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024710 { if $as_mkdir_p; then
24711 mkdir -p "$ac_dir"
24712 else
24713 as_dir="$ac_dir"
24714 as_dirs=
24715 while test ! -d "$as_dir"; do
24716 as_dirs="$as_dir $as_dirs"
24717 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24718$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000024719 X"$as_dir" : 'X\(//\)[^/]' \| \
24720 X"$as_dir" : 'X\(//\)$' \| \
24721 X"$as_dir" : 'X\(/\)' \| \
24722 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000024723echo X"$as_dir" |
24724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24725 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24726 /^X\(\/\/\)$/{ s//\1/; q; }
24727 /^X\(\/\).*/{ s//\1/; q; }
24728 s/.*/./; q'`
24729 done
24730 test ! -n "$as_dirs" || mkdir $as_dirs
24731 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24732echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24733 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024734
24735 ac_builddir=.
24736
24737if test "$ac_dir" != .; then
24738 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24739 # A "../" for each directory in $ac_dir_suffix.
24740 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24741else
24742 ac_dir_suffix= ac_top_builddir=
24743fi
24744
24745case $srcdir in
24746 .) # No --srcdir option. We are building in place.
24747 ac_srcdir=.
24748 if test -z "$ac_top_builddir"; then
24749 ac_top_srcdir=.
24750 else
24751 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24752 fi ;;
24753 [\\/]* | ?:[\\/]* ) # Absolute path.
24754 ac_srcdir=$srcdir$ac_dir_suffix;
24755 ac_top_srcdir=$srcdir ;;
24756 *) # Relative path.
24757 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24758 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24759esac
Reid Spencer2b51a082004-08-04 00:34:49 +000024760
24761# Do not use `cd foo && pwd` to compute absolute paths, because
24762# the directories may not exist.
24763case `pwd` in
24764.) ac_abs_builddir="$ac_dir";;
24765*)
24766 case "$ac_dir" in
24767 .) ac_abs_builddir=`pwd`;;
24768 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24769 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24770 esac;;
24771esac
24772case $ac_abs_builddir in
24773.) ac_abs_top_builddir=${ac_top_builddir}.;;
24774*)
24775 case ${ac_top_builddir}. in
24776 .) ac_abs_top_builddir=$ac_abs_builddir;;
24777 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24778 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24779 esac;;
24780esac
24781case $ac_abs_builddir in
24782.) ac_abs_srcdir=$ac_srcdir;;
24783*)
24784 case $ac_srcdir in
24785 .) ac_abs_srcdir=$ac_abs_builddir;;
24786 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24787 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24788 esac;;
24789esac
24790case $ac_abs_builddir in
24791.) ac_abs_top_srcdir=$ac_top_srcdir;;
24792*)
24793 case $ac_top_srcdir in
24794 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24795 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24796 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24797 esac;;
24798esac
John Criswell7a73b802003-06-30 21:59:07 +000024799
24800
24801 case $INSTALL in
24802 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24803 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24804 esac
24805
24806 if test x"$ac_file" != x-; then
24807 { echo "$as_me:$LINENO: creating $ac_file" >&5
24808echo "$as_me: creating $ac_file" >&6;}
24809 rm -f "$ac_file"
24810 fi
24811 # Let's still pretend it is `configure' which instantiates (i.e., don't
24812 # use $as_me), people would be surprised to read:
24813 # /* config.h. Generated by config.status. */
24814 if test x"$ac_file" = x-; then
24815 configure_input=
24816 else
24817 configure_input="$ac_file. "
24818 fi
24819 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer2b51a082004-08-04 00:34:49 +000024820 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000024821
24822 # First look for the input files in the build tree, otherwise in the
24823 # src tree.
24824 ac_file_inputs=`IFS=:
24825 for f in $ac_file_in; do
24826 case $f in
24827 -) echo $tmp/stdin ;;
24828 [\\/$]*)
Reid Spencer2b51a082004-08-04 00:34:49 +000024829 # Absolute (can't be DOS-style, as IFS=:)
24830 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024831echo "$as_me: error: cannot find input file: $f" >&2;}
24832 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024833 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024834 *) # Relative
Reid Spencer2b51a082004-08-04 00:34:49 +000024835 if test -f "$f"; then
24836 # Build tree
24837 echo "$f"
24838 elif test -f "$srcdir/$f"; then
24839 # Source tree
24840 echo "$srcdir/$f"
24841 else
24842 # /dev/null tree
24843 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024844echo "$as_me: error: cannot find input file: $f" >&2;}
24845 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024846 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024847 esac
24848 done` || { (exit 1); exit 1; }
24849_ACEOF
24850cat >>$CONFIG_STATUS <<_ACEOF
24851 sed "$ac_vpsub
24852$extrasub
24853_ACEOF
24854cat >>$CONFIG_STATUS <<\_ACEOF
24855:t
24856/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24857s,@configure_input@,$configure_input,;t t
24858s,@srcdir@,$ac_srcdir,;t t
24859s,@abs_srcdir@,$ac_abs_srcdir,;t t
24860s,@top_srcdir@,$ac_top_srcdir,;t t
24861s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24862s,@builddir@,$ac_builddir,;t t
24863s,@abs_builddir@,$ac_abs_builddir,;t t
24864s,@top_builddir@,$ac_top_builddir,;t t
24865s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24866s,@INSTALL@,$ac_INSTALL,;t t
24867" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24868 rm -f $tmp/stdin
24869 if test x"$ac_file" != x-; then
24870 mv $tmp/out $ac_file
24871 else
24872 cat $tmp/out
24873 rm -f $tmp/out
24874 fi
24875
24876done
24877_ACEOF
24878cat >>$CONFIG_STATUS <<\_ACEOF
24879
24880#
24881# CONFIG_HEADER section.
24882#
24883
24884# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24885# NAME is the cpp macro being defined and VALUE is the value it is being given.
24886#
24887# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer2b51a082004-08-04 00:34:49 +000024888ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24889ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000024890ac_dC=' '
24891ac_dD=',;t'
24892# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer2b51a082004-08-04 00:34:49 +000024893ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000024894ac_uB='$,\1#\2define\3'
24895ac_uC=' '
24896ac_uD=',;t'
24897
24898for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24899 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24900 case $ac_file in
24901 - | *:- | *:-:* ) # input from stdin
Reid Spencer2b51a082004-08-04 00:34:49 +000024902 cat >$tmp/stdin
24903 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24904 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024905 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer2b51a082004-08-04 00:34:49 +000024906 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024907 * ) ac_file_in=$ac_file.in ;;
24908 esac
24909
24910 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24911echo "$as_me: creating $ac_file" >&6;}
24912
24913 # First look for the input files in the build tree, otherwise in the
24914 # src tree.
24915 ac_file_inputs=`IFS=:
24916 for f in $ac_file_in; do
24917 case $f in
24918 -) echo $tmp/stdin ;;
24919 [\\/$]*)
Reid Spencer2b51a082004-08-04 00:34:49 +000024920 # Absolute (can't be DOS-style, as IFS=:)
24921 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024922echo "$as_me: error: cannot find input file: $f" >&2;}
24923 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024924 # Do quote $f, to prevent DOS paths from being IFS'd.
24925 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024926 *) # Relative
Reid Spencer2b51a082004-08-04 00:34:49 +000024927 if test -f "$f"; then
24928 # Build tree
24929 echo "$f"
24930 elif test -f "$srcdir/$f"; then
24931 # Source tree
24932 echo "$srcdir/$f"
24933 else
24934 # /dev/null tree
24935 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024936echo "$as_me: error: cannot find input file: $f" >&2;}
24937 { (exit 1); exit 1; }; }
Reid Spencer2b51a082004-08-04 00:34:49 +000024938 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024939 esac
24940 done` || { (exit 1); exit 1; }
24941 # Remove the trailing spaces.
Reid Spencer2b51a082004-08-04 00:34:49 +000024942 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000024943
24944_ACEOF
24945
24946# Transform confdefs.h into two sed scripts, `conftest.defines' and
24947# `conftest.undefs', that substitutes the proper values into
24948# config.h.in to produce config.h. The first handles `#define'
24949# templates, and the second `#undef' templates.
24950# And first: Protect against being on the right side of a sed subst in
24951# config.status. Protect against being in an unquoted here document
24952# in config.status.
24953rm -f conftest.defines conftest.undefs
24954# Using a here document instead of a string reduces the quoting nightmare.
24955# Putting comments in sed scripts is not portable.
24956#
24957# `end' is used to avoid that the second main sed command (meant for
24958# 0-ary CPP macros) applies to n-ary macro definitions.
24959# See the Autoconf documentation for `clear'.
24960cat >confdef2sed.sed <<\_ACEOF
24961s/[\\&,]/\\&/g
24962s,[\\$`],\\&,g
24963t clear
24964: clear
Reid Spencer2b51a082004-08-04 00:34:49 +000024965s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024966t end
Reid Spencer2b51a082004-08-04 00:34:49 +000024967s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024968: end
24969_ACEOF
24970# If some macros were called several times there might be several times
24971# the same #defines, which is useless. Nevertheless, we may not want to
24972# sort them, since we want the *last* AC-DEFINE to be honored.
24973uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24974sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24975rm -f confdef2sed.sed
24976
24977# This sed command replaces #undef with comments. This is necessary, for
24978# example, in the case of _POSIX_SOURCE, which is predefined and required
24979# on some systems where configure will not decide to define it.
24980cat >>conftest.undefs <<\_ACEOF
Reid Spencer2b51a082004-08-04 00:34:49 +000024981s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000024982_ACEOF
24983
24984# Break up conftest.defines because some shells have a limit on the size
24985# of here documents, and old seds have small limits too (100 cmds).
24986echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer2b51a082004-08-04 00:34:49 +000024987echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024988echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24989echo ' :' >>$CONFIG_STATUS
24990rm -f conftest.tail
24991while grep . conftest.defines >/dev/null
24992do
24993 # Write a limited-size here document to $tmp/defines.sed.
24994 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24995 # Speed up: don't consider the non `#define' lines.
Reid Spencer2b51a082004-08-04 00:34:49 +000024996 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024997 # Work around the forget-to-reset-the-flag bug.
24998 echo 't clr' >>$CONFIG_STATUS
24999 echo ': clr' >>$CONFIG_STATUS
25000 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25001 echo 'CEOF
25002 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25003 rm -f $tmp/in
25004 mv $tmp/out $tmp/in
25005' >>$CONFIG_STATUS
25006 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25007 rm -f conftest.defines
25008 mv conftest.tail conftest.defines
25009done
25010rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000025011echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025012echo >>$CONFIG_STATUS
25013
25014# Break up conftest.undefs because some shells have a limit on the size
25015# of here documents, and old seds have small limits too (100 cmds).
25016echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25017rm -f conftest.tail
25018while grep . conftest.undefs >/dev/null
25019do
25020 # Write a limited-size here document to $tmp/undefs.sed.
25021 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25022 # Speed up: don't consider the non `#undef'
Reid Spencer2b51a082004-08-04 00:34:49 +000025023 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000025024 # Work around the forget-to-reset-the-flag bug.
25025 echo 't clr' >>$CONFIG_STATUS
25026 echo ': clr' >>$CONFIG_STATUS
25027 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25028 echo 'CEOF
25029 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25030 rm -f $tmp/in
25031 mv $tmp/out $tmp/in
25032' >>$CONFIG_STATUS
25033 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25034 rm -f conftest.undefs
25035 mv conftest.tail conftest.undefs
25036done
25037rm -f conftest.undefs
25038
25039cat >>$CONFIG_STATUS <<\_ACEOF
25040 # Let's still pretend it is `configure' which instantiates (i.e., don't
25041 # use $as_me), people would be surprised to read:
25042 # /* config.h. Generated by config.status. */
25043 if test x"$ac_file" = x-; then
25044 echo "/* Generated by configure. */" >$tmp/config.h
25045 else
25046 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25047 fi
25048 cat $tmp/in >>$tmp/config.h
25049 rm -f $tmp/in
25050 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000025051 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000025052 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25053echo "$as_me: $ac_file is unchanged" >&6;}
25054 else
25055 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25056$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025057 X"$ac_file" : 'X\(//\)[^/]' \| \
25058 X"$ac_file" : 'X\(//\)$' \| \
25059 X"$ac_file" : 'X\(/\)' \| \
25060 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000025061echo X"$ac_file" |
25062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25063 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25064 /^X\(\/\/\)$/{ s//\1/; q; }
25065 /^X\(\/\).*/{ s//\1/; q; }
25066 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000025067 { if $as_mkdir_p; then
25068 mkdir -p "$ac_dir"
25069 else
25070 as_dir="$ac_dir"
25071 as_dirs=
25072 while test ! -d "$as_dir"; do
25073 as_dirs="$as_dir $as_dirs"
25074 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25075$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025076 X"$as_dir" : 'X\(//\)[^/]' \| \
25077 X"$as_dir" : 'X\(//\)$' \| \
25078 X"$as_dir" : 'X\(/\)' \| \
25079 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025080echo X"$as_dir" |
25081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25082 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25083 /^X\(\/\/\)$/{ s//\1/; q; }
25084 /^X\(\/\).*/{ s//\1/; q; }
25085 s/.*/./; q'`
25086 done
25087 test ! -n "$as_dirs" || mkdir $as_dirs
25088 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25089echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25090 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025091
25092 rm -f $ac_file
25093 mv $tmp/config.h $ac_file
25094 fi
25095 else
25096 cat $tmp/config.h
25097 rm -f $tmp/config.h
25098 fi
25099done
25100_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000025101cat >>$CONFIG_STATUS <<\_ACEOF
25102
25103#
25104# CONFIG_COMMANDS section.
25105#
25106for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25107 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25108 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25109 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25110$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025111 X"$ac_dest" : 'X\(//\)[^/]' \| \
25112 X"$ac_dest" : 'X\(//\)$' \| \
25113 X"$ac_dest" : 'X\(/\)' \| \
25114 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000025115echo X"$ac_dest" |
25116 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25117 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25118 /^X\(\/\/\)$/{ s//\1/; q; }
25119 /^X\(\/\).*/{ s//\1/; q; }
25120 s/.*/./; q'`
Reid Spencer2b51a082004-08-04 00:34:49 +000025121 { if $as_mkdir_p; then
25122 mkdir -p "$ac_dir"
25123 else
25124 as_dir="$ac_dir"
25125 as_dirs=
25126 while test ! -d "$as_dir"; do
25127 as_dirs="$as_dir $as_dirs"
25128 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25129$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25130 X"$as_dir" : 'X\(//\)[^/]' \| \
25131 X"$as_dir" : 'X\(//\)$' \| \
25132 X"$as_dir" : 'X\(/\)' \| \
25133 . : '\(.\)' 2>/dev/null ||
25134echo X"$as_dir" |
25135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25136 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25137 /^X\(\/\/\)$/{ s//\1/; q; }
25138 /^X\(\/\).*/{ s//\1/; q; }
25139 s/.*/./; q'`
25140 done
25141 test ! -n "$as_dirs" || mkdir $as_dirs
25142 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25143echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25144 { (exit 1); exit 1; }; }; }
25145
John Criswellc764fbc2003-09-06 15:17:13 +000025146 ac_builddir=.
25147
25148if test "$ac_dir" != .; then
25149 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25150 # A "../" for each directory in $ac_dir_suffix.
25151 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25152else
25153 ac_dir_suffix= ac_top_builddir=
25154fi
25155
25156case $srcdir in
25157 .) # No --srcdir option. We are building in place.
25158 ac_srcdir=.
25159 if test -z "$ac_top_builddir"; then
25160 ac_top_srcdir=.
25161 else
25162 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25163 fi ;;
25164 [\\/]* | ?:[\\/]* ) # Absolute path.
25165 ac_srcdir=$srcdir$ac_dir_suffix;
25166 ac_top_srcdir=$srcdir ;;
25167 *) # Relative path.
25168 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25169 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25170esac
Reid Spencer2b51a082004-08-04 00:34:49 +000025171
25172# Do not use `cd foo && pwd` to compute absolute paths, because
25173# the directories may not exist.
25174case `pwd` in
25175.) ac_abs_builddir="$ac_dir";;
25176*)
25177 case "$ac_dir" in
25178 .) ac_abs_builddir=`pwd`;;
25179 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25180 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25181 esac;;
25182esac
25183case $ac_abs_builddir in
25184.) ac_abs_top_builddir=${ac_top_builddir}.;;
25185*)
25186 case ${ac_top_builddir}. in
25187 .) ac_abs_top_builddir=$ac_abs_builddir;;
25188 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25189 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25190 esac;;
25191esac
25192case $ac_abs_builddir in
25193.) ac_abs_srcdir=$ac_srcdir;;
25194*)
25195 case $ac_srcdir in
25196 .) ac_abs_srcdir=$ac_abs_builddir;;
25197 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25198 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25199 esac;;
25200esac
25201case $ac_abs_builddir in
25202.) ac_abs_top_srcdir=$ac_top_srcdir;;
25203*)
25204 case $ac_top_srcdir in
25205 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25206 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25207 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25208 esac;;
25209esac
John Criswellc764fbc2003-09-06 15:17:13 +000025210
25211
25212 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25213echo "$as_me: executing $ac_dest commands" >&6;}
25214 case $ac_dest in
25215 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25216 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025217 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025218 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025219 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025220 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25221 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000025222 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25223 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 +000025224 test/Programs/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile test/Programs/Makefile ;;
25225 test/Programs/Makefile.programs ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.programs test/Programs/Makefile.programs ;;
John Criswell8a54a1e2004-06-22 21:35:10 +000025226 test/Programs/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/Makefile.tests test/Programs/Makefile.tests ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025227 test/Programs/TEST.aa.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.Makefile test/Programs/TEST.aa.Makefile ;;
25228 test/Programs/TEST.dsgraph.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.report test/Programs/TEST.dsgraph.report ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025229 test/Programs/TEST.aa.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.aa.report test/Programs/TEST.aa.report ;;
25230 test/Programs/TEST.example.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.example.Makefile test/Programs/TEST.example.Makefile ;;
25231 test/Programs/TEST.nightly.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.Makefile test/Programs/TEST.nightly.Makefile ;;
25232 test/Programs/TEST.buildrepo.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.buildrepo.Makefile test/Programs/TEST.buildrepo.Makefile ;;
25233 test/Programs/TEST.jit.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.Makefile test/Programs/TEST.jit.Makefile ;;
25234 test/Programs/TEST.nightly.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.nightly.report test/Programs/TEST.nightly.report ;;
25235 test/Programs/TEST.dsgraph.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.Makefile test/Programs/TEST.dsgraph.Makefile ;;
25236 test/Programs/TEST.jit.report ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.jit.report test/Programs/TEST.jit.report ;;
25237 test/Programs/TEST.typesafe.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.typesafe.Makefile test/Programs/TEST.typesafe.Makefile ;;
25238 test/Programs/TEST.dsgraph.gnuplot ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.dsgraph.gnuplot test/Programs/TEST.dsgraph.gnuplot ;;
John Criswell878be7d2004-02-24 21:43:38 +000025239 test/Programs/TEST.vtl.Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/TEST.vtl.Makefile test/Programs/TEST.vtl.Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025240 test/Programs/External/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/Makefile test/Programs/External/Makefile ;;
25241 test/Programs/External/SPEC/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile test/Programs/External/SPEC/Makefile ;;
John Criswell613758d2003-09-11 18:03:50 +000025242 test/Programs/External/SPEC/Makefile.spec ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec test/Programs/External/SPEC/Makefile.spec ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000025243 test/Programs/External/SPEC/Makefile.spec2000 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec2000 test/Programs/External/SPEC/Makefile.spec2000 ;;
John Criswellcf2e9f72004-02-10 22:36:35 +000025244 test/Programs/External/SPEC/Makefile.spec95 ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/External/SPEC/Makefile.spec95 test/Programs/External/SPEC/Makefile.spec95 ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025245 test/Programs/MultiSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile test/Programs/MultiSource/Makefile ;;
25246 test/Programs/MultiSource/Makefile.multisrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Makefile.multisrc test/Programs/MultiSource/Makefile.multisrc ;;
Misha Brukman811ce9f2003-11-12 22:16:51 +000025247 test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in test/Programs/MultiSource/Benchmarks/FreeBench/analyzer/test.in ;;
25248 test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/distray/Makefile ;;
25249 test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in test/Programs/MultiSource/Benchmarks/FreeBench/distray/test.in ;;
25250 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/Makefile ;;
25251 test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in test/Programs/MultiSource/Benchmarks/FreeBench/fourinarow/test.in ;;
25252 test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/mason/Makefile ;;
25253 test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in test/Programs/MultiSource/Benchmarks/FreeBench/mason/test.in ;;
25254 test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/neural/Makefile ;;
25255 test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in test/Programs/MultiSource/Benchmarks/FreeBench/neural/test.in ;;
25256 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/Makefile ;;
25257 test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pcompress2/test.in ;;
25258 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile test/Programs/MultiSource/Benchmarks/FreeBench/pifft/Makefile ;;
25259 test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in test/Programs/MultiSource/Benchmarks/FreeBench/pifft/test.in ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025260 test/Programs/SingleSource/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile test/Programs/SingleSource/Makefile ;;
25261 test/Programs/SingleSource/Makefile.singlesrc ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/Makefile.singlesrc test/Programs/SingleSource/Makefile.singlesrc ;;
Alkis Evlogimenos271143f2004-02-26 04:14:10 +000025262 test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile test/Programs/SingleSource/UnitTests/SetjmpLongjmp/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025263 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025264 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025265 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025266 esac
25267done
25268_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025269
25270cat >>$CONFIG_STATUS <<\_ACEOF
25271
25272{ (exit 0); exit 0; }
25273_ACEOF
25274chmod +x $CONFIG_STATUS
25275ac_clean_files=$ac_clean_files_save
25276
25277
25278# configure is writing to config.log, and then calls config.status.
25279# config.status does its own redirection, appending to config.log.
25280# Unfortunately, on DOS this fails, as config.log is still kept open
25281# by configure, so config.status won't be able to write to it; its
25282# output is simply discarded. So we exec the FD to /dev/null,
25283# effectively closing config.log, so it can be properly (re)opened and
25284# appended to by config.status. When coming back to configure, we
25285# need to make the FD available again.
25286if test "$no_create" != yes; then
25287 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000025288 ac_config_status_args=
25289 test "$silent" = yes &&
25290 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000025291 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000025292 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000025293 exec 5>>config.log
25294 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25295 # would make configure fail if this is the last instruction.
25296 $ac_cs_success || { (exit 1); exit 1; }
25297fi
25298
John Criswell12399a12003-09-30 15:55:44 +000025299#
25300# CONFIG_SUBDIRS section.
25301#
25302if test "$no_recursion" != yes; then
25303
25304 # Remove --cache-file and --srcdir arguments so they do not pile up.
25305 ac_sub_configure_args=
25306 ac_prev=
25307 for ac_arg in $ac_configure_args; do
25308 if test -n "$ac_prev"; then
25309 ac_prev=
25310 continue
25311 fi
25312 case $ac_arg in
25313 -cache-file | --cache-file | --cache-fil | --cache-fi \
25314 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25315 ac_prev=cache_file ;;
25316 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25317 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25318 | --c=*)
25319 ;;
25320 --config-cache | -C)
25321 ;;
25322 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25323 ac_prev=srcdir ;;
25324 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25325 ;;
25326 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25327 ac_prev=prefix ;;
25328 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25329 ;;
25330 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25331 esac
25332 done
25333
25334 # Always prepend --prefix to ensure using the same prefix
25335 # in subdir configurations.
25336 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25337
25338 ac_popdir=`pwd`
25339 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25340
25341 # Do not complain, so a configure script can configure whichever
25342 # parts of a large source tree are present.
25343 test -d $srcdir/$ac_dir || continue
25344
25345 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25346echo "$as_me: configuring in $ac_dir" >&6;}
25347 { if $as_mkdir_p; then
25348 mkdir -p "$ac_dir"
25349 else
25350 as_dir="$ac_dir"
25351 as_dirs=
25352 while test ! -d "$as_dir"; do
25353 as_dirs="$as_dir $as_dirs"
25354 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25355$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer2b51a082004-08-04 00:34:49 +000025356 X"$as_dir" : 'X\(//\)[^/]' \| \
25357 X"$as_dir" : 'X\(//\)$' \| \
25358 X"$as_dir" : 'X\(/\)' \| \
25359 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000025360echo X"$as_dir" |
25361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25362 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25363 /^X\(\/\/\)$/{ s//\1/; q; }
25364 /^X\(\/\).*/{ s//\1/; q; }
25365 s/.*/./; q'`
25366 done
25367 test ! -n "$as_dirs" || mkdir $as_dirs
25368 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25369echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25370 { (exit 1); exit 1; }; }; }
25371
25372 ac_builddir=.
25373
25374if test "$ac_dir" != .; then
25375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25376 # A "../" for each directory in $ac_dir_suffix.
25377 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25378else
25379 ac_dir_suffix= ac_top_builddir=
25380fi
25381
25382case $srcdir in
25383 .) # No --srcdir option. We are building in place.
25384 ac_srcdir=.
25385 if test -z "$ac_top_builddir"; then
25386 ac_top_srcdir=.
25387 else
25388 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25389 fi ;;
25390 [\\/]* | ?:[\\/]* ) # Absolute path.
25391 ac_srcdir=$srcdir$ac_dir_suffix;
25392 ac_top_srcdir=$srcdir ;;
25393 *) # Relative path.
25394 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25395 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25396esac
Reid Spencer2b51a082004-08-04 00:34:49 +000025397
25398# Do not use `cd foo && pwd` to compute absolute paths, because
25399# the directories may not exist.
25400case `pwd` in
25401.) ac_abs_builddir="$ac_dir";;
25402*)
25403 case "$ac_dir" in
25404 .) ac_abs_builddir=`pwd`;;
25405 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25406 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25407 esac;;
25408esac
25409case $ac_abs_builddir in
25410.) ac_abs_top_builddir=${ac_top_builddir}.;;
25411*)
25412 case ${ac_top_builddir}. in
25413 .) ac_abs_top_builddir=$ac_abs_builddir;;
25414 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25415 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25416 esac;;
25417esac
25418case $ac_abs_builddir in
25419.) ac_abs_srcdir=$ac_srcdir;;
25420*)
25421 case $ac_srcdir in
25422 .) ac_abs_srcdir=$ac_abs_builddir;;
25423 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25424 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25425 esac;;
25426esac
25427case $ac_abs_builddir in
25428.) ac_abs_top_srcdir=$ac_top_srcdir;;
25429*)
25430 case $ac_top_srcdir in
25431 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25432 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25433 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25434 esac;;
25435esac
John Criswell12399a12003-09-30 15:55:44 +000025436
25437
25438 cd $ac_dir
25439
25440 # Check for guested configure; otherwise get Cygnus style configure.
25441 if test -f $ac_srcdir/configure.gnu; then
25442 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25443 elif test -f $ac_srcdir/configure; then
25444 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25445 elif test -f $ac_srcdir/configure.in; then
25446 ac_sub_configure=$ac_configure
25447 else
25448 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25449echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25450 ac_sub_configure=
25451 fi
25452
25453 # The recursion is here.
25454 if test -n "$ac_sub_configure"; then
25455 # Make the cache file name correct relative to the subdirectory.
25456 case $cache_file in
25457 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25458 *) # Relative path.
Reid Spencer2b51a082004-08-04 00:34:49 +000025459 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000025460 esac
25461
25462 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25463echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25464 # The eval makes quoting arguments work.
25465 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer2b51a082004-08-04 00:34:49 +000025466 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25467 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000025468echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25469 { (exit 1); exit 1; }; }
25470 fi
25471
25472 cd $ac_popdir
25473 done
25474fi
25475
Brian Gaekef3b24102003-11-16 18:38:14 +000025476
25477if test $llvmgccwarn = yes
25478then
25479 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25480echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25481 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25482echo "$as_me: WARNING: ***** appear to be working." >&2;}
25483 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25484echo "$as_me: WARNING: ***** " >&2;}
25485 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25486echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25487 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25488echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25489 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25490echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25491fi
Brian Gaeke554831c2004-01-21 19:39:29 +000025492