blob: 0aa8aefe57d729e7653ff740948609d9fe8e963d [file] [log] [blame]
John Criswell7a73b802003-06-30 21:59:07 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Reid Spencer17041682004-09-05 17:48:32 +00003# Generated by GNU Autoconf 2.59 for LLVM 1.4.
John Criswell7a73b802003-06-30 21:59:07 +00004#
5# Report bugs to <llvmbugs@cs.uiuc.edu>.
6#
Reid Spencer17041682004-09-05 17:48:32 +00007# Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +00008# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
John Criswell0c38eaf2003-09-10 15:17:25 +000010## --------------------- ##
11## M4sh Initialization. ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23fi
Reid Spencer17041682004-09-05 17:48:32 +000024DUALCASE=1; export DUALCASE # for MKS sh
John Criswell0c38eaf2003-09-10 15:17:25 +000025
26# Support unset when possible.
Reid Spencer17041682004-09-05 17:48:32 +000027if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell0c38eaf2003-09-10 15:17:25 +000028 as_unset=unset
29else
30 as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45do
Reid Spencer17041682004-09-05 17:48:32 +000046 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000047 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56else
57 as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62else
63 as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154done
155;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198else
199 as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215else
216 as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222else
Reid Spencer17041682004-09-05 17:48:32 +0000223 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +0000224 as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
Reid Spencer17041682004-09-05 17:48:32 +0000230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000231
232# Sed expression to map a string onto a valid variable name.
Reid Spencer17041682004-09-05 17:48:32 +0000233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell0c38eaf2003-09-10 15:17:25 +0000234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" $as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
John Criswell7a73b802003-06-30 21:59:07 +0000245
John Criswell7a73b802003-06-30 21:59:07 +0000246
247# Check that we are running under the correct shell.
248SHELL=${CONFIG_SHELL-/bin/sh}
249
250case X$ECHO in
251X*--fallback-echo)
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
254 ;;
255esac
256
257echo=${ECHO-echo}
258if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
260 shift
261elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
263 :
John Criswell47fdd832003-07-14 16:52:07 +0000264elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
John Criswell7a73b802003-06-30 21:59:07 +0000265 # Yippee, $echo works!
266 :
267else
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
270fi
271
272if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
274 shift
275 cat <<EOF
John Criswell47fdd832003-07-14 16:52:07 +0000276$*
John Criswell7a73b802003-06-30 21:59:07 +0000277EOF
278 exit 0
279fi
280
281# The HP-UX ksh and POSIX shell print the target directory to stdout
282# if CDPATH is set.
283if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
284
285if test -z "$ECHO"; then
286if test "X${echo_test_string+set}" != Xset; then
287# find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
293 then
294 break
295 fi
296 done
297fi
298
299if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
302 :
303else
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
307 #
308 # So, first we look for a working echo in the user's PATH.
309
John Criswell47fdd832003-07-14 16:52:07 +0000310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +0000311 for dir in $PATH /usr/ucb; do
John Criswell47fdd832003-07-14 16:52:07 +0000312 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
317 echo="$dir/echo"
318 break
319 fi
320 done
John Criswell47fdd832003-07-14 16:52:07 +0000321 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +0000322
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
329 echo='print -r'
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
336 export CONFIG_SHELL
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
338 else
339 # Try using printf.
340 echo='printf %s\n'
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
344 # Cool, printf works
345 :
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 export CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
353 export SHELL
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
360 else
361 # maybe with a smaller string...
362 prev=:
363
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
366 then
367 break
368 fi
369 prev="$cmd"
370 done
371
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 else
377 # Oops. We lost completely, so just stick with echo.
378 echo=echo
379 fi
380 fi
381 fi
382 fi
383fi
384fi
385
386# Copy echo and quote the copy suitably for passing to libtool from
387# the Makefile, instead of quoting the original, which is used later.
388ECHO=$echo
389if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
391fi
392
393
394
John Criswell47fdd832003-07-14 16:52:07 +0000395
396tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
397
398tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
399
John Criswell7a73b802003-06-30 21:59:07 +0000400# Name of the host.
401# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402# so uname gets run too.
403ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
404
405exec 6>&1
406
407#
408# Initializations.
409#
410ac_default_prefix=/usr/local
John Criswell0c38eaf2003-09-10 15:17:25 +0000411ac_config_libobj_dir=.
John Criswell7a73b802003-06-30 21:59:07 +0000412cross_compiling=no
413subdirs=
414MFLAGS=
415MAKEFLAGS=
416SHELL=${CONFIG_SHELL-/bin/sh}
417
418# Maximum number of lines to put in a shell here document.
419# This variable seems obsolete. It should probably be removed, and
420# only ac_max_sed_lines should be used.
421: ${ac_max_here_lines=38}
422
423# Identity of this package.
Reid Spencer2b51a082004-08-04 00:34:49 +0000424PACKAGE_NAME='LLVM'
425PACKAGE_TARNAME='-llvm-'
Reid Spencere9de0912004-08-20 09:03:57 +0000426PACKAGE_VERSION='1.4'
427PACKAGE_STRING='LLVM 1.4'
John Criswell7a73b802003-06-30 21:59:07 +0000428PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'
429
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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +0000983 [$ac_default_prefix]
John Criswell7a73b802003-06-30 21:59:07 +0000984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Reid Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +00001169generated by GNU Autoconf 2.59
John Criswell7a73b802003-06-30 21:59:07 +00001170
Reid Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +00001260 ac_must_keep_next=false # Got value, back to normal.
John Criswell0c38eaf2003-09-10 15:17:25 +00001261 else
Reid Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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
Reid Spencer551ccae2004-09-01 22:55:40 +00001547 if test -f ${srcdir}/include/llvm/Config/config.h
John Criswell1b824322003-09-15 17:19:42 +00001548 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
Reid Spencer551ccae2004-09-01 22:55:40 +00001569 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
John Criswell392aaa32003-07-22 19:18:09 +00001570
John Criswelldc76e322004-07-23 15:40:57 +00001571
Reid Spencer551ccae2004-09-01 22:55:40 +00001572 ac_config_files="$ac_config_files Makefile.config include/llvm/Support/DataTypes.h include/llvm/Support/ThreadSupport.h include/llvm/ADT/hash_map include/llvm/ADT/hash_set include/llvm/ADT/iterator"
John Criswelldc76e322004-07-23 15:40:57 +00001573
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 tools/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001603
1604
Brian Gaekec45be042003-10-07 06:01:34 +00001605 ac_config_commands="$ac_config_commands utils/Makefile"
1606
1607
John Criswell0c38eaf2003-09-10 15:17:25 +00001608 ac_config_commands="$ac_config_commands projects/Makefile"
John Criswellc764fbc2003-09-06 15:17:13 +00001609
1610
John Criswell392aaa32003-07-22 19:18:09 +00001611
John Criswell7a73b802003-06-30 21:59:07 +00001612# Find a good install program. We prefer a C program (faster),
1613# so one script is as good as another. But avoid the broken or
1614# incompatible versions:
1615# SysV /etc/install, /usr/sbin/install
1616# SunOS /usr/etc/install
1617# IRIX /sbin/install
1618# AIX /bin/install
1619# AmigaOS /C/install, which installs bootblocks on floppy discs
1620# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1621# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1622# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Reid Spencer17041682004-09-05 17:48:32 +00001623# OS/2's system install, which has a completely different semantic
John Criswell7a73b802003-06-30 21:59:07 +00001624# ./install, which can be erroneously created by make from ./install.sh.
1625echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1626echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1627if test -z "$INSTALL"; then
1628if test "${ac_cv_path_install+set}" = set; then
1629 echo $ECHO_N "(cached) $ECHO_C" >&6
1630else
1631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1632for as_dir in $PATH
1633do
1634 IFS=$as_save_IFS
1635 test -z "$as_dir" && as_dir=.
1636 # Account for people who put trailing slashes in PATH elements.
1637case $as_dir/ in
1638 ./ | .// | /cC/* | \
1639 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Reid Spencer17041682004-09-05 17:48:32 +00001640 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
John Criswell7a73b802003-06-30 21:59:07 +00001641 /usr/ucb/* ) ;;
1642 *)
1643 # OSF1 and SCO ODT 3.0 have their own names for install.
1644 # Don't use installbsd from OSF since it installs stuff as root
1645 # by default.
1646 for ac_prog in ginstall scoinst install; do
1647 for ac_exec_ext in '' $ac_executable_extensions; do
Reid Spencer17041682004-09-05 17:48:32 +00001648 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1649 if test $ac_prog = install &&
1650 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1651 # AIX install. It has an incompatible calling convention.
1652 :
1653 elif test $ac_prog = install &&
1654 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1655 # program-specific install script used by HP pwplus--don't use.
1656 :
1657 else
1658 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1659 break 3
1660 fi
1661 fi
John Criswell7a73b802003-06-30 21:59:07 +00001662 done
1663 done
1664 ;;
1665esac
1666done
1667
1668
1669fi
1670 if test "${ac_cv_path_install+set}" = set; then
1671 INSTALL=$ac_cv_path_install
1672 else
1673 # As a last resort, use the slow shell script. We don't cache a
1674 # path for INSTALL within a source directory, because that will
1675 # break other packages using the cache if that directory is
1676 # removed, or if the path is relative.
1677 INSTALL=$ac_install_sh
1678 fi
1679fi
1680echo "$as_me:$LINENO: result: $INSTALL" >&5
1681echo "${ECHO_T}$INSTALL" >&6
1682
1683# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1684# It thinks the first close brace ends the variable substitution.
1685test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1686
1687test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1688
1689test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1690
1691
1692# Make sure we can run config.sub.
1693$ac_config_sub sun4 >/dev/null 2>&1 ||
1694 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1695echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1696 { (exit 1); exit 1; }; }
1697
1698echo "$as_me:$LINENO: checking build system type" >&5
1699echo $ECHO_N "checking build system type... $ECHO_C" >&6
1700if test "${ac_cv_build+set}" = set; then
1701 echo $ECHO_N "(cached) $ECHO_C" >&6
1702else
1703 ac_cv_build_alias=$build_alias
1704test -z "$ac_cv_build_alias" &&
1705 ac_cv_build_alias=`$ac_config_guess`
1706test -z "$ac_cv_build_alias" &&
1707 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1708echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1709 { (exit 1); exit 1; }; }
1710ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1711 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1712echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1713 { (exit 1); exit 1; }; }
1714
1715fi
1716echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1717echo "${ECHO_T}$ac_cv_build" >&6
1718build=$ac_cv_build
1719build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1720build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1721build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1722
1723
1724echo "$as_me:$LINENO: checking host system type" >&5
1725echo $ECHO_N "checking host system type... $ECHO_C" >&6
1726if test "${ac_cv_host+set}" = set; then
1727 echo $ECHO_N "(cached) $ECHO_C" >&6
1728else
1729 ac_cv_host_alias=$host_alias
1730test -z "$ac_cv_host_alias" &&
1731 ac_cv_host_alias=$ac_cv_build_alias
1732ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1733 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1734echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1735 { (exit 1); exit 1; }; }
1736
1737fi
1738echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1739echo "${ECHO_T}$ac_cv_host" >&6
1740host=$ac_cv_host
1741host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1742host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1743host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1744
1745
1746echo "$as_me:$LINENO: checking target system type" >&5
1747echo $ECHO_N "checking target system type... $ECHO_C" >&6
1748if test "${ac_cv_target+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1750else
1751 ac_cv_target_alias=$target_alias
1752test "x$ac_cv_target_alias" = "x" &&
1753 ac_cv_target_alias=$ac_cv_host_alias
1754ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1755 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1756echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1757 { (exit 1); exit 1; }; }
1758
1759fi
1760echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1761echo "${ECHO_T}$ac_cv_target" >&6
1762target=$ac_cv_target
1763target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1764target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1765target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1766
1767
1768# The aliases save the names the user supplied, while $host etc.
1769# will get canonicalized.
1770test -n "$target_alias" &&
1771 test "$program_prefix$program_suffix$program_transform_name" = \
1772 NONENONEs,x,x, &&
1773 program_prefix=${target_alias}-
1774
Reid Spencer73fb5482004-08-31 14:20:36 +00001775
1776echo "$as_me:$LINENO: checking support for generic build operating system" >&5
1777echo $ECHO_N "checking support for generic build operating system... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001778case $build in
Reid Spencer73fb5482004-08-31 14:20:36 +00001779 *-*-aix*)
1780 OS=AIX
1781
1782 platform_type="AIX"
1783 ;;
1784 *-*-cygwin*)
1785 OS=Cygwin
1786
1787 platform_type="Cygwin"
1788 ;;
1789 *-*-darwin*)
1790 OS=Darwin
1791
1792 platform_type="Darwin"
1793 ;;
1794 *-*-freebsd*)
1795 OS=Linux
1796
Reid Spencera11e4db2004-08-31 18:03:23 +00001797 platform_type="FreeBSD"
Reid Spencer73fb5482004-08-31 14:20:36 +00001798 ;;
1799 *-*-interix*)
1800 OS=SunOS
1801
Reid Spencera11e4db2004-08-31 18:03:23 +00001802 platform_type="Interix"
Reid Spencer73fb5482004-08-31 14:20:36 +00001803 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001804 *-*-linux*)
1805 OS=Linux
John Criswell7a73b802003-06-30 21:59:07 +00001806
Reid Spencerde8c47f2004-08-29 19:35:28 +00001807 platform_type="Linux"
1808 if test -d /home/vadve/lattner/local/x86/llvm-gcc
1809 then
1810 LLVMGCCDIR=/home/vadve/lattner/local/x86/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001811
Reid Spencerde8c47f2004-08-29 19:35:28 +00001812 fi
1813 ;;
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001814 *-*-solaris*)
1815 OS=SunOS
John Criswell7a73b802003-06-30 21:59:07 +00001816
Reid Spencerde8c47f2004-08-29 19:35:28 +00001817 platform_type="SunOS"
1818 if test -d /home/vadve/lattner/local/sparc/llvm-gcc
1819 then
1820 LLVMGCCDIR=/home/vadve/lattner/local/sparc/llvm-gcc/
John Criswell7a73b802003-06-30 21:59:07 +00001821
Reid Spencerde8c47f2004-08-29 19:35:28 +00001822 fi
1823 ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +00001824 *-*-win32*)
1825 OS=Win32
John Criswell7a73b802003-06-30 21:59:07 +00001826
Reid Spencerde8c47f2004-08-29 19:35:28 +00001827 platform_type="Win32"
1828 ;;
1829 *)
1830 OS=Unknown
1831
1832 platform_type="Unknown"
1833 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001834esac
1835
Reid Spencer73fb5482004-08-31 14:20:36 +00001836if test "$platform_type" = "Unknown" ; then
Reid Spencer886e9512004-08-31 01:34:10 +00001837 { { echo "$as_me:$LINENO: error: Platform is unknown, configure can't continue" >&5
1838echo "$as_me: error: Platform is unknown, configure can't continue" >&2;}
1839 { (exit 1); exit 1; }; }
1840fi
1841
Reid Spencerde8c47f2004-08-29 19:35:28 +00001842 ac_config_links="$ac_config_links lib/System/platform:lib/System/$platform_type"
1843
1844
Reid Spencer73fb5482004-08-31 14:20:36 +00001845echo "$as_me:$LINENO: result: $platform_type" >&5
1846echo "${ECHO_T}$platform_type" >&6
1847
1848echo "$as_me:$LINENO: checking target architecture" >&5
1849echo $ECHO_N "checking target architecture... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00001850case $target in
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001851 sparc*-*-solaris*) target=sparcv9-sun-solaris2.8
John Criswell7a73b802003-06-30 21:59:07 +00001852
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001853 ;;
John Criswell7a73b802003-06-30 21:59:07 +00001854esac
1855
John Criswell76595452003-07-01 22:07:39 +00001856case $target in
Reid Spencer73fb5482004-08-31 14:20:36 +00001857 i*86-*)
1858 ARCH="x86"
1859 ARCH=x86
John Criswell76595452003-07-01 22:07:39 +00001860
Reid Spencer73fb5482004-08-31 14:20:36 +00001861 ;;
1862 sparc*-*)
1863 ARCH="Sparc"
1864 ARCH=Sparc
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001865
Reid Spencer73fb5482004-08-31 14:20:36 +00001866 ;;
1867 powerpc*-*)
1868 ARCH="PowerPC"
1869 ARCH=PowerPC
Brian Gaeke7fe1d162003-11-17 00:31:43 +00001870
Reid Spencer73fb5482004-08-31 14:20:36 +00001871 ;;
1872 *)
1873 ARCH="Unknown"
1874 ARCH=Unknown
John Criswell76595452003-07-01 22:07:39 +00001875
Reid Spencer73fb5482004-08-31 14:20:36 +00001876 ;;
John Criswell76595452003-07-01 22:07:39 +00001877esac
1878
Reid Spencer73fb5482004-08-31 14:20:36 +00001879echo "$as_me:$LINENO: result: $ARCH" >&5
1880echo "${ECHO_T}$ARCH" >&6
1881
John Criswell7a73b802003-06-30 21:59:07 +00001882ac_ext=cc
1883ac_cpp='$CXXCPP $CPPFLAGS'
1884ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1885ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1886ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1887if test -n "$ac_tool_prefix"; then
1888 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1889 do
1890 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1891set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1892echo "$as_me:$LINENO: checking for $ac_word" >&5
1893echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1894if test "${ac_cv_prog_CXX+set}" = set; then
1895 echo $ECHO_N "(cached) $ECHO_C" >&6
1896else
1897 if test -n "$CXX"; then
1898 ac_cv_prog_CXX="$CXX" # Let the user override the test.
1899else
1900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1901for as_dir in $PATH
1902do
1903 IFS=$as_save_IFS
1904 test -z "$as_dir" && as_dir=.
1905 for ac_exec_ext in '' $ac_executable_extensions; do
1906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1907 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 break 2
1910 fi
1911done
1912done
1913
1914fi
1915fi
1916CXX=$ac_cv_prog_CXX
1917if test -n "$CXX"; then
1918 echo "$as_me:$LINENO: result: $CXX" >&5
1919echo "${ECHO_T}$CXX" >&6
1920else
1921 echo "$as_me:$LINENO: result: no" >&5
1922echo "${ECHO_T}no" >&6
1923fi
1924
1925 test -n "$CXX" && break
1926 done
1927fi
1928if test -z "$CXX"; then
1929 ac_ct_CXX=$CXX
1930 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1931do
1932 # Extract the first word of "$ac_prog", so it can be a program name with args.
1933set dummy $ac_prog; ac_word=$2
1934echo "$as_me:$LINENO: checking for $ac_word" >&5
1935echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1936if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1937 echo $ECHO_N "(cached) $ECHO_C" >&6
1938else
1939 if test -n "$ac_ct_CXX"; then
1940 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1941else
1942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1943for as_dir in $PATH
1944do
1945 IFS=$as_save_IFS
1946 test -z "$as_dir" && as_dir=.
1947 for ac_exec_ext in '' $ac_executable_extensions; do
1948 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1949 ac_cv_prog_ac_ct_CXX="$ac_prog"
1950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1951 break 2
1952 fi
1953done
1954done
1955
1956fi
1957fi
1958ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1959if test -n "$ac_ct_CXX"; then
1960 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1961echo "${ECHO_T}$ac_ct_CXX" >&6
1962else
1963 echo "$as_me:$LINENO: result: no" >&5
1964echo "${ECHO_T}no" >&6
1965fi
1966
1967 test -n "$ac_ct_CXX" && break
1968done
1969test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1970
1971 CXX=$ac_ct_CXX
1972fi
1973
1974
1975# Provide some information about the compiler.
1976echo "$as_me:$LINENO:" \
1977 "checking for C++ compiler version" >&5
1978ac_compiler=`set X $ac_compile; echo $2`
1979{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1980 (eval $ac_compiler --version </dev/null >&5) 2>&5
1981 ac_status=$?
1982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983 (exit $ac_status); }
1984{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1985 (eval $ac_compiler -v </dev/null >&5) 2>&5
1986 ac_status=$?
1987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1988 (exit $ac_status); }
1989{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1990 (eval $ac_compiler -V </dev/null >&5) 2>&5
1991 ac_status=$?
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }
1994
1995cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00001996/* confdefs.h. */
1997_ACEOF
1998cat confdefs.h >>conftest.$ac_ext
1999cat >>conftest.$ac_ext <<_ACEOF
2000/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002001
John Criswell7a73b802003-06-30 21:59:07 +00002002int
2003main ()
2004{
2005
2006 ;
2007 return 0;
2008}
2009_ACEOF
2010ac_clean_files_save=$ac_clean_files
John Criswell0c38eaf2003-09-10 15:17:25 +00002011ac_clean_files="$ac_clean_files a.out a.exe b.out"
John Criswell7a73b802003-06-30 21:59:07 +00002012# Try to create an executable without -o first, disregard a.out.
2013# It will help us diagnose broken compilers, and finding out an intuition
2014# of exeext.
Reid Spencer17041682004-09-05 17:48:32 +00002015echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2016echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00002017ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2018if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2019 (eval $ac_link_default) 2>&5
2020 ac_status=$?
2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2022 (exit $ac_status); }; then
2023 # Find the output, starting from the most likely. This scheme is
2024# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2025# resort.
2026
2027# Be careful to initialize this variable, since it used to be cached.
2028# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2029ac_cv_exeext=
John Criswell0c38eaf2003-09-10 15:17:25 +00002030# b.out is created by i960 compilers.
2031for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2032do
2033 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002034 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Reid Spencer17041682004-09-05 17:48:32 +00002036 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002037 conftest.$ac_ext )
Reid Spencer17041682004-09-05 17:48:32 +00002038 # This is the source file.
2039 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002040 [ab].out )
Reid Spencer17041682004-09-05 17:48:32 +00002041 # We found the default executable, but exeext='' is most
2042 # certainly right.
2043 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002044 *.* )
Reid Spencer17041682004-09-05 17:48:32 +00002045 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2046 # FIXME: I believe we export ac_cv_exeext for Libtool,
2047 # but it would be cool to find out if it's true. Does anybody
2048 # maintain Libtool? --akim.
2049 export ac_cv_exeext
2050 break;;
John Criswell0c38eaf2003-09-10 15:17:25 +00002051 * )
Reid Spencer17041682004-09-05 17:48:32 +00002052 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002053 esac
2054done
2055else
2056 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002057sed 's/^/| /' conftest.$ac_ext >&5
2058
2059{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2060See \`config.log' for more details." >&5
2061echo "$as_me: error: C++ compiler cannot create executables
2062See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002063 { (exit 77); exit 77; }; }
2064fi
2065
2066ac_exeext=$ac_cv_exeext
2067echo "$as_me:$LINENO: result: $ac_file" >&5
2068echo "${ECHO_T}$ac_file" >&6
2069
2070# Check the compiler produces executables we can run. If not, either
2071# the compiler is broken, or we cross compile.
2072echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2073echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2074# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2075# If not cross compiling, check that we can run a simple program.
2076if test "$cross_compiling" != yes; then
2077 if { ac_try='./$ac_file'
2078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 (eval $ac_try) 2>&5
2080 ac_status=$?
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; }; then
2083 cross_compiling=no
2084 else
2085 if test "$cross_compiling" = maybe; then
2086 cross_compiling=yes
2087 else
2088 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002089If you meant to cross compile, use \`--host'.
2090See \`config.log' for more details." >&5
John Criswell7a73b802003-06-30 21:59:07 +00002091echo "$as_me: error: cannot run C++ compiled programs.
John Criswell0c38eaf2003-09-10 15:17:25 +00002092If you meant to cross compile, use \`--host'.
2093See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002094 { (exit 1); exit 1; }; }
2095 fi
2096 fi
2097fi
2098echo "$as_me:$LINENO: result: yes" >&5
2099echo "${ECHO_T}yes" >&6
2100
John Criswell0c38eaf2003-09-10 15:17:25 +00002101rm -f a.out a.exe conftest$ac_cv_exeext b.out
John Criswell7a73b802003-06-30 21:59:07 +00002102ac_clean_files=$ac_clean_files_save
2103# Check the compiler produces executables we can run. If not, either
2104# the compiler is broken, or we cross compile.
2105echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2106echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2107echo "$as_me:$LINENO: result: $cross_compiling" >&5
2108echo "${ECHO_T}$cross_compiling" >&6
2109
2110echo "$as_me:$LINENO: checking for suffix of executables" >&5
2111echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2112if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2113 (eval $ac_link) 2>&5
2114 ac_status=$?
2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116 (exit $ac_status); }; then
2117 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2118# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2119# work properly (i.e., refer to `conftest.exe'), while it won't with
2120# `rm'.
John Criswell0c38eaf2003-09-10 15:17:25 +00002121for ac_file in conftest.exe conftest conftest.*; do
2122 test -f "$ac_file" || continue
John Criswell7a73b802003-06-30 21:59:07 +00002123 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002124 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002125 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Reid Spencer17041682004-09-05 17:48:32 +00002126 export ac_cv_exeext
2127 break;;
John Criswell7a73b802003-06-30 21:59:07 +00002128 * ) break;;
2129 esac
2130done
2131else
John Criswell0c38eaf2003-09-10 15:17:25 +00002132 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2133See \`config.log' for more details." >&5
2134echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2135See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002136 { (exit 1); exit 1; }; }
2137fi
2138
2139rm -f conftest$ac_cv_exeext
2140echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2141echo "${ECHO_T}$ac_cv_exeext" >&6
2142
2143rm -f conftest.$ac_ext
2144EXEEXT=$ac_cv_exeext
2145ac_exeext=$EXEEXT
2146echo "$as_me:$LINENO: checking for suffix of object files" >&5
2147echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2148if test "${ac_cv_objext+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150else
2151 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002152/* confdefs.h. */
2153_ACEOF
2154cat confdefs.h >>conftest.$ac_ext
2155cat >>conftest.$ac_ext <<_ACEOF
2156/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002157
John Criswell7a73b802003-06-30 21:59:07 +00002158int
2159main ()
2160{
2161
2162 ;
2163 return 0;
2164}
2165_ACEOF
2166rm -f conftest.o conftest.obj
2167if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168 (eval $ac_compile) 2>&5
2169 ac_status=$?
2170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2171 (exit $ac_status); }; then
2172 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2173 case $ac_file in
John Criswell0c38eaf2003-09-10 15:17:25 +00002174 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
John Criswell7a73b802003-06-30 21:59:07 +00002175 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2176 break;;
2177 esac
2178done
2179else
2180 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002181sed 's/^/| /' conftest.$ac_ext >&5
2182
2183{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2184See \`config.log' for more details." >&5
2185echo "$as_me: error: cannot compute suffix of object files: cannot compile
2186See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002187 { (exit 1); exit 1; }; }
2188fi
2189
2190rm -f conftest.$ac_cv_objext conftest.$ac_ext
2191fi
2192echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2193echo "${ECHO_T}$ac_cv_objext" >&6
2194OBJEXT=$ac_cv_objext
2195ac_objext=$OBJEXT
2196echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2197echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2198if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2199 echo $ECHO_N "(cached) $ECHO_C" >&6
2200else
2201 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002202/* confdefs.h. */
2203_ACEOF
2204cat confdefs.h >>conftest.$ac_ext
2205cat >>conftest.$ac_ext <<_ACEOF
2206/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002207
John Criswell7a73b802003-06-30 21:59:07 +00002208int
2209main ()
2210{
2211#ifndef __GNUC__
2212 choke me
2213#endif
2214
2215 ;
2216 return 0;
2217}
2218_ACEOF
2219rm -f conftest.$ac_objext
2220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002221 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002222 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002223 grep -v '^ *+' conftest.er1 >conftest.err
2224 rm -f conftest.er1
2225 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002228 { ac_try='test -z "$ac_cxx_werror_flag"
2229 || test ! -s conftest.err'
2230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2231 (eval $ac_try) 2>&5
2232 ac_status=$?
2233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2234 (exit $ac_status); }; } &&
2235 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2237 (eval $ac_try) 2>&5
2238 ac_status=$?
2239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2240 (exit $ac_status); }; }; then
2241 ac_compiler_gnu=yes
2242else
2243 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002244sed 's/^/| /' conftest.$ac_ext >&5
2245
John Criswell7a73b802003-06-30 21:59:07 +00002246ac_compiler_gnu=no
2247fi
Reid Spencer17041682004-09-05 17:48:32 +00002248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002249ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2250
2251fi
2252echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2253echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2254GXX=`test $ac_compiler_gnu = yes && echo yes`
2255ac_test_CXXFLAGS=${CXXFLAGS+set}
2256ac_save_CXXFLAGS=$CXXFLAGS
2257CXXFLAGS="-g"
2258echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2259echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2260if test "${ac_cv_prog_cxx_g+set}" = set; then
2261 echo $ECHO_N "(cached) $ECHO_C" >&6
2262else
2263 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002264/* confdefs.h. */
2265_ACEOF
2266cat confdefs.h >>conftest.$ac_ext
2267cat >>conftest.$ac_ext <<_ACEOF
2268/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002269
John Criswell7a73b802003-06-30 21:59:07 +00002270int
2271main ()
2272{
2273
2274 ;
2275 return 0;
2276}
2277_ACEOF
2278rm -f conftest.$ac_objext
2279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002280 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002281 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002282 grep -v '^ *+' conftest.er1 >conftest.err
2283 rm -f conftest.er1
2284 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002287 { ac_try='test -z "$ac_cxx_werror_flag"
2288 || test ! -s conftest.err'
2289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2290 (eval $ac_try) 2>&5
2291 ac_status=$?
2292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293 (exit $ac_status); }; } &&
2294 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2296 (eval $ac_try) 2>&5
2297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; }; then
2300 ac_cv_prog_cxx_g=yes
2301else
2302 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002303sed 's/^/| /' conftest.$ac_ext >&5
2304
John Criswell7a73b802003-06-30 21:59:07 +00002305ac_cv_prog_cxx_g=no
2306fi
Reid Spencer17041682004-09-05 17:48:32 +00002307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002308fi
2309echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2310echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2311if test "$ac_test_CXXFLAGS" = set; then
2312 CXXFLAGS=$ac_save_CXXFLAGS
2313elif test $ac_cv_prog_cxx_g = yes; then
2314 if test "$GXX" = yes; then
2315 CXXFLAGS="-g -O2"
2316 else
2317 CXXFLAGS="-g"
2318 fi
2319else
2320 if test "$GXX" = yes; then
2321 CXXFLAGS="-O2"
2322 else
2323 CXXFLAGS=
2324 fi
2325fi
2326for ac_declaration in \
Reid Spencer17041682004-09-05 17:48:32 +00002327 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002328 'extern "C" void std::exit (int) throw (); using std::exit;' \
2329 'extern "C" void std::exit (int); using std::exit;' \
2330 'extern "C" void exit (int) throw ();' \
2331 'extern "C" void exit (int);' \
2332 'void exit (int);'
2333do
2334 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002335/* confdefs.h. */
2336_ACEOF
2337cat confdefs.h >>conftest.$ac_ext
2338cat >>conftest.$ac_ext <<_ACEOF
2339/* end confdefs.h. */
John Criswell679ff312004-09-02 18:44:44 +00002340$ac_declaration
Reid Spencer17041682004-09-05 17:48:32 +00002341#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002342int
2343main ()
2344{
2345exit (42);
2346 ;
2347 return 0;
2348}
2349_ACEOF
2350rm -f conftest.$ac_objext
2351if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002352 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002353 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002354 grep -v '^ *+' conftest.er1 >conftest.err
2355 rm -f conftest.er1
2356 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002359 { ac_try='test -z "$ac_cxx_werror_flag"
2360 || test ! -s conftest.err'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2362 (eval $ac_try) 2>&5
2363 ac_status=$?
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; } &&
2366 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2368 (eval $ac_try) 2>&5
2369 ac_status=$?
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; }; then
2372 :
2373else
2374 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002375sed 's/^/| /' conftest.$ac_ext >&5
2376
John Criswell7a73b802003-06-30 21:59:07 +00002377continue
2378fi
Reid Spencer17041682004-09-05 17:48:32 +00002379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002380 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002381/* confdefs.h. */
2382_ACEOF
2383cat confdefs.h >>conftest.$ac_ext
2384cat >>conftest.$ac_ext <<_ACEOF
2385/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002386$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002387int
2388main ()
2389{
2390exit (42);
2391 ;
2392 return 0;
2393}
2394_ACEOF
2395rm -f conftest.$ac_objext
2396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002397 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002398 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002399 grep -v '^ *+' conftest.er1 >conftest.err
2400 rm -f conftest.er1
2401 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002404 { ac_try='test -z "$ac_cxx_werror_flag"
2405 || test ! -s conftest.err'
2406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 (eval $ac_try) 2>&5
2408 ac_status=$?
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; } &&
2411 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 (eval $ac_try) 2>&5
2414 ac_status=$?
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); }; }; then
2417 break
2418else
2419 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002420sed 's/^/| /' conftest.$ac_ext >&5
2421
John Criswell7a73b802003-06-30 21:59:07 +00002422fi
Reid Spencer17041682004-09-05 17:48:32 +00002423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002424done
2425rm -f conftest*
2426if test -n "$ac_declaration"; then
2427 echo '#ifdef __cplusplus' >>confdefs.h
2428 echo $ac_declaration >>confdefs.h
2429 echo '#endif' >>confdefs.h
2430fi
2431
2432ac_ext=c
2433ac_cpp='$CPP $CPPFLAGS'
2434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2436ac_compiler_gnu=$ac_cv_c_compiler_gnu
2437
2438ac_ext=c
2439ac_cpp='$CPP $CPPFLAGS'
2440ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2441ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2442ac_compiler_gnu=$ac_cv_c_compiler_gnu
2443if test -n "$ac_tool_prefix"; then
2444 for ac_prog in gcc
2445 do
2446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2447set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2448echo "$as_me:$LINENO: checking for $ac_word" >&5
2449echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2450if test "${ac_cv_prog_CC+set}" = set; then
2451 echo $ECHO_N "(cached) $ECHO_C" >&6
2452else
2453 if test -n "$CC"; then
2454 ac_cv_prog_CC="$CC" # Let the user override the test.
2455else
2456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457for as_dir in $PATH
2458do
2459 IFS=$as_save_IFS
2460 test -z "$as_dir" && as_dir=.
2461 for ac_exec_ext in '' $ac_executable_extensions; do
2462 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465 break 2
2466 fi
2467done
2468done
2469
2470fi
2471fi
2472CC=$ac_cv_prog_CC
2473if test -n "$CC"; then
2474 echo "$as_me:$LINENO: result: $CC" >&5
2475echo "${ECHO_T}$CC" >&6
2476else
2477 echo "$as_me:$LINENO: result: no" >&5
2478echo "${ECHO_T}no" >&6
2479fi
2480
2481 test -n "$CC" && break
2482 done
2483fi
2484if test -z "$CC"; then
2485 ac_ct_CC=$CC
2486 for ac_prog in gcc
2487do
2488 # Extract the first word of "$ac_prog", so it can be a program name with args.
2489set dummy $ac_prog; ac_word=$2
2490echo "$as_me:$LINENO: checking for $ac_word" >&5
2491echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2492if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2494else
2495 if test -n "$ac_ct_CC"; then
2496 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2497else
2498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2499for as_dir in $PATH
2500do
2501 IFS=$as_save_IFS
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2505 ac_cv_prog_ac_ct_CC="$ac_prog"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2507 break 2
2508 fi
2509done
2510done
2511
2512fi
2513fi
2514ac_ct_CC=$ac_cv_prog_ac_ct_CC
2515if test -n "$ac_ct_CC"; then
2516 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2517echo "${ECHO_T}$ac_ct_CC" >&6
2518else
2519 echo "$as_me:$LINENO: result: no" >&5
2520echo "${ECHO_T}no" >&6
2521fi
2522
2523 test -n "$ac_ct_CC" && break
2524done
2525
2526 CC=$ac_ct_CC
2527fi
2528
2529
John Criswell0c38eaf2003-09-10 15:17:25 +00002530test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2531See \`config.log' for more details." >&5
2532echo "$as_me: error: no acceptable C compiler found in \$PATH
2533See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00002534 { (exit 1); exit 1; }; }
2535
2536# Provide some information about the compiler.
2537echo "$as_me:$LINENO:" \
2538 "checking for C compiler version" >&5
2539ac_compiler=`set X $ac_compile; echo $2`
2540{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2541 (eval $ac_compiler --version </dev/null >&5) 2>&5
2542 ac_status=$?
2543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544 (exit $ac_status); }
2545{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2546 (eval $ac_compiler -v </dev/null >&5) 2>&5
2547 ac_status=$?
2548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2549 (exit $ac_status); }
2550{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2551 (eval $ac_compiler -V </dev/null >&5) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }
2555
2556echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2557echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2558if test "${ac_cv_c_compiler_gnu+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2560else
2561 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002562/* confdefs.h. */
2563_ACEOF
2564cat confdefs.h >>conftest.$ac_ext
2565cat >>conftest.$ac_ext <<_ACEOF
2566/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002567
John Criswell7a73b802003-06-30 21:59:07 +00002568int
2569main ()
2570{
2571#ifndef __GNUC__
2572 choke me
2573#endif
2574
2575 ;
2576 return 0;
2577}
2578_ACEOF
2579rm -f conftest.$ac_objext
2580if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002581 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002582 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002583 grep -v '^ *+' conftest.er1 >conftest.err
2584 rm -f conftest.er1
2585 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002588 { ac_try='test -z "$ac_c_werror_flag"
2589 || test ! -s conftest.err'
2590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2591 (eval $ac_try) 2>&5
2592 ac_status=$?
2593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594 (exit $ac_status); }; } &&
2595 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2597 (eval $ac_try) 2>&5
2598 ac_status=$?
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); }; }; then
2601 ac_compiler_gnu=yes
2602else
2603 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002604sed 's/^/| /' conftest.$ac_ext >&5
2605
John Criswell7a73b802003-06-30 21:59:07 +00002606ac_compiler_gnu=no
2607fi
Reid Spencer17041682004-09-05 17:48:32 +00002608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002609ac_cv_c_compiler_gnu=$ac_compiler_gnu
2610
2611fi
2612echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2613echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2614GCC=`test $ac_compiler_gnu = yes && echo yes`
2615ac_test_CFLAGS=${CFLAGS+set}
2616ac_save_CFLAGS=$CFLAGS
2617CFLAGS="-g"
2618echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2619echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2620if test "${ac_cv_prog_cc_g+set}" = set; then
2621 echo $ECHO_N "(cached) $ECHO_C" >&6
2622else
2623 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002624/* confdefs.h. */
2625_ACEOF
2626cat confdefs.h >>conftest.$ac_ext
2627cat >>conftest.$ac_ext <<_ACEOF
2628/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002629
John Criswell7a73b802003-06-30 21:59:07 +00002630int
2631main ()
2632{
2633
2634 ;
2635 return 0;
2636}
2637_ACEOF
2638rm -f conftest.$ac_objext
2639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002640 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002641 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002642 grep -v '^ *+' conftest.er1 >conftest.err
2643 rm -f conftest.er1
2644 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2646 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002647 { ac_try='test -z "$ac_c_werror_flag"
2648 || test ! -s conftest.err'
2649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650 (eval $ac_try) 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; } &&
2654 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656 (eval $ac_try) 2>&5
2657 ac_status=$?
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); }; }; then
2660 ac_cv_prog_cc_g=yes
2661else
2662 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002663sed 's/^/| /' conftest.$ac_ext >&5
2664
John Criswell7a73b802003-06-30 21:59:07 +00002665ac_cv_prog_cc_g=no
2666fi
Reid Spencer17041682004-09-05 17:48:32 +00002667rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002668fi
2669echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2670echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2671if test "$ac_test_CFLAGS" = set; then
2672 CFLAGS=$ac_save_CFLAGS
2673elif test $ac_cv_prog_cc_g = yes; then
2674 if test "$GCC" = yes; then
2675 CFLAGS="-g -O2"
2676 else
2677 CFLAGS="-g"
2678 fi
2679else
2680 if test "$GCC" = yes; then
2681 CFLAGS="-O2"
2682 else
2683 CFLAGS=
2684 fi
2685fi
John Criswell0c38eaf2003-09-10 15:17:25 +00002686echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2687echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2688if test "${ac_cv_prog_cc_stdc+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2690else
2691 ac_cv_prog_cc_stdc=no
2692ac_save_CC=$CC
2693cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002694/* confdefs.h. */
2695_ACEOF
2696cat confdefs.h >>conftest.$ac_ext
2697cat >>conftest.$ac_ext <<_ACEOF
2698/* end confdefs.h. */
2699#include <stdarg.h>
2700#include <stdio.h>
2701#include <sys/types.h>
2702#include <sys/stat.h>
2703/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2704struct buf { int x; };
2705FILE * (*rcsopen) (struct buf *, struct stat *, int);
2706static char *e (p, i)
2707 char **p;
2708 int i;
2709{
2710 return p[i];
2711}
2712static char *f (char * (*g) (char **, int), char **p, ...)
2713{
2714 char *s;
2715 va_list v;
2716 va_start (v,p);
2717 s = g (p, va_arg (v,int));
2718 va_end (v);
2719 return s;
2720}
Reid Spencer17041682004-09-05 17:48:32 +00002721
2722/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2723 function prototypes and stuff, but not '\xHH' hex character constants.
2724 These don't provoke an error unfortunately, instead are silently treated
2725 as 'x'. The following induces an error, until -std1 is added to get
2726 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2727 array size at least. It's necessary to write '\x00'==0 to get something
2728 that's true only with -std1. */
2729int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2730
John Criswell0c38eaf2003-09-10 15:17:25 +00002731int test (int i, double x);
2732struct s1 {int (*f) (int a);};
2733struct s2 {int (*f) (double a);};
2734int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2735int argc;
2736char **argv;
2737int
2738main ()
2739{
2740return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2741 ;
2742 return 0;
2743}
2744_ACEOF
2745# Don't try gcc -ansi; that turns off useful extensions and
2746# breaks some systems' header files.
2747# AIX -qlanglvl=ansi
2748# Ultrix and OSF/1 -std1
2749# HP-UX 10.20 and later -Ae
2750# HP-UX older versions -Aa -D_HPUX_SOURCE
2751# SVR4 -Xc -D__EXTENSIONS__
2752for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2753do
2754 CC="$ac_save_CC $ac_arg"
2755 rm -f conftest.$ac_objext
2756if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002757 (eval $ac_compile) 2>conftest.er1
John Criswell0c38eaf2003-09-10 15:17:25 +00002758 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002759 grep -v '^ *+' conftest.er1 >conftest.err
2760 rm -f conftest.er1
2761 cat conftest.err >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2763 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002764 { ac_try='test -z "$ac_c_werror_flag"
2765 || test ! -s conftest.err'
2766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2767 (eval $ac_try) 2>&5
2768 ac_status=$?
2769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2770 (exit $ac_status); }; } &&
2771 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00002772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2773 (eval $ac_try) 2>&5
2774 ac_status=$?
2775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776 (exit $ac_status); }; }; then
2777 ac_cv_prog_cc_stdc=$ac_arg
2778break
2779else
2780 echo "$as_me: failed program was:" >&5
2781sed 's/^/| /' conftest.$ac_ext >&5
2782
2783fi
Reid Spencer17041682004-09-05 17:48:32 +00002784rm -f conftest.err conftest.$ac_objext
John Criswell0c38eaf2003-09-10 15:17:25 +00002785done
2786rm -f conftest.$ac_ext conftest.$ac_objext
2787CC=$ac_save_CC
2788
2789fi
2790
2791case "x$ac_cv_prog_cc_stdc" in
2792 x|xno)
2793 echo "$as_me:$LINENO: result: none needed" >&5
2794echo "${ECHO_T}none needed" >&6 ;;
2795 *)
2796 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2797echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2798 CC="$CC $ac_cv_prog_cc_stdc" ;;
2799esac
2800
John Criswell7a73b802003-06-30 21:59:07 +00002801# Some people use a C++ compiler to compile C. Since we use `exit',
2802# in C++ we need to declare it. In case someone uses the same compiler
2803# for both compiling C and C++ we need to have the C++ compiler decide
2804# the declaration of exit, since it's the most demanding environment.
2805cat >conftest.$ac_ext <<_ACEOF
2806#ifndef __cplusplus
2807 choke me
2808#endif
2809_ACEOF
2810rm -f conftest.$ac_objext
2811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002812 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002813 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002819 { ac_try='test -z "$ac_c_werror_flag"
2820 || test ! -s conftest.err'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 (eval $ac_try) 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; } &&
2826 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 for ac_declaration in \
Reid Spencer17041682004-09-05 17:48:32 +00002833 '' \
John Criswell7a73b802003-06-30 21:59:07 +00002834 'extern "C" void std::exit (int) throw (); using std::exit;' \
2835 'extern "C" void std::exit (int); using std::exit;' \
2836 'extern "C" void exit (int) throw ();' \
2837 'extern "C" void exit (int);' \
2838 'void exit (int);'
2839do
2840 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002841/* confdefs.h. */
2842_ACEOF
2843cat confdefs.h >>conftest.$ac_ext
2844cat >>conftest.$ac_ext <<_ACEOF
2845/* end confdefs.h. */
John Criswell679ff312004-09-02 18:44:44 +00002846$ac_declaration
Reid Spencer17041682004-09-05 17:48:32 +00002847#include <stdlib.h>
John Criswell7a73b802003-06-30 21:59:07 +00002848int
2849main ()
2850{
2851exit (42);
2852 ;
2853 return 0;
2854}
2855_ACEOF
2856rm -f conftest.$ac_objext
2857if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002858 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002859 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002860 grep -v '^ *+' conftest.er1 >conftest.err
2861 rm -f conftest.er1
2862 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2864 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002865 { ac_try='test -z "$ac_c_werror_flag"
2866 || test ! -s conftest.err'
2867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2868 (eval $ac_try) 2>&5
2869 ac_status=$?
2870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2871 (exit $ac_status); }; } &&
2872 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2874 (eval $ac_try) 2>&5
2875 ac_status=$?
2876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; }; then
2878 :
2879else
2880 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002881sed 's/^/| /' conftest.$ac_ext >&5
2882
John Criswell7a73b802003-06-30 21:59:07 +00002883continue
2884fi
Reid Spencer17041682004-09-05 17:48:32 +00002885rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002886 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002887/* confdefs.h. */
2888_ACEOF
2889cat confdefs.h >>conftest.$ac_ext
2890cat >>conftest.$ac_ext <<_ACEOF
2891/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00002892$ac_declaration
John Criswell7a73b802003-06-30 21:59:07 +00002893int
2894main ()
2895{
2896exit (42);
2897 ;
2898 return 0;
2899}
2900_ACEOF
2901rm -f conftest.$ac_objext
2902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00002903 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00002904 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00002905 grep -v '^ *+' conftest.er1 >conftest.err
2906 rm -f conftest.er1
2907 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00002908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2909 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00002910 { ac_try='test -z "$ac_c_werror_flag"
2911 || test ! -s conftest.err'
2912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2913 (eval $ac_try) 2>&5
2914 ac_status=$?
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }; } &&
2917 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00002918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2919 (eval $ac_try) 2>&5
2920 ac_status=$?
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }; }; then
2923 break
2924else
2925 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002926sed 's/^/| /' conftest.$ac_ext >&5
2927
John Criswell7a73b802003-06-30 21:59:07 +00002928fi
Reid Spencer17041682004-09-05 17:48:32 +00002929rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002930done
2931rm -f conftest*
2932if test -n "$ac_declaration"; then
2933 echo '#ifdef __cplusplus' >>confdefs.h
2934 echo $ac_declaration >>confdefs.h
2935 echo '#endif' >>confdefs.h
2936fi
2937
2938else
2939 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00002940sed 's/^/| /' conftest.$ac_ext >&5
2941
John Criswell7a73b802003-06-30 21:59:07 +00002942fi
Reid Spencer17041682004-09-05 17:48:32 +00002943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00002944ac_ext=c
2945ac_cpp='$CPP $CPPFLAGS'
2946ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2947ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2948ac_compiler_gnu=$ac_cv_c_compiler_gnu
2949
2950ac_ext=c
2951ac_cpp='$CPP $CPPFLAGS'
2952ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2953ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2954ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2956echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2957# On Suns, sometimes $CPP names a directory.
2958if test -n "$CPP" && test -d "$CPP"; then
2959 CPP=
2960fi
2961if test -z "$CPP"; then
2962 if test "${ac_cv_prog_CPP+set}" = set; then
2963 echo $ECHO_N "(cached) $ECHO_C" >&6
2964else
2965 # Double quotes because CPP needs to be expanded
2966 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2967 do
2968 ac_preproc_ok=false
2969for ac_c_preproc_warn_flag in '' yes
2970do
2971 # Use a header file that comes with gcc, so configuring glibc
2972 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00002973 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2974 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00002975 # On the NeXT, cc -E runs the code through the compiler's parser,
2976 # not just through cpp. "Syntax error" is here to catch this case.
2977 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00002978/* confdefs.h. */
2979_ACEOF
2980cat confdefs.h >>conftest.$ac_ext
2981cat >>conftest.$ac_ext <<_ACEOF
2982/* end confdefs.h. */
2983#ifdef __STDC__
2984# include <limits.h>
2985#else
2986# include <assert.h>
2987#endif
Reid Spencer17041682004-09-05 17:48:32 +00002988 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00002989_ACEOF
2990if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2992 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00002993 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00002994 rm -f conftest.er1
2995 cat conftest.err >&5
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); } >/dev/null; then
2998 if test -s conftest.err; then
2999 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00003000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003001 else
3002 ac_cpp_err=
3003 fi
3004else
3005 ac_cpp_err=yes
3006fi
3007if test -z "$ac_cpp_err"; then
3008 :
3009else
3010 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003011sed 's/^/| /' conftest.$ac_ext >&5
3012
John Criswell7a73b802003-06-30 21:59:07 +00003013 # Broken: fails on valid input.
3014continue
3015fi
3016rm -f conftest.err conftest.$ac_ext
3017
3018 # OK, works on sane cases. Now check whether non-existent headers
3019 # can be detected and how.
3020 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003021/* confdefs.h. */
3022_ACEOF
3023cat confdefs.h >>conftest.$ac_ext
3024cat >>conftest.$ac_ext <<_ACEOF
3025/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003026#include <ac_nonexistent.h>
3027_ACEOF
3028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3030 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003031 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003032 rm -f conftest.er1
3033 cat conftest.err >&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); } >/dev/null; then
3036 if test -s conftest.err; then
3037 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00003038 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003039 else
3040 ac_cpp_err=
3041 fi
3042else
3043 ac_cpp_err=yes
3044fi
3045if test -z "$ac_cpp_err"; then
3046 # Broken: success on invalid input.
3047continue
3048else
3049 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003050sed 's/^/| /' conftest.$ac_ext >&5
3051
John Criswell7a73b802003-06-30 21:59:07 +00003052 # Passes both tests.
3053ac_preproc_ok=:
3054break
3055fi
3056rm -f conftest.err conftest.$ac_ext
3057
3058done
3059# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3060rm -f conftest.err conftest.$ac_ext
3061if $ac_preproc_ok; then
3062 break
3063fi
3064
3065 done
3066 ac_cv_prog_CPP=$CPP
3067
3068fi
3069 CPP=$ac_cv_prog_CPP
3070else
3071 ac_cv_prog_CPP=$CPP
3072fi
3073echo "$as_me:$LINENO: result: $CPP" >&5
3074echo "${ECHO_T}$CPP" >&6
3075ac_preproc_ok=false
3076for ac_c_preproc_warn_flag in '' yes
3077do
3078 # Use a header file that comes with gcc, so configuring glibc
3079 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00003080 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3081 # <limits.h> exists even on freestanding compilers.
John Criswell7a73b802003-06-30 21:59:07 +00003082 # On the NeXT, cc -E runs the code through the compiler's parser,
3083 # not just through cpp. "Syntax error" is here to catch this case.
3084 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003085/* confdefs.h. */
3086_ACEOF
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h. */
3090#ifdef __STDC__
3091# include <limits.h>
3092#else
3093# include <assert.h>
3094#endif
Reid Spencer17041682004-09-05 17:48:32 +00003095 Syntax error
John Criswell7a73b802003-06-30 21:59:07 +00003096_ACEOF
3097if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3098 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3099 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003100 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003101 rm -f conftest.er1
3102 cat conftest.err >&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); } >/dev/null; then
3105 if test -s conftest.err; then
3106 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00003107 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003108 else
3109 ac_cpp_err=
3110 fi
3111else
3112 ac_cpp_err=yes
3113fi
3114if test -z "$ac_cpp_err"; then
3115 :
3116else
3117 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003118sed 's/^/| /' conftest.$ac_ext >&5
3119
John Criswell7a73b802003-06-30 21:59:07 +00003120 # Broken: fails on valid input.
3121continue
3122fi
3123rm -f conftest.err conftest.$ac_ext
3124
3125 # OK, works on sane cases. Now check whether non-existent headers
3126 # can be detected and how.
3127 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003128/* confdefs.h. */
3129_ACEOF
3130cat confdefs.h >>conftest.$ac_ext
3131cat >>conftest.$ac_ext <<_ACEOF
3132/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003133#include <ac_nonexistent.h>
3134_ACEOF
3135if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3137 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00003138 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00003139 rm -f conftest.er1
3140 cat conftest.err >&5
3141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3142 (exit $ac_status); } >/dev/null; then
3143 if test -s conftest.err; then
3144 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00003145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00003146 else
3147 ac_cpp_err=
3148 fi
3149else
3150 ac_cpp_err=yes
3151fi
3152if test -z "$ac_cpp_err"; then
3153 # Broken: success on invalid input.
3154continue
3155else
3156 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003157sed 's/^/| /' conftest.$ac_ext >&5
3158
John Criswell7a73b802003-06-30 21:59:07 +00003159 # Passes both tests.
3160ac_preproc_ok=:
3161break
3162fi
3163rm -f conftest.err conftest.$ac_ext
3164
3165done
3166# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3167rm -f conftest.err conftest.$ac_ext
3168if $ac_preproc_ok; then
3169 :
3170else
John Criswell0c38eaf2003-09-10 15:17:25 +00003171 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3172See \`config.log' for more details." >&5
3173echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3174See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +00003175 { (exit 1); exit 1; }; }
3176fi
3177
3178ac_ext=c
3179ac_cpp='$CPP $CPPFLAGS'
3180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182ac_compiler_gnu=$ac_cv_c_compiler_gnu
3183
3184
3185if test "$GCC" != "yes"
3186then
3187 { { echo "$as_me:$LINENO: error: gcc required but not found" >&5
3188echo "$as_me: error: gcc required but not found" >&2;}
3189 { (exit 1); exit 1; }; }
3190fi
John Criswell7a73b802003-06-30 21:59:07 +00003191if test "$GXX" != "yes"
3192then
3193 { { echo "$as_me:$LINENO: error: g++ required but not found" >&5
3194echo "$as_me: error: g++ required but not found" >&2;}
3195 { (exit 1); exit 1; }; }
3196fi
3197
John Criswellde00db22003-08-25 16:49:54 +00003198gccmajor=`$CC --version | head -n 1 | awk '{print $NF;}' | cut -d. -f1`
3199if test "$gccmajor" -lt "3"
3200then
Brian Gaeke26be9c52004-01-13 06:43:16 +00003201 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
3202echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
John Criswellde00db22003-08-25 16:49:54 +00003203 { (exit 1); exit 1; }; }
3204fi
3205
John Criswell7a73b802003-06-30 21:59:07 +00003206 echo "$as_me:$LINENO: checking for GNU make" >&5
3207echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
3208if test "${_cv_gnu_make_command+set}" = set; then
3209 echo $ECHO_N "(cached) $ECHO_C" >&6
3210else
3211 _cv_gnu_make_command='' ;
3212 for a in "$MAKE" make gmake gnumake ; do
3213 if test -z "$a" ; then continue ; fi ;
3214 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
3215 _cv_gnu_make_command=$a ;
3216 break;
3217 fi
3218 done ;
3219
3220fi
3221echo "$as_me:$LINENO: result: $_cv_gnu_make_command" >&5
3222echo "${ECHO_T}$_cv_gnu_make_command" >&6 ;
3223 if test "x$_cv_gnu_make_command" != "x" ; then
3224 ifGNUmake='' ;
3225 else
3226 ifGNUmake='#' ;
3227 echo "$as_me:$LINENO: result: \"Not found\"" >&5
3228echo "${ECHO_T}\"Not found\"" >&6;
3229 fi
3230
3231
3232if test -z "$_cv_gnu_make_command"
3233then
3234 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
3235echo "$as_me: error: GNU Make required but not found" >&2;}
3236 { (exit 1); exit 1; }; }
3237fi
3238
3239
3240echo "$as_me:$LINENO: checking " >&5
3241echo $ECHO_N "checking ... $ECHO_C" >&6
3242if test "${ac_cv_has_flex+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3244else
3245 for ac_prog in flex lex
3246do
3247 # Extract the first word of "$ac_prog", so it can be a program name with args.
3248set dummy $ac_prog; ac_word=$2
3249echo "$as_me:$LINENO: checking for $ac_word" >&5
3250echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3251if test "${ac_cv_prog_LEX+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3253else
3254 if test -n "$LEX"; then
3255 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3256else
3257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258for as_dir in $PATH
3259do
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3264 ac_cv_prog_LEX="$ac_prog"
3265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3267 fi
3268done
3269done
3270
3271fi
3272fi
3273LEX=$ac_cv_prog_LEX
3274if test -n "$LEX"; then
3275 echo "$as_me:$LINENO: result: $LEX" >&5
3276echo "${ECHO_T}$LEX" >&6
3277else
3278 echo "$as_me:$LINENO: result: no" >&5
3279echo "${ECHO_T}no" >&6
3280fi
3281
3282 test -n "$LEX" && break
3283done
3284test -n "$LEX" || LEX=":"
3285
3286if test -z "$LEXLIB"
3287then
3288 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
3289echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3290if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3291 echo $ECHO_N "(cached) $ECHO_C" >&6
3292else
3293 ac_check_lib_save_LIBS=$LIBS
3294LIBS="-lfl $LIBS"
3295cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00003296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00003301
3302/* Override any gcc2 internal prototype to avoid an error. */
3303#ifdef __cplusplus
3304extern "C"
3305#endif
3306/* We use char because int might match the return type of a gcc2
3307 builtin and then its argument prototype would still apply. */
3308char yywrap ();
John Criswell7a73b802003-06-30 21:59:07 +00003309int
3310main ()
3311{
3312yywrap ();
3313 ;
3314 return 0;
3315}
3316_ACEOF
3317rm -f conftest.$ac_objext conftest$ac_exeext
3318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00003319 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003320 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00003321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00003326 { ac_try='test -z "$ac_c_werror_flag"
3327 || test ! -s conftest.err'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; } &&
3333 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 (eval $ac_try) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3339 ac_cv_lib_fl_yywrap=yes
3340else
3341 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003342sed 's/^/| /' conftest.$ac_ext >&5
3343
John Criswell7a73b802003-06-30 21:59:07 +00003344ac_cv_lib_fl_yywrap=no
3345fi
Reid Spencer17041682004-09-05 17:48:32 +00003346rm -f conftest.err conftest.$ac_objext \
3347 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003348LIBS=$ac_check_lib_save_LIBS
3349fi
3350echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
3351echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3352if test $ac_cv_lib_fl_yywrap = yes; then
3353 LEXLIB="-lfl"
3354else
3355 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
3356echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3357if test "${ac_cv_lib_l_yywrap+set}" = set; then
3358 echo $ECHO_N "(cached) $ECHO_C" >&6
3359else
3360 ac_check_lib_save_LIBS=$LIBS
3361LIBS="-ll $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 Spencer17041682004-09-05 17:48:32 +00003386 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003387 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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_l_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_l_yywrap=no
3412fi
Reid Spencer17041682004-09-05 17:48:32 +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_l_yywrap" >&5
3418echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
3419if test $ac_cv_lib_l_yywrap = yes; then
3420 LEXLIB="-ll"
3421fi
3422
3423fi
3424
3425fi
3426
3427if test "x$LEX" != "x:"; then
3428 echo "$as_me:$LINENO: checking lex output file root" >&5
3429echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
3430if test "${ac_cv_prog_lex_root+set}" = set; then
3431 echo $ECHO_N "(cached) $ECHO_C" >&6
3432else
3433 # The minimal lex program is just a single line: %%. But some broken lexes
3434# (Solaris, I think it was) want two %% lines, so accommodate them.
3435cat >conftest.l <<_ACEOF
3436%%
3437%%
3438_ACEOF
3439{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
3440 (eval $LEX conftest.l) 2>&5
3441 ac_status=$?
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443 (exit $ac_status); }
3444if test -f lex.yy.c; then
3445 ac_cv_prog_lex_root=lex.yy
3446elif test -f lexyy.c; then
3447 ac_cv_prog_lex_root=lexyy
3448else
3449 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
3450echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
3451 { (exit 1); exit 1; }; }
3452fi
3453fi
3454echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
3455echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
3456rm -f conftest.l
3457LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3458
3459echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
3460echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
3461if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
3462 echo $ECHO_N "(cached) $ECHO_C" >&6
3463else
3464 # POSIX says lex can declare yytext either as a pointer or an array; the
3465# default is implementation-dependent. Figure out which it is, since
3466# not all implementations provide the %pointer and %array declarations.
3467ac_cv_prog_lex_yytext_pointer=no
3468echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
3469ac_save_LIBS=$LIBS
3470LIBS="$LIBS $LEXLIB"
3471cat >conftest.$ac_ext <<_ACEOF
3472`cat $LEX_OUTPUT_ROOT.c`
3473_ACEOF
3474rm -f conftest.$ac_objext conftest$ac_exeext
3475if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00003476 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00003477 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00003478 grep -v '^ *+' conftest.er1 >conftest.err
3479 rm -f conftest.er1
3480 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00003481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00003483 { ac_try='test -z "$ac_c_werror_flag"
3484 || test ! -s conftest.err'
3485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486 (eval $ac_try) 2>&5
3487 ac_status=$?
3488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489 (exit $ac_status); }; } &&
3490 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00003491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492 (eval $ac_try) 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 ac_cv_prog_lex_yytext_pointer=yes
3497else
3498 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00003499sed 's/^/| /' conftest.$ac_ext >&5
3500
John Criswell7a73b802003-06-30 21:59:07 +00003501fi
Reid Spencer17041682004-09-05 17:48:32 +00003502rm -f conftest.err conftest.$ac_objext \
3503 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00003504LIBS=$ac_save_LIBS
3505rm -f "${LEX_OUTPUT_ROOT}.c"
3506
3507fi
3508echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
3509echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
3510if test $ac_cv_prog_lex_yytext_pointer = yes; then
3511
3512cat >>confdefs.h <<\_ACEOF
3513#define YYTEXT_POINTER 1
3514_ACEOF
3515
3516fi
3517
3518fi
3519
3520fi
3521echo "$as_me:$LINENO: result: $ac_cv_has_flex" >&5
3522echo "${ECHO_T}$ac_cv_has_flex" >&6
3523if test "$LEX" != "flex"; then
3524 { { echo "$as_me:$LINENO: error: flex not found but required" >&5
3525echo "$as_me: error: flex not found but required" >&2;}
3526 { (exit 1); exit 1; }; }
3527fi
3528
3529echo "$as_me:$LINENO: checking " >&5
3530echo $ECHO_N "checking ... $ECHO_C" >&6
3531if test "${ac_cv_has_bison+set}" = set; then
3532 echo $ECHO_N "(cached) $ECHO_C" >&6
3533else
3534 for ac_prog in 'bison -y' byacc
3535do
3536 # Extract the first word of "$ac_prog", so it can be a program name with args.
3537set dummy $ac_prog; ac_word=$2
3538echo "$as_me:$LINENO: checking for $ac_word" >&5
3539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3540if test "${ac_cv_prog_YACC+set}" = set; then
3541 echo $ECHO_N "(cached) $ECHO_C" >&6
3542else
3543 if test -n "$YACC"; then
3544 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3545else
3546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547for as_dir in $PATH
3548do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_YACC="$ac_prog"
3554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557done
3558done
3559
3560fi
3561fi
3562YACC=$ac_cv_prog_YACC
3563if test -n "$YACC"; then
3564 echo "$as_me:$LINENO: result: $YACC" >&5
3565echo "${ECHO_T}$YACC" >&6
3566else
3567 echo "$as_me:$LINENO: result: no" >&5
3568echo "${ECHO_T}no" >&6
3569fi
3570
3571 test -n "$YACC" && break
3572done
3573test -n "$YACC" || YACC="yacc"
3574
3575
3576fi
3577echo "$as_me:$LINENO: result: $ac_cv_has_bison" >&5
3578echo "${ECHO_T}$ac_cv_has_bison" >&6
3579if test "$YACC" != "bison -y"; then
3580 { { echo "$as_me:$LINENO: error: bison not found but required" >&5
3581echo "$as_me: error: bison not found but required" >&2;}
3582 { (exit 1); exit 1; }; }
3583else
Brian Gaeke12810632004-01-13 06:52:10 +00003584 BISON=bison
John Criswell7a73b802003-06-30 21:59:07 +00003585
3586fi
3587
John Criswell7a73b802003-06-30 21:59:07 +00003588# Check whether --enable-shared or --disable-shared was given.
3589if test "${enable_shared+set}" = set; then
3590 enableval="$enable_shared"
3591 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003592 case $enableval in
3593 yes) enable_shared=yes ;;
3594 no) enable_shared=no ;;
3595 *)
3596 enable_shared=no
3597 # Look at the argument we got. We use all the common list separators.
3598 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3599 for pkg in $enableval; do
3600 IFS="$lt_save_ifs"
3601 if test "X$pkg" = "X$p"; then
3602 enable_shared=yes
3603 fi
3604 done
3605 IFS="$lt_save_ifs"
3606 ;;
3607 esac
John Criswell7a73b802003-06-30 21:59:07 +00003608else
3609 enable_shared=yes
3610fi;
John Criswell47fdd832003-07-14 16:52:07 +00003611
John Criswell7a73b802003-06-30 21:59:07 +00003612# Check whether --enable-static or --disable-static was given.
3613if test "${enable_static+set}" = set; then
3614 enableval="$enable_static"
3615 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003616 case $enableval in
3617 yes) enable_static=yes ;;
3618 no) enable_static=no ;;
3619 *)
3620 enable_static=no
3621 # Look at the argument we got. We use all the common list separators.
3622 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3623 for pkg in $enableval; do
3624 IFS="$lt_save_ifs"
3625 if test "X$pkg" = "X$p"; then
3626 enable_static=yes
3627 fi
3628 done
3629 IFS="$lt_save_ifs"
3630 ;;
3631 esac
John Criswell7a73b802003-06-30 21:59:07 +00003632else
3633 enable_static=yes
3634fi;
John Criswell47fdd832003-07-14 16:52:07 +00003635
John Criswell7a73b802003-06-30 21:59:07 +00003636# Check whether --enable-fast-install or --disable-fast-install was given.
3637if test "${enable_fast_install+set}" = set; then
3638 enableval="$enable_fast_install"
3639 p=${PACKAGE-default}
John Criswell47fdd832003-07-14 16:52:07 +00003640 case $enableval in
3641 yes) enable_fast_install=yes ;;
3642 no) enable_fast_install=no ;;
3643 *)
3644 enable_fast_install=no
3645 # Look at the argument we got. We use all the common list separators.
3646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3647 for pkg in $enableval; do
3648 IFS="$lt_save_ifs"
3649 if test "X$pkg" = "X$p"; then
3650 enable_fast_install=yes
3651 fi
3652 done
3653 IFS="$lt_save_ifs"
3654 ;;
3655 esac
John Criswell7a73b802003-06-30 21:59:07 +00003656else
3657 enable_fast_install=yes
3658fi;
John Criswell47fdd832003-07-14 16:52:07 +00003659
3660echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3661echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3662if test "${lt_cv_path_SED+set}" = set; then
3663 echo $ECHO_N "(cached) $ECHO_C" >&6
3664else
3665 # Loop through the user's path and test for sed and gsed.
3666# Then use that list of sed's as ones to test for truncation.
3667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3668for as_dir in $PATH
3669do
3670 IFS=$as_save_IFS
3671 test -z "$as_dir" && as_dir=.
3672 for lt_ac_prog in sed gsed; do
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3675 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3676 fi
3677 done
3678 done
3679done
3680lt_ac_max=0
3681lt_ac_count=0
3682# Add /usr/xpg4/bin/sed as it is typically found on Solaris
3683# along with /bin/sed that truncates output.
3684for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3685 test ! -f $lt_ac_sed && break
3686 cat /dev/null > conftest.in
3687 lt_ac_count=0
3688 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3689 # Check for GNU sed and select it if it is found.
3690 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3691 lt_cv_path_SED=$lt_ac_sed
3692 break
3693 fi
3694 while true; do
3695 cat conftest.in conftest.in >conftest.tmp
3696 mv conftest.tmp conftest.in
3697 cp conftest.in conftest.nl
3698 echo >>conftest.nl
3699 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3700 cmp -s conftest.out conftest.nl || break
3701 # 10000 chars as input seems more than enough
3702 test $lt_ac_count -gt 10 && break
3703 lt_ac_count=`expr $lt_ac_count + 1`
3704 if test $lt_ac_count -gt $lt_ac_max; then
3705 lt_ac_max=$lt_ac_count
3706 lt_cv_path_SED=$lt_ac_sed
3707 fi
3708 done
3709done
3710SED=$lt_cv_path_SED
3711
John Criswell7a73b802003-06-30 21:59:07 +00003712fi
3713
John Criswell47fdd832003-07-14 16:52:07 +00003714echo "$as_me:$LINENO: result: $SED" >&5
3715echo "${ECHO_T}$SED" >&6
3716
3717echo "$as_me:$LINENO: checking for egrep" >&5
3718echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3719if test "${ac_cv_prog_egrep+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721else
3722 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3723 then ac_cv_prog_egrep='grep -E'
3724 else ac_cv_prog_egrep='egrep'
3725 fi
3726fi
3727echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3728echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3729 EGREP=$ac_cv_prog_egrep
3730
3731
John Criswell7a73b802003-06-30 21:59:07 +00003732
3733# Check whether --with-gnu-ld or --without-gnu-ld was given.
3734if test "${with_gnu_ld+set}" = set; then
3735 withval="$with_gnu_ld"
3736 test "$withval" = no || with_gnu_ld=yes
3737else
3738 with_gnu_ld=no
3739fi;
3740ac_prog=ld
3741if test "$GCC" = yes; then
3742 # Check if gcc -print-prog-name=ld gives a path.
John Criswell47fdd832003-07-14 16:52:07 +00003743 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3744echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003745 case $host in
3746 *-*-mingw*)
3747 # gcc leaves a trailing carriage return which upsets mingw
3748 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3749 *)
3750 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3751 esac
3752 case $ac_prog in
3753 # Accept absolute paths.
John Criswell47fdd832003-07-14 16:52:07 +00003754 [\\/]* | ?:[\\/]*)
John Criswell7a73b802003-06-30 21:59:07 +00003755 re_direlt='/[^/][^/]*/\.\./'
3756 # Canonicalize the path of ld
John Criswell47fdd832003-07-14 16:52:07 +00003757 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
John Criswell7a73b802003-06-30 21:59:07 +00003758 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
John Criswell47fdd832003-07-14 16:52:07 +00003759 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
John Criswell7a73b802003-06-30 21:59:07 +00003760 done
3761 test -z "$LD" && LD="$ac_prog"
3762 ;;
3763 "")
3764 # If it fails, then pretend we aren't using GCC.
3765 ac_prog=ld
3766 ;;
3767 *)
3768 # If it is relative, then search for the first ld in PATH.
3769 with_gnu_ld=unknown
3770 ;;
3771 esac
3772elif test "$with_gnu_ld" = yes; then
3773 echo "$as_me:$LINENO: checking for GNU ld" >&5
3774echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3775else
3776 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3777echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3778fi
3779if test "${lt_cv_path_LD+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781else
3782 if test -z "$LD"; then
John Criswell47fdd832003-07-14 16:52:07 +00003783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003784 for ac_dir in $PATH; do
John Criswell47fdd832003-07-14 16:52:07 +00003785 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003786 test -z "$ac_dir" && ac_dir=.
3787 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3788 lt_cv_path_LD="$ac_dir/$ac_prog"
3789 # Check to see if the program is GNU ld. I'd rather use --version,
3790 # but apparently some GNU ld's only accept -v.
3791 # Break only if it was the GNU/non-GNU ld that we prefer.
John Criswell47fdd832003-07-14 16:52:07 +00003792 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3793 *GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003794 test "$with_gnu_ld" != no && break
John Criswell47fdd832003-07-14 16:52:07 +00003795 ;;
3796 *)
John Criswell7a73b802003-06-30 21:59:07 +00003797 test "$with_gnu_ld" != yes && break
John Criswell47fdd832003-07-14 16:52:07 +00003798 ;;
3799 esac
John Criswell7a73b802003-06-30 21:59:07 +00003800 fi
3801 done
John Criswell47fdd832003-07-14 16:52:07 +00003802 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003803else
3804 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3805fi
3806fi
3807
3808LD="$lt_cv_path_LD"
3809if test -n "$LD"; then
3810 echo "$as_me:$LINENO: result: $LD" >&5
3811echo "${ECHO_T}$LD" >&6
3812else
3813 echo "$as_me:$LINENO: result: no" >&5
3814echo "${ECHO_T}no" >&6
3815fi
3816test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3817echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3818 { (exit 1); exit 1; }; }
3819echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3820echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3821if test "${lt_cv_prog_gnu_ld+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823else
3824 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
John Criswell47fdd832003-07-14 16:52:07 +00003825case `"$LD" -v 2>&1 </dev/null` in
3826*GNU* | *'with BFD'*)
John Criswell7a73b802003-06-30 21:59:07 +00003827 lt_cv_prog_gnu_ld=yes
John Criswell47fdd832003-07-14 16:52:07 +00003828 ;;
3829*)
John Criswell7a73b802003-06-30 21:59:07 +00003830 lt_cv_prog_gnu_ld=no
John Criswell47fdd832003-07-14 16:52:07 +00003831 ;;
3832esac
John Criswell7a73b802003-06-30 21:59:07 +00003833fi
3834echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3835echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3836with_gnu_ld=$lt_cv_prog_gnu_ld
3837
3838
3839echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3840echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3841if test "${lt_cv_ld_reload_flag+set}" = set; then
3842 echo $ECHO_N "(cached) $ECHO_C" >&6
3843else
3844 lt_cv_ld_reload_flag='-r'
3845fi
3846echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3847echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3848reload_flag=$lt_cv_ld_reload_flag
John Criswell47fdd832003-07-14 16:52:07 +00003849case $reload_flag in
3850"" | " "*) ;;
3851*) reload_flag=" $reload_flag" ;;
3852esac
3853reload_cmds='$LD$reload_flag -o $output$reload_objs'
John Criswell7a73b802003-06-30 21:59:07 +00003854
3855echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3856echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3857if test "${lt_cv_path_NM+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
3859else
3860 if test -n "$NM"; then
3861 # Let the user override the test.
3862 lt_cv_path_NM="$NM"
3863else
John Criswell47fdd832003-07-14 16:52:07 +00003864 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
John Criswell7a73b802003-06-30 21:59:07 +00003865 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
John Criswell47fdd832003-07-14 16:52:07 +00003866 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003867 test -z "$ac_dir" && ac_dir=.
John Criswell47fdd832003-07-14 16:52:07 +00003868 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3869 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
John Criswell7a73b802003-06-30 21:59:07 +00003870 # Check to see if the nm accepts a BSD-compat flag.
3871 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3872 # nm: unknown option "B" ignored
3873 # Tru64's nm complains that /dev/null is an invalid object file
John Criswell47fdd832003-07-14 16:52:07 +00003874 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3875 */dev/null* | *'Invalid file or object type'*)
John Criswell7a73b802003-06-30 21:59:07 +00003876 lt_cv_path_NM="$tmp_nm -B"
3877 break
John Criswell47fdd832003-07-14 16:52:07 +00003878 ;;
3879 *)
3880 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3881 */dev/null*)
3882 lt_cv_path_NM="$tmp_nm -p"
3883 break
3884 ;;
3885 *)
3886 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3887 continue # so that we can try to find one that supports BSD flags
3888 ;;
3889 esac
3890 esac
John Criswell7a73b802003-06-30 21:59:07 +00003891 fi
3892 done
John Criswell47fdd832003-07-14 16:52:07 +00003893 IFS="$lt_save_ifs"
John Criswell7a73b802003-06-30 21:59:07 +00003894 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3895fi
3896fi
John Criswell47fdd832003-07-14 16:52:07 +00003897echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3898echo "${ECHO_T}$lt_cv_path_NM" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003899NM="$lt_cv_path_NM"
John Criswell7a73b802003-06-30 21:59:07 +00003900
3901echo "$as_me:$LINENO: checking whether ln -s works" >&5
3902echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3903LN_S=$as_ln_s
3904if test "$LN_S" = "ln -s"; then
3905 echo "$as_me:$LINENO: result: yes" >&5
3906echo "${ECHO_T}yes" >&6
3907else
3908 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3909echo "${ECHO_T}no, using $LN_S" >&6
3910fi
3911
John Criswell47fdd832003-07-14 16:52:07 +00003912echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3913echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00003914if test "${lt_cv_deplibs_check_method+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916else
3917 lt_cv_file_magic_cmd='$MAGIC_CMD'
3918lt_cv_file_magic_test_file=
3919lt_cv_deplibs_check_method='unknown'
3920# Need to set the preceding variable on all platforms that support
3921# interlibrary dependencies.
3922# 'none' -- dependencies not supported.
3923# `unknown' -- same as none, but documents that we really don't know.
3924# 'pass_all' -- all dependencies passed with no checks.
3925# 'test_compile' -- check by making test program.
3926# 'file_magic [[regex]]' -- check by looking for files in library path
John Criswell47fdd832003-07-14 16:52:07 +00003927# which responds to the $file_magic_cmd with a given extended regex.
John Criswell7a73b802003-06-30 21:59:07 +00003928# If you have `file' or equivalent on your system and you're not sure
3929# whether `pass_all' will *always* work, you probably want this one.
3930
3931case $host_os in
3932aix4* | aix5*)
3933 lt_cv_deplibs_check_method=pass_all
3934 ;;
3935
3936beos*)
3937 lt_cv_deplibs_check_method=pass_all
3938 ;;
3939
3940bsdi4*)
3941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3942 lt_cv_file_magic_cmd='/usr/bin/file -L'
3943 lt_cv_file_magic_test_file=/shlib/libc.so
3944 ;;
3945
3946cygwin* | mingw* | pw32*)
John Criswell47fdd832003-07-14 16:52:07 +00003947 # win32_libid is a shell function defined in ltmain.sh
3948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3949 lt_cv_file_magic_cmd='win32_libid'
John Criswell7a73b802003-06-30 21:59:07 +00003950 ;;
3951
3952darwin* | rhapsody*)
John Criswell47fdd832003-07-14 16:52:07 +00003953 # this will be overwritten by pass_all, but leave it in just in case
John Criswell7a73b802003-06-30 21:59:07 +00003954 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3955 lt_cv_file_magic_cmd='/usr/bin/file -L'
3956 case "$host_os" in
3957 rhapsody* | darwin1.[012])
John Criswell47fdd832003-07-14 16:52:07 +00003958 lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
John Criswell7a73b802003-06-30 21:59:07 +00003959 ;;
3960 *) # Darwin 1.3 on
3961 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3962 ;;
3963 esac
John Criswell47fdd832003-07-14 16:52:07 +00003964 lt_cv_deplibs_check_method=pass_all
John Criswell7a73b802003-06-30 21:59:07 +00003965 ;;
3966
3967freebsd*)
3968 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3969 case $host_cpu in
3970 i*86 )
3971 # Not sure whether the presence of OpenBSD here was a mistake.
3972 # Let's accept both of them until this is cleared up.
3973 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3974 lt_cv_file_magic_cmd=/usr/bin/file
3975 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3976 ;;
3977 esac
3978 else
3979 lt_cv_deplibs_check_method=pass_all
3980 fi
3981 ;;
3982
3983gnu*)
3984 lt_cv_deplibs_check_method=pass_all
3985 ;;
3986
John Criswell47fdd832003-07-14 16:52:07 +00003987hpux10.20* | hpux11*)
John Criswell7a73b802003-06-30 21:59:07 +00003988 lt_cv_file_magic_cmd=/usr/bin/file
John Criswell47fdd832003-07-14 16:52:07 +00003989 case "$host_cpu" in
3990 ia64*)
3991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3992 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3993 ;;
3994 hppa*64*)
3995 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]'
3996 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3997 ;;
3998 *)
3999 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4000 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4001 ;;
4002 esac
John Criswell7a73b802003-06-30 21:59:07 +00004003 ;;
4004
John Criswell47fdd832003-07-14 16:52:07 +00004005irix5* | irix6* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004006 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00004007 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00004008 # this will be overridden with pass_all, but let us keep it just in case
4009 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4010 ;;
4011 *)
4012 case $LD in
4013 *-32|*"-32 ") libmagic=32-bit;;
4014 *-n32|*"-n32 ") libmagic=N32;;
4015 *-64|*"-64 ") libmagic=64-bit;;
4016 *) libmagic=never-match;;
4017 esac
4018 # this will be overridden with pass_all, but let us keep it just in case
4019 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4020 ;;
4021 esac
4022 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4023 lt_cv_deplibs_check_method=pass_all
4024 ;;
4025
4026# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00004027linux*)
John Criswell7a73b802003-06-30 21:59:07 +00004028 case $host_cpu in
John Criswell47fdd832003-07-14 16:52:07 +00004029 alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh*)
John Criswell7a73b802003-06-30 21:59:07 +00004030 lt_cv_deplibs_check_method=pass_all ;;
4031 *)
4032 # glibc up to 2.1.1 does not perform some relocations on ARM
4033 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4034 esac
4035 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4036 ;;
4037
4038netbsd*)
4039 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00004040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004041 else
John Criswell47fdd832003-07-14 16:52:07 +00004042 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
John Criswell7a73b802003-06-30 21:59:07 +00004043 fi
4044 ;;
4045
4046newos6*)
4047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4048 lt_cv_file_magic_cmd=/usr/bin/file
4049 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4050 ;;
4051
John Criswell47fdd832003-07-14 16:52:07 +00004052nto-qnx)
4053 lt_cv_deplibs_check_method=unknown
4054 ;;
4055
John Criswell7a73b802003-06-30 21:59:07 +00004056openbsd*)
4057 lt_cv_file_magic_cmd=/usr/bin/file
4058 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4059 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4060 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4061 else
4062 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4063 fi
4064 ;;
4065
4066osf3* | osf4* | osf5*)
4067 # this will be overridden with pass_all, but let us keep it just in case
4068 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4069 lt_cv_file_magic_test_file=/shlib/libc.so
4070 lt_cv_deplibs_check_method=pass_all
4071 ;;
4072
4073sco3.2v5*)
4074 lt_cv_deplibs_check_method=pass_all
4075 ;;
4076
4077solaris*)
4078 lt_cv_deplibs_check_method=pass_all
4079 lt_cv_file_magic_test_file=/lib/libc.so
4080 ;;
4081
John Criswell7a73b802003-06-30 21:59:07 +00004082sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4083 case $host_vendor in
4084 motorola)
4085 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]'
4086 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4087 ;;
4088 ncr)
4089 lt_cv_deplibs_check_method=pass_all
4090 ;;
4091 sequent)
4092 lt_cv_file_magic_cmd='/bin/file'
4093 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4094 ;;
4095 sni)
4096 lt_cv_file_magic_cmd='/bin/file'
4097 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4098 lt_cv_file_magic_test_file=/lib/libc.so
4099 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004100 siemens)
4101 lt_cv_deplibs_check_method=pass_all
4102 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004103 esac
4104 ;;
John Criswell47fdd832003-07-14 16:52:07 +00004105
4106sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4107 lt_cv_deplibs_check_method=pass_all
4108 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004109esac
4110
4111fi
4112echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4113echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4114file_magic_cmd=$lt_cv_file_magic_cmd
4115deplibs_check_method=$lt_cv_deplibs_check_method
John Criswell47fdd832003-07-14 16:52:07 +00004116test -z "$deplibs_check_method" && deplibs_check_method=unknown
John Criswell7a73b802003-06-30 21:59:07 +00004117
4118
4119
4120
John Criswell47fdd832003-07-14 16:52:07 +00004121# If no C compiler was specified, use CC.
4122LTCC=${LTCC-"$CC"}
John Criswell7a73b802003-06-30 21:59:07 +00004123
John Criswell47fdd832003-07-14 16:52:07 +00004124# Allow CC to be a program name with arguments.
4125compiler=$CC
John Criswell7a73b802003-06-30 21:59:07 +00004126
John Criswell47fdd832003-07-14 16:52:07 +00004127# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4128if test "${enable_libtool_lock+set}" = set; then
4129 enableval="$enable_libtool_lock"
John Criswell7a73b802003-06-30 21:59:07 +00004130
John Criswell47fdd832003-07-14 16:52:07 +00004131fi;
4132test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
John Criswell7a73b802003-06-30 21:59:07 +00004133
John Criswell47fdd832003-07-14 16:52:07 +00004134# Some flags need to be propagated to the compiler or linker for good
4135# libtool support.
4136case $host in
4137ia64-*-hpux*)
4138 # Find out which ABI we are using.
4139 echo 'int i;' > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4141 (eval $ac_compile) 2>&5
4142 ac_status=$?
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; then
John Criswell47fdd832003-07-14 16:52:07 +00004145 case `/usr/bin/file conftest.$ac_objext` in
4146 *ELF-32*)
4147 HPUX_IA64_MODE="32"
4148 ;;
4149 *ELF-64*)
4150 HPUX_IA64_MODE="64"
4151 ;;
4152 esac
4153 fi
4154 rm -rf conftest*
4155 ;;
4156*-*-irix6*)
4157 # Find out which ABI we are using.
Reid Spencer17041682004-09-05 17:48:32 +00004158 echo '#line 4158 "configure"' > conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4160 (eval $ac_compile) 2>&5
John Criswell7a73b802003-06-30 21:59:07 +00004161 ac_status=$?
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004163 (exit $ac_status); }; then
4164 if test "$lt_cv_prog_gnu_ld" = yes; then
4165 case `/usr/bin/file conftest.$ac_objext` in
4166 *32-bit*)
4167 LD="${LD-ld} -melf32bsmip"
4168 ;;
4169 *N32*)
4170 LD="${LD-ld} -melf32bmipn32"
4171 ;;
4172 *64-bit*)
4173 LD="${LD-ld} -melf64bmip"
4174 ;;
4175 esac
4176 else
4177 case `/usr/bin/file conftest.$ac_objext` in
4178 *32-bit*)
4179 LD="${LD-ld} -32"
4180 ;;
4181 *N32*)
4182 LD="${LD-ld} -n32"
4183 ;;
4184 *64-bit*)
4185 LD="${LD-ld} -64"
4186 ;;
4187 esac
4188 fi
4189 fi
4190 rm -rf conftest*
4191 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004192
John Criswell47fdd832003-07-14 16:52:07 +00004193x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4194 # Find out which ABI we are using.
4195 echo 'int i;' > conftest.$ac_ext
4196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4197 (eval $ac_compile) 2>&5
4198 ac_status=$?
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; then
4201 case "`/usr/bin/file conftest.o`" in
4202 *32-bit*)
4203 case $host in
4204 x86_64-*linux*)
4205 LD="${LD-ld} -m elf_i386"
4206 ;;
4207 ppc64-*linux*)
4208 LD="${LD-ld} -m elf32ppclinux"
4209 ;;
4210 s390x-*linux*)
4211 LD="${LD-ld} -m elf_s390"
4212 ;;
4213 sparc64-*linux*)
4214 LD="${LD-ld} -m elf32_sparc"
4215 ;;
4216 esac
4217 ;;
4218 *64-bit*)
4219 case $host in
4220 x86_64-*linux*)
4221 LD="${LD-ld} -m elf_x86_64"
4222 ;;
4223 ppc*-*linux*|powerpc*-*linux*)
4224 LD="${LD-ld} -m elf64ppc"
4225 ;;
4226 s390*-*linux*)
4227 LD="${LD-ld} -m elf64_s390"
4228 ;;
4229 sparc*-*linux*)
4230 LD="${LD-ld} -m elf64_sparc"
4231 ;;
4232 esac
4233 ;;
4234 esac
4235 fi
4236 rm -rf conftest*
4237 ;;
4238
4239*-*-sco3.2v5*)
4240 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4241 SAVE_CFLAGS="$CFLAGS"
4242 CFLAGS="$CFLAGS -belf"
4243 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4244echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4245if test "${lt_cv_cc_needs_belf+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247else
4248 ac_ext=c
4249ac_cpp='$CPP $CPPFLAGS'
4250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252ac_compiler_gnu=$ac_cv_c_compiler_gnu
4253
4254 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004255/* confdefs.h. */
4256_ACEOF
4257cat confdefs.h >>conftest.$ac_ext
4258cat >>conftest.$ac_ext <<_ACEOF
4259/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004260
John Criswell47fdd832003-07-14 16:52:07 +00004261int
4262main ()
John Criswell7a73b802003-06-30 21:59:07 +00004263{
John Criswell7a73b802003-06-30 21:59:07 +00004264
John Criswell47fdd832003-07-14 16:52:07 +00004265 ;
4266 return 0;
John Criswell7a73b802003-06-30 21:59:07 +00004267}
John Criswell47fdd832003-07-14 16:52:07 +00004268_ACEOF
4269rm -f conftest.$ac_objext conftest$ac_exeext
4270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00004271 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004272 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00004273 grep -v '^ *+' conftest.er1 >conftest.err
4274 rm -f conftest.er1
4275 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00004277 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00004278 { ac_try='test -z "$ac_c_werror_flag"
4279 || test ! -s conftest.err'
4280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4281 (eval $ac_try) 2>&5
4282 ac_status=$?
4283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4284 (exit $ac_status); }; } &&
4285 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00004286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 (eval $ac_try) 2>&5
4288 ac_status=$?
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); }; }; then
4291 lt_cv_cc_needs_belf=yes
John Criswell7a73b802003-06-30 21:59:07 +00004292else
John Criswell47fdd832003-07-14 16:52:07 +00004293 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004294sed 's/^/| /' conftest.$ac_ext >&5
4295
John Criswell47fdd832003-07-14 16:52:07 +00004296lt_cv_cc_needs_belf=no
John Criswell7a73b802003-06-30 21:59:07 +00004297fi
Reid Spencer17041682004-09-05 17:48:32 +00004298rm -f conftest.err conftest.$ac_objext \
4299 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00004300 ac_ext=c
4301ac_cpp='$CPP $CPPFLAGS'
4302ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4303ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4304ac_compiler_gnu=$ac_cv_c_compiler_gnu
4305
John Criswell7a73b802003-06-30 21:59:07 +00004306fi
John Criswell47fdd832003-07-14 16:52:07 +00004307echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4308echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4309 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4310 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4311 CFLAGS="$SAVE_CFLAGS"
4312 fi
4313 ;;
4314
4315esac
4316
4317need_locks="$enable_libtool_lock"
4318
John Criswell7a73b802003-06-30 21:59:07 +00004319
4320
4321echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4322echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4323if test "${ac_cv_header_stdc+set}" = set; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4325else
4326 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004327/* confdefs.h. */
4328_ACEOF
4329cat confdefs.h >>conftest.$ac_ext
4330cat >>conftest.$ac_ext <<_ACEOF
4331/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004332#include <stdlib.h>
4333#include <stdarg.h>
4334#include <string.h>
4335#include <float.h>
4336
John Criswell0c38eaf2003-09-10 15:17:25 +00004337int
4338main ()
4339{
4340
4341 ;
4342 return 0;
4343}
John Criswell7a73b802003-06-30 21:59:07 +00004344_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004345rm -f conftest.$ac_objext
4346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00004347 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004348 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00004349 grep -v '^ *+' conftest.er1 >conftest.err
4350 rm -f conftest.er1
4351 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004353 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00004354 { ac_try='test -z "$ac_c_werror_flag"
4355 || test ! -s conftest.err'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 (eval $ac_try) 2>&5
4358 ac_status=$?
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; } &&
4361 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +00004362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 (eval $ac_try) 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00004367 ac_cv_header_stdc=yes
4368else
4369 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004370sed 's/^/| /' conftest.$ac_ext >&5
4371
4372ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +00004373fi
Reid Spencer17041682004-09-05 17:48:32 +00004374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004375
4376if test $ac_cv_header_stdc = yes; then
4377 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4378 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004379/* confdefs.h. */
4380_ACEOF
4381cat confdefs.h >>conftest.$ac_ext
4382cat >>conftest.$ac_ext <<_ACEOF
4383/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004384#include <string.h>
4385
4386_ACEOF
4387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004388 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004389 :
4390else
4391 ac_cv_header_stdc=no
4392fi
4393rm -f conftest*
4394
4395fi
4396
4397if test $ac_cv_header_stdc = yes; then
4398 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4399 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004400/* confdefs.h. */
4401_ACEOF
4402cat confdefs.h >>conftest.$ac_ext
4403cat >>conftest.$ac_ext <<_ACEOF
4404/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004405#include <stdlib.h>
4406
4407_ACEOF
4408if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +00004409 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +00004410 :
4411else
4412 ac_cv_header_stdc=no
4413fi
4414rm -f conftest*
4415
4416fi
4417
4418if test $ac_cv_header_stdc = yes; then
4419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4420 if test "$cross_compiling" = yes; then
4421 :
4422else
4423 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004424/* confdefs.h. */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004429#include <ctype.h>
4430#if ((' ' & 0x0FF) == 0x020)
4431# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4432# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4433#else
John Criswell0c38eaf2003-09-10 15:17:25 +00004434# define ISLOWER(c) \
Reid Spencer17041682004-09-05 17:48:32 +00004435 (('a' <= (c) && (c) <= 'i') \
4436 || ('j' <= (c) && (c) <= 'r') \
4437 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +00004438# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4439#endif
4440
4441#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4442int
4443main ()
4444{
4445 int i;
4446 for (i = 0; i < 256; i++)
4447 if (XOR (islower (i), ISLOWER (i))
Reid Spencer17041682004-09-05 17:48:32 +00004448 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +00004449 exit(2);
4450 exit (0);
4451}
4452_ACEOF
4453rm -f conftest$ac_exeext
4454if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4455 (eval $ac_link) 2>&5
4456 ac_status=$?
4457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4458 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4460 (eval $ac_try) 2>&5
4461 ac_status=$?
4462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4463 (exit $ac_status); }; }; then
4464 :
4465else
4466 echo "$as_me: program exited with status $ac_status" >&5
4467echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004468sed 's/^/| /' conftest.$ac_ext >&5
4469
John Criswell7a73b802003-06-30 21:59:07 +00004470( exit $ac_status )
4471ac_cv_header_stdc=no
4472fi
Reid Spencer17041682004-09-05 17:48:32 +00004473rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004474fi
4475fi
4476fi
4477echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4478echo "${ECHO_T}$ac_cv_header_stdc" >&6
4479if test $ac_cv_header_stdc = yes; then
4480
4481cat >>confdefs.h <<\_ACEOF
4482#define STDC_HEADERS 1
4483_ACEOF
4484
4485fi
4486
4487# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Reid Spencer17041682004-09-05 17:48:32 +00004498 inttypes.h stdint.h unistd.h
John Criswell7a73b802003-06-30 21:59:07 +00004499do
4500as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4501echo "$as_me:$LINENO: checking for $ac_header" >&5
4502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4503if eval "test \"\${$as_ac_Header+set}\" = set"; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4505else
4506 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004507/* confdefs.h. */
4508_ACEOF
4509cat confdefs.h >>conftest.$ac_ext
4510cat >>conftest.$ac_ext <<_ACEOF
4511/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004512$ac_includes_default
4513
4514#include <$ac_header>
4515_ACEOF
4516rm -f conftest.$ac_objext
4517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00004518 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004519 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00004520 grep -v '^ *+' conftest.er1 >conftest.err
4521 rm -f conftest.er1
4522 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00004525 { ac_try='test -z "$ac_c_werror_flag"
4526 || test ! -s conftest.err'
4527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4528 (eval $ac_try) 2>&5
4529 ac_status=$?
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); }; } &&
4532 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; }; then
4538 eval "$as_ac_Header=yes"
4539else
4540 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004541sed 's/^/| /' conftest.$ac_ext >&5
4542
John Criswell7a73b802003-06-30 21:59:07 +00004543eval "$as_ac_Header=no"
4544fi
Reid Spencer17041682004-09-05 17:48:32 +00004545rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004546fi
4547echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4548echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4549if test `eval echo '${'$as_ac_Header'}'` = yes; then
4550 cat >>confdefs.h <<_ACEOF
4551#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4552_ACEOF
4553
4554fi
4555
4556done
4557
4558
4559
4560for ac_header in dlfcn.h
4561do
4562as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4563if eval "test \"\${$as_ac_Header+set}\" = set"; then
4564 echo "$as_me:$LINENO: checking for $ac_header" >&5
4565echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4566if eval "test \"\${$as_ac_Header+set}\" = set"; then
4567 echo $ECHO_N "(cached) $ECHO_C" >&6
4568fi
4569echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4570echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4571else
4572 # Is the header compilable?
4573echo "$as_me:$LINENO: checking $ac_header usability" >&5
4574echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4575cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004576/* confdefs.h. */
4577_ACEOF
4578cat confdefs.h >>conftest.$ac_ext
4579cat >>conftest.$ac_ext <<_ACEOF
4580/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004581$ac_includes_default
4582#include <$ac_header>
4583_ACEOF
4584rm -f conftest.$ac_objext
4585if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00004586 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00004587 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00004588 grep -v '^ *+' conftest.er1 >conftest.err
4589 rm -f conftest.er1
4590 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00004591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00004593 { ac_try='test -z "$ac_c_werror_flag"
4594 || test ! -s conftest.err'
4595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4596 (eval $ac_try) 2>&5
4597 ac_status=$?
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }; } &&
4600 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +00004601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4602 (eval $ac_try) 2>&5
4603 ac_status=$?
4604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4605 (exit $ac_status); }; }; then
4606 ac_header_compiler=yes
4607else
4608 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004609sed 's/^/| /' conftest.$ac_ext >&5
4610
John Criswell7a73b802003-06-30 21:59:07 +00004611ac_header_compiler=no
4612fi
Reid Spencer17041682004-09-05 17:48:32 +00004613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00004614echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4615echo "${ECHO_T}$ac_header_compiler" >&6
4616
4617# Is the header present?
4618echo "$as_me:$LINENO: checking $ac_header presence" >&5
4619echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4620cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004621/* confdefs.h. */
4622_ACEOF
4623cat confdefs.h >>conftest.$ac_ext
4624cat >>conftest.$ac_ext <<_ACEOF
4625/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00004626#include <$ac_header>
4627_ACEOF
4628if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4630 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004631 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +00004632 rm -f conftest.er1
4633 cat conftest.err >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); } >/dev/null; then
4636 if test -s conftest.err; then
4637 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00004638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004639 else
4640 ac_cpp_err=
4641 fi
4642else
4643 ac_cpp_err=yes
4644fi
4645if test -z "$ac_cpp_err"; then
4646 ac_header_preproc=yes
4647else
4648 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004649sed 's/^/| /' conftest.$ac_ext >&5
4650
John Criswell7a73b802003-06-30 21:59:07 +00004651 ac_header_preproc=no
4652fi
4653rm -f conftest.err conftest.$ac_ext
4654echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4655echo "${ECHO_T}$ac_header_preproc" >&6
4656
4657# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +00004658case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4659 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +00004660 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4661echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +00004662 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4663echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4664 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +00004665 ;;
Reid Spencer17041682004-09-05 17:48:32 +00004666 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +00004667 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4668echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +00004669 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4670echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4671 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4672echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4673 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4674echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +00004675 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4676echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +00004677 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4678echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +00004679 (
4680 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +00004681## ----------------------------------- ##
4682## Report this to llvmbugs@cs.uiuc.edu ##
4683## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +00004684_ASBOX
4685 ) |
4686 sed "s/^/$as_me: WARNING: /" >&2
4687 ;;
John Criswell7a73b802003-06-30 21:59:07 +00004688esac
4689echo "$as_me:$LINENO: checking for $ac_header" >&5
4690echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4691if eval "test \"\${$as_ac_Header+set}\" = set"; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693else
Reid Spencer17041682004-09-05 17:48:32 +00004694 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +00004695fi
4696echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4697echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4698
4699fi
4700if test `eval echo '${'$as_ac_Header'}'` = yes; then
4701 cat >>confdefs.h <<_ACEOF
4702#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4703_ACEOF
4704
4705fi
4706
4707done
4708
John Criswell47fdd832003-07-14 16:52:07 +00004709ac_ext=cc
4710ac_cpp='$CXXCPP $CPPFLAGS'
4711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4714echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4715echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4716if test -z "$CXXCPP"; then
4717 if test "${ac_cv_prog_CXXCPP+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00004718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719else
John Criswell47fdd832003-07-14 16:52:07 +00004720 # Double quotes because CXXCPP needs to be expanded
4721 for CXXCPP in "$CXX -E" "/lib/cpp"
4722 do
4723 ac_preproc_ok=false
4724for ac_cxx_preproc_warn_flag in '' yes
4725do
4726 # Use a header file that comes with gcc, so configuring glibc
4727 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4729 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004730 # On the NeXT, cc -E runs the code through the compiler's parser,
4731 # not just through cpp. "Syntax error" is here to catch this case.
4732 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004733/* confdefs.h. */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h. */
4738#ifdef __STDC__
4739# include <limits.h>
4740#else
4741# include <assert.h>
4742#endif
Reid Spencer17041682004-09-05 17:48:32 +00004743 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004744_ACEOF
4745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4747 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004748 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004749 rm -f conftest.er1
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null; then
4753 if test -s conftest.err; then
4754 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00004755 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +00004756 else
John Criswell47fdd832003-07-14 16:52:07 +00004757 ac_cpp_err=
John Criswell7a73b802003-06-30 21:59:07 +00004758 fi
John Criswell47fdd832003-07-14 16:52:07 +00004759else
4760 ac_cpp_err=yes
4761fi
4762if test -z "$ac_cpp_err"; then
4763 :
4764else
4765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004766sed 's/^/| /' conftest.$ac_ext >&5
4767
John Criswell47fdd832003-07-14 16:52:07 +00004768 # Broken: fails on valid input.
4769continue
4770fi
4771rm -f conftest.err conftest.$ac_ext
4772
4773 # OK, works on sane cases. Now check whether non-existent headers
4774 # can be detected and how.
4775 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004776/* confdefs.h. */
4777_ACEOF
4778cat confdefs.h >>conftest.$ac_ext
4779cat >>conftest.$ac_ext <<_ACEOF
4780/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004781#include <ac_nonexistent.h>
4782_ACEOF
4783if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4784 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4785 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004786 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004787 rm -f conftest.er1
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } >/dev/null; then
4791 if test -s conftest.err; then
4792 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00004793 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004794 else
4795 ac_cpp_err=
4796 fi
4797else
4798 ac_cpp_err=yes
4799fi
4800if test -z "$ac_cpp_err"; then
4801 # Broken: success on invalid input.
4802continue
4803else
4804 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004805sed 's/^/| /' conftest.$ac_ext >&5
4806
John Criswell47fdd832003-07-14 16:52:07 +00004807 # Passes both tests.
4808ac_preproc_ok=:
4809break
4810fi
4811rm -f conftest.err conftest.$ac_ext
4812
4813done
4814# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4815rm -f conftest.err conftest.$ac_ext
4816if $ac_preproc_ok; then
4817 break
John Criswell7a73b802003-06-30 21:59:07 +00004818fi
4819
John Criswell47fdd832003-07-14 16:52:07 +00004820 done
4821 ac_cv_prog_CXXCPP=$CXXCPP
4822
4823fi
4824 CXXCPP=$ac_cv_prog_CXXCPP
4825else
4826 ac_cv_prog_CXXCPP=$CXXCPP
4827fi
4828echo "$as_me:$LINENO: result: $CXXCPP" >&5
4829echo "${ECHO_T}$CXXCPP" >&6
4830ac_preproc_ok=false
4831for ac_cxx_preproc_warn_flag in '' yes
4832do
4833 # Use a header file that comes with gcc, so configuring glibc
4834 # with a fresh cross-compiler works.
John Criswell0c38eaf2003-09-10 15:17:25 +00004835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4836 # <limits.h> exists even on freestanding compilers.
John Criswell47fdd832003-07-14 16:52:07 +00004837 # On the NeXT, cc -E runs the code through the compiler's parser,
4838 # not just through cpp. "Syntax error" is here to catch this case.
4839 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004840/* confdefs.h. */
4841_ACEOF
4842cat confdefs.h >>conftest.$ac_ext
4843cat >>conftest.$ac_ext <<_ACEOF
4844/* end confdefs.h. */
4845#ifdef __STDC__
4846# include <limits.h>
4847#else
4848# include <assert.h>
4849#endif
Reid Spencer17041682004-09-05 17:48:32 +00004850 Syntax error
John Criswell47fdd832003-07-14 16:52:07 +00004851_ACEOF
4852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4853 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4854 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004855 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004856 rm -f conftest.er1
4857 cat conftest.err >&5
4858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859 (exit $ac_status); } >/dev/null; then
4860 if test -s conftest.err; then
4861 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00004862 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004863 else
4864 ac_cpp_err=
4865 fi
4866else
4867 ac_cpp_err=yes
4868fi
4869if test -z "$ac_cpp_err"; then
4870 :
4871else
4872 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004873sed 's/^/| /' conftest.$ac_ext >&5
4874
John Criswell47fdd832003-07-14 16:52:07 +00004875 # Broken: fails on valid input.
4876continue
4877fi
4878rm -f conftest.err conftest.$ac_ext
4879
4880 # OK, works on sane cases. Now check whether non-existent headers
4881 # can be detected and how.
4882 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00004883/* confdefs.h. */
4884_ACEOF
4885cat confdefs.h >>conftest.$ac_ext
4886cat >>conftest.$ac_ext <<_ACEOF
4887/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00004888#include <ac_nonexistent.h>
4889_ACEOF
4890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4891 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4892 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +00004893 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell47fdd832003-07-14 16:52:07 +00004894 rm -f conftest.er1
4895 cat conftest.err >&5
4896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897 (exit $ac_status); } >/dev/null; then
4898 if test -s conftest.err; then
4899 ac_cpp_err=$ac_cxx_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +00004900 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
John Criswell47fdd832003-07-14 16:52:07 +00004901 else
4902 ac_cpp_err=
4903 fi
4904else
4905 ac_cpp_err=yes
4906fi
4907if test -z "$ac_cpp_err"; then
4908 # Broken: success on invalid input.
4909continue
4910else
4911 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00004912sed 's/^/| /' conftest.$ac_ext >&5
4913
John Criswell47fdd832003-07-14 16:52:07 +00004914 # Passes both tests.
4915ac_preproc_ok=:
4916break
4917fi
4918rm -f conftest.err conftest.$ac_ext
4919
4920done
4921# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4922rm -f conftest.err conftest.$ac_ext
4923if $ac_preproc_ok; then
4924 :
4925else
John Criswell0c38eaf2003-09-10 15:17:25 +00004926 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4927See \`config.log' for more details." >&5
4928echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4929See \`config.log' for more details." >&2;}
John Criswell47fdd832003-07-14 16:52:07 +00004930 { (exit 1); exit 1; }; }
4931fi
4932
4933ac_ext=cc
4934ac_cpp='$CXXCPP $CPPFLAGS'
4935ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4936ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4937ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4938
4939
4940ac_ext=f
4941ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4942ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4944if test -n "$ac_tool_prefix"; then
Reid Spencer17041682004-09-05 17:48:32 +00004945 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 +00004946 do
4947 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4948set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4949echo "$as_me:$LINENO: checking for $ac_word" >&5
4950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4951if test "${ac_cv_prog_F77+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953else
4954 if test -n "$F77"; then
4955 ac_cv_prog_F77="$F77" # Let the user override the test.
4956else
4957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH
4959do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4964 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4967 fi
4968done
4969done
4970
4971fi
4972fi
4973F77=$ac_cv_prog_F77
4974if test -n "$F77"; then
4975 echo "$as_me:$LINENO: result: $F77" >&5
4976echo "${ECHO_T}$F77" >&6
4977else
4978 echo "$as_me:$LINENO: result: no" >&5
4979echo "${ECHO_T}no" >&6
4980fi
4981
4982 test -n "$F77" && break
4983 done
4984fi
4985if test -z "$F77"; then
4986 ac_ct_F77=$F77
Reid Spencer17041682004-09-05 17:48:32 +00004987 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 +00004988do
4989 # Extract the first word of "$ac_prog", so it can be a program name with args.
4990set dummy $ac_prog; ac_word=$2
4991echo "$as_me:$LINENO: checking for $ac_word" >&5
4992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4993if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995else
4996 if test -n "$ac_ct_F77"; then
4997 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4998else
4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5006 ac_cv_prog_ac_ct_F77="$ac_prog"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5009 fi
5010done
5011done
5012
5013fi
5014fi
5015ac_ct_F77=$ac_cv_prog_ac_ct_F77
5016if test -n "$ac_ct_F77"; then
5017 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5018echo "${ECHO_T}$ac_ct_F77" >&6
5019else
5020 echo "$as_me:$LINENO: result: no" >&5
5021echo "${ECHO_T}no" >&6
5022fi
5023
5024 test -n "$ac_ct_F77" && break
5025done
5026
5027 F77=$ac_ct_F77
5028fi
5029
5030
5031# Provide some information about the compiler.
Reid Spencer17041682004-09-05 17:48:32 +00005032echo "$as_me:5032:" \
John Criswell47fdd832003-07-14 16:52:07 +00005033 "checking for Fortran 77 compiler version" >&5
5034ac_compiler=`set X $ac_compile; echo $2`
5035{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5036 (eval $ac_compiler --version </dev/null >&5) 2>&5
5037 ac_status=$?
5038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039 (exit $ac_status); }
5040{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5041 (eval $ac_compiler -v </dev/null >&5) 2>&5
5042 ac_status=$?
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }
5045{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5046 (eval $ac_compiler -V </dev/null >&5) 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); }
Reid Spencer17041682004-09-05 17:48:32 +00005050rm -f a.out
John Criswell47fdd832003-07-14 16:52:07 +00005051
5052# If we don't use `.F' as extension, the preprocessor is not run on the
Reid Spencer17041682004-09-05 17:48:32 +00005053# input file. (Note that this only needs to work for GNU compilers.)
John Criswell47fdd832003-07-14 16:52:07 +00005054ac_save_ext=$ac_ext
5055ac_ext=F
5056echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5057echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5058if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5059 echo $ECHO_N "(cached) $ECHO_C" >&6
5060else
5061 cat >conftest.$ac_ext <<_ACEOF
5062 program main
5063#ifndef __GNUC__
5064 choke me
5065#endif
5066
5067 end
5068_ACEOF
5069rm -f conftest.$ac_objext
5070if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00005071 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005072 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00005073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00005078 { ac_try='test -z "$ac_f77_werror_flag"
5079 || test ! -s conftest.err'
5080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081 (eval $ac_try) 2>&5
5082 ac_status=$?
5083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084 (exit $ac_status); }; } &&
5085 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5087 (eval $ac_try) 2>&5
5088 ac_status=$?
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }; }; then
5091 ac_compiler_gnu=yes
5092else
5093 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005094sed 's/^/| /' conftest.$ac_ext >&5
5095
John Criswell47fdd832003-07-14 16:52:07 +00005096ac_compiler_gnu=no
5097fi
Reid Spencer17041682004-09-05 17:48:32 +00005098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005099ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5100
5101fi
5102echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5103echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5104ac_ext=$ac_save_ext
John Criswell47fdd832003-07-14 16:52:07 +00005105ac_test_FFLAGS=${FFLAGS+set}
5106ac_save_FFLAGS=$FFLAGS
5107FFLAGS=
5108echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5109echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5110if test "${ac_cv_prog_f77_g+set}" = set; then
5111 echo $ECHO_N "(cached) $ECHO_C" >&6
5112else
5113 FFLAGS=-g
5114cat >conftest.$ac_ext <<_ACEOF
5115 program main
5116
5117 end
5118_ACEOF
5119rm -f conftest.$ac_objext
5120if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00005121 (eval $ac_compile) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00005122 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00005123 grep -v '^ *+' conftest.er1 >conftest.err
5124 rm -f conftest.er1
5125 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00005126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5127 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00005128 { ac_try='test -z "$ac_f77_werror_flag"
5129 || test ! -s conftest.err'
5130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5131 (eval $ac_try) 2>&5
5132 ac_status=$?
5133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134 (exit $ac_status); }; } &&
5135 { ac_try='test -s conftest.$ac_objext'
John Criswell47fdd832003-07-14 16:52:07 +00005136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5137 (eval $ac_try) 2>&5
5138 ac_status=$?
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; }; then
5141 ac_cv_prog_f77_g=yes
5142else
5143 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00005144sed 's/^/| /' conftest.$ac_ext >&5
5145
John Criswell47fdd832003-07-14 16:52:07 +00005146ac_cv_prog_f77_g=no
5147fi
Reid Spencer17041682004-09-05 17:48:32 +00005148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00005149
5150fi
5151echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5152echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5153if test "$ac_test_FFLAGS" = set; then
5154 FFLAGS=$ac_save_FFLAGS
5155elif test $ac_cv_prog_f77_g = yes; then
Reid Spencer17041682004-09-05 17:48:32 +00005156 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005157 FFLAGS="-g -O2"
5158 else
5159 FFLAGS="-g"
5160 fi
5161else
Reid Spencer17041682004-09-05 17:48:32 +00005162 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
John Criswell47fdd832003-07-14 16:52:07 +00005163 FFLAGS="-O2"
5164 else
5165 FFLAGS=
5166 fi
5167fi
Reid Spencer17041682004-09-05 17:48:32 +00005168
5169G77=`test $ac_compiler_gnu = yes && echo yes`
John Criswell47fdd832003-07-14 16:52:07 +00005170ac_ext=c
5171ac_cpp='$CPP $CPPFLAGS'
5172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5174ac_compiler_gnu=$ac_cv_c_compiler_gnu
5175
5176
5177
5178# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5179
5180# find the maximum length of command line arguments
5181echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5182echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5183if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5185else
5186 i=0
5187 testring="ABCD"
5188
5189 case $build_os in
5190 msdosdjgpp*)
5191 # On DJGPP, this test can blow up pretty badly due to problems in libc
5192 # (any single argument exceeding 2000 bytes causes a buffer overrun
5193 # during glob expansion). Even if it were fixed, the result of this
5194 # check would be larger than it should be.
5195 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5196 ;;
5197
5198 gnu*)
5199 # Under GNU Hurd, this test is not required because there is
5200 # no limit to the length of command line arguments.
5201 # Libtool will interpret -1 as no limit whatsoever
5202 lt_cv_sys_max_cmd_len=-1;
5203 ;;
5204
5205 cygwin* | mingw*)
5206 # On Win9x/ME, this test blows up -- it succeeds, but takes
5207 # about 5 minutes as the teststring grows exponentially.
5208 # Worse, since 9x/ME are not pre-emptively multitasking,
5209 # you end up with a "frozen" computer, even though with patience
5210 # the test eventually succeeds (with a max line length of 256k).
5211 # Instead, let's just punt: use the minimum linelength reported by
5212 # all of the supported platforms: 8192 (on NT/2K/XP).
5213 lt_cv_sys_max_cmd_len=8192;
5214 ;;
5215
5216 *)
5217 # If test is not a shell built-in, we'll probably end up computing a
5218 # maximum length that is only half of the actual maximum length, but
5219 # we can't tell.
5220 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5221 = "XX$testring") >/dev/null 2>&1 &&
5222 new_result=`expr "X$testring" : ".*" 2>&1` &&
5223 lt_cv_sys_max_cmd_len=$new_result &&
5224 test $i != 17 # 1/2 MB should be enough
5225 do
5226 i=`expr $i + 1`
5227 testring=$testring$testring
5228 done
5229 testring=
5230 # Add a significant safety factor because C++ compilers can tack on massive
5231 # amounts of additional arguments before passing them to the linker.
5232 # It appears as though 1/2 is a usable value.
5233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5234 ;;
5235 esac
5236
5237fi
5238
5239if test -n $lt_cv_sys_max_cmd_len ; then
5240 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5241echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5242else
5243 echo "$as_me:$LINENO: result: none" >&5
5244echo "${ECHO_T}none" >&6
5245fi
5246
5247
5248
5249
5250# Check for command to grab the raw symbol name followed by C symbol from nm.
5251echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5252echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5253if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255else
5256
5257# These are sane defaults that work on at least a few old systems.
5258# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5259
5260# Character class describing NM global symbol codes.
5261symcode='[BCDEGRST]'
5262
5263# Regexp to match symbols that can be accessed directly from C.
5264sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5265
5266# Transform the above into a raw symbol and a C symbol.
5267symxfrm='\1 \2\3 \3'
5268
5269# Transform an extracted symbol line into a proper C declaration
5270lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5271
5272# Transform an extracted symbol line into symbol name and symbol address
5273lt_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'"
5274
5275# Define system-specific variables.
5276case $host_os in
5277aix*)
5278 symcode='[BCDT]'
5279 ;;
5280cygwin* | mingw* | pw32*)
5281 symcode='[ABCDGISTW]'
5282 ;;
5283hpux*) # Its linker distinguishes data from code symbols
5284 if test "$host_cpu" = ia64; then
5285 symcode='[ABCDEGRST]'
5286 fi
5287 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5288 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'"
5289 ;;
5290irix* | nonstopux*)
5291 symcode='[BCDEGRST]'
5292 ;;
5293osf*)
5294 symcode='[BCDEGQRST]'
5295 ;;
5296solaris* | sysv5*)
5297 symcode='[BDT]'
5298 ;;
5299sysv4)
5300 symcode='[DFNSTU]'
5301 ;;
5302esac
5303
5304# Handle CRLF in mingw tool chain
5305opt_cr=
5306case $build_os in
5307mingw*)
5308 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5309 ;;
5310esac
5311
5312# If we're using GNU nm, then use its standard symbol codes.
5313case `$NM -V 2>&1` in
5314*GNU* | *'with BFD'*)
5315 symcode='[ABCDGISTW]' ;;
5316esac
5317
5318# Try without a prefix undercore, then with it.
5319for ac_symprfx in "" "_"; do
5320
5321 # Write the raw and C identifiers.
5322 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5323
5324 # Check to see that the pipe works correctly.
5325 pipe_works=no
5326
5327 rm -f conftest*
5328 cat > conftest.$ac_ext <<EOF
5329#ifdef __cplusplus
5330extern "C" {
5331#endif
5332char nm_test_var;
5333void nm_test_func(){}
5334#ifdef __cplusplus
5335}
5336#endif
5337int main(){nm_test_var='a';nm_test_func();return(0);}
5338EOF
5339
5340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5341 (eval $ac_compile) 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; then
5345 # Now try to grab the symbols.
5346 nlist=conftest.nm
5347 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5348 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5349 ac_status=$?
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); } && test -s "$nlist"; then
5352 # Try sorting and uniquifying the output.
5353 if sort "$nlist" | uniq > "$nlist"T; then
5354 mv -f "$nlist"T "$nlist"
5355 else
5356 rm -f "$nlist"T
5357 fi
5358
5359 # Make sure that we snagged all the symbols we need.
5360 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5361 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5362 cat <<EOF > conftest.$ac_ext
5363#ifdef __cplusplus
5364extern "C" {
5365#endif
5366
5367EOF
5368 # Now generate the symbol file.
5369 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5370
5371 cat <<EOF >> conftest.$ac_ext
5372#if defined (__STDC__) && __STDC__
5373# define lt_ptr_t void *
5374#else
5375# define lt_ptr_t char *
5376# define const
5377#endif
5378
5379/* The mapping between symbol names and symbols. */
5380const struct {
5381 const char *name;
5382 lt_ptr_t address;
5383}
5384lt_preloaded_symbols[] =
5385{
5386EOF
5387 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5388 cat <<\EOF >> conftest.$ac_ext
5389 {0, (lt_ptr_t) 0}
5390};
5391
5392#ifdef __cplusplus
5393}
5394#endif
5395EOF
5396 # Now try linking the two files.
5397 mv conftest.$ac_objext conftstm.$ac_objext
5398 lt_save_LIBS="$LIBS"
5399 lt_save_CFLAGS="$CFLAGS"
5400 LIBS="conftstm.$ac_objext"
5401 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5403 (eval $ac_link) 2>&5
5404 ac_status=$?
5405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5406 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5407 pipe_works=yes
5408 fi
5409 LIBS="$lt_save_LIBS"
5410 CFLAGS="$lt_save_CFLAGS"
5411 else
5412 echo "cannot find nm_test_func in $nlist" >&5
5413 fi
5414 else
5415 echo "cannot find nm_test_var in $nlist" >&5
5416 fi
5417 else
5418 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5419 fi
5420 else
5421 echo "$progname: failed program was:" >&5
5422 cat conftest.$ac_ext >&5
5423 fi
5424 rm -f conftest* conftst*
5425
5426 # Do not use the global_symbol_pipe unless it works.
5427 if test "$pipe_works" = yes; then
5428 break
5429 else
5430 lt_cv_sys_global_symbol_pipe=
5431 fi
5432done
5433
5434fi
5435
5436if test -z "$lt_cv_sys_global_symbol_pipe"; then
5437 lt_cv_sys_global_symbol_to_cdecl=
5438fi
5439if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5440 echo "$as_me:$LINENO: result: failed" >&5
5441echo "${ECHO_T}failed" >&6
5442else
5443 echo "$as_me:$LINENO: result: ok" >&5
5444echo "${ECHO_T}ok" >&6
5445fi
5446
5447echo "$as_me:$LINENO: checking for objdir" >&5
5448echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5449if test "${lt_cv_objdir+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5452 rm -f .libs 2>/dev/null
5453mkdir .libs 2>/dev/null
5454if test -d .libs; then
5455 lt_cv_objdir=.libs
5456else
5457 # MS-DOS does not allow filenames that begin with a dot.
5458 lt_cv_objdir=_libs
5459fi
5460rmdir .libs 2>/dev/null
5461fi
5462echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5463echo "${ECHO_T}$lt_cv_objdir" >&6
5464objdir=$lt_cv_objdir
5465
5466
5467
5468
5469
5470case $host_os in
5471aix3*)
5472 # AIX sometimes has problems with the GCC collect2 program. For some
5473 # reason, if we set the COLLECT_NAMES environment variable, the problems
5474 # vanish in a puff of smoke.
5475 if test "X${COLLECT_NAMES+set}" != Xset; then
5476 COLLECT_NAMES=
5477 export COLLECT_NAMES
John Criswell7a73b802003-06-30 21:59:07 +00005478 fi
5479 ;;
5480esac
5481
John Criswell47fdd832003-07-14 16:52:07 +00005482# Sed substitution that helps us do robust quoting. It backslashifies
5483# metacharacters that are still active within double-quoted strings.
5484Xsed='sed -e s/^X//'
5485sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5486
5487# Same as above, but do not quote variable references.
5488double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5489
5490# Sed substitution to delay expansion of an escaped shell variable in a
5491# double_quote_subst'ed string.
5492delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5493
5494# Sed substitution to avoid accidental globbing in evaled expressions
5495no_glob_subst='s/\*/\\\*/g'
5496
5497# Constants:
5498rm="rm -f"
5499
5500# Global variables:
John Criswell8d4221e2003-07-23 16:52:50 +00005501default_ofile=mklib
John Criswell47fdd832003-07-14 16:52:07 +00005502can_build_shared=yes
5503
5504# All known linkers require a `.a' archive for static linking (except M$VC,
5505# which needs '.lib').
5506libext=a
5507ltmain="$ac_aux_dir/ltmain.sh"
5508ofile="$default_ofile"
5509with_gnu_ld="$lt_cv_prog_gnu_ld"
5510
5511if test -n "$ac_tool_prefix"; then
5512 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5513set dummy ${ac_tool_prefix}ar; ac_word=$2
5514echo "$as_me:$LINENO: checking for $ac_word" >&5
5515echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5516if test "${ac_cv_prog_AR+set}" = set; then
5517 echo $ECHO_N "(cached) $ECHO_C" >&6
5518else
5519 if test -n "$AR"; then
5520 ac_cv_prog_AR="$AR" # Let the user override the test.
5521else
5522as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523for as_dir in $PATH
5524do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_prog_AR="${ac_tool_prefix}ar"
5530 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533done
5534done
5535
5536fi
5537fi
5538AR=$ac_cv_prog_AR
5539if test -n "$AR"; then
5540 echo "$as_me:$LINENO: result: $AR" >&5
5541echo "${ECHO_T}$AR" >&6
5542else
5543 echo "$as_me:$LINENO: result: no" >&5
5544echo "${ECHO_T}no" >&6
5545fi
5546
5547fi
5548if test -z "$ac_cv_prog_AR"; then
5549 ac_ct_AR=$AR
5550 # Extract the first word of "ar", so it can be a program name with args.
5551set dummy ar; ac_word=$2
5552echo "$as_me:$LINENO: checking for $ac_word" >&5
5553echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5554if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5555 echo $ECHO_N "(cached) $ECHO_C" >&6
5556else
5557 if test -n "$ac_ct_AR"; then
5558 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5559else
5560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH
5562do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_exec_ext in '' $ac_executable_extensions; do
5566 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5567 ac_cv_prog_ac_ct_AR="ar"
5568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 break 2
5570 fi
5571done
5572done
5573
5574 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5575fi
5576fi
5577ac_ct_AR=$ac_cv_prog_ac_ct_AR
5578if test -n "$ac_ct_AR"; then
5579 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5580echo "${ECHO_T}$ac_ct_AR" >&6
5581else
5582 echo "$as_me:$LINENO: result: no" >&5
5583echo "${ECHO_T}no" >&6
5584fi
5585
5586 AR=$ac_ct_AR
5587else
5588 AR="$ac_cv_prog_AR"
5589fi
5590
John Criswell7a73b802003-06-30 21:59:07 +00005591if test -n "$ac_tool_prefix"; then
5592 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5593set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5594echo "$as_me:$LINENO: checking for $ac_word" >&5
5595echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5596if test "${ac_cv_prog_RANLIB+set}" = set; then
5597 echo $ECHO_N "(cached) $ECHO_C" >&6
5598else
5599 if test -n "$RANLIB"; then
5600 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5601else
5602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603for as_dir in $PATH
5604do
5605 IFS=$as_save_IFS
5606 test -z "$as_dir" && as_dir=.
5607 for ac_exec_ext in '' $ac_executable_extensions; do
5608 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5609 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5611 break 2
5612 fi
5613done
5614done
5615
5616fi
5617fi
5618RANLIB=$ac_cv_prog_RANLIB
5619if test -n "$RANLIB"; then
5620 echo "$as_me:$LINENO: result: $RANLIB" >&5
5621echo "${ECHO_T}$RANLIB" >&6
5622else
5623 echo "$as_me:$LINENO: result: no" >&5
5624echo "${ECHO_T}no" >&6
5625fi
5626
5627fi
5628if test -z "$ac_cv_prog_RANLIB"; then
5629 ac_ct_RANLIB=$RANLIB
5630 # Extract the first word of "ranlib", so it can be a program name with args.
5631set dummy ranlib; ac_word=$2
5632echo "$as_me:$LINENO: checking for $ac_word" >&5
5633echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5634if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5635 echo $ECHO_N "(cached) $ECHO_C" >&6
5636else
5637 if test -n "$ac_ct_RANLIB"; then
5638 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5639else
5640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641for as_dir in $PATH
5642do
5643 IFS=$as_save_IFS
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647 ac_cv_prog_ac_ct_RANLIB="ranlib"
5648 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5649 break 2
5650 fi
5651done
5652done
5653
5654 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5655fi
5656fi
5657ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5658if test -n "$ac_ct_RANLIB"; then
5659 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5660echo "${ECHO_T}$ac_ct_RANLIB" >&6
5661else
5662 echo "$as_me:$LINENO: result: no" >&5
5663echo "${ECHO_T}no" >&6
5664fi
5665
5666 RANLIB=$ac_ct_RANLIB
5667else
5668 RANLIB="$ac_cv_prog_RANLIB"
5669fi
5670
5671if test -n "$ac_tool_prefix"; then
5672 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5673set dummy ${ac_tool_prefix}strip; ac_word=$2
5674echo "$as_me:$LINENO: checking for $ac_word" >&5
5675echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5676if test "${ac_cv_prog_STRIP+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678else
5679 if test -n "$STRIP"; then
5680 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5681else
5682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683for as_dir in $PATH
5684do
5685 IFS=$as_save_IFS
5686 test -z "$as_dir" && as_dir=.
5687 for ac_exec_ext in '' $ac_executable_extensions; do
5688 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5691 break 2
5692 fi
5693done
5694done
5695
5696fi
5697fi
5698STRIP=$ac_cv_prog_STRIP
5699if test -n "$STRIP"; then
5700 echo "$as_me:$LINENO: result: $STRIP" >&5
5701echo "${ECHO_T}$STRIP" >&6
5702else
5703 echo "$as_me:$LINENO: result: no" >&5
5704echo "${ECHO_T}no" >&6
5705fi
5706
5707fi
5708if test -z "$ac_cv_prog_STRIP"; then
5709 ac_ct_STRIP=$STRIP
5710 # Extract the first word of "strip", so it can be a program name with args.
5711set dummy strip; ac_word=$2
5712echo "$as_me:$LINENO: checking for $ac_word" >&5
5713echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5714if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5716else
5717 if test -n "$ac_ct_STRIP"; then
5718 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5719else
5720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721for as_dir in $PATH
5722do
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5727 ac_cv_prog_ac_ct_STRIP="strip"
5728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5730 fi
5731done
5732done
5733
5734 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5735fi
5736fi
5737ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5738if test -n "$ac_ct_STRIP"; then
5739 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5740echo "${ECHO_T}$ac_ct_STRIP" >&6
5741else
5742 echo "$as_me:$LINENO: result: no" >&5
5743echo "${ECHO_T}no" >&6
5744fi
5745
5746 STRIP=$ac_ct_STRIP
5747else
5748 STRIP="$ac_cv_prog_STRIP"
5749fi
5750
5751
John Criswell7a73b802003-06-30 21:59:07 +00005752old_CC="$CC"
5753old_CFLAGS="$CFLAGS"
5754
5755# Set sane defaults for various variables
5756test -z "$AR" && AR=ar
5757test -z "$AR_FLAGS" && AR_FLAGS=cru
5758test -z "$AS" && AS=as
5759test -z "$CC" && CC=cc
John Criswell47fdd832003-07-14 16:52:07 +00005760test -z "$LTCC" && LTCC=$CC
John Criswell7a73b802003-06-30 21:59:07 +00005761test -z "$DLLTOOL" && DLLTOOL=dlltool
5762test -z "$LD" && LD=ld
5763test -z "$LN_S" && LN_S="ln -s"
5764test -z "$MAGIC_CMD" && MAGIC_CMD=file
5765test -z "$NM" && NM=nm
John Criswell47fdd832003-07-14 16:52:07 +00005766test -z "$SED" && SED=sed
John Criswell7a73b802003-06-30 21:59:07 +00005767test -z "$OBJDUMP" && OBJDUMP=objdump
5768test -z "$RANLIB" && RANLIB=:
5769test -z "$STRIP" && STRIP=:
5770test -z "$ac_objext" && ac_objext=o
5771
John Criswell7a73b802003-06-30 21:59:07 +00005772# Determine commands to create old-style static archives.
5773old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5774old_postinstall_cmds='chmod 644 $oldlib'
5775old_postuninstall_cmds=
5776
5777if test -n "$RANLIB"; then
5778 case $host_os in
5779 openbsd*)
5780 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5781 ;;
5782 *)
5783 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5784 ;;
5785 esac
5786 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5787fi
5788
John Criswell47fdd832003-07-14 16:52:07 +00005789# Only perform the check for file, if the check method requires it
5790case $deplibs_check_method in
5791file_magic*)
5792 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5793 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5794echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5795if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5796 echo $ECHO_N "(cached) $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00005797else
John Criswell47fdd832003-07-14 16:52:07 +00005798 case $MAGIC_CMD in
5799[\\/*] | ?:[\\/]*)
5800 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5801 ;;
5802*)
5803 lt_save_MAGIC_CMD="$MAGIC_CMD"
5804 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5805 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5806 for ac_dir in $ac_dummy; do
5807 IFS="$lt_save_ifs"
5808 test -z "$ac_dir" && ac_dir=.
5809 if test -f $ac_dir/${ac_tool_prefix}file; then
5810 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5811 if test -n "$file_magic_test_file"; then
5812 case $deplibs_check_method in
5813 "file_magic "*)
5814 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5815 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5816 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5817 $EGREP "$file_magic_regex" > /dev/null; then
5818 :
5819 else
5820 cat <<EOF 1>&2
5821
5822*** Warning: the command libtool uses to detect shared libraries,
5823*** $file_magic_cmd, produces output that libtool cannot recognize.
5824*** The result is that libtool may fail to recognize shared libraries
5825*** as such. This will affect the creation of libtool libraries that
5826*** depend on shared libraries, but programs linked with such libtool
5827*** libraries will work regardless of this problem. Nevertheless, you
5828*** may want to report the problem to your system manager and/or to
5829*** bug-libtool@gnu.org
5830
5831EOF
5832 fi ;;
5833 esac
5834 fi
5835 break
5836 fi
5837 done
5838 IFS="$lt_save_ifs"
5839 MAGIC_CMD="$lt_save_MAGIC_CMD"
5840 ;;
5841esac
John Criswell7a73b802003-06-30 21:59:07 +00005842fi
John Criswell7a73b802003-06-30 21:59:07 +00005843
John Criswell47fdd832003-07-14 16:52:07 +00005844MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5845if test -n "$MAGIC_CMD"; then
5846 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5847echo "${ECHO_T}$MAGIC_CMD" >&6
5848else
5849 echo "$as_me:$LINENO: result: no" >&5
5850echo "${ECHO_T}no" >&6
5851fi
John Criswell7a73b802003-06-30 21:59:07 +00005852
John Criswell47fdd832003-07-14 16:52:07 +00005853if test -z "$lt_cv_path_MAGIC_CMD"; then
5854 if test -n "$ac_tool_prefix"; then
5855 echo "$as_me:$LINENO: checking for file" >&5
5856echo $ECHO_N "checking for file... $ECHO_C" >&6
5857if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5858 echo $ECHO_N "(cached) $ECHO_C" >&6
5859else
5860 case $MAGIC_CMD in
5861[\\/*] | ?:[\\/]*)
5862 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5863 ;;
5864*)
5865 lt_save_MAGIC_CMD="$MAGIC_CMD"
5866 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5867 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5868 for ac_dir in $ac_dummy; do
5869 IFS="$lt_save_ifs"
5870 test -z "$ac_dir" && ac_dir=.
5871 if test -f $ac_dir/file; then
5872 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5873 if test -n "$file_magic_test_file"; then
5874 case $deplibs_check_method in
5875 "file_magic "*)
5876 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5877 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5878 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5879 $EGREP "$file_magic_regex" > /dev/null; then
5880 :
5881 else
5882 cat <<EOF 1>&2
5883
5884*** Warning: the command libtool uses to detect shared libraries,
5885*** $file_magic_cmd, produces output that libtool cannot recognize.
5886*** The result is that libtool may fail to recognize shared libraries
5887*** as such. This will affect the creation of libtool libraries that
5888*** depend on shared libraries, but programs linked with such libtool
5889*** libraries will work regardless of this problem. Nevertheless, you
5890*** may want to report the problem to your system manager and/or to
5891*** bug-libtool@gnu.org
5892
5893EOF
5894 fi ;;
5895 esac
5896 fi
5897 break
5898 fi
5899 done
5900 IFS="$lt_save_ifs"
5901 MAGIC_CMD="$lt_save_MAGIC_CMD"
5902 ;;
5903esac
5904fi
5905
5906MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5907if test -n "$MAGIC_CMD"; then
5908 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5909echo "${ECHO_T}$MAGIC_CMD" >&6
5910else
5911 echo "$as_me:$LINENO: result: no" >&5
5912echo "${ECHO_T}no" >&6
5913fi
5914
5915 else
5916 MAGIC_CMD=:
5917 fi
5918fi
5919
5920 fi
5921 ;;
5922esac
5923
5924enable_dlopen=no
5925enable_win32_dll=no
5926
5927# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5928if test "${enable_libtool_lock+set}" = set; then
5929 enableval="$enable_libtool_lock"
5930
5931fi;
5932test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5933
John Criswell7a73b802003-06-30 21:59:07 +00005934
5935# Check whether --with-pic or --without-pic was given.
5936if test "${with_pic+set}" = set; then
5937 withval="$with_pic"
5938 pic_mode="$withval"
5939else
5940 pic_mode=default
5941fi;
5942test -z "$pic_mode" && pic_mode=default
5943
John Criswell47fdd832003-07-14 16:52:07 +00005944# Use C for the default configuration in the libtool script
5945tagname=
5946lt_save_CC="$CC"
5947ac_ext=c
5948ac_cpp='$CPP $CPPFLAGS'
5949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5951ac_compiler_gnu=$ac_cv_c_compiler_gnu
5952
5953
5954# Source file extension for C test sources.
5955ac_ext=c
5956
5957# Object file extension for compiled C test sources.
5958objext=o
5959objext=$objext
5960
5961# Code to be used in simple compile tests
5962lt_simple_compile_test_code="int some_variable = 0;\n"
5963
5964# Code to be used in simple link tests
5965lt_simple_link_test_code='int main(){return(0);}\n'
5966
5967
5968# If no C compiler was specified, use CC.
5969LTCC=${LTCC-"$CC"}
5970
5971# Allow CC to be a program name with arguments.
5972compiler=$CC
5973
5974
5975#
5976# Check for any special shared library compilation flags.
5977#
5978lt_prog_cc_shlib=
5979if test "$GCC" = no; then
5980 case $host_os in
5981 sco3.2v5*)
5982 lt_prog_cc_shlib='-belf'
5983 ;;
5984 esac
5985fi
5986if test -n "$lt_prog_cc_shlib"; then
5987 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5988echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5989 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5990 else
5991 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5992echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5993 lt_cv_prog_cc_can_build_shared=no
5994 fi
5995fi
5996
5997
5998#
5999# Check to make sure the static flag actually works.
6000#
6001echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6002echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6003if test "${lt_prog_compiler_static_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005else
John Criswell47fdd832003-07-14 16:52:07 +00006006 lt_prog_compiler_static_works=no
6007 save_LDFLAGS="$LDFLAGS"
6008 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6009 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6010 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6011 # The compiler can only warn and ignore the option if not recognized
6012 # So say no if there are warnings
6013 if test -s conftest.err; then
6014 # Append any errors to the config.log.
6015 cat conftest.err 1>&5
6016 else
6017 lt_prog_compiler_static_works=yes
6018 fi
6019 fi
6020 $rm conftest*
6021 LDFLAGS="$save_LDFLAGS"
6022
6023fi
6024echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6025echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6026
6027if test x"$lt_prog_compiler_static_works" = xyes; then
6028 :
6029else
6030 lt_prog_compiler_static=
6031fi
6032
6033
6034
Reid Spencer17041682004-09-05 17:48:32 +00006035## CAVEAT EMPTOR:
6036## There is no encapsulation within the following macros, do not change
6037## the running order or otherwise move them around unless you know exactly
6038## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +00006039
6040lt_prog_compiler_no_builtin_flag=
6041
6042if test "$GCC" = yes; then
6043 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6044
6045 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6046echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6047if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049else
6050 lt_cv_prog_compiler_rtti_exceptions=no
6051 ac_outfile=conftest.$ac_objext
6052 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6053 lt_compiler_flag="-fno-rtti -fno-exceptions"
6054 # Insert the option either (1) after the last *FLAGS variable, or
6055 # (2) before a word containing "conftest.", or (3) at the end.
6056 # Note that $ac_compile itself does not contain backslashes and begins
6057 # with a dollar sign (not a hyphen), so the echo should work correctly.
6058 # The option is referenced via a variable to avoid confusing sed.
6059 lt_compile=`echo "$ac_compile" | $SED \
6060 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6062 -e 's:$: $lt_compiler_flag:'`
Reid Spencer17041682004-09-05 17:48:32 +00006063 (eval echo "\"\$as_me:6063: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006064 (eval "$lt_compile" 2>conftest.err)
6065 ac_status=$?
6066 cat conftest.err >&5
Reid Spencer17041682004-09-05 17:48:32 +00006067 echo "$as_me:6067: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006068 if (exit $ac_status) && test -s "$ac_outfile"; then
6069 # The compiler can only warn and ignore the option if not recognized
6070 # So say no if there are warnings
6071 if test ! -s conftest.err; then
6072 lt_cv_prog_compiler_rtti_exceptions=yes
6073 fi
6074 fi
6075 $rm conftest*
6076
6077fi
6078echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6079echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6080
6081if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6082 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6083else
6084 :
6085fi
6086
6087fi
6088
6089lt_prog_compiler_wl=
6090lt_prog_compiler_pic=
6091lt_prog_compiler_static=
6092
6093echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6094echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006095
6096 if test "$GCC" = yes; then
John Criswell47fdd832003-07-14 16:52:07 +00006097 lt_prog_compiler_wl='-Wl,'
6098 lt_prog_compiler_static='-static'
John Criswell7a73b802003-06-30 21:59:07 +00006099
6100 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006101 aix*)
6102 # All AIX code is PIC.
6103 if test "$host_cpu" = ia64; then
6104 # AIX 5 now supports IA64 processor
6105 lt_prog_compiler_static='-Bstatic'
6106 fi
John Criswell7a73b802003-06-30 21:59:07 +00006107 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006108
John Criswell7a73b802003-06-30 21:59:07 +00006109 amigaos*)
6110 # FIXME: we need at least 68020 code to build shared libraries, but
6111 # adding the `-m68020' flag to GCC prevents building anything better,
6112 # like `-m68040'.
John Criswell47fdd832003-07-14 16:52:07 +00006113 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
John Criswell7a73b802003-06-30 21:59:07 +00006114 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006115
6116 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
John Criswell7a73b802003-06-30 21:59:07 +00006117 # PIC is the default for these OSes.
6118 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006119
6120 mingw* | pw32* | os2*)
6121 # This hack is so that the source file can tell whether it is being
6122 # built for inclusion in a dll (and should export symbols for example).
6123 lt_prog_compiler_pic='-DDLL_EXPORT'
6124 ;;
6125
John Criswell7a73b802003-06-30 21:59:07 +00006126 darwin* | rhapsody*)
6127 # PIC is the default on this platform
6128 # Common symbols not allowed in MH_DYLIB files
John Criswell47fdd832003-07-14 16:52:07 +00006129 lt_prog_compiler_pic='-fno-common'
John Criswell7a73b802003-06-30 21:59:07 +00006130 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006131
6132 msdosdjgpp*)
6133 # Just because we use GCC doesn't mean we suddenly get shared libraries
6134 # on systems that don't support them.
6135 lt_prog_compiler_can_build_shared=no
6136 enable_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006137 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006138
John Criswell7a73b802003-06-30 21:59:07 +00006139 sysv4*MP*)
6140 if test -d /usr/nec; then
John Criswell47fdd832003-07-14 16:52:07 +00006141 lt_prog_compiler_pic=-Kconform_pic
John Criswell7a73b802003-06-30 21:59:07 +00006142 fi
6143 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006144
6145 hpux*)
6146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6147 # not for PA HP-UX.
6148 case "$host_cpu" in
6149 hppa*64*|ia64*)
6150 # +Z the default
6151 ;;
6152 *)
6153 lt_prog_compiler_pic='-fPIC'
6154 ;;
6155 esac
6156 ;;
6157
John Criswell7a73b802003-06-30 21:59:07 +00006158 *)
John Criswell47fdd832003-07-14 16:52:07 +00006159 lt_prog_compiler_pic='-fPIC'
John Criswell7a73b802003-06-30 21:59:07 +00006160 ;;
6161 esac
6162 else
John Criswell47fdd832003-07-14 16:52:07 +00006163 # PORTME Check for flag to pass linker flags through the system compiler.
John Criswell7a73b802003-06-30 21:59:07 +00006164 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00006165 aix*)
6166 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006167 if test "$host_cpu" = ia64; then
6168 # AIX 5 now supports IA64 processor
John Criswell47fdd832003-07-14 16:52:07 +00006169 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006170 else
John Criswell47fdd832003-07-14 16:52:07 +00006171 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
John Criswell7a73b802003-06-30 21:59:07 +00006172 fi
6173 ;;
6174
John Criswell47fdd832003-07-14 16:52:07 +00006175 mingw* | pw32* | os2*)
6176 # This hack is so that the source file can tell whether it is being
6177 # built for inclusion in a dll (and should export symbols for example).
6178 lt_prog_compiler_pic='-DDLL_EXPORT'
6179 ;;
6180
John Criswell7a73b802003-06-30 21:59:07 +00006181 hpux9* | hpux10* | hpux11*)
John Criswell47fdd832003-07-14 16:52:07 +00006182 lt_prog_compiler_wl='-Wl,'
6183 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6184 # not for PA HP-UX.
6185 case "$host_cpu" in
6186 hppa*64*|ia64*)
6187 # +Z the default
6188 ;;
6189 *)
6190 lt_prog_compiler_pic='+Z'
6191 ;;
6192 esac
6193 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6194 lt_prog_compiler_static='${wl}-a ${wl}archive'
John Criswell7a73b802003-06-30 21:59:07 +00006195 ;;
6196
John Criswell47fdd832003-07-14 16:52:07 +00006197 irix5* | irix6* | nonstopux*)
6198 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006199 # PIC (with -KPIC) is the default.
John Criswell47fdd832003-07-14 16:52:07 +00006200 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006201 ;;
6202
6203 newsos6)
John Criswell47fdd832003-07-14 16:52:07 +00006204 lt_prog_compiler_pic='-KPIC'
6205 lt_prog_compiler_static='-Bstatic'
6206 ;;
6207
6208 linux*)
6209 case $CC in
6210 icc|ecc)
6211 lt_prog_compiler_wl='-Wl,'
6212 lt_prog_compiler_pic='-KPIC'
6213 lt_prog_compiler_static='-static'
6214 ;;
6215 ccc)
6216 lt_prog_compiler_wl='-Wl,'
6217 # All Alpha code is PIC.
6218 lt_prog_compiler_static='-non_shared'
6219 ;;
6220 esac
John Criswell7a73b802003-06-30 21:59:07 +00006221 ;;
6222
6223 osf3* | osf4* | osf5*)
John Criswell47fdd832003-07-14 16:52:07 +00006224 lt_prog_compiler_wl='-Wl,'
John Criswell7a73b802003-06-30 21:59:07 +00006225 # All OSF/1 code is PIC.
John Criswell47fdd832003-07-14 16:52:07 +00006226 lt_prog_compiler_static='-non_shared'
John Criswell7a73b802003-06-30 21:59:07 +00006227 ;;
6228
6229 sco3.2v5*)
John Criswell47fdd832003-07-14 16:52:07 +00006230 lt_prog_compiler_pic='-Kpic'
6231 lt_prog_compiler_static='-dn'
John Criswell7a73b802003-06-30 21:59:07 +00006232 ;;
6233
6234 solaris*)
John Criswell47fdd832003-07-14 16:52:07 +00006235 lt_prog_compiler_wl='-Wl,'
6236 lt_prog_compiler_pic='-KPIC'
6237 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006238 ;;
6239
6240 sunos4*)
John Criswell47fdd832003-07-14 16:52:07 +00006241 lt_prog_compiler_wl='-Qoption ld '
6242 lt_prog_compiler_pic='-PIC'
6243 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006244 ;;
6245
6246 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
John Criswell47fdd832003-07-14 16:52:07 +00006247 lt_prog_compiler_wl='-Wl,'
6248 lt_prog_compiler_pic='-KPIC'
6249 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006250 ;;
6251
6252 sysv4*MP*)
6253 if test -d /usr/nec ;then
John Criswell47fdd832003-07-14 16:52:07 +00006254 lt_prog_compiler_pic='-Kconform_pic'
6255 lt_prog_compiler_static='-Bstatic'
John Criswell7a73b802003-06-30 21:59:07 +00006256 fi
6257 ;;
6258
John Criswell47fdd832003-07-14 16:52:07 +00006259 uts4*)
6260 lt_prog_compiler_pic='-pic'
6261 lt_prog_compiler_static='-Bstatic'
6262 ;;
6263
John Criswell7a73b802003-06-30 21:59:07 +00006264 *)
John Criswell47fdd832003-07-14 16:52:07 +00006265 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006266 ;;
6267 esac
6268 fi
6269
John Criswell47fdd832003-07-14 16:52:07 +00006270echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6271echo "${ECHO_T}$lt_prog_compiler_pic" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006272
John Criswell47fdd832003-07-14 16:52:07 +00006273#
6274# Check to make sure the PIC flag actually works.
6275#
6276if test -n "$lt_prog_compiler_pic"; then
6277 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6278echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6279if test "${lt_prog_compiler_pic_works+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006280 echo $ECHO_N "(cached) $ECHO_C" >&6
6281else
John Criswell47fdd832003-07-14 16:52:07 +00006282 lt_prog_compiler_pic_works=no
6283 ac_outfile=conftest.$ac_objext
6284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6285 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6286 # Insert the option either (1) after the last *FLAGS variable, or
6287 # (2) before a word containing "conftest.", or (3) at the end.
6288 # Note that $ac_compile itself does not contain backslashes and begins
6289 # with a dollar sign (not a hyphen), so the echo should work correctly.
6290 # The option is referenced via a variable to avoid confusing sed.
6291 lt_compile=`echo "$ac_compile" | $SED \
6292 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6294 -e 's:$: $lt_compiler_flag:'`
Reid Spencer17041682004-09-05 17:48:32 +00006295 (eval echo "\"\$as_me:6295: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006296 (eval "$lt_compile" 2>conftest.err)
6297 ac_status=$?
6298 cat conftest.err >&5
Reid Spencer17041682004-09-05 17:48:32 +00006299 echo "$as_me:6299: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006300 if (exit $ac_status) && test -s "$ac_outfile"; then
6301 # The compiler can only warn and ignore the option if not recognized
6302 # So say no if there are warnings
6303 if test ! -s conftest.err; then
6304 lt_prog_compiler_pic_works=yes
6305 fi
6306 fi
6307 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006308
John Criswell47fdd832003-07-14 16:52:07 +00006309fi
6310echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6311echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006312
John Criswell47fdd832003-07-14 16:52:07 +00006313if test x"$lt_prog_compiler_pic_works" = xyes; then
6314 case $lt_prog_compiler_pic in
6315 "" | " "*) ;;
6316 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6317 esac
John Criswell7a73b802003-06-30 21:59:07 +00006318else
John Criswell47fdd832003-07-14 16:52:07 +00006319 lt_prog_compiler_pic=
6320 lt_prog_compiler_can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00006321fi
6322
John Criswell7a73b802003-06-30 21:59:07 +00006323fi
John Criswell47fdd832003-07-14 16:52:07 +00006324case "$host_os" in
6325 # For platforms which do not support PIC, -DPIC is meaningless:
6326 *djgpp*)
6327 lt_prog_compiler_pic=
6328 ;;
6329 *)
6330 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6331 ;;
6332esac
John Criswell7a73b802003-06-30 21:59:07 +00006333
John Criswell7a73b802003-06-30 21:59:07 +00006334echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6335echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
John Criswell47fdd832003-07-14 16:52:07 +00006336if test "${lt_cv_prog_compiler_c_o+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +00006337 echo $ECHO_N "(cached) $ECHO_C" >&6
6338else
John Criswell47fdd832003-07-14 16:52:07 +00006339 lt_cv_prog_compiler_c_o=no
6340 $rm -r conftest 2>/dev/null
6341 mkdir conftest
6342 cd conftest
6343 mkdir out
6344 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00006345
John Criswell47fdd832003-07-14 16:52:07 +00006346 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6347 # that will create temporary files in the current directory regardless of
6348 # the output directory. Thus, making CWD read-only will cause this test
6349 # to fail, enabling locking or at least warning the user not to do parallel
6350 # builds.
6351 chmod -w .
6352
6353 lt_compiler_flag="-o out/conftest2.$ac_objext"
6354 # Insert the option either (1) after the last *FLAGS variable, or
6355 # (2) before a word containing "conftest.", or (3) at the end.
6356 # Note that $ac_compile itself does not contain backslashes and begins
6357 # with a dollar sign (not a hyphen), so the echo should work correctly.
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 Spencer17041682004-09-05 17:48:32 +00006362 (eval echo "\"\$as_me:6362: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +00006363 (eval "$lt_compile" 2>out/conftest.err)
6364 ac_status=$?
6365 cat out/conftest.err >&5
Reid Spencer17041682004-09-05 17:48:32 +00006366 echo "$as_me:6366: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +00006367 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6368 then
6369 # The compiler can only warn and ignore the option if not recognized
6370 # So say no if there are warnings
6371 if test ! -s out/conftest.err; then
6372 lt_cv_prog_compiler_c_o=yes
6373 fi
6374 fi
6375 chmod u+w .
6376 $rm conftest* out/*
6377 rmdir out
6378 cd ..
6379 rmdir conftest
6380 $rm conftest*
John Criswell7a73b802003-06-30 21:59:07 +00006381
6382fi
John Criswell47fdd832003-07-14 16:52:07 +00006383echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6384echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
John Criswell7a73b802003-06-30 21:59:07 +00006385
John Criswell7a73b802003-06-30 21:59:07 +00006386
John Criswell7a73b802003-06-30 21:59:07 +00006387hard_links="nottested"
John Criswell47fdd832003-07-14 16:52:07 +00006388if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
John Criswell7a73b802003-06-30 21:59:07 +00006389 # do not overwrite the value of need_locks provided by the user
6390 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6391echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6392 hard_links=yes
6393 $rm conftest*
6394 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6395 touch conftest.a
6396 ln conftest.a conftest.b 2>&5 || hard_links=no
6397 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6398 echo "$as_me:$LINENO: result: $hard_links" >&5
6399echo "${ECHO_T}$hard_links" >&6
6400 if test "$hard_links" = no; then
6401 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6402echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6403 need_locks=warn
6404 fi
6405else
6406 need_locks=no
6407fi
John Criswell7a73b802003-06-30 21:59:07 +00006408
John Criswell47fdd832003-07-14 16:52:07 +00006409echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6410echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6411
6412 runpath_var=
6413 allow_undefined_flag=
6414 enable_shared_with_static_runtimes=no
6415 archive_cmds=
6416 archive_expsym_cmds=
6417 old_archive_From_new_cmds=
6418 old_archive_from_expsyms_cmds=
6419 export_dynamic_flag_spec=
6420 whole_archive_flag_spec=
6421 thread_safe_flag_spec=
6422 hardcode_libdir_flag_spec=
6423 hardcode_libdir_flag_spec_ld=
6424 hardcode_libdir_separator=
6425 hardcode_direct=no
6426 hardcode_minus_L=no
6427 hardcode_shlibpath_var=unsupported
6428 link_all_deplibs=unknown
6429 hardcode_automatic=no
6430 module_cmds=
6431 module_expsym_cmds=
6432 always_export_symbols=no
6433 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6434 # include_expsyms should be a list of space-separated symbols to be *always*
6435 # included in the symbol list
6436 include_expsyms=
6437 # exclude_expsyms can be an extended regexp of symbols to exclude
6438 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6439 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6440 # as well as any symbol that contains `d'.
6441 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6442 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6443 # platforms (ab)use it in PIC code, but their linkers get confused if
6444 # the symbol is explicitly referenced. Since portable code cannot
6445 # rely on this symbol name, it's probably fine to never include it in
6446 # preloaded symbol tables.
6447 extract_expsyms_cmds=
6448
6449 case $host_os in
6450 cygwin* | mingw* | pw32*)
6451 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6452 # When not using gcc, we currently assume that we are using
6453 # Microsoft Visual C++.
6454 if test "$GCC" != yes; then
6455 with_gnu_ld=no
6456 fi
6457 ;;
6458 openbsd*)
6459 with_gnu_ld=no
6460 ;;
6461 esac
6462
6463 ld_shlibs=yes
6464 if test "$with_gnu_ld" = yes; then
6465 # If archive_cmds runs LD, not CC, wlarc should be empty
6466 wlarc='${wl}'
6467
6468 # See if GNU ld supports shared libraries.
6469 case $host_os in
6470 aix3* | aix4* | aix5*)
6471 # On AIX/PPC, the GNU linker is very broken
6472 if test "$host_cpu" != ia64; then
6473 ld_shlibs=no
6474 cat <<EOF 1>&2
6475
6476*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6477*** to be unable to reliably create shared libraries on AIX.
6478*** Therefore, libtool is disabling shared libraries support. If you
6479*** really care for shared libraries, you may want to modify your PATH
6480*** so that a non-GNU linker is found, and then restart.
6481
6482EOF
6483 fi
6484 ;;
6485
6486 amigaos*)
6487 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)'
6488 hardcode_libdir_flag_spec='-L$libdir'
6489 hardcode_minus_L=yes
6490
6491 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6492 # that the semantics of dynamic libraries on AmigaOS, at least up
6493 # to version 4, is to share data among multiple programs linked
6494 # with the same dynamic library. Since this doesn't match the
6495 # behavior of shared libraries on other platforms, we can't use
6496 # them.
6497 ld_shlibs=no
6498 ;;
6499
6500 beos*)
6501 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6502 allow_undefined_flag=unsupported
6503 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6504 # support --undefined. This deserves some investigation. FIXME
6505 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6506 else
6507 ld_shlibs=no
6508 fi
6509 ;;
6510
6511 cygwin* | mingw* | pw32*)
6512 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6513 # as there is no search path for DLLs.
6514 hardcode_libdir_flag_spec='-L$libdir'
6515 allow_undefined_flag=unsupported
6516 always_export_symbols=no
6517 enable_shared_with_static_runtimes=yes
6518 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6519
6520 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6522 # If the export-symbols file already is a .def file (1st line
6523 # is EXPORTS), use it as is; otherwise, prepend...
6524 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6525 cp $export_symbols $output_objdir/$soname.def;
6526 else
6527 echo EXPORTS > $output_objdir/$soname.def;
6528 cat $export_symbols >> $output_objdir/$soname.def;
6529 fi~
6530 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6531 else
6532 ld_shlibs=no
6533 fi
6534 ;;
6535
6536 netbsd*)
6537 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6538 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6539 wlarc=
6540 else
6541 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6542 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6543 fi
6544 ;;
6545
6546 solaris* | sysv5*)
6547 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6548 ld_shlibs=no
6549 cat <<EOF 1>&2
6550
6551*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6552*** create shared libraries on Solaris systems. Therefore, libtool
6553*** is disabling shared libraries support. We urge you to upgrade GNU
6554*** binutils to release 2.9.1 or newer. Another option is to modify
6555*** your PATH or compiler configuration so that the native linker is
6556*** used, and then restart.
6557
6558EOF
6559 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6561 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6562 else
6563 ld_shlibs=no
6564 fi
6565 ;;
6566
6567 sunos4*)
6568 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6569 wlarc=
6570 hardcode_direct=yes
6571 hardcode_shlibpath_var=no
6572 ;;
6573
6574 *)
6575 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6576 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6577 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6578 else
6579 ld_shlibs=no
6580 fi
6581 ;;
6582 esac
6583
6584 if test "$ld_shlibs" = yes; then
6585 runpath_var=LD_RUN_PATH
6586 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6587 export_dynamic_flag_spec='${wl}--export-dynamic'
6588 # ancient GNU ld didn't support --whole-archive et. al.
6589 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6590 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6591 else
6592 whole_archive_flag_spec=
6593 fi
6594 fi
6595 else
6596 # PORTME fill in a description of your system's linker (not GNU ld)
6597 case $host_os in
6598 aix3*)
6599 allow_undefined_flag=unsupported
6600 always_export_symbols=yes
6601 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'
6602 # Note: this linker hardcodes the directories in LIBPATH if there
6603 # are no directories specified by -L.
6604 hardcode_minus_L=yes
6605 if test "$GCC" = yes && test -z "$link_static_flag"; then
6606 # Neither direct hardcoding nor static linking is supported with a
6607 # broken collect2.
6608 hardcode_direct=unsupported
6609 fi
6610 ;;
6611
6612 aix4* | aix5*)
6613 if test "$host_cpu" = ia64; then
6614 # On IA64, the linker does run time linking by default, so we don't
6615 # have to do anything special.
6616 aix_use_runtimelinking=no
6617 exp_sym_flag='-Bexport'
6618 no_entry_flag=""
6619 else
6620 # If we're using GNU nm, then we don't want the "-C" option.
6621 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6622 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6623 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'
6624 else
6625 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'
6626 fi
6627 aix_use_runtimelinking=no
6628
6629 # Test if we are trying to use run time linking or normal
6630 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6631 # need to do runtime linking.
6632 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6633 for ld_flag in $LDFLAGS; do
6634 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6635 aix_use_runtimelinking=yes
6636 break
6637 fi
6638 done
6639 esac
6640
6641 exp_sym_flag='-bexport'
6642 no_entry_flag='-bnoentry'
6643 fi
6644
6645 # When large executables or shared objects are built, AIX ld can
6646 # have problems creating the table of contents. If linking a library
6647 # or program results in "error TOC overflow" add -mminimal-toc to
6648 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6649 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6650
6651 archive_cmds=''
6652 hardcode_direct=yes
6653 hardcode_libdir_separator=':'
6654 link_all_deplibs=yes
6655
6656 if test "$GCC" = yes; then
6657 case $host_os in aix4.012|aix4.012.*)
6658 # We only want to do this on AIX 4.2 and lower, the check
6659 # below for broken collect2 doesn't work under 4.3+
6660 collect2name=`${CC} -print-prog-name=collect2`
6661 if test -f "$collect2name" && \
6662 strings "$collect2name" | grep resolve_lib_name >/dev/null
6663 then
6664 # We have reworked collect2
6665 hardcode_direct=yes
6666 else
6667 # We have old collect2
6668 hardcode_direct=unsupported
6669 # It fails to find uninstalled libraries when the uninstalled
6670 # path is not listed in the libpath. Setting hardcode_minus_L
6671 # to unsupported forces relinking
6672 hardcode_minus_L=yes
6673 hardcode_libdir_flag_spec='-L$libdir'
6674 hardcode_libdir_separator=
6675 fi
6676 esac
6677 shared_flag='-shared'
6678 else
6679 # not using gcc
6680 if test "$host_cpu" = ia64; then
6681 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6682 # chokes on -Wl,-G. The following line is correct:
6683 shared_flag='-G'
6684 else
6685 if test "$aix_use_runtimelinking" = yes; then
6686 shared_flag='${wl}-G'
6687 else
6688 shared_flag='${wl}-bM:SRE'
6689 fi
6690 fi
6691 fi
6692
6693 # It seems that -bexpall does not export symbols beginning with
6694 # underscore (_), so it is better to generate a list of symbols to export.
6695 always_export_symbols=yes
6696 if test "$aix_use_runtimelinking" = yes; then
6697 # Warning - without using the other runtime loading flags (-brtl),
6698 # -berok will link without error, but may produce a broken library.
6699 allow_undefined_flag='-berok'
6700 # Determine the default libpath from the value encoded in an empty executable.
6701 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006702/* confdefs.h. */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006707
John Criswell7a73b802003-06-30 21:59:07 +00006708int
6709main ()
6710{
John Criswell47fdd832003-07-14 16:52:07 +00006711
John Criswell7a73b802003-06-30 21:59:07 +00006712 ;
6713 return 0;
6714}
6715_ACEOF
John Criswell47fdd832003-07-14 16:52:07 +00006716rm -f conftest.$ac_objext conftest$ac_exeext
6717if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00006718 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00006719 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00006720 grep -v '^ *+' conftest.er1 >conftest.err
6721 rm -f conftest.er1
6722 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00006723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00006725 { ac_try='test -z "$ac_c_werror_flag"
6726 || test ! -s conftest.err'
6727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6728 (eval $ac_try) 2>&5
6729 ac_status=$?
6730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6731 (exit $ac_status); }; } &&
6732 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00006733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6734 (eval $ac_try) 2>&5
6735 ac_status=$?
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006738
John Criswell47fdd832003-07-14 16:52:07 +00006739aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6740}'`
6741# Check for a 64-bit object if we didn't find anything.
6742if 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; }
6743}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006744else
6745 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006746sed 's/^/| /' conftest.$ac_ext >&5
6747
John Criswell7a73b802003-06-30 21:59:07 +00006748fi
Reid Spencer17041682004-09-05 17:48:32 +00006749rm -f conftest.err conftest.$ac_objext \
6750 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006751if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006752
John Criswell47fdd832003-07-14 16:52:07 +00006753 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6754 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"
6755 else
6756 if test "$host_cpu" = ia64; then
6757 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6758 allow_undefined_flag="-z nodefs"
6759 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"
6760 else
6761 # Determine the default libpath from the value encoded in an empty executable.
6762 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00006763/* confdefs.h. */
6764_ACEOF
6765cat confdefs.h >>conftest.$ac_ext
6766cat >>conftest.$ac_ext <<_ACEOF
6767/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00006768
John Criswell47fdd832003-07-14 16:52:07 +00006769int
6770main ()
6771{
John Criswell7a73b802003-06-30 21:59:07 +00006772
John Criswell47fdd832003-07-14 16:52:07 +00006773 ;
6774 return 0;
6775}
6776_ACEOF
6777rm -f conftest.$ac_objext conftest$ac_exeext
6778if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00006779 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00006780 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00006781 grep -v '^ *+' conftest.er1 >conftest.err
6782 rm -f conftest.er1
6783 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00006784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00006786 { ac_try='test -z "$ac_c_werror_flag"
6787 || test ! -s conftest.err'
6788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6789 (eval $ac_try) 2>&5
6790 ac_status=$?
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); }; } &&
6793 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00006794 { (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); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +00006799
John Criswell47fdd832003-07-14 16:52:07 +00006800aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6801}'`
6802# Check for a 64-bit object if we didn't find anything.
6803if 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; }
6804}'`; fi
John Criswell7a73b802003-06-30 21:59:07 +00006805else
John Criswell47fdd832003-07-14 16:52:07 +00006806 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00006807sed 's/^/| /' conftest.$ac_ext >&5
6808
John Criswell47fdd832003-07-14 16:52:07 +00006809fi
Reid Spencer17041682004-09-05 17:48:32 +00006810rm -f conftest.err conftest.$ac_objext \
6811 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00006812if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
John Criswell7a73b802003-06-30 21:59:07 +00006813
John Criswell47fdd832003-07-14 16:52:07 +00006814 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6815 # Warning - without using the other run time loading flags,
6816 # -berok will link without error, but may produce a broken library.
6817 no_undefined_flag=' ${wl}-bernotok'
6818 allow_undefined_flag=' ${wl}-berok'
6819 # -bexpall does not export symbols beginning with underscore (_)
6820 always_export_symbols=yes
6821 # Exported symbols can be pulled into shared objects from archives
6822 whole_archive_flag_spec=' '
6823 archive_cmds_need_lc=yes
6824 # This is similar to how AIX traditionally builds it's shared libraries.
6825 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 +00006826 fi
6827 fi
John Criswell7a73b802003-06-30 21:59:07 +00006828 ;;
John Criswell47fdd832003-07-14 16:52:07 +00006829
6830 amigaos*)
6831 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)'
6832 hardcode_libdir_flag_spec='-L$libdir'
6833 hardcode_minus_L=yes
6834 # see comment about different semantics on the GNU ld section
6835 ld_shlibs=no
John Criswell7a73b802003-06-30 21:59:07 +00006836 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006837
John Criswell47fdd832003-07-14 16:52:07 +00006838 bsdi4*)
6839 export_dynamic_flag_spec=-rdynamic
6840 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006841
John Criswell47fdd832003-07-14 16:52:07 +00006842 cygwin* | mingw* | pw32*)
6843 # When not using gcc, we currently assume that we are using
6844 # Microsoft Visual C++.
6845 # hardcode_libdir_flag_spec is actually meaningless, as there is
6846 # no search path for DLLs.
6847 hardcode_libdir_flag_spec=' '
6848 allow_undefined_flag=unsupported
6849 # Tell ltmain to make .lib files, not .a files.
6850 libext=lib
6851 # Tell ltmain to make .dll files, not .so files.
6852 shrext=".dll"
6853 # FIXME: Setting linknames here is a bad hack.
6854 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6855 # The linker will automatically build a .lib file if we build a DLL.
6856 old_archive_From_new_cmds='true'
6857 # FIXME: Should let the user specify the lib program.
6858 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6859 fix_srcfile_path='`cygpath -w "$srcfile"`'
6860 enable_shared_with_static_runtimes=yes
6861 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006862
John Criswell47fdd832003-07-14 16:52:07 +00006863 darwin* | rhapsody*)
6864 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6865 archive_cmds_need_lc=no
John Criswell7a73b802003-06-30 21:59:07 +00006866 case "$host_os" in
John Criswell47fdd832003-07-14 16:52:07 +00006867 rhapsody* | darwin1.[012])
6868 allow_undefined_flag='-undefined suppress'
6869 ;;
6870 *) # Darwin 1.3 on
6871 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
John Criswell7a73b802003-06-30 21:59:07 +00006872 ;;
6873 esac
John Criswell47fdd832003-07-14 16:52:07 +00006874 # FIXME: Relying on posixy $() will cause problems for
6875 # cross-compilation, but unfortunately the echo tests do not
6876 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
6877 # `"' quotes if we put them in here... so don't!
6878 lt_int_apple_cc_single_mod=no
6879 output_verbose_link_cmd='echo'
6880 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6881 lt_int_apple_cc_single_mod=yes
6882 fi
6883 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6884 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6885 else
6886 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'
6887 fi
6888 module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
6889 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6890 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6891 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}'
6892 else
6893 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}'
6894 fi
6895 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}'
6896 hardcode_direct=no
6897 hardcode_automatic=yes
6898 hardcode_shlibpath_var=unsupported
6899 whole_archive_flag_spec='-all_load $convenience'
6900 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00006901 fi
John Criswell47fdd832003-07-14 16:52:07 +00006902 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006903
John Criswell47fdd832003-07-14 16:52:07 +00006904 dgux*)
John Criswell7a73b802003-06-30 21:59:07 +00006905 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
John Criswell47fdd832003-07-14 16:52:07 +00006906 hardcode_libdir_flag_spec='-L$libdir'
6907 hardcode_shlibpath_var=no
6908 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006909
John Criswell47fdd832003-07-14 16:52:07 +00006910 freebsd1*)
6911 ld_shlibs=no
6912 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006913
John Criswell47fdd832003-07-14 16:52:07 +00006914 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6915 # support. Future versions do this automatically, but an explicit c++rt0.o
6916 # does not break anything, and helps significantly (at the cost of a little
6917 # extra space).
6918 freebsd2.2*)
6919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6920 hardcode_libdir_flag_spec='-R$libdir'
6921 hardcode_direct=yes
6922 hardcode_shlibpath_var=no
6923 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006924
John Criswell47fdd832003-07-14 16:52:07 +00006925 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6926 freebsd2*)
6927 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6928 hardcode_direct=yes
6929 hardcode_minus_L=yes
6930 hardcode_shlibpath_var=no
6931 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006932
John Criswell47fdd832003-07-14 16:52:07 +00006933 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6934 freebsd*)
6935 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6936 hardcode_libdir_flag_spec='-R$libdir'
6937 hardcode_direct=yes
6938 hardcode_shlibpath_var=no
6939 ;;
John Criswell7a73b802003-06-30 21:59:07 +00006940
John Criswell47fdd832003-07-14 16:52:07 +00006941 hpux9*)
6942 if test "$GCC" = yes; then
6943 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'
6944 else
6945 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'
6946 fi
6947 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6948 hardcode_libdir_separator=:
6949 hardcode_direct=yes
6950
6951 # hardcode_minus_L: Not really in the search PATH,
6952 # but as the default location of the library.
6953 hardcode_minus_L=yes
6954 export_dynamic_flag_spec='${wl}-E'
6955 ;;
6956
6957 hpux10* | hpux11*)
6958 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6959 case "$host_cpu" in
6960 hppa*64*|ia64*)
6961 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6962 ;;
6963 *)
6964 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6965 ;;
6966 esac
6967 else
6968 case "$host_cpu" in
6969 hppa*64*|ia64*)
6970 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6971 ;;
6972 *)
6973 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6974 ;;
6975 esac
6976 fi
6977 if test "$with_gnu_ld" = no; then
6978 case "$host_cpu" in
6979 hppa*64*)
6980 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6981 hardcode_libdir_flag_spec_ld='+b $libdir'
6982 hardcode_libdir_separator=:
6983 hardcode_direct=no
6984 hardcode_shlibpath_var=no
6985 ;;
6986 ia64*)
6987 hardcode_libdir_flag_spec='-L$libdir'
6988 hardcode_direct=no
6989 hardcode_shlibpath_var=no
6990
6991 # hardcode_minus_L: Not really in the search PATH,
6992 # but as the default location of the library.
6993 hardcode_minus_L=yes
6994 ;;
6995 *)
6996 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6997 hardcode_libdir_separator=:
6998 hardcode_direct=yes
6999 export_dynamic_flag_spec='${wl}-E'
7000
7001 # hardcode_minus_L: Not really in the search PATH,
7002 # but as the default location of the library.
7003 hardcode_minus_L=yes
7004 ;;
7005 esac
7006 fi
7007 ;;
7008
7009 irix5* | irix6* | nonstopux*)
7010 if test "$GCC" = yes; then
7011 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'
7012 else
7013 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'
7014 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7015 fi
7016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7017 hardcode_libdir_separator=:
7018 link_all_deplibs=yes
7019 ;;
7020
7021 netbsd*)
7022 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7023 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7024 else
7025 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7026 fi
7027 hardcode_libdir_flag_spec='-R$libdir'
7028 hardcode_direct=yes
7029 hardcode_shlibpath_var=no
7030 ;;
7031
7032 newsos6)
7033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7034 hardcode_direct=yes
7035 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7036 hardcode_libdir_separator=:
7037 hardcode_shlibpath_var=no
7038 ;;
7039
7040 openbsd*)
7041 hardcode_direct=yes
7042 hardcode_shlibpath_var=no
7043 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7044 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7045 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7046 export_dynamic_flag_spec='${wl}-E'
7047 else
7048 case $host_os in
7049 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7051 hardcode_libdir_flag_spec='-R$libdir'
7052 ;;
7053 *)
7054 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7055 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7056 ;;
7057 esac
7058 fi
7059 ;;
7060
7061 os2*)
7062 hardcode_libdir_flag_spec='-L$libdir'
7063 hardcode_minus_L=yes
7064 allow_undefined_flag=unsupported
7065 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'
7066 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7067 ;;
7068
7069 osf3*)
7070 if test "$GCC" = yes; then
7071 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7072 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'
7073 else
7074 allow_undefined_flag=' -expect_unresolved \*'
7075 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'
7076 fi
7077 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7078 hardcode_libdir_separator=:
7079 ;;
7080
7081 osf4* | osf5*) # as osf3* with the addition of -msym flag
7082 if test "$GCC" = yes; then
7083 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7084 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'
7085 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7086 else
7087 allow_undefined_flag=' -expect_unresolved \*'
7088 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'
7089 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7090 $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'
7091
7092 # Both c and cxx compiler support -rpath directly
7093 hardcode_libdir_flag_spec='-rpath $libdir'
7094 fi
7095 hardcode_libdir_separator=:
7096 ;;
7097
7098 sco3.2v5*)
John Criswell7a73b802003-06-30 21:59:07 +00007099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7100 hardcode_shlibpath_var=no
John Criswell47fdd832003-07-14 16:52:07 +00007101 export_dynamic_flag_spec='${wl}-Bexport'
John Criswell7a73b802003-06-30 21:59:07 +00007102 runpath_var=LD_RUN_PATH
7103 hardcode_runpath_var=yes
John Criswell47fdd832003-07-14 16:52:07 +00007104 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007105
John Criswell47fdd832003-07-14 16:52:07 +00007106 solaris*)
7107 no_undefined_flag=' -z text'
7108 if test "$GCC" = yes; then
7109 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7110 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7111 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7112 else
7113 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7114 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7115 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7116 fi
7117 hardcode_libdir_flag_spec='-R$libdir'
7118 hardcode_shlibpath_var=no
7119 case $host_os in
7120 solaris2.[0-5] | solaris2.[0-5].*) ;;
7121 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7122 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7123 esac
7124 link_all_deplibs=yes
7125 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007126
John Criswell47fdd832003-07-14 16:52:07 +00007127 sunos4*)
7128 if test "x$host_vendor" = xsequent; then
7129 # Use $CC to link under sequent, because it throws in some extra .o
7130 # files that make .init and .fini sections work.
7131 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7132 else
7133 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7134 fi
7135 hardcode_libdir_flag_spec='-L$libdir'
7136 hardcode_direct=yes
7137 hardcode_minus_L=yes
7138 hardcode_shlibpath_var=no
7139 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007140
John Criswell47fdd832003-07-14 16:52:07 +00007141 sysv4)
7142 case $host_vendor in
7143 sni)
7144 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7145 hardcode_direct=yes # is this really true???
7146 ;;
7147 siemens)
7148 ## LD is ld it makes a PLAMLIB
7149 ## CC just makes a GrossModule.
7150 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7151 reload_cmds='$CC -r -o $output$reload_objs'
7152 hardcode_direct=no
7153 ;;
7154 motorola)
7155 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7156 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7157 ;;
7158 esac
7159 runpath_var='LD_RUN_PATH'
7160 hardcode_shlibpath_var=no
7161 ;;
7162
7163 sysv4.3*)
7164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7165 hardcode_shlibpath_var=no
7166 export_dynamic_flag_spec='-Bexport'
7167 ;;
7168
7169 sysv4*MP*)
7170 if test -d /usr/nec; then
7171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7172 hardcode_shlibpath_var=no
7173 runpath_var=LD_RUN_PATH
7174 hardcode_runpath_var=yes
7175 ld_shlibs=yes
7176 fi
7177 ;;
7178
7179 sysv4.2uw2*)
7180 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7181 hardcode_direct=yes
7182 hardcode_minus_L=no
7183 hardcode_shlibpath_var=no
7184 hardcode_runpath_var=yes
7185 runpath_var=LD_RUN_PATH
7186 ;;
7187
7188 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7189 no_undefined_flag='${wl}-z ${wl}text'
7190 if test "$GCC" = yes; then
7191 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7192 else
7193 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7194 fi
7195 runpath_var='LD_RUN_PATH'
7196 hardcode_shlibpath_var=no
7197 ;;
7198
7199 sysv5*)
7200 no_undefined_flag=' -z text'
7201 # $CC -shared without GNU ld will not create a library from C++
7202 # object files and a static libstdc++, better avoid it by now
7203 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7204 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7205 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7206 hardcode_libdir_flag_spec=
7207 hardcode_shlibpath_var=no
7208 runpath_var='LD_RUN_PATH'
7209 ;;
7210
7211 uts4*)
7212 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7213 hardcode_libdir_flag_spec='-L$libdir'
7214 hardcode_shlibpath_var=no
7215 ;;
7216
7217 *)
7218 ld_shlibs=no
7219 ;;
7220 esac
7221 fi
7222
John Criswell7a73b802003-06-30 21:59:07 +00007223echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7224echo "${ECHO_T}$ld_shlibs" >&6
7225test "$ld_shlibs" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007226
John Criswell47fdd832003-07-14 16:52:07 +00007227variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7228if test "$GCC" = yes; then
7229 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7230fi
7231
7232#
7233# Do we need to explicitly link libc?
7234#
7235case "x$archive_cmds_need_lc" in
7236x|xyes)
7237 # Assume -lc should be added
7238 archive_cmds_need_lc=yes
7239
7240 if test "$enable_shared" = yes && test "$GCC" = yes; then
7241 case $archive_cmds in
7242 *'~'*)
7243 # FIXME: we may have to deal with multi-command sequences.
7244 ;;
7245 '$CC '*)
7246 # Test whether the compiler implicitly links with -lc since on some
7247 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7248 # to ld, don't add -lc before -lgcc.
7249 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7250echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7251 $rm conftest*
7252 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7253
7254 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7255 (eval $ac_compile) 2>&5
7256 ac_status=$?
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } 2>conftest.err; then
7259 soname=conftest
7260 lib=conftest
7261 libobjs=conftest.$ac_objext
7262 deplibs=
7263 wl=$lt_prog_compiler_wl
7264 compiler_flags=-v
7265 linker_flags=-v
7266 verstring=
7267 output_objdir=.
7268 libname=conftest
7269 lt_save_allow_undefined_flag=$allow_undefined_flag
7270 allow_undefined_flag=
7271 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7272 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }
7276 then
7277 archive_cmds_need_lc=no
7278 else
7279 archive_cmds_need_lc=yes
7280 fi
7281 allow_undefined_flag=$lt_save_allow_undefined_flag
7282 else
7283 cat conftest.err 1>&5
7284 fi
7285 $rm conftest*
7286 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7287echo "${ECHO_T}$archive_cmds_need_lc" >&6
7288 ;;
7289 esac
7290 fi
7291 ;;
7292esac
7293
John Criswell7a73b802003-06-30 21:59:07 +00007294echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7295echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7296hardcode_action=
7297if test -n "$hardcode_libdir_flag_spec" || \
John Criswell47fdd832003-07-14 16:52:07 +00007298 test -n "$runpath_var " || \
7299 test "X$hardcode_automatic"="Xyes" ; then
John Criswell7a73b802003-06-30 21:59:07 +00007300
7301 # We can hardcode non-existant directories.
7302 if test "$hardcode_direct" != no &&
7303 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7304 # have to relink, otherwise we might link with an installed library
7305 # when we should be linking with a yet-to-be-installed one
John Criswell47fdd832003-07-14 16:52:07 +00007306 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
John Criswell7a73b802003-06-30 21:59:07 +00007307 test "$hardcode_minus_L" != no; then
7308 # Linking always hardcodes the temporary library directory.
7309 hardcode_action=relink
7310 else
7311 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7312 hardcode_action=immediate
7313 fi
7314else
7315 # We cannot hardcode anything, or else we can only hardcode existing
7316 # directories.
7317 hardcode_action=unsupported
7318fi
7319echo "$as_me:$LINENO: result: $hardcode_action" >&5
7320echo "${ECHO_T}$hardcode_action" >&6
John Criswell7a73b802003-06-30 21:59:07 +00007321
John Criswell47fdd832003-07-14 16:52:07 +00007322if test "$hardcode_action" = relink; then
7323 # Fast installation is not supported
7324 enable_fast_install=no
7325elif test "$shlibpath_overrides_runpath" = yes ||
7326 test "$enable_shared" = no; then
7327 # Fast installation is not necessary
7328 enable_fast_install=needless
7329fi
7330
John Criswell7a73b802003-06-30 21:59:07 +00007331striplib=
7332old_striplib=
7333echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7334echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7335if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7336 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7337 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7338 echo "$as_me:$LINENO: result: yes" >&5
7339echo "${ECHO_T}yes" >&6
7340else
John Criswell47fdd832003-07-14 16:52:07 +00007341# FIXME - insert some real tests, host_os isn't really good enough
7342 case $host_os in
7343 darwin*)
7344 if test -n "$STRIP" ; then
7345 striplib="$STRIP -x"
7346 echo "$as_me:$LINENO: result: yes" >&5
7347echo "${ECHO_T}yes" >&6
7348 else
John Criswell7a73b802003-06-30 21:59:07 +00007349 echo "$as_me:$LINENO: result: no" >&5
7350echo "${ECHO_T}no" >&6
7351fi
John Criswell47fdd832003-07-14 16:52:07 +00007352 ;;
7353 *)
7354 echo "$as_me:$LINENO: result: no" >&5
7355echo "${ECHO_T}no" >&6
7356 ;;
7357 esac
7358fi
John Criswell7a73b802003-06-30 21:59:07 +00007359
John Criswell7a73b802003-06-30 21:59:07 +00007360echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7361echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7362library_names_spec=
7363libname_spec='lib$name'
7364soname_spec=
John Criswell47fdd832003-07-14 16:52:07 +00007365shrext=".so"
John Criswell7a73b802003-06-30 21:59:07 +00007366postinstall_cmds=
7367postuninstall_cmds=
7368finish_cmds=
7369finish_eval=
7370shlibpath_var=
7371shlibpath_overrides_runpath=unknown
7372version_type=none
7373dynamic_linker="$host_os ld.so"
7374sys_lib_dlsearch_path_spec="/lib /usr/lib"
John Criswell47fdd832003-07-14 16:52:07 +00007375if test "$GCC" = yes; then
7376 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7377 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7378 # if the path contains ";" then we assume it to be the separator
7379 # otherwise default to the standard path separator (i.e. ":") - it is
7380 # assumed that no part of a normal pathname contains ";" but that should
7381 # okay in the real world where ";" in dirpaths is itself problematic.
7382 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7383 else
7384 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7385 fi
7386else
7387 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7388fi
7389need_lib_prefix=unknown
7390hardcode_into_libs=no
7391
7392# when you set need_version to no, make sure it does not cause -set_version
7393# flags to be left without arguments
7394need_version=unknown
John Criswell7a73b802003-06-30 21:59:07 +00007395
7396case $host_os in
7397aix3*)
7398 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007399 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007400 shlibpath_var=LIBPATH
7401
John Criswell47fdd832003-07-14 16:52:07 +00007402 # AIX 3 has no versioning support, so we append a major version to the name.
7403 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007404 ;;
7405
7406aix4* | aix5*)
7407 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007408 need_lib_prefix=no
7409 need_version=no
7410 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007411 if test "$host_cpu" = ia64; then
7412 # AIX 5 supports IA64
John Criswell47fdd832003-07-14 16:52:07 +00007413 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007414 shlibpath_var=LD_LIBRARY_PATH
7415 else
7416 # With GCC up to 2.95.x, collect2 would create an import file
7417 # for dependence libraries. The import file would start with
7418 # the line `#! .'. This would cause the generated library to
7419 # depend on `.', always an invalid library. This was fixed in
7420 # development snapshots of GCC prior to 3.0.
7421 case $host_os in
7422 aix4 | aix4.[01] | aix4.[01].*)
John Criswell47fdd832003-07-14 16:52:07 +00007423 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7424 echo ' yes '
7425 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7426 :
7427 else
7428 can_build_shared=no
7429 fi
7430 ;;
John Criswell7a73b802003-06-30 21:59:07 +00007431 esac
John Criswell47fdd832003-07-14 16:52:07 +00007432 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7433 # soname into executable. Probably we can add versioning support to
7434 # collect2, so additional links can be useful in future.
John Criswell7a73b802003-06-30 21:59:07 +00007435 if test "$aix_use_runtimelinking" = yes; then
7436 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7437 # instead of lib<name>.a to let people know that these are not
7438 # typical AIX shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00007439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007440 else
7441 # We preserve .a as extension for shared libraries through AIX4.2
7442 # and later when we are not doing run time linking.
7443 library_names_spec='${libname}${release}.a $libname.a'
John Criswell47fdd832003-07-14 16:52:07 +00007444 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007445 fi
7446 shlibpath_var=LIBPATH
7447 fi
7448 ;;
7449
7450amigaos*)
7451 library_names_spec='$libname.ixlibrary $libname.a'
7452 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7453 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'
7454 ;;
7455
7456beos*)
John Criswell47fdd832003-07-14 16:52:07 +00007457 library_names_spec='${libname}${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007458 dynamic_linker="$host_os ld.so"
7459 shlibpath_var=LIBRARY_PATH
7460 ;;
7461
7462bsdi4*)
7463 version_type=linux
7464 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7466 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7468 shlibpath_var=LD_LIBRARY_PATH
7469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
John Criswell7a73b802003-06-30 21:59:07 +00007471 # the default ld.so.conf also contains /usr/contrib/lib and
7472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7473 # libtool to hard-code these into programs
7474 ;;
7475
7476cygwin* | mingw* | pw32*)
7477 version_type=windows
John Criswell47fdd832003-07-14 16:52:07 +00007478 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007479 need_version=no
7480 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007481
John Criswell7a73b802003-06-30 21:59:07 +00007482 case $GCC,$host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007483 yes,cygwin* | yes,mingw* | yes,pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007484 library_names_spec='$libname.dll.a'
John Criswell47fdd832003-07-14 16:52:07 +00007485 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7486 postinstall_cmds='base_file=`basename \${file}`~
7487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007488 dldir=$destdir/`dirname \$dlpath`~
7489 test -d \$dldir || mkdir -p \$dldir~
John Criswell47fdd832003-07-14 16:52:07 +00007490 $install_prog $dir/$dlname \$dldir/$dlname'
7491 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
John Criswell7a73b802003-06-30 21:59:07 +00007492 dlpath=$dir/\$dldll~
7493 $rm \$dlpath'
John Criswell47fdd832003-07-14 16:52:07 +00007494 shlibpath_overrides_runpath=yes
7495
7496 case $host_os in
7497 cygwin*)
7498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7499 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7500 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7501 ;;
7502 mingw*)
7503 # MinGW DLLs use traditional 'lib' prefix
7504 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7505 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7506 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7507 # It is most probably a Windows format PATH printed by
7508 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7509 # path with ; separators, and with drive letters. We can handle the
7510 # drive letters (cygwin fileutils understands them), so leave them,
7511 # especially as we might pass files found there to a mingw objdump,
7512 # which wouldn't understand a cygwinified path. Ahh.
7513 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7514 else
7515 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7516 fi
7517 ;;
7518 pw32*)
7519 # pw32 DLLs use 'pw' prefix rather than 'lib'
7520 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7521 ;;
7522 esac
John Criswell7a73b802003-06-30 21:59:07 +00007523 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007524
John Criswell7a73b802003-06-30 21:59:07 +00007525 *)
John Criswell47fdd832003-07-14 16:52:07 +00007526 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
John Criswell7a73b802003-06-30 21:59:07 +00007527 ;;
7528 esac
7529 dynamic_linker='Win32 ld.exe'
7530 # FIXME: first we should search . and the directory the executable is in
7531 shlibpath_var=PATH
7532 ;;
7533
7534darwin* | rhapsody*)
7535 dynamic_linker="$host_os dyld"
7536 version_type=darwin
7537 need_lib_prefix=no
7538 need_version=no
7539 # FIXME: Relying on posixy $() will cause problems for
7540 # cross-compilation, but unfortunately the echo tests do not
7541 # yet detect zsh echo's removal of \ escapes.
John Criswell47fdd832003-07-14 16:52:07 +00007542 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7543 soname_spec='${libname}${release}${major}$shared_ext'
John Criswell7a73b802003-06-30 21:59:07 +00007544 shlibpath_overrides_runpath=yes
7545 shlibpath_var=DYLD_LIBRARY_PATH
John Criswell47fdd832003-07-14 16:52:07 +00007546 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7547 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7548 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7549 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"`
7550 fi
7551 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7552 ;;
7553
7554dgux*)
7555 version_type=linux
7556 need_lib_prefix=no
7557 need_version=no
7558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7559 soname_spec='${libname}${release}${shared_ext}$major'
7560 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007561 ;;
7562
7563freebsd1*)
7564 dynamic_linker=no
7565 ;;
7566
7567freebsd*)
7568 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7569 version_type=freebsd-$objformat
7570 case $version_type in
7571 freebsd-elf*)
John Criswell47fdd832003-07-14 16:52:07 +00007572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007573 need_version=no
7574 need_lib_prefix=no
7575 ;;
7576 freebsd-*)
John Criswell47fdd832003-07-14 16:52:07 +00007577 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007578 need_version=yes
7579 ;;
7580 esac
7581 shlibpath_var=LD_LIBRARY_PATH
7582 case $host_os in
7583 freebsd2*)
7584 shlibpath_overrides_runpath=yes
7585 ;;
John Criswell47fdd832003-07-14 16:52:07 +00007586 freebsd3.01* | freebsdelf3.01*)
7587 shlibpath_overrides_runpath=yes
7588 hardcode_into_libs=yes
7589 ;;
7590 *) # from 3.2 on
John Criswell7a73b802003-06-30 21:59:07 +00007591 shlibpath_overrides_runpath=no
7592 hardcode_into_libs=yes
7593 ;;
7594 esac
7595 ;;
7596
7597gnu*)
7598 version_type=linux
7599 need_lib_prefix=no
7600 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7602 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007603 shlibpath_var=LD_LIBRARY_PATH
7604 hardcode_into_libs=yes
7605 ;;
7606
7607hpux9* | hpux10* | hpux11*)
7608 # Give a soname corresponding to the major version so that dld.sl refuses to
7609 # link against other versions.
John Criswell7a73b802003-06-30 21:59:07 +00007610 version_type=sunos
7611 need_lib_prefix=no
7612 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007613 case "$host_cpu" in
7614 ia64*)
7615 shrext='.so'
7616 hardcode_into_libs=yes
7617 dynamic_linker="$host_os dld.so"
7618 shlibpath_var=LD_LIBRARY_PATH
7619 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7621 soname_spec='${libname}${release}${shared_ext}$major'
7622 if test "X$HPUX_IA64_MODE" = X32; then
7623 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7624 else
7625 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7626 fi
7627 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7628 ;;
7629 hppa*64*)
7630 shrext='.sl'
7631 hardcode_into_libs=yes
7632 dynamic_linker="$host_os dld.sl"
7633 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7636 soname_spec='${libname}${release}${shared_ext}$major'
7637 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7638 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7639 ;;
7640 *)
7641 shrext='.sl'
7642 dynamic_linker="$host_os dld.sl"
7643 shlibpath_var=SHLIB_PATH
7644 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7646 soname_spec='${libname}${release}${shared_ext}$major'
7647 ;;
7648 esac
John Criswell7a73b802003-06-30 21:59:07 +00007649 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7650 postinstall_cmds='chmod 555 $lib'
7651 ;;
7652
John Criswell47fdd832003-07-14 16:52:07 +00007653irix5* | irix6* | nonstopux*)
7654 case $host_os in
7655 nonstopux*) version_type=nonstopux ;;
7656 *)
7657 if test "$lt_cv_prog_gnu_ld" = yes; then
7658 version_type=linux
7659 else
7660 version_type=irix
7661 fi ;;
7662 esac
John Criswell7a73b802003-06-30 21:59:07 +00007663 need_lib_prefix=no
7664 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007665 soname_spec='${libname}${release}${shared_ext}$major'
7666 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 +00007667 case $host_os in
John Criswell47fdd832003-07-14 16:52:07 +00007668 irix5* | nonstopux*)
John Criswell7a73b802003-06-30 21:59:07 +00007669 libsuff= shlibsuff=
7670 ;;
7671 *)
7672 case $LD in # libtool.m4 will add one of these switches to LD
John Criswell47fdd832003-07-14 16:52:07 +00007673 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7674 libsuff= shlibsuff= libmagic=32-bit;;
7675 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7676 libsuff=32 shlibsuff=N32 libmagic=N32;;
7677 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7678 libsuff=64 shlibsuff=64 libmagic=64-bit;;
John Criswell7a73b802003-06-30 21:59:07 +00007679 *) libsuff= shlibsuff= libmagic=never-match;;
7680 esac
7681 ;;
7682 esac
7683 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7684 shlibpath_overrides_runpath=no
7685 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7686 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
John Criswell47fdd832003-07-14 16:52:07 +00007687 hardcode_into_libs=yes
John Criswell7a73b802003-06-30 21:59:07 +00007688 ;;
7689
7690# No shared lib support for Linux oldld, aout, or coff.
John Criswell47fdd832003-07-14 16:52:07 +00007691linux*oldld* | linux*aout* | linux*coff*)
John Criswell7a73b802003-06-30 21:59:07 +00007692 dynamic_linker=no
7693 ;;
7694
7695# This must be Linux ELF.
John Criswell47fdd832003-07-14 16:52:07 +00007696linux*)
John Criswell7a73b802003-06-30 21:59:07 +00007697 version_type=linux
7698 need_lib_prefix=no
7699 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7701 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007702 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7703 shlibpath_var=LD_LIBRARY_PATH
7704 shlibpath_overrides_runpath=no
7705 # This implies no fast_install, which is unacceptable.
7706 # Some rework will be needed to allow for fast_install
7707 # before this can be enabled.
7708 hardcode_into_libs=yes
7709
7710 # We used to test for /lib/ld.so.1 and disable shared libraries on
7711 # powerpc, because MkLinux only supported shared libraries with the
7712 # GNU dynamic linker. Since this was broken with cross compilers,
7713 # most powerpc-linux boxes support dynamic linking these days and
7714 # people can always --disable-shared, the test was removed, and we
7715 # assume the GNU/Linux dynamic linker is in use.
7716 dynamic_linker='GNU/Linux ld.so'
7717 ;;
7718
7719netbsd*)
7720 version_type=sunos
7721 need_lib_prefix=no
7722 need_version=no
7723 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
John Criswell47fdd832003-07-14 16:52:07 +00007724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007725 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7726 dynamic_linker='NetBSD (a.out) ld.so'
7727 else
John Criswell47fdd832003-07-14 16:52:07 +00007728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7729 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007730 dynamic_linker='NetBSD ld.elf_so'
7731 fi
7732 shlibpath_var=LD_LIBRARY_PATH
7733 shlibpath_overrides_runpath=yes
7734 hardcode_into_libs=yes
7735 ;;
7736
7737newsos6)
7738 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7740 shlibpath_var=LD_LIBRARY_PATH
7741 shlibpath_overrides_runpath=yes
7742 ;;
7743
7744nto-qnx)
7745 version_type=linux
7746 need_lib_prefix=no
7747 need_version=no
7748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7749 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007750 shlibpath_var=LD_LIBRARY_PATH
7751 shlibpath_overrides_runpath=yes
7752 ;;
7753
7754openbsd*)
7755 version_type=sunos
7756 need_lib_prefix=no
7757 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7760 shlibpath_var=LD_LIBRARY_PATH
John Criswell7a73b802003-06-30 21:59:07 +00007761 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 +00007762 case $host_os in
7763 openbsd2.[89] | openbsd2.[89].*)
7764 shlibpath_overrides_runpath=no
7765 ;;
7766 *)
7767 shlibpath_overrides_runpath=yes
7768 ;;
7769 esac
John Criswell7a73b802003-06-30 21:59:07 +00007770 else
7771 shlibpath_overrides_runpath=yes
7772 fi
John Criswell7a73b802003-06-30 21:59:07 +00007773 ;;
7774
7775os2*)
7776 libname_spec='$name'
John Criswell47fdd832003-07-14 16:52:07 +00007777 shrext=".dll"
John Criswell7a73b802003-06-30 21:59:07 +00007778 need_lib_prefix=no
John Criswell47fdd832003-07-14 16:52:07 +00007779 library_names_spec='$libname${shared_ext} $libname.a'
John Criswell7a73b802003-06-30 21:59:07 +00007780 dynamic_linker='OS/2 ld.exe'
7781 shlibpath_var=LIBPATH
7782 ;;
7783
7784osf3* | osf4* | osf5*)
7785 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007786 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007787 need_version=no
John Criswell47fdd832003-07-14 16:52:07 +00007788 soname_spec='${libname}${release}${shared_ext}$major'
7789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007790 shlibpath_var=LD_LIBRARY_PATH
7791 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7792 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7793 ;;
7794
7795sco3.2v5*)
7796 version_type=osf
John Criswell47fdd832003-07-14 16:52:07 +00007797 soname_spec='${libname}${release}${shared_ext}$major'
7798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
John Criswell7a73b802003-06-30 21:59:07 +00007799 shlibpath_var=LD_LIBRARY_PATH
7800 ;;
7801
7802solaris*)
7803 version_type=linux
7804 need_lib_prefix=no
7805 need_version=no
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 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007808 shlibpath_var=LD_LIBRARY_PATH
7809 shlibpath_overrides_runpath=yes
7810 hardcode_into_libs=yes
7811 # ldd complains unless libraries are executable
7812 postinstall_cmds='chmod +x $lib'
7813 ;;
7814
7815sunos4*)
7816 version_type=sunos
John Criswell47fdd832003-07-14 16:52:07 +00007817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
John Criswell7a73b802003-06-30 21:59:07 +00007818 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7819 shlibpath_var=LD_LIBRARY_PATH
7820 shlibpath_overrides_runpath=yes
7821 if test "$with_gnu_ld" = yes; then
7822 need_lib_prefix=no
7823 fi
7824 need_version=yes
7825 ;;
7826
7827sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7828 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7830 soname_spec='${libname}${release}${shared_ext}$major'
John Criswell7a73b802003-06-30 21:59:07 +00007831 shlibpath_var=LD_LIBRARY_PATH
7832 case $host_vendor in
7833 sni)
7834 shlibpath_overrides_runpath=no
John Criswell47fdd832003-07-14 16:52:07 +00007835 need_lib_prefix=no
7836 export_dynamic_flag_spec='${wl}-Blargedynsym'
7837 runpath_var=LD_RUN_PATH
7838 ;;
7839 siemens)
7840 need_lib_prefix=no
John Criswell7a73b802003-06-30 21:59:07 +00007841 ;;
7842 motorola)
7843 need_lib_prefix=no
7844 need_version=no
7845 shlibpath_overrides_runpath=no
7846 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7847 ;;
7848 esac
7849 ;;
7850
John Criswell7a73b802003-06-30 21:59:07 +00007851sysv4*MP*)
7852 if test -d /usr/nec ;then
7853 version_type=linux
John Criswell47fdd832003-07-14 16:52:07 +00007854 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7855 soname_spec='$libname${shared_ext}.$major'
John Criswell7a73b802003-06-30 21:59:07 +00007856 shlibpath_var=LD_LIBRARY_PATH
7857 fi
7858 ;;
7859
John Criswell47fdd832003-07-14 16:52:07 +00007860uts4*)
7861 version_type=linux
7862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7863 soname_spec='${libname}${release}${shared_ext}$major'
7864 shlibpath_var=LD_LIBRARY_PATH
7865 ;;
7866
John Criswell7a73b802003-06-30 21:59:07 +00007867*)
7868 dynamic_linker=no
7869 ;;
7870esac
7871echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7872echo "${ECHO_T}$dynamic_linker" >&6
7873test "$dynamic_linker" = no && can_build_shared=no
John Criswell7a73b802003-06-30 21:59:07 +00007874
7875if test "x$enable_dlopen" != xyes; then
7876 enable_dlopen=unknown
7877 enable_dlopen_self=unknown
7878 enable_dlopen_self_static=unknown
7879else
7880 lt_cv_dlopen=no
7881 lt_cv_dlopen_libs=
7882
7883 case $host_os in
7884 beos*)
7885 lt_cv_dlopen="load_add_on"
7886 lt_cv_dlopen_libs=
7887 lt_cv_dlopen_self=yes
7888 ;;
7889
John Criswell47fdd832003-07-14 16:52:07 +00007890 mingw* | pw32*)
John Criswell7a73b802003-06-30 21:59:07 +00007891 lt_cv_dlopen="LoadLibrary"
7892 lt_cv_dlopen_libs=
7893 ;;
7894
John Criswell47fdd832003-07-14 16:52:07 +00007895 cygwin*)
7896 lt_cv_dlopen="dlopen"
7897 lt_cv_dlopen_libs=
7898 ;;
7899
7900 darwin*)
7901 # if libdl is installed we need to link against it
7902 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7903echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7904if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7905 echo $ECHO_N "(cached) $ECHO_C" >&6
7906else
7907 ac_check_lib_save_LIBS=$LIBS
7908LIBS="-ldl $LIBS"
7909cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00007910/* confdefs.h. */
7911_ACEOF
7912cat confdefs.h >>conftest.$ac_ext
7913cat >>conftest.$ac_ext <<_ACEOF
7914/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00007915
7916/* Override any gcc2 internal prototype to avoid an error. */
7917#ifdef __cplusplus
7918extern "C"
7919#endif
7920/* We use char because int might match the return type of a gcc2
7921 builtin and then its argument prototype would still apply. */
7922char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +00007923int
7924main ()
7925{
7926dlopen ();
7927 ;
7928 return 0;
7929}
7930_ACEOF
7931rm -f conftest.$ac_objext conftest$ac_exeext
7932if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00007933 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00007934 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00007935 grep -v '^ *+' conftest.er1 >conftest.err
7936 rm -f conftest.er1
7937 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00007938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7939 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00007940 { ac_try='test -z "$ac_c_werror_flag"
7941 || test ! -s conftest.err'
7942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7943 (eval $ac_try) 2>&5
7944 ac_status=$?
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); }; } &&
7947 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00007948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7949 (eval $ac_try) 2>&5
7950 ac_status=$?
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); }; }; then
7953 ac_cv_lib_dl_dlopen=yes
7954else
7955 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00007956sed 's/^/| /' conftest.$ac_ext >&5
7957
John Criswell47fdd832003-07-14 16:52:07 +00007958ac_cv_lib_dl_dlopen=no
7959fi
Reid Spencer17041682004-09-05 17:48:32 +00007960rm -f conftest.err conftest.$ac_objext \
7961 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00007962LIBS=$ac_check_lib_save_LIBS
7963fi
7964echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7965echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7966if test $ac_cv_lib_dl_dlopen = yes; then
7967 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7968else
7969
7970 lt_cv_dlopen="dyld"
7971 lt_cv_dlopen_libs=
7972 lt_cv_dlopen_self=yes
7973
7974fi
7975
7976 ;;
7977
John Criswell7a73b802003-06-30 21:59:07 +00007978 *)
7979 echo "$as_me:$LINENO: checking for shl_load" >&5
7980echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7981if test "${ac_cv_func_shl_load+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7983else
7984 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00007985/* confdefs.h. */
7986_ACEOF
7987cat confdefs.h >>conftest.$ac_ext
7988cat >>conftest.$ac_ext <<_ACEOF
7989/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +00007990/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7992#define shl_load innocuous_shl_load
7993
John Criswell7a73b802003-06-30 21:59:07 +00007994/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00007995 which can conflict with char shl_load (); below.
7996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7997 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +00007998
John Criswell0c38eaf2003-09-10 15:17:25 +00007999#ifdef __STDC__
8000# include <limits.h>
8001#else
8002# include <assert.h>
8003#endif
Reid Spencer17041682004-09-05 17:48:32 +00008004
8005#undef shl_load
8006
John Criswell7a73b802003-06-30 21:59:07 +00008007/* Override any gcc2 internal prototype to avoid an error. */
8008#ifdef __cplusplus
8009extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008010{
John Criswell7a73b802003-06-30 21:59:07 +00008011#endif
8012/* We use char because int might match the return type of a gcc2
8013 builtin and then its argument prototype would still apply. */
8014char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008015/* The GNU C library defines this for functions which it implements
8016 to always fail with ENOSYS. Some functions are actually named
8017 something starting with __ and the normal name is an alias. */
8018#if defined (__stub_shl_load) || defined (__stub___shl_load)
8019choke me
8020#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008021char (*f) () = shl_load;
8022#endif
8023#ifdef __cplusplus
8024}
John Criswell7a73b802003-06-30 21:59:07 +00008025#endif
8026
John Criswell0c38eaf2003-09-10 15:17:25 +00008027int
8028main ()
8029{
8030return f != shl_load;
John Criswell7a73b802003-06-30 21:59:07 +00008031 ;
8032 return 0;
8033}
8034_ACEOF
8035rm -f conftest.$ac_objext conftest$ac_exeext
8036if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008037 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008038 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008039 grep -v '^ *+' conftest.er1 >conftest.err
8040 rm -f conftest.er1
8041 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008044 { ac_try='test -z "$ac_c_werror_flag"
8045 || test ! -s conftest.err'
8046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8047 (eval $ac_try) 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; } &&
8051 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8053 (eval $ac_try) 2>&5
8054 ac_status=$?
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); }; }; then
8057 ac_cv_func_shl_load=yes
8058else
8059 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008060sed 's/^/| /' conftest.$ac_ext >&5
8061
John Criswell7a73b802003-06-30 21:59:07 +00008062ac_cv_func_shl_load=no
8063fi
Reid Spencer17041682004-09-05 17:48:32 +00008064rm -f conftest.err conftest.$ac_objext \
8065 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008066fi
8067echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8068echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8069if test $ac_cv_func_shl_load = yes; then
8070 lt_cv_dlopen="shl_load"
8071else
8072 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8073echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8074if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8075 echo $ECHO_N "(cached) $ECHO_C" >&6
8076else
8077 ac_check_lib_save_LIBS=$LIBS
8078LIBS="-ldld $LIBS"
8079cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008080/* confdefs.h. */
8081_ACEOF
8082cat confdefs.h >>conftest.$ac_ext
8083cat >>conftest.$ac_ext <<_ACEOF
8084/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008085
8086/* Override any gcc2 internal prototype to avoid an error. */
8087#ifdef __cplusplus
8088extern "C"
8089#endif
8090/* We use char because int might match the return type of a gcc2
8091 builtin and then its argument prototype would still apply. */
8092char shl_load ();
John Criswell7a73b802003-06-30 21:59:07 +00008093int
8094main ()
8095{
8096shl_load ();
8097 ;
8098 return 0;
8099}
8100_ACEOF
8101rm -f conftest.$ac_objext conftest$ac_exeext
8102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008103 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008104 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008105 grep -v '^ *+' conftest.er1 >conftest.err
8106 rm -f conftest.er1
8107 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008110 { ac_try='test -z "$ac_c_werror_flag"
8111 || test ! -s conftest.err'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8113 (eval $ac_try) 2>&5
8114 ac_status=$?
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; } &&
8117 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 (eval $ac_try) 2>&5
8120 ac_status=$?
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8123 ac_cv_lib_dld_shl_load=yes
8124else
8125 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008126sed 's/^/| /' conftest.$ac_ext >&5
8127
John Criswell7a73b802003-06-30 21:59:07 +00008128ac_cv_lib_dld_shl_load=no
8129fi
Reid Spencer17041682004-09-05 17:48:32 +00008130rm -f conftest.err conftest.$ac_objext \
8131 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008132LIBS=$ac_check_lib_save_LIBS
8133fi
8134echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8135echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8136if test $ac_cv_lib_dld_shl_load = yes; then
8137 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8138else
8139 echo "$as_me:$LINENO: checking for dlopen" >&5
8140echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8141if test "${ac_cv_func_dlopen+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8143else
8144 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008145/* confdefs.h. */
8146_ACEOF
8147cat confdefs.h >>conftest.$ac_ext
8148cat >>conftest.$ac_ext <<_ACEOF
8149/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +00008150/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8151 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8152#define dlopen innocuous_dlopen
8153
John Criswell7a73b802003-06-30 21:59:07 +00008154/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +00008155 which can conflict with char dlopen (); below.
8156 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8157 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +00008158
John Criswell0c38eaf2003-09-10 15:17:25 +00008159#ifdef __STDC__
8160# include <limits.h>
8161#else
8162# include <assert.h>
8163#endif
Reid Spencer17041682004-09-05 17:48:32 +00008164
8165#undef dlopen
8166
John Criswell7a73b802003-06-30 21:59:07 +00008167/* Override any gcc2 internal prototype to avoid an error. */
8168#ifdef __cplusplus
8169extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +00008170{
John Criswell7a73b802003-06-30 21:59:07 +00008171#endif
8172/* We use char because int might match the return type of a gcc2
8173 builtin and then its argument prototype would still apply. */
8174char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008175/* The GNU C library defines this for functions which it implements
8176 to always fail with ENOSYS. Some functions are actually named
8177 something starting with __ and the normal name is an alias. */
8178#if defined (__stub_dlopen) || defined (__stub___dlopen)
8179choke me
8180#else
John Criswell0c38eaf2003-09-10 15:17:25 +00008181char (*f) () = dlopen;
8182#endif
8183#ifdef __cplusplus
8184}
John Criswell7a73b802003-06-30 21:59:07 +00008185#endif
8186
John Criswell0c38eaf2003-09-10 15:17:25 +00008187int
8188main ()
8189{
8190return f != dlopen;
John Criswell7a73b802003-06-30 21:59:07 +00008191 ;
8192 return 0;
8193}
8194_ACEOF
8195rm -f conftest.$ac_objext conftest$ac_exeext
8196if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008197 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008198 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008204 { ac_try='test -z "$ac_c_werror_flag"
8205 || test ! -s conftest.err'
8206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8207 (eval $ac_try) 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); }; } &&
8211 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 (eval $ac_try) 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8217 ac_cv_func_dlopen=yes
8218else
8219 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008220sed 's/^/| /' conftest.$ac_ext >&5
8221
John Criswell7a73b802003-06-30 21:59:07 +00008222ac_cv_func_dlopen=no
8223fi
Reid Spencer17041682004-09-05 17:48:32 +00008224rm -f conftest.err conftest.$ac_objext \
8225 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008226fi
8227echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8228echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8229if test $ac_cv_func_dlopen = yes; then
8230 lt_cv_dlopen="dlopen"
8231else
8232 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8233echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8234if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236else
8237 ac_check_lib_save_LIBS=$LIBS
8238LIBS="-ldl $LIBS"
8239cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00008240/* confdefs.h. */
8241_ACEOF
8242cat confdefs.h >>conftest.$ac_ext
8243cat >>conftest.$ac_ext <<_ACEOF
8244/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +00008245
8246/* Override any gcc2 internal prototype to avoid an error. */
8247#ifdef __cplusplus
8248extern "C"
8249#endif
8250/* We use char because int might match the return type of a gcc2
8251 builtin and then its argument prototype would still apply. */
8252char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +00008253int
8254main ()
8255{
8256dlopen ();
8257 ;
8258 return 0;
8259}
8260_ACEOF
8261rm -f conftest.$ac_objext conftest$ac_exeext
8262if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00008263 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008264 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00008265 grep -v '^ *+' conftest.er1 >conftest.err
8266 rm -f conftest.er1
8267 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +00008268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00008270 { ac_try='test -z "$ac_c_werror_flag"
8271 || test ! -s conftest.err'
8272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273 (eval $ac_try) 2>&5
8274 ac_status=$?
8275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276 (exit $ac_status); }; } &&
8277 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +00008278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279 (eval $ac_try) 2>&5
8280 ac_status=$?
8281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); }; }; then
8283 ac_cv_lib_dl_dlopen=yes
8284else
8285 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00008286sed 's/^/| /' conftest.$ac_ext >&5
8287
John Criswell7a73b802003-06-30 21:59:07 +00008288ac_cv_lib_dl_dlopen=no
8289fi
Reid Spencer17041682004-09-05 17:48:32 +00008290rm -f conftest.err conftest.$ac_objext \
8291 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +00008292LIBS=$ac_check_lib_save_LIBS
8293fi
8294echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8295echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8296if test $ac_cv_lib_dl_dlopen = yes; then
8297 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8298else
8299 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8300echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8301if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8302 echo $ECHO_N "(cached) $ECHO_C" >&6
8303else
8304 ac_check_lib_save_LIBS=$LIBS
8305LIBS="-lsvld $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 Spencer17041682004-09-05 17:48:32 +00008330 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008331 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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_svld_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_svld_dlopen=no
8356fi
Reid Spencer17041682004-09-05 17:48:32 +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_svld_dlopen" >&5
8362echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8363if test $ac_cv_lib_svld_dlopen = yes; then
8364 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8365else
8366 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8367echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8368if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8369 echo $ECHO_N "(cached) $ECHO_C" >&6
8370else
8371 ac_check_lib_save_LIBS=$LIBS
8372LIBS="-ldld $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 dld_link ();
John Criswell7a73b802003-06-30 21:59:07 +00008387int
8388main ()
8389{
8390dld_link ();
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 Spencer17041682004-09-05 17:48:32 +00008397 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +00008398 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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_dld_dld_link=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_dld_dld_link=no
8423fi
Reid Spencer17041682004-09-05 17:48:32 +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_dld_dld_link" >&5
8429echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8430if test $ac_cv_lib_dld_dld_link = yes; then
8431 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8432fi
8433
8434
8435fi
8436
8437
8438fi
8439
8440
8441fi
8442
8443
8444fi
8445
8446
8447fi
8448
8449 ;;
8450 esac
8451
8452 if test "x$lt_cv_dlopen" != xno; then
8453 enable_dlopen=yes
8454 else
8455 enable_dlopen=no
8456 fi
8457
8458 case $lt_cv_dlopen in
8459 dlopen)
8460 save_CPPFLAGS="$CPPFLAGS"
John Criswell47fdd832003-07-14 16:52:07 +00008461 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
John Criswell7a73b802003-06-30 21:59:07 +00008462
8463 save_LDFLAGS="$LDFLAGS"
8464 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8465
8466 save_LIBS="$LIBS"
8467 LIBS="$lt_cv_dlopen_libs $LIBS"
8468
8469 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8470echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8471if test "${lt_cv_dlopen_self+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8473else
8474 if test "$cross_compiling" = yes; then :
8475 lt_cv_dlopen_self=cross
8476else
John Criswell47fdd832003-07-14 16:52:07 +00008477 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008478 lt_status=$lt_dlunknown
8479 cat > conftest.$ac_ext <<EOF
Reid Spencer17041682004-09-05 17:48:32 +00008480#line 8480 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008481#include "confdefs.h"
8482
8483#if HAVE_DLFCN_H
8484#include <dlfcn.h>
8485#endif
8486
8487#include <stdio.h>
8488
8489#ifdef RTLD_GLOBAL
8490# define LT_DLGLOBAL RTLD_GLOBAL
8491#else
8492# ifdef DL_GLOBAL
8493# define LT_DLGLOBAL DL_GLOBAL
8494# else
8495# define LT_DLGLOBAL 0
8496# endif
8497#endif
8498
8499/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8500 find out it does not work in some platform. */
8501#ifndef LT_DLLAZY_OR_NOW
8502# ifdef RTLD_LAZY
8503# define LT_DLLAZY_OR_NOW RTLD_LAZY
8504# else
8505# ifdef DL_LAZY
8506# define LT_DLLAZY_OR_NOW DL_LAZY
8507# else
8508# ifdef RTLD_NOW
8509# define LT_DLLAZY_OR_NOW RTLD_NOW
8510# else
8511# ifdef DL_NOW
8512# define LT_DLLAZY_OR_NOW DL_NOW
8513# else
8514# define LT_DLLAZY_OR_NOW 0
8515# endif
8516# endif
8517# endif
8518# endif
8519#endif
8520
8521#ifdef __cplusplus
8522extern "C" void exit (int);
8523#endif
8524
8525void fnord() { int i=42;}
8526int main ()
8527{
8528 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8529 int status = $lt_dlunknown;
8530
8531 if (self)
8532 {
8533 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8534 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8535 /* dlclose (self); */
8536 }
8537
8538 exit (status);
8539}
8540EOF
8541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8542 (eval $ac_link) 2>&5
8543 ac_status=$?
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8546 (./conftest; exit; ) 2>/dev/null
8547 lt_status=$?
8548 case x$lt_status in
8549 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8550 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8551 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8552 esac
8553 else :
8554 # compilation failed
8555 lt_cv_dlopen_self=no
8556 fi
8557fi
8558rm -fr conftest*
8559
8560
8561fi
8562echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8563echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8564
8565 if test "x$lt_cv_dlopen_self" = xyes; then
8566 LDFLAGS="$LDFLAGS $link_static_flag"
8567 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8568echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8569if test "${lt_cv_dlopen_self_static+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571else
8572 if test "$cross_compiling" = yes; then :
8573 lt_cv_dlopen_self_static=cross
8574else
John Criswell47fdd832003-07-14 16:52:07 +00008575 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
John Criswell7a73b802003-06-30 21:59:07 +00008576 lt_status=$lt_dlunknown
8577 cat > conftest.$ac_ext <<EOF
Reid Spencer17041682004-09-05 17:48:32 +00008578#line 8578 "configure"
John Criswell7a73b802003-06-30 21:59:07 +00008579#include "confdefs.h"
8580
8581#if HAVE_DLFCN_H
8582#include <dlfcn.h>
8583#endif
8584
8585#include <stdio.h>
8586
8587#ifdef RTLD_GLOBAL
8588# define LT_DLGLOBAL RTLD_GLOBAL
8589#else
8590# ifdef DL_GLOBAL
8591# define LT_DLGLOBAL DL_GLOBAL
8592# else
8593# define LT_DLGLOBAL 0
8594# endif
8595#endif
8596
8597/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8598 find out it does not work in some platform. */
8599#ifndef LT_DLLAZY_OR_NOW
8600# ifdef RTLD_LAZY
8601# define LT_DLLAZY_OR_NOW RTLD_LAZY
8602# else
8603# ifdef DL_LAZY
8604# define LT_DLLAZY_OR_NOW DL_LAZY
8605# else
8606# ifdef RTLD_NOW
8607# define LT_DLLAZY_OR_NOW RTLD_NOW
8608# else
8609# ifdef DL_NOW
8610# define LT_DLLAZY_OR_NOW DL_NOW
8611# else
8612# define LT_DLLAZY_OR_NOW 0
8613# endif
8614# endif
8615# endif
8616# endif
8617#endif
8618
8619#ifdef __cplusplus
8620extern "C" void exit (int);
8621#endif
8622
8623void fnord() { int i=42;}
8624int main ()
8625{
8626 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8627 int status = $lt_dlunknown;
8628
8629 if (self)
8630 {
8631 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8632 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8633 /* dlclose (self); */
8634 }
8635
8636 exit (status);
8637}
8638EOF
8639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8640 (eval $ac_link) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8644 (./conftest; exit; ) 2>/dev/null
8645 lt_status=$?
8646 case x$lt_status in
8647 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8648 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8649 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8650 esac
8651 else :
8652 # compilation failed
8653 lt_cv_dlopen_self_static=no
8654 fi
8655fi
8656rm -fr conftest*
8657
8658
8659fi
8660echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8661echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8662 fi
8663
8664 CPPFLAGS="$save_CPPFLAGS"
8665 LDFLAGS="$save_LDFLAGS"
8666 LIBS="$save_LIBS"
8667 ;;
8668 esac
8669
8670 case $lt_cv_dlopen_self in
8671 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8672 *) enable_dlopen_self=unknown ;;
8673 esac
8674
8675 case $lt_cv_dlopen_self_static in
8676 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8677 *) enable_dlopen_self_static=unknown ;;
8678 esac
8679fi
8680
8681
John Criswell47fdd832003-07-14 16:52:07 +00008682# Report which librarie types wil actually be built
8683echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8684echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8685echo "$as_me:$LINENO: result: $can_build_shared" >&5
8686echo "${ECHO_T}$can_build_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008687
John Criswell47fdd832003-07-14 16:52:07 +00008688echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8689echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8690test "$can_build_shared" = "no" && enable_shared=no
8691
8692# On AIX, shared libraries and static libraries use the same namespace, and
8693# are all built from PIC.
8694case "$host_os" in
8695aix3*)
8696 test "$enable_shared" = yes && enable_static=no
8697 if test -n "$RANLIB"; then
8698 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8699 postinstall_cmds='$RANLIB $lib'
8700 fi
8701 ;;
8702
8703aix4*)
8704 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8705 test "$enable_shared" = yes && enable_static=no
8706 fi
8707 ;;
8708 darwin* | rhapsody*)
8709 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8710 archive_cmds_need_lc=no
8711 case "$host_os" in
8712 rhapsody* | darwin1.[012])
8713 allow_undefined_flag='-undefined suppress'
8714 ;;
8715 *) # Darwin 1.3 on
8716 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8717 ;;
8718 esac
8719 # FIXME: Relying on posixy $() will cause problems for
8720 # cross-compilation, but unfortunately the echo tests do not
8721 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
8722 # `"' quotes if we put them in here... so don't!
8723 output_verbose_link_cmd='echo'
8724 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8725 module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8726 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8727 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}'
8728 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}'
8729 hardcode_direct=no
8730 hardcode_automatic=yes
8731 hardcode_shlibpath_var=unsupported
8732 whole_archive_flag_spec='-all_load $convenience'
8733 link_all_deplibs=yes
John Criswell7a73b802003-06-30 21:59:07 +00008734 fi
John Criswell7a73b802003-06-30 21:59:07 +00008735 ;;
John Criswell47fdd832003-07-14 16:52:07 +00008736esac
8737echo "$as_me:$LINENO: result: $enable_shared" >&5
8738echo "${ECHO_T}$enable_shared" >&6
John Criswell7a73b802003-06-30 21:59:07 +00008739
John Criswell47fdd832003-07-14 16:52:07 +00008740echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8741echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8742# Make sure either enable_shared or enable_static is yes.
8743test "$enable_shared" = yes || enable_static=yes
8744echo "$as_me:$LINENO: result: $enable_static" >&5
8745echo "${ECHO_T}$enable_static" >&6
8746
8747# The else clause should only fire when bootstrapping the
John Criswell7a73b802003-06-30 21:59:07 +00008748# libtool distribution, otherwise you forgot to ship ltmain.sh
8749# with your package, and you will get complaints that there are
8750# no rules to generate ltmain.sh.
8751if test -f "$ltmain"; then
John Criswell47fdd832003-07-14 16:52:07 +00008752 # See if we are running on zsh, and set the options which allow our commands through
8753 # without removal of \ escapes.
8754 if test -n "${ZSH_VERSION+set}" ; then
8755 setopt NO_GLOB_SUBST
8756 fi
John Criswell7a73b802003-06-30 21:59:07 +00008757 # Now quote all the things that may contain metacharacters while being
8758 # careful not to overquote the AC_SUBSTed values. We take copies of the
8759 # variables and quote the copies for generation of the libtool script.
John Criswell47fdd832003-07-14 16:52:07 +00008760 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8761 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8762 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8763 deplibs_check_method reload_flag reload_cmds need_locks \
8764 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8765 lt_cv_sys_global_symbol_to_c_name_address \
John Criswell7a73b802003-06-30 21:59:07 +00008766 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
John Criswell47fdd832003-07-14 16:52:07 +00008767 old_postinstall_cmds old_postuninstall_cmds \
8768 compiler \
8769 CC \
8770 LD \
8771 lt_prog_compiler_wl \
8772 lt_prog_compiler_pic \
8773 lt_prog_compiler_static \
8774 lt_prog_compiler_no_builtin_flag \
8775 export_dynamic_flag_spec \
8776 thread_safe_flag_spec \
8777 whole_archive_flag_spec \
8778 enable_shared_with_static_runtimes \
8779 old_archive_cmds \
8780 old_archive_from_new_cmds \
8781 predep_objects \
8782 postdep_objects \
8783 predeps \
8784 postdeps \
8785 compiler_lib_search_path \
8786 archive_cmds \
8787 archive_expsym_cmds \
8788 postinstall_cmds \
8789 postuninstall_cmds \
8790 old_archive_from_expsyms_cmds \
8791 allow_undefined_flag \
8792 no_undefined_flag \
8793 export_symbols_cmds \
8794 hardcode_libdir_flag_spec \
8795 hardcode_libdir_flag_spec_ld \
8796 hardcode_libdir_separator \
8797 hardcode_automatic \
8798 module_cmds \
8799 module_expsym_cmds \
8800 lt_cv_prog_compiler_c_o \
8801 exclude_expsyms \
8802 include_expsyms; do
John Criswell7a73b802003-06-30 21:59:07 +00008803
8804 case $var in
John Criswell47fdd832003-07-14 16:52:07 +00008805 old_archive_cmds | \
8806 old_archive_from_new_cmds | \
8807 archive_cmds | \
8808 archive_expsym_cmds | \
8809 module_cmds | \
8810 module_expsym_cmds | \
8811 old_archive_from_expsyms_cmds | \
8812 export_symbols_cmds | \
8813 extract_expsyms_cmds | reload_cmds | finish_cmds | \
John Criswell7a73b802003-06-30 21:59:07 +00008814 postinstall_cmds | postuninstall_cmds | \
John Criswell47fdd832003-07-14 16:52:07 +00008815 old_postinstall_cmds | old_postuninstall_cmds | \
8816 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
John Criswell7a73b802003-06-30 21:59:07 +00008817 # Double-quote double-evaled strings.
8818 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8819 ;;
8820 *)
8821 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8822 ;;
8823 esac
8824 done
8825
John Criswell47fdd832003-07-14 16:52:07 +00008826 case $lt_echo in
8827 *'\$0 --fallback-echo"')
8828 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8829 ;;
8830 esac
8831
8832cfgfile="${ofile}T"
8833 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8834 $rm -f "$cfgfile"
8835 { echo "$as_me:$LINENO: creating $ofile" >&5
8836echo "$as_me: creating $ofile" >&6;}
8837
8838 cat <<__EOF__ >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00008839#! $SHELL
8840
John Criswell47fdd832003-07-14 16:52:07 +00008841# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
John Criswell7a73b802003-06-30 21:59:07 +00008842# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8843# NOTE: Changes made to this file will be lost: look at ltmain.sh.
8844#
John Criswell47fdd832003-07-14 16:52:07 +00008845# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8846# Free Software Foundation, Inc.
8847#
8848# This file is part of GNU Libtool:
John Criswell7a73b802003-06-30 21:59:07 +00008849# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8850#
8851# This program is free software; you can redistribute it and/or modify
8852# it under the terms of the GNU General Public License as published by
8853# the Free Software Foundation; either version 2 of the License, or
8854# (at your option) any later version.
8855#
8856# This program is distributed in the hope that it will be useful, but
8857# WITHOUT ANY WARRANTY; without even the implied warranty of
8858# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8859# General Public License for more details.
8860#
8861# You should have received a copy of the GNU General Public License
8862# along with this program; if not, write to the Free Software
8863# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8864#
8865# As a special exception to the GNU General Public License, if you
8866# distribute this file as part of a program that contains a
8867# configuration script generated by Autoconf, you may include it under
8868# the same distribution terms that you use for the rest of that program.
8869
John Criswell47fdd832003-07-14 16:52:07 +00008870# A sed program that does not truncate output.
8871SED=$lt_SED
8872
John Criswell7a73b802003-06-30 21:59:07 +00008873# Sed that helps us avoid accidentally triggering echo(1) options like -n.
John Criswell47fdd832003-07-14 16:52:07 +00008874Xsed="$SED -e s/^X//"
John Criswell7a73b802003-06-30 21:59:07 +00008875
8876# The HP-UX ksh and POSIX shell print the target directory to stdout
8877# if CDPATH is set.
8878if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8879
John Criswell47fdd832003-07-14 16:52:07 +00008880# The names of the tagged configurations supported by this script.
8881available_tags=
8882
John Criswell7a73b802003-06-30 21:59:07 +00008883# ### BEGIN LIBTOOL CONFIG
8884
8885# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8886
8887# Shell to use when invoking shell scripts.
8888SHELL=$lt_SHELL
8889
8890# Whether or not to build shared libraries.
8891build_libtool_libs=$enable_shared
8892
8893# Whether or not to build static libraries.
8894build_old_libs=$enable_static
8895
8896# Whether or not to add -lc for building shared libraries.
John Criswell47fdd832003-07-14 16:52:07 +00008897build_libtool_need_lc=$archive_cmds_need_lc
8898
8899# Whether or not to disallow shared libs when runtime libs are static
8900allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
John Criswell7a73b802003-06-30 21:59:07 +00008901
8902# Whether or not to optimize for fast installation.
8903fast_install=$enable_fast_install
8904
8905# The host system.
8906host_alias=$host_alias
8907host=$host
8908
8909# An echo program that does not interpret backslashes.
8910echo=$lt_echo
8911
8912# The archiver.
8913AR=$lt_AR
8914AR_FLAGS=$lt_AR_FLAGS
8915
John Criswell47fdd832003-07-14 16:52:07 +00008916# A C compiler.
8917LTCC=$lt_LTCC
8918
8919# A language-specific compiler.
8920CC=$lt_compiler
John Criswell7a73b802003-06-30 21:59:07 +00008921
8922# Is the compiler the GNU C compiler?
8923with_gcc=$GCC
8924
John Criswell47fdd832003-07-14 16:52:07 +00008925# An ERE matcher.
8926EGREP=$lt_EGREP
8927
John Criswell7a73b802003-06-30 21:59:07 +00008928# The linker used to build libraries.
8929LD=$lt_LD
8930
8931# Whether we need hard or soft links.
8932LN_S=$lt_LN_S
8933
8934# A BSD-compatible nm program.
8935NM=$lt_NM
8936
8937# A symbol stripping program
8938STRIP=$STRIP
8939
8940# Used to examine libraries when file_magic_cmd begins "file"
8941MAGIC_CMD=$MAGIC_CMD
8942
8943# Used on cygwin: DLL creation program.
8944DLLTOOL="$DLLTOOL"
8945
8946# Used on cygwin: object dumper.
8947OBJDUMP="$OBJDUMP"
8948
8949# Used on cygwin: assembler.
8950AS="$AS"
8951
8952# The name of the directory that contains temporary libtool files.
8953objdir=$objdir
8954
8955# How to create reloadable object files.
8956reload_flag=$lt_reload_flag
8957reload_cmds=$lt_reload_cmds
8958
8959# How to pass a linker flag through the compiler.
John Criswell47fdd832003-07-14 16:52:07 +00008960wl=$lt_lt_prog_compiler_wl
John Criswell7a73b802003-06-30 21:59:07 +00008961
8962# Object file suffix (normally "o").
8963objext="$ac_objext"
8964
8965# Old archive suffix (normally "a").
8966libext="$libext"
8967
John Criswell47fdd832003-07-14 16:52:07 +00008968# Shared library suffix (normally ".so").
8969shrext='$shrext'
8970
John Criswell7a73b802003-06-30 21:59:07 +00008971# Executable file suffix (normally "").
8972exeext="$exeext"
8973
8974# Additional compiler flags for building library objects.
John Criswell47fdd832003-07-14 16:52:07 +00008975pic_flag=$lt_lt_prog_compiler_pic
John Criswell7a73b802003-06-30 21:59:07 +00008976pic_mode=$pic_mode
8977
John Criswell47fdd832003-07-14 16:52:07 +00008978# What is the maximum length of a command?
8979max_cmd_len=$lt_cv_sys_max_cmd_len
John Criswell7a73b802003-06-30 21:59:07 +00008980
John Criswell47fdd832003-07-14 16:52:07 +00008981# Does compiler simultaneously support -c and -o options?
8982compiler_c_o=$lt_lt_cv_prog_compiler_c_o
John Criswell7a73b802003-06-30 21:59:07 +00008983
8984# Must we lock files when doing compilation ?
8985need_locks=$lt_need_locks
8986
8987# Do we need the lib prefix for modules?
8988need_lib_prefix=$need_lib_prefix
8989
8990# Do we need a version for libraries?
8991need_version=$need_version
8992
8993# Whether dlopen is supported.
8994dlopen_support=$enable_dlopen
8995
8996# Whether dlopen of programs is supported.
8997dlopen_self=$enable_dlopen_self
8998
8999# Whether dlopen of statically linked programs is supported.
9000dlopen_self_static=$enable_dlopen_self_static
9001
9002# Compiler flag to prevent dynamic linking.
John Criswell47fdd832003-07-14 16:52:07 +00009003link_static_flag=$lt_lt_prog_compiler_static
John Criswell7a73b802003-06-30 21:59:07 +00009004
9005# Compiler flag to turn off builtin functions.
John Criswell47fdd832003-07-14 16:52:07 +00009006no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
John Criswell7a73b802003-06-30 21:59:07 +00009007
9008# Compiler flag to allow reflexive dlopens.
9009export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9010
9011# Compiler flag to generate shared objects directly from archives.
9012whole_archive_flag_spec=$lt_whole_archive_flag_spec
9013
9014# Compiler flag to generate thread-safe objects.
9015thread_safe_flag_spec=$lt_thread_safe_flag_spec
9016
9017# Library versioning type.
9018version_type=$version_type
9019
9020# Format of library name prefix.
9021libname_spec=$lt_libname_spec
9022
9023# List of archive names. First name is the real one, the rest are links.
9024# The last name is the one that the linker finds with -lNAME.
9025library_names_spec=$lt_library_names_spec
9026
9027# The coded name of the library, if different from the real name.
9028soname_spec=$lt_soname_spec
9029
9030# Commands used to build and install an old-style archive.
9031RANLIB=$lt_RANLIB
9032old_archive_cmds=$lt_old_archive_cmds
9033old_postinstall_cmds=$lt_old_postinstall_cmds
9034old_postuninstall_cmds=$lt_old_postuninstall_cmds
9035
9036# Create an old-style archive from a shared archive.
9037old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9038
9039# Create a temporary old-style archive to link instead of a shared archive.
9040old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9041
9042# Commands used to build and install a shared archive.
9043archive_cmds=$lt_archive_cmds
9044archive_expsym_cmds=$lt_archive_expsym_cmds
9045postinstall_cmds=$lt_postinstall_cmds
9046postuninstall_cmds=$lt_postuninstall_cmds
9047
John Criswell47fdd832003-07-14 16:52:07 +00009048# Commands used to build a loadable module (assumed same as above if empty)
9049module_cmds=$lt_module_cmds
9050module_expsym_cmds=$lt_module_expsym_cmds
9051
John Criswell7a73b802003-06-30 21:59:07 +00009052# Commands to strip libraries.
9053old_striplib=$lt_old_striplib
9054striplib=$lt_striplib
9055
John Criswell47fdd832003-07-14 16:52:07 +00009056# Dependencies to place before the objects being linked to create a
9057# shared library.
9058predep_objects=$lt_predep_objects
9059
9060# Dependencies to place after the objects being linked to create a
9061# shared library.
9062postdep_objects=$lt_postdep_objects
9063
9064# Dependencies to place before the objects being linked to create a
9065# shared library.
9066predeps=$lt_predeps
9067
9068# Dependencies to place after the objects being linked to create a
9069# shared library.
9070postdeps=$lt_postdeps
9071
9072# The library search path used internally by the compiler when linking
9073# a shared library.
9074compiler_lib_search_path=$lt_compiler_lib_search_path
9075
John Criswell7a73b802003-06-30 21:59:07 +00009076# Method to check whether dependent libraries are shared objects.
9077deplibs_check_method=$lt_deplibs_check_method
9078
9079# Command to use when deplibs_check_method == file_magic.
9080file_magic_cmd=$lt_file_magic_cmd
9081
9082# Flag that allows shared libraries with undefined symbols to be built.
9083allow_undefined_flag=$lt_allow_undefined_flag
9084
9085# Flag that forces no undefined symbols.
9086no_undefined_flag=$lt_no_undefined_flag
9087
9088# Commands used to finish a libtool library installation in a directory.
9089finish_cmds=$lt_finish_cmds
9090
9091# Same as above, but a single script fragment to be evaled but not shown.
9092finish_eval=$lt_finish_eval
9093
9094# Take the output of nm and produce a listing of raw symbols and C names.
John Criswell47fdd832003-07-14 16:52:07 +00009095global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
John Criswell7a73b802003-06-30 21:59:07 +00009096
9097# Transform the output of nm in a proper C declaration
John Criswell47fdd832003-07-14 16:52:07 +00009098global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
John Criswell7a73b802003-06-30 21:59:07 +00009099
9100# Transform the output of nm in a C name address pair
John Criswell47fdd832003-07-14 16:52:07 +00009101global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
John Criswell7a73b802003-06-30 21:59:07 +00009102
9103# This is the shared library runtime path variable.
9104runpath_var=$runpath_var
9105
9106# This is the shared library path variable.
9107shlibpath_var=$shlibpath_var
9108
9109# Is shlibpath searched before the hard-coded library search path?
9110shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9111
9112# How to hardcode a shared library path into an executable.
9113hardcode_action=$hardcode_action
9114
9115# Whether we should hardcode library paths into libraries.
9116hardcode_into_libs=$hardcode_into_libs
9117
9118# Flag to hardcode \$libdir into a binary during linking.
9119# This must work even if \$libdir does not exist.
9120hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9121
John Criswell47fdd832003-07-14 16:52:07 +00009122# If ld is used when linking, flag to hardcode \$libdir into
9123# a binary during linking. This must work even if \$libdir does
9124# not exist.
9125hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9126
John Criswell7a73b802003-06-30 21:59:07 +00009127# Whether we need a single -rpath flag with a separated argument.
9128hardcode_libdir_separator=$lt_hardcode_libdir_separator
9129
John Criswell47fdd832003-07-14 16:52:07 +00009130# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
John Criswell7a73b802003-06-30 21:59:07 +00009131# resulting binary.
9132hardcode_direct=$hardcode_direct
9133
9134# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9135# resulting binary.
9136hardcode_minus_L=$hardcode_minus_L
9137
9138# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9139# the resulting binary.
9140hardcode_shlibpath_var=$hardcode_shlibpath_var
9141
John Criswell47fdd832003-07-14 16:52:07 +00009142# Set to yes if building a shared library automatically hardcodes DIR into the library
9143# and all subsequent libraries and executables linked against it.
9144hardcode_automatic=$hardcode_automatic
9145
John Criswell7a73b802003-06-30 21:59:07 +00009146# Variables whose values should be saved in libtool wrapper scripts and
9147# restored at relink time.
9148variables_saved_for_relink="$variables_saved_for_relink"
9149
9150# Whether libtool must link a program against all its dependency libraries.
9151link_all_deplibs=$link_all_deplibs
9152
9153# Compile-time system search path for libraries
9154sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9155
9156# Run-time system search path for libraries
9157sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9158
9159# Fix the shell variable \$srcfile for the compiler.
9160fix_srcfile_path="$fix_srcfile_path"
9161
9162# Set to yes if exported symbols are required.
9163always_export_symbols=$always_export_symbols
9164
9165# The commands to list exported symbols.
9166export_symbols_cmds=$lt_export_symbols_cmds
9167
9168# The commands to extract the exported symbol list from a shared archive.
9169extract_expsyms_cmds=$lt_extract_expsyms_cmds
9170
9171# Symbols that should not be listed in the preloaded symbols.
9172exclude_expsyms=$lt_exclude_expsyms
9173
9174# Symbols that must always be exported.
9175include_expsyms=$lt_include_expsyms
9176
9177# ### END LIBTOOL CONFIG
9178
9179__EOF__
9180
John Criswell47fdd832003-07-14 16:52:07 +00009181
John Criswell7a73b802003-06-30 21:59:07 +00009182 case $host_os in
9183 aix3*)
John Criswell47fdd832003-07-14 16:52:07 +00009184 cat <<\EOF >> "$cfgfile"
John Criswell7a73b802003-06-30 21:59:07 +00009185
9186# AIX sometimes has problems with the GCC collect2 program. For some
9187# reason, if we set the COLLECT_NAMES environment variable, the problems
9188# vanish in a puff of smoke.
9189if test "X${COLLECT_NAMES+set}" != Xset; then
9190 COLLECT_NAMES=
9191 export COLLECT_NAMES
9192fi
9193EOF
9194 ;;
9195 esac
9196
John Criswell7a73b802003-06-30 21:59:07 +00009197 # We use sed instead of cat because bash on DJGPP gets confused if
9198 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9199 # text mode, it properly converts lines to CR/LF. This bash problem
9200 # is reportedly fixed, but why not run on old versions too?
John Criswell47fdd832003-07-14 16:52:07 +00009201 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
John Criswell7a73b802003-06-30 21:59:07 +00009202
John Criswell47fdd832003-07-14 16:52:07 +00009203 mv -f "$cfgfile" "$ofile" || \
9204 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
John Criswell7a73b802003-06-30 21:59:07 +00009205 chmod +x "$ofile"
John Criswell47fdd832003-07-14 16:52:07 +00009206
9207else
9208 # If there is no Makefile yet, we rely on a make rule to execute
9209 # `config.status --recheck' to rerun these tests and create the
9210 # libtool script then.
9211 test -f Makefile && make "$ltmain"
John Criswell7a73b802003-06-30 21:59:07 +00009212fi
John Criswell7a73b802003-06-30 21:59:07 +00009213
9214
John Criswell47fdd832003-07-14 16:52:07 +00009215ac_ext=c
9216ac_cpp='$CPP $CPPFLAGS'
9217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9219ac_compiler_gnu=$ac_cv_c_compiler_gnu
9220
9221CC="$lt_save_CC"
9222
9223
9224# Check whether --with-tags or --without-tags was given.
9225if test "${with_tags+set}" = set; then
9226 withval="$with_tags"
9227 tagnames="$withval"
9228fi;
9229
9230if test -f "$ltmain" && test -n "$tagnames"; then
9231 if test ! -f "${ofile}"; then
9232 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9233echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9234 fi
9235
9236 if test -z "$LTCC"; then
9237 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9238 if test -z "$LTCC"; then
9239 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9240echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9241 else
9242 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9243echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9244 fi
9245 fi
9246
9247 # Extract list of available tagged configurations in $ofile.
9248 # Note that this assumes the entire list is on one line.
9249 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9250
9251 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9252 for tagname in $tagnames; do
9253 IFS="$lt_save_ifs"
9254 # Check whether tagname contains only valid characters
9255 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9256 "") ;;
9257 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9258echo "$as_me: error: invalid tag name: $tagname" >&2;}
9259 { (exit 1); exit 1; }; }
9260 ;;
9261 esac
9262
9263 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9264 then
9265 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9266echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9267 { (exit 1); exit 1; }; }
9268 fi
9269
9270 # Update the list of available tags.
9271 if test -n "$tagname"; then
9272 echo appending configuration tag \"$tagname\" to $ofile
9273
9274 case $tagname in
9275 CXX)
9276 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9277 ac_ext=cc
9278ac_cpp='$CXXCPP $CPPFLAGS'
9279ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9280ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9281ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9282
9283
9284
9285
9286archive_cmds_need_lc_CXX=no
9287allow_undefined_flag_CXX=
9288always_export_symbols_CXX=no
9289archive_expsym_cmds_CXX=
9290export_dynamic_flag_spec_CXX=
9291hardcode_direct_CXX=no
9292hardcode_libdir_flag_spec_CXX=
9293hardcode_libdir_flag_spec_ld_CXX=
9294hardcode_libdir_separator_CXX=
9295hardcode_minus_L_CXX=no
9296hardcode_automatic_CXX=no
9297module_cmds_CXX=
9298module_expsym_cmds_CXX=
9299link_all_deplibs_CXX=unknown
9300old_archive_cmds_CXX=$old_archive_cmds
9301no_undefined_flag_CXX=
9302whole_archive_flag_spec_CXX=
9303enable_shared_with_static_runtimes_CXX=no
9304
9305# Dependencies to place before and after the object being linked:
9306predep_objects_CXX=
9307postdep_objects_CXX=
9308predeps_CXX=
9309postdeps_CXX=
9310compiler_lib_search_path_CXX=
9311
9312# Source file extension for C++ test sources.
9313ac_ext=cc
9314
9315# Object file extension for compiled C++ test sources.
9316objext=o
9317objext_CXX=$objext
9318
9319# Code to be used in simple compile tests
9320lt_simple_compile_test_code="int some_variable = 0;\n"
9321
9322# Code to be used in simple link tests
9323lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9324
9325# ltmain only uses $CC for tagged configurations so make sure $CC is set.
9326
9327# If no C compiler was specified, use CC.
9328LTCC=${LTCC-"$CC"}
9329
9330# Allow CC to be a program name with arguments.
9331compiler=$CC
9332
9333
9334# Allow CC to be a program name with arguments.
9335lt_save_CC=$CC
9336lt_save_LD=$LD
9337lt_save_GCC=$GCC
9338GCC=$GXX
9339lt_save_with_gnu_ld=$with_gnu_ld
9340lt_save_path_LD=$lt_cv_path_LD
9341if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9342 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9343else
9344 unset lt_cv_prog_gnu_ld
9345fi
9346if test -n "${lt_cv_path_LDCXX+set}"; then
9347 lt_cv_path_LD=$lt_cv_path_LDCXX
9348else
9349 unset lt_cv_path_LD
9350fi
9351test -z "${LDCXX+set}" || LD=$LDCXX
9352CC=${CXX-"c++"}
9353compiler=$CC
9354compiler_CXX=$CC
9355cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9356
9357# We don't want -fno-exception wen compiling C++ code, so set the
9358# no_builtin_flag separately
9359if test "$GXX" = yes; then
9360 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9361else
9362 lt_prog_compiler_no_builtin_flag_CXX=
9363fi
9364
9365if test "$GXX" = yes; then
9366 # Set up default GNU C++ configuration
9367
9368
9369# Check whether --with-gnu-ld or --without-gnu-ld was given.
9370if test "${with_gnu_ld+set}" = set; then
9371 withval="$with_gnu_ld"
9372 test "$withval" = no || with_gnu_ld=yes
9373else
9374 with_gnu_ld=no
9375fi;
9376ac_prog=ld
9377if test "$GCC" = yes; then
9378 # Check if gcc -print-prog-name=ld gives a path.
9379 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9380echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9381 case $host in
9382 *-*-mingw*)
9383 # gcc leaves a trailing carriage return which upsets mingw
9384 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9385 *)
9386 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9387 esac
9388 case $ac_prog in
9389 # Accept absolute paths.
9390 [\\/]* | ?:[\\/]*)
9391 re_direlt='/[^/][^/]*/\.\./'
9392 # Canonicalize the path of ld
9393 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9394 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9395 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9396 done
9397 test -z "$LD" && LD="$ac_prog"
9398 ;;
9399 "")
9400 # If it fails, then pretend we aren't using GCC.
9401 ac_prog=ld
9402 ;;
9403 *)
9404 # If it is relative, then search for the first ld in PATH.
9405 with_gnu_ld=unknown
9406 ;;
9407 esac
9408elif test "$with_gnu_ld" = yes; then
9409 echo "$as_me:$LINENO: checking for GNU ld" >&5
9410echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9411else
9412 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9413echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9414fi
9415if test "${lt_cv_path_LD+set}" = set; then
9416 echo $ECHO_N "(cached) $ECHO_C" >&6
9417else
9418 if test -z "$LD"; then
9419 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9420 for ac_dir in $PATH; do
9421 IFS="$lt_save_ifs"
9422 test -z "$ac_dir" && ac_dir=.
9423 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9424 lt_cv_path_LD="$ac_dir/$ac_prog"
9425 # Check to see if the program is GNU ld. I'd rather use --version,
9426 # but apparently some GNU ld's only accept -v.
9427 # Break only if it was the GNU/non-GNU ld that we prefer.
9428 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9429 *GNU* | *'with BFD'*)
9430 test "$with_gnu_ld" != no && break
9431 ;;
9432 *)
9433 test "$with_gnu_ld" != yes && break
9434 ;;
9435 esac
9436 fi
9437 done
9438 IFS="$lt_save_ifs"
9439else
9440 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9441fi
9442fi
9443
9444LD="$lt_cv_path_LD"
9445if test -n "$LD"; then
9446 echo "$as_me:$LINENO: result: $LD" >&5
9447echo "${ECHO_T}$LD" >&6
9448else
9449 echo "$as_me:$LINENO: result: no" >&5
9450echo "${ECHO_T}no" >&6
9451fi
9452test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9453echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9454 { (exit 1); exit 1; }; }
9455echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9456echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9457if test "${lt_cv_prog_gnu_ld+set}" = set; then
9458 echo $ECHO_N "(cached) $ECHO_C" >&6
9459else
9460 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9461case `"$LD" -v 2>&1 </dev/null` in
9462*GNU* | *'with BFD'*)
9463 lt_cv_prog_gnu_ld=yes
9464 ;;
9465*)
9466 lt_cv_prog_gnu_ld=no
9467 ;;
9468esac
9469fi
9470echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9471echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9472with_gnu_ld=$lt_cv_prog_gnu_ld
9473
9474
9475
9476 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9477 # archiving commands below assume that GNU ld is being used.
9478 if test "$with_gnu_ld" = yes; then
9479 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9480 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'
9481
9482 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9483 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9484
9485 # If archive_cmds runs LD, not CC, wlarc should be empty
9486 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9487 # investigate it a little bit more. (MM)
9488 wlarc='${wl}'
9489
9490 # ancient GNU ld didn't support --whole-archive et. al.
9491 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9492 grep 'no-whole-archive' > /dev/null; then
9493 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9494 else
9495 whole_archive_flag_spec_CXX=
9496 fi
9497 else
9498 with_gnu_ld=no
9499 wlarc=
9500
9501 # A generic and very simple default shared library creation
9502 # command for GNU C++ for the case where it uses the native
9503 # linker, instead of GNU ld. If possible, this setting should
9504 # overridden to take advantage of the native linker features on
9505 # the platform it is being used on.
9506 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9507 fi
9508
9509 # Commands to make compiler produce verbose output that lists
9510 # what "hidden" libraries, object files and flags are used when
9511 # linking a shared library.
9512 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9513
9514else
9515 GXX=no
9516 with_gnu_ld=no
9517 wlarc=
9518fi
9519
9520# PORTME: fill in a description of your system's C++ link characteristics
9521echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9522echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9523ld_shlibs_CXX=yes
9524case $host_os in
9525 aix3*)
9526 # FIXME: insert proper C++ library support
9527 ld_shlibs_CXX=no
9528 ;;
9529 aix4* | aix5*)
9530 if test "$host_cpu" = ia64; then
9531 # On IA64, the linker does run time linking by default, so we don't
9532 # have to do anything special.
9533 aix_use_runtimelinking=no
9534 exp_sym_flag='-Bexport'
9535 no_entry_flag=""
9536 else
9537 aix_use_runtimelinking=no
9538
9539 # Test if we are trying to use run time linking or normal
9540 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9541 # need to do runtime linking.
9542 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9543 for ld_flag in $LDFLAGS; do
9544 case $ld_flag in
9545 *-brtl*)
9546 aix_use_runtimelinking=yes
9547 break
9548 ;;
9549 esac
9550 done
9551 esac
9552
9553 exp_sym_flag='-bexport'
9554 no_entry_flag='-bnoentry'
9555 fi
9556
9557 # When large executables or shared objects are built, AIX ld can
9558 # have problems creating the table of contents. If linking a library
9559 # or program results in "error TOC overflow" add -mminimal-toc to
9560 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9561 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9562
9563 archive_cmds_CXX=''
9564 hardcode_direct_CXX=yes
9565 hardcode_libdir_separator_CXX=':'
9566 link_all_deplibs_CXX=yes
9567
9568 if test "$GXX" = yes; then
9569 case $host_os in aix4.012|aix4.012.*)
9570 # We only want to do this on AIX 4.2 and lower, the check
9571 # below for broken collect2 doesn't work under 4.3+
9572 collect2name=`${CC} -print-prog-name=collect2`
9573 if test -f "$collect2name" && \
9574 strings "$collect2name" | grep resolve_lib_name >/dev/null
9575 then
9576 # We have reworked collect2
9577 hardcode_direct_CXX=yes
9578 else
9579 # We have old collect2
9580 hardcode_direct_CXX=unsupported
9581 # It fails to find uninstalled libraries when the uninstalled
9582 # path is not listed in the libpath. Setting hardcode_minus_L
9583 # to unsupported forces relinking
9584 hardcode_minus_L_CXX=yes
9585 hardcode_libdir_flag_spec_CXX='-L$libdir'
9586 hardcode_libdir_separator_CXX=
9587 fi
9588 esac
9589 shared_flag='-shared'
9590 else
9591 # not using gcc
9592 if test "$host_cpu" = ia64; then
9593 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9594 # chokes on -Wl,-G. The following line is correct:
9595 shared_flag='-G'
9596 else
9597 if test "$aix_use_runtimelinking" = yes; then
9598 shared_flag='${wl}-G'
9599 else
9600 shared_flag='${wl}-bM:SRE'
9601 fi
9602 fi
9603 fi
9604
9605 # It seems that -bexpall does not export symbols beginning with
9606 # underscore (_), so it is better to generate a list of symbols to export.
9607 always_export_symbols_CXX=yes
9608 if test "$aix_use_runtimelinking" = yes; then
9609 # Warning - without using the other runtime loading flags (-brtl),
9610 # -berok will link without error, but may produce a broken library.
9611 allow_undefined_flag_CXX='-berok'
9612 # Determine the default libpath from the value encoded in an empty executable.
9613 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009614/* confdefs.h. */
9615_ACEOF
9616cat confdefs.h >>conftest.$ac_ext
9617cat >>conftest.$ac_ext <<_ACEOF
9618/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009619
John Criswell47fdd832003-07-14 16:52:07 +00009620int
9621main ()
9622{
9623
9624 ;
9625 return 0;
9626}
9627_ACEOF
9628rm -f conftest.$ac_objext conftest$ac_exeext
9629if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00009630 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009631 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00009632 grep -v '^ *+' conftest.er1 >conftest.err
9633 rm -f conftest.er1
9634 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9636 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00009637 { ac_try='test -z "$ac_cxx_werror_flag"
9638 || test ! -s conftest.err'
9639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9640 (eval $ac_try) 2>&5
9641 ac_status=$?
9642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9643 (exit $ac_status); }; } &&
9644 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9646 (eval $ac_try) 2>&5
9647 ac_status=$?
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); }; }; then
9650
9651aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9652}'`
9653# Check for a 64-bit object if we didn't find anything.
9654if 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; }
9655}'`; fi
9656else
9657 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009658sed 's/^/| /' conftest.$ac_ext >&5
9659
John Criswell47fdd832003-07-14 16:52:07 +00009660fi
Reid Spencer17041682004-09-05 17:48:32 +00009661rm -f conftest.err conftest.$ac_objext \
9662 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009663if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9664
9665 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9666
9667 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"
9668 else
9669 if test "$host_cpu" = ia64; then
9670 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9671 allow_undefined_flag_CXX="-z nodefs"
9672 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"
9673 else
9674 # Determine the default libpath from the value encoded in an empty executable.
9675 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +00009676/* confdefs.h. */
9677_ACEOF
9678cat confdefs.h >>conftest.$ac_ext
9679cat >>conftest.$ac_ext <<_ACEOF
9680/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +00009681
John Criswell47fdd832003-07-14 16:52:07 +00009682int
9683main ()
9684{
9685
9686 ;
9687 return 0;
9688}
9689_ACEOF
9690rm -f conftest.$ac_objext conftest$ac_exeext
9691if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +00009692 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +00009693 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +00009694 grep -v '^ *+' conftest.er1 >conftest.err
9695 rm -f conftest.er1
9696 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +00009697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +00009699 { ac_try='test -z "$ac_cxx_werror_flag"
9700 || test ! -s conftest.err'
9701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9702 (eval $ac_try) 2>&5
9703 ac_status=$?
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); }; } &&
9706 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +00009707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9708 (eval $ac_try) 2>&5
9709 ac_status=$?
9710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9711 (exit $ac_status); }; }; then
9712
9713aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9714}'`
9715# Check for a 64-bit object if we didn't find anything.
9716if 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; }
9717}'`; fi
9718else
9719 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +00009720sed 's/^/| /' conftest.$ac_ext >&5
9721
John Criswell47fdd832003-07-14 16:52:07 +00009722fi
Reid Spencer17041682004-09-05 17:48:32 +00009723rm -f conftest.err conftest.$ac_objext \
9724 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +00009725if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9726
9727 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9728 # Warning - without using the other run time loading flags,
9729 # -berok will link without error, but may produce a broken library.
9730 no_undefined_flag_CXX=' ${wl}-bernotok'
9731 allow_undefined_flag_CXX=' ${wl}-berok'
9732 # -bexpall does not export symbols beginning with underscore (_)
9733 always_export_symbols_CXX=yes
9734 # Exported symbols can be pulled into shared objects from archives
9735 whole_archive_flag_spec_CXX=' '
9736 archive_cmds_need_lc_CXX=yes
9737 # This is similar to how AIX traditionally builds it's shared libraries.
9738 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'
9739 fi
9740 fi
9741 ;;
9742 chorus*)
9743 case $cc_basename in
9744 *)
9745 # FIXME: insert proper C++ library support
9746 ld_shlibs_CXX=no
9747 ;;
9748 esac
9749 ;;
9750
9751 cygwin* | mingw* | pw32*)
9752 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9753 # as there is no search path for DLLs.
9754 hardcode_libdir_flag_spec_CXX='-L$libdir'
9755 allow_undefined_flag_CXX=unsupported
9756 always_export_symbols_CXX=no
9757 enable_shared_with_static_runtimes_CXX=yes
9758
9759 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9760 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'
9761 # If the export-symbols file already is a .def file (1st line
9762 # is EXPORTS), use it as is; otherwise, prepend...
9763 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9764 cp $export_symbols $output_objdir/$soname.def;
9765 else
9766 echo EXPORTS > $output_objdir/$soname.def;
9767 cat $export_symbols >> $output_objdir/$soname.def;
9768 fi~
9769 $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'
9770 else
9771 ld_shlibs_CXX=no
9772 fi
9773 ;;
9774
9775 darwin* | rhapsody*)
9776 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9777 archive_cmds_need_lc_CXX=no
9778 case "$host_os" in
9779 rhapsody* | darwin1.[012])
9780 allow_undefined_flag_CXX='-undefined suppress'
9781 ;;
9782 *) # Darwin 1.3 on
9783 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9784 ;;
9785 esac
9786 lt_int_apple_cc_single_mod=no
9787 output_verbose_link_cmd='echo'
9788 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9789 lt_int_apple_cc_single_mod=yes
9790 fi
9791 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9792 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9793 else
9794 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'
9795 fi
9796 module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9797
9798 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9799 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9800 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}'
9801 else
9802 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}'
9803 fi
9804 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}'
9805 hardcode_direct_CXX=no
9806 hardcode_automatic_CXX=yes
9807 hardcode_shlibpath_var_CXX=unsupported
9808 whole_archive_flag_spec_CXX='-all_load $convenience'
9809 link_all_deplibs_CXX=yes
9810 fi
9811 ;;
9812
9813 dgux*)
9814 case $cc_basename in
9815 ec++)
9816 # FIXME: insert proper C++ library support
9817 ld_shlibs_CXX=no
9818 ;;
9819 ghcx)
9820 # Green Hills C++ Compiler
9821 # FIXME: insert proper C++ library support
9822 ld_shlibs_CXX=no
9823 ;;
9824 *)
9825 # FIXME: insert proper C++ library support
9826 ld_shlibs_CXX=no
9827 ;;
9828 esac
9829 ;;
9830 freebsd12*)
9831 # C++ shared libraries reported to be fairly broken before switch to ELF
9832 ld_shlibs_CXX=no
9833 ;;
9834 freebsd-elf*)
9835 archive_cmds_need_lc_CXX=no
9836 ;;
9837 freebsd*)
9838 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9839 # conventions
9840 ld_shlibs_CXX=yes
9841 ;;
9842 gnu*)
9843 ;;
9844 hpux9*)
9845 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9846 hardcode_libdir_separator_CXX=:
9847 export_dynamic_flag_spec_CXX='${wl}-E'
9848 hardcode_direct_CXX=yes
9849 hardcode_minus_L_CXX=yes # Not in the search PATH,
9850 # but as the default
9851 # location of the library.
9852
9853 case $cc_basename in
9854 CC)
9855 # FIXME: insert proper C++ library support
9856 ld_shlibs_CXX=no
9857 ;;
9858 aCC)
9859 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'
9860 # Commands to make compiler produce verbose output that lists
9861 # what "hidden" libraries, object files and flags are used when
9862 # linking a shared library.
9863 #
9864 # There doesn't appear to be a way to prevent this compiler from
9865 # explicitly linking system object files so we need to strip them
9866 # from the output so that they don't get included in the library
9867 # dependencies.
9868 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'
9869 ;;
9870 *)
9871 if test "$GXX" = yes; then
9872 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'
9873 else
9874 # FIXME: insert proper C++ library support
9875 ld_shlibs_CXX=no
9876 fi
9877 ;;
9878 esac
9879 ;;
9880 hpux10*|hpux11*)
9881 if test $with_gnu_ld = no; then
9882 case "$host_cpu" in
9883 hppa*64*)
9884 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9885 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9886 hardcode_libdir_separator_CXX=:
9887 ;;
9888 ia64*)
9889 hardcode_libdir_flag_spec_CXX='-L$libdir'
9890 ;;
9891 *)
9892 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9893 hardcode_libdir_separator_CXX=:
9894 export_dynamic_flag_spec_CXX='${wl}-E'
9895 ;;
9896 esac
9897 fi
9898 case "$host_cpu" in
9899 hppa*64*)
9900 hardcode_direct_CXX=no
9901 hardcode_shlibpath_var_CXX=no
9902 ;;
9903 ia64*)
9904 hardcode_direct_CXX=no
9905 hardcode_shlibpath_var_CXX=no
9906 hardcode_minus_L_CXX=yes # Not in the search PATH,
9907 # but as the default
9908 # location of the library.
9909 ;;
9910 *)
9911 hardcode_direct_CXX=yes
9912 hardcode_minus_L_CXX=yes # Not in the search PATH,
9913 # but as the default
9914 # location of the library.
9915 ;;
9916 esac
9917
9918 case $cc_basename in
9919 CC)
9920 # FIXME: insert proper C++ library support
9921 ld_shlibs_CXX=no
9922 ;;
9923 aCC)
9924 case "$host_cpu" in
9925 hppa*64*|ia64*)
9926 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9927 ;;
9928 *)
9929 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9930 ;;
9931 esac
9932 # Commands to make compiler produce verbose output that lists
9933 # what "hidden" libraries, object files and flags are used when
9934 # linking a shared library.
9935 #
9936 # There doesn't appear to be a way to prevent this compiler from
9937 # explicitly linking system object files so we need to strip them
9938 # from the output so that they don't get included in the library
9939 # dependencies.
9940 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'
9941 ;;
9942 *)
9943 if test "$GXX" = yes; then
9944 if test $with_gnu_ld = no; then
9945 case "$host_cpu" in
9946 ia64*|hppa*64*)
9947 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9948 ;;
9949 *)
9950 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'
9951 ;;
9952 esac
9953 fi
9954 else
9955 # FIXME: insert proper C++ library support
9956 ld_shlibs_CXX=no
9957 fi
9958 ;;
9959 esac
9960 ;;
9961 irix5* | irix6*)
9962 case $cc_basename in
9963 CC)
9964 # SGI C++
9965 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'
9966
9967 # Archives containing C++ object files must be created using
9968 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9969 # necessary to make sure instantiated templates are included
9970 # in the archive.
9971 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9972 ;;
9973 *)
9974 if test "$GXX" = yes; then
9975 if test "$with_gnu_ld" = no; then
9976 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'
9977 else
9978 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'
9979 fi
9980 fi
9981 link_all_deplibs_CXX=yes
9982 ;;
9983 esac
9984 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9985 hardcode_libdir_separator_CXX=:
9986 ;;
9987 linux*)
9988 case $cc_basename in
9989 KCC)
9990 # Kuck and Associates, Inc. (KAI) C++ Compiler
9991
9992 # KCC will only create a shared library if the output file
9993 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9994 # to its proper name (with version) after linking.
9995 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'
9996 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'
9997 # Commands to make compiler produce verbose output that lists
9998 # what "hidden" libraries, object files and flags are used when
9999 # linking a shared library.
10000 #
10001 # There doesn't appear to be a way to prevent this compiler from
10002 # explicitly linking system object files so we need to strip them
10003 # from the output so that they don't get included in the library
10004 # dependencies.
10005 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'
10006
10007 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10008 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10009
10010 # Archives containing C++ object files must be created using
10011 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10012 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10013 ;;
10014 icpc)
10015 # Intel C++
10016 with_gnu_ld=yes
10017 archive_cmds_need_lc_CXX=no
10018 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10019 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'
10020 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10021 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10022 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10023 ;;
10024 cxx)
10025 # Compaq C++
10026 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10027 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'
10028
10029 runpath_var=LD_RUN_PATH
10030 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10031 hardcode_libdir_separator_CXX=:
10032
10033 # Commands to make compiler produce verbose output that lists
10034 # what "hidden" libraries, object files and flags are used when
10035 # linking a shared library.
10036 #
10037 # There doesn't appear to be a way to prevent this compiler from
10038 # explicitly linking system object files so we need to strip them
10039 # from the output so that they don't get included in the library
10040 # dependencies.
10041 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'
10042 ;;
10043 esac
10044 ;;
10045 lynxos*)
10046 # FIXME: insert proper C++ library support
10047 ld_shlibs_CXX=no
10048 ;;
10049 m88k*)
10050 # FIXME: insert proper C++ library support
10051 ld_shlibs_CXX=no
10052 ;;
10053 mvs*)
10054 case $cc_basename in
10055 cxx)
10056 # FIXME: insert proper C++ library support
10057 ld_shlibs_CXX=no
10058 ;;
10059 *)
10060 # FIXME: insert proper C++ library support
10061 ld_shlibs_CXX=no
10062 ;;
10063 esac
10064 ;;
10065 netbsd*)
10066 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10067 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10068 wlarc=
10069 hardcode_libdir_flag_spec_CXX='-R$libdir'
10070 hardcode_direct_CXX=yes
10071 hardcode_shlibpath_var_CXX=no
10072 fi
10073 # Workaround some broken pre-1.5 toolchains
10074 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10075 ;;
10076 osf3*)
10077 case $cc_basename in
10078 KCC)
10079 # Kuck and Associates, Inc. (KAI) C++ Compiler
10080
10081 # KCC will only create a shared library if the output file
10082 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10083 # to its proper name (with version) after linking.
10084 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'
10085
10086 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10087 hardcode_libdir_separator_CXX=:
10088
10089 # Archives containing C++ object files must be created using
10090 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10091 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10092
10093 ;;
10094 RCC)
10095 # Rational C++ 2.4.1
10096 # FIXME: insert proper C++ library support
10097 ld_shlibs_CXX=no
10098 ;;
10099 cxx)
10100 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10101 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'
10102
10103 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10104 hardcode_libdir_separator_CXX=:
10105
10106 # Commands to make compiler produce verbose output that lists
10107 # what "hidden" libraries, object files and flags are used when
10108 # linking a shared library.
10109 #
10110 # There doesn't appear to be a way to prevent this compiler from
10111 # explicitly linking system object files so we need to strip them
10112 # from the output so that they don't get included in the library
10113 # dependencies.
10114 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'
10115 ;;
10116 *)
10117 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10118 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10119 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'
10120
10121 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10122 hardcode_libdir_separator_CXX=:
10123
10124 # Commands to make compiler produce verbose output that lists
10125 # what "hidden" libraries, object files and flags are used when
10126 # linking a shared library.
10127 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10128
10129 else
10130 # FIXME: insert proper C++ library support
10131 ld_shlibs_CXX=no
10132 fi
10133 ;;
10134 esac
10135 ;;
10136 osf4* | osf5*)
10137 case $cc_basename in
10138 KCC)
10139 # Kuck and Associates, Inc. (KAI) C++ Compiler
10140
10141 # KCC will only create a shared library if the output file
10142 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10143 # to its proper name (with version) after linking.
10144 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'
10145
10146 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10147 hardcode_libdir_separator_CXX=:
10148
10149 # Archives containing C++ object files must be created using
10150 # the KAI C++ compiler.
10151 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10152 ;;
10153 RCC)
10154 # Rational C++ 2.4.1
10155 # FIXME: insert proper C++ library support
10156 ld_shlibs_CXX=no
10157 ;;
10158 cxx)
10159 allow_undefined_flag_CXX=' -expect_unresolved \*'
10160 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'
10161 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10162 echo "-hidden">> $lib.exp~
10163 $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~
10164 $rm $lib.exp'
10165
10166 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10167 hardcode_libdir_separator_CXX=:
10168
10169 # Commands to make compiler produce verbose output that lists
10170 # what "hidden" libraries, object files and flags are used when
10171 # linking a shared library.
10172 #
10173 # There doesn't appear to be a way to prevent this compiler from
10174 # explicitly linking system object files so we need to strip them
10175 # from the output so that they don't get included in the library
10176 # dependencies.
10177 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'
10178 ;;
10179 *)
10180 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10181 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10182 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'
10183
10184 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10185 hardcode_libdir_separator_CXX=:
10186
10187 # Commands to make compiler produce verbose output that lists
10188 # what "hidden" libraries, object files and flags are used when
10189 # linking a shared library.
10190 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10191
10192 else
10193 # FIXME: insert proper C++ library support
10194 ld_shlibs_CXX=no
10195 fi
10196 ;;
10197 esac
10198 ;;
10199 psos*)
10200 # FIXME: insert proper C++ library support
10201 ld_shlibs_CXX=no
10202 ;;
10203 sco*)
10204 archive_cmds_need_lc_CXX=no
10205 case $cc_basename in
10206 CC)
10207 # FIXME: insert proper C++ library support
10208 ld_shlibs_CXX=no
10209 ;;
10210 *)
10211 # FIXME: insert proper C++ library support
10212 ld_shlibs_CXX=no
10213 ;;
10214 esac
10215 ;;
10216 sunos4*)
10217 case $cc_basename in
10218 CC)
10219 # Sun C++ 4.x
10220 # FIXME: insert proper C++ library support
10221 ld_shlibs_CXX=no
10222 ;;
10223 lcc)
10224 # Lucid
10225 # FIXME: insert proper C++ library support
10226 ld_shlibs_CXX=no
10227 ;;
10228 *)
10229 # FIXME: insert proper C++ library support
10230 ld_shlibs_CXX=no
10231 ;;
10232 esac
10233 ;;
10234 solaris*)
10235 case $cc_basename in
10236 CC)
10237 # Sun C++ 4.2, 5.x and Centerline C++
10238 no_undefined_flag_CXX=' -zdefs'
10239 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10240 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10241 $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'
10242
10243 hardcode_libdir_flag_spec_CXX='-R$libdir'
10244 hardcode_shlibpath_var_CXX=no
10245 case $host_os in
10246 solaris2.0-5 | solaris2.0-5.*) ;;
10247 *)
10248 # The C++ compiler is used as linker so we must use $wl
10249 # flag to pass the commands to the underlying system
10250 # linker.
10251 # Supported since Solaris 2.6 (maybe 2.5.1?)
10252 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10253 ;;
10254 esac
10255 link_all_deplibs_CXX=yes
10256
10257 # Commands to make compiler produce verbose output that lists
10258 # what "hidden" libraries, object files and flags are used when
10259 # linking a shared library.
10260 #
10261 # There doesn't appear to be a way to prevent this compiler from
10262 # explicitly linking system object files so we need to strip them
10263 # from the output so that they don't get included in the library
10264 # dependencies.
10265 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'
10266
10267 # Archives containing C++ object files must be created using
10268 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10269 # necessary to make sure instantiated templates are included
10270 # in the archive.
10271 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10272 ;;
10273 gcx)
10274 # Green Hills C++ Compiler
10275 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10276
10277 # The C++ compiler must be used to create the archive.
10278 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10279 ;;
10280 *)
10281 # GNU C++ compiler with Solaris linker
10282 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10283 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10284 if $CC --version | grep -v '^2\.7' > /dev/null; then
10285 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10286 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10287 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10288
10289 # Commands to make compiler produce verbose output that lists
10290 # what "hidden" libraries, object files and flags are used when
10291 # linking a shared library.
10292 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10293 else
10294 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10295 # platform.
10296 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10297 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10298 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10299
10300 # Commands to make compiler produce verbose output that lists
10301 # what "hidden" libraries, object files and flags are used when
10302 # linking a shared library.
10303 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10304 fi
10305
10306 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10307 fi
10308 ;;
10309 esac
10310 ;;
10311 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10312 archive_cmds_need_lc_CXX=no
10313 ;;
10314 tandem*)
10315 case $cc_basename in
10316 NCC)
10317 # NonStop-UX NCC 3.20
10318 # FIXME: insert proper C++ library support
10319 ld_shlibs_CXX=no
10320 ;;
10321 *)
10322 # FIXME: insert proper C++ library support
10323 ld_shlibs_CXX=no
10324 ;;
10325 esac
10326 ;;
10327 vxworks*)
10328 # FIXME: insert proper C++ library support
10329 ld_shlibs_CXX=no
10330 ;;
10331 *)
10332 # FIXME: insert proper C++ library support
10333 ld_shlibs_CXX=no
10334 ;;
10335esac
10336echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10337echo "${ECHO_T}$ld_shlibs_CXX" >&6
10338test "$ld_shlibs_CXX" = no && can_build_shared=no
10339
10340GCC_CXX="$GXX"
10341LD_CXX="$LD"
10342
Reid Spencer17041682004-09-05 17:48:32 +000010343## CAVEAT EMPTOR:
10344## There is no encapsulation within the following macros, do not change
10345## the running order or otherwise move them around unless you know exactly
10346## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000010347
10348cat > conftest.$ac_ext <<EOF
10349class Foo
10350{
10351public:
10352 Foo (void) { a = 0; }
10353private:
10354 int a;
10355};
10356EOF
10357
10358if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10359 (eval $ac_compile) 2>&5
10360 ac_status=$?
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); }; then
10363 # Parse the compiler output and extract the necessary
10364 # objects, libraries and library flags.
10365
10366 # Sentinel used to keep track of whether or not we are before
10367 # the conftest object file.
10368 pre_test_object_deps_done=no
10369
10370 # The `*' in the case matches for architectures that use `case' in
10371 # $output_verbose_cmd can trigger glob expansion during the loop
10372 # eval without this substitution.
10373 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10374
10375 for p in `eval $output_verbose_link_cmd`; do
10376 case $p in
10377
10378 -L* | -R* | -l*)
10379 # Some compilers place space between "-{L,R}" and the path.
10380 # Remove the space.
10381 if test $p = "-L" \
10382 || test $p = "-R"; then
10383 prev=$p
10384 continue
10385 else
10386 prev=
10387 fi
10388
10389 if test "$pre_test_object_deps_done" = no; then
10390 case $p in
10391 -L* | -R*)
10392 # Internal compiler library paths should come after those
10393 # provided the user. The postdeps already come after the
10394 # user supplied libs so there is no need to process them.
10395 if test -z "$compiler_lib_search_path_CXX"; then
10396 compiler_lib_search_path_CXX="${prev}${p}"
10397 else
10398 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10399 fi
10400 ;;
10401 # The "-l" case would never come before the object being
10402 # linked, so don't bother handling this case.
10403 esac
10404 else
10405 if test -z "$postdeps_CXX"; then
10406 postdeps_CXX="${prev}${p}"
10407 else
10408 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10409 fi
10410 fi
10411 ;;
10412
10413 *.$objext)
10414 # This assumes that the test object file only shows up
10415 # once in the compiler output.
10416 if test "$p" = "conftest.$objext"; then
10417 pre_test_object_deps_done=yes
10418 continue
10419 fi
10420
10421 if test "$pre_test_object_deps_done" = no; then
10422 if test -z "$predep_objects_CXX"; then
10423 predep_objects_CXX="$p"
10424 else
10425 predep_objects_CXX="$predep_objects_CXX $p"
10426 fi
10427 else
10428 if test -z "$postdep_objects_CXX"; then
10429 postdep_objects_CXX="$p"
10430 else
10431 postdep_objects_CXX="$postdep_objects_CXX $p"
10432 fi
10433 fi
10434 ;;
10435
10436 *) ;; # Ignore the rest.
10437
10438 esac
10439 done
10440
10441 # Clean up.
10442 rm -f a.out a.exe
10443else
10444 echo "libtool.m4: error: problem compiling CXX test program"
10445fi
10446
10447$rm -f confest.$objext
10448
10449case " $postdeps_CXX " in
10450*" -lc "*) archive_cmds_need_lc_CXX=no ;;
10451esac
10452
10453lt_prog_compiler_wl_CXX=
10454lt_prog_compiler_pic_CXX=
10455lt_prog_compiler_static_CXX=
10456
10457echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10458echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10459
10460 # C++ specific cases for pic, static, wl, etc.
10461 if test "$GXX" = yes; then
10462 lt_prog_compiler_wl_CXX='-Wl,'
10463 lt_prog_compiler_static_CXX='-static'
10464
10465 case $host_os in
10466 aix*)
10467 # All AIX code is PIC.
10468 if test "$host_cpu" = ia64; then
10469 # AIX 5 now supports IA64 processor
10470 lt_prog_compiler_static_CXX='-Bstatic'
10471 fi
10472 ;;
10473 amigaos*)
10474 # FIXME: we need at least 68020 code to build shared libraries, but
10475 # adding the `-m68020' flag to GCC prevents building anything better,
10476 # like `-m68040'.
10477 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10478 ;;
10479 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10480 # PIC is the default for these OSes.
10481 ;;
10482 mingw* | os2* | pw32*)
10483 # This hack is so that the source file can tell whether it is being
10484 # built for inclusion in a dll (and should export symbols for example).
10485 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10486 ;;
10487 darwin* | rhapsody*)
10488 # PIC is the default on this platform
10489 # Common symbols not allowed in MH_DYLIB files
10490 lt_prog_compiler_pic_CXX='-fno-common'
10491 ;;
10492 *djgpp*)
10493 # DJGPP does not support shared libraries at all
10494 lt_prog_compiler_pic_CXX=
10495 ;;
10496 sysv4*MP*)
10497 if test -d /usr/nec; then
10498 lt_prog_compiler_pic_CXX=-Kconform_pic
10499 fi
10500 ;;
10501 hpux*)
10502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10503 # not for PA HP-UX.
10504 case "$host_cpu" in
10505 hppa*64*|ia64*)
10506 ;;
10507 *)
10508 lt_prog_compiler_pic_CXX='-fPIC'
10509 ;;
10510 esac
10511 ;;
10512 *)
10513 lt_prog_compiler_pic_CXX='-fPIC'
10514 ;;
10515 esac
10516 else
10517 case $host_os in
10518 aix4* | aix5*)
10519 # All AIX code is PIC.
10520 if test "$host_cpu" = ia64; then
10521 # AIX 5 now supports IA64 processor
10522 lt_prog_compiler_static_CXX='-Bstatic'
10523 else
10524 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10525 fi
10526 ;;
10527 chorus*)
10528 case $cc_basename in
10529 cxch68)
10530 # Green Hills C++ Compiler
10531 # _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"
10532 ;;
10533 esac
10534 ;;
10535 dgux*)
10536 case $cc_basename in
10537 ec++)
10538 lt_prog_compiler_pic_CXX='-KPIC'
10539 ;;
10540 ghcx)
10541 # Green Hills C++ Compiler
10542 lt_prog_compiler_pic_CXX='-pic'
10543 ;;
10544 *)
10545 ;;
10546 esac
10547 ;;
10548 freebsd*)
10549 # FreeBSD uses GNU C++
10550 ;;
10551 hpux9* | hpux10* | hpux11*)
10552 case $cc_basename in
10553 CC)
10554 lt_prog_compiler_wl_CXX='-Wl,'
10555 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10556 if test "$host_cpu" != ia64; then
10557 lt_prog_compiler_pic_CXX='+Z'
10558 fi
10559 ;;
10560 aCC)
10561 lt_prog_compiler_wl_CXX='-Wl,'
10562 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10563 case "$host_cpu" in
10564 hppa*64*|ia64*)
10565 # +Z the default
10566 ;;
10567 *)
10568 lt_prog_compiler_pic_CXX='+Z'
10569 ;;
10570 esac
10571 ;;
10572 *)
10573 ;;
10574 esac
10575 ;;
10576 irix5* | irix6* | nonstopux*)
10577 case $cc_basename in
10578 CC)
10579 lt_prog_compiler_wl_CXX='-Wl,'
10580 lt_prog_compiler_static_CXX='-non_shared'
10581 # CC pic flag -KPIC is the default.
10582 ;;
10583 *)
10584 ;;
10585 esac
10586 ;;
10587 linux*)
10588 case $cc_basename in
10589 KCC)
10590 # KAI C++ Compiler
10591 lt_prog_compiler_wl_CXX='--backend -Wl,'
10592 lt_prog_compiler_pic_CXX='-fPIC'
10593 ;;
10594 icpc)
10595 # Intel C++
10596 lt_prog_compiler_wl_CXX='-Wl,'
10597 lt_prog_compiler_pic_CXX='-KPIC'
10598 lt_prog_compiler_static_CXX='-static'
10599 ;;
10600 cxx)
10601 # Compaq C++
10602 # Make sure the PIC flag is empty. It appears that all Alpha
10603 # Linux and Compaq Tru64 Unix objects are PIC.
10604 lt_prog_compiler_pic_CXX=
10605 lt_prog_compiler_static_CXX='-non_shared'
10606 ;;
10607 *)
10608 ;;
10609 esac
10610 ;;
10611 lynxos*)
10612 ;;
10613 m88k*)
10614 ;;
10615 mvs*)
10616 case $cc_basename in
10617 cxx)
10618 lt_prog_compiler_pic_CXX='-W c,exportall'
10619 ;;
10620 *)
10621 ;;
10622 esac
10623 ;;
10624 netbsd*)
10625 ;;
10626 osf3* | osf4* | osf5*)
10627 case $cc_basename in
10628 KCC)
10629 lt_prog_compiler_wl_CXX='--backend -Wl,'
10630 ;;
10631 RCC)
10632 # Rational C++ 2.4.1
10633 lt_prog_compiler_pic_CXX='-pic'
10634 ;;
10635 cxx)
10636 # Digital/Compaq C++
10637 lt_prog_compiler_wl_CXX='-Wl,'
10638 # Make sure the PIC flag is empty. It appears that all Alpha
10639 # Linux and Compaq Tru64 Unix objects are PIC.
10640 lt_prog_compiler_pic_CXX=
10641 lt_prog_compiler_static_CXX='-non_shared'
10642 ;;
10643 *)
10644 ;;
10645 esac
10646 ;;
10647 psos*)
10648 ;;
10649 sco*)
10650 case $cc_basename in
10651 CC)
10652 lt_prog_compiler_pic_CXX='-fPIC'
10653 ;;
10654 *)
10655 ;;
10656 esac
10657 ;;
10658 solaris*)
10659 case $cc_basename in
10660 CC)
10661 # Sun C++ 4.2, 5.x and Centerline C++
10662 lt_prog_compiler_pic_CXX='-KPIC'
10663 lt_prog_compiler_static_CXX='-Bstatic'
10664 lt_prog_compiler_wl_CXX='-Qoption ld '
10665 ;;
10666 gcx)
10667 # Green Hills C++ Compiler
10668 lt_prog_compiler_pic_CXX='-PIC'
10669 ;;
10670 *)
10671 ;;
10672 esac
10673 ;;
10674 sunos4*)
10675 case $cc_basename in
10676 CC)
10677 # Sun C++ 4.x
10678 lt_prog_compiler_pic_CXX='-pic'
10679 lt_prog_compiler_static_CXX='-Bstatic'
10680 ;;
10681 lcc)
10682 # Lucid
10683 lt_prog_compiler_pic_CXX='-pic'
10684 ;;
10685 *)
10686 ;;
10687 esac
10688 ;;
10689 tandem*)
10690 case $cc_basename in
10691 NCC)
10692 # NonStop-UX NCC 3.20
10693 lt_prog_compiler_pic_CXX='-KPIC'
10694 ;;
10695 *)
10696 ;;
10697 esac
10698 ;;
10699 unixware*)
10700 ;;
10701 vxworks*)
10702 ;;
10703 *)
10704 lt_prog_compiler_can_build_shared_CXX=no
10705 ;;
10706 esac
10707 fi
10708
10709echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10710echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10711
10712#
10713# Check to make sure the PIC flag actually works.
10714#
10715if test -n "$lt_prog_compiler_pic_CXX"; then
10716 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10717echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10718if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10719 echo $ECHO_N "(cached) $ECHO_C" >&6
10720else
10721 lt_prog_compiler_pic_works_CXX=no
10722 ac_outfile=conftest.$ac_objext
10723 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10724 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10725 # Insert the option either (1) after the last *FLAGS variable, or
10726 # (2) before a word containing "conftest.", or (3) at the end.
10727 # Note that $ac_compile itself does not contain backslashes and begins
10728 # with a dollar sign (not a hyphen), so the echo should work correctly.
10729 # The option is referenced via a variable to avoid confusing sed.
10730 lt_compile=`echo "$ac_compile" | $SED \
10731 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10733 -e 's:$: $lt_compiler_flag:'`
Reid Spencer17041682004-09-05 17:48:32 +000010734 (eval echo "\"\$as_me:10734: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010735 (eval "$lt_compile" 2>conftest.err)
10736 ac_status=$?
10737 cat conftest.err >&5
Reid Spencer17041682004-09-05 17:48:32 +000010738 echo "$as_me:10738: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010739 if (exit $ac_status) && test -s "$ac_outfile"; then
10740 # The compiler can only warn and ignore the option if not recognized
10741 # So say no if there are warnings
10742 if test ! -s conftest.err; then
10743 lt_prog_compiler_pic_works_CXX=yes
10744 fi
10745 fi
10746 $rm conftest*
10747
10748fi
10749echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10750echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10751
10752if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10753 case $lt_prog_compiler_pic_CXX in
10754 "" | " "*) ;;
10755 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10756 esac
10757else
10758 lt_prog_compiler_pic_CXX=
10759 lt_prog_compiler_can_build_shared_CXX=no
10760fi
10761
10762fi
10763case "$host_os" in
10764 # For platforms which do not support PIC, -DPIC is meaningless:
10765 *djgpp*)
10766 lt_prog_compiler_pic_CXX=
10767 ;;
10768 *)
10769 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10770 ;;
10771esac
10772
10773echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10774echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10775if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10776 echo $ECHO_N "(cached) $ECHO_C" >&6
10777else
10778 lt_cv_prog_compiler_c_o_CXX=no
10779 $rm -r conftest 2>/dev/null
10780 mkdir conftest
10781 cd conftest
10782 mkdir out
10783 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10784
10785 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10786 # that will create temporary files in the current directory regardless of
10787 # the output directory. Thus, making CWD read-only will cause this test
10788 # to fail, enabling locking or at least warning the user not to do parallel
10789 # builds.
10790 chmod -w .
10791
10792 lt_compiler_flag="-o out/conftest2.$ac_objext"
10793 # Insert the option either (1) after the last *FLAGS variable, or
10794 # (2) before a word containing "conftest.", or (3) at the end.
10795 # Note that $ac_compile itself does not contain backslashes and begins
10796 # with a dollar sign (not a hyphen), so the echo should work correctly.
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 Spencer17041682004-09-05 17:48:32 +000010801 (eval echo "\"\$as_me:10801: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000010802 (eval "$lt_compile" 2>out/conftest.err)
10803 ac_status=$?
10804 cat out/conftest.err >&5
Reid Spencer17041682004-09-05 17:48:32 +000010805 echo "$as_me:10805: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000010806 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10807 then
10808 # The compiler can only warn and ignore the option if not recognized
10809 # So say no if there are warnings
10810 if test ! -s out/conftest.err; then
10811 lt_cv_prog_compiler_c_o_CXX=yes
10812 fi
10813 fi
10814 chmod u+w .
10815 $rm conftest* out/*
10816 rmdir out
10817 cd ..
10818 rmdir conftest
10819 $rm conftest*
10820
10821fi
10822echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10823echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10824
10825
10826hard_links="nottested"
10827if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10828 # do not overwrite the value of need_locks provided by the user
10829 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10830echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10831 hard_links=yes
10832 $rm conftest*
10833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10834 touch conftest.a
10835 ln conftest.a conftest.b 2>&5 || hard_links=no
10836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10837 echo "$as_me:$LINENO: result: $hard_links" >&5
10838echo "${ECHO_T}$hard_links" >&6
10839 if test "$hard_links" = no; then
10840 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10841echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10842 need_locks=warn
10843 fi
10844else
10845 need_locks=no
10846fi
10847
10848echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10849echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10850
10851 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10852 case $host_os in
10853 aix4* | aix5*)
10854 # If we're using GNU nm, then we don't want the "-C" option.
10855 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10856 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10857 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'
10858 else
10859 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'
10860 fi
10861 ;;
10862 pw32*)
10863 export_symbols_cmds_CXX="$ltdll_cmds"
10864 ;;
10865 cygwin* | mingw*)
10866 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10867 ;;
10868 *)
10869 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10870 ;;
10871 esac
10872
10873echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10874echo "${ECHO_T}$ld_shlibs_CXX" >&6
10875test "$ld_shlibs_CXX" = no && can_build_shared=no
10876
10877variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10878if test "$GCC" = yes; then
10879 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10880fi
10881
10882#
10883# Do we need to explicitly link libc?
10884#
10885case "x$archive_cmds_need_lc_CXX" in
10886x|xyes)
10887 # Assume -lc should be added
10888 archive_cmds_need_lc_CXX=yes
10889
10890 if test "$enable_shared" = yes && test "$GCC" = yes; then
10891 case $archive_cmds_CXX in
10892 *'~'*)
10893 # FIXME: we may have to deal with multi-command sequences.
10894 ;;
10895 '$CC '*)
10896 # Test whether the compiler implicitly links with -lc since on some
10897 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10898 # to ld, don't add -lc before -lgcc.
10899 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10900echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10901 $rm conftest*
10902 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10903
10904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10905 (eval $ac_compile) 2>&5
10906 ac_status=$?
10907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10908 (exit $ac_status); } 2>conftest.err; then
10909 soname=conftest
10910 lib=conftest
10911 libobjs=conftest.$ac_objext
10912 deplibs=
10913 wl=$lt_prog_compiler_wl_CXX
10914 compiler_flags=-v
10915 linker_flags=-v
10916 verstring=
10917 output_objdir=.
10918 libname=conftest
10919 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10920 allow_undefined_flag_CXX=
10921 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10922 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10923 ac_status=$?
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); }
10926 then
10927 archive_cmds_need_lc_CXX=no
10928 else
10929 archive_cmds_need_lc_CXX=yes
10930 fi
10931 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10932 else
10933 cat conftest.err 1>&5
10934 fi
10935 $rm conftest*
10936 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10937echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10938 ;;
10939 esac
10940 fi
10941 ;;
10942esac
10943
10944echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10945echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10946hardcode_action_CXX=
10947if test -n "$hardcode_libdir_flag_spec_CXX" || \
10948 test -n "$runpath_var CXX" || \
10949 test "X$hardcode_automatic_CXX"="Xyes" ; then
10950
10951 # We can hardcode non-existant directories.
10952 if test "$hardcode_direct_CXX" != no &&
10953 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10954 # have to relink, otherwise we might link with an installed library
10955 # when we should be linking with a yet-to-be-installed one
10956 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
10957 test "$hardcode_minus_L_CXX" != no; then
10958 # Linking always hardcodes the temporary library directory.
10959 hardcode_action_CXX=relink
10960 else
10961 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10962 hardcode_action_CXX=immediate
10963 fi
10964else
10965 # We cannot hardcode anything, or else we can only hardcode existing
10966 # directories.
10967 hardcode_action_CXX=unsupported
10968fi
10969echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
10970echo "${ECHO_T}$hardcode_action_CXX" >&6
10971
10972if test "$hardcode_action_CXX" = relink; then
10973 # Fast installation is not supported
10974 enable_fast_install=no
10975elif test "$shlibpath_overrides_runpath" = yes ||
10976 test "$enable_shared" = no; then
10977 # Fast installation is not necessary
10978 enable_fast_install=needless
10979fi
10980
10981striplib=
10982old_striplib=
10983echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10984echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10985if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10986 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10987 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10988 echo "$as_me:$LINENO: result: yes" >&5
10989echo "${ECHO_T}yes" >&6
10990else
10991# FIXME - insert some real tests, host_os isn't really good enough
10992 case $host_os in
10993 darwin*)
10994 if test -n "$STRIP" ; then
10995 striplib="$STRIP -x"
10996 echo "$as_me:$LINENO: result: yes" >&5
10997echo "${ECHO_T}yes" >&6
10998 else
10999 echo "$as_me:$LINENO: result: no" >&5
11000echo "${ECHO_T}no" >&6
11001fi
11002 ;;
11003 *)
11004 echo "$as_me:$LINENO: result: no" >&5
11005echo "${ECHO_T}no" >&6
11006 ;;
11007 esac
11008fi
11009
11010echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11011echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11012library_names_spec=
11013libname_spec='lib$name'
11014soname_spec=
11015shrext=".so"
11016postinstall_cmds=
11017postuninstall_cmds=
11018finish_cmds=
11019finish_eval=
11020shlibpath_var=
11021shlibpath_overrides_runpath=unknown
11022version_type=none
11023dynamic_linker="$host_os ld.so"
11024sys_lib_dlsearch_path_spec="/lib /usr/lib"
11025if test "$GCC" = yes; then
11026 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11027 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11028 # if the path contains ";" then we assume it to be the separator
11029 # otherwise default to the standard path separator (i.e. ":") - it is
11030 # assumed that no part of a normal pathname contains ";" but that should
11031 # okay in the real world where ";" in dirpaths is itself problematic.
11032 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11033 else
11034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11035 fi
11036else
11037 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11038fi
11039need_lib_prefix=unknown
11040hardcode_into_libs=no
11041
11042# when you set need_version to no, make sure it does not cause -set_version
11043# flags to be left without arguments
11044need_version=unknown
11045
11046case $host_os in
11047aix3*)
11048 version_type=linux
11049 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11050 shlibpath_var=LIBPATH
11051
11052 # AIX 3 has no versioning support, so we append a major version to the name.
11053 soname_spec='${libname}${release}${shared_ext}$major'
11054 ;;
11055
11056aix4* | aix5*)
11057 version_type=linux
11058 need_lib_prefix=no
11059 need_version=no
11060 hardcode_into_libs=yes
11061 if test "$host_cpu" = ia64; then
11062 # AIX 5 supports IA64
11063 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 else
11066 # With GCC up to 2.95.x, collect2 would create an import file
11067 # for dependence libraries. The import file would start with
11068 # the line `#! .'. This would cause the generated library to
11069 # depend on `.', always an invalid library. This was fixed in
11070 # development snapshots of GCC prior to 3.0.
11071 case $host_os in
11072 aix4 | aix4.[01] | aix4.[01].*)
11073 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11074 echo ' yes '
11075 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11076 :
11077 else
11078 can_build_shared=no
11079 fi
11080 ;;
11081 esac
11082 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11083 # soname into executable. Probably we can add versioning support to
11084 # collect2, so additional links can be useful in future.
11085 if test "$aix_use_runtimelinking" = yes; then
11086 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11087 # instead of lib<name>.a to let people know that these are not
11088 # typical AIX shared libraries.
11089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090 else
11091 # We preserve .a as extension for shared libraries through AIX4.2
11092 # and later when we are not doing run time linking.
11093 library_names_spec='${libname}${release}.a $libname.a'
11094 soname_spec='${libname}${release}${shared_ext}$major'
11095 fi
11096 shlibpath_var=LIBPATH
11097 fi
11098 ;;
11099
11100amigaos*)
11101 library_names_spec='$libname.ixlibrary $libname.a'
11102 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11103 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'
11104 ;;
11105
11106beos*)
11107 library_names_spec='${libname}${shared_ext}'
11108 dynamic_linker="$host_os ld.so"
11109 shlibpath_var=LIBRARY_PATH
11110 ;;
11111
11112bsdi4*)
11113 version_type=linux
11114 need_version=no
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11120 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11121 # the default ld.so.conf also contains /usr/contrib/lib and
11122 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11123 # libtool to hard-code these into programs
11124 ;;
11125
11126cygwin* | mingw* | pw32*)
11127 version_type=windows
11128 shrext=".dll"
11129 need_version=no
11130 need_lib_prefix=no
11131
11132 case $GCC,$host_os in
11133 yes,cygwin* | yes,mingw* | yes,pw32*)
11134 library_names_spec='$libname.dll.a'
11135 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11136 postinstall_cmds='base_file=`basename \${file}`~
11137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11138 dldir=$destdir/`dirname \$dlpath`~
11139 test -d \$dldir || mkdir -p \$dldir~
11140 $install_prog $dir/$dlname \$dldir/$dlname'
11141 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11142 dlpath=$dir/\$dldll~
11143 $rm \$dlpath'
11144 shlibpath_overrides_runpath=yes
11145
11146 case $host_os in
11147 cygwin*)
11148 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11149 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11150 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11151 ;;
11152 mingw*)
11153 # MinGW DLLs use traditional 'lib' prefix
11154 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11155 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11156 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11157 # It is most probably a Windows format PATH printed by
11158 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11159 # path with ; separators, and with drive letters. We can handle the
11160 # drive letters (cygwin fileutils understands them), so leave them,
11161 # especially as we might pass files found there to a mingw objdump,
11162 # which wouldn't understand a cygwinified path. Ahh.
11163 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11164 else
11165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11166 fi
11167 ;;
11168 pw32*)
11169 # pw32 DLLs use 'pw' prefix rather than 'lib'
11170 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11171 ;;
11172 esac
11173 ;;
11174
11175 *)
11176 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11177 ;;
11178 esac
11179 dynamic_linker='Win32 ld.exe'
11180 # FIXME: first we should search . and the directory the executable is in
11181 shlibpath_var=PATH
11182 ;;
11183
11184darwin* | rhapsody*)
11185 dynamic_linker="$host_os dyld"
11186 version_type=darwin
11187 need_lib_prefix=no
11188 need_version=no
11189 # FIXME: Relying on posixy $() will cause problems for
11190 # cross-compilation, but unfortunately the echo tests do not
11191 # yet detect zsh echo's removal of \ escapes.
11192 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11193 soname_spec='${libname}${release}${major}$shared_ext'
11194 shlibpath_overrides_runpath=yes
11195 shlibpath_var=DYLD_LIBRARY_PATH
11196 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11197 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11198 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11199 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"`
11200 fi
11201 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11202 ;;
11203
11204dgux*)
11205 version_type=linux
11206 need_lib_prefix=no
11207 need_version=no
11208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11209 soname_spec='${libname}${release}${shared_ext}$major'
11210 shlibpath_var=LD_LIBRARY_PATH
11211 ;;
11212
11213freebsd1*)
11214 dynamic_linker=no
11215 ;;
11216
11217freebsd*)
11218 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11219 version_type=freebsd-$objformat
11220 case $version_type in
11221 freebsd-elf*)
11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11223 need_version=no
11224 need_lib_prefix=no
11225 ;;
11226 freebsd-*)
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11228 need_version=yes
11229 ;;
11230 esac
11231 shlibpath_var=LD_LIBRARY_PATH
11232 case $host_os in
11233 freebsd2*)
11234 shlibpath_overrides_runpath=yes
11235 ;;
11236 freebsd3.01* | freebsdelf3.01*)
11237 shlibpath_overrides_runpath=yes
11238 hardcode_into_libs=yes
11239 ;;
11240 *) # from 3.2 on
11241 shlibpath_overrides_runpath=no
11242 hardcode_into_libs=yes
11243 ;;
11244 esac
11245 ;;
11246
11247gnu*)
11248 version_type=linux
11249 need_lib_prefix=no
11250 need_version=no
11251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11252 soname_spec='${libname}${release}${shared_ext}$major'
11253 shlibpath_var=LD_LIBRARY_PATH
11254 hardcode_into_libs=yes
11255 ;;
11256
11257hpux9* | hpux10* | hpux11*)
11258 # Give a soname corresponding to the major version so that dld.sl refuses to
11259 # link against other versions.
11260 version_type=sunos
11261 need_lib_prefix=no
11262 need_version=no
11263 case "$host_cpu" in
11264 ia64*)
11265 shrext='.so'
11266 hardcode_into_libs=yes
11267 dynamic_linker="$host_os dld.so"
11268 shlibpath_var=LD_LIBRARY_PATH
11269 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11271 soname_spec='${libname}${release}${shared_ext}$major'
11272 if test "X$HPUX_IA64_MODE" = X32; then
11273 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11274 else
11275 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11276 fi
11277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11278 ;;
11279 hppa*64*)
11280 shrext='.sl'
11281 hardcode_into_libs=yes
11282 dynamic_linker="$host_os dld.sl"
11283 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11284 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11286 soname_spec='${libname}${release}${shared_ext}$major'
11287 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11288 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11289 ;;
11290 *)
11291 shrext='.sl'
11292 dynamic_linker="$host_os dld.sl"
11293 shlibpath_var=SHLIB_PATH
11294 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11296 soname_spec='${libname}${release}${shared_ext}$major'
11297 ;;
11298 esac
11299 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11300 postinstall_cmds='chmod 555 $lib'
11301 ;;
11302
11303irix5* | irix6* | nonstopux*)
11304 case $host_os in
11305 nonstopux*) version_type=nonstopux ;;
11306 *)
11307 if test "$lt_cv_prog_gnu_ld" = yes; then
11308 version_type=linux
11309 else
11310 version_type=irix
11311 fi ;;
11312 esac
11313 need_lib_prefix=no
11314 need_version=no
11315 soname_spec='${libname}${release}${shared_ext}$major'
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11317 case $host_os in
11318 irix5* | nonstopux*)
11319 libsuff= shlibsuff=
11320 ;;
11321 *)
11322 case $LD in # libtool.m4 will add one of these switches to LD
11323 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11324 libsuff= shlibsuff= libmagic=32-bit;;
11325 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11326 libsuff=32 shlibsuff=N32 libmagic=N32;;
11327 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11328 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11329 *) libsuff= shlibsuff= libmagic=never-match;;
11330 esac
11331 ;;
11332 esac
11333 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11334 shlibpath_overrides_runpath=no
11335 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11336 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11337 hardcode_into_libs=yes
11338 ;;
11339
11340# No shared lib support for Linux oldld, aout, or coff.
11341linux*oldld* | linux*aout* | linux*coff*)
11342 dynamic_linker=no
11343 ;;
11344
11345# This must be Linux ELF.
11346linux*)
11347 version_type=linux
11348 need_lib_prefix=no
11349 need_version=no
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11351 soname_spec='${libname}${release}${shared_ext}$major'
11352 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11353 shlibpath_var=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath=no
11355 # This implies no fast_install, which is unacceptable.
11356 # Some rework will be needed to allow for fast_install
11357 # before this can be enabled.
11358 hardcode_into_libs=yes
11359
11360 # We used to test for /lib/ld.so.1 and disable shared libraries on
11361 # powerpc, because MkLinux only supported shared libraries with the
11362 # GNU dynamic linker. Since this was broken with cross compilers,
11363 # most powerpc-linux boxes support dynamic linking these days and
11364 # people can always --disable-shared, the test was removed, and we
11365 # assume the GNU/Linux dynamic linker is in use.
11366 dynamic_linker='GNU/Linux ld.so'
11367 ;;
11368
11369netbsd*)
11370 version_type=sunos
11371 need_lib_prefix=no
11372 need_version=no
11373 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11375 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11376 dynamic_linker='NetBSD (a.out) ld.so'
11377 else
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 dynamic_linker='NetBSD ld.elf_so'
11381 fi
11382 shlibpath_var=LD_LIBRARY_PATH
11383 shlibpath_overrides_runpath=yes
11384 hardcode_into_libs=yes
11385 ;;
11386
11387newsos6)
11388 version_type=linux
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390 shlibpath_var=LD_LIBRARY_PATH
11391 shlibpath_overrides_runpath=yes
11392 ;;
11393
11394nto-qnx)
11395 version_type=linux
11396 need_lib_prefix=no
11397 need_version=no
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 shlibpath_var=LD_LIBRARY_PATH
11401 shlibpath_overrides_runpath=yes
11402 ;;
11403
11404openbsd*)
11405 version_type=sunos
11406 need_lib_prefix=no
11407 need_version=no
11408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11409 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11410 shlibpath_var=LD_LIBRARY_PATH
11411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11412 case $host_os in
11413 openbsd2.[89] | openbsd2.[89].*)
11414 shlibpath_overrides_runpath=no
11415 ;;
11416 *)
11417 shlibpath_overrides_runpath=yes
11418 ;;
11419 esac
11420 else
11421 shlibpath_overrides_runpath=yes
11422 fi
11423 ;;
11424
11425os2*)
11426 libname_spec='$name'
11427 shrext=".dll"
11428 need_lib_prefix=no
11429 library_names_spec='$libname${shared_ext} $libname.a'
11430 dynamic_linker='OS/2 ld.exe'
11431 shlibpath_var=LIBPATH
11432 ;;
11433
11434osf3* | osf4* | osf5*)
11435 version_type=osf
11436 need_lib_prefix=no
11437 need_version=no
11438 soname_spec='${libname}${release}${shared_ext}$major'
11439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11440 shlibpath_var=LD_LIBRARY_PATH
11441 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11442 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11443 ;;
11444
11445sco3.2v5*)
11446 version_type=osf
11447 soname_spec='${libname}${release}${shared_ext}$major'
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449 shlibpath_var=LD_LIBRARY_PATH
11450 ;;
11451
11452solaris*)
11453 version_type=linux
11454 need_lib_prefix=no
11455 need_version=no
11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457 soname_spec='${libname}${release}${shared_ext}$major'
11458 shlibpath_var=LD_LIBRARY_PATH
11459 shlibpath_overrides_runpath=yes
11460 hardcode_into_libs=yes
11461 # ldd complains unless libraries are executable
11462 postinstall_cmds='chmod +x $lib'
11463 ;;
11464
11465sunos4*)
11466 version_type=sunos
11467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11468 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11469 shlibpath_var=LD_LIBRARY_PATH
11470 shlibpath_overrides_runpath=yes
11471 if test "$with_gnu_ld" = yes; then
11472 need_lib_prefix=no
11473 fi
11474 need_version=yes
11475 ;;
11476
11477sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11478 version_type=linux
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11480 soname_spec='${libname}${release}${shared_ext}$major'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 case $host_vendor in
11483 sni)
11484 shlibpath_overrides_runpath=no
11485 need_lib_prefix=no
11486 export_dynamic_flag_spec='${wl}-Blargedynsym'
11487 runpath_var=LD_RUN_PATH
11488 ;;
11489 siemens)
11490 need_lib_prefix=no
11491 ;;
11492 motorola)
11493 need_lib_prefix=no
11494 need_version=no
11495 shlibpath_overrides_runpath=no
11496 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11497 ;;
11498 esac
11499 ;;
11500
11501sysv4*MP*)
11502 if test -d /usr/nec ;then
11503 version_type=linux
11504 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11505 soname_spec='$libname${shared_ext}.$major'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 fi
11508 ;;
11509
11510uts4*)
11511 version_type=linux
11512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11513 soname_spec='${libname}${release}${shared_ext}$major'
11514 shlibpath_var=LD_LIBRARY_PATH
11515 ;;
11516
11517*)
11518 dynamic_linker=no
11519 ;;
11520esac
11521echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11522echo "${ECHO_T}$dynamic_linker" >&6
11523test "$dynamic_linker" = no && can_build_shared=no
11524
11525if test "x$enable_dlopen" != xyes; then
11526 enable_dlopen=unknown
11527 enable_dlopen_self=unknown
11528 enable_dlopen_self_static=unknown
11529else
11530 lt_cv_dlopen=no
11531 lt_cv_dlopen_libs=
11532
11533 case $host_os in
11534 beos*)
11535 lt_cv_dlopen="load_add_on"
11536 lt_cv_dlopen_libs=
11537 lt_cv_dlopen_self=yes
11538 ;;
11539
11540 mingw* | pw32*)
11541 lt_cv_dlopen="LoadLibrary"
11542 lt_cv_dlopen_libs=
11543 ;;
11544
11545 cygwin*)
11546 lt_cv_dlopen="dlopen"
11547 lt_cv_dlopen_libs=
11548 ;;
11549
11550 darwin*)
11551 # if libdl is installed we need to link against it
11552 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11553echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11554if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11556else
11557 ac_check_lib_save_LIBS=$LIBS
11558LIBS="-ldl $LIBS"
11559cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011560/* confdefs.h. */
11561_ACEOF
11562cat confdefs.h >>conftest.$ac_ext
11563cat >>conftest.$ac_ext <<_ACEOF
11564/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011565
11566/* Override any gcc2 internal prototype to avoid an error. */
11567#ifdef __cplusplus
11568extern "C"
11569#endif
11570/* We use char because int might match the return type of a gcc2
11571 builtin and then its argument prototype would still apply. */
11572char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011573int
11574main ()
11575{
11576dlopen ();
11577 ;
11578 return 0;
11579}
11580_ACEOF
11581rm -f conftest.$ac_objext conftest$ac_exeext
11582if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011583 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011584 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011585 grep -v '^ *+' conftest.er1 >conftest.err
11586 rm -f conftest.er1
11587 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11589 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011590 { ac_try='test -z "$ac_cxx_werror_flag"
11591 || test ! -s conftest.err'
11592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11593 (eval $ac_try) 2>&5
11594 ac_status=$?
11595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11596 (exit $ac_status); }; } &&
11597 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11599 (eval $ac_try) 2>&5
11600 ac_status=$?
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); }; }; then
11603 ac_cv_lib_dl_dlopen=yes
11604else
11605 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011606sed 's/^/| /' conftest.$ac_ext >&5
11607
John Criswell47fdd832003-07-14 16:52:07 +000011608ac_cv_lib_dl_dlopen=no
11609fi
Reid Spencer17041682004-09-05 17:48:32 +000011610rm -f conftest.err conftest.$ac_objext \
11611 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011612LIBS=$ac_check_lib_save_LIBS
11613fi
11614echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11615echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11616if test $ac_cv_lib_dl_dlopen = yes; then
11617 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11618else
11619
11620 lt_cv_dlopen="dyld"
11621 lt_cv_dlopen_libs=
11622 lt_cv_dlopen_self=yes
11623
11624fi
11625
11626 ;;
11627
11628 *)
11629 echo "$as_me:$LINENO: checking for shl_load" >&5
11630echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11631if test "${ac_cv_func_shl_load+set}" = set; then
11632 echo $ECHO_N "(cached) $ECHO_C" >&6
11633else
11634 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011635/* confdefs.h. */
11636_ACEOF
11637cat confdefs.h >>conftest.$ac_ext
11638cat >>conftest.$ac_ext <<_ACEOF
11639/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000011640/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11641 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11642#define shl_load innocuous_shl_load
11643
John Criswell47fdd832003-07-14 16:52:07 +000011644/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011645 which can conflict with char shl_load (); below.
11646 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11647 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000011648
John Criswell0c38eaf2003-09-10 15:17:25 +000011649#ifdef __STDC__
11650# include <limits.h>
11651#else
11652# include <assert.h>
11653#endif
Reid Spencer17041682004-09-05 17:48:32 +000011654
11655#undef shl_load
11656
John Criswell47fdd832003-07-14 16:52:07 +000011657/* Override any gcc2 internal prototype to avoid an error. */
11658#ifdef __cplusplus
11659extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011660{
John Criswell47fdd832003-07-14 16:52:07 +000011661#endif
11662/* We use char because int might match the return type of a gcc2
11663 builtin and then its argument prototype would still apply. */
11664char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011665/* The GNU C library defines this for functions which it implements
11666 to always fail with ENOSYS. Some functions are actually named
11667 something starting with __ and the normal name is an alias. */
11668#if defined (__stub_shl_load) || defined (__stub___shl_load)
11669choke me
11670#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011671char (*f) () = shl_load;
11672#endif
11673#ifdef __cplusplus
11674}
John Criswell47fdd832003-07-14 16:52:07 +000011675#endif
11676
John Criswell0c38eaf2003-09-10 15:17:25 +000011677int
11678main ()
11679{
11680return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000011681 ;
11682 return 0;
11683}
11684_ACEOF
11685rm -f conftest.$ac_objext conftest$ac_exeext
11686if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011687 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011688 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011689 grep -v '^ *+' conftest.er1 >conftest.err
11690 rm -f conftest.er1
11691 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011694 { ac_try='test -z "$ac_cxx_werror_flag"
11695 || test ! -s conftest.err'
11696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11697 (eval $ac_try) 2>&5
11698 ac_status=$?
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); }; } &&
11701 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11704 ac_status=$?
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 ac_cv_func_shl_load=yes
11708else
11709 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011710sed 's/^/| /' conftest.$ac_ext >&5
11711
John Criswell47fdd832003-07-14 16:52:07 +000011712ac_cv_func_shl_load=no
11713fi
Reid Spencer17041682004-09-05 17:48:32 +000011714rm -f conftest.err conftest.$ac_objext \
11715 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011716fi
11717echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11718echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11719if test $ac_cv_func_shl_load = yes; then
11720 lt_cv_dlopen="shl_load"
11721else
11722 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11723echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11724if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11725 echo $ECHO_N "(cached) $ECHO_C" >&6
11726else
11727 ac_check_lib_save_LIBS=$LIBS
11728LIBS="-ldld $LIBS"
11729cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011730/* confdefs.h. */
11731_ACEOF
11732cat confdefs.h >>conftest.$ac_ext
11733cat >>conftest.$ac_ext <<_ACEOF
11734/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011735
11736/* Override any gcc2 internal prototype to avoid an error. */
11737#ifdef __cplusplus
11738extern "C"
11739#endif
11740/* We use char because int might match the return type of a gcc2
11741 builtin and then its argument prototype would still apply. */
11742char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000011743int
11744main ()
11745{
11746shl_load ();
11747 ;
11748 return 0;
11749}
11750_ACEOF
11751rm -f conftest.$ac_objext conftest$ac_exeext
11752if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011753 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011754 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011755 grep -v '^ *+' conftest.er1 >conftest.err
11756 rm -f conftest.er1
11757 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011760 { ac_try='test -z "$ac_cxx_werror_flag"
11761 || test ! -s conftest.err'
11762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11763 (eval $ac_try) 2>&5
11764 ac_status=$?
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); }; } &&
11767 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11769 (eval $ac_try) 2>&5
11770 ac_status=$?
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); }; }; then
11773 ac_cv_lib_dld_shl_load=yes
11774else
11775 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011776sed 's/^/| /' conftest.$ac_ext >&5
11777
John Criswell47fdd832003-07-14 16:52:07 +000011778ac_cv_lib_dld_shl_load=no
11779fi
Reid Spencer17041682004-09-05 17:48:32 +000011780rm -f conftest.err conftest.$ac_objext \
11781 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011782LIBS=$ac_check_lib_save_LIBS
11783fi
11784echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11785echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11786if test $ac_cv_lib_dld_shl_load = yes; then
11787 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11788else
11789 echo "$as_me:$LINENO: checking for dlopen" >&5
11790echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11791if test "${ac_cv_func_dlopen+set}" = set; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11793else
11794 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011795/* confdefs.h. */
11796_ACEOF
11797cat confdefs.h >>conftest.$ac_ext
11798cat >>conftest.$ac_ext <<_ACEOF
11799/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000011800/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11802#define dlopen innocuous_dlopen
11803
John Criswell47fdd832003-07-14 16:52:07 +000011804/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000011805 which can conflict with char dlopen (); below.
11806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11807 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000011808
John Criswell0c38eaf2003-09-10 15:17:25 +000011809#ifdef __STDC__
11810# include <limits.h>
11811#else
11812# include <assert.h>
11813#endif
Reid Spencer17041682004-09-05 17:48:32 +000011814
11815#undef dlopen
11816
John Criswell47fdd832003-07-14 16:52:07 +000011817/* Override any gcc2 internal prototype to avoid an error. */
11818#ifdef __cplusplus
11819extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000011820{
John Criswell47fdd832003-07-14 16:52:07 +000011821#endif
11822/* We use char because int might match the return type of a gcc2
11823 builtin and then its argument prototype would still apply. */
11824char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011825/* The GNU C library defines this for functions which it implements
11826 to always fail with ENOSYS. Some functions are actually named
11827 something starting with __ and the normal name is an alias. */
11828#if defined (__stub_dlopen) || defined (__stub___dlopen)
11829choke me
11830#else
John Criswell0c38eaf2003-09-10 15:17:25 +000011831char (*f) () = dlopen;
11832#endif
11833#ifdef __cplusplus
11834}
John Criswell47fdd832003-07-14 16:52:07 +000011835#endif
11836
John Criswell0c38eaf2003-09-10 15:17:25 +000011837int
11838main ()
11839{
11840return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000011841 ;
11842 return 0;
11843}
11844_ACEOF
11845rm -f conftest.$ac_objext conftest$ac_exeext
11846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011847 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011848 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011849 grep -v '^ *+' conftest.er1 >conftest.err
11850 rm -f conftest.er1
11851 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011854 { ac_try='test -z "$ac_cxx_werror_flag"
11855 || test ! -s conftest.err'
11856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11857 (eval $ac_try) 2>&5
11858 ac_status=$?
11859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860 (exit $ac_status); }; } &&
11861 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863 (eval $ac_try) 2>&5
11864 ac_status=$?
11865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866 (exit $ac_status); }; }; then
11867 ac_cv_func_dlopen=yes
11868else
11869 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011870sed 's/^/| /' conftest.$ac_ext >&5
11871
John Criswell47fdd832003-07-14 16:52:07 +000011872ac_cv_func_dlopen=no
11873fi
Reid Spencer17041682004-09-05 17:48:32 +000011874rm -f conftest.err conftest.$ac_objext \
11875 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011876fi
11877echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11878echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11879if test $ac_cv_func_dlopen = yes; then
11880 lt_cv_dlopen="dlopen"
11881else
11882 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11883echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11884if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11886else
11887 ac_check_lib_save_LIBS=$LIBS
11888LIBS="-ldl $LIBS"
11889cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000011890/* confdefs.h. */
11891_ACEOF
11892cat confdefs.h >>conftest.$ac_ext
11893cat >>conftest.$ac_ext <<_ACEOF
11894/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000011895
11896/* Override any gcc2 internal prototype to avoid an error. */
11897#ifdef __cplusplus
11898extern "C"
11899#endif
11900/* We use char because int might match the return type of a gcc2
11901 builtin and then its argument prototype would still apply. */
11902char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000011903int
11904main ()
11905{
11906dlopen ();
11907 ;
11908 return 0;
11909}
11910_ACEOF
11911rm -f conftest.$ac_objext conftest$ac_exeext
11912if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000011913 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011914 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000011915 grep -v '^ *+' conftest.er1 >conftest.err
11916 rm -f conftest.er1
11917 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000011918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000011920 { ac_try='test -z "$ac_cxx_werror_flag"
11921 || test ! -s conftest.err'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; } &&
11927 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000011928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 ac_cv_lib_dl_dlopen=yes
11934else
11935 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000011936sed 's/^/| /' conftest.$ac_ext >&5
11937
John Criswell47fdd832003-07-14 16:52:07 +000011938ac_cv_lib_dl_dlopen=no
11939fi
Reid Spencer17041682004-09-05 17:48:32 +000011940rm -f conftest.err conftest.$ac_objext \
11941 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000011942LIBS=$ac_check_lib_save_LIBS
11943fi
11944echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11945echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11946if test $ac_cv_lib_dl_dlopen = yes; then
11947 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11948else
11949 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11950echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11951if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11953else
11954 ac_check_lib_save_LIBS=$LIBS
11955LIBS="-lsvld $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 Spencer17041682004-09-05 17:48:32 +000011980 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000011981 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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_svld_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_svld_dlopen=no
12006fi
Reid Spencer17041682004-09-05 17:48:32 +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_svld_dlopen" >&5
12012echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12013if test $ac_cv_lib_svld_dlopen = yes; then
12014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12015else
12016 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12017echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12018if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020else
12021 ac_check_lib_save_LIBS=$LIBS
12022LIBS="-ldld $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 dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000012037int
12038main ()
12039{
12040dld_link ();
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 Spencer17041682004-09-05 17:48:32 +000012047 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000012048 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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_dld_dld_link=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_dld_dld_link=no
12073fi
Reid Spencer17041682004-09-05 17:48:32 +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_dld_dld_link" >&5
12079echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12080if test $ac_cv_lib_dld_dld_link = yes; then
12081 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12082fi
12083
12084
12085fi
12086
12087
12088fi
12089
12090
12091fi
12092
12093
12094fi
12095
12096
12097fi
12098
12099 ;;
12100 esac
12101
12102 if test "x$lt_cv_dlopen" != xno; then
12103 enable_dlopen=yes
12104 else
12105 enable_dlopen=no
12106 fi
12107
12108 case $lt_cv_dlopen in
12109 dlopen)
12110 save_CPPFLAGS="$CPPFLAGS"
12111 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12112
12113 save_LDFLAGS="$LDFLAGS"
12114 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12115
12116 save_LIBS="$LIBS"
12117 LIBS="$lt_cv_dlopen_libs $LIBS"
12118
12119 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12120echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12121if test "${lt_cv_dlopen_self+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12123else
12124 if test "$cross_compiling" = yes; then :
12125 lt_cv_dlopen_self=cross
12126else
12127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12128 lt_status=$lt_dlunknown
12129 cat > conftest.$ac_ext <<EOF
Reid Spencer17041682004-09-05 17:48:32 +000012130#line 12130 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012131#include "confdefs.h"
12132
12133#if HAVE_DLFCN_H
12134#include <dlfcn.h>
12135#endif
12136
12137#include <stdio.h>
12138
12139#ifdef RTLD_GLOBAL
12140# define LT_DLGLOBAL RTLD_GLOBAL
12141#else
12142# ifdef DL_GLOBAL
12143# define LT_DLGLOBAL DL_GLOBAL
12144# else
12145# define LT_DLGLOBAL 0
12146# endif
12147#endif
12148
12149/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12150 find out it does not work in some platform. */
12151#ifndef LT_DLLAZY_OR_NOW
12152# ifdef RTLD_LAZY
12153# define LT_DLLAZY_OR_NOW RTLD_LAZY
12154# else
12155# ifdef DL_LAZY
12156# define LT_DLLAZY_OR_NOW DL_LAZY
12157# else
12158# ifdef RTLD_NOW
12159# define LT_DLLAZY_OR_NOW RTLD_NOW
12160# else
12161# ifdef DL_NOW
12162# define LT_DLLAZY_OR_NOW DL_NOW
12163# else
12164# define LT_DLLAZY_OR_NOW 0
12165# endif
12166# endif
12167# endif
12168# endif
12169#endif
12170
12171#ifdef __cplusplus
12172extern "C" void exit (int);
12173#endif
12174
12175void fnord() { int i=42;}
12176int main ()
12177{
12178 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12179 int status = $lt_dlunknown;
12180
12181 if (self)
12182 {
12183 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12184 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12185 /* dlclose (self); */
12186 }
12187
12188 exit (status);
12189}
12190EOF
12191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12192 (eval $ac_link) 2>&5
12193 ac_status=$?
12194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12195 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12196 (./conftest; exit; ) 2>/dev/null
12197 lt_status=$?
12198 case x$lt_status in
12199 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12200 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12201 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12202 esac
12203 else :
12204 # compilation failed
12205 lt_cv_dlopen_self=no
12206 fi
12207fi
12208rm -fr conftest*
12209
12210
12211fi
12212echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12213echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12214
12215 if test "x$lt_cv_dlopen_self" = xyes; then
12216 LDFLAGS="$LDFLAGS $link_static_flag"
12217 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12218echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12219if test "${lt_cv_dlopen_self_static+set}" = set; then
12220 echo $ECHO_N "(cached) $ECHO_C" >&6
12221else
12222 if test "$cross_compiling" = yes; then :
12223 lt_cv_dlopen_self_static=cross
12224else
12225 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12226 lt_status=$lt_dlunknown
12227 cat > conftest.$ac_ext <<EOF
Reid Spencer17041682004-09-05 17:48:32 +000012228#line 12228 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000012229#include "confdefs.h"
12230
12231#if HAVE_DLFCN_H
12232#include <dlfcn.h>
12233#endif
12234
12235#include <stdio.h>
12236
12237#ifdef RTLD_GLOBAL
12238# define LT_DLGLOBAL RTLD_GLOBAL
12239#else
12240# ifdef DL_GLOBAL
12241# define LT_DLGLOBAL DL_GLOBAL
12242# else
12243# define LT_DLGLOBAL 0
12244# endif
12245#endif
12246
12247/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12248 find out it does not work in some platform. */
12249#ifndef LT_DLLAZY_OR_NOW
12250# ifdef RTLD_LAZY
12251# define LT_DLLAZY_OR_NOW RTLD_LAZY
12252# else
12253# ifdef DL_LAZY
12254# define LT_DLLAZY_OR_NOW DL_LAZY
12255# else
12256# ifdef RTLD_NOW
12257# define LT_DLLAZY_OR_NOW RTLD_NOW
12258# else
12259# ifdef DL_NOW
12260# define LT_DLLAZY_OR_NOW DL_NOW
12261# else
12262# define LT_DLLAZY_OR_NOW 0
12263# endif
12264# endif
12265# endif
12266# endif
12267#endif
12268
12269#ifdef __cplusplus
12270extern "C" void exit (int);
12271#endif
12272
12273void fnord() { int i=42;}
12274int main ()
12275{
12276 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12277 int status = $lt_dlunknown;
12278
12279 if (self)
12280 {
12281 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12282 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12283 /* dlclose (self); */
12284 }
12285
12286 exit (status);
12287}
12288EOF
12289 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12290 (eval $ac_link) 2>&5
12291 ac_status=$?
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12294 (./conftest; exit; ) 2>/dev/null
12295 lt_status=$?
12296 case x$lt_status in
12297 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12298 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12299 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12300 esac
12301 else :
12302 # compilation failed
12303 lt_cv_dlopen_self_static=no
12304 fi
12305fi
12306rm -fr conftest*
12307
12308
12309fi
12310echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12311echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12312 fi
12313
12314 CPPFLAGS="$save_CPPFLAGS"
12315 LDFLAGS="$save_LDFLAGS"
12316 LIBS="$save_LIBS"
12317 ;;
12318 esac
12319
12320 case $lt_cv_dlopen_self in
12321 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12322 *) enable_dlopen_self=unknown ;;
12323 esac
12324
12325 case $lt_cv_dlopen_self_static in
12326 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12327 *) enable_dlopen_self_static=unknown ;;
12328 esac
12329fi
12330
12331
12332# The else clause should only fire when bootstrapping the
12333# libtool distribution, otherwise you forgot to ship ltmain.sh
12334# with your package, and you will get complaints that there are
12335# no rules to generate ltmain.sh.
12336if test -f "$ltmain"; then
12337 # See if we are running on zsh, and set the options which allow our commands through
12338 # without removal of \ escapes.
12339 if test -n "${ZSH_VERSION+set}" ; then
12340 setopt NO_GLOB_SUBST
12341 fi
12342 # Now quote all the things that may contain metacharacters while being
12343 # careful not to overquote the AC_SUBSTed values. We take copies of the
12344 # variables and quote the copies for generation of the libtool script.
12345 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12346 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12347 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12348 deplibs_check_method reload_flag reload_cmds need_locks \
12349 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12350 lt_cv_sys_global_symbol_to_c_name_address \
12351 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12352 old_postinstall_cmds old_postuninstall_cmds \
12353 compiler_CXX \
12354 CC_CXX \
12355 LD_CXX \
12356 lt_prog_compiler_wl_CXX \
12357 lt_prog_compiler_pic_CXX \
12358 lt_prog_compiler_static_CXX \
12359 lt_prog_compiler_no_builtin_flag_CXX \
12360 export_dynamic_flag_spec_CXX \
12361 thread_safe_flag_spec_CXX \
12362 whole_archive_flag_spec_CXX \
12363 enable_shared_with_static_runtimes_CXX \
12364 old_archive_cmds_CXX \
12365 old_archive_from_new_cmds_CXX \
12366 predep_objects_CXX \
12367 postdep_objects_CXX \
12368 predeps_CXX \
12369 postdeps_CXX \
12370 compiler_lib_search_path_CXX \
12371 archive_cmds_CXX \
12372 archive_expsym_cmds_CXX \
12373 postinstall_cmds_CXX \
12374 postuninstall_cmds_CXX \
12375 old_archive_from_expsyms_cmds_CXX \
12376 allow_undefined_flag_CXX \
12377 no_undefined_flag_CXX \
12378 export_symbols_cmds_CXX \
12379 hardcode_libdir_flag_spec_CXX \
12380 hardcode_libdir_flag_spec_ld_CXX \
12381 hardcode_libdir_separator_CXX \
12382 hardcode_automatic_CXX \
12383 module_cmds_CXX \
12384 module_expsym_cmds_CXX \
12385 lt_cv_prog_compiler_c_o_CXX \
12386 exclude_expsyms_CXX \
12387 include_expsyms_CXX; do
12388
12389 case $var in
12390 old_archive_cmds_CXX | \
12391 old_archive_from_new_cmds_CXX | \
12392 archive_cmds_CXX | \
12393 archive_expsym_cmds_CXX | \
12394 module_cmds_CXX | \
12395 module_expsym_cmds_CXX | \
12396 old_archive_from_expsyms_cmds_CXX | \
12397 export_symbols_cmds_CXX | \
12398 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12399 postinstall_cmds | postuninstall_cmds | \
12400 old_postinstall_cmds | old_postuninstall_cmds | \
12401 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12402 # Double-quote double-evaled strings.
12403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12404 ;;
12405 *)
12406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12407 ;;
12408 esac
12409 done
12410
12411 case $lt_echo in
12412 *'\$0 --fallback-echo"')
12413 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12414 ;;
12415 esac
12416
12417cfgfile="$ofile"
12418
12419 cat <<__EOF__ >> "$cfgfile"
12420# ### BEGIN LIBTOOL TAG CONFIG: $tagname
12421
12422# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12423
12424# Shell to use when invoking shell scripts.
12425SHELL=$lt_SHELL
12426
12427# Whether or not to build shared libraries.
12428build_libtool_libs=$enable_shared
12429
12430# Whether or not to build static libraries.
12431build_old_libs=$enable_static
12432
12433# Whether or not to add -lc for building shared libraries.
12434build_libtool_need_lc=$archive_cmds_need_lc_CXX
12435
12436# Whether or not to disallow shared libs when runtime libs are static
12437allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12438
12439# Whether or not to optimize for fast installation.
12440fast_install=$enable_fast_install
12441
12442# The host system.
12443host_alias=$host_alias
12444host=$host
12445
12446# An echo program that does not interpret backslashes.
12447echo=$lt_echo
12448
12449# The archiver.
12450AR=$lt_AR
12451AR_FLAGS=$lt_AR_FLAGS
12452
12453# A C compiler.
12454LTCC=$lt_LTCC
12455
12456# A language-specific compiler.
12457CC=$lt_compiler_CXX
12458
12459# Is the compiler the GNU C compiler?
12460with_gcc=$GCC_CXX
12461
12462# An ERE matcher.
12463EGREP=$lt_EGREP
12464
12465# The linker used to build libraries.
12466LD=$lt_LD_CXX
12467
12468# Whether we need hard or soft links.
12469LN_S=$lt_LN_S
12470
12471# A BSD-compatible nm program.
12472NM=$lt_NM
12473
12474# A symbol stripping program
12475STRIP=$STRIP
12476
12477# Used to examine libraries when file_magic_cmd begins "file"
12478MAGIC_CMD=$MAGIC_CMD
12479
12480# Used on cygwin: DLL creation program.
12481DLLTOOL="$DLLTOOL"
12482
12483# Used on cygwin: object dumper.
12484OBJDUMP="$OBJDUMP"
12485
12486# Used on cygwin: assembler.
12487AS="$AS"
12488
12489# The name of the directory that contains temporary libtool files.
12490objdir=$objdir
12491
12492# How to create reloadable object files.
12493reload_flag=$lt_reload_flag
12494reload_cmds=$lt_reload_cmds
12495
12496# How to pass a linker flag through the compiler.
12497wl=$lt_lt_prog_compiler_wl_CXX
12498
12499# Object file suffix (normally "o").
12500objext="$ac_objext"
12501
12502# Old archive suffix (normally "a").
12503libext="$libext"
12504
12505# Shared library suffix (normally ".so").
12506shrext='$shrext'
12507
12508# Executable file suffix (normally "").
12509exeext="$exeext"
12510
12511# Additional compiler flags for building library objects.
12512pic_flag=$lt_lt_prog_compiler_pic_CXX
12513pic_mode=$pic_mode
12514
12515# What is the maximum length of a command?
12516max_cmd_len=$lt_cv_sys_max_cmd_len
12517
12518# Does compiler simultaneously support -c and -o options?
12519compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12520
12521# Must we lock files when doing compilation ?
12522need_locks=$lt_need_locks
12523
12524# Do we need the lib prefix for modules?
12525need_lib_prefix=$need_lib_prefix
12526
12527# Do we need a version for libraries?
12528need_version=$need_version
12529
12530# Whether dlopen is supported.
12531dlopen_support=$enable_dlopen
12532
12533# Whether dlopen of programs is supported.
12534dlopen_self=$enable_dlopen_self
12535
12536# Whether dlopen of statically linked programs is supported.
12537dlopen_self_static=$enable_dlopen_self_static
12538
12539# Compiler flag to prevent dynamic linking.
12540link_static_flag=$lt_lt_prog_compiler_static_CXX
12541
12542# Compiler flag to turn off builtin functions.
12543no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12544
12545# Compiler flag to allow reflexive dlopens.
12546export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12547
12548# Compiler flag to generate shared objects directly from archives.
12549whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12550
12551# Compiler flag to generate thread-safe objects.
12552thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12553
12554# Library versioning type.
12555version_type=$version_type
12556
12557# Format of library name prefix.
12558libname_spec=$lt_libname_spec
12559
12560# List of archive names. First name is the real one, the rest are links.
12561# The last name is the one that the linker finds with -lNAME.
12562library_names_spec=$lt_library_names_spec
12563
12564# The coded name of the library, if different from the real name.
12565soname_spec=$lt_soname_spec
12566
12567# Commands used to build and install an old-style archive.
12568RANLIB=$lt_RANLIB
12569old_archive_cmds=$lt_old_archive_cmds_CXX
12570old_postinstall_cmds=$lt_old_postinstall_cmds
12571old_postuninstall_cmds=$lt_old_postuninstall_cmds
12572
12573# Create an old-style archive from a shared archive.
12574old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12575
12576# Create a temporary old-style archive to link instead of a shared archive.
12577old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12578
12579# Commands used to build and install a shared archive.
12580archive_cmds=$lt_archive_cmds_CXX
12581archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12582postinstall_cmds=$lt_postinstall_cmds
12583postuninstall_cmds=$lt_postuninstall_cmds
12584
12585# Commands used to build a loadable module (assumed same as above if empty)
12586module_cmds=$lt_module_cmds_CXX
12587module_expsym_cmds=$lt_module_expsym_cmds_CXX
12588
12589# Commands to strip libraries.
12590old_striplib=$lt_old_striplib
12591striplib=$lt_striplib
12592
12593# Dependencies to place before the objects being linked to create a
12594# shared library.
12595predep_objects=$lt_predep_objects_CXX
12596
12597# Dependencies to place after the objects being linked to create a
12598# shared library.
12599postdep_objects=$lt_postdep_objects_CXX
12600
12601# Dependencies to place before the objects being linked to create a
12602# shared library.
12603predeps=$lt_predeps_CXX
12604
12605# Dependencies to place after the objects being linked to create a
12606# shared library.
12607postdeps=$lt_postdeps_CXX
12608
12609# The library search path used internally by the compiler when linking
12610# a shared library.
12611compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12612
12613# Method to check whether dependent libraries are shared objects.
12614deplibs_check_method=$lt_deplibs_check_method
12615
12616# Command to use when deplibs_check_method == file_magic.
12617file_magic_cmd=$lt_file_magic_cmd
12618
12619# Flag that allows shared libraries with undefined symbols to be built.
12620allow_undefined_flag=$lt_allow_undefined_flag_CXX
12621
12622# Flag that forces no undefined symbols.
12623no_undefined_flag=$lt_no_undefined_flag_CXX
12624
12625# Commands used to finish a libtool library installation in a directory.
12626finish_cmds=$lt_finish_cmds
12627
12628# Same as above, but a single script fragment to be evaled but not shown.
12629finish_eval=$lt_finish_eval
12630
12631# Take the output of nm and produce a listing of raw symbols and C names.
12632global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12633
12634# Transform the output of nm in a proper C declaration
12635global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12636
12637# Transform the output of nm in a C name address pair
12638global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12639
12640# This is the shared library runtime path variable.
12641runpath_var=$runpath_var
12642
12643# This is the shared library path variable.
12644shlibpath_var=$shlibpath_var
12645
12646# Is shlibpath searched before the hard-coded library search path?
12647shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12648
12649# How to hardcode a shared library path into an executable.
12650hardcode_action=$hardcode_action_CXX
12651
12652# Whether we should hardcode library paths into libraries.
12653hardcode_into_libs=$hardcode_into_libs
12654
12655# Flag to hardcode \$libdir into a binary during linking.
12656# This must work even if \$libdir does not exist.
12657hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12658
12659# If ld is used when linking, flag to hardcode \$libdir into
12660# a binary during linking. This must work even if \$libdir does
12661# not exist.
12662hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12663
12664# Whether we need a single -rpath flag with a separated argument.
12665hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12666
12667# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12668# resulting binary.
12669hardcode_direct=$hardcode_direct_CXX
12670
12671# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12672# resulting binary.
12673hardcode_minus_L=$hardcode_minus_L_CXX
12674
12675# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12676# the resulting binary.
12677hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12678
12679# Set to yes if building a shared library automatically hardcodes DIR into the library
12680# and all subsequent libraries and executables linked against it.
12681hardcode_automatic=$hardcode_automatic_CXX
12682
12683# Variables whose values should be saved in libtool wrapper scripts and
12684# restored at relink time.
12685variables_saved_for_relink="$variables_saved_for_relink"
12686
12687# Whether libtool must link a program against all its dependency libraries.
12688link_all_deplibs=$link_all_deplibs_CXX
12689
12690# Compile-time system search path for libraries
12691sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12692
12693# Run-time system search path for libraries
12694sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12695
12696# Fix the shell variable \$srcfile for the compiler.
12697fix_srcfile_path="$fix_srcfile_path_CXX"
12698
12699# Set to yes if exported symbols are required.
12700always_export_symbols=$always_export_symbols_CXX
12701
12702# The commands to list exported symbols.
12703export_symbols_cmds=$lt_export_symbols_cmds_CXX
12704
12705# The commands to extract the exported symbol list from a shared archive.
12706extract_expsyms_cmds=$lt_extract_expsyms_cmds
12707
12708# Symbols that should not be listed in the preloaded symbols.
12709exclude_expsyms=$lt_exclude_expsyms_CXX
12710
12711# Symbols that must always be exported.
12712include_expsyms=$lt_include_expsyms_CXX
12713
12714# ### END LIBTOOL TAG CONFIG: $tagname
12715
12716__EOF__
12717
12718
12719else
12720 # If there is no Makefile yet, we rely on a make rule to execute
12721 # `config.status --recheck' to rerun these tests and create the
12722 # libtool script then.
12723 test -f Makefile && make "$ltmain"
12724fi
12725
12726
12727ac_ext=c
12728ac_cpp='$CPP $CPPFLAGS'
12729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12731ac_compiler_gnu=$ac_cv_c_compiler_gnu
12732
12733CC=$lt_save_CC
12734LDCXX=$LD
12735LD=$lt_save_LD
12736GCC=$lt_save_GCC
12737with_gnu_ldcxx=$with_gnu_ld
12738with_gnu_ld=$lt_save_with_gnu_ld
12739lt_cv_path_LDCXX=$lt_cv_path_LD
12740lt_cv_path_LD=$lt_save_path_LD
12741lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12742lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12743
12744 else
12745 tagname=""
12746 fi
12747 ;;
12748
12749 F77)
12750 if test -n "$F77" && test "X$F77" != "Xno"; then
12751
12752ac_ext=f
12753ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12754ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12755ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12756
12757
12758archive_cmds_need_lc_F77=no
12759allow_undefined_flag_F77=
12760always_export_symbols_F77=no
12761archive_expsym_cmds_F77=
12762export_dynamic_flag_spec_F77=
12763hardcode_direct_F77=no
12764hardcode_libdir_flag_spec_F77=
12765hardcode_libdir_flag_spec_ld_F77=
12766hardcode_libdir_separator_F77=
12767hardcode_minus_L_F77=no
12768hardcode_automatic_F77=no
12769module_cmds_F77=
12770module_expsym_cmds_F77=
12771link_all_deplibs_F77=unknown
12772old_archive_cmds_F77=$old_archive_cmds
12773no_undefined_flag_F77=
12774whole_archive_flag_spec_F77=
12775enable_shared_with_static_runtimes_F77=no
12776
12777# Source file extension for f77 test sources.
12778ac_ext=f
12779
12780# Object file extension for compiled f77 test sources.
12781objext=o
12782objext_F77=$objext
12783
12784# Code to be used in simple compile tests
12785lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12786
12787# Code to be used in simple link tests
12788lt_simple_link_test_code=" program t\n end\n"
12789
12790# ltmain only uses $CC for tagged configurations so make sure $CC is set.
12791
12792# If no C compiler was specified, use CC.
12793LTCC=${LTCC-"$CC"}
12794
12795# Allow CC to be a program name with arguments.
12796compiler=$CC
12797
12798
12799# Allow CC to be a program name with arguments.
12800lt_save_CC="$CC"
12801CC=${F77-"f77"}
12802compiler=$CC
12803compiler_F77=$CC
12804cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12805
12806echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12807echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12808echo "$as_me:$LINENO: result: $can_build_shared" >&5
12809echo "${ECHO_T}$can_build_shared" >&6
12810
12811echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12812echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12813test "$can_build_shared" = "no" && enable_shared=no
12814
12815# On AIX, shared libraries and static libraries use the same namespace, and
12816# are all built from PIC.
12817case "$host_os" in
12818aix3*)
12819 test "$enable_shared" = yes && enable_static=no
12820 if test -n "$RANLIB"; then
12821 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12822 postinstall_cmds='$RANLIB $lib'
12823 fi
12824 ;;
12825aix4*)
12826 test "$enable_shared" = yes && enable_static=no
12827 ;;
12828esac
12829echo "$as_me:$LINENO: result: $enable_shared" >&5
12830echo "${ECHO_T}$enable_shared" >&6
12831
12832echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12833echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12834# Make sure either enable_shared or enable_static is yes.
12835test "$enable_shared" = yes || enable_static=yes
12836echo "$as_me:$LINENO: result: $enable_static" >&5
12837echo "${ECHO_T}$enable_static" >&6
12838
12839test "$ld_shlibs_F77" = no && can_build_shared=no
12840
12841GCC_F77="$G77"
12842LD_F77="$LD"
12843
12844lt_prog_compiler_wl_F77=
12845lt_prog_compiler_pic_F77=
12846lt_prog_compiler_static_F77=
12847
12848echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12849echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12850
12851 if test "$GCC" = yes; then
12852 lt_prog_compiler_wl_F77='-Wl,'
12853 lt_prog_compiler_static_F77='-static'
12854
12855 case $host_os in
12856 aix*)
12857 # All AIX code is PIC.
12858 if test "$host_cpu" = ia64; then
12859 # AIX 5 now supports IA64 processor
12860 lt_prog_compiler_static_F77='-Bstatic'
12861 fi
12862 ;;
12863
12864 amigaos*)
12865 # FIXME: we need at least 68020 code to build shared libraries, but
12866 # adding the `-m68020' flag to GCC prevents building anything better,
12867 # like `-m68040'.
12868 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12869 ;;
12870
12871 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12872 # PIC is the default for these OSes.
12873 ;;
12874
12875 mingw* | pw32* | os2*)
12876 # This hack is so that the source file can tell whether it is being
12877 # built for inclusion in a dll (and should export symbols for example).
12878 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12879 ;;
12880
12881 darwin* | rhapsody*)
12882 # PIC is the default on this platform
12883 # Common symbols not allowed in MH_DYLIB files
12884 lt_prog_compiler_pic_F77='-fno-common'
12885 ;;
12886
12887 msdosdjgpp*)
12888 # Just because we use GCC doesn't mean we suddenly get shared libraries
12889 # on systems that don't support them.
12890 lt_prog_compiler_can_build_shared_F77=no
12891 enable_shared=no
12892 ;;
12893
12894 sysv4*MP*)
12895 if test -d /usr/nec; then
12896 lt_prog_compiler_pic_F77=-Kconform_pic
12897 fi
12898 ;;
12899
12900 hpux*)
12901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12902 # not for PA HP-UX.
12903 case "$host_cpu" in
12904 hppa*64*|ia64*)
12905 # +Z the default
12906 ;;
12907 *)
12908 lt_prog_compiler_pic_F77='-fPIC'
12909 ;;
12910 esac
12911 ;;
12912
12913 *)
12914 lt_prog_compiler_pic_F77='-fPIC'
12915 ;;
12916 esac
12917 else
12918 # PORTME Check for flag to pass linker flags through the system compiler.
12919 case $host_os in
12920 aix*)
12921 lt_prog_compiler_wl_F77='-Wl,'
12922 if test "$host_cpu" = ia64; then
12923 # AIX 5 now supports IA64 processor
12924 lt_prog_compiler_static_F77='-Bstatic'
12925 else
12926 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12927 fi
12928 ;;
12929
12930 mingw* | pw32* | os2*)
12931 # This hack is so that the source file can tell whether it is being
12932 # built for inclusion in a dll (and should export symbols for example).
12933 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12934 ;;
12935
12936 hpux9* | hpux10* | hpux11*)
12937 lt_prog_compiler_wl_F77='-Wl,'
12938 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12939 # not for PA HP-UX.
12940 case "$host_cpu" in
12941 hppa*64*|ia64*)
12942 # +Z the default
12943 ;;
12944 *)
12945 lt_prog_compiler_pic_F77='+Z'
12946 ;;
12947 esac
12948 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12949 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12950 ;;
12951
12952 irix5* | irix6* | nonstopux*)
12953 lt_prog_compiler_wl_F77='-Wl,'
12954 # PIC (with -KPIC) is the default.
12955 lt_prog_compiler_static_F77='-non_shared'
12956 ;;
12957
12958 newsos6)
12959 lt_prog_compiler_pic_F77='-KPIC'
12960 lt_prog_compiler_static_F77='-Bstatic'
12961 ;;
12962
12963 linux*)
12964 case $CC in
12965 icc|ecc)
12966 lt_prog_compiler_wl_F77='-Wl,'
12967 lt_prog_compiler_pic_F77='-KPIC'
12968 lt_prog_compiler_static_F77='-static'
12969 ;;
12970 ccc)
12971 lt_prog_compiler_wl_F77='-Wl,'
12972 # All Alpha code is PIC.
12973 lt_prog_compiler_static_F77='-non_shared'
12974 ;;
12975 esac
12976 ;;
12977
12978 osf3* | osf4* | osf5*)
12979 lt_prog_compiler_wl_F77='-Wl,'
12980 # All OSF/1 code is PIC.
12981 lt_prog_compiler_static_F77='-non_shared'
12982 ;;
12983
12984 sco3.2v5*)
12985 lt_prog_compiler_pic_F77='-Kpic'
12986 lt_prog_compiler_static_F77='-dn'
12987 ;;
12988
12989 solaris*)
12990 lt_prog_compiler_wl_F77='-Wl,'
12991 lt_prog_compiler_pic_F77='-KPIC'
12992 lt_prog_compiler_static_F77='-Bstatic'
12993 ;;
12994
12995 sunos4*)
12996 lt_prog_compiler_wl_F77='-Qoption ld '
12997 lt_prog_compiler_pic_F77='-PIC'
12998 lt_prog_compiler_static_F77='-Bstatic'
12999 ;;
13000
13001 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13002 lt_prog_compiler_wl_F77='-Wl,'
13003 lt_prog_compiler_pic_F77='-KPIC'
13004 lt_prog_compiler_static_F77='-Bstatic'
13005 ;;
13006
13007 sysv4*MP*)
13008 if test -d /usr/nec ;then
13009 lt_prog_compiler_pic_F77='-Kconform_pic'
13010 lt_prog_compiler_static_F77='-Bstatic'
13011 fi
13012 ;;
13013
13014 uts4*)
13015 lt_prog_compiler_pic_F77='-pic'
13016 lt_prog_compiler_static_F77='-Bstatic'
13017 ;;
13018
13019 *)
13020 lt_prog_compiler_can_build_shared_F77=no
13021 ;;
13022 esac
13023 fi
13024
13025echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13026echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13027
13028#
13029# Check to make sure the PIC flag actually works.
13030#
13031if test -n "$lt_prog_compiler_pic_F77"; then
13032 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13033echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13034if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13035 echo $ECHO_N "(cached) $ECHO_C" >&6
13036else
13037 lt_prog_compiler_pic_works_F77=no
13038 ac_outfile=conftest.$ac_objext
13039 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13040 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13041 # Insert the option either (1) after the last *FLAGS variable, or
13042 # (2) before a word containing "conftest.", or (3) at the end.
13043 # Note that $ac_compile itself does not contain backslashes and begins
13044 # with a dollar sign (not a hyphen), so the echo should work correctly.
13045 # The option is referenced via a variable to avoid confusing sed.
13046 lt_compile=`echo "$ac_compile" | $SED \
13047 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13048 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13049 -e 's:$: $lt_compiler_flag:'`
Reid Spencer17041682004-09-05 17:48:32 +000013050 (eval echo "\"\$as_me:13050: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013051 (eval "$lt_compile" 2>conftest.err)
13052 ac_status=$?
13053 cat conftest.err >&5
Reid Spencer17041682004-09-05 17:48:32 +000013054 echo "$as_me:13054: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013055 if (exit $ac_status) && test -s "$ac_outfile"; then
13056 # The compiler can only warn and ignore the option if not recognized
13057 # So say no if there are warnings
13058 if test ! -s conftest.err; then
13059 lt_prog_compiler_pic_works_F77=yes
13060 fi
13061 fi
13062 $rm conftest*
13063
13064fi
13065echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13066echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13067
13068if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13069 case $lt_prog_compiler_pic_F77 in
13070 "" | " "*) ;;
13071 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13072 esac
13073else
13074 lt_prog_compiler_pic_F77=
13075 lt_prog_compiler_can_build_shared_F77=no
13076fi
13077
13078fi
13079case "$host_os" in
13080 # For platforms which do not support PIC, -DPIC is meaningless:
13081 *djgpp*)
13082 lt_prog_compiler_pic_F77=
13083 ;;
13084 *)
13085 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13086 ;;
13087esac
13088
13089echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13090echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13091if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13092 echo $ECHO_N "(cached) $ECHO_C" >&6
13093else
13094 lt_cv_prog_compiler_c_o_F77=no
13095 $rm -r conftest 2>/dev/null
13096 mkdir conftest
13097 cd conftest
13098 mkdir out
13099 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13100
13101 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13102 # that will create temporary files in the current directory regardless of
13103 # the output directory. Thus, making CWD read-only will cause this test
13104 # to fail, enabling locking or at least warning the user not to do parallel
13105 # builds.
13106 chmod -w .
13107
13108 lt_compiler_flag="-o out/conftest2.$ac_objext"
13109 # Insert the option either (1) after the last *FLAGS variable, or
13110 # (2) before a word containing "conftest.", or (3) at the end.
13111 # Note that $ac_compile itself does not contain backslashes and begins
13112 # with a dollar sign (not a hyphen), so the echo should work correctly.
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 Spencer17041682004-09-05 17:48:32 +000013117 (eval echo "\"\$as_me:13117: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000013118 (eval "$lt_compile" 2>out/conftest.err)
13119 ac_status=$?
13120 cat out/conftest.err >&5
Reid Spencer17041682004-09-05 17:48:32 +000013121 echo "$as_me:13121: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000013122 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13123 then
13124 # The compiler can only warn and ignore the option if not recognized
13125 # So say no if there are warnings
13126 if test ! -s out/conftest.err; then
13127 lt_cv_prog_compiler_c_o_F77=yes
13128 fi
13129 fi
13130 chmod u+w .
13131 $rm conftest* out/*
13132 rmdir out
13133 cd ..
13134 rmdir conftest
13135 $rm conftest*
13136
13137fi
13138echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13139echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13140
13141
13142hard_links="nottested"
13143if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13144 # do not overwrite the value of need_locks provided by the user
13145 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13146echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13147 hard_links=yes
13148 $rm conftest*
13149 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13150 touch conftest.a
13151 ln conftest.a conftest.b 2>&5 || hard_links=no
13152 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13153 echo "$as_me:$LINENO: result: $hard_links" >&5
13154echo "${ECHO_T}$hard_links" >&6
13155 if test "$hard_links" = no; then
13156 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13157echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13158 need_locks=warn
13159 fi
13160else
13161 need_locks=no
13162fi
13163
13164echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13165echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13166
13167 runpath_var=
13168 allow_undefined_flag_F77=
13169 enable_shared_with_static_runtimes_F77=no
13170 archive_cmds_F77=
13171 archive_expsym_cmds_F77=
13172 old_archive_From_new_cmds_F77=
13173 old_archive_from_expsyms_cmds_F77=
13174 export_dynamic_flag_spec_F77=
13175 whole_archive_flag_spec_F77=
13176 thread_safe_flag_spec_F77=
13177 hardcode_libdir_flag_spec_F77=
13178 hardcode_libdir_flag_spec_ld_F77=
13179 hardcode_libdir_separator_F77=
13180 hardcode_direct_F77=no
13181 hardcode_minus_L_F77=no
13182 hardcode_shlibpath_var_F77=unsupported
13183 link_all_deplibs_F77=unknown
13184 hardcode_automatic_F77=no
13185 module_cmds_F77=
13186 module_expsym_cmds_F77=
13187 always_export_symbols_F77=no
13188 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13189 # include_expsyms should be a list of space-separated symbols to be *always*
13190 # included in the symbol list
13191 include_expsyms_F77=
13192 # exclude_expsyms can be an extended regexp of symbols to exclude
13193 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13194 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13195 # as well as any symbol that contains `d'.
13196 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13197 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13198 # platforms (ab)use it in PIC code, but their linkers get confused if
13199 # the symbol is explicitly referenced. Since portable code cannot
13200 # rely on this symbol name, it's probably fine to never include it in
13201 # preloaded symbol tables.
13202 extract_expsyms_cmds=
13203
13204 case $host_os in
13205 cygwin* | mingw* | pw32*)
13206 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13207 # When not using gcc, we currently assume that we are using
13208 # Microsoft Visual C++.
13209 if test "$GCC" != yes; then
13210 with_gnu_ld=no
13211 fi
13212 ;;
13213 openbsd*)
13214 with_gnu_ld=no
13215 ;;
13216 esac
13217
13218 ld_shlibs_F77=yes
13219 if test "$with_gnu_ld" = yes; then
13220 # If archive_cmds runs LD, not CC, wlarc should be empty
13221 wlarc='${wl}'
13222
13223 # See if GNU ld supports shared libraries.
13224 case $host_os in
13225 aix3* | aix4* | aix5*)
13226 # On AIX/PPC, the GNU linker is very broken
13227 if test "$host_cpu" != ia64; then
13228 ld_shlibs_F77=no
13229 cat <<EOF 1>&2
13230
13231*** Warning: the GNU linker, at least up to release 2.9.1, is reported
13232*** to be unable to reliably create shared libraries on AIX.
13233*** Therefore, libtool is disabling shared libraries support. If you
13234*** really care for shared libraries, you may want to modify your PATH
13235*** so that a non-GNU linker is found, and then restart.
13236
13237EOF
13238 fi
13239 ;;
13240
13241 amigaos*)
13242 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)'
13243 hardcode_libdir_flag_spec_F77='-L$libdir'
13244 hardcode_minus_L_F77=yes
13245
13246 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13247 # that the semantics of dynamic libraries on AmigaOS, at least up
13248 # to version 4, is to share data among multiple programs linked
13249 # with the same dynamic library. Since this doesn't match the
13250 # behavior of shared libraries on other platforms, we can't use
13251 # them.
13252 ld_shlibs_F77=no
13253 ;;
13254
13255 beos*)
13256 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13257 allow_undefined_flag_F77=unsupported
13258 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13259 # support --undefined. This deserves some investigation. FIXME
13260 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13261 else
13262 ld_shlibs_F77=no
13263 fi
13264 ;;
13265
13266 cygwin* | mingw* | pw32*)
13267 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13268 # as there is no search path for DLLs.
13269 hardcode_libdir_flag_spec_F77='-L$libdir'
13270 allow_undefined_flag_F77=unsupported
13271 always_export_symbols_F77=no
13272 enable_shared_with_static_runtimes_F77=yes
13273 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13274
13275 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13276 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13277 # If the export-symbols file already is a .def file (1st line
13278 # is EXPORTS), use it as is; otherwise, prepend...
13279 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13280 cp $export_symbols $output_objdir/$soname.def;
13281 else
13282 echo EXPORTS > $output_objdir/$soname.def;
13283 cat $export_symbols >> $output_objdir/$soname.def;
13284 fi~
13285 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13286 else
13287 ld_shlibs=no
13288 fi
13289 ;;
13290
13291 netbsd*)
13292 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13293 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13294 wlarc=
13295 else
13296 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13297 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13298 fi
13299 ;;
13300
13301 solaris* | sysv5*)
13302 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13303 ld_shlibs_F77=no
13304 cat <<EOF 1>&2
13305
13306*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13307*** create shared libraries on Solaris systems. Therefore, libtool
13308*** is disabling shared libraries support. We urge you to upgrade GNU
13309*** binutils to release 2.9.1 or newer. Another option is to modify
13310*** your PATH or compiler configuration so that the native linker is
13311*** used, and then restart.
13312
13313EOF
13314 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13315 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13316 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13317 else
13318 ld_shlibs_F77=no
13319 fi
13320 ;;
13321
13322 sunos4*)
13323 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13324 wlarc=
13325 hardcode_direct_F77=yes
13326 hardcode_shlibpath_var_F77=no
13327 ;;
13328
13329 *)
13330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13331 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13332 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13333 else
13334 ld_shlibs_F77=no
13335 fi
13336 ;;
13337 esac
13338
13339 if test "$ld_shlibs_F77" = yes; then
13340 runpath_var=LD_RUN_PATH
13341 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13342 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13343 # ancient GNU ld didn't support --whole-archive et. al.
13344 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13345 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13346 else
13347 whole_archive_flag_spec_F77=
13348 fi
13349 fi
13350 else
13351 # PORTME fill in a description of your system's linker (not GNU ld)
13352 case $host_os in
13353 aix3*)
13354 allow_undefined_flag_F77=unsupported
13355 always_export_symbols_F77=yes
13356 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'
13357 # Note: this linker hardcodes the directories in LIBPATH if there
13358 # are no directories specified by -L.
13359 hardcode_minus_L_F77=yes
13360 if test "$GCC" = yes && test -z "$link_static_flag"; then
13361 # Neither direct hardcoding nor static linking is supported with a
13362 # broken collect2.
13363 hardcode_direct_F77=unsupported
13364 fi
13365 ;;
13366
13367 aix4* | aix5*)
13368 if test "$host_cpu" = ia64; then
13369 # On IA64, the linker does run time linking by default, so we don't
13370 # have to do anything special.
13371 aix_use_runtimelinking=no
13372 exp_sym_flag='-Bexport'
13373 no_entry_flag=""
13374 else
13375 # If we're using GNU nm, then we don't want the "-C" option.
13376 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13377 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13378 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'
13379 else
13380 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'
13381 fi
13382 aix_use_runtimelinking=no
13383
13384 # Test if we are trying to use run time linking or normal
13385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13386 # need to do runtime linking.
13387 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13388 for ld_flag in $LDFLAGS; do
13389 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13390 aix_use_runtimelinking=yes
13391 break
13392 fi
13393 done
13394 esac
13395
13396 exp_sym_flag='-bexport'
13397 no_entry_flag='-bnoentry'
13398 fi
13399
13400 # When large executables or shared objects are built, AIX ld can
13401 # have problems creating the table of contents. If linking a library
13402 # or program results in "error TOC overflow" add -mminimal-toc to
13403 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13404 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13405
13406 archive_cmds_F77=''
13407 hardcode_direct_F77=yes
13408 hardcode_libdir_separator_F77=':'
13409 link_all_deplibs_F77=yes
13410
13411 if test "$GCC" = yes; then
13412 case $host_os in aix4.012|aix4.012.*)
13413 # We only want to do this on AIX 4.2 and lower, the check
13414 # below for broken collect2 doesn't work under 4.3+
13415 collect2name=`${CC} -print-prog-name=collect2`
13416 if test -f "$collect2name" && \
13417 strings "$collect2name" | grep resolve_lib_name >/dev/null
13418 then
13419 # We have reworked collect2
13420 hardcode_direct_F77=yes
13421 else
13422 # We have old collect2
13423 hardcode_direct_F77=unsupported
13424 # It fails to find uninstalled libraries when the uninstalled
13425 # path is not listed in the libpath. Setting hardcode_minus_L
13426 # to unsupported forces relinking
13427 hardcode_minus_L_F77=yes
13428 hardcode_libdir_flag_spec_F77='-L$libdir'
13429 hardcode_libdir_separator_F77=
13430 fi
13431 esac
13432 shared_flag='-shared'
13433 else
13434 # not using gcc
13435 if test "$host_cpu" = ia64; then
13436 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13437 # chokes on -Wl,-G. The following line is correct:
13438 shared_flag='-G'
13439 else
13440 if test "$aix_use_runtimelinking" = yes; then
13441 shared_flag='${wl}-G'
13442 else
13443 shared_flag='${wl}-bM:SRE'
13444 fi
13445 fi
13446 fi
13447
13448 # It seems that -bexpall does not export symbols beginning with
13449 # underscore (_), so it is better to generate a list of symbols to export.
13450 always_export_symbols_F77=yes
13451 if test "$aix_use_runtimelinking" = yes; then
13452 # Warning - without using the other runtime loading flags (-brtl),
13453 # -berok will link without error, but may produce a broken library.
13454 allow_undefined_flag_F77='-berok'
13455 # Determine the default libpath from the value encoded in an empty executable.
13456 cat >conftest.$ac_ext <<_ACEOF
13457 program main
13458
13459 end
13460_ACEOF
13461rm -f conftest.$ac_objext conftest$ac_exeext
13462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000013463 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013464 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000013465 grep -v '^ *+' conftest.er1 >conftest.err
13466 rm -f conftest.er1
13467 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000013470 { ac_try='test -z "$ac_f77_werror_flag"
13471 || test ! -s conftest.err'
13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13473 (eval $ac_try) 2>&5
13474 ac_status=$?
13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13476 (exit $ac_status); }; } &&
13477 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13479 (eval $ac_try) 2>&5
13480 ac_status=$?
13481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13482 (exit $ac_status); }; }; then
13483
13484aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13485}'`
13486# Check for a 64-bit object if we didn't find anything.
13487if 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; }
13488}'`; fi
13489else
13490 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013491sed 's/^/| /' conftest.$ac_ext >&5
13492
John Criswell47fdd832003-07-14 16:52:07 +000013493fi
Reid Spencer17041682004-09-05 17:48:32 +000013494rm -f conftest.err conftest.$ac_objext \
13495 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013496if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13497
13498 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13499 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"
13500 else
13501 if test "$host_cpu" = ia64; then
13502 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13503 allow_undefined_flag_F77="-z nodefs"
13504 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"
13505 else
13506 # Determine the default libpath from the value encoded in an empty executable.
13507 cat >conftest.$ac_ext <<_ACEOF
13508 program main
13509
13510 end
13511_ACEOF
13512rm -f conftest.$ac_objext conftest$ac_exeext
13513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000013514 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000013515 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000013516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000013519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000013521 { ac_try='test -z "$ac_f77_werror_flag"
13522 || test ! -s conftest.err'
13523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13524 (eval $ac_try) 2>&5
13525 ac_status=$?
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); }; } &&
13528 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000013529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13530 (eval $ac_try) 2>&5
13531 ac_status=$?
13532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13533 (exit $ac_status); }; }; then
13534
13535aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13536}'`
13537# Check for a 64-bit object if we didn't find anything.
13538if 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; }
13539}'`; fi
13540else
13541 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000013542sed 's/^/| /' conftest.$ac_ext >&5
13543
John Criswell47fdd832003-07-14 16:52:07 +000013544fi
Reid Spencer17041682004-09-05 17:48:32 +000013545rm -f conftest.err conftest.$ac_objext \
13546 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000013547if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13548
13549 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13550 # Warning - without using the other run time loading flags,
13551 # -berok will link without error, but may produce a broken library.
13552 no_undefined_flag_F77=' ${wl}-bernotok'
13553 allow_undefined_flag_F77=' ${wl}-berok'
13554 # -bexpall does not export symbols beginning with underscore (_)
13555 always_export_symbols_F77=yes
13556 # Exported symbols can be pulled into shared objects from archives
13557 whole_archive_flag_spec_F77=' '
13558 archive_cmds_need_lc_F77=yes
13559 # This is similar to how AIX traditionally builds it's shared libraries.
13560 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'
13561 fi
13562 fi
13563 ;;
13564
13565 amigaos*)
13566 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)'
13567 hardcode_libdir_flag_spec_F77='-L$libdir'
13568 hardcode_minus_L_F77=yes
13569 # see comment about different semantics on the GNU ld section
13570 ld_shlibs_F77=no
13571 ;;
13572
13573 bsdi4*)
13574 export_dynamic_flag_spec_F77=-rdynamic
13575 ;;
13576
13577 cygwin* | mingw* | pw32*)
13578 # When not using gcc, we currently assume that we are using
13579 # Microsoft Visual C++.
13580 # hardcode_libdir_flag_spec is actually meaningless, as there is
13581 # no search path for DLLs.
13582 hardcode_libdir_flag_spec_F77=' '
13583 allow_undefined_flag_F77=unsupported
13584 # Tell ltmain to make .lib files, not .a files.
13585 libext=lib
13586 # Tell ltmain to make .dll files, not .so files.
13587 shrext=".dll"
13588 # FIXME: Setting linknames here is a bad hack.
13589 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13590 # The linker will automatically build a .lib file if we build a DLL.
13591 old_archive_From_new_cmds_F77='true'
13592 # FIXME: Should let the user specify the lib program.
13593 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13594 fix_srcfile_path='`cygpath -w "$srcfile"`'
13595 enable_shared_with_static_runtimes_F77=yes
13596 ;;
13597
13598 darwin* | rhapsody*)
13599 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13600 archive_cmds_need_lc_F77=no
13601 case "$host_os" in
13602 rhapsody* | darwin1.[012])
13603 allow_undefined_flag_F77='-undefined suppress'
13604 ;;
13605 *) # Darwin 1.3 on
13606 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13607 ;;
13608 esac
13609 # FIXME: Relying on posixy $() will cause problems for
13610 # cross-compilation, but unfortunately the echo tests do not
13611 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
13612 # `"' quotes if we put them in here... so don't!
13613 lt_int_apple_cc_single_mod=no
13614 output_verbose_link_cmd='echo'
13615 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13616 lt_int_apple_cc_single_mod=yes
13617 fi
13618 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13619 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13620 else
13621 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'
13622 fi
13623 module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13624 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13625 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13626 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}'
13627 else
13628 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}'
13629 fi
13630 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}'
13631 hardcode_direct_F77=no
13632 hardcode_automatic_F77=yes
13633 hardcode_shlibpath_var_F77=unsupported
13634 whole_archive_flag_spec_F77='-all_load $convenience'
13635 link_all_deplibs_F77=yes
13636 fi
13637 ;;
13638
13639 dgux*)
13640 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13641 hardcode_libdir_flag_spec_F77='-L$libdir'
13642 hardcode_shlibpath_var_F77=no
13643 ;;
13644
13645 freebsd1*)
13646 ld_shlibs_F77=no
13647 ;;
13648
13649 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13650 # support. Future versions do this automatically, but an explicit c++rt0.o
13651 # does not break anything, and helps significantly (at the cost of a little
13652 # extra space).
13653 freebsd2.2*)
13654 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13655 hardcode_libdir_flag_spec_F77='-R$libdir'
13656 hardcode_direct_F77=yes
13657 hardcode_shlibpath_var_F77=no
13658 ;;
13659
13660 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13661 freebsd2*)
13662 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13663 hardcode_direct_F77=yes
13664 hardcode_minus_L_F77=yes
13665 hardcode_shlibpath_var_F77=no
13666 ;;
13667
13668 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13669 freebsd*)
13670 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13671 hardcode_libdir_flag_spec_F77='-R$libdir'
13672 hardcode_direct_F77=yes
13673 hardcode_shlibpath_var_F77=no
13674 ;;
13675
13676 hpux9*)
13677 if test "$GCC" = yes; then
13678 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'
13679 else
13680 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'
13681 fi
13682 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13683 hardcode_libdir_separator_F77=:
13684 hardcode_direct_F77=yes
13685
13686 # hardcode_minus_L: Not really in the search PATH,
13687 # but as the default location of the library.
13688 hardcode_minus_L_F77=yes
13689 export_dynamic_flag_spec_F77='${wl}-E'
13690 ;;
13691
13692 hpux10* | hpux11*)
13693 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13694 case "$host_cpu" in
13695 hppa*64*|ia64*)
13696 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13697 ;;
13698 *)
13699 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13700 ;;
13701 esac
13702 else
13703 case "$host_cpu" in
13704 hppa*64*|ia64*)
13705 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13706 ;;
13707 *)
13708 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13709 ;;
13710 esac
13711 fi
13712 if test "$with_gnu_ld" = no; then
13713 case "$host_cpu" in
13714 hppa*64*)
13715 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13716 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13717 hardcode_libdir_separator_F77=:
13718 hardcode_direct_F77=no
13719 hardcode_shlibpath_var_F77=no
13720 ;;
13721 ia64*)
13722 hardcode_libdir_flag_spec_F77='-L$libdir'
13723 hardcode_direct_F77=no
13724 hardcode_shlibpath_var_F77=no
13725
13726 # hardcode_minus_L: Not really in the search PATH,
13727 # but as the default location of the library.
13728 hardcode_minus_L_F77=yes
13729 ;;
13730 *)
13731 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13732 hardcode_libdir_separator_F77=:
13733 hardcode_direct_F77=yes
13734 export_dynamic_flag_spec_F77='${wl}-E'
13735
13736 # hardcode_minus_L: Not really in the search PATH,
13737 # but as the default location of the library.
13738 hardcode_minus_L_F77=yes
13739 ;;
13740 esac
13741 fi
13742 ;;
13743
13744 irix5* | irix6* | nonstopux*)
13745 if test "$GCC" = yes; then
13746 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'
13747 else
13748 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'
13749 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13750 fi
13751 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13752 hardcode_libdir_separator_F77=:
13753 link_all_deplibs_F77=yes
13754 ;;
13755
13756 netbsd*)
13757 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13758 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13759 else
13760 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13761 fi
13762 hardcode_libdir_flag_spec_F77='-R$libdir'
13763 hardcode_direct_F77=yes
13764 hardcode_shlibpath_var_F77=no
13765 ;;
13766
13767 newsos6)
13768 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13769 hardcode_direct_F77=yes
13770 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13771 hardcode_libdir_separator_F77=:
13772 hardcode_shlibpath_var_F77=no
13773 ;;
13774
13775 openbsd*)
13776 hardcode_direct_F77=yes
13777 hardcode_shlibpath_var_F77=no
13778 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13779 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13780 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13781 export_dynamic_flag_spec_F77='${wl}-E'
13782 else
13783 case $host_os in
13784 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13785 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13786 hardcode_libdir_flag_spec_F77='-R$libdir'
13787 ;;
13788 *)
13789 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13790 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13791 ;;
13792 esac
13793 fi
13794 ;;
13795
13796 os2*)
13797 hardcode_libdir_flag_spec_F77='-L$libdir'
13798 hardcode_minus_L_F77=yes
13799 allow_undefined_flag_F77=unsupported
13800 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'
13801 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13802 ;;
13803
13804 osf3*)
13805 if test "$GCC" = yes; then
13806 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13807 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'
13808 else
13809 allow_undefined_flag_F77=' -expect_unresolved \*'
13810 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'
13811 fi
13812 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13813 hardcode_libdir_separator_F77=:
13814 ;;
13815
13816 osf4* | osf5*) # as osf3* with the addition of -msym flag
13817 if test "$GCC" = yes; then
13818 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13819 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'
13820 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13821 else
13822 allow_undefined_flag_F77=' -expect_unresolved \*'
13823 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'
13824 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~
13825 $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'
13826
13827 # Both c and cxx compiler support -rpath directly
13828 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13829 fi
13830 hardcode_libdir_separator_F77=:
13831 ;;
13832
13833 sco3.2v5*)
13834 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13835 hardcode_shlibpath_var_F77=no
13836 export_dynamic_flag_spec_F77='${wl}-Bexport'
13837 runpath_var=LD_RUN_PATH
13838 hardcode_runpath_var=yes
13839 ;;
13840
13841 solaris*)
13842 no_undefined_flag_F77=' -z text'
13843 if test "$GCC" = yes; then
13844 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13845 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13846 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13847 else
13848 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13849 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13850 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13851 fi
13852 hardcode_libdir_flag_spec_F77='-R$libdir'
13853 hardcode_shlibpath_var_F77=no
13854 case $host_os in
13855 solaris2.[0-5] | solaris2.[0-5].*) ;;
13856 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13857 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13858 esac
13859 link_all_deplibs_F77=yes
13860 ;;
13861
13862 sunos4*)
13863 if test "x$host_vendor" = xsequent; then
13864 # Use $CC to link under sequent, because it throws in some extra .o
13865 # files that make .init and .fini sections work.
13866 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13867 else
13868 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13869 fi
13870 hardcode_libdir_flag_spec_F77='-L$libdir'
13871 hardcode_direct_F77=yes
13872 hardcode_minus_L_F77=yes
13873 hardcode_shlibpath_var_F77=no
13874 ;;
13875
13876 sysv4)
13877 case $host_vendor in
13878 sni)
13879 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13880 hardcode_direct_F77=yes # is this really true???
13881 ;;
13882 siemens)
13883 ## LD is ld it makes a PLAMLIB
13884 ## CC just makes a GrossModule.
13885 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13886 reload_cmds_F77='$CC -r -o $output$reload_objs'
13887 hardcode_direct_F77=no
13888 ;;
13889 motorola)
13890 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13891 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13892 ;;
13893 esac
13894 runpath_var='LD_RUN_PATH'
13895 hardcode_shlibpath_var_F77=no
13896 ;;
13897
13898 sysv4.3*)
13899 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13900 hardcode_shlibpath_var_F77=no
13901 export_dynamic_flag_spec_F77='-Bexport'
13902 ;;
13903
13904 sysv4*MP*)
13905 if test -d /usr/nec; then
13906 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13907 hardcode_shlibpath_var_F77=no
13908 runpath_var=LD_RUN_PATH
13909 hardcode_runpath_var=yes
13910 ld_shlibs_F77=yes
13911 fi
13912 ;;
13913
13914 sysv4.2uw2*)
13915 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13916 hardcode_direct_F77=yes
13917 hardcode_minus_L_F77=no
13918 hardcode_shlibpath_var_F77=no
13919 hardcode_runpath_var=yes
13920 runpath_var=LD_RUN_PATH
13921 ;;
13922
13923 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13924 no_undefined_flag_F77='${wl}-z ${wl}text'
13925 if test "$GCC" = yes; then
13926 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13927 else
13928 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13929 fi
13930 runpath_var='LD_RUN_PATH'
13931 hardcode_shlibpath_var_F77=no
13932 ;;
13933
13934 sysv5*)
13935 no_undefined_flag_F77=' -z text'
13936 # $CC -shared without GNU ld will not create a library from C++
13937 # object files and a static libstdc++, better avoid it by now
13938 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13939 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13940 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13941 hardcode_libdir_flag_spec_F77=
13942 hardcode_shlibpath_var_F77=no
13943 runpath_var='LD_RUN_PATH'
13944 ;;
13945
13946 uts4*)
13947 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13948 hardcode_libdir_flag_spec_F77='-L$libdir'
13949 hardcode_shlibpath_var_F77=no
13950 ;;
13951
13952 *)
13953 ld_shlibs_F77=no
13954 ;;
13955 esac
13956 fi
13957
13958echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13959echo "${ECHO_T}$ld_shlibs_F77" >&6
13960test "$ld_shlibs_F77" = no && can_build_shared=no
13961
13962variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13963if test "$GCC" = yes; then
13964 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13965fi
13966
13967#
13968# Do we need to explicitly link libc?
13969#
13970case "x$archive_cmds_need_lc_F77" in
13971x|xyes)
13972 # Assume -lc should be added
13973 archive_cmds_need_lc_F77=yes
13974
13975 if test "$enable_shared" = yes && test "$GCC" = yes; then
13976 case $archive_cmds_F77 in
13977 *'~'*)
13978 # FIXME: we may have to deal with multi-command sequences.
13979 ;;
13980 '$CC '*)
13981 # Test whether the compiler implicitly links with -lc since on some
13982 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13983 # to ld, don't add -lc before -lgcc.
13984 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13985echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13986 $rm conftest*
13987 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13988
13989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13990 (eval $ac_compile) 2>&5
13991 ac_status=$?
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } 2>conftest.err; then
13994 soname=conftest
13995 lib=conftest
13996 libobjs=conftest.$ac_objext
13997 deplibs=
13998 wl=$lt_prog_compiler_wl_F77
13999 compiler_flags=-v
14000 linker_flags=-v
14001 verstring=
14002 output_objdir=.
14003 libname=conftest
14004 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14005 allow_undefined_flag_F77=
14006 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14007 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14008 ac_status=$?
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }
14011 then
14012 archive_cmds_need_lc_F77=no
14013 else
14014 archive_cmds_need_lc_F77=yes
14015 fi
14016 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14017 else
14018 cat conftest.err 1>&5
14019 fi
14020 $rm conftest*
14021 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14022echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14023 ;;
14024 esac
14025 fi
14026 ;;
14027esac
14028
14029echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14030echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14031hardcode_action_F77=
14032if test -n "$hardcode_libdir_flag_spec_F77" || \
14033 test -n "$runpath_var F77" || \
14034 test "X$hardcode_automatic_F77"="Xyes" ; then
14035
14036 # We can hardcode non-existant directories.
14037 if test "$hardcode_direct_F77" != no &&
14038 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14039 # have to relink, otherwise we might link with an installed library
14040 # when we should be linking with a yet-to-be-installed one
14041 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14042 test "$hardcode_minus_L_F77" != no; then
14043 # Linking always hardcodes the temporary library directory.
14044 hardcode_action_F77=relink
14045 else
14046 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14047 hardcode_action_F77=immediate
14048 fi
14049else
14050 # We cannot hardcode anything, or else we can only hardcode existing
14051 # directories.
14052 hardcode_action_F77=unsupported
14053fi
14054echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14055echo "${ECHO_T}$hardcode_action_F77" >&6
14056
14057if test "$hardcode_action_F77" = relink; then
14058 # Fast installation is not supported
14059 enable_fast_install=no
14060elif test "$shlibpath_overrides_runpath" = yes ||
14061 test "$enable_shared" = no; then
14062 # Fast installation is not necessary
14063 enable_fast_install=needless
14064fi
14065
14066striplib=
14067old_striplib=
14068echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14069echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14070if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14071 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14072 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14073 echo "$as_me:$LINENO: result: yes" >&5
14074echo "${ECHO_T}yes" >&6
14075else
14076# FIXME - insert some real tests, host_os isn't really good enough
14077 case $host_os in
14078 darwin*)
14079 if test -n "$STRIP" ; then
14080 striplib="$STRIP -x"
14081 echo "$as_me:$LINENO: result: yes" >&5
14082echo "${ECHO_T}yes" >&6
14083 else
14084 echo "$as_me:$LINENO: result: no" >&5
14085echo "${ECHO_T}no" >&6
14086fi
14087 ;;
14088 *)
14089 echo "$as_me:$LINENO: result: no" >&5
14090echo "${ECHO_T}no" >&6
14091 ;;
14092 esac
14093fi
14094
14095echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14096echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14097library_names_spec=
14098libname_spec='lib$name'
14099soname_spec=
14100shrext=".so"
14101postinstall_cmds=
14102postuninstall_cmds=
14103finish_cmds=
14104finish_eval=
14105shlibpath_var=
14106shlibpath_overrides_runpath=unknown
14107version_type=none
14108dynamic_linker="$host_os ld.so"
14109sys_lib_dlsearch_path_spec="/lib /usr/lib"
14110if test "$GCC" = yes; then
14111 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14112 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14113 # if the path contains ";" then we assume it to be the separator
14114 # otherwise default to the standard path separator (i.e. ":") - it is
14115 # assumed that no part of a normal pathname contains ";" but that should
14116 # okay in the real world where ";" in dirpaths is itself problematic.
14117 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14118 else
14119 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14120 fi
14121else
14122 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14123fi
14124need_lib_prefix=unknown
14125hardcode_into_libs=no
14126
14127# when you set need_version to no, make sure it does not cause -set_version
14128# flags to be left without arguments
14129need_version=unknown
14130
14131case $host_os in
14132aix3*)
14133 version_type=linux
14134 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14135 shlibpath_var=LIBPATH
14136
14137 # AIX 3 has no versioning support, so we append a major version to the name.
14138 soname_spec='${libname}${release}${shared_ext}$major'
14139 ;;
14140
14141aix4* | aix5*)
14142 version_type=linux
14143 need_lib_prefix=no
14144 need_version=no
14145 hardcode_into_libs=yes
14146 if test "$host_cpu" = ia64; then
14147 # AIX 5 supports IA64
14148 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14149 shlibpath_var=LD_LIBRARY_PATH
14150 else
14151 # With GCC up to 2.95.x, collect2 would create an import file
14152 # for dependence libraries. The import file would start with
14153 # the line `#! .'. This would cause the generated library to
14154 # depend on `.', always an invalid library. This was fixed in
14155 # development snapshots of GCC prior to 3.0.
14156 case $host_os in
14157 aix4 | aix4.[01] | aix4.[01].*)
14158 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14159 echo ' yes '
14160 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14161 :
14162 else
14163 can_build_shared=no
14164 fi
14165 ;;
14166 esac
14167 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14168 # soname into executable. Probably we can add versioning support to
14169 # collect2, so additional links can be useful in future.
14170 if test "$aix_use_runtimelinking" = yes; then
14171 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14172 # instead of lib<name>.a to let people know that these are not
14173 # typical AIX shared libraries.
14174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14175 else
14176 # We preserve .a as extension for shared libraries through AIX4.2
14177 # and later when we are not doing run time linking.
14178 library_names_spec='${libname}${release}.a $libname.a'
14179 soname_spec='${libname}${release}${shared_ext}$major'
14180 fi
14181 shlibpath_var=LIBPATH
14182 fi
14183 ;;
14184
14185amigaos*)
14186 library_names_spec='$libname.ixlibrary $libname.a'
14187 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14188 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'
14189 ;;
14190
14191beos*)
14192 library_names_spec='${libname}${shared_ext}'
14193 dynamic_linker="$host_os ld.so"
14194 shlibpath_var=LIBRARY_PATH
14195 ;;
14196
14197bsdi4*)
14198 version_type=linux
14199 need_version=no
14200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14201 soname_spec='${libname}${release}${shared_ext}$major'
14202 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14203 shlibpath_var=LD_LIBRARY_PATH
14204 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14205 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14206 # the default ld.so.conf also contains /usr/contrib/lib and
14207 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14208 # libtool to hard-code these into programs
14209 ;;
14210
14211cygwin* | mingw* | pw32*)
14212 version_type=windows
14213 shrext=".dll"
14214 need_version=no
14215 need_lib_prefix=no
14216
14217 case $GCC,$host_os in
14218 yes,cygwin* | yes,mingw* | yes,pw32*)
14219 library_names_spec='$libname.dll.a'
14220 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14221 postinstall_cmds='base_file=`basename \${file}`~
14222 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14223 dldir=$destdir/`dirname \$dlpath`~
14224 test -d \$dldir || mkdir -p \$dldir~
14225 $install_prog $dir/$dlname \$dldir/$dlname'
14226 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14227 dlpath=$dir/\$dldll~
14228 $rm \$dlpath'
14229 shlibpath_overrides_runpath=yes
14230
14231 case $host_os in
14232 cygwin*)
14233 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14234 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14235 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14236 ;;
14237 mingw*)
14238 # MinGW DLLs use traditional 'lib' prefix
14239 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14240 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14241 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14242 # It is most probably a Windows format PATH printed by
14243 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14244 # path with ; separators, and with drive letters. We can handle the
14245 # drive letters (cygwin fileutils understands them), so leave them,
14246 # especially as we might pass files found there to a mingw objdump,
14247 # which wouldn't understand a cygwinified path. Ahh.
14248 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14249 else
14250 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14251 fi
14252 ;;
14253 pw32*)
14254 # pw32 DLLs use 'pw' prefix rather than 'lib'
14255 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14256 ;;
14257 esac
14258 ;;
14259
14260 *)
14261 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14262 ;;
14263 esac
14264 dynamic_linker='Win32 ld.exe'
14265 # FIXME: first we should search . and the directory the executable is in
14266 shlibpath_var=PATH
14267 ;;
14268
14269darwin* | rhapsody*)
14270 dynamic_linker="$host_os dyld"
14271 version_type=darwin
14272 need_lib_prefix=no
14273 need_version=no
14274 # FIXME: Relying on posixy $() will cause problems for
14275 # cross-compilation, but unfortunately the echo tests do not
14276 # yet detect zsh echo's removal of \ escapes.
14277 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14278 soname_spec='${libname}${release}${major}$shared_ext'
14279 shlibpath_overrides_runpath=yes
14280 shlibpath_var=DYLD_LIBRARY_PATH
14281 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14282 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14283 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14284 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"`
14285 fi
14286 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14287 ;;
14288
14289dgux*)
14290 version_type=linux
14291 need_lib_prefix=no
14292 need_version=no
14293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14294 soname_spec='${libname}${release}${shared_ext}$major'
14295 shlibpath_var=LD_LIBRARY_PATH
14296 ;;
14297
14298freebsd1*)
14299 dynamic_linker=no
14300 ;;
14301
14302freebsd*)
14303 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14304 version_type=freebsd-$objformat
14305 case $version_type in
14306 freebsd-elf*)
14307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14308 need_version=no
14309 need_lib_prefix=no
14310 ;;
14311 freebsd-*)
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14313 need_version=yes
14314 ;;
14315 esac
14316 shlibpath_var=LD_LIBRARY_PATH
14317 case $host_os in
14318 freebsd2*)
14319 shlibpath_overrides_runpath=yes
14320 ;;
14321 freebsd3.01* | freebsdelf3.01*)
14322 shlibpath_overrides_runpath=yes
14323 hardcode_into_libs=yes
14324 ;;
14325 *) # from 3.2 on
14326 shlibpath_overrides_runpath=no
14327 hardcode_into_libs=yes
14328 ;;
14329 esac
14330 ;;
14331
14332gnu*)
14333 version_type=linux
14334 need_lib_prefix=no
14335 need_version=no
14336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14337 soname_spec='${libname}${release}${shared_ext}$major'
14338 shlibpath_var=LD_LIBRARY_PATH
14339 hardcode_into_libs=yes
14340 ;;
14341
14342hpux9* | hpux10* | hpux11*)
14343 # Give a soname corresponding to the major version so that dld.sl refuses to
14344 # link against other versions.
14345 version_type=sunos
14346 need_lib_prefix=no
14347 need_version=no
14348 case "$host_cpu" in
14349 ia64*)
14350 shrext='.so'
14351 hardcode_into_libs=yes
14352 dynamic_linker="$host_os dld.so"
14353 shlibpath_var=LD_LIBRARY_PATH
14354 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 if test "X$HPUX_IA64_MODE" = X32; then
14358 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14359 else
14360 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14361 fi
14362 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14363 ;;
14364 hppa*64*)
14365 shrext='.sl'
14366 hardcode_into_libs=yes
14367 dynamic_linker="$host_os dld.sl"
14368 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371 soname_spec='${libname}${release}${shared_ext}$major'
14372 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14373 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14374 ;;
14375 *)
14376 shrext='.sl'
14377 dynamic_linker="$host_os dld.sl"
14378 shlibpath_var=SHLIB_PATH
14379 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14381 soname_spec='${libname}${release}${shared_ext}$major'
14382 ;;
14383 esac
14384 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14385 postinstall_cmds='chmod 555 $lib'
14386 ;;
14387
14388irix5* | irix6* | nonstopux*)
14389 case $host_os in
14390 nonstopux*) version_type=nonstopux ;;
14391 *)
14392 if test "$lt_cv_prog_gnu_ld" = yes; then
14393 version_type=linux
14394 else
14395 version_type=irix
14396 fi ;;
14397 esac
14398 need_lib_prefix=no
14399 need_version=no
14400 soname_spec='${libname}${release}${shared_ext}$major'
14401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14402 case $host_os in
14403 irix5* | nonstopux*)
14404 libsuff= shlibsuff=
14405 ;;
14406 *)
14407 case $LD in # libtool.m4 will add one of these switches to LD
14408 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14409 libsuff= shlibsuff= libmagic=32-bit;;
14410 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14411 libsuff=32 shlibsuff=N32 libmagic=N32;;
14412 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14413 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14414 *) libsuff= shlibsuff= libmagic=never-match;;
14415 esac
14416 ;;
14417 esac
14418 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14419 shlibpath_overrides_runpath=no
14420 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14421 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14422 hardcode_into_libs=yes
14423 ;;
14424
14425# No shared lib support for Linux oldld, aout, or coff.
14426linux*oldld* | linux*aout* | linux*coff*)
14427 dynamic_linker=no
14428 ;;
14429
14430# This must be Linux ELF.
14431linux*)
14432 version_type=linux
14433 need_lib_prefix=no
14434 need_version=no
14435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436 soname_spec='${libname}${release}${shared_ext}$major'
14437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14438 shlibpath_var=LD_LIBRARY_PATH
14439 shlibpath_overrides_runpath=no
14440 # This implies no fast_install, which is unacceptable.
14441 # Some rework will be needed to allow for fast_install
14442 # before this can be enabled.
14443 hardcode_into_libs=yes
14444
14445 # We used to test for /lib/ld.so.1 and disable shared libraries on
14446 # powerpc, because MkLinux only supported shared libraries with the
14447 # GNU dynamic linker. Since this was broken with cross compilers,
14448 # most powerpc-linux boxes support dynamic linking these days and
14449 # people can always --disable-shared, the test was removed, and we
14450 # assume the GNU/Linux dynamic linker is in use.
14451 dynamic_linker='GNU/Linux ld.so'
14452 ;;
14453
14454netbsd*)
14455 version_type=sunos
14456 need_lib_prefix=no
14457 need_version=no
14458 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14461 dynamic_linker='NetBSD (a.out) ld.so'
14462 else
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14464 soname_spec='${libname}${release}${shared_ext}$major'
14465 dynamic_linker='NetBSD ld.elf_so'
14466 fi
14467 shlibpath_var=LD_LIBRARY_PATH
14468 shlibpath_overrides_runpath=yes
14469 hardcode_into_libs=yes
14470 ;;
14471
14472newsos6)
14473 version_type=linux
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14475 shlibpath_var=LD_LIBRARY_PATH
14476 shlibpath_overrides_runpath=yes
14477 ;;
14478
14479nto-qnx)
14480 version_type=linux
14481 need_lib_prefix=no
14482 need_version=no
14483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14484 soname_spec='${libname}${release}${shared_ext}$major'
14485 shlibpath_var=LD_LIBRARY_PATH
14486 shlibpath_overrides_runpath=yes
14487 ;;
14488
14489openbsd*)
14490 version_type=sunos
14491 need_lib_prefix=no
14492 need_version=no
14493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14494 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14495 shlibpath_var=LD_LIBRARY_PATH
14496 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14497 case $host_os in
14498 openbsd2.[89] | openbsd2.[89].*)
14499 shlibpath_overrides_runpath=no
14500 ;;
14501 *)
14502 shlibpath_overrides_runpath=yes
14503 ;;
14504 esac
14505 else
14506 shlibpath_overrides_runpath=yes
14507 fi
14508 ;;
14509
14510os2*)
14511 libname_spec='$name'
14512 shrext=".dll"
14513 need_lib_prefix=no
14514 library_names_spec='$libname${shared_ext} $libname.a'
14515 dynamic_linker='OS/2 ld.exe'
14516 shlibpath_var=LIBPATH
14517 ;;
14518
14519osf3* | osf4* | osf5*)
14520 version_type=osf
14521 need_lib_prefix=no
14522 need_version=no
14523 soname_spec='${libname}${release}${shared_ext}$major'
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14527 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14528 ;;
14529
14530sco3.2v5*)
14531 version_type=osf
14532 soname_spec='${libname}${release}${shared_ext}$major'
14533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14534 shlibpath_var=LD_LIBRARY_PATH
14535 ;;
14536
14537solaris*)
14538 version_type=linux
14539 need_lib_prefix=no
14540 need_version=no
14541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14542 soname_spec='${libname}${release}${shared_ext}$major'
14543 shlibpath_var=LD_LIBRARY_PATH
14544 shlibpath_overrides_runpath=yes
14545 hardcode_into_libs=yes
14546 # ldd complains unless libraries are executable
14547 postinstall_cmds='chmod +x $lib'
14548 ;;
14549
14550sunos4*)
14551 version_type=sunos
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14553 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14554 shlibpath_var=LD_LIBRARY_PATH
14555 shlibpath_overrides_runpath=yes
14556 if test "$with_gnu_ld" = yes; then
14557 need_lib_prefix=no
14558 fi
14559 need_version=yes
14560 ;;
14561
14562sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14563 version_type=linux
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14565 soname_spec='${libname}${release}${shared_ext}$major'
14566 shlibpath_var=LD_LIBRARY_PATH
14567 case $host_vendor in
14568 sni)
14569 shlibpath_overrides_runpath=no
14570 need_lib_prefix=no
14571 export_dynamic_flag_spec='${wl}-Blargedynsym'
14572 runpath_var=LD_RUN_PATH
14573 ;;
14574 siemens)
14575 need_lib_prefix=no
14576 ;;
14577 motorola)
14578 need_lib_prefix=no
14579 need_version=no
14580 shlibpath_overrides_runpath=no
14581 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14582 ;;
14583 esac
14584 ;;
14585
14586sysv4*MP*)
14587 if test -d /usr/nec ;then
14588 version_type=linux
14589 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14590 soname_spec='$libname${shared_ext}.$major'
14591 shlibpath_var=LD_LIBRARY_PATH
14592 fi
14593 ;;
14594
14595uts4*)
14596 version_type=linux
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14598 soname_spec='${libname}${release}${shared_ext}$major'
14599 shlibpath_var=LD_LIBRARY_PATH
14600 ;;
14601
14602*)
14603 dynamic_linker=no
14604 ;;
14605esac
14606echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14607echo "${ECHO_T}$dynamic_linker" >&6
14608test "$dynamic_linker" = no && can_build_shared=no
14609
14610
14611# The else clause should only fire when bootstrapping the
14612# libtool distribution, otherwise you forgot to ship ltmain.sh
14613# with your package, and you will get complaints that there are
14614# no rules to generate ltmain.sh.
14615if test -f "$ltmain"; then
14616 # See if we are running on zsh, and set the options which allow our commands through
14617 # without removal of \ escapes.
14618 if test -n "${ZSH_VERSION+set}" ; then
14619 setopt NO_GLOB_SUBST
14620 fi
14621 # Now quote all the things that may contain metacharacters while being
14622 # careful not to overquote the AC_SUBSTed values. We take copies of the
14623 # variables and quote the copies for generation of the libtool script.
14624 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14625 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14626 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14627 deplibs_check_method reload_flag reload_cmds need_locks \
14628 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14629 lt_cv_sys_global_symbol_to_c_name_address \
14630 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14631 old_postinstall_cmds old_postuninstall_cmds \
14632 compiler_F77 \
14633 CC_F77 \
14634 LD_F77 \
14635 lt_prog_compiler_wl_F77 \
14636 lt_prog_compiler_pic_F77 \
14637 lt_prog_compiler_static_F77 \
14638 lt_prog_compiler_no_builtin_flag_F77 \
14639 export_dynamic_flag_spec_F77 \
14640 thread_safe_flag_spec_F77 \
14641 whole_archive_flag_spec_F77 \
14642 enable_shared_with_static_runtimes_F77 \
14643 old_archive_cmds_F77 \
14644 old_archive_from_new_cmds_F77 \
14645 predep_objects_F77 \
14646 postdep_objects_F77 \
14647 predeps_F77 \
14648 postdeps_F77 \
14649 compiler_lib_search_path_F77 \
14650 archive_cmds_F77 \
14651 archive_expsym_cmds_F77 \
14652 postinstall_cmds_F77 \
14653 postuninstall_cmds_F77 \
14654 old_archive_from_expsyms_cmds_F77 \
14655 allow_undefined_flag_F77 \
14656 no_undefined_flag_F77 \
14657 export_symbols_cmds_F77 \
14658 hardcode_libdir_flag_spec_F77 \
14659 hardcode_libdir_flag_spec_ld_F77 \
14660 hardcode_libdir_separator_F77 \
14661 hardcode_automatic_F77 \
14662 module_cmds_F77 \
14663 module_expsym_cmds_F77 \
14664 lt_cv_prog_compiler_c_o_F77 \
14665 exclude_expsyms_F77 \
14666 include_expsyms_F77; do
14667
14668 case $var in
14669 old_archive_cmds_F77 | \
14670 old_archive_from_new_cmds_F77 | \
14671 archive_cmds_F77 | \
14672 archive_expsym_cmds_F77 | \
14673 module_cmds_F77 | \
14674 module_expsym_cmds_F77 | \
14675 old_archive_from_expsyms_cmds_F77 | \
14676 export_symbols_cmds_F77 | \
14677 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14678 postinstall_cmds | postuninstall_cmds | \
14679 old_postinstall_cmds | old_postuninstall_cmds | \
14680 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14681 # Double-quote double-evaled strings.
14682 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14683 ;;
14684 *)
14685 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14686 ;;
14687 esac
14688 done
14689
14690 case $lt_echo in
14691 *'\$0 --fallback-echo"')
14692 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14693 ;;
14694 esac
14695
14696cfgfile="$ofile"
14697
14698 cat <<__EOF__ >> "$cfgfile"
14699# ### BEGIN LIBTOOL TAG CONFIG: $tagname
14700
14701# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14702
14703# Shell to use when invoking shell scripts.
14704SHELL=$lt_SHELL
14705
14706# Whether or not to build shared libraries.
14707build_libtool_libs=$enable_shared
14708
14709# Whether or not to build static libraries.
14710build_old_libs=$enable_static
14711
14712# Whether or not to add -lc for building shared libraries.
14713build_libtool_need_lc=$archive_cmds_need_lc_F77
14714
14715# Whether or not to disallow shared libs when runtime libs are static
14716allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14717
14718# Whether or not to optimize for fast installation.
14719fast_install=$enable_fast_install
14720
14721# The host system.
14722host_alias=$host_alias
14723host=$host
14724
14725# An echo program that does not interpret backslashes.
14726echo=$lt_echo
14727
14728# The archiver.
14729AR=$lt_AR
14730AR_FLAGS=$lt_AR_FLAGS
14731
14732# A C compiler.
14733LTCC=$lt_LTCC
14734
14735# A language-specific compiler.
14736CC=$lt_compiler_F77
14737
14738# Is the compiler the GNU C compiler?
14739with_gcc=$GCC_F77
14740
14741# An ERE matcher.
14742EGREP=$lt_EGREP
14743
14744# The linker used to build libraries.
14745LD=$lt_LD_F77
14746
14747# Whether we need hard or soft links.
14748LN_S=$lt_LN_S
14749
14750# A BSD-compatible nm program.
14751NM=$lt_NM
14752
14753# A symbol stripping program
14754STRIP=$STRIP
14755
14756# Used to examine libraries when file_magic_cmd begins "file"
14757MAGIC_CMD=$MAGIC_CMD
14758
14759# Used on cygwin: DLL creation program.
14760DLLTOOL="$DLLTOOL"
14761
14762# Used on cygwin: object dumper.
14763OBJDUMP="$OBJDUMP"
14764
14765# Used on cygwin: assembler.
14766AS="$AS"
14767
14768# The name of the directory that contains temporary libtool files.
14769objdir=$objdir
14770
14771# How to create reloadable object files.
14772reload_flag=$lt_reload_flag
14773reload_cmds=$lt_reload_cmds
14774
14775# How to pass a linker flag through the compiler.
14776wl=$lt_lt_prog_compiler_wl_F77
14777
14778# Object file suffix (normally "o").
14779objext="$ac_objext"
14780
14781# Old archive suffix (normally "a").
14782libext="$libext"
14783
14784# Shared library suffix (normally ".so").
14785shrext='$shrext'
14786
14787# Executable file suffix (normally "").
14788exeext="$exeext"
14789
14790# Additional compiler flags for building library objects.
14791pic_flag=$lt_lt_prog_compiler_pic_F77
14792pic_mode=$pic_mode
14793
14794# What is the maximum length of a command?
14795max_cmd_len=$lt_cv_sys_max_cmd_len
14796
14797# Does compiler simultaneously support -c and -o options?
14798compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14799
14800# Must we lock files when doing compilation ?
14801need_locks=$lt_need_locks
14802
14803# Do we need the lib prefix for modules?
14804need_lib_prefix=$need_lib_prefix
14805
14806# Do we need a version for libraries?
14807need_version=$need_version
14808
14809# Whether dlopen is supported.
14810dlopen_support=$enable_dlopen
14811
14812# Whether dlopen of programs is supported.
14813dlopen_self=$enable_dlopen_self
14814
14815# Whether dlopen of statically linked programs is supported.
14816dlopen_self_static=$enable_dlopen_self_static
14817
14818# Compiler flag to prevent dynamic linking.
14819link_static_flag=$lt_lt_prog_compiler_static_F77
14820
14821# Compiler flag to turn off builtin functions.
14822no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14823
14824# Compiler flag to allow reflexive dlopens.
14825export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14826
14827# Compiler flag to generate shared objects directly from archives.
14828whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14829
14830# Compiler flag to generate thread-safe objects.
14831thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14832
14833# Library versioning type.
14834version_type=$version_type
14835
14836# Format of library name prefix.
14837libname_spec=$lt_libname_spec
14838
14839# List of archive names. First name is the real one, the rest are links.
14840# The last name is the one that the linker finds with -lNAME.
14841library_names_spec=$lt_library_names_spec
14842
14843# The coded name of the library, if different from the real name.
14844soname_spec=$lt_soname_spec
14845
14846# Commands used to build and install an old-style archive.
14847RANLIB=$lt_RANLIB
14848old_archive_cmds=$lt_old_archive_cmds_F77
14849old_postinstall_cmds=$lt_old_postinstall_cmds
14850old_postuninstall_cmds=$lt_old_postuninstall_cmds
14851
14852# Create an old-style archive from a shared archive.
14853old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14854
14855# Create a temporary old-style archive to link instead of a shared archive.
14856old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14857
14858# Commands used to build and install a shared archive.
14859archive_cmds=$lt_archive_cmds_F77
14860archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14861postinstall_cmds=$lt_postinstall_cmds
14862postuninstall_cmds=$lt_postuninstall_cmds
14863
14864# Commands used to build a loadable module (assumed same as above if empty)
14865module_cmds=$lt_module_cmds_F77
14866module_expsym_cmds=$lt_module_expsym_cmds_F77
14867
14868# Commands to strip libraries.
14869old_striplib=$lt_old_striplib
14870striplib=$lt_striplib
14871
14872# Dependencies to place before the objects being linked to create a
14873# shared library.
14874predep_objects=$lt_predep_objects_F77
14875
14876# Dependencies to place after the objects being linked to create a
14877# shared library.
14878postdep_objects=$lt_postdep_objects_F77
14879
14880# Dependencies to place before the objects being linked to create a
14881# shared library.
14882predeps=$lt_predeps_F77
14883
14884# Dependencies to place after the objects being linked to create a
14885# shared library.
14886postdeps=$lt_postdeps_F77
14887
14888# The library search path used internally by the compiler when linking
14889# a shared library.
14890compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14891
14892# Method to check whether dependent libraries are shared objects.
14893deplibs_check_method=$lt_deplibs_check_method
14894
14895# Command to use when deplibs_check_method == file_magic.
14896file_magic_cmd=$lt_file_magic_cmd
14897
14898# Flag that allows shared libraries with undefined symbols to be built.
14899allow_undefined_flag=$lt_allow_undefined_flag_F77
14900
14901# Flag that forces no undefined symbols.
14902no_undefined_flag=$lt_no_undefined_flag_F77
14903
14904# Commands used to finish a libtool library installation in a directory.
14905finish_cmds=$lt_finish_cmds
14906
14907# Same as above, but a single script fragment to be evaled but not shown.
14908finish_eval=$lt_finish_eval
14909
14910# Take the output of nm and produce a listing of raw symbols and C names.
14911global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14912
14913# Transform the output of nm in a proper C declaration
14914global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14915
14916# Transform the output of nm in a C name address pair
14917global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14918
14919# This is the shared library runtime path variable.
14920runpath_var=$runpath_var
14921
14922# This is the shared library path variable.
14923shlibpath_var=$shlibpath_var
14924
14925# Is shlibpath searched before the hard-coded library search path?
14926shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14927
14928# How to hardcode a shared library path into an executable.
14929hardcode_action=$hardcode_action_F77
14930
14931# Whether we should hardcode library paths into libraries.
14932hardcode_into_libs=$hardcode_into_libs
14933
14934# Flag to hardcode \$libdir into a binary during linking.
14935# This must work even if \$libdir does not exist.
14936hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14937
14938# If ld is used when linking, flag to hardcode \$libdir into
14939# a binary during linking. This must work even if \$libdir does
14940# not exist.
14941hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14942
14943# Whether we need a single -rpath flag with a separated argument.
14944hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14945
14946# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14947# resulting binary.
14948hardcode_direct=$hardcode_direct_F77
14949
14950# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14951# resulting binary.
14952hardcode_minus_L=$hardcode_minus_L_F77
14953
14954# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14955# the resulting binary.
14956hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14957
14958# Set to yes if building a shared library automatically hardcodes DIR into the library
14959# and all subsequent libraries and executables linked against it.
14960hardcode_automatic=$hardcode_automatic_F77
14961
14962# Variables whose values should be saved in libtool wrapper scripts and
14963# restored at relink time.
14964variables_saved_for_relink="$variables_saved_for_relink"
14965
14966# Whether libtool must link a program against all its dependency libraries.
14967link_all_deplibs=$link_all_deplibs_F77
14968
14969# Compile-time system search path for libraries
14970sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14971
14972# Run-time system search path for libraries
14973sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14974
14975# Fix the shell variable \$srcfile for the compiler.
14976fix_srcfile_path="$fix_srcfile_path_F77"
14977
14978# Set to yes if exported symbols are required.
14979always_export_symbols=$always_export_symbols_F77
14980
14981# The commands to list exported symbols.
14982export_symbols_cmds=$lt_export_symbols_cmds_F77
14983
14984# The commands to extract the exported symbol list from a shared archive.
14985extract_expsyms_cmds=$lt_extract_expsyms_cmds
14986
14987# Symbols that should not be listed in the preloaded symbols.
14988exclude_expsyms=$lt_exclude_expsyms_F77
14989
14990# Symbols that must always be exported.
14991include_expsyms=$lt_include_expsyms_F77
14992
14993# ### END LIBTOOL TAG CONFIG: $tagname
14994
14995__EOF__
14996
14997
14998else
14999 # If there is no Makefile yet, we rely on a make rule to execute
15000 # `config.status --recheck' to rerun these tests and create the
15001 # libtool script then.
15002 test -f Makefile && make "$ltmain"
15003fi
15004
15005
15006ac_ext=c
15007ac_cpp='$CPP $CPPFLAGS'
15008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15010ac_compiler_gnu=$ac_cv_c_compiler_gnu
15011
15012CC="$lt_save_CC"
15013
15014 else
15015 tagname=""
15016 fi
15017 ;;
15018
15019 GCJ)
15020 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15021
15022
15023
15024# Source file extension for Java test sources.
15025ac_ext=java
15026
15027# Object file extension for compiled Java test sources.
15028objext=o
15029objext_GCJ=$objext
15030
15031# Code to be used in simple compile tests
15032lt_simple_compile_test_code="class foo {}\n"
15033
15034# Code to be used in simple link tests
15035lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15036
15037# ltmain only uses $CC for tagged configurations so make sure $CC is set.
15038
15039# If no C compiler was specified, use CC.
15040LTCC=${LTCC-"$CC"}
15041
15042# Allow CC to be a program name with arguments.
15043compiler=$CC
15044
15045
15046# Allow CC to be a program name with arguments.
15047lt_save_CC="$CC"
15048CC=${GCJ-"gcj"}
15049compiler=$CC
15050compiler_GCJ=$CC
15051
15052# GCJ did not exist at the time GCC didn't implicitly link libc in.
15053archive_cmds_need_lc_GCJ=no
15054
Reid Spencer17041682004-09-05 17:48:32 +000015055## CAVEAT EMPTOR:
15056## There is no encapsulation within the following macros, do not change
15057## the running order or otherwise move them around unless you know exactly
15058## what you are doing...
John Criswell47fdd832003-07-14 16:52:07 +000015059
15060lt_prog_compiler_no_builtin_flag_GCJ=
15061
15062if test "$GCC" = yes; then
15063 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15064
15065 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15066echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15067if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15068 echo $ECHO_N "(cached) $ECHO_C" >&6
15069else
15070 lt_cv_prog_compiler_rtti_exceptions=no
15071 ac_outfile=conftest.$ac_objext
15072 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15073 lt_compiler_flag="-fno-rtti -fno-exceptions"
15074 # Insert the option either (1) after the last *FLAGS variable, or
15075 # (2) before a word containing "conftest.", or (3) at the end.
15076 # Note that $ac_compile itself does not contain backslashes and begins
15077 # with a dollar sign (not a hyphen), so the echo should work correctly.
15078 # The option is referenced via a variable to avoid confusing sed.
15079 lt_compile=`echo "$ac_compile" | $SED \
15080 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15081 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15082 -e 's:$: $lt_compiler_flag:'`
Reid Spencer17041682004-09-05 17:48:32 +000015083 (eval echo "\"\$as_me:15083: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015084 (eval "$lt_compile" 2>conftest.err)
15085 ac_status=$?
15086 cat conftest.err >&5
Reid Spencer17041682004-09-05 17:48:32 +000015087 echo "$as_me:15087: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015088 if (exit $ac_status) && test -s "$ac_outfile"; then
15089 # The compiler can only warn and ignore the option if not recognized
15090 # So say no if there are warnings
15091 if test ! -s conftest.err; then
15092 lt_cv_prog_compiler_rtti_exceptions=yes
15093 fi
15094 fi
15095 $rm conftest*
15096
15097fi
15098echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15099echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15100
15101if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15102 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15103else
15104 :
15105fi
15106
15107fi
15108
15109lt_prog_compiler_wl_GCJ=
15110lt_prog_compiler_pic_GCJ=
15111lt_prog_compiler_static_GCJ=
15112
15113echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15114echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15115
15116 if test "$GCC" = yes; then
15117 lt_prog_compiler_wl_GCJ='-Wl,'
15118 lt_prog_compiler_static_GCJ='-static'
15119
15120 case $host_os in
15121 aix*)
15122 # All AIX code is PIC.
15123 if test "$host_cpu" = ia64; then
15124 # AIX 5 now supports IA64 processor
15125 lt_prog_compiler_static_GCJ='-Bstatic'
15126 fi
15127 ;;
15128
15129 amigaos*)
15130 # FIXME: we need at least 68020 code to build shared libraries, but
15131 # adding the `-m68020' flag to GCC prevents building anything better,
15132 # like `-m68040'.
15133 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15134 ;;
15135
15136 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15137 # PIC is the default for these OSes.
15138 ;;
15139
15140 mingw* | pw32* | os2*)
15141 # This hack is so that the source file can tell whether it is being
15142 # built for inclusion in a dll (and should export symbols for example).
15143 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15144 ;;
15145
15146 darwin* | rhapsody*)
15147 # PIC is the default on this platform
15148 # Common symbols not allowed in MH_DYLIB files
15149 lt_prog_compiler_pic_GCJ='-fno-common'
15150 ;;
15151
15152 msdosdjgpp*)
15153 # Just because we use GCC doesn't mean we suddenly get shared libraries
15154 # on systems that don't support them.
15155 lt_prog_compiler_can_build_shared_GCJ=no
15156 enable_shared=no
15157 ;;
15158
15159 sysv4*MP*)
15160 if test -d /usr/nec; then
15161 lt_prog_compiler_pic_GCJ=-Kconform_pic
15162 fi
15163 ;;
15164
15165 hpux*)
15166 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15167 # not for PA HP-UX.
15168 case "$host_cpu" in
15169 hppa*64*|ia64*)
15170 # +Z the default
15171 ;;
15172 *)
15173 lt_prog_compiler_pic_GCJ='-fPIC'
15174 ;;
15175 esac
15176 ;;
15177
15178 *)
15179 lt_prog_compiler_pic_GCJ='-fPIC'
15180 ;;
15181 esac
15182 else
15183 # PORTME Check for flag to pass linker flags through the system compiler.
15184 case $host_os in
15185 aix*)
15186 lt_prog_compiler_wl_GCJ='-Wl,'
15187 if test "$host_cpu" = ia64; then
15188 # AIX 5 now supports IA64 processor
15189 lt_prog_compiler_static_GCJ='-Bstatic'
15190 else
15191 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15192 fi
15193 ;;
15194
15195 mingw* | pw32* | os2*)
15196 # This hack is so that the source file can tell whether it is being
15197 # built for inclusion in a dll (and should export symbols for example).
15198 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15199 ;;
15200
15201 hpux9* | hpux10* | hpux11*)
15202 lt_prog_compiler_wl_GCJ='-Wl,'
15203 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15204 # not for PA HP-UX.
15205 case "$host_cpu" in
15206 hppa*64*|ia64*)
15207 # +Z the default
15208 ;;
15209 *)
15210 lt_prog_compiler_pic_GCJ='+Z'
15211 ;;
15212 esac
15213 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15214 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15215 ;;
15216
15217 irix5* | irix6* | nonstopux*)
15218 lt_prog_compiler_wl_GCJ='-Wl,'
15219 # PIC (with -KPIC) is the default.
15220 lt_prog_compiler_static_GCJ='-non_shared'
15221 ;;
15222
15223 newsos6)
15224 lt_prog_compiler_pic_GCJ='-KPIC'
15225 lt_prog_compiler_static_GCJ='-Bstatic'
15226 ;;
15227
15228 linux*)
15229 case $CC in
15230 icc|ecc)
15231 lt_prog_compiler_wl_GCJ='-Wl,'
15232 lt_prog_compiler_pic_GCJ='-KPIC'
15233 lt_prog_compiler_static_GCJ='-static'
15234 ;;
15235 ccc)
15236 lt_prog_compiler_wl_GCJ='-Wl,'
15237 # All Alpha code is PIC.
15238 lt_prog_compiler_static_GCJ='-non_shared'
15239 ;;
15240 esac
15241 ;;
15242
15243 osf3* | osf4* | osf5*)
15244 lt_prog_compiler_wl_GCJ='-Wl,'
15245 # All OSF/1 code is PIC.
15246 lt_prog_compiler_static_GCJ='-non_shared'
15247 ;;
15248
15249 sco3.2v5*)
15250 lt_prog_compiler_pic_GCJ='-Kpic'
15251 lt_prog_compiler_static_GCJ='-dn'
15252 ;;
15253
15254 solaris*)
15255 lt_prog_compiler_wl_GCJ='-Wl,'
15256 lt_prog_compiler_pic_GCJ='-KPIC'
15257 lt_prog_compiler_static_GCJ='-Bstatic'
15258 ;;
15259
15260 sunos4*)
15261 lt_prog_compiler_wl_GCJ='-Qoption ld '
15262 lt_prog_compiler_pic_GCJ='-PIC'
15263 lt_prog_compiler_static_GCJ='-Bstatic'
15264 ;;
15265
15266 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15267 lt_prog_compiler_wl_GCJ='-Wl,'
15268 lt_prog_compiler_pic_GCJ='-KPIC'
15269 lt_prog_compiler_static_GCJ='-Bstatic'
15270 ;;
15271
15272 sysv4*MP*)
15273 if test -d /usr/nec ;then
15274 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15275 lt_prog_compiler_static_GCJ='-Bstatic'
15276 fi
15277 ;;
15278
15279 uts4*)
15280 lt_prog_compiler_pic_GCJ='-pic'
15281 lt_prog_compiler_static_GCJ='-Bstatic'
15282 ;;
15283
15284 *)
15285 lt_prog_compiler_can_build_shared_GCJ=no
15286 ;;
15287 esac
15288 fi
15289
15290echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15291echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15292
15293#
15294# Check to make sure the PIC flag actually works.
15295#
15296if test -n "$lt_prog_compiler_pic_GCJ"; then
15297 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15298echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15299if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15301else
15302 lt_prog_compiler_pic_works_GCJ=no
15303 ac_outfile=conftest.$ac_objext
15304 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15305 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15306 # Insert the option either (1) after the last *FLAGS variable, or
15307 # (2) before a word containing "conftest.", or (3) at the end.
15308 # Note that $ac_compile itself does not contain backslashes and begins
15309 # with a dollar sign (not a hyphen), so the echo should work correctly.
15310 # The option is referenced via a variable to avoid confusing sed.
15311 lt_compile=`echo "$ac_compile" | $SED \
15312 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15313 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15314 -e 's:$: $lt_compiler_flag:'`
Reid Spencer17041682004-09-05 17:48:32 +000015315 (eval echo "\"\$as_me:15315: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015316 (eval "$lt_compile" 2>conftest.err)
15317 ac_status=$?
15318 cat conftest.err >&5
Reid Spencer17041682004-09-05 17:48:32 +000015319 echo "$as_me:15319: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015320 if (exit $ac_status) && test -s "$ac_outfile"; then
15321 # The compiler can only warn and ignore the option if not recognized
15322 # So say no if there are warnings
15323 if test ! -s conftest.err; then
15324 lt_prog_compiler_pic_works_GCJ=yes
15325 fi
15326 fi
15327 $rm conftest*
15328
15329fi
15330echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15331echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15332
15333if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15334 case $lt_prog_compiler_pic_GCJ in
15335 "" | " "*) ;;
15336 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15337 esac
15338else
15339 lt_prog_compiler_pic_GCJ=
15340 lt_prog_compiler_can_build_shared_GCJ=no
15341fi
15342
15343fi
15344case "$host_os" in
15345 # For platforms which do not support PIC, -DPIC is meaningless:
15346 *djgpp*)
15347 lt_prog_compiler_pic_GCJ=
15348 ;;
15349 *)
15350 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15351 ;;
15352esac
15353
15354echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15355echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15356if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15357 echo $ECHO_N "(cached) $ECHO_C" >&6
15358else
15359 lt_cv_prog_compiler_c_o_GCJ=no
15360 $rm -r conftest 2>/dev/null
15361 mkdir conftest
15362 cd conftest
15363 mkdir out
15364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15365
15366 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15367 # that will create temporary files in the current directory regardless of
15368 # the output directory. Thus, making CWD read-only will cause this test
15369 # to fail, enabling locking or at least warning the user not to do parallel
15370 # builds.
15371 chmod -w .
15372
15373 lt_compiler_flag="-o out/conftest2.$ac_objext"
15374 # Insert the option either (1) after the last *FLAGS variable, or
15375 # (2) before a word containing "conftest.", or (3) at the end.
15376 # Note that $ac_compile itself does not contain backslashes and begins
15377 # with a dollar sign (not a hyphen), so the echo should work correctly.
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 Spencer17041682004-09-05 17:48:32 +000015382 (eval echo "\"\$as_me:15382: $lt_compile\"" >&5)
John Criswell47fdd832003-07-14 16:52:07 +000015383 (eval "$lt_compile" 2>out/conftest.err)
15384 ac_status=$?
15385 cat out/conftest.err >&5
Reid Spencer17041682004-09-05 17:48:32 +000015386 echo "$as_me:15386: \$? = $ac_status" >&5
John Criswell47fdd832003-07-14 16:52:07 +000015387 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15388 then
15389 # The compiler can only warn and ignore the option if not recognized
15390 # So say no if there are warnings
15391 if test ! -s out/conftest.err; then
15392 lt_cv_prog_compiler_c_o_GCJ=yes
15393 fi
15394 fi
15395 chmod u+w .
15396 $rm conftest* out/*
15397 rmdir out
15398 cd ..
15399 rmdir conftest
15400 $rm conftest*
15401
15402fi
15403echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15404echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15405
15406
15407hard_links="nottested"
15408if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15409 # do not overwrite the value of need_locks provided by the user
15410 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15411echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15412 hard_links=yes
15413 $rm conftest*
15414 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15415 touch conftest.a
15416 ln conftest.a conftest.b 2>&5 || hard_links=no
15417 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15418 echo "$as_me:$LINENO: result: $hard_links" >&5
15419echo "${ECHO_T}$hard_links" >&6
15420 if test "$hard_links" = no; then
15421 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15422echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15423 need_locks=warn
15424 fi
15425else
15426 need_locks=no
15427fi
15428
15429echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15430echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15431
15432 runpath_var=
15433 allow_undefined_flag_GCJ=
15434 enable_shared_with_static_runtimes_GCJ=no
15435 archive_cmds_GCJ=
15436 archive_expsym_cmds_GCJ=
15437 old_archive_From_new_cmds_GCJ=
15438 old_archive_from_expsyms_cmds_GCJ=
15439 export_dynamic_flag_spec_GCJ=
15440 whole_archive_flag_spec_GCJ=
15441 thread_safe_flag_spec_GCJ=
15442 hardcode_libdir_flag_spec_GCJ=
15443 hardcode_libdir_flag_spec_ld_GCJ=
15444 hardcode_libdir_separator_GCJ=
15445 hardcode_direct_GCJ=no
15446 hardcode_minus_L_GCJ=no
15447 hardcode_shlibpath_var_GCJ=unsupported
15448 link_all_deplibs_GCJ=unknown
15449 hardcode_automatic_GCJ=no
15450 module_cmds_GCJ=
15451 module_expsym_cmds_GCJ=
15452 always_export_symbols_GCJ=no
15453 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15454 # include_expsyms should be a list of space-separated symbols to be *always*
15455 # included in the symbol list
15456 include_expsyms_GCJ=
15457 # exclude_expsyms can be an extended regexp of symbols to exclude
15458 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15459 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15460 # as well as any symbol that contains `d'.
15461 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15462 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15463 # platforms (ab)use it in PIC code, but their linkers get confused if
15464 # the symbol is explicitly referenced. Since portable code cannot
15465 # rely on this symbol name, it's probably fine to never include it in
15466 # preloaded symbol tables.
15467 extract_expsyms_cmds=
15468
15469 case $host_os in
15470 cygwin* | mingw* | pw32*)
15471 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15472 # When not using gcc, we currently assume that we are using
15473 # Microsoft Visual C++.
15474 if test "$GCC" != yes; then
15475 with_gnu_ld=no
15476 fi
15477 ;;
15478 openbsd*)
15479 with_gnu_ld=no
15480 ;;
15481 esac
15482
15483 ld_shlibs_GCJ=yes
15484 if test "$with_gnu_ld" = yes; then
15485 # If archive_cmds runs LD, not CC, wlarc should be empty
15486 wlarc='${wl}'
15487
15488 # See if GNU ld supports shared libraries.
15489 case $host_os in
15490 aix3* | aix4* | aix5*)
15491 # On AIX/PPC, the GNU linker is very broken
15492 if test "$host_cpu" != ia64; then
15493 ld_shlibs_GCJ=no
15494 cat <<EOF 1>&2
15495
15496*** Warning: the GNU linker, at least up to release 2.9.1, is reported
15497*** to be unable to reliably create shared libraries on AIX.
15498*** Therefore, libtool is disabling shared libraries support. If you
15499*** really care for shared libraries, you may want to modify your PATH
15500*** so that a non-GNU linker is found, and then restart.
15501
15502EOF
15503 fi
15504 ;;
15505
15506 amigaos*)
15507 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)'
15508 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15509 hardcode_minus_L_GCJ=yes
15510
15511 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15512 # that the semantics of dynamic libraries on AmigaOS, at least up
15513 # to version 4, is to share data among multiple programs linked
15514 # with the same dynamic library. Since this doesn't match the
15515 # behavior of shared libraries on other platforms, we can't use
15516 # them.
15517 ld_shlibs_GCJ=no
15518 ;;
15519
15520 beos*)
15521 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15522 allow_undefined_flag_GCJ=unsupported
15523 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15524 # support --undefined. This deserves some investigation. FIXME
15525 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15526 else
15527 ld_shlibs_GCJ=no
15528 fi
15529 ;;
15530
15531 cygwin* | mingw* | pw32*)
15532 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15533 # as there is no search path for DLLs.
15534 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15535 allow_undefined_flag_GCJ=unsupported
15536 always_export_symbols_GCJ=no
15537 enable_shared_with_static_runtimes_GCJ=yes
15538 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15539
15540 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15541 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15542 # If the export-symbols file already is a .def file (1st line
15543 # is EXPORTS), use it as is; otherwise, prepend...
15544 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15545 cp $export_symbols $output_objdir/$soname.def;
15546 else
15547 echo EXPORTS > $output_objdir/$soname.def;
15548 cat $export_symbols >> $output_objdir/$soname.def;
15549 fi~
15550 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15551 else
15552 ld_shlibs=no
15553 fi
15554 ;;
15555
15556 netbsd*)
15557 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15558 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15559 wlarc=
15560 else
15561 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15562 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15563 fi
15564 ;;
15565
15566 solaris* | sysv5*)
15567 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15568 ld_shlibs_GCJ=no
15569 cat <<EOF 1>&2
15570
15571*** Warning: The releases 2.8.* of the GNU linker cannot reliably
15572*** create shared libraries on Solaris systems. Therefore, libtool
15573*** is disabling shared libraries support. We urge you to upgrade GNU
15574*** binutils to release 2.9.1 or newer. Another option is to modify
15575*** your PATH or compiler configuration so that the native linker is
15576*** used, and then restart.
15577
15578EOF
15579 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15580 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15581 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15582 else
15583 ld_shlibs_GCJ=no
15584 fi
15585 ;;
15586
15587 sunos4*)
15588 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15589 wlarc=
15590 hardcode_direct_GCJ=yes
15591 hardcode_shlibpath_var_GCJ=no
15592 ;;
15593
15594 *)
15595 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15596 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15597 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15598 else
15599 ld_shlibs_GCJ=no
15600 fi
15601 ;;
15602 esac
15603
15604 if test "$ld_shlibs_GCJ" = yes; then
15605 runpath_var=LD_RUN_PATH
15606 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15607 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15608 # ancient GNU ld didn't support --whole-archive et. al.
15609 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15610 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15611 else
15612 whole_archive_flag_spec_GCJ=
15613 fi
15614 fi
15615 else
15616 # PORTME fill in a description of your system's linker (not GNU ld)
15617 case $host_os in
15618 aix3*)
15619 allow_undefined_flag_GCJ=unsupported
15620 always_export_symbols_GCJ=yes
15621 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'
15622 # Note: this linker hardcodes the directories in LIBPATH if there
15623 # are no directories specified by -L.
15624 hardcode_minus_L_GCJ=yes
15625 if test "$GCC" = yes && test -z "$link_static_flag"; then
15626 # Neither direct hardcoding nor static linking is supported with a
15627 # broken collect2.
15628 hardcode_direct_GCJ=unsupported
15629 fi
15630 ;;
15631
15632 aix4* | aix5*)
15633 if test "$host_cpu" = ia64; then
15634 # On IA64, the linker does run time linking by default, so we don't
15635 # have to do anything special.
15636 aix_use_runtimelinking=no
15637 exp_sym_flag='-Bexport'
15638 no_entry_flag=""
15639 else
15640 # If we're using GNU nm, then we don't want the "-C" option.
15641 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15642 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15643 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'
15644 else
15645 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'
15646 fi
15647 aix_use_runtimelinking=no
15648
15649 # Test if we are trying to use run time linking or normal
15650 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15651 # need to do runtime linking.
15652 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15653 for ld_flag in $LDFLAGS; do
15654 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15655 aix_use_runtimelinking=yes
15656 break
15657 fi
15658 done
15659 esac
15660
15661 exp_sym_flag='-bexport'
15662 no_entry_flag='-bnoentry'
15663 fi
15664
15665 # When large executables or shared objects are built, AIX ld can
15666 # have problems creating the table of contents. If linking a library
15667 # or program results in "error TOC overflow" add -mminimal-toc to
15668 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15669 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15670
15671 archive_cmds_GCJ=''
15672 hardcode_direct_GCJ=yes
15673 hardcode_libdir_separator_GCJ=':'
15674 link_all_deplibs_GCJ=yes
15675
15676 if test "$GCC" = yes; then
15677 case $host_os in aix4.012|aix4.012.*)
15678 # We only want to do this on AIX 4.2 and lower, the check
15679 # below for broken collect2 doesn't work under 4.3+
15680 collect2name=`${CC} -print-prog-name=collect2`
15681 if test -f "$collect2name" && \
15682 strings "$collect2name" | grep resolve_lib_name >/dev/null
15683 then
15684 # We have reworked collect2
15685 hardcode_direct_GCJ=yes
15686 else
15687 # We have old collect2
15688 hardcode_direct_GCJ=unsupported
15689 # It fails to find uninstalled libraries when the uninstalled
15690 # path is not listed in the libpath. Setting hardcode_minus_L
15691 # to unsupported forces relinking
15692 hardcode_minus_L_GCJ=yes
15693 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15694 hardcode_libdir_separator_GCJ=
15695 fi
15696 esac
15697 shared_flag='-shared'
15698 else
15699 # not using gcc
15700 if test "$host_cpu" = ia64; then
15701 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15702 # chokes on -Wl,-G. The following line is correct:
15703 shared_flag='-G'
15704 else
15705 if test "$aix_use_runtimelinking" = yes; then
15706 shared_flag='${wl}-G'
15707 else
15708 shared_flag='${wl}-bM:SRE'
15709 fi
15710 fi
15711 fi
15712
15713 # It seems that -bexpall does not export symbols beginning with
15714 # underscore (_), so it is better to generate a list of symbols to export.
15715 always_export_symbols_GCJ=yes
15716 if test "$aix_use_runtimelinking" = yes; then
15717 # Warning - without using the other runtime loading flags (-brtl),
15718 # -berok will link without error, but may produce a broken library.
15719 allow_undefined_flag_GCJ='-berok'
15720 # Determine the default libpath from the value encoded in an empty executable.
15721 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015722/* confdefs.h. */
15723_ACEOF
15724cat confdefs.h >>conftest.$ac_ext
15725cat >>conftest.$ac_ext <<_ACEOF
15726/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015727
John Criswell47fdd832003-07-14 16:52:07 +000015728int
15729main ()
15730{
15731
15732 ;
15733 return 0;
15734}
15735_ACEOF
15736rm -f conftest.$ac_objext conftest$ac_exeext
15737if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000015738 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015739 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000015740 grep -v '^ *+' conftest.er1 >conftest.err
15741 rm -f conftest.er1
15742 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000015745 { ac_try='test -z "$ac_c_werror_flag"
15746 || test ! -s conftest.err'
15747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15748 (eval $ac_try) 2>&5
15749 ac_status=$?
15750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751 (exit $ac_status); }; } &&
15752 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15754 (eval $ac_try) 2>&5
15755 ac_status=$?
15756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15757 (exit $ac_status); }; }; then
15758
15759aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15760}'`
15761# Check for a 64-bit object if we didn't find anything.
15762if 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; }
15763}'`; fi
15764else
15765 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015766sed 's/^/| /' conftest.$ac_ext >&5
15767
John Criswell47fdd832003-07-14 16:52:07 +000015768fi
Reid Spencer17041682004-09-05 17:48:32 +000015769rm -f conftest.err conftest.$ac_objext \
15770 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015771if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15772
15773 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15774 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"
15775 else
15776 if test "$host_cpu" = ia64; then
15777 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15778 allow_undefined_flag_GCJ="-z nodefs"
15779 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"
15780 else
15781 # Determine the default libpath from the value encoded in an empty executable.
15782 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000015783/* confdefs.h. */
15784_ACEOF
15785cat confdefs.h >>conftest.$ac_ext
15786cat >>conftest.$ac_ext <<_ACEOF
15787/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000015788
John Criswell47fdd832003-07-14 16:52:07 +000015789int
15790main ()
15791{
15792
15793 ;
15794 return 0;
15795}
15796_ACEOF
15797rm -f conftest.$ac_objext conftest$ac_exeext
15798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000015799 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000015800 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000015801 grep -v '^ *+' conftest.er1 >conftest.err
15802 rm -f conftest.er1
15803 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000015804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15805 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000015806 { ac_try='test -z "$ac_c_werror_flag"
15807 || test ! -s conftest.err'
15808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15809 (eval $ac_try) 2>&5
15810 ac_status=$?
15811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15812 (exit $ac_status); }; } &&
15813 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000015814 { (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); }; }; then
15819
15820aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15821}'`
15822# Check for a 64-bit object if we didn't find anything.
15823if 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; }
15824}'`; fi
15825else
15826 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000015827sed 's/^/| /' conftest.$ac_ext >&5
15828
John Criswell47fdd832003-07-14 16:52:07 +000015829fi
Reid Spencer17041682004-09-05 17:48:32 +000015830rm -f conftest.err conftest.$ac_objext \
15831 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000015832if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15833
15834 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15835 # Warning - without using the other run time loading flags,
15836 # -berok will link without error, but may produce a broken library.
15837 no_undefined_flag_GCJ=' ${wl}-bernotok'
15838 allow_undefined_flag_GCJ=' ${wl}-berok'
15839 # -bexpall does not export symbols beginning with underscore (_)
15840 always_export_symbols_GCJ=yes
15841 # Exported symbols can be pulled into shared objects from archives
15842 whole_archive_flag_spec_GCJ=' '
15843 archive_cmds_need_lc_GCJ=yes
15844 # This is similar to how AIX traditionally builds it's shared libraries.
15845 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'
15846 fi
15847 fi
15848 ;;
15849
15850 amigaos*)
15851 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)'
15852 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15853 hardcode_minus_L_GCJ=yes
15854 # see comment about different semantics on the GNU ld section
15855 ld_shlibs_GCJ=no
15856 ;;
15857
15858 bsdi4*)
15859 export_dynamic_flag_spec_GCJ=-rdynamic
15860 ;;
15861
15862 cygwin* | mingw* | pw32*)
15863 # When not using gcc, we currently assume that we are using
15864 # Microsoft Visual C++.
15865 # hardcode_libdir_flag_spec is actually meaningless, as there is
15866 # no search path for DLLs.
15867 hardcode_libdir_flag_spec_GCJ=' '
15868 allow_undefined_flag_GCJ=unsupported
15869 # Tell ltmain to make .lib files, not .a files.
15870 libext=lib
15871 # Tell ltmain to make .dll files, not .so files.
15872 shrext=".dll"
15873 # FIXME: Setting linknames here is a bad hack.
15874 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15875 # The linker will automatically build a .lib file if we build a DLL.
15876 old_archive_From_new_cmds_GCJ='true'
15877 # FIXME: Should let the user specify the lib program.
15878 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15879 fix_srcfile_path='`cygpath -w "$srcfile"`'
15880 enable_shared_with_static_runtimes_GCJ=yes
15881 ;;
15882
15883 darwin* | rhapsody*)
15884 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
15885 archive_cmds_need_lc_GCJ=no
15886 case "$host_os" in
15887 rhapsody* | darwin1.[012])
15888 allow_undefined_flag_GCJ='-undefined suppress'
15889 ;;
15890 *) # Darwin 1.3 on
15891 test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15892 ;;
15893 esac
15894 # FIXME: Relying on posixy $() will cause problems for
15895 # cross-compilation, but unfortunately the echo tests do not
15896 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
15897 # `"' quotes if we put them in here... so don't!
15898 lt_int_apple_cc_single_mod=no
15899 output_verbose_link_cmd='echo'
15900 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15901 lt_int_apple_cc_single_mod=yes
15902 fi
15903 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15904 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15905 else
15906 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'
15907 fi
15908 module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
15909 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15910 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15911 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}'
15912 else
15913 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}'
15914 fi
15915 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}'
15916 hardcode_direct_GCJ=no
15917 hardcode_automatic_GCJ=yes
15918 hardcode_shlibpath_var_GCJ=unsupported
15919 whole_archive_flag_spec_GCJ='-all_load $convenience'
15920 link_all_deplibs_GCJ=yes
15921 fi
15922 ;;
15923
15924 dgux*)
15925 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15926 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15927 hardcode_shlibpath_var_GCJ=no
15928 ;;
15929
15930 freebsd1*)
15931 ld_shlibs_GCJ=no
15932 ;;
15933
15934 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15935 # support. Future versions do this automatically, but an explicit c++rt0.o
15936 # does not break anything, and helps significantly (at the cost of a little
15937 # extra space).
15938 freebsd2.2*)
15939 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15940 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15941 hardcode_direct_GCJ=yes
15942 hardcode_shlibpath_var_GCJ=no
15943 ;;
15944
15945 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15946 freebsd2*)
15947 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15948 hardcode_direct_GCJ=yes
15949 hardcode_minus_L_GCJ=yes
15950 hardcode_shlibpath_var_GCJ=no
15951 ;;
15952
15953 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15954 freebsd*)
15955 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15956 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15957 hardcode_direct_GCJ=yes
15958 hardcode_shlibpath_var_GCJ=no
15959 ;;
15960
15961 hpux9*)
15962 if test "$GCC" = yes; then
15963 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'
15964 else
15965 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'
15966 fi
15967 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15968 hardcode_libdir_separator_GCJ=:
15969 hardcode_direct_GCJ=yes
15970
15971 # hardcode_minus_L: Not really in the search PATH,
15972 # but as the default location of the library.
15973 hardcode_minus_L_GCJ=yes
15974 export_dynamic_flag_spec_GCJ='${wl}-E'
15975 ;;
15976
15977 hpux10* | hpux11*)
15978 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15979 case "$host_cpu" in
15980 hppa*64*|ia64*)
15981 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15982 ;;
15983 *)
15984 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15985 ;;
15986 esac
15987 else
15988 case "$host_cpu" in
15989 hppa*64*|ia64*)
15990 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15991 ;;
15992 *)
15993 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15994 ;;
15995 esac
15996 fi
15997 if test "$with_gnu_ld" = no; then
15998 case "$host_cpu" in
15999 hppa*64*)
16000 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16001 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16002 hardcode_libdir_separator_GCJ=:
16003 hardcode_direct_GCJ=no
16004 hardcode_shlibpath_var_GCJ=no
16005 ;;
16006 ia64*)
16007 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16008 hardcode_direct_GCJ=no
16009 hardcode_shlibpath_var_GCJ=no
16010
16011 # hardcode_minus_L: Not really in the search PATH,
16012 # but as the default location of the library.
16013 hardcode_minus_L_GCJ=yes
16014 ;;
16015 *)
16016 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16017 hardcode_libdir_separator_GCJ=:
16018 hardcode_direct_GCJ=yes
16019 export_dynamic_flag_spec_GCJ='${wl}-E'
16020
16021 # hardcode_minus_L: Not really in the search PATH,
16022 # but as the default location of the library.
16023 hardcode_minus_L_GCJ=yes
16024 ;;
16025 esac
16026 fi
16027 ;;
16028
16029 irix5* | irix6* | nonstopux*)
16030 if test "$GCC" = yes; then
16031 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'
16032 else
16033 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'
16034 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16035 fi
16036 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16037 hardcode_libdir_separator_GCJ=:
16038 link_all_deplibs_GCJ=yes
16039 ;;
16040
16041 netbsd*)
16042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16043 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16044 else
16045 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16046 fi
16047 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16048 hardcode_direct_GCJ=yes
16049 hardcode_shlibpath_var_GCJ=no
16050 ;;
16051
16052 newsos6)
16053 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16054 hardcode_direct_GCJ=yes
16055 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16056 hardcode_libdir_separator_GCJ=:
16057 hardcode_shlibpath_var_GCJ=no
16058 ;;
16059
16060 openbsd*)
16061 hardcode_direct_GCJ=yes
16062 hardcode_shlibpath_var_GCJ=no
16063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16064 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16065 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16066 export_dynamic_flag_spec_GCJ='${wl}-E'
16067 else
16068 case $host_os in
16069 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16070 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16071 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16072 ;;
16073 *)
16074 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16075 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16076 ;;
16077 esac
16078 fi
16079 ;;
16080
16081 os2*)
16082 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16083 hardcode_minus_L_GCJ=yes
16084 allow_undefined_flag_GCJ=unsupported
16085 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'
16086 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16087 ;;
16088
16089 osf3*)
16090 if test "$GCC" = yes; then
16091 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16092 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'
16093 else
16094 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16095 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'
16096 fi
16097 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16098 hardcode_libdir_separator_GCJ=:
16099 ;;
16100
16101 osf4* | osf5*) # as osf3* with the addition of -msym flag
16102 if test "$GCC" = yes; then
16103 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16104 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'
16105 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16106 else
16107 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16108 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'
16109 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~
16110 $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'
16111
16112 # Both c and cxx compiler support -rpath directly
16113 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16114 fi
16115 hardcode_libdir_separator_GCJ=:
16116 ;;
16117
16118 sco3.2v5*)
16119 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16120 hardcode_shlibpath_var_GCJ=no
16121 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16122 runpath_var=LD_RUN_PATH
16123 hardcode_runpath_var=yes
16124 ;;
16125
16126 solaris*)
16127 no_undefined_flag_GCJ=' -z text'
16128 if test "$GCC" = yes; then
16129 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16130 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16131 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16132 else
16133 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16134 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16135 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16136 fi
16137 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16138 hardcode_shlibpath_var_GCJ=no
16139 case $host_os in
16140 solaris2.[0-5] | solaris2.[0-5].*) ;;
16141 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16142 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16143 esac
16144 link_all_deplibs_GCJ=yes
16145 ;;
16146
16147 sunos4*)
16148 if test "x$host_vendor" = xsequent; then
16149 # Use $CC to link under sequent, because it throws in some extra .o
16150 # files that make .init and .fini sections work.
16151 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16152 else
16153 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16154 fi
16155 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16156 hardcode_direct_GCJ=yes
16157 hardcode_minus_L_GCJ=yes
16158 hardcode_shlibpath_var_GCJ=no
16159 ;;
16160
16161 sysv4)
16162 case $host_vendor in
16163 sni)
16164 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16165 hardcode_direct_GCJ=yes # is this really true???
16166 ;;
16167 siemens)
16168 ## LD is ld it makes a PLAMLIB
16169 ## CC just makes a GrossModule.
16170 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16171 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16172 hardcode_direct_GCJ=no
16173 ;;
16174 motorola)
16175 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16176 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16177 ;;
16178 esac
16179 runpath_var='LD_RUN_PATH'
16180 hardcode_shlibpath_var_GCJ=no
16181 ;;
16182
16183 sysv4.3*)
16184 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16185 hardcode_shlibpath_var_GCJ=no
16186 export_dynamic_flag_spec_GCJ='-Bexport'
16187 ;;
16188
16189 sysv4*MP*)
16190 if test -d /usr/nec; then
16191 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16192 hardcode_shlibpath_var_GCJ=no
16193 runpath_var=LD_RUN_PATH
16194 hardcode_runpath_var=yes
16195 ld_shlibs_GCJ=yes
16196 fi
16197 ;;
16198
16199 sysv4.2uw2*)
16200 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16201 hardcode_direct_GCJ=yes
16202 hardcode_minus_L_GCJ=no
16203 hardcode_shlibpath_var_GCJ=no
16204 hardcode_runpath_var=yes
16205 runpath_var=LD_RUN_PATH
16206 ;;
16207
16208 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16209 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16210 if test "$GCC" = yes; then
16211 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16212 else
16213 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16214 fi
16215 runpath_var='LD_RUN_PATH'
16216 hardcode_shlibpath_var_GCJ=no
16217 ;;
16218
16219 sysv5*)
16220 no_undefined_flag_GCJ=' -z text'
16221 # $CC -shared without GNU ld will not create a library from C++
16222 # object files and a static libstdc++, better avoid it by now
16223 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16224 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16225 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16226 hardcode_libdir_flag_spec_GCJ=
16227 hardcode_shlibpath_var_GCJ=no
16228 runpath_var='LD_RUN_PATH'
16229 ;;
16230
16231 uts4*)
16232 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16233 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16234 hardcode_shlibpath_var_GCJ=no
16235 ;;
16236
16237 *)
16238 ld_shlibs_GCJ=no
16239 ;;
16240 esac
16241 fi
16242
16243echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16244echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16245test "$ld_shlibs_GCJ" = no && can_build_shared=no
16246
16247variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16248if test "$GCC" = yes; then
16249 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16250fi
16251
16252#
16253# Do we need to explicitly link libc?
16254#
16255case "x$archive_cmds_need_lc_GCJ" in
16256x|xyes)
16257 # Assume -lc should be added
16258 archive_cmds_need_lc_GCJ=yes
16259
16260 if test "$enable_shared" = yes && test "$GCC" = yes; then
16261 case $archive_cmds_GCJ in
16262 *'~'*)
16263 # FIXME: we may have to deal with multi-command sequences.
16264 ;;
16265 '$CC '*)
16266 # Test whether the compiler implicitly links with -lc since on some
16267 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16268 # to ld, don't add -lc before -lgcc.
16269 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16270echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16271 $rm conftest*
16272 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16273
16274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16275 (eval $ac_compile) 2>&5
16276 ac_status=$?
16277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16278 (exit $ac_status); } 2>conftest.err; then
16279 soname=conftest
16280 lib=conftest
16281 libobjs=conftest.$ac_objext
16282 deplibs=
16283 wl=$lt_prog_compiler_wl_GCJ
16284 compiler_flags=-v
16285 linker_flags=-v
16286 verstring=
16287 output_objdir=.
16288 libname=conftest
16289 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16290 allow_undefined_flag_GCJ=
16291 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16292 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16293 ac_status=$?
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }
16296 then
16297 archive_cmds_need_lc_GCJ=no
16298 else
16299 archive_cmds_need_lc_GCJ=yes
16300 fi
16301 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16302 else
16303 cat conftest.err 1>&5
16304 fi
16305 $rm conftest*
16306 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16307echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16308 ;;
16309 esac
16310 fi
16311 ;;
16312esac
16313
16314echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16315echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16316hardcode_action_GCJ=
16317if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16318 test -n "$runpath_var GCJ" || \
16319 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16320
16321 # We can hardcode non-existant directories.
16322 if test "$hardcode_direct_GCJ" != no &&
16323 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16324 # have to relink, otherwise we might link with an installed library
16325 # when we should be linking with a yet-to-be-installed one
16326 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16327 test "$hardcode_minus_L_GCJ" != no; then
16328 # Linking always hardcodes the temporary library directory.
16329 hardcode_action_GCJ=relink
16330 else
16331 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16332 hardcode_action_GCJ=immediate
16333 fi
16334else
16335 # We cannot hardcode anything, or else we can only hardcode existing
16336 # directories.
16337 hardcode_action_GCJ=unsupported
16338fi
16339echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16340echo "${ECHO_T}$hardcode_action_GCJ" >&6
16341
16342if test "$hardcode_action_GCJ" = relink; then
16343 # Fast installation is not supported
16344 enable_fast_install=no
16345elif test "$shlibpath_overrides_runpath" = yes ||
16346 test "$enable_shared" = no; then
16347 # Fast installation is not necessary
16348 enable_fast_install=needless
16349fi
16350
16351striplib=
16352old_striplib=
16353echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16354echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16355if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16356 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16357 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16358 echo "$as_me:$LINENO: result: yes" >&5
16359echo "${ECHO_T}yes" >&6
16360else
16361# FIXME - insert some real tests, host_os isn't really good enough
16362 case $host_os in
16363 darwin*)
16364 if test -n "$STRIP" ; then
16365 striplib="$STRIP -x"
16366 echo "$as_me:$LINENO: result: yes" >&5
16367echo "${ECHO_T}yes" >&6
16368 else
16369 echo "$as_me:$LINENO: result: no" >&5
16370echo "${ECHO_T}no" >&6
16371fi
16372 ;;
16373 *)
16374 echo "$as_me:$LINENO: result: no" >&5
16375echo "${ECHO_T}no" >&6
16376 ;;
16377 esac
16378fi
16379
16380echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16381echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16382library_names_spec=
16383libname_spec='lib$name'
16384soname_spec=
16385shrext=".so"
16386postinstall_cmds=
16387postuninstall_cmds=
16388finish_cmds=
16389finish_eval=
16390shlibpath_var=
16391shlibpath_overrides_runpath=unknown
16392version_type=none
16393dynamic_linker="$host_os ld.so"
16394sys_lib_dlsearch_path_spec="/lib /usr/lib"
16395if test "$GCC" = yes; then
16396 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16397 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16398 # if the path contains ";" then we assume it to be the separator
16399 # otherwise default to the standard path separator (i.e. ":") - it is
16400 # assumed that no part of a normal pathname contains ";" but that should
16401 # okay in the real world where ";" in dirpaths is itself problematic.
16402 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16403 else
16404 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16405 fi
16406else
16407 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16408fi
16409need_lib_prefix=unknown
16410hardcode_into_libs=no
16411
16412# when you set need_version to no, make sure it does not cause -set_version
16413# flags to be left without arguments
16414need_version=unknown
16415
16416case $host_os in
16417aix3*)
16418 version_type=linux
16419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16420 shlibpath_var=LIBPATH
16421
16422 # AIX 3 has no versioning support, so we append a major version to the name.
16423 soname_spec='${libname}${release}${shared_ext}$major'
16424 ;;
16425
16426aix4* | aix5*)
16427 version_type=linux
16428 need_lib_prefix=no
16429 need_version=no
16430 hardcode_into_libs=yes
16431 if test "$host_cpu" = ia64; then
16432 # AIX 5 supports IA64
16433 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16434 shlibpath_var=LD_LIBRARY_PATH
16435 else
16436 # With GCC up to 2.95.x, collect2 would create an import file
16437 # for dependence libraries. The import file would start with
16438 # the line `#! .'. This would cause the generated library to
16439 # depend on `.', always an invalid library. This was fixed in
16440 # development snapshots of GCC prior to 3.0.
16441 case $host_os in
16442 aix4 | aix4.[01] | aix4.[01].*)
16443 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16444 echo ' yes '
16445 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16446 :
16447 else
16448 can_build_shared=no
16449 fi
16450 ;;
16451 esac
16452 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16453 # soname into executable. Probably we can add versioning support to
16454 # collect2, so additional links can be useful in future.
16455 if test "$aix_use_runtimelinking" = yes; then
16456 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16457 # instead of lib<name>.a to let people know that these are not
16458 # typical AIX shared libraries.
16459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16460 else
16461 # We preserve .a as extension for shared libraries through AIX4.2
16462 # and later when we are not doing run time linking.
16463 library_names_spec='${libname}${release}.a $libname.a'
16464 soname_spec='${libname}${release}${shared_ext}$major'
16465 fi
16466 shlibpath_var=LIBPATH
16467 fi
16468 ;;
16469
16470amigaos*)
16471 library_names_spec='$libname.ixlibrary $libname.a'
16472 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16473 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'
16474 ;;
16475
16476beos*)
16477 library_names_spec='${libname}${shared_ext}'
16478 dynamic_linker="$host_os ld.so"
16479 shlibpath_var=LIBRARY_PATH
16480 ;;
16481
16482bsdi4*)
16483 version_type=linux
16484 need_version=no
16485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16486 soname_spec='${libname}${release}${shared_ext}$major'
16487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16488 shlibpath_var=LD_LIBRARY_PATH
16489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16491 # the default ld.so.conf also contains /usr/contrib/lib and
16492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16493 # libtool to hard-code these into programs
16494 ;;
16495
16496cygwin* | mingw* | pw32*)
16497 version_type=windows
16498 shrext=".dll"
16499 need_version=no
16500 need_lib_prefix=no
16501
16502 case $GCC,$host_os in
16503 yes,cygwin* | yes,mingw* | yes,pw32*)
16504 library_names_spec='$libname.dll.a'
16505 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16506 postinstall_cmds='base_file=`basename \${file}`~
16507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16508 dldir=$destdir/`dirname \$dlpath`~
16509 test -d \$dldir || mkdir -p \$dldir~
16510 $install_prog $dir/$dlname \$dldir/$dlname'
16511 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16512 dlpath=$dir/\$dldll~
16513 $rm \$dlpath'
16514 shlibpath_overrides_runpath=yes
16515
16516 case $host_os in
16517 cygwin*)
16518 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16519 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16520 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16521 ;;
16522 mingw*)
16523 # MinGW DLLs use traditional 'lib' prefix
16524 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16525 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16526 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16527 # It is most probably a Windows format PATH printed by
16528 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16529 # path with ; separators, and with drive letters. We can handle the
16530 # drive letters (cygwin fileutils understands them), so leave them,
16531 # especially as we might pass files found there to a mingw objdump,
16532 # which wouldn't understand a cygwinified path. Ahh.
16533 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16534 else
16535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16536 fi
16537 ;;
16538 pw32*)
16539 # pw32 DLLs use 'pw' prefix rather than 'lib'
16540 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16541 ;;
16542 esac
16543 ;;
16544
16545 *)
16546 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16547 ;;
16548 esac
16549 dynamic_linker='Win32 ld.exe'
16550 # FIXME: first we should search . and the directory the executable is in
16551 shlibpath_var=PATH
16552 ;;
16553
16554darwin* | rhapsody*)
16555 dynamic_linker="$host_os dyld"
16556 version_type=darwin
16557 need_lib_prefix=no
16558 need_version=no
16559 # FIXME: Relying on posixy $() will cause problems for
16560 # cross-compilation, but unfortunately the echo tests do not
16561 # yet detect zsh echo's removal of \ escapes.
16562 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16563 soname_spec='${libname}${release}${major}$shared_ext'
16564 shlibpath_overrides_runpath=yes
16565 shlibpath_var=DYLD_LIBRARY_PATH
16566 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16567 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16568 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16569 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"`
16570 fi
16571 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16572 ;;
16573
16574dgux*)
16575 version_type=linux
16576 need_lib_prefix=no
16577 need_version=no
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16579 soname_spec='${libname}${release}${shared_ext}$major'
16580 shlibpath_var=LD_LIBRARY_PATH
16581 ;;
16582
16583freebsd1*)
16584 dynamic_linker=no
16585 ;;
16586
16587freebsd*)
16588 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16589 version_type=freebsd-$objformat
16590 case $version_type in
16591 freebsd-elf*)
16592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16593 need_version=no
16594 need_lib_prefix=no
16595 ;;
16596 freebsd-*)
16597 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16598 need_version=yes
16599 ;;
16600 esac
16601 shlibpath_var=LD_LIBRARY_PATH
16602 case $host_os in
16603 freebsd2*)
16604 shlibpath_overrides_runpath=yes
16605 ;;
16606 freebsd3.01* | freebsdelf3.01*)
16607 shlibpath_overrides_runpath=yes
16608 hardcode_into_libs=yes
16609 ;;
16610 *) # from 3.2 on
16611 shlibpath_overrides_runpath=no
16612 hardcode_into_libs=yes
16613 ;;
16614 esac
16615 ;;
16616
16617gnu*)
16618 version_type=linux
16619 need_lib_prefix=no
16620 need_version=no
16621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16622 soname_spec='${libname}${release}${shared_ext}$major'
16623 shlibpath_var=LD_LIBRARY_PATH
16624 hardcode_into_libs=yes
16625 ;;
16626
16627hpux9* | hpux10* | hpux11*)
16628 # Give a soname corresponding to the major version so that dld.sl refuses to
16629 # link against other versions.
16630 version_type=sunos
16631 need_lib_prefix=no
16632 need_version=no
16633 case "$host_cpu" in
16634 ia64*)
16635 shrext='.so'
16636 hardcode_into_libs=yes
16637 dynamic_linker="$host_os dld.so"
16638 shlibpath_var=LD_LIBRARY_PATH
16639 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16641 soname_spec='${libname}${release}${shared_ext}$major'
16642 if test "X$HPUX_IA64_MODE" = X32; then
16643 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16644 else
16645 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16646 fi
16647 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16648 ;;
16649 hppa*64*)
16650 shrext='.sl'
16651 hardcode_into_libs=yes
16652 dynamic_linker="$host_os dld.sl"
16653 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16654 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16656 soname_spec='${libname}${release}${shared_ext}$major'
16657 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16659 ;;
16660 *)
16661 shrext='.sl'
16662 dynamic_linker="$host_os dld.sl"
16663 shlibpath_var=SHLIB_PATH
16664 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16666 soname_spec='${libname}${release}${shared_ext}$major'
16667 ;;
16668 esac
16669 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16670 postinstall_cmds='chmod 555 $lib'
16671 ;;
16672
16673irix5* | irix6* | nonstopux*)
16674 case $host_os in
16675 nonstopux*) version_type=nonstopux ;;
16676 *)
16677 if test "$lt_cv_prog_gnu_ld" = yes; then
16678 version_type=linux
16679 else
16680 version_type=irix
16681 fi ;;
16682 esac
16683 need_lib_prefix=no
16684 need_version=no
16685 soname_spec='${libname}${release}${shared_ext}$major'
16686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16687 case $host_os in
16688 irix5* | nonstopux*)
16689 libsuff= shlibsuff=
16690 ;;
16691 *)
16692 case $LD in # libtool.m4 will add one of these switches to LD
16693 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16694 libsuff= shlibsuff= libmagic=32-bit;;
16695 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16696 libsuff=32 shlibsuff=N32 libmagic=N32;;
16697 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16698 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16699 *) libsuff= shlibsuff= libmagic=never-match;;
16700 esac
16701 ;;
16702 esac
16703 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16704 shlibpath_overrides_runpath=no
16705 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16706 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16707 hardcode_into_libs=yes
16708 ;;
16709
16710# No shared lib support for Linux oldld, aout, or coff.
16711linux*oldld* | linux*aout* | linux*coff*)
16712 dynamic_linker=no
16713 ;;
16714
16715# This must be Linux ELF.
16716linux*)
16717 version_type=linux
16718 need_lib_prefix=no
16719 need_version=no
16720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16721 soname_spec='${libname}${release}${shared_ext}$major'
16722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16723 shlibpath_var=LD_LIBRARY_PATH
16724 shlibpath_overrides_runpath=no
16725 # This implies no fast_install, which is unacceptable.
16726 # Some rework will be needed to allow for fast_install
16727 # before this can be enabled.
16728 hardcode_into_libs=yes
16729
16730 # We used to test for /lib/ld.so.1 and disable shared libraries on
16731 # powerpc, because MkLinux only supported shared libraries with the
16732 # GNU dynamic linker. Since this was broken with cross compilers,
16733 # most powerpc-linux boxes support dynamic linking these days and
16734 # people can always --disable-shared, the test was removed, and we
16735 # assume the GNU/Linux dynamic linker is in use.
16736 dynamic_linker='GNU/Linux ld.so'
16737 ;;
16738
16739netbsd*)
16740 version_type=sunos
16741 need_lib_prefix=no
16742 need_version=no
16743 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16745 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16746 dynamic_linker='NetBSD (a.out) ld.so'
16747 else
16748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16749 soname_spec='${libname}${release}${shared_ext}$major'
16750 dynamic_linker='NetBSD ld.elf_so'
16751 fi
16752 shlibpath_var=LD_LIBRARY_PATH
16753 shlibpath_overrides_runpath=yes
16754 hardcode_into_libs=yes
16755 ;;
16756
16757newsos6)
16758 version_type=linux
16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16760 shlibpath_var=LD_LIBRARY_PATH
16761 shlibpath_overrides_runpath=yes
16762 ;;
16763
16764nto-qnx)
16765 version_type=linux
16766 need_lib_prefix=no
16767 need_version=no
16768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16769 soname_spec='${libname}${release}${shared_ext}$major'
16770 shlibpath_var=LD_LIBRARY_PATH
16771 shlibpath_overrides_runpath=yes
16772 ;;
16773
16774openbsd*)
16775 version_type=sunos
16776 need_lib_prefix=no
16777 need_version=no
16778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16780 shlibpath_var=LD_LIBRARY_PATH
16781 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16782 case $host_os in
16783 openbsd2.[89] | openbsd2.[89].*)
16784 shlibpath_overrides_runpath=no
16785 ;;
16786 *)
16787 shlibpath_overrides_runpath=yes
16788 ;;
16789 esac
16790 else
16791 shlibpath_overrides_runpath=yes
16792 fi
16793 ;;
16794
16795os2*)
16796 libname_spec='$name'
16797 shrext=".dll"
16798 need_lib_prefix=no
16799 library_names_spec='$libname${shared_ext} $libname.a'
16800 dynamic_linker='OS/2 ld.exe'
16801 shlibpath_var=LIBPATH
16802 ;;
16803
16804osf3* | osf4* | osf5*)
16805 version_type=osf
16806 need_lib_prefix=no
16807 need_version=no
16808 soname_spec='${libname}${release}${shared_ext}$major'
16809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16810 shlibpath_var=LD_LIBRARY_PATH
16811 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16812 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16813 ;;
16814
16815sco3.2v5*)
16816 version_type=osf
16817 soname_spec='${libname}${release}${shared_ext}$major'
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16819 shlibpath_var=LD_LIBRARY_PATH
16820 ;;
16821
16822solaris*)
16823 version_type=linux
16824 need_lib_prefix=no
16825 need_version=no
16826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16827 soname_spec='${libname}${release}${shared_ext}$major'
16828 shlibpath_var=LD_LIBRARY_PATH
16829 shlibpath_overrides_runpath=yes
16830 hardcode_into_libs=yes
16831 # ldd complains unless libraries are executable
16832 postinstall_cmds='chmod +x $lib'
16833 ;;
16834
16835sunos4*)
16836 version_type=sunos
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16838 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16839 shlibpath_var=LD_LIBRARY_PATH
16840 shlibpath_overrides_runpath=yes
16841 if test "$with_gnu_ld" = yes; then
16842 need_lib_prefix=no
16843 fi
16844 need_version=yes
16845 ;;
16846
16847sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16848 version_type=linux
16849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16850 soname_spec='${libname}${release}${shared_ext}$major'
16851 shlibpath_var=LD_LIBRARY_PATH
16852 case $host_vendor in
16853 sni)
16854 shlibpath_overrides_runpath=no
16855 need_lib_prefix=no
16856 export_dynamic_flag_spec='${wl}-Blargedynsym'
16857 runpath_var=LD_RUN_PATH
16858 ;;
16859 siemens)
16860 need_lib_prefix=no
16861 ;;
16862 motorola)
16863 need_lib_prefix=no
16864 need_version=no
16865 shlibpath_overrides_runpath=no
16866 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16867 ;;
16868 esac
16869 ;;
16870
16871sysv4*MP*)
16872 if test -d /usr/nec ;then
16873 version_type=linux
16874 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16875 soname_spec='$libname${shared_ext}.$major'
16876 shlibpath_var=LD_LIBRARY_PATH
16877 fi
16878 ;;
16879
16880uts4*)
16881 version_type=linux
16882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16883 soname_spec='${libname}${release}${shared_ext}$major'
16884 shlibpath_var=LD_LIBRARY_PATH
16885 ;;
16886
16887*)
16888 dynamic_linker=no
16889 ;;
16890esac
16891echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16892echo "${ECHO_T}$dynamic_linker" >&6
16893test "$dynamic_linker" = no && can_build_shared=no
16894
16895if test "x$enable_dlopen" != xyes; then
16896 enable_dlopen=unknown
16897 enable_dlopen_self=unknown
16898 enable_dlopen_self_static=unknown
16899else
16900 lt_cv_dlopen=no
16901 lt_cv_dlopen_libs=
16902
16903 case $host_os in
16904 beos*)
16905 lt_cv_dlopen="load_add_on"
16906 lt_cv_dlopen_libs=
16907 lt_cv_dlopen_self=yes
16908 ;;
16909
16910 mingw* | pw32*)
16911 lt_cv_dlopen="LoadLibrary"
16912 lt_cv_dlopen_libs=
16913 ;;
16914
16915 cygwin*)
16916 lt_cv_dlopen="dlopen"
16917 lt_cv_dlopen_libs=
16918 ;;
16919
16920 darwin*)
16921 # if libdl is installed we need to link against it
16922 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16923echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16924if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16926else
16927 ac_check_lib_save_LIBS=$LIBS
16928LIBS="-ldl $LIBS"
16929cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000016930/* confdefs.h. */
16931_ACEOF
16932cat confdefs.h >>conftest.$ac_ext
16933cat >>conftest.$ac_ext <<_ACEOF
16934/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000016935
16936/* Override any gcc2 internal prototype to avoid an error. */
16937#ifdef __cplusplus
16938extern "C"
16939#endif
16940/* We use char because int might match the return type of a gcc2
16941 builtin and then its argument prototype would still apply. */
16942char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000016943int
16944main ()
16945{
16946dlopen ();
16947 ;
16948 return 0;
16949}
16950_ACEOF
16951rm -f conftest.$ac_objext conftest$ac_exeext
16952if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000016953 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000016954 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000016955 grep -v '^ *+' conftest.er1 >conftest.err
16956 rm -f conftest.er1
16957 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000016958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000016960 { ac_try='test -z "$ac_c_werror_flag"
16961 || test ! -s conftest.err'
16962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16963 (eval $ac_try) 2>&5
16964 ac_status=$?
16965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16966 (exit $ac_status); }; } &&
16967 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000016968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; }; then
16973 ac_cv_lib_dl_dlopen=yes
16974else
16975 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000016976sed 's/^/| /' conftest.$ac_ext >&5
16977
John Criswell47fdd832003-07-14 16:52:07 +000016978ac_cv_lib_dl_dlopen=no
16979fi
Reid Spencer17041682004-09-05 17:48:32 +000016980rm -f conftest.err conftest.$ac_objext \
16981 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000016982LIBS=$ac_check_lib_save_LIBS
16983fi
16984echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16985echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16986if test $ac_cv_lib_dl_dlopen = yes; then
16987 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16988else
16989
16990 lt_cv_dlopen="dyld"
16991 lt_cv_dlopen_libs=
16992 lt_cv_dlopen_self=yes
16993
16994fi
16995
16996 ;;
16997
16998 *)
16999 echo "$as_me:$LINENO: checking for shl_load" >&5
17000echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17001if test "${ac_cv_func_shl_load+set}" = set; then
17002 echo $ECHO_N "(cached) $ECHO_C" >&6
17003else
17004 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017005/* confdefs.h. */
17006_ACEOF
17007cat confdefs.h >>conftest.$ac_ext
17008cat >>conftest.$ac_ext <<_ACEOF
17009/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000017010/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17011 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17012#define shl_load innocuous_shl_load
17013
John Criswell47fdd832003-07-14 16:52:07 +000017014/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017015 which can conflict with char shl_load (); below.
17016 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17017 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000017018
John Criswell0c38eaf2003-09-10 15:17:25 +000017019#ifdef __STDC__
17020# include <limits.h>
17021#else
17022# include <assert.h>
17023#endif
Reid Spencer17041682004-09-05 17:48:32 +000017024
17025#undef shl_load
17026
John Criswell47fdd832003-07-14 16:52:07 +000017027/* Override any gcc2 internal prototype to avoid an error. */
17028#ifdef __cplusplus
17029extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017030{
John Criswell47fdd832003-07-14 16:52:07 +000017031#endif
17032/* We use char because int might match the return type of a gcc2
17033 builtin and then its argument prototype would still apply. */
17034char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017035/* The GNU C library defines this for functions which it implements
17036 to always fail with ENOSYS. Some functions are actually named
17037 something starting with __ and the normal name is an alias. */
17038#if defined (__stub_shl_load) || defined (__stub___shl_load)
17039choke me
17040#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017041char (*f) () = shl_load;
17042#endif
17043#ifdef __cplusplus
17044}
John Criswell47fdd832003-07-14 16:52:07 +000017045#endif
17046
John Criswell0c38eaf2003-09-10 15:17:25 +000017047int
17048main ()
17049{
17050return f != shl_load;
John Criswell47fdd832003-07-14 16:52:07 +000017051 ;
17052 return 0;
17053}
17054_ACEOF
17055rm -f conftest.$ac_objext conftest$ac_exeext
17056if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017057 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017058 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017059 grep -v '^ *+' conftest.er1 >conftest.err
17060 rm -f conftest.er1
17061 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017064 { ac_try='test -z "$ac_c_werror_flag"
17065 || test ! -s conftest.err'
17066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17067 (eval $ac_try) 2>&5
17068 ac_status=$?
17069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17070 (exit $ac_status); }; } &&
17071 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17073 (eval $ac_try) 2>&5
17074 ac_status=$?
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); }; }; then
17077 ac_cv_func_shl_load=yes
17078else
17079 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017080sed 's/^/| /' conftest.$ac_ext >&5
17081
John Criswell47fdd832003-07-14 16:52:07 +000017082ac_cv_func_shl_load=no
17083fi
Reid Spencer17041682004-09-05 17:48:32 +000017084rm -f conftest.err conftest.$ac_objext \
17085 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017086fi
17087echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17088echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17089if test $ac_cv_func_shl_load = yes; then
17090 lt_cv_dlopen="shl_load"
17091else
17092 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17093echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17094if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17096else
17097 ac_check_lib_save_LIBS=$LIBS
17098LIBS="-ldld $LIBS"
17099cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017100/* confdefs.h. */
17101_ACEOF
17102cat confdefs.h >>conftest.$ac_ext
17103cat >>conftest.$ac_ext <<_ACEOF
17104/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017105
17106/* Override any gcc2 internal prototype to avoid an error. */
17107#ifdef __cplusplus
17108extern "C"
17109#endif
17110/* We use char because int might match the return type of a gcc2
17111 builtin and then its argument prototype would still apply. */
17112char shl_load ();
John Criswell47fdd832003-07-14 16:52:07 +000017113int
17114main ()
17115{
17116shl_load ();
17117 ;
17118 return 0;
17119}
17120_ACEOF
17121rm -f conftest.$ac_objext conftest$ac_exeext
17122if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017123 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017124 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017125 grep -v '^ *+' conftest.er1 >conftest.err
17126 rm -f conftest.er1
17127 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017130 { ac_try='test -z "$ac_c_werror_flag"
17131 || test ! -s conftest.err'
17132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133 (eval $ac_try) 2>&5
17134 ac_status=$?
17135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136 (exit $ac_status); }; } &&
17137 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17139 (eval $ac_try) 2>&5
17140 ac_status=$?
17141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17142 (exit $ac_status); }; }; then
17143 ac_cv_lib_dld_shl_load=yes
17144else
17145 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017146sed 's/^/| /' conftest.$ac_ext >&5
17147
John Criswell47fdd832003-07-14 16:52:07 +000017148ac_cv_lib_dld_shl_load=no
17149fi
Reid Spencer17041682004-09-05 17:48:32 +000017150rm -f conftest.err conftest.$ac_objext \
17151 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017152LIBS=$ac_check_lib_save_LIBS
17153fi
17154echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17155echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17156if test $ac_cv_lib_dld_shl_load = yes; then
17157 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17158else
17159 echo "$as_me:$LINENO: checking for dlopen" >&5
17160echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17161if test "${ac_cv_func_dlopen+set}" = set; then
17162 echo $ECHO_N "(cached) $ECHO_C" >&6
17163else
17164 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017165/* confdefs.h. */
17166_ACEOF
17167cat confdefs.h >>conftest.$ac_ext
17168cat >>conftest.$ac_ext <<_ACEOF
17169/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000017170/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17172#define dlopen innocuous_dlopen
17173
John Criswell47fdd832003-07-14 16:52:07 +000017174/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000017175 which can conflict with char dlopen (); below.
17176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17177 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000017178
John Criswell0c38eaf2003-09-10 15:17:25 +000017179#ifdef __STDC__
17180# include <limits.h>
17181#else
17182# include <assert.h>
17183#endif
Reid Spencer17041682004-09-05 17:48:32 +000017184
17185#undef dlopen
17186
John Criswell47fdd832003-07-14 16:52:07 +000017187/* Override any gcc2 internal prototype to avoid an error. */
17188#ifdef __cplusplus
17189extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000017190{
John Criswell47fdd832003-07-14 16:52:07 +000017191#endif
17192/* We use char because int might match the return type of a gcc2
17193 builtin and then its argument prototype would still apply. */
17194char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017195/* The GNU C library defines this for functions which it implements
17196 to always fail with ENOSYS. Some functions are actually named
17197 something starting with __ and the normal name is an alias. */
17198#if defined (__stub_dlopen) || defined (__stub___dlopen)
17199choke me
17200#else
John Criswell0c38eaf2003-09-10 15:17:25 +000017201char (*f) () = dlopen;
17202#endif
17203#ifdef __cplusplus
17204}
John Criswell47fdd832003-07-14 16:52:07 +000017205#endif
17206
John Criswell0c38eaf2003-09-10 15:17:25 +000017207int
17208main ()
17209{
17210return f != dlopen;
John Criswell47fdd832003-07-14 16:52:07 +000017211 ;
17212 return 0;
17213}
17214_ACEOF
17215rm -f conftest.$ac_objext conftest$ac_exeext
17216if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017217 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017218 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017219 grep -v '^ *+' conftest.er1 >conftest.err
17220 rm -f conftest.er1
17221 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017224 { ac_try='test -z "$ac_c_werror_flag"
17225 || test ! -s conftest.err'
17226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17227 (eval $ac_try) 2>&5
17228 ac_status=$?
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); }; } &&
17231 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17234 ac_status=$?
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 ac_cv_func_dlopen=yes
17238else
17239 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017240sed 's/^/| /' conftest.$ac_ext >&5
17241
John Criswell47fdd832003-07-14 16:52:07 +000017242ac_cv_func_dlopen=no
17243fi
Reid Spencer17041682004-09-05 17:48:32 +000017244rm -f conftest.err conftest.$ac_objext \
17245 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017246fi
17247echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17248echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17249if test $ac_cv_func_dlopen = yes; then
17250 lt_cv_dlopen="dlopen"
17251else
17252 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17253echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17254if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17255 echo $ECHO_N "(cached) $ECHO_C" >&6
17256else
17257 ac_check_lib_save_LIBS=$LIBS
17258LIBS="-ldl $LIBS"
17259cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000017260/* confdefs.h. */
17261_ACEOF
17262cat confdefs.h >>conftest.$ac_ext
17263cat >>conftest.$ac_ext <<_ACEOF
17264/* end confdefs.h. */
John Criswell47fdd832003-07-14 16:52:07 +000017265
17266/* Override any gcc2 internal prototype to avoid an error. */
17267#ifdef __cplusplus
17268extern "C"
17269#endif
17270/* We use char because int might match the return type of a gcc2
17271 builtin and then its argument prototype would still apply. */
17272char dlopen ();
John Criswell47fdd832003-07-14 16:52:07 +000017273int
17274main ()
17275{
17276dlopen ();
17277 ;
17278 return 0;
17279}
17280_ACEOF
17281rm -f conftest.$ac_objext conftest$ac_exeext
17282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000017283 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017284 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000017285 grep -v '^ *+' conftest.er1 >conftest.err
17286 rm -f conftest.er1
17287 cat conftest.err >&5
John Criswell47fdd832003-07-14 16:52:07 +000017288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000017290 { ac_try='test -z "$ac_c_werror_flag"
17291 || test ! -s conftest.err'
17292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17293 (eval $ac_try) 2>&5
17294 ac_status=$?
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); }; } &&
17297 { ac_try='test -s conftest$ac_exeext'
John Criswell47fdd832003-07-14 16:52:07 +000017298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17299 (eval $ac_try) 2>&5
17300 ac_status=$?
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); }; }; then
17303 ac_cv_lib_dl_dlopen=yes
17304else
17305 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000017306sed 's/^/| /' conftest.$ac_ext >&5
17307
John Criswell47fdd832003-07-14 16:52:07 +000017308ac_cv_lib_dl_dlopen=no
17309fi
Reid Spencer17041682004-09-05 17:48:32 +000017310rm -f conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
John Criswell47fdd832003-07-14 16:52:07 +000017312LIBS=$ac_check_lib_save_LIBS
17313fi
17314echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17315echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17316if test $ac_cv_lib_dl_dlopen = yes; then
17317 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17318else
17319 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17320echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17321if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17322 echo $ECHO_N "(cached) $ECHO_C" >&6
17323else
17324 ac_check_lib_save_LIBS=$LIBS
17325LIBS="-lsvld $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 Spencer17041682004-09-05 17:48:32 +000017350 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017351 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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_svld_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_svld_dlopen=no
17376fi
Reid Spencer17041682004-09-05 17:48:32 +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_svld_dlopen" >&5
17382echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17383if test $ac_cv_lib_svld_dlopen = yes; then
17384 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17385else
17386 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17387echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17388if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17390else
17391 ac_check_lib_save_LIBS=$LIBS
17392LIBS="-ldld $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 dld_link ();
John Criswell47fdd832003-07-14 16:52:07 +000017407int
17408main ()
17409{
17410dld_link ();
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 Spencer17041682004-09-05 17:48:32 +000017417 (eval $ac_link) 2>conftest.er1
John Criswell47fdd832003-07-14 16:52:07 +000017418 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +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 Spencer17041682004-09-05 17:48:32 +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_dld_dld_link=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_dld_dld_link=no
17443fi
Reid Spencer17041682004-09-05 17:48:32 +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_dld_dld_link" >&5
17449echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17450if test $ac_cv_lib_dld_dld_link = yes; then
17451 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17452fi
17453
17454
17455fi
17456
17457
17458fi
17459
17460
17461fi
17462
17463
17464fi
17465
17466
17467fi
17468
17469 ;;
17470 esac
17471
17472 if test "x$lt_cv_dlopen" != xno; then
17473 enable_dlopen=yes
17474 else
17475 enable_dlopen=no
17476 fi
17477
17478 case $lt_cv_dlopen in
17479 dlopen)
17480 save_CPPFLAGS="$CPPFLAGS"
17481 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17482
17483 save_LDFLAGS="$LDFLAGS"
17484 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17485
17486 save_LIBS="$LIBS"
17487 LIBS="$lt_cv_dlopen_libs $LIBS"
17488
17489 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17490echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17491if test "${lt_cv_dlopen_self+set}" = set; then
17492 echo $ECHO_N "(cached) $ECHO_C" >&6
17493else
17494 if test "$cross_compiling" = yes; then :
17495 lt_cv_dlopen_self=cross
17496else
17497 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17498 lt_status=$lt_dlunknown
17499 cat > conftest.$ac_ext <<EOF
Reid Spencer17041682004-09-05 17:48:32 +000017500#line 17500 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017501#include "confdefs.h"
17502
17503#if HAVE_DLFCN_H
17504#include <dlfcn.h>
17505#endif
17506
17507#include <stdio.h>
17508
17509#ifdef RTLD_GLOBAL
17510# define LT_DLGLOBAL RTLD_GLOBAL
17511#else
17512# ifdef DL_GLOBAL
17513# define LT_DLGLOBAL DL_GLOBAL
17514# else
17515# define LT_DLGLOBAL 0
17516# endif
17517#endif
17518
17519/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17520 find out it does not work in some platform. */
17521#ifndef LT_DLLAZY_OR_NOW
17522# ifdef RTLD_LAZY
17523# define LT_DLLAZY_OR_NOW RTLD_LAZY
17524# else
17525# ifdef DL_LAZY
17526# define LT_DLLAZY_OR_NOW DL_LAZY
17527# else
17528# ifdef RTLD_NOW
17529# define LT_DLLAZY_OR_NOW RTLD_NOW
17530# else
17531# ifdef DL_NOW
17532# define LT_DLLAZY_OR_NOW DL_NOW
17533# else
17534# define LT_DLLAZY_OR_NOW 0
17535# endif
17536# endif
17537# endif
17538# endif
17539#endif
17540
17541#ifdef __cplusplus
17542extern "C" void exit (int);
17543#endif
17544
17545void fnord() { int i=42;}
17546int main ()
17547{
17548 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17549 int status = $lt_dlunknown;
17550
17551 if (self)
17552 {
17553 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17554 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17555 /* dlclose (self); */
17556 }
17557
17558 exit (status);
17559}
17560EOF
17561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17562 (eval $ac_link) 2>&5
17563 ac_status=$?
17564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17565 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17566 (./conftest; exit; ) 2>/dev/null
17567 lt_status=$?
17568 case x$lt_status in
17569 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17570 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17571 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17572 esac
17573 else :
17574 # compilation failed
17575 lt_cv_dlopen_self=no
17576 fi
17577fi
17578rm -fr conftest*
17579
17580
17581fi
17582echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17583echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17584
17585 if test "x$lt_cv_dlopen_self" = xyes; then
17586 LDFLAGS="$LDFLAGS $link_static_flag"
17587 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17588echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17589if test "${lt_cv_dlopen_self_static+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17591else
17592 if test "$cross_compiling" = yes; then :
17593 lt_cv_dlopen_self_static=cross
17594else
17595 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17596 lt_status=$lt_dlunknown
17597 cat > conftest.$ac_ext <<EOF
Reid Spencer17041682004-09-05 17:48:32 +000017598#line 17598 "configure"
John Criswell47fdd832003-07-14 16:52:07 +000017599#include "confdefs.h"
17600
17601#if HAVE_DLFCN_H
17602#include <dlfcn.h>
17603#endif
17604
17605#include <stdio.h>
17606
17607#ifdef RTLD_GLOBAL
17608# define LT_DLGLOBAL RTLD_GLOBAL
17609#else
17610# ifdef DL_GLOBAL
17611# define LT_DLGLOBAL DL_GLOBAL
17612# else
17613# define LT_DLGLOBAL 0
17614# endif
17615#endif
17616
17617/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17618 find out it does not work in some platform. */
17619#ifndef LT_DLLAZY_OR_NOW
17620# ifdef RTLD_LAZY
17621# define LT_DLLAZY_OR_NOW RTLD_LAZY
17622# else
17623# ifdef DL_LAZY
17624# define LT_DLLAZY_OR_NOW DL_LAZY
17625# else
17626# ifdef RTLD_NOW
17627# define LT_DLLAZY_OR_NOW RTLD_NOW
17628# else
17629# ifdef DL_NOW
17630# define LT_DLLAZY_OR_NOW DL_NOW
17631# else
17632# define LT_DLLAZY_OR_NOW 0
17633# endif
17634# endif
17635# endif
17636# endif
17637#endif
17638
17639#ifdef __cplusplus
17640extern "C" void exit (int);
17641#endif
17642
17643void fnord() { int i=42;}
17644int main ()
17645{
17646 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17647 int status = $lt_dlunknown;
17648
17649 if (self)
17650 {
17651 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17652 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17653 /* dlclose (self); */
17654 }
17655
17656 exit (status);
17657}
17658EOF
17659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17660 (eval $ac_link) 2>&5
17661 ac_status=$?
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17664 (./conftest; exit; ) 2>/dev/null
17665 lt_status=$?
17666 case x$lt_status in
17667 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17668 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17669 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17670 esac
17671 else :
17672 # compilation failed
17673 lt_cv_dlopen_self_static=no
17674 fi
17675fi
17676rm -fr conftest*
17677
17678
17679fi
17680echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17681echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17682 fi
17683
17684 CPPFLAGS="$save_CPPFLAGS"
17685 LDFLAGS="$save_LDFLAGS"
17686 LIBS="$save_LIBS"
17687 ;;
17688 esac
17689
17690 case $lt_cv_dlopen_self in
17691 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17692 *) enable_dlopen_self=unknown ;;
17693 esac
17694
17695 case $lt_cv_dlopen_self_static in
17696 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17697 *) enable_dlopen_self_static=unknown ;;
17698 esac
17699fi
17700
17701
17702# The else clause should only fire when bootstrapping the
17703# libtool distribution, otherwise you forgot to ship ltmain.sh
17704# with your package, and you will get complaints that there are
17705# no rules to generate ltmain.sh.
17706if test -f "$ltmain"; then
17707 # See if we are running on zsh, and set the options which allow our commands through
17708 # without removal of \ escapes.
17709 if test -n "${ZSH_VERSION+set}" ; then
17710 setopt NO_GLOB_SUBST
17711 fi
17712 # Now quote all the things that may contain metacharacters while being
17713 # careful not to overquote the AC_SUBSTed values. We take copies of the
17714 # variables and quote the copies for generation of the libtool script.
17715 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17716 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17717 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17718 deplibs_check_method reload_flag reload_cmds need_locks \
17719 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17720 lt_cv_sys_global_symbol_to_c_name_address \
17721 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17722 old_postinstall_cmds old_postuninstall_cmds \
17723 compiler_GCJ \
17724 CC_GCJ \
17725 LD_GCJ \
17726 lt_prog_compiler_wl_GCJ \
17727 lt_prog_compiler_pic_GCJ \
17728 lt_prog_compiler_static_GCJ \
17729 lt_prog_compiler_no_builtin_flag_GCJ \
17730 export_dynamic_flag_spec_GCJ \
17731 thread_safe_flag_spec_GCJ \
17732 whole_archive_flag_spec_GCJ \
17733 enable_shared_with_static_runtimes_GCJ \
17734 old_archive_cmds_GCJ \
17735 old_archive_from_new_cmds_GCJ \
17736 predep_objects_GCJ \
17737 postdep_objects_GCJ \
17738 predeps_GCJ \
17739 postdeps_GCJ \
17740 compiler_lib_search_path_GCJ \
17741 archive_cmds_GCJ \
17742 archive_expsym_cmds_GCJ \
17743 postinstall_cmds_GCJ \
17744 postuninstall_cmds_GCJ \
17745 old_archive_from_expsyms_cmds_GCJ \
17746 allow_undefined_flag_GCJ \
17747 no_undefined_flag_GCJ \
17748 export_symbols_cmds_GCJ \
17749 hardcode_libdir_flag_spec_GCJ \
17750 hardcode_libdir_flag_spec_ld_GCJ \
17751 hardcode_libdir_separator_GCJ \
17752 hardcode_automatic_GCJ \
17753 module_cmds_GCJ \
17754 module_expsym_cmds_GCJ \
17755 lt_cv_prog_compiler_c_o_GCJ \
17756 exclude_expsyms_GCJ \
17757 include_expsyms_GCJ; do
17758
17759 case $var in
17760 old_archive_cmds_GCJ | \
17761 old_archive_from_new_cmds_GCJ | \
17762 archive_cmds_GCJ | \
17763 archive_expsym_cmds_GCJ | \
17764 module_cmds_GCJ | \
17765 module_expsym_cmds_GCJ | \
17766 old_archive_from_expsyms_cmds_GCJ | \
17767 export_symbols_cmds_GCJ | \
17768 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17769 postinstall_cmds | postuninstall_cmds | \
17770 old_postinstall_cmds | old_postuninstall_cmds | \
17771 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17772 # Double-quote double-evaled strings.
17773 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17774 ;;
17775 *)
17776 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17777 ;;
17778 esac
17779 done
17780
17781 case $lt_echo in
17782 *'\$0 --fallback-echo"')
17783 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17784 ;;
17785 esac
17786
17787cfgfile="$ofile"
17788
17789 cat <<__EOF__ >> "$cfgfile"
17790# ### BEGIN LIBTOOL TAG CONFIG: $tagname
17791
17792# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17793
17794# Shell to use when invoking shell scripts.
17795SHELL=$lt_SHELL
17796
17797# Whether or not to build shared libraries.
17798build_libtool_libs=$enable_shared
17799
17800# Whether or not to build static libraries.
17801build_old_libs=$enable_static
17802
17803# Whether or not to add -lc for building shared libraries.
17804build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17805
17806# Whether or not to disallow shared libs when runtime libs are static
17807allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17808
17809# Whether or not to optimize for fast installation.
17810fast_install=$enable_fast_install
17811
17812# The host system.
17813host_alias=$host_alias
17814host=$host
17815
17816# An echo program that does not interpret backslashes.
17817echo=$lt_echo
17818
17819# The archiver.
17820AR=$lt_AR
17821AR_FLAGS=$lt_AR_FLAGS
17822
17823# A C compiler.
17824LTCC=$lt_LTCC
17825
17826# A language-specific compiler.
17827CC=$lt_compiler_GCJ
17828
17829# Is the compiler the GNU C compiler?
17830with_gcc=$GCC_GCJ
17831
17832# An ERE matcher.
17833EGREP=$lt_EGREP
17834
17835# The linker used to build libraries.
17836LD=$lt_LD_GCJ
17837
17838# Whether we need hard or soft links.
17839LN_S=$lt_LN_S
17840
17841# A BSD-compatible nm program.
17842NM=$lt_NM
17843
17844# A symbol stripping program
17845STRIP=$STRIP
17846
17847# Used to examine libraries when file_magic_cmd begins "file"
17848MAGIC_CMD=$MAGIC_CMD
17849
17850# Used on cygwin: DLL creation program.
17851DLLTOOL="$DLLTOOL"
17852
17853# Used on cygwin: object dumper.
17854OBJDUMP="$OBJDUMP"
17855
17856# Used on cygwin: assembler.
17857AS="$AS"
17858
17859# The name of the directory that contains temporary libtool files.
17860objdir=$objdir
17861
17862# How to create reloadable object files.
17863reload_flag=$lt_reload_flag
17864reload_cmds=$lt_reload_cmds
17865
17866# How to pass a linker flag through the compiler.
17867wl=$lt_lt_prog_compiler_wl_GCJ
17868
17869# Object file suffix (normally "o").
17870objext="$ac_objext"
17871
17872# Old archive suffix (normally "a").
17873libext="$libext"
17874
17875# Shared library suffix (normally ".so").
17876shrext='$shrext'
17877
17878# Executable file suffix (normally "").
17879exeext="$exeext"
17880
17881# Additional compiler flags for building library objects.
17882pic_flag=$lt_lt_prog_compiler_pic_GCJ
17883pic_mode=$pic_mode
17884
17885# What is the maximum length of a command?
17886max_cmd_len=$lt_cv_sys_max_cmd_len
17887
17888# Does compiler simultaneously support -c and -o options?
17889compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17890
17891# Must we lock files when doing compilation ?
17892need_locks=$lt_need_locks
17893
17894# Do we need the lib prefix for modules?
17895need_lib_prefix=$need_lib_prefix
17896
17897# Do we need a version for libraries?
17898need_version=$need_version
17899
17900# Whether dlopen is supported.
17901dlopen_support=$enable_dlopen
17902
17903# Whether dlopen of programs is supported.
17904dlopen_self=$enable_dlopen_self
17905
17906# Whether dlopen of statically linked programs is supported.
17907dlopen_self_static=$enable_dlopen_self_static
17908
17909# Compiler flag to prevent dynamic linking.
17910link_static_flag=$lt_lt_prog_compiler_static_GCJ
17911
17912# Compiler flag to turn off builtin functions.
17913no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17914
17915# Compiler flag to allow reflexive dlopens.
17916export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17917
17918# Compiler flag to generate shared objects directly from archives.
17919whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17920
17921# Compiler flag to generate thread-safe objects.
17922thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17923
17924# Library versioning type.
17925version_type=$version_type
17926
17927# Format of library name prefix.
17928libname_spec=$lt_libname_spec
17929
17930# List of archive names. First name is the real one, the rest are links.
17931# The last name is the one that the linker finds with -lNAME.
17932library_names_spec=$lt_library_names_spec
17933
17934# The coded name of the library, if different from the real name.
17935soname_spec=$lt_soname_spec
17936
17937# Commands used to build and install an old-style archive.
17938RANLIB=$lt_RANLIB
17939old_archive_cmds=$lt_old_archive_cmds_GCJ
17940old_postinstall_cmds=$lt_old_postinstall_cmds
17941old_postuninstall_cmds=$lt_old_postuninstall_cmds
17942
17943# Create an old-style archive from a shared archive.
17944old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17945
17946# Create a temporary old-style archive to link instead of a shared archive.
17947old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17948
17949# Commands used to build and install a shared archive.
17950archive_cmds=$lt_archive_cmds_GCJ
17951archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17952postinstall_cmds=$lt_postinstall_cmds
17953postuninstall_cmds=$lt_postuninstall_cmds
17954
17955# Commands used to build a loadable module (assumed same as above if empty)
17956module_cmds=$lt_module_cmds_GCJ
17957module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17958
17959# Commands to strip libraries.
17960old_striplib=$lt_old_striplib
17961striplib=$lt_striplib
17962
17963# Dependencies to place before the objects being linked to create a
17964# shared library.
17965predep_objects=$lt_predep_objects_GCJ
17966
17967# Dependencies to place after the objects being linked to create a
17968# shared library.
17969postdep_objects=$lt_postdep_objects_GCJ
17970
17971# Dependencies to place before the objects being linked to create a
17972# shared library.
17973predeps=$lt_predeps_GCJ
17974
17975# Dependencies to place after the objects being linked to create a
17976# shared library.
17977postdeps=$lt_postdeps_GCJ
17978
17979# The library search path used internally by the compiler when linking
17980# a shared library.
17981compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17982
17983# Method to check whether dependent libraries are shared objects.
17984deplibs_check_method=$lt_deplibs_check_method
17985
17986# Command to use when deplibs_check_method == file_magic.
17987file_magic_cmd=$lt_file_magic_cmd
17988
17989# Flag that allows shared libraries with undefined symbols to be built.
17990allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17991
17992# Flag that forces no undefined symbols.
17993no_undefined_flag=$lt_no_undefined_flag_GCJ
17994
17995# Commands used to finish a libtool library installation in a directory.
17996finish_cmds=$lt_finish_cmds
17997
17998# Same as above, but a single script fragment to be evaled but not shown.
17999finish_eval=$lt_finish_eval
18000
18001# Take the output of nm and produce a listing of raw symbols and C names.
18002global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18003
18004# Transform the output of nm in a proper C declaration
18005global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18006
18007# Transform the output of nm in a C name address pair
18008global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18009
18010# This is the shared library runtime path variable.
18011runpath_var=$runpath_var
18012
18013# This is the shared library path variable.
18014shlibpath_var=$shlibpath_var
18015
18016# Is shlibpath searched before the hard-coded library search path?
18017shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18018
18019# How to hardcode a shared library path into an executable.
18020hardcode_action=$hardcode_action_GCJ
18021
18022# Whether we should hardcode library paths into libraries.
18023hardcode_into_libs=$hardcode_into_libs
18024
18025# Flag to hardcode \$libdir into a binary during linking.
18026# This must work even if \$libdir does not exist.
18027hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18028
18029# If ld is used when linking, flag to hardcode \$libdir into
18030# a binary during linking. This must work even if \$libdir does
18031# not exist.
18032hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18033
18034# Whether we need a single -rpath flag with a separated argument.
18035hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18036
18037# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18038# resulting binary.
18039hardcode_direct=$hardcode_direct_GCJ
18040
18041# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18042# resulting binary.
18043hardcode_minus_L=$hardcode_minus_L_GCJ
18044
18045# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18046# the resulting binary.
18047hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18048
18049# Set to yes if building a shared library automatically hardcodes DIR into the library
18050# and all subsequent libraries and executables linked against it.
18051hardcode_automatic=$hardcode_automatic_GCJ
18052
18053# Variables whose values should be saved in libtool wrapper scripts and
18054# restored at relink time.
18055variables_saved_for_relink="$variables_saved_for_relink"
18056
18057# Whether libtool must link a program against all its dependency libraries.
18058link_all_deplibs=$link_all_deplibs_GCJ
18059
18060# Compile-time system search path for libraries
18061sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18062
18063# Run-time system search path for libraries
18064sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18065
18066# Fix the shell variable \$srcfile for the compiler.
18067fix_srcfile_path="$fix_srcfile_path_GCJ"
18068
18069# Set to yes if exported symbols are required.
18070always_export_symbols=$always_export_symbols_GCJ
18071
18072# The commands to list exported symbols.
18073export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18074
18075# The commands to extract the exported symbol list from a shared archive.
18076extract_expsyms_cmds=$lt_extract_expsyms_cmds
18077
18078# Symbols that should not be listed in the preloaded symbols.
18079exclude_expsyms=$lt_exclude_expsyms_GCJ
18080
18081# Symbols that must always be exported.
18082include_expsyms=$lt_include_expsyms_GCJ
18083
18084# ### END LIBTOOL TAG CONFIG: $tagname
18085
18086__EOF__
18087
18088
18089else
18090 # If there is no Makefile yet, we rely on a make rule to execute
18091 # `config.status --recheck' to rerun these tests and create the
18092 # libtool script then.
18093 test -f Makefile && make "$ltmain"
18094fi
18095
18096
18097ac_ext=c
18098ac_cpp='$CPP $CPPFLAGS'
18099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18101ac_compiler_gnu=$ac_cv_c_compiler_gnu
18102
18103CC="$lt_save_CC"
18104
18105 else
18106 tagname=""
18107 fi
18108 ;;
18109
18110 RC)
18111
18112
18113
18114# Source file extension for RC test sources.
18115ac_ext=rc
18116
18117# Object file extension for compiled RC test sources.
18118objext=o
18119objext_RC=$objext
18120
18121# Code to be used in simple compile tests
18122lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18123
18124# Code to be used in simple link tests
18125lt_simple_link_test_code="$lt_simple_compile_test_code"
18126
18127# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18128
18129# If no C compiler was specified, use CC.
18130LTCC=${LTCC-"$CC"}
18131
18132# Allow CC to be a program name with arguments.
18133compiler=$CC
18134
18135
18136# Allow CC to be a program name with arguments.
18137lt_save_CC="$CC"
18138CC=${RC-"windres"}
18139compiler=$CC
18140compiler_RC=$CC
18141lt_cv_prog_compiler_c_o_RC=yes
18142
18143# The else clause should only fire when bootstrapping the
18144# libtool distribution, otherwise you forgot to ship ltmain.sh
18145# with your package, and you will get complaints that there are
18146# no rules to generate ltmain.sh.
18147if test -f "$ltmain"; then
18148 # See if we are running on zsh, and set the options which allow our commands through
18149 # without removal of \ escapes.
18150 if test -n "${ZSH_VERSION+set}" ; then
18151 setopt NO_GLOB_SUBST
18152 fi
18153 # Now quote all the things that may contain metacharacters while being
18154 # careful not to overquote the AC_SUBSTed values. We take copies of the
18155 # variables and quote the copies for generation of the libtool script.
18156 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18157 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18158 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18159 deplibs_check_method reload_flag reload_cmds need_locks \
18160 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18161 lt_cv_sys_global_symbol_to_c_name_address \
18162 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18163 old_postinstall_cmds old_postuninstall_cmds \
18164 compiler_RC \
18165 CC_RC \
18166 LD_RC \
18167 lt_prog_compiler_wl_RC \
18168 lt_prog_compiler_pic_RC \
18169 lt_prog_compiler_static_RC \
18170 lt_prog_compiler_no_builtin_flag_RC \
18171 export_dynamic_flag_spec_RC \
18172 thread_safe_flag_spec_RC \
18173 whole_archive_flag_spec_RC \
18174 enable_shared_with_static_runtimes_RC \
18175 old_archive_cmds_RC \
18176 old_archive_from_new_cmds_RC \
18177 predep_objects_RC \
18178 postdep_objects_RC \
18179 predeps_RC \
18180 postdeps_RC \
18181 compiler_lib_search_path_RC \
18182 archive_cmds_RC \
18183 archive_expsym_cmds_RC \
18184 postinstall_cmds_RC \
18185 postuninstall_cmds_RC \
18186 old_archive_from_expsyms_cmds_RC \
18187 allow_undefined_flag_RC \
18188 no_undefined_flag_RC \
18189 export_symbols_cmds_RC \
18190 hardcode_libdir_flag_spec_RC \
18191 hardcode_libdir_flag_spec_ld_RC \
18192 hardcode_libdir_separator_RC \
18193 hardcode_automatic_RC \
18194 module_cmds_RC \
18195 module_expsym_cmds_RC \
18196 lt_cv_prog_compiler_c_o_RC \
18197 exclude_expsyms_RC \
18198 include_expsyms_RC; do
18199
18200 case $var in
18201 old_archive_cmds_RC | \
18202 old_archive_from_new_cmds_RC | \
18203 archive_cmds_RC | \
18204 archive_expsym_cmds_RC | \
18205 module_cmds_RC | \
18206 module_expsym_cmds_RC | \
18207 old_archive_from_expsyms_cmds_RC | \
18208 export_symbols_cmds_RC | \
18209 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18210 postinstall_cmds | postuninstall_cmds | \
18211 old_postinstall_cmds | old_postuninstall_cmds | \
18212 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18213 # Double-quote double-evaled strings.
18214 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18215 ;;
18216 *)
18217 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18218 ;;
18219 esac
18220 done
18221
18222 case $lt_echo in
18223 *'\$0 --fallback-echo"')
18224 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18225 ;;
18226 esac
18227
18228cfgfile="$ofile"
18229
18230 cat <<__EOF__ >> "$cfgfile"
18231# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18232
18233# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18234
18235# Shell to use when invoking shell scripts.
18236SHELL=$lt_SHELL
18237
18238# Whether or not to build shared libraries.
18239build_libtool_libs=$enable_shared
18240
18241# Whether or not to build static libraries.
18242build_old_libs=$enable_static
18243
18244# Whether or not to add -lc for building shared libraries.
18245build_libtool_need_lc=$archive_cmds_need_lc_RC
18246
18247# Whether or not to disallow shared libs when runtime libs are static
18248allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18249
18250# Whether or not to optimize for fast installation.
18251fast_install=$enable_fast_install
18252
18253# The host system.
18254host_alias=$host_alias
18255host=$host
18256
18257# An echo program that does not interpret backslashes.
18258echo=$lt_echo
18259
18260# The archiver.
18261AR=$lt_AR
18262AR_FLAGS=$lt_AR_FLAGS
18263
18264# A C compiler.
18265LTCC=$lt_LTCC
18266
18267# A language-specific compiler.
18268CC=$lt_compiler_RC
18269
18270# Is the compiler the GNU C compiler?
18271with_gcc=$GCC_RC
18272
18273# An ERE matcher.
18274EGREP=$lt_EGREP
18275
18276# The linker used to build libraries.
18277LD=$lt_LD_RC
18278
18279# Whether we need hard or soft links.
18280LN_S=$lt_LN_S
18281
18282# A BSD-compatible nm program.
18283NM=$lt_NM
18284
18285# A symbol stripping program
18286STRIP=$STRIP
18287
18288# Used to examine libraries when file_magic_cmd begins "file"
18289MAGIC_CMD=$MAGIC_CMD
18290
18291# Used on cygwin: DLL creation program.
18292DLLTOOL="$DLLTOOL"
18293
18294# Used on cygwin: object dumper.
18295OBJDUMP="$OBJDUMP"
18296
18297# Used on cygwin: assembler.
18298AS="$AS"
18299
18300# The name of the directory that contains temporary libtool files.
18301objdir=$objdir
18302
18303# How to create reloadable object files.
18304reload_flag=$lt_reload_flag
18305reload_cmds=$lt_reload_cmds
18306
18307# How to pass a linker flag through the compiler.
18308wl=$lt_lt_prog_compiler_wl_RC
18309
18310# Object file suffix (normally "o").
18311objext="$ac_objext"
18312
18313# Old archive suffix (normally "a").
18314libext="$libext"
18315
18316# Shared library suffix (normally ".so").
18317shrext='$shrext'
18318
18319# Executable file suffix (normally "").
18320exeext="$exeext"
18321
18322# Additional compiler flags for building library objects.
18323pic_flag=$lt_lt_prog_compiler_pic_RC
18324pic_mode=$pic_mode
18325
18326# What is the maximum length of a command?
18327max_cmd_len=$lt_cv_sys_max_cmd_len
18328
18329# Does compiler simultaneously support -c and -o options?
18330compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18331
18332# Must we lock files when doing compilation ?
18333need_locks=$lt_need_locks
18334
18335# Do we need the lib prefix for modules?
18336need_lib_prefix=$need_lib_prefix
18337
18338# Do we need a version for libraries?
18339need_version=$need_version
18340
18341# Whether dlopen is supported.
18342dlopen_support=$enable_dlopen
18343
18344# Whether dlopen of programs is supported.
18345dlopen_self=$enable_dlopen_self
18346
18347# Whether dlopen of statically linked programs is supported.
18348dlopen_self_static=$enable_dlopen_self_static
18349
18350# Compiler flag to prevent dynamic linking.
18351link_static_flag=$lt_lt_prog_compiler_static_RC
18352
18353# Compiler flag to turn off builtin functions.
18354no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18355
18356# Compiler flag to allow reflexive dlopens.
18357export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18358
18359# Compiler flag to generate shared objects directly from archives.
18360whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18361
18362# Compiler flag to generate thread-safe objects.
18363thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18364
18365# Library versioning type.
18366version_type=$version_type
18367
18368# Format of library name prefix.
18369libname_spec=$lt_libname_spec
18370
18371# List of archive names. First name is the real one, the rest are links.
18372# The last name is the one that the linker finds with -lNAME.
18373library_names_spec=$lt_library_names_spec
18374
18375# The coded name of the library, if different from the real name.
18376soname_spec=$lt_soname_spec
18377
18378# Commands used to build and install an old-style archive.
18379RANLIB=$lt_RANLIB
18380old_archive_cmds=$lt_old_archive_cmds_RC
18381old_postinstall_cmds=$lt_old_postinstall_cmds
18382old_postuninstall_cmds=$lt_old_postuninstall_cmds
18383
18384# Create an old-style archive from a shared archive.
18385old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18386
18387# Create a temporary old-style archive to link instead of a shared archive.
18388old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18389
18390# Commands used to build and install a shared archive.
18391archive_cmds=$lt_archive_cmds_RC
18392archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18393postinstall_cmds=$lt_postinstall_cmds
18394postuninstall_cmds=$lt_postuninstall_cmds
18395
18396# Commands used to build a loadable module (assumed same as above if empty)
18397module_cmds=$lt_module_cmds_RC
18398module_expsym_cmds=$lt_module_expsym_cmds_RC
18399
18400# Commands to strip libraries.
18401old_striplib=$lt_old_striplib
18402striplib=$lt_striplib
18403
18404# Dependencies to place before the objects being linked to create a
18405# shared library.
18406predep_objects=$lt_predep_objects_RC
18407
18408# Dependencies to place after the objects being linked to create a
18409# shared library.
18410postdep_objects=$lt_postdep_objects_RC
18411
18412# Dependencies to place before the objects being linked to create a
18413# shared library.
18414predeps=$lt_predeps_RC
18415
18416# Dependencies to place after the objects being linked to create a
18417# shared library.
18418postdeps=$lt_postdeps_RC
18419
18420# The library search path used internally by the compiler when linking
18421# a shared library.
18422compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18423
18424# Method to check whether dependent libraries are shared objects.
18425deplibs_check_method=$lt_deplibs_check_method
18426
18427# Command to use when deplibs_check_method == file_magic.
18428file_magic_cmd=$lt_file_magic_cmd
18429
18430# Flag that allows shared libraries with undefined symbols to be built.
18431allow_undefined_flag=$lt_allow_undefined_flag_RC
18432
18433# Flag that forces no undefined symbols.
18434no_undefined_flag=$lt_no_undefined_flag_RC
18435
18436# Commands used to finish a libtool library installation in a directory.
18437finish_cmds=$lt_finish_cmds
18438
18439# Same as above, but a single script fragment to be evaled but not shown.
18440finish_eval=$lt_finish_eval
18441
18442# Take the output of nm and produce a listing of raw symbols and C names.
18443global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18444
18445# Transform the output of nm in a proper C declaration
18446global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18447
18448# Transform the output of nm in a C name address pair
18449global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18450
18451# This is the shared library runtime path variable.
18452runpath_var=$runpath_var
18453
18454# This is the shared library path variable.
18455shlibpath_var=$shlibpath_var
18456
18457# Is shlibpath searched before the hard-coded library search path?
18458shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18459
18460# How to hardcode a shared library path into an executable.
18461hardcode_action=$hardcode_action_RC
18462
18463# Whether we should hardcode library paths into libraries.
18464hardcode_into_libs=$hardcode_into_libs
18465
18466# Flag to hardcode \$libdir into a binary during linking.
18467# This must work even if \$libdir does not exist.
18468hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18469
18470# If ld is used when linking, flag to hardcode \$libdir into
18471# a binary during linking. This must work even if \$libdir does
18472# not exist.
18473hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18474
18475# Whether we need a single -rpath flag with a separated argument.
18476hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18477
18478# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18479# resulting binary.
18480hardcode_direct=$hardcode_direct_RC
18481
18482# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18483# resulting binary.
18484hardcode_minus_L=$hardcode_minus_L_RC
18485
18486# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18487# the resulting binary.
18488hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18489
18490# Set to yes if building a shared library automatically hardcodes DIR into the library
18491# and all subsequent libraries and executables linked against it.
18492hardcode_automatic=$hardcode_automatic_RC
18493
18494# Variables whose values should be saved in libtool wrapper scripts and
18495# restored at relink time.
18496variables_saved_for_relink="$variables_saved_for_relink"
18497
18498# Whether libtool must link a program against all its dependency libraries.
18499link_all_deplibs=$link_all_deplibs_RC
18500
18501# Compile-time system search path for libraries
18502sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18503
18504# Run-time system search path for libraries
18505sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18506
18507# Fix the shell variable \$srcfile for the compiler.
18508fix_srcfile_path="$fix_srcfile_path_RC"
18509
18510# Set to yes if exported symbols are required.
18511always_export_symbols=$always_export_symbols_RC
18512
18513# The commands to list exported symbols.
18514export_symbols_cmds=$lt_export_symbols_cmds_RC
18515
18516# The commands to extract the exported symbol list from a shared archive.
18517extract_expsyms_cmds=$lt_extract_expsyms_cmds
18518
18519# Symbols that should not be listed in the preloaded symbols.
18520exclude_expsyms=$lt_exclude_expsyms_RC
18521
18522# Symbols that must always be exported.
18523include_expsyms=$lt_include_expsyms_RC
18524
18525# ### END LIBTOOL TAG CONFIG: $tagname
18526
18527__EOF__
18528
18529
18530else
18531 # If there is no Makefile yet, we rely on a make rule to execute
18532 # `config.status --recheck' to rerun these tests and create the
18533 # libtool script then.
18534 test -f Makefile && make "$ltmain"
18535fi
18536
18537
18538ac_ext=c
18539ac_cpp='$CPP $CPPFLAGS'
18540ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18541ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18542ac_compiler_gnu=$ac_cv_c_compiler_gnu
18543
18544CC="$lt_save_CC"
18545
18546 ;;
18547
18548 *)
18549 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18550echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18551 { (exit 1); exit 1; }; }
18552 ;;
18553 esac
18554
18555 # Append the new tag name to the list of available tags.
18556 if test -n "$tagname" ; then
18557 available_tags="$available_tags $tagname"
18558 fi
18559 fi
18560 done
18561 IFS="$lt_save_ifs"
18562
18563 # Now substitute the updated list of available tags.
18564 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18565 mv "${ofile}T" "$ofile"
18566 chmod +x "$ofile"
18567 else
18568 rm -f "${ofile}T"
18569 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18570echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18571 { (exit 1); exit 1; }; }
18572 fi
18573fi
John Criswell7a73b802003-06-30 21:59:07 +000018574
18575
18576
18577# This can be used to rebuild libtool when needed
18578LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18579
18580# Always use our own libtool.
John Criswell8d4221e2003-07-23 16:52:50 +000018581LIBTOOL='$(SHELL) $(top_builddir)/mklib'
John Criswell7a73b802003-06-30 21:59:07 +000018582
18583# Prevent multiple expansion
18584
18585
18586
John Criswell47fdd832003-07-14 16:52:07 +000018587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
John Criswell7a73b802003-06-30 21:59:07 +000018605# Extract the first word of "dot", so it can be a program name with args.
18606set dummy dot; ac_word=$2
18607echo "$as_me:$LINENO: checking for $ac_word" >&5
18608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18609if test "${ac_cv_path_DOT+set}" = set; then
18610 echo $ECHO_N "(cached) $ECHO_C" >&6
18611else
18612 case $DOT in
18613 [\\/]* | ?:[\\/]*)
18614 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
18615 ;;
18616 *)
18617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18618for as_dir in $PATH
18619do
18620 IFS=$as_save_IFS
18621 test -z "$as_dir" && as_dir=.
18622 for ac_exec_ext in '' $ac_executable_extensions; do
18623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18624 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
18625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18626 break 2
18627 fi
18628done
18629done
18630
Brian Gaeke26be9c52004-01-13 06:43:16 +000018631 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="true dot"
John Criswell7a73b802003-06-30 21:59:07 +000018632 ;;
18633esac
18634fi
18635DOT=$ac_cv_path_DOT
18636
18637if test -n "$DOT"; then
18638 echo "$as_me:$LINENO: result: $DOT" >&5
18639echo "${ECHO_T}$DOT" >&6
18640else
18641 echo "$as_me:$LINENO: result: no" >&5
18642echo "${ECHO_T}no" >&6
18643fi
18644
18645# Extract the first word of "etags", so it can be a program name with args.
18646set dummy etags; ac_word=$2
18647echo "$as_me:$LINENO: checking for $ac_word" >&5
18648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18649if test "${ac_cv_path_ETAGS+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18651else
18652 case $ETAGS in
18653 [\\/]* | ?:[\\/]*)
18654 ac_cv_path_ETAGS="$ETAGS" # Let the user override the test with a path.
18655 ;;
18656 *)
18657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18658for as_dir in $PATH
18659do
18660 IFS=$as_save_IFS
18661 test -z "$as_dir" && as_dir=.
18662 for ac_exec_ext in '' $ac_executable_extensions; do
18663 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18664 ac_cv_path_ETAGS="$as_dir/$ac_word$ac_exec_ext"
18665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18666 break 2
18667 fi
18668done
18669done
18670
Brian Gaeke26be9c52004-01-13 06:43:16 +000018671 test -z "$ac_cv_path_ETAGS" && ac_cv_path_ETAGS="true etags"
John Criswell7a73b802003-06-30 21:59:07 +000018672 ;;
18673esac
18674fi
18675ETAGS=$ac_cv_path_ETAGS
18676
18677if test -n "$ETAGS"; then
18678 echo "$as_me:$LINENO: result: $ETAGS" >&5
18679echo "${ECHO_T}$ETAGS" >&6
18680else
18681 echo "$as_me:$LINENO: result: no" >&5
18682echo "${ECHO_T}no" >&6
18683fi
18684
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000018685etags_version=`$ETAGS --version 2>&1`
18686case "$etags_version" in
18687 *Eexuberant*) ETAGSFLAGS="--language-force=c++" ;;
18688 *GNU\ Emacs*) ETAGSFLAGS="-l c++" ;;
18689 *) ETAGSFLAGS="" ;;
18690esac
18691ETAGSFLAGS=$ETAGSFLAGS
18692
John Criswellde00db22003-08-25 16:49:54 +000018693# Extract the first word of "python", so it can be a program name with args.
18694set dummy python; ac_word=$2
18695echo "$as_me:$LINENO: checking for $ac_word" >&5
18696echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18697if test "${ac_cv_path_PYTHON+set}" = set; then
18698 echo $ECHO_N "(cached) $ECHO_C" >&6
18699else
18700 case $PYTHON in
18701 [\\/]* | ?:[\\/]*)
18702 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
18703 ;;
18704 *)
18705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18706for as_dir in $PATH
18707do
18708 IFS=$as_save_IFS
18709 test -z "$as_dir" && as_dir=.
18710 for ac_exec_ext in '' $ac_executable_extensions; do
18711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18712 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
18713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18714 break 2
18715 fi
18716done
18717done
18718
Brian Gaeke26be9c52004-01-13 06:43:16 +000018719 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="true python"
John Criswellde00db22003-08-25 16:49:54 +000018720 ;;
18721esac
18722fi
18723PYTHON=$ac_cv_path_PYTHON
18724
18725if test -n "$PYTHON"; then
18726 echo "$as_me:$LINENO: result: $PYTHON" >&5
18727echo "${ECHO_T}$PYTHON" >&6
18728else
18729 echo "$as_me:$LINENO: result: no" >&5
18730echo "${ECHO_T}no" >&6
18731fi
18732
Brian Gaeke26be9c52004-01-13 06:43:16 +000018733if test "$PYTHON" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018734then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018735 { echo "$as_me:$LINENO: WARNING: Python is required for the test suite, but it was not found" >&5
18736echo "$as_me: WARNING: Python is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018737fi
John Criswellde00db22003-08-25 16:49:54 +000018738# Extract the first word of "qmtest", so it can be a program name with args.
18739set dummy qmtest; ac_word=$2
18740echo "$as_me:$LINENO: checking for $ac_word" >&5
18741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18742if test "${ac_cv_path_QMTEST+set}" = set; then
18743 echo $ECHO_N "(cached) $ECHO_C" >&6
18744else
18745 case $QMTEST in
18746 [\\/]* | ?:[\\/]*)
18747 ac_cv_path_QMTEST="$QMTEST" # Let the user override the test with a path.
18748 ;;
18749 *)
18750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18751for as_dir in $PATH
18752do
18753 IFS=$as_save_IFS
18754 test -z "$as_dir" && as_dir=.
18755 for ac_exec_ext in '' $ac_executable_extensions; do
18756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18757 ac_cv_path_QMTEST="$as_dir/$ac_word$ac_exec_ext"
18758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18759 break 2
18760 fi
18761done
18762done
18763
Brian Gaeke26be9c52004-01-13 06:43:16 +000018764 test -z "$ac_cv_path_QMTEST" && ac_cv_path_QMTEST="true qmtest"
John Criswellde00db22003-08-25 16:49:54 +000018765 ;;
18766esac
18767fi
18768QMTEST=$ac_cv_path_QMTEST
18769
18770if test -n "$QMTEST"; then
18771 echo "$as_me:$LINENO: result: $QMTEST" >&5
18772echo "${ECHO_T}$QMTEST" >&6
18773else
18774 echo "$as_me:$LINENO: result: no" >&5
18775echo "${ECHO_T}no" >&6
18776fi
18777
Brian Gaeke26be9c52004-01-13 06:43:16 +000018778if test "$QMTEST" = "false"
John Criswell39827c82003-09-23 15:28:52 +000018779then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018780 { echo "$as_me:$LINENO: WARNING: QMTest is required for the test suite, but it was not found" >&5
18781echo "$as_me: WARNING: QMTest is required for the test suite, but it was not found" >&2;}
John Criswell39827c82003-09-23 15:28:52 +000018782fi
John Criswellde00db22003-08-25 16:49:54 +000018783
18784pyversion=`$PYTHON -V 2>&1 | cut -d\ -f2`
18785pymajor=`echo $pyversion | cut -d. -f1`
18786pyminor=`echo $pyversion | cut -d. -f2`
18787
18788if test "$pymajor" -ge "2"
18789then
18790 if test "$pymajor" -eq "2"
18791 then
18792 if test "$pyminor" -lt "2"
18793 then
Brian Gaeke26be9c52004-01-13 06:43:16 +000018794 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18795echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018796 fi
18797 fi
18798else
Brian Gaeke26be9c52004-01-13 06:43:16 +000018799 { echo "$as_me:$LINENO: WARNING: QMTest requires Python 2.2 or later" >&5
18800echo "$as_me: WARNING: QMTest requires Python 2.2 or later" >&2;}
John Criswellde00db22003-08-25 16:49:54 +000018801fi
John Criswell7a73b802003-06-30 21:59:07 +000018802
18803
18804
18805
John Criswell7a73b802003-06-30 21:59:07 +000018806echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
18807echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6
18808if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
18809 echo $ECHO_N "(cached) $ECHO_C" >&6
18810else
18811 ac_check_lib_save_LIBS=$LIBS
18812LIBS="-lelf $LIBS"
18813cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018814/* confdefs.h. */
18815_ACEOF
18816cat confdefs.h >>conftest.$ac_ext
18817cat >>conftest.$ac_ext <<_ACEOF
18818/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018819
18820/* Override any gcc2 internal prototype to avoid an error. */
18821#ifdef __cplusplus
18822extern "C"
18823#endif
18824/* We use char because int might match the return type of a gcc2
18825 builtin and then its argument prototype would still apply. */
18826char elf_begin ();
John Criswell7a73b802003-06-30 21:59:07 +000018827int
18828main ()
18829{
18830elf_begin ();
18831 ;
18832 return 0;
18833}
18834_ACEOF
18835rm -f conftest.$ac_objext conftest$ac_exeext
18836if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000018837 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000018838 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000018839 grep -v '^ *+' conftest.er1 >conftest.err
18840 rm -f conftest.er1
18841 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000018842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18843 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000018844 { ac_try='test -z "$ac_c_werror_flag"
18845 || test ! -s conftest.err'
18846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18847 (eval $ac_try) 2>&5
18848 ac_status=$?
18849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18850 (exit $ac_status); }; } &&
18851 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18853 (eval $ac_try) 2>&5
18854 ac_status=$?
18855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18856 (exit $ac_status); }; }; then
18857 ac_cv_lib_elf_elf_begin=yes
18858else
18859 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018860sed 's/^/| /' conftest.$ac_ext >&5
18861
John Criswell7a73b802003-06-30 21:59:07 +000018862ac_cv_lib_elf_elf_begin=no
18863fi
Reid Spencer17041682004-09-05 17:48:32 +000018864rm -f conftest.err conftest.$ac_objext \
18865 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018866LIBS=$ac_check_lib_save_LIBS
18867fi
18868echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
18869echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6
18870if test $ac_cv_lib_elf_elf_begin = yes; then
18871 cat >>confdefs.h <<_ACEOF
18872#define HAVE_LIBELF 1
18873_ACEOF
18874
18875 LIBS="-lelf $LIBS"
18876
18877fi
18878
18879
18880echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18881echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6
18882if test "${ac_cv_search_dlopen+set}" = set; then
18883 echo $ECHO_N "(cached) $ECHO_C" >&6
18884else
18885 ac_func_search_save_LIBS=$LIBS
18886ac_cv_search_dlopen=no
18887cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018888/* confdefs.h. */
18889_ACEOF
18890cat confdefs.h >>conftest.$ac_ext
18891cat >>conftest.$ac_ext <<_ACEOF
18892/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018893
18894/* Override any gcc2 internal prototype to avoid an error. */
18895#ifdef __cplusplus
18896extern "C"
18897#endif
18898/* We use char because int might match the return type of a gcc2
18899 builtin and then its argument prototype would still apply. */
18900char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018901int
18902main ()
18903{
18904dlopen ();
18905 ;
18906 return 0;
18907}
18908_ACEOF
18909rm -f conftest.$ac_objext conftest$ac_exeext
18910if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000018911 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000018912 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000018913 grep -v '^ *+' conftest.er1 >conftest.err
18914 rm -f conftest.er1
18915 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000018916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000018918 { ac_try='test -z "$ac_c_werror_flag"
18919 || test ! -s conftest.err'
18920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18921 (eval $ac_try) 2>&5
18922 ac_status=$?
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; } &&
18925 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18927 (eval $ac_try) 2>&5
18928 ac_status=$?
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); }; }; then
18931 ac_cv_search_dlopen="none required"
18932else
18933 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018934sed 's/^/| /' conftest.$ac_ext >&5
18935
John Criswell7a73b802003-06-30 21:59:07 +000018936fi
Reid Spencer17041682004-09-05 17:48:32 +000018937rm -f conftest.err conftest.$ac_objext \
18938 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018939if test "$ac_cv_search_dlopen" = no; then
18940 for ac_lib in dl; do
18941 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18942 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000018943/* confdefs.h. */
18944_ACEOF
18945cat confdefs.h >>conftest.$ac_ext
18946cat >>conftest.$ac_ext <<_ACEOF
18947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000018948
18949/* Override any gcc2 internal prototype to avoid an error. */
18950#ifdef __cplusplus
18951extern "C"
18952#endif
18953/* We use char because int might match the return type of a gcc2
18954 builtin and then its argument prototype would still apply. */
18955char dlopen ();
John Criswell7a73b802003-06-30 21:59:07 +000018956int
18957main ()
18958{
18959dlopen ();
18960 ;
18961 return 0;
18962}
18963_ACEOF
18964rm -f conftest.$ac_objext conftest$ac_exeext
18965if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000018966 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000018967 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000018968 grep -v '^ *+' conftest.er1 >conftest.err
18969 rm -f conftest.er1
18970 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000018971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000018973 { ac_try='test -z "$ac_c_werror_flag"
18974 || test ! -s conftest.err'
18975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18976 (eval $ac_try) 2>&5
18977 ac_status=$?
18978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18979 (exit $ac_status); }; } &&
18980 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000018981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18982 (eval $ac_try) 2>&5
18983 ac_status=$?
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); }; }; then
18986 ac_cv_search_dlopen="-l$ac_lib"
18987break
18988else
18989 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000018990sed 's/^/| /' conftest.$ac_ext >&5
18991
John Criswell7a73b802003-06-30 21:59:07 +000018992fi
Reid Spencer17041682004-09-05 17:48:32 +000018993rm -f conftest.err conftest.$ac_objext \
18994 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000018995 done
18996fi
18997LIBS=$ac_func_search_save_LIBS
18998fi
18999echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
19000echo "${ECHO_T}$ac_cv_search_dlopen" >&6
19001if test "$ac_cv_search_dlopen" != no; then
19002 test "$ac_cv_search_dlopen" = "none required" || LIBS="$ac_cv_search_dlopen $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019003
19004cat >>confdefs.h <<\_ACEOF
Brian Gaekec45be042003-10-07 06:01:34 +000019005#define HAVE_DLOPEN 1
19006_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019007
19008else
Brian Gaekec45be042003-10-07 06:01:34 +000019009 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
19010echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000019011fi
19012
19013
19014echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
19015echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6
19016if test "${ac_cv_search_mallinfo+set}" = set; then
19017 echo $ECHO_N "(cached) $ECHO_C" >&6
19018else
19019 ac_func_search_save_LIBS=$LIBS
19020ac_cv_search_mallinfo=no
19021cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019022/* confdefs.h. */
19023_ACEOF
19024cat confdefs.h >>conftest.$ac_ext
19025cat >>conftest.$ac_ext <<_ACEOF
19026/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019027
19028/* Override any gcc2 internal prototype to avoid an error. */
19029#ifdef __cplusplus
19030extern "C"
19031#endif
19032/* We use char because int might match the return type of a gcc2
19033 builtin and then its argument prototype would still apply. */
19034char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019035int
19036main ()
19037{
19038mallinfo ();
19039 ;
19040 return 0;
19041}
19042_ACEOF
19043rm -f conftest.$ac_objext conftest$ac_exeext
19044if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019045 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019046 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019047 grep -v '^ *+' conftest.er1 >conftest.err
19048 rm -f conftest.er1
19049 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019052 { ac_try='test -z "$ac_c_werror_flag"
19053 || test ! -s conftest.err'
19054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19055 (eval $ac_try) 2>&5
19056 ac_status=$?
19057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058 (exit $ac_status); }; } &&
19059 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19061 (eval $ac_try) 2>&5
19062 ac_status=$?
19063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19064 (exit $ac_status); }; }; then
19065 ac_cv_search_mallinfo="none required"
19066else
19067 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019068sed 's/^/| /' conftest.$ac_ext >&5
19069
John Criswell7a73b802003-06-30 21:59:07 +000019070fi
Reid Spencer17041682004-09-05 17:48:32 +000019071rm -f conftest.err conftest.$ac_objext \
19072 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019073if test "$ac_cv_search_mallinfo" = no; then
19074 for ac_lib in malloc; do
19075 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19076 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019077/* confdefs.h. */
19078_ACEOF
19079cat confdefs.h >>conftest.$ac_ext
19080cat >>conftest.$ac_ext <<_ACEOF
19081/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019082
19083/* Override any gcc2 internal prototype to avoid an error. */
19084#ifdef __cplusplus
19085extern "C"
19086#endif
19087/* We use char because int might match the return type of a gcc2
19088 builtin and then its argument prototype would still apply. */
19089char mallinfo ();
John Criswell7a73b802003-06-30 21:59:07 +000019090int
19091main ()
19092{
19093mallinfo ();
19094 ;
19095 return 0;
19096}
19097_ACEOF
19098rm -f conftest.$ac_objext conftest$ac_exeext
19099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019100 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019101 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019102 grep -v '^ *+' conftest.er1 >conftest.err
19103 rm -f conftest.er1
19104 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19106 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019107 { ac_try='test -z "$ac_c_werror_flag"
19108 || test ! -s conftest.err'
19109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19110 (eval $ac_try) 2>&5
19111 ac_status=$?
19112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); }; } &&
19114 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000019115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; }; then
19120 ac_cv_search_mallinfo="-l$ac_lib"
19121break
19122else
19123 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019124sed 's/^/| /' conftest.$ac_ext >&5
19125
John Criswell7a73b802003-06-30 21:59:07 +000019126fi
Reid Spencer17041682004-09-05 17:48:32 +000019127rm -f conftest.err conftest.$ac_objext \
19128 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019129 done
19130fi
19131LIBS=$ac_func_search_save_LIBS
19132fi
19133echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
19134echo "${ECHO_T}$ac_cv_search_mallinfo" >&6
19135if test "$ac_cv_search_mallinfo" != no; then
19136 test "$ac_cv_search_mallinfo" = "none required" || LIBS="$ac_cv_search_mallinfo $LIBS"
John Criswell5ab73462003-10-09 15:44:28 +000019137
19138cat >>confdefs.h <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000019139#define HAVE_MALLINFO 1
19140_ACEOF
19141
19142fi
19143
19144
Brian Gaeke5f268f72003-12-05 19:29:01 +000019145echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
19146echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6
19147if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19149else
19150 ac_func_search_save_LIBS=$LIBS
19151ac_cv_search_pthread_mutex_lock=no
19152cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019153/* confdefs.h. */
19154_ACEOF
19155cat confdefs.h >>conftest.$ac_ext
19156cat >>conftest.$ac_ext <<_ACEOF
19157/* end confdefs.h. */
19158
19159/* Override any gcc2 internal prototype to avoid an error. */
19160#ifdef __cplusplus
19161extern "C"
19162#endif
19163/* We use char because int might match the return type of a gcc2
19164 builtin and then its argument prototype would still apply. */
19165char pthread_mutex_lock ();
19166int
19167main ()
19168{
19169pthread_mutex_lock ();
19170 ;
19171 return 0;
19172}
19173_ACEOF
19174rm -f conftest.$ac_objext conftest$ac_exeext
19175if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019176 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019177 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019178 grep -v '^ *+' conftest.er1 >conftest.err
19179 rm -f conftest.er1
19180 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019183 { ac_try='test -z "$ac_c_werror_flag"
19184 || test ! -s conftest.err'
19185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19186 (eval $ac_try) 2>&5
19187 ac_status=$?
19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19189 (exit $ac_status); }; } &&
19190 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19192 (eval $ac_try) 2>&5
19193 ac_status=$?
19194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19195 (exit $ac_status); }; }; then
19196 ac_cv_search_pthread_mutex_lock="none required"
19197else
19198 echo "$as_me: failed program was:" >&5
19199sed 's/^/| /' conftest.$ac_ext >&5
19200
19201fi
Reid Spencer17041682004-09-05 17:48:32 +000019202rm -f conftest.err conftest.$ac_objext \
19203 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019204if test "$ac_cv_search_pthread_mutex_lock" = no; then
19205 for ac_lib in pthread; do
19206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19207 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke5f268f72003-12-05 19:29:01 +000019208/* confdefs.h. */
19209_ACEOF
19210cat confdefs.h >>conftest.$ac_ext
19211cat >>conftest.$ac_ext <<_ACEOF
19212/* end confdefs.h. */
19213
19214/* Override any gcc2 internal prototype to avoid an error. */
19215#ifdef __cplusplus
19216extern "C"
19217#endif
19218/* We use char because int might match the return type of a gcc2
19219 builtin and then its argument prototype would still apply. */
19220char pthread_mutex_lock ();
19221int
19222main ()
19223{
19224pthread_mutex_lock ();
19225 ;
19226 return 0;
19227}
19228_ACEOF
19229rm -f conftest.$ac_objext conftest$ac_exeext
19230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019231 (eval $ac_link) 2>conftest.er1
Brian Gaeke5f268f72003-12-05 19:29:01 +000019232 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019233 grep -v '^ *+' conftest.er1 >conftest.err
19234 rm -f conftest.er1
19235 cat conftest.err >&5
Brian Gaeke5f268f72003-12-05 19:29:01 +000019236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19237 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019238 { ac_try='test -z "$ac_c_werror_flag"
19239 || test ! -s conftest.err'
19240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19241 (eval $ac_try) 2>&5
19242 ac_status=$?
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); }; } &&
19245 { ac_try='test -s conftest$ac_exeext'
Brian Gaeke5f268f72003-12-05 19:29:01 +000019246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19247 (eval $ac_try) 2>&5
19248 ac_status=$?
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 ac_cv_search_pthread_mutex_lock="-l$ac_lib"
19252break
19253else
19254 echo "$as_me: failed program was:" >&5
19255sed 's/^/| /' conftest.$ac_ext >&5
19256
19257fi
Reid Spencer17041682004-09-05 17:48:32 +000019258rm -f conftest.err conftest.$ac_objext \
19259 conftest$ac_exeext conftest.$ac_ext
Brian Gaeke5f268f72003-12-05 19:29:01 +000019260 done
19261fi
19262LIBS=$ac_func_search_save_LIBS
19263fi
19264echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
19265echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6
19266if test "$ac_cv_search_pthread_mutex_lock" != no; then
19267 test "$ac_cv_search_pthread_mutex_lock" = "none required" || LIBS="$ac_cv_search_pthread_mutex_lock $LIBS"
Brian Gaekec9a410c2004-02-23 21:30:37 +000019268 HAVE_PTHREAD_MUTEX_LOCK=1
19269else
19270 HAVE_PTHREAD_MUTEX_LOCK=0
Brian Gaeke5f268f72003-12-05 19:29:01 +000019271fi
19272
19273
Brian Gaekec9a410c2004-02-23 21:30:37 +000019274
John Criswell7a73b802003-06-30 21:59:07 +000019275echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19276echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19277if test "${ac_cv_header_stdc+set}" = set; then
19278 echo $ECHO_N "(cached) $ECHO_C" >&6
19279else
19280 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019281/* confdefs.h. */
19282_ACEOF
19283cat confdefs.h >>conftest.$ac_ext
19284cat >>conftest.$ac_ext <<_ACEOF
19285/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019286#include <stdlib.h>
19287#include <stdarg.h>
19288#include <string.h>
19289#include <float.h>
19290
John Criswell0c38eaf2003-09-10 15:17:25 +000019291int
19292main ()
19293{
19294
19295 ;
19296 return 0;
19297}
John Criswell7a73b802003-06-30 21:59:07 +000019298_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019299rm -f conftest.$ac_objext
19300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019301 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019302 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019303 grep -v '^ *+' conftest.er1 >conftest.err
19304 rm -f conftest.er1
19305 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019307 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019308 { ac_try='test -z "$ac_c_werror_flag"
19309 || test ! -s conftest.err'
19310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311 (eval $ac_try) 2>&5
19312 ac_status=$?
19313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314 (exit $ac_status); }; } &&
19315 { ac_try='test -s conftest.$ac_objext'
John Criswell0c38eaf2003-09-10 15:17:25 +000019316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317 (eval $ac_try) 2>&5
19318 ac_status=$?
19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320 (exit $ac_status); }; }; then
John Criswell7a73b802003-06-30 21:59:07 +000019321 ac_cv_header_stdc=yes
19322else
19323 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019324sed 's/^/| /' conftest.$ac_ext >&5
19325
19326ac_cv_header_stdc=no
John Criswell7a73b802003-06-30 21:59:07 +000019327fi
Reid Spencer17041682004-09-05 17:48:32 +000019328rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019329
19330if test $ac_cv_header_stdc = yes; then
19331 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19332 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019333/* confdefs.h. */
19334_ACEOF
19335cat confdefs.h >>conftest.$ac_ext
19336cat >>conftest.$ac_ext <<_ACEOF
19337/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019338#include <string.h>
19339
19340_ACEOF
19341if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019342 $EGREP "memchr" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019343 :
19344else
19345 ac_cv_header_stdc=no
19346fi
19347rm -f conftest*
19348
19349fi
19350
19351if test $ac_cv_header_stdc = yes; then
19352 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19353 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019354/* confdefs.h. */
19355_ACEOF
19356cat confdefs.h >>conftest.$ac_ext
19357cat >>conftest.$ac_ext <<_ACEOF
19358/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019359#include <stdlib.h>
19360
19361_ACEOF
19362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000019363 $EGREP "free" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000019364 :
19365else
19366 ac_cv_header_stdc=no
19367fi
19368rm -f conftest*
19369
19370fi
19371
19372if test $ac_cv_header_stdc = yes; then
19373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19374 if test "$cross_compiling" = yes; then
19375 :
19376else
19377 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019378/* confdefs.h. */
19379_ACEOF
19380cat confdefs.h >>conftest.$ac_ext
19381cat >>conftest.$ac_ext <<_ACEOF
19382/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019383#include <ctype.h>
19384#if ((' ' & 0x0FF) == 0x020)
19385# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19386# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19387#else
John Criswell0c38eaf2003-09-10 15:17:25 +000019388# define ISLOWER(c) \
Reid Spencer17041682004-09-05 17:48:32 +000019389 (('a' <= (c) && (c) <= 'i') \
19390 || ('j' <= (c) && (c) <= 'r') \
19391 || ('s' <= (c) && (c) <= 'z'))
John Criswell7a73b802003-06-30 21:59:07 +000019392# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19393#endif
19394
19395#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19396int
19397main ()
19398{
19399 int i;
19400 for (i = 0; i < 256; i++)
19401 if (XOR (islower (i), ISLOWER (i))
Reid Spencer17041682004-09-05 17:48:32 +000019402 || toupper (i) != TOUPPER (i))
John Criswell7a73b802003-06-30 21:59:07 +000019403 exit(2);
19404 exit (0);
19405}
19406_ACEOF
19407rm -f conftest$ac_exeext
19408if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19409 (eval $ac_link) 2>&5
19410 ac_status=$?
19411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19412 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19415 ac_status=$?
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19418 :
19419else
19420 echo "$as_me: program exited with status $ac_status" >&5
19421echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019422sed 's/^/| /' conftest.$ac_ext >&5
19423
John Criswell7a73b802003-06-30 21:59:07 +000019424( exit $ac_status )
19425ac_cv_header_stdc=no
19426fi
Reid Spencer17041682004-09-05 17:48:32 +000019427rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019428fi
19429fi
19430fi
19431echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19432echo "${ECHO_T}$ac_cv_header_stdc" >&6
19433if test $ac_cv_header_stdc = yes; then
19434
19435cat >>confdefs.h <<\_ACEOF
19436#define STDC_HEADERS 1
19437_ACEOF
19438
19439fi
19440
19441echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19442echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19443if test "${ac_cv_header_sys_wait_h+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19445else
19446 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019447/* confdefs.h. */
19448_ACEOF
19449cat confdefs.h >>conftest.$ac_ext
19450cat >>conftest.$ac_ext <<_ACEOF
19451/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019452#include <sys/types.h>
19453#include <sys/wait.h>
19454#ifndef WEXITSTATUS
19455# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
19456#endif
19457#ifndef WIFEXITED
19458# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
19459#endif
19460
John Criswell7a73b802003-06-30 21:59:07 +000019461int
19462main ()
19463{
19464 int s;
19465 wait (&s);
19466 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
19467 ;
19468 return 0;
19469}
19470_ACEOF
19471rm -f conftest.$ac_objext
19472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019473 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019474 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019475 grep -v '^ *+' conftest.er1 >conftest.err
19476 rm -f conftest.er1
19477 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19479 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019480 { ac_try='test -z "$ac_c_werror_flag"
19481 || test ! -s conftest.err'
19482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19484 ac_status=$?
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); }; } &&
19487 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19489 (eval $ac_try) 2>&5
19490 ac_status=$?
19491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19492 (exit $ac_status); }; }; then
19493 ac_cv_header_sys_wait_h=yes
19494else
19495 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019496sed 's/^/| /' conftest.$ac_ext >&5
19497
John Criswell7a73b802003-06-30 21:59:07 +000019498ac_cv_header_sys_wait_h=no
19499fi
Reid Spencer17041682004-09-05 17:48:32 +000019500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019501fi
19502echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
19503echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
19504if test $ac_cv_header_sys_wait_h = yes; then
19505
19506cat >>confdefs.h <<\_ACEOF
19507#define HAVE_SYS_WAIT_H 1
19508_ACEOF
19509
19510fi
19511
19512
19513
19514
19515
19516
19517
19518
19519
19520
Brian Gaeke26be9c52004-01-13 06:43:16 +000019521
Brian Gaekef5261472004-02-20 06:40:57 +000019522
John Criswellb2815e02004-05-27 20:40:39 +000019523
19524for 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 +000019525do
19526as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19527if eval "test \"\${$as_ac_Header+set}\" = set"; then
19528 echo "$as_me:$LINENO: checking for $ac_header" >&5
19529echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19530if eval "test \"\${$as_ac_Header+set}\" = set"; then
19531 echo $ECHO_N "(cached) $ECHO_C" >&6
19532fi
19533echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19534echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19535else
19536 # Is the header compilable?
19537echo "$as_me:$LINENO: checking $ac_header usability" >&5
19538echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19539cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019540/* confdefs.h. */
19541_ACEOF
19542cat confdefs.h >>conftest.$ac_ext
19543cat >>conftest.$ac_ext <<_ACEOF
19544/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019545$ac_includes_default
19546#include <$ac_header>
19547_ACEOF
19548rm -f conftest.$ac_objext
19549if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019550 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000019551 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019552 grep -v '^ *+' conftest.er1 >conftest.err
19553 rm -f conftest.er1
19554 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000019555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019557 { ac_try='test -z "$ac_c_werror_flag"
19558 || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19561 ac_status=$?
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000019565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19567 ac_status=$?
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_header_compiler=yes
19571else
19572 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019573sed 's/^/| /' conftest.$ac_ext >&5
19574
John Criswell7a73b802003-06-30 21:59:07 +000019575ac_header_compiler=no
19576fi
Reid Spencer17041682004-09-05 17:48:32 +000019577rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000019578echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19579echo "${ECHO_T}$ac_header_compiler" >&6
19580
19581# Is the header present?
19582echo "$as_me:$LINENO: checking $ac_header presence" >&5
19583echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19584cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000019585/* confdefs.h. */
19586_ACEOF
19587cat confdefs.h >>conftest.$ac_ext
19588cat >>conftest.$ac_ext <<_ACEOF
19589/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000019590#include <$ac_header>
19591_ACEOF
19592if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19594 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000019595 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000019596 rm -f conftest.er1
19597 cat conftest.err >&5
19598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19599 (exit $ac_status); } >/dev/null; then
19600 if test -s conftest.err; then
19601 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000019602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000019603 else
19604 ac_cpp_err=
19605 fi
19606else
19607 ac_cpp_err=yes
19608fi
19609if test -z "$ac_cpp_err"; then
19610 ac_header_preproc=yes
19611else
19612 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000019613sed 's/^/| /' conftest.$ac_ext >&5
19614
John Criswell7a73b802003-06-30 21:59:07 +000019615 ac_header_preproc=no
19616fi
19617rm -f conftest.err conftest.$ac_ext
19618echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19619echo "${ECHO_T}$ac_header_preproc" >&6
19620
19621# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000019622case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19623 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000019624 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19625echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019626 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19627echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19628 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000019629 ;;
Reid Spencer17041682004-09-05 17:48:32 +000019630 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000019631 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19632echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019633 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19634echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19635 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19636echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19637 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19638echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019641 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19642echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019643 (
19644 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000019645## ----------------------------------- ##
19646## Report this to llvmbugs@cs.uiuc.edu ##
19647## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000019648_ASBOX
19649 ) |
19650 sed "s/^/$as_me: WARNING: /" >&2
19651 ;;
John Criswell7a73b802003-06-30 21:59:07 +000019652esac
19653echo "$as_me:$LINENO: checking for $ac_header" >&5
19654echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19655if eval "test \"\${$as_ac_Header+set}\" = set"; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657else
Reid Spencer17041682004-09-05 17:48:32 +000019658 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000019659fi
19660echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19661echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19662
19663fi
19664if test `eval echo '${'$as_ac_Header'}'` = yes; then
19665 cat >>confdefs.h <<_ACEOF
19666#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19667_ACEOF
19668
19669fi
19670
19671done
19672
19673
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019674if test "${ac_cv_header_sys_types_h+set}" = set; then
19675 echo "$as_me:$LINENO: checking for sys/types.h" >&5
19676echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19677if test "${ac_cv_header_sys_types_h+set}" = set; then
19678 echo $ECHO_N "(cached) $ECHO_C" >&6
19679fi
19680echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19681echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19682else
19683 # Is the header compilable?
19684echo "$as_me:$LINENO: checking sys/types.h usability" >&5
19685echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
19686cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019687/* confdefs.h. */
19688_ACEOF
19689cat confdefs.h >>conftest.$ac_ext
19690cat >>conftest.$ac_ext <<_ACEOF
19691/* end confdefs.h. */
19692$ac_includes_default
19693#include <sys/types.h>
19694_ACEOF
19695rm -f conftest.$ac_objext
19696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019697 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019698 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019699 grep -v '^ *+' conftest.er1 >conftest.err
19700 rm -f conftest.er1
19701 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019704 { ac_try='test -z "$ac_c_werror_flag"
19705 || test ! -s conftest.err'
19706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19707 (eval $ac_try) 2>&5
19708 ac_status=$?
19709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19710 (exit $ac_status); }; } &&
19711 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19714 ac_status=$?
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; }; then
19717 ac_header_compiler=yes
19718else
19719 echo "$as_me: failed program was:" >&5
19720sed 's/^/| /' conftest.$ac_ext >&5
19721
19722ac_header_compiler=no
19723fi
Reid Spencer17041682004-09-05 17:48:32 +000019724rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019725echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19726echo "${ECHO_T}$ac_header_compiler" >&6
19727
19728# Is the header present?
19729echo "$as_me:$LINENO: checking sys/types.h presence" >&5
19730echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
19731cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019732/* confdefs.h. */
19733_ACEOF
19734cat confdefs.h >>conftest.$ac_ext
19735cat >>conftest.$ac_ext <<_ACEOF
19736/* end confdefs.h. */
19737#include <sys/types.h>
19738_ACEOF
19739if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19740 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19741 ac_status=$?
19742 grep -v '^ *+' conftest.er1 >conftest.err
19743 rm -f conftest.er1
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } >/dev/null; then
19747 if test -s conftest.err; then
19748 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000019749 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019750 else
19751 ac_cpp_err=
19752 fi
19753else
19754 ac_cpp_err=yes
19755fi
19756if test -z "$ac_cpp_err"; then
19757 ac_header_preproc=yes
19758else
19759 echo "$as_me: failed program was:" >&5
19760sed 's/^/| /' conftest.$ac_ext >&5
19761
19762 ac_header_preproc=no
19763fi
19764rm -f conftest.err conftest.$ac_ext
19765echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19766echo "${ECHO_T}$ac_header_preproc" >&6
19767
19768# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000019769case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19770 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019771 { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
19772echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019773 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
19774echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
19775 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000019776 ;;
Reid Spencer17041682004-09-05 17:48:32 +000019777 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000019778 { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
19779echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019780 { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
19781echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
19782 { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
19783echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
19784 { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
19785echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019786 { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
19787echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019788 { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
19789echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019790 (
19791 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000019792## ----------------------------------- ##
19793## Report this to llvmbugs@cs.uiuc.edu ##
19794## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019795_ASBOX
19796 ) |
19797 sed "s/^/$as_me: WARNING: /" >&2
19798 ;;
19799esac
19800echo "$as_me:$LINENO: checking for sys/types.h" >&5
19801echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
19802if test "${ac_cv_header_sys_types_h+set}" = set; then
19803 echo $ECHO_N "(cached) $ECHO_C" >&6
19804else
19805 ac_cv_header_sys_types_h=$ac_header_preproc
19806fi
19807echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
19808echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
19809
19810fi
19811if test $ac_cv_header_sys_types_h = yes; then
19812 INCLUDE_SYS_TYPES_H='#include <sys/types.h>'
19813else
19814 INCLUDE_SYS_TYPES_H=''
19815fi
19816
19817
19818
19819if test "${ac_cv_header_inttypes_h+set}" = set; then
19820 echo "$as_me:$LINENO: checking for inttypes.h" >&5
19821echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19822if test "${ac_cv_header_inttypes_h+set}" = set; then
19823 echo $ECHO_N "(cached) $ECHO_C" >&6
19824fi
19825echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19826echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19827else
19828 # Is the header compilable?
19829echo "$as_me:$LINENO: checking inttypes.h usability" >&5
19830echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
19831cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019832/* confdefs.h. */
19833_ACEOF
19834cat confdefs.h >>conftest.$ac_ext
19835cat >>conftest.$ac_ext <<_ACEOF
19836/* end confdefs.h. */
19837$ac_includes_default
19838#include <inttypes.h>
19839_ACEOF
19840rm -f conftest.$ac_objext
19841if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019842 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019843 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019844 grep -v '^ *+' conftest.er1 >conftest.err
19845 rm -f conftest.er1
19846 cat conftest.err >&5
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19848 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019849 { ac_try='test -z "$ac_c_werror_flag"
19850 || test ! -s conftest.err'
19851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19852 (eval $ac_try) 2>&5
19853 ac_status=$?
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); }; } &&
19856 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19858 (eval $ac_try) 2>&5
19859 ac_status=$?
19860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19861 (exit $ac_status); }; }; then
19862 ac_header_compiler=yes
19863else
19864 echo "$as_me: failed program was:" >&5
19865sed 's/^/| /' conftest.$ac_ext >&5
19866
19867ac_header_compiler=no
19868fi
Reid Spencer17041682004-09-05 17:48:32 +000019869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019870echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19871echo "${ECHO_T}$ac_header_compiler" >&6
19872
19873# Is the header present?
19874echo "$as_me:$LINENO: checking inttypes.h presence" >&5
19875echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
19876cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019877/* confdefs.h. */
19878_ACEOF
19879cat confdefs.h >>conftest.$ac_ext
19880cat >>conftest.$ac_ext <<_ACEOF
19881/* end confdefs.h. */
19882#include <inttypes.h>
19883_ACEOF
19884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19885 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19886 ac_status=$?
19887 grep -v '^ *+' conftest.er1 >conftest.err
19888 rm -f conftest.er1
19889 cat conftest.err >&5
19890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19891 (exit $ac_status); } >/dev/null; then
19892 if test -s conftest.err; then
19893 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000019894 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019895 else
19896 ac_cpp_err=
19897 fi
19898else
19899 ac_cpp_err=yes
19900fi
19901if test -z "$ac_cpp_err"; then
19902 ac_header_preproc=yes
19903else
19904 echo "$as_me: failed program was:" >&5
19905sed 's/^/| /' conftest.$ac_ext >&5
19906
19907 ac_header_preproc=no
19908fi
19909rm -f conftest.err conftest.$ac_ext
19910echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19911echo "${ECHO_T}$ac_header_preproc" >&6
19912
19913# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000019914case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19915 yes:no: )
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019916 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
19917echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019918 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the compiler's result" >&5
19919echo "$as_me: WARNING: inttypes.h: proceeding with the compiler's result" >&2;}
19920 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000019921 ;;
Reid Spencer17041682004-09-05 17:48:32 +000019922 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000019923 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
19924echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019925 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
19926echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
19927 { echo "$as_me:$LINENO: WARNING: inttypes.h: see the Autoconf documentation" >&5
19928echo "$as_me: WARNING: inttypes.h: see the Autoconf documentation" >&2;}
19929 { echo "$as_me:$LINENO: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&5
19930echo "$as_me: WARNING: inttypes.h: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019931 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
19932echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000019933 { echo "$as_me:$LINENO: WARNING: inttypes.h: in the future, the compiler will take precedence" >&5
19934echo "$as_me: WARNING: inttypes.h: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000019935 (
19936 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000019937## ----------------------------------- ##
19938## Report this to llvmbugs@cs.uiuc.edu ##
19939## ----------------------------------- ##
Brian Gaeke6c3fd812004-02-23 22:07:00 +000019940_ASBOX
19941 ) |
19942 sed "s/^/$as_me: WARNING: /" >&2
19943 ;;
19944esac
19945echo "$as_me:$LINENO: checking for inttypes.h" >&5
19946echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
19947if test "${ac_cv_header_inttypes_h+set}" = set; then
19948 echo $ECHO_N "(cached) $ECHO_C" >&6
19949else
19950 ac_cv_header_inttypes_h=$ac_header_preproc
19951fi
19952echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
19953echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
19954
19955fi
19956if test $ac_cv_header_inttypes_h = yes; then
19957 INCLUDE_INTTYPES_H='#include <inttypes.h>'
19958else
19959 INCLUDE_INTTYPES_H=''
19960fi
19961
19962
19963
John Criswell7ed43ad2004-07-19 16:12:29 +000019964if test "${ac_cv_header_stdint_h+set}" = set; then
19965 echo "$as_me:$LINENO: checking for stdint.h" >&5
19966echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
19967if test "${ac_cv_header_stdint_h+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19969fi
19970echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
19971echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
19972else
19973 # Is the header compilable?
19974echo "$as_me:$LINENO: checking stdint.h usability" >&5
19975echo $ECHO_N "checking stdint.h usability... $ECHO_C" >&6
19976cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000019977/* confdefs.h. */
19978_ACEOF
19979cat confdefs.h >>conftest.$ac_ext
19980cat >>conftest.$ac_ext <<_ACEOF
19981/* end confdefs.h. */
19982$ac_includes_default
19983#include <stdint.h>
19984_ACEOF
19985rm -f conftest.$ac_objext
19986if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000019987 (eval $ac_compile) 2>conftest.er1
John Criswell7ed43ad2004-07-19 16:12:29 +000019988 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000019989 grep -v '^ *+' conftest.er1 >conftest.err
19990 rm -f conftest.er1
19991 cat conftest.err >&5
John Criswell7ed43ad2004-07-19 16:12:29 +000019992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19993 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000019994 { ac_try='test -z "$ac_c_werror_flag"
19995 || test ! -s conftest.err'
19996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19997 (eval $ac_try) 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest.$ac_objext'
John Criswell7ed43ad2004-07-19 16:12:29 +000020002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20003 (eval $ac_try) 2>&5
20004 ac_status=$?
20005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20006 (exit $ac_status); }; }; then
20007 ac_header_compiler=yes
20008else
20009 echo "$as_me: failed program was:" >&5
20010sed 's/^/| /' conftest.$ac_ext >&5
20011
20012ac_header_compiler=no
20013fi
Reid Spencer17041682004-09-05 17:48:32 +000020014rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7ed43ad2004-07-19 16:12:29 +000020015echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20016echo "${ECHO_T}$ac_header_compiler" >&6
20017
20018# Is the header present?
20019echo "$as_me:$LINENO: checking stdint.h presence" >&5
20020echo $ECHO_N "checking stdint.h presence... $ECHO_C" >&6
20021cat >conftest.$ac_ext <<_ACEOF
John Criswell7ed43ad2004-07-19 16:12:29 +000020022/* confdefs.h. */
20023_ACEOF
20024cat confdefs.h >>conftest.$ac_ext
20025cat >>conftest.$ac_ext <<_ACEOF
20026/* end confdefs.h. */
20027#include <stdint.h>
20028_ACEOF
20029if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20030 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20031 ac_status=$?
20032 grep -v '^ *+' conftest.er1 >conftest.err
20033 rm -f conftest.er1
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); } >/dev/null; then
20037 if test -s conftest.err; then
20038 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000020039 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7ed43ad2004-07-19 16:12:29 +000020040 else
20041 ac_cpp_err=
20042 fi
20043else
20044 ac_cpp_err=yes
20045fi
20046if test -z "$ac_cpp_err"; then
20047 ac_header_preproc=yes
20048else
20049 echo "$as_me: failed program was:" >&5
20050sed 's/^/| /' conftest.$ac_ext >&5
20051
20052 ac_header_preproc=no
20053fi
20054rm -f conftest.err conftest.$ac_ext
20055echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20056echo "${ECHO_T}$ac_header_preproc" >&6
20057
20058# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000020059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20060 yes:no: )
John Criswell7ed43ad2004-07-19 16:12:29 +000020061 { echo "$as_me:$LINENO: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&5
20062echo "$as_me: WARNING: stdint.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000020063 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the compiler's result" >&5
20064echo "$as_me: WARNING: stdint.h: proceeding with the compiler's result" >&2;}
20065 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000020066 ;;
Reid Spencer17041682004-09-05 17:48:32 +000020067 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000020068 { echo "$as_me:$LINENO: WARNING: stdint.h: present but cannot be compiled" >&5
20069echo "$as_me: WARNING: stdint.h: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000020070 { echo "$as_me:$LINENO: WARNING: stdint.h: check for missing prerequisite headers?" >&5
20071echo "$as_me: WARNING: stdint.h: check for missing prerequisite headers?" >&2;}
20072 { echo "$as_me:$LINENO: WARNING: stdint.h: see the Autoconf documentation" >&5
20073echo "$as_me: WARNING: stdint.h: see the Autoconf documentation" >&2;}
20074 { echo "$as_me:$LINENO: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&5
20075echo "$as_me: WARNING: stdint.h: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000020076 { echo "$as_me:$LINENO: WARNING: stdint.h: proceeding with the preprocessor's result" >&5
20077echo "$as_me: WARNING: stdint.h: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000020078 { echo "$as_me:$LINENO: WARNING: stdint.h: in the future, the compiler will take precedence" >&5
20079echo "$as_me: WARNING: stdint.h: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000020080 (
20081 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000020082## ----------------------------------- ##
20083## Report this to llvmbugs@cs.uiuc.edu ##
20084## ----------------------------------- ##
John Criswell7ed43ad2004-07-19 16:12:29 +000020085_ASBOX
20086 ) |
20087 sed "s/^/$as_me: WARNING: /" >&2
20088 ;;
20089esac
20090echo "$as_me:$LINENO: checking for stdint.h" >&5
20091echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
20092if test "${ac_cv_header_stdint_h+set}" = set; then
20093 echo $ECHO_N "(cached) $ECHO_C" >&6
20094else
20095 ac_cv_header_stdint_h=$ac_header_preproc
20096fi
20097echo "$as_me:$LINENO: result: $ac_cv_header_stdint_h" >&5
20098echo "${ECHO_T}$ac_cv_header_stdint_h" >&6
20099
20100fi
20101if test $ac_cv_header_stdint_h = yes; then
20102 INCLUDE_STDINT_H='#include <stdint.h>'
20103else
20104 INCLUDE_STDINT_H=''
20105fi
20106
20107
20108
20109
Brian Gaeke6c3fd812004-02-23 22:07:00 +000020110
John Criswell7a73b802003-06-30 21:59:07 +000020111echo "$as_me:$LINENO: checking for pid_t" >&5
20112echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
20113if test "${ac_cv_type_pid_t+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20115else
20116 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020117/* confdefs.h. */
20118_ACEOF
20119cat confdefs.h >>conftest.$ac_ext
20120cat >>conftest.$ac_ext <<_ACEOF
20121/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020122$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020123int
20124main ()
20125{
20126if ((pid_t *) 0)
20127 return 0;
20128if (sizeof (pid_t))
20129 return 0;
20130 ;
20131 return 0;
20132}
20133_ACEOF
20134rm -f conftest.$ac_objext
20135if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020136 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020137 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020138 grep -v '^ *+' conftest.er1 >conftest.err
20139 rm -f conftest.er1
20140 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020143 { ac_try='test -z "$ac_c_werror_flag"
20144 || test ! -s conftest.err'
20145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20146 (eval $ac_try) 2>&5
20147 ac_status=$?
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); }; } &&
20150 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20152 (eval $ac_try) 2>&5
20153 ac_status=$?
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); }; }; then
20156 ac_cv_type_pid_t=yes
20157else
20158 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020159sed 's/^/| /' conftest.$ac_ext >&5
20160
John Criswell7a73b802003-06-30 21:59:07 +000020161ac_cv_type_pid_t=no
20162fi
Reid Spencer17041682004-09-05 17:48:32 +000020163rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020164fi
20165echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
20166echo "${ECHO_T}$ac_cv_type_pid_t" >&6
20167if test $ac_cv_type_pid_t = yes; then
20168 :
20169else
20170
20171cat >>confdefs.h <<_ACEOF
20172#define pid_t int
20173_ACEOF
20174
20175fi
20176
20177echo "$as_me:$LINENO: checking for size_t" >&5
20178echo $ECHO_N "checking for size_t... $ECHO_C" >&6
20179if test "${ac_cv_type_size_t+set}" = set; then
20180 echo $ECHO_N "(cached) $ECHO_C" >&6
20181else
20182 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020183/* confdefs.h. */
20184_ACEOF
20185cat confdefs.h >>conftest.$ac_ext
20186cat >>conftest.$ac_ext <<_ACEOF
20187/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020188$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020189int
20190main ()
20191{
20192if ((size_t *) 0)
20193 return 0;
20194if (sizeof (size_t))
20195 return 0;
20196 ;
20197 return 0;
20198}
20199_ACEOF
20200rm -f conftest.$ac_objext
20201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020202 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020203 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020204 grep -v '^ *+' conftest.er1 >conftest.err
20205 rm -f conftest.er1
20206 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020209 { ac_try='test -z "$ac_c_werror_flag"
20210 || test ! -s conftest.err'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20213 ac_status=$?
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; } &&
20216 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20219 ac_status=$?
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; }; then
20222 ac_cv_type_size_t=yes
20223else
20224 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020225sed 's/^/| /' conftest.$ac_ext >&5
20226
John Criswell7a73b802003-06-30 21:59:07 +000020227ac_cv_type_size_t=no
20228fi
Reid Spencer17041682004-09-05 17:48:32 +000020229rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020230fi
20231echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
20232echo "${ECHO_T}$ac_cv_type_size_t" >&6
20233if test $ac_cv_type_size_t = yes; then
20234 :
20235else
20236
20237cat >>confdefs.h <<_ACEOF
20238#define size_t unsigned
20239_ACEOF
20240
20241fi
20242
20243echo "$as_me:$LINENO: checking for int64_t" >&5
20244echo $ECHO_N "checking for int64_t... $ECHO_C" >&6
20245if test "${ac_cv_type_int64_t+set}" = set; then
20246 echo $ECHO_N "(cached) $ECHO_C" >&6
20247else
20248 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020249/* confdefs.h. */
20250_ACEOF
20251cat confdefs.h >>conftest.$ac_ext
20252cat >>conftest.$ac_ext <<_ACEOF
20253/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020254$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020255int
20256main ()
20257{
20258if ((int64_t *) 0)
20259 return 0;
20260if (sizeof (int64_t))
20261 return 0;
20262 ;
20263 return 0;
20264}
20265_ACEOF
20266rm -f conftest.$ac_objext
20267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020268 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020269 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020270 grep -v '^ *+' conftest.er1 >conftest.err
20271 rm -f conftest.er1
20272 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20274 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020275 { ac_try='test -z "$ac_c_werror_flag"
20276 || test ! -s conftest.err'
20277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20278 (eval $ac_try) 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20285 ac_status=$?
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
20288 ac_cv_type_int64_t=yes
20289else
20290 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020291sed 's/^/| /' conftest.$ac_ext >&5
20292
John Criswell7a73b802003-06-30 21:59:07 +000020293ac_cv_type_int64_t=no
20294fi
Reid Spencer17041682004-09-05 17:48:32 +000020295rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020296fi
20297echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
20298echo "${ECHO_T}$ac_cv_type_int64_t" >&6
20299if test $ac_cv_type_int64_t = yes; then
20300
20301cat >>confdefs.h <<_ACEOF
20302#define HAVE_INT64_T 1
20303_ACEOF
20304
20305
20306else
20307 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
20308echo "$as_me: error: Type int64_t required but not found" >&2;}
20309 { (exit 1); exit 1; }; }
20310fi
20311
20312echo "$as_me:$LINENO: checking for uint64_t" >&5
20313echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6
20314if test "${ac_cv_type_uint64_t+set}" = set; then
20315 echo $ECHO_N "(cached) $ECHO_C" >&6
20316else
20317 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020318/* confdefs.h. */
20319_ACEOF
20320cat confdefs.h >>conftest.$ac_ext
20321cat >>conftest.$ac_ext <<_ACEOF
20322/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020323$ac_includes_default
John Criswell7a73b802003-06-30 21:59:07 +000020324int
20325main ()
20326{
20327if ((uint64_t *) 0)
20328 return 0;
20329if (sizeof (uint64_t))
20330 return 0;
20331 ;
20332 return 0;
20333}
20334_ACEOF
20335rm -f conftest.$ac_objext
20336if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020337 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020338 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020339 grep -v '^ *+' conftest.er1 >conftest.err
20340 rm -f conftest.er1
20341 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20343 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020344 { ac_try='test -z "$ac_c_werror_flag"
20345 || test ! -s conftest.err'
20346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20347 (eval $ac_try) 2>&5
20348 ac_status=$?
20349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20350 (exit $ac_status); }; } &&
20351 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20353 (eval $ac_try) 2>&5
20354 ac_status=$?
20355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20356 (exit $ac_status); }; }; then
20357 ac_cv_type_uint64_t=yes
20358else
20359 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020360sed 's/^/| /' conftest.$ac_ext >&5
20361
John Criswell7a73b802003-06-30 21:59:07 +000020362ac_cv_type_uint64_t=no
20363fi
Reid Spencer17041682004-09-05 17:48:32 +000020364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020365fi
20366echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
20367echo "${ECHO_T}$ac_cv_type_uint64_t" >&6
20368if test $ac_cv_type_uint64_t = yes; then
20369
20370cat >>confdefs.h <<_ACEOF
20371#define HAVE_UINT64_T 1
20372_ACEOF
20373
20374
20375else
Misha Brukmanceca9042004-09-02 23:02:30 +000020376 echo "$as_me:$LINENO: checking for u_int64_t" >&5
John Criswell679ff312004-09-02 18:44:44 +000020377echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6
20378if test "${ac_cv_type_u_int64_t+set}" = set; then
20379 echo $ECHO_N "(cached) $ECHO_C" >&6
20380else
20381 cat >conftest.$ac_ext <<_ACEOF
John Criswell679ff312004-09-02 18:44:44 +000020382/* confdefs.h. */
20383_ACEOF
20384cat confdefs.h >>conftest.$ac_ext
20385cat >>conftest.$ac_ext <<_ACEOF
20386/* end confdefs.h. */
20387$ac_includes_default
20388int
20389main ()
20390{
20391if ((u_int64_t *) 0)
20392 return 0;
20393if (sizeof (u_int64_t))
20394 return 0;
20395 ;
20396 return 0;
20397}
20398_ACEOF
20399rm -f conftest.$ac_objext
20400if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020401 (eval $ac_compile) 2>conftest.er1
John Criswell679ff312004-09-02 18:44:44 +000020402 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020403 grep -v '^ *+' conftest.er1 >conftest.err
20404 rm -f conftest.er1
20405 cat conftest.err >&5
John Criswell679ff312004-09-02 18:44:44 +000020406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020408 { ac_try='test -z "$ac_c_werror_flag"
20409 || test ! -s conftest.err'
20410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20411 (eval $ac_try) 2>&5
20412 ac_status=$?
20413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20414 (exit $ac_status); }; } &&
20415 { ac_try='test -s conftest.$ac_objext'
John Criswell679ff312004-09-02 18:44:44 +000020416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20417 (eval $ac_try) 2>&5
20418 ac_status=$?
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); }; }; then
20421 ac_cv_type_u_int64_t=yes
20422else
20423 echo "$as_me: failed program was:" >&5
20424sed 's/^/| /' conftest.$ac_ext >&5
20425
20426ac_cv_type_u_int64_t=no
20427fi
Reid Spencer17041682004-09-05 17:48:32 +000020428rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell679ff312004-09-02 18:44:44 +000020429fi
20430echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
20431echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6
20432if test $ac_cv_type_u_int64_t = yes; then
20433
20434cat >>confdefs.h <<_ACEOF
20435#define HAVE_U_INT64_T 1
20436_ACEOF
20437
20438
Misha Brukmanceca9042004-09-02 23:02:30 +000020439else
20440 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
20441echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
20442 { (exit 1); exit 1; }; }
20443fi
20444
John Criswell679ff312004-09-02 18:44:44 +000020445fi
20446
John Criswell7a73b802003-06-30 21:59:07 +000020447echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20448echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20449if test "${ac_cv_header_time+set}" = set; then
20450 echo $ECHO_N "(cached) $ECHO_C" >&6
20451else
20452 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020453/* confdefs.h. */
20454_ACEOF
20455cat confdefs.h >>conftest.$ac_ext
20456cat >>conftest.$ac_ext <<_ACEOF
20457/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020458#include <sys/types.h>
20459#include <sys/time.h>
20460#include <time.h>
20461
John Criswell7a73b802003-06-30 21:59:07 +000020462int
20463main ()
20464{
20465if ((struct tm *) 0)
20466return 0;
20467 ;
20468 return 0;
20469}
20470_ACEOF
20471rm -f conftest.$ac_objext
20472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020473 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020474 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020475 grep -v '^ *+' conftest.er1 >conftest.err
20476 rm -f conftest.er1
20477 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020480 { ac_try='test -z "$ac_c_werror_flag"
20481 || test ! -s conftest.err'
20482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20483 (eval $ac_try) 2>&5
20484 ac_status=$?
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; } &&
20487 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489 (eval $ac_try) 2>&5
20490 ac_status=$?
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; }; then
20493 ac_cv_header_time=yes
20494else
20495 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020496sed 's/^/| /' conftest.$ac_ext >&5
20497
John Criswell7a73b802003-06-30 21:59:07 +000020498ac_cv_header_time=no
20499fi
Reid Spencer17041682004-09-05 17:48:32 +000020500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020501fi
20502echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20503echo "${ECHO_T}$ac_cv_header_time" >&6
20504if test $ac_cv_header_time = yes; then
20505
20506cat >>confdefs.h <<\_ACEOF
20507#define TIME_WITH_SYS_TIME 1
20508_ACEOF
20509
20510fi
20511
20512echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
20513echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
20514if test "${ac_cv_struct_tm+set}" = set; then
20515 echo $ECHO_N "(cached) $ECHO_C" >&6
20516else
20517 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020518/* confdefs.h. */
20519_ACEOF
20520cat confdefs.h >>conftest.$ac_ext
20521cat >>conftest.$ac_ext <<_ACEOF
20522/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020523#include <sys/types.h>
20524#include <time.h>
20525
John Criswell7a73b802003-06-30 21:59:07 +000020526int
20527main ()
20528{
20529struct tm *tp; tp->tm_sec;
20530 ;
20531 return 0;
20532}
20533_ACEOF
20534rm -f conftest.$ac_objext
20535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020536 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020537 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020538 grep -v '^ *+' conftest.er1 >conftest.err
20539 rm -f conftest.er1
20540 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020543 { ac_try='test -z "$ac_c_werror_flag"
20544 || test ! -s conftest.err'
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; } &&
20550 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
20556 ac_cv_struct_tm=time.h
20557else
20558 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020559sed 's/^/| /' conftest.$ac_ext >&5
20560
John Criswell7a73b802003-06-30 21:59:07 +000020561ac_cv_struct_tm=sys/time.h
20562fi
Reid Spencer17041682004-09-05 17:48:32 +000020563rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020564fi
20565echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
20566echo "${ECHO_T}$ac_cv_struct_tm" >&6
20567if test $ac_cv_struct_tm = sys/time.h; then
20568
20569cat >>confdefs.h <<\_ACEOF
20570#define TM_IN_SYS_TIME 1
20571_ACEOF
20572
20573fi
20574
20575
John Criswella0137d32003-10-13 16:22:01 +000020576
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020577 echo "$as_me:$LINENO: checking for printf %a format specifier" >&5
20578echo $ECHO_N "checking for printf %a format specifier... $ECHO_C" >&6
John Criswella0137d32003-10-13 16:22:01 +000020579
20580
20581 ac_ext=c
20582ac_cpp='$CPP $CPPFLAGS'
20583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20585ac_compiler_gnu=$ac_cv_c_compiler_gnu
20586
20587 if test "$cross_compiling" = yes; then
20588 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20589See \`config.log' for more details." >&5
20590echo "$as_me: error: cannot run test program while cross compiling
20591See \`config.log' for more details." >&2;}
20592 { (exit 1); exit 1; }; }
20593else
20594 cat >conftest.$ac_ext <<_ACEOF
John Criswella0137d32003-10-13 16:22:01 +000020595/* confdefs.h. */
20596_ACEOF
20597cat confdefs.h >>conftest.$ac_ext
20598cat >>conftest.$ac_ext <<_ACEOF
20599/* end confdefs.h. */
20600#include <stdio.h>
20601 #include <stdlib.h>
20602int
20603main ()
20604{
20605
20606 volatile double A, B;
20607 char Buffer[100];
20608 A = 1;
20609 A /= 10.0;
20610 sprintf(Buffer, "%a", A);
20611 B = atof(Buffer);
20612 if (A != B)
20613 return (1);
20614 if (A != 0x1.999999999999ap-4)
20615 return (1);
20616 return (0);
20617 ;
20618 return 0;
20619}
20620_ACEOF
20621rm -f conftest$ac_exeext
20622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20623 (eval $ac_link) 2>&5
20624 ac_status=$?
20625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20626 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20628 (eval $ac_try) 2>&5
20629 ac_status=$?
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; }; then
20632 ac_c_printf_a=yes
20633else
20634 echo "$as_me: program exited with status $ac_status" >&5
20635echo "$as_me: failed program was:" >&5
20636sed 's/^/| /' conftest.$ac_ext >&5
20637
20638( exit $ac_status )
20639ac_c_printf_a=no
20640fi
Reid Spencer17041682004-09-05 17:48:32 +000020641rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswella0137d32003-10-13 16:22:01 +000020642fi
20643 ac_ext=c
20644ac_cpp='$CPP $CPPFLAGS'
20645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20647ac_compiler_gnu=$ac_cv_c_compiler_gnu
20648
Brian Gaekeadfe28d2004-07-21 03:50:25 +000020649 echo "$as_me:$LINENO: result: $ac_c_printf_a" >&5
20650echo "${ECHO_T}$ac_c_printf_a" >&6
John Criswella0137d32003-10-13 16:22:01 +000020651 if test "$ac_c_printf_a" = "yes"; then
20652
20653cat >>confdefs.h <<\_ACEOF
20654#define HAVE_PRINTF_A 1
20655_ACEOF
20656
20657 fi
20658
20659
John Criswell0021c312004-02-13 21:57:29 +000020660echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20661echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20662if test "${ac_cv_c_bigendian+set}" = set; then
20663 echo $ECHO_N "(cached) $ECHO_C" >&6
20664else
20665 # See if sys/param.h defines the BYTE_ORDER macro.
20666cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020667/* confdefs.h. */
20668_ACEOF
20669cat confdefs.h >>conftest.$ac_ext
20670cat >>conftest.$ac_ext <<_ACEOF
20671/* end confdefs.h. */
20672#include <sys/types.h>
20673#include <sys/param.h>
20674
20675int
20676main ()
20677{
20678#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20679 bogus endian macros
20680#endif
20681
20682 ;
20683 return 0;
20684}
20685_ACEOF
20686rm -f conftest.$ac_objext
20687if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020688 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020689 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020690 grep -v '^ *+' conftest.er1 >conftest.err
20691 rm -f conftest.er1
20692 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020695 { ac_try='test -z "$ac_c_werror_flag"
20696 || test ! -s conftest.err'
20697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20698 (eval $ac_try) 2>&5
20699 ac_status=$?
20700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20701 (exit $ac_status); }; } &&
20702 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20704 (eval $ac_try) 2>&5
20705 ac_status=$?
20706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20707 (exit $ac_status); }; }; then
20708 # It does; now see whether it defined to BIG_ENDIAN or not.
20709cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020710/* confdefs.h. */
20711_ACEOF
20712cat confdefs.h >>conftest.$ac_ext
20713cat >>conftest.$ac_ext <<_ACEOF
20714/* end confdefs.h. */
20715#include <sys/types.h>
20716#include <sys/param.h>
20717
20718int
20719main ()
20720{
20721#if BYTE_ORDER != BIG_ENDIAN
20722 not big endian
20723#endif
20724
20725 ;
20726 return 0;
20727}
20728_ACEOF
20729rm -f conftest.$ac_objext
20730if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020731 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020732 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020733 grep -v '^ *+' conftest.er1 >conftest.err
20734 rm -f conftest.er1
20735 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020738 { ac_try='test -z "$ac_c_werror_flag"
20739 || test ! -s conftest.err'
20740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20741 (eval $ac_try) 2>&5
20742 ac_status=$?
20743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744 (exit $ac_status); }; } &&
20745 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20747 (eval $ac_try) 2>&5
20748 ac_status=$?
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); }; }; then
20751 ac_cv_c_bigendian=yes
20752else
20753 echo "$as_me: failed program was:" >&5
20754sed 's/^/| /' conftest.$ac_ext >&5
20755
20756ac_cv_c_bigendian=no
20757fi
Reid Spencer17041682004-09-05 17:48:32 +000020758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020759else
20760 echo "$as_me: failed program was:" >&5
20761sed 's/^/| /' conftest.$ac_ext >&5
20762
20763# It does not; compile a test program.
20764if test "$cross_compiling" = yes; then
20765 # try to guess the endianness by grepping values into an object file
20766 ac_cv_c_bigendian=unknown
20767 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020768/* confdefs.h. */
20769_ACEOF
20770cat confdefs.h >>conftest.$ac_ext
20771cat >>conftest.$ac_ext <<_ACEOF
20772/* end confdefs.h. */
20773short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20774short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20775void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20776short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20777short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20778void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20779int
20780main ()
20781{
20782 _ascii (); _ebcdic ();
20783 ;
20784 return 0;
20785}
20786_ACEOF
20787rm -f conftest.$ac_objext
20788if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020789 (eval $ac_compile) 2>conftest.er1
John Criswell0021c312004-02-13 21:57:29 +000020790 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020791 grep -v '^ *+' conftest.er1 >conftest.err
20792 rm -f conftest.er1
20793 cat conftest.err >&5
John Criswell0021c312004-02-13 21:57:29 +000020794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20795 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020796 { ac_try='test -z "$ac_c_werror_flag"
20797 || test ! -s conftest.err'
20798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20799 (eval $ac_try) 2>&5
20800 ac_status=$?
20801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20802 (exit $ac_status); }; } &&
20803 { ac_try='test -s conftest.$ac_objext'
John Criswell0021c312004-02-13 21:57:29 +000020804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20805 (eval $ac_try) 2>&5
20806 ac_status=$?
20807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20808 (exit $ac_status); }; }; then
20809 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20810 ac_cv_c_bigendian=yes
20811fi
20812if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20813 if test "$ac_cv_c_bigendian" = unknown; then
20814 ac_cv_c_bigendian=no
20815 else
20816 # finding both strings is unlikely to happen, but who knows?
20817 ac_cv_c_bigendian=unknown
20818 fi
20819fi
20820else
20821 echo "$as_me: failed program was:" >&5
20822sed 's/^/| /' conftest.$ac_ext >&5
20823
20824fi
Reid Spencer17041682004-09-05 17:48:32 +000020825rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020826else
20827 cat >conftest.$ac_ext <<_ACEOF
John Criswell0021c312004-02-13 21:57:29 +000020828/* confdefs.h. */
20829_ACEOF
20830cat confdefs.h >>conftest.$ac_ext
20831cat >>conftest.$ac_ext <<_ACEOF
20832/* end confdefs.h. */
20833int
20834main ()
20835{
20836 /* Are we little or big endian? From Harbison&Steele. */
20837 union
20838 {
20839 long l;
20840 char c[sizeof (long)];
20841 } u;
20842 u.l = 1;
20843 exit (u.c[sizeof (long) - 1] == 1);
20844}
20845_ACEOF
20846rm -f conftest$ac_exeext
20847if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20848 (eval $ac_link) 2>&5
20849 ac_status=$?
20850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20853 (eval $ac_try) 2>&5
20854 ac_status=$?
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); }; }; then
20857 ac_cv_c_bigendian=no
20858else
20859 echo "$as_me: program exited with status $ac_status" >&5
20860echo "$as_me: failed program was:" >&5
20861sed 's/^/| /' conftest.$ac_ext >&5
20862
20863( exit $ac_status )
20864ac_cv_c_bigendian=yes
20865fi
Reid Spencer17041682004-09-05 17:48:32 +000020866rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020867fi
20868fi
Reid Spencer17041682004-09-05 17:48:32 +000020869rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell0021c312004-02-13 21:57:29 +000020870fi
20871echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20872echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20873case $ac_cv_c_bigendian in
20874 yes)
20875 ENDIAN=big
20876 ;;
20877 no)
20878 ENDIAN=little
20879 ;;
20880 *)
20881 { { echo "$as_me:$LINENO: error: unknown endianness
20882presetting ac_cv_c_bigendian=no (or yes) will help" >&5
20883echo "$as_me: error: unknown endianness
20884presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
20885 { (exit 1); exit 1; }; } ;;
20886esac
20887
20888
John Criswell7a73b802003-06-30 21:59:07 +000020889echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
20890echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
20891if test "${ac_cv_cxx_namespaces+set}" = set; then
20892 echo $ECHO_N "(cached) $ECHO_C" >&6
20893else
20894
20895
20896 ac_ext=cc
20897ac_cpp='$CXXCPP $CPPFLAGS'
20898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20901
20902 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020903/* confdefs.h. */
20904_ACEOF
20905cat confdefs.h >>conftest.$ac_ext
20906cat >>conftest.$ac_ext <<_ACEOF
20907/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020908namespace Outer { namespace Inner { int i = 0; }}
John Criswell7a73b802003-06-30 21:59:07 +000020909int
20910main ()
20911{
20912using namespace Outer::Inner; return i;
20913 ;
20914 return 0;
20915}
20916_ACEOF
20917rm -f conftest.$ac_objext
20918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020919 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000020920 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000020921 grep -v '^ *+' conftest.er1 >conftest.err
20922 rm -f conftest.er1
20923 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000020924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000020926 { ac_try='test -z "$ac_cxx_werror_flag"
20927 || test ! -s conftest.err'
20928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20929 (eval $ac_try) 2>&5
20930 ac_status=$?
20931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932 (exit $ac_status); }; } &&
20933 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000020934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20935 (eval $ac_try) 2>&5
20936 ac_status=$?
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); }; }; then
20939 ac_cv_cxx_namespaces=yes
20940else
20941 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000020942sed 's/^/| /' conftest.$ac_ext >&5
20943
John Criswell7a73b802003-06-30 21:59:07 +000020944ac_cv_cxx_namespaces=no
20945fi
Reid Spencer17041682004-09-05 17:48:32 +000020946rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000020947 ac_ext=c
20948ac_cpp='$CPP $CPPFLAGS'
20949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20951ac_compiler_gnu=$ac_cv_c_compiler_gnu
20952
20953
20954fi
20955echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
20956echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
20957if test "$ac_cv_cxx_namespaces" = yes; then
20958
20959cat >>confdefs.h <<\_ACEOF
20960#define HAVE_NAMESPACES
20961_ACEOF
20962
20963fi
20964
Brian Gaeke90583492003-11-10 03:06:28 +000020965echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class std::hash_map" >&5
20966echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class std::hash_map... $ECHO_C" >&6
20967if test "${ac_cv_cxx_have_std_ext_hash_map+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000020968 echo $ECHO_N "(cached) $ECHO_C" >&6
20969else
20970
20971
20972
20973 ac_ext=cc
20974ac_cpp='$CXXCPP $CPPFLAGS'
20975ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20976ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20977ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20978
20979 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000020980/* confdefs.h. */
20981_ACEOF
20982cat confdefs.h >>conftest.$ac_ext
20983cat >>conftest.$ac_ext <<_ACEOF
20984/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000020985#include <ext/hash_map>
20986#ifdef HAVE_NAMESPACES
20987using namespace std;
20988#endif
John Criswell7a73b802003-06-30 21:59:07 +000020989int
20990main ()
20991{
Brian Gaeke90583492003-11-10 03:06:28 +000020992hash_map<int, int> t;
John Criswell7a73b802003-06-30 21:59:07 +000020993 ;
20994 return 0;
20995}
20996_ACEOF
20997rm -f conftest.$ac_objext
20998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000020999 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021000 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021001 grep -v '^ *+' conftest.er1 >conftest.err
21002 rm -f conftest.er1
21003 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21005 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021006 { ac_try='test -z "$ac_cxx_werror_flag"
21007 || test ! -s conftest.err'
21008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21009 (eval $ac_try) 2>&5
21010 ac_status=$?
21011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21012 (exit $ac_status); }; } &&
21013 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21015 (eval $ac_try) 2>&5
21016 ac_status=$?
21017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21018 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021019 ac_cv_cxx_have_std_ext_hash_map=yes
John Criswell7a73b802003-06-30 21:59:07 +000021020else
21021 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021022sed 's/^/| /' conftest.$ac_ext >&5
21023
Brian Gaeke90583492003-11-10 03:06:28 +000021024ac_cv_cxx_have_std_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021025fi
Reid Spencer17041682004-09-05 17:48:32 +000021026rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021027 ac_ext=c
21028ac_cpp='$CPP $CPPFLAGS'
21029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21031ac_compiler_gnu=$ac_cv_c_compiler_gnu
21032
John Criswell7a73b802003-06-30 21:59:07 +000021033fi
Brian Gaeke90583492003-11-10 03:06:28 +000021034echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_map" >&5
21035echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021036 HAVE_STD_EXT_HASH_MAP=0
21037 if test "$ac_cv_cxx_have_std_ext_hash_map" = yes
21038 then
21039 HAVE_STD_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021040 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021041
Brian Gaeke90583492003-11-10 03:06:28 +000021042 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map" >&5
21043echo $ECHO_N "checking whether the compiler has <ext/hash_map> defining template class __gnu_cxx::hash_map... $ECHO_C" >&6
21044if test "${ac_cv_cxx_have_gnu_ext_hash_map+set}" = set; then
21045 echo $ECHO_N "(cached) $ECHO_C" >&6
21046else
21047
21048
21049
21050 ac_ext=cc
21051ac_cpp='$CXXCPP $CPPFLAGS'
21052ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21053ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21054ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21055
21056 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021057/* confdefs.h. */
21058_ACEOF
21059cat confdefs.h >>conftest.$ac_ext
21060cat >>conftest.$ac_ext <<_ACEOF
21061/* end confdefs.h. */
21062#include <ext/hash_map>
21063#ifdef HAVE_NAMESPACES
21064using namespace __gnu_cxx;
21065#endif
21066int
21067main ()
21068{
21069hash_map<int,int> t;
21070 ;
21071 return 0;
21072}
21073_ACEOF
21074rm -f conftest.$ac_objext
21075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021076 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021077 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021078 grep -v '^ *+' conftest.er1 >conftest.err
21079 rm -f conftest.er1
21080 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21082 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021083 { ac_try='test -z "$ac_cxx_werror_flag"
21084 || test ! -s conftest.err'
21085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21086 (eval $ac_try) 2>&5
21087 ac_status=$?
21088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21089 (exit $ac_status); }; } &&
21090 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21092 (eval $ac_try) 2>&5
21093 ac_status=$?
21094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21095 (exit $ac_status); }; }; then
21096 ac_cv_cxx_have_gnu_ext_hash_map=yes
21097else
21098 echo "$as_me: failed program was:" >&5
21099sed 's/^/| /' conftest.$ac_ext >&5
21100
21101ac_cv_cxx_have_gnu_ext_hash_map=no
John Criswell7a73b802003-06-30 21:59:07 +000021102fi
Reid Spencer17041682004-09-05 17:48:32 +000021103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021104 ac_ext=c
21105ac_cpp='$CPP $CPPFLAGS'
21106ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21107ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21108ac_compiler_gnu=$ac_cv_c_compiler_gnu
21109
21110fi
21111echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_map" >&5
21112echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021113 HAVE_GNU_EXT_HASH_MAP=0
21114 if test "$ac_cv_cxx_have_gnu_ext_hash_map" = yes
21115 then
21116 HAVE_GNU_EXT_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021117 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021118
Brian Gaeke90583492003-11-10 03:06:28 +000021119 echo "$as_me:$LINENO: checking whether the compiler has <hash_map> defining template class ::hash_map" >&5
21120echo $ECHO_N "checking whether the compiler has <hash_map> defining template class ::hash_map... $ECHO_C" >&6
21121if test "${ac_cv_cxx_have_global_hash_map+set}" = set; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21123else
John Criswell7a73b802003-06-30 21:59:07 +000021124
Brian Gaeke90583492003-11-10 03:06:28 +000021125
21126
21127 ac_ext=cc
21128ac_cpp='$CXXCPP $CPPFLAGS'
21129ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21130ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21131ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21132
21133 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021134/* confdefs.h. */
21135_ACEOF
21136cat confdefs.h >>conftest.$ac_ext
21137cat >>conftest.$ac_ext <<_ACEOF
21138/* end confdefs.h. */
21139#include <hash_map>
21140int
21141main ()
21142{
21143hash_map<int,int> t;
21144 ;
21145 return 0;
21146}
21147_ACEOF
21148rm -f conftest.$ac_objext
21149if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021150 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021151 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021152 grep -v '^ *+' conftest.er1 >conftest.err
21153 rm -f conftest.er1
21154 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021157 { ac_try='test -z "$ac_cxx_werror_flag"
21158 || test ! -s conftest.err'
21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21160 (eval $ac_try) 2>&5
21161 ac_status=$?
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); }; } &&
21164 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21167 ac_status=$?
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; }; then
21170 ac_cv_cxx_have_global_hash_map=yes
21171else
21172 echo "$as_me: failed program was:" >&5
21173sed 's/^/| /' conftest.$ac_ext >&5
21174
21175ac_cv_cxx_have_global_hash_map=no
21176fi
Reid Spencer17041682004-09-05 17:48:32 +000021177rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021178 ac_ext=c
21179ac_cpp='$CPP $CPPFLAGS'
21180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21182ac_compiler_gnu=$ac_cv_c_compiler_gnu
21183
21184fi
21185echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_map" >&5
21186echo "${ECHO_T}$ac_cv_cxx_have_global_hash_map" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021187 HAVE_GLOBAL_HASH_MAP=0
21188 if test "$ac_cv_cxx_have_global_hash_map" = yes
21189 then
21190 HAVE_GLOBAL_HASH_MAP=1
Brian Gaeke90583492003-11-10 03:06:28 +000021191 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021192
Brian Gaeke90583492003-11-10 03:06:28 +000021193echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class std::hash_set" >&5
21194echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class std::hash_set... $ECHO_C" >&6
21195if test "${ac_cv_cxx_have_std_ext_hash_set+set}" = set; then
John Criswell7a73b802003-06-30 21:59:07 +000021196 echo $ECHO_N "(cached) $ECHO_C" >&6
21197else
21198
21199
21200
21201 ac_ext=cc
21202ac_cpp='$CXXCPP $CPPFLAGS'
21203ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21204ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21205ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21206
21207 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021208/* confdefs.h. */
21209_ACEOF
21210cat confdefs.h >>conftest.$ac_ext
21211cat >>conftest.$ac_ext <<_ACEOF
21212/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021213#include <ext/hash_set>
21214#ifdef HAVE_NAMESPACES
21215using namespace std;
21216#endif
John Criswell7a73b802003-06-30 21:59:07 +000021217int
21218main ()
21219{
Brian Gaeke90583492003-11-10 03:06:28 +000021220hash_set<int> t;
John Criswell7a73b802003-06-30 21:59:07 +000021221 ;
21222 return 0;
21223}
21224_ACEOF
21225rm -f conftest.$ac_objext
21226if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021227 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021228 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021229 grep -v '^ *+' conftest.er1 >conftest.err
21230 rm -f conftest.er1
21231 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021234 { ac_try='test -z "$ac_cxx_werror_flag"
21235 || test ! -s conftest.err'
21236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237 (eval $ac_try) 2>&5
21238 ac_status=$?
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); }; } &&
21241 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243 (eval $ac_try) 2>&5
21244 ac_status=$?
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021247 ac_cv_cxx_have_std_ext_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021248else
21249 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021250sed 's/^/| /' conftest.$ac_ext >&5
21251
Brian Gaeke90583492003-11-10 03:06:28 +000021252ac_cv_cxx_have_std_ext_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021253fi
Reid Spencer17041682004-09-05 17:48:32 +000021254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021255 ac_ext=c
21256ac_cpp='$CPP $CPPFLAGS'
21257ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21258ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21259ac_compiler_gnu=$ac_cv_c_compiler_gnu
21260
21261fi
21262echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_ext_hash_set" >&5
21263echo "${ECHO_T}$ac_cv_cxx_have_std_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021264 HAVE_STD_EXT_HASH_SET=0
21265 if test "$ac_cv_cxx_have_std_ext_hash_set" = yes
21266 then
21267 HAVE_STD_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021268 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021269
Brian Gaeke90583492003-11-10 03:06:28 +000021270 echo "$as_me:$LINENO: checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set" >&5
21271echo $ECHO_N "checking whether the compiler has <ext/hash_set> defining template class __gnu_cxx::hash_set... $ECHO_C" >&6
21272if test "${ac_cv_cxx_have_gnu_ext_hash_set+set}" = set; then
21273 echo $ECHO_N "(cached) $ECHO_C" >&6
21274else
21275
21276
21277
21278 ac_ext=cc
21279ac_cpp='$CXXCPP $CPPFLAGS'
21280ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21281ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21282ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21283
John Criswell7a73b802003-06-30 21:59:07 +000021284 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021285/* confdefs.h. */
21286_ACEOF
21287cat confdefs.h >>conftest.$ac_ext
21288cat >>conftest.$ac_ext <<_ACEOF
21289/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021290#include <ext/hash_set>
21291#ifdef HAVE_NAMESPACES
21292using namespace __gnu_cxx;
21293#endif
John Criswell7a73b802003-06-30 21:59:07 +000021294int
21295main ()
21296{
Brian Gaeke90583492003-11-10 03:06:28 +000021297hash_set<int> t;
21298 ;
21299 return 0;
21300}
21301_ACEOF
21302rm -f conftest.$ac_objext
21303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021304 (eval $ac_compile) 2>conftest.er1
Brian Gaeke90583492003-11-10 03:06:28 +000021305 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021306 grep -v '^ *+' conftest.er1 >conftest.err
21307 rm -f conftest.er1
21308 cat conftest.err >&5
Brian Gaeke90583492003-11-10 03:06:28 +000021309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021311 { ac_try='test -z "$ac_cxx_werror_flag"
21312 || test ! -s conftest.err'
21313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21314 (eval $ac_try) 2>&5
21315 ac_status=$?
21316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21317 (exit $ac_status); }; } &&
21318 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke90583492003-11-10 03:06:28 +000021319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21320 (eval $ac_try) 2>&5
21321 ac_status=$?
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); }; }; then
21324 ac_cv_cxx_have_gnu_ext_hash_set=yes
21325else
21326 echo "$as_me: failed program was:" >&5
21327sed 's/^/| /' conftest.$ac_ext >&5
21328
21329ac_cv_cxx_have_gnu_ext_hash_set=no
21330fi
Reid Spencer17041682004-09-05 17:48:32 +000021331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke90583492003-11-10 03:06:28 +000021332 ac_ext=c
21333ac_cpp='$CPP $CPPFLAGS'
21334ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21335ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21336ac_compiler_gnu=$ac_cv_c_compiler_gnu
21337
21338fi
21339echo "$as_me:$LINENO: result: $ac_cv_cxx_have_gnu_ext_hash_set" >&5
21340echo "${ECHO_T}$ac_cv_cxx_have_gnu_ext_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021341 HAVE_GNU_EXT_HASH_SET=0
21342 if test "$ac_cv_cxx_have_gnu_ext_hash_set" = yes
21343 then
21344 HAVE_GNU_EXT_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021345 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021346
Brian Gaeke90583492003-11-10 03:06:28 +000021347 echo "$as_me:$LINENO: checking whether the compiler has <hash_set> defining template class ::hash_set" >&5
21348echo $ECHO_N "checking whether the compiler has <hash_set> defining template class ::hash_set... $ECHO_C" >&6
21349if test "${ac_cv_cxx_have_global_hash_set+set}" = set; then
21350 echo $ECHO_N "(cached) $ECHO_C" >&6
21351else
21352
21353
21354
21355 ac_ext=cc
21356ac_cpp='$CXXCPP $CPPFLAGS'
21357ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21358ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21359ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21360
21361 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke90583492003-11-10 03:06:28 +000021362/* confdefs.h. */
21363_ACEOF
21364cat confdefs.h >>conftest.$ac_ext
21365cat >>conftest.$ac_ext <<_ACEOF
21366/* end confdefs.h. */
21367#include <hash_set>
21368int
21369main ()
21370{
John Criswell7a73b802003-06-30 21:59:07 +000021371hash_set<int> t; return 0;
21372 ;
21373 return 0;
21374}
21375_ACEOF
21376rm -f conftest.$ac_objext
21377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021378 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021379 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021380 grep -v '^ *+' conftest.er1 >conftest.err
21381 rm -f conftest.er1
21382 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21384 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021385 { ac_try='test -z "$ac_cxx_werror_flag"
21386 || test ! -s conftest.err'
21387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21388 (eval $ac_try) 2>&5
21389 ac_status=$?
21390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21391 (exit $ac_status); }; } &&
21392 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21394 (eval $ac_try) 2>&5
21395 ac_status=$?
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); }; }; then
Brian Gaeke90583492003-11-10 03:06:28 +000021398 ac_cv_cxx_have_global_hash_set=yes
John Criswell7a73b802003-06-30 21:59:07 +000021399else
21400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021401sed 's/^/| /' conftest.$ac_ext >&5
21402
Brian Gaeke90583492003-11-10 03:06:28 +000021403ac_cv_cxx_have_global_hash_set=no
John Criswell7a73b802003-06-30 21:59:07 +000021404fi
Reid Spencer17041682004-09-05 17:48:32 +000021405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021406 ac_ext=c
21407ac_cpp='$CPP $CPPFLAGS'
21408ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21409ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21410ac_compiler_gnu=$ac_cv_c_compiler_gnu
21411
John Criswell7a73b802003-06-30 21:59:07 +000021412fi
Brian Gaeke90583492003-11-10 03:06:28 +000021413echo "$as_me:$LINENO: result: $ac_cv_cxx_have_global_hash_set" >&5
21414echo "${ECHO_T}$ac_cv_cxx_have_global_hash_set" >&6
Brian Gaeke793c5f22004-02-23 18:56:02 +000021415 HAVE_GLOBAL_HASH_SET=0
21416 if test "$ac_cv_cxx_have_global_hash_set" = yes
21417 then
21418 HAVE_GLOBAL_HASH_SET=1
Brian Gaeke90583492003-11-10 03:06:28 +000021419 fi
Brian Gaeke793c5f22004-02-23 18:56:02 +000021420
John Criswell7a73b802003-06-30 21:59:07 +000021421echo "$as_me:$LINENO: checking whether the compiler has the standard iterator" >&5
21422echo $ECHO_N "checking whether the compiler has the standard iterator... $ECHO_C" >&6
21423if test "${ac_cv_cxx_have_std_iterator+set}" = set; then
21424 echo $ECHO_N "(cached) $ECHO_C" >&6
21425else
21426
21427
21428
21429 ac_ext=cc
21430ac_cpp='$CXXCPP $CPPFLAGS'
21431ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21432ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21433ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21434
21435 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021436/* confdefs.h. */
21437_ACEOF
21438cat confdefs.h >>conftest.$ac_ext
21439cat >>conftest.$ac_ext <<_ACEOF
21440/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021441#include <iterator>
21442#ifdef HAVE_NAMESPACES
21443using namespace std;
21444#endif
John Criswell7a73b802003-06-30 21:59:07 +000021445int
21446main ()
21447{
21448iterator<int,int,int> t; return 0;
21449 ;
21450 return 0;
21451}
21452_ACEOF
21453rm -f conftest.$ac_objext
21454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021455 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021456 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021457 grep -v '^ *+' conftest.er1 >conftest.err
21458 rm -f conftest.er1
21459 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21461 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021462 { ac_try='test -z "$ac_cxx_werror_flag"
21463 || test ! -s conftest.err'
21464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21465 (eval $ac_try) 2>&5
21466 ac_status=$?
21467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21468 (exit $ac_status); }; } &&
21469 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21471 (eval $ac_try) 2>&5
21472 ac_status=$?
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); }; }; then
21475 ac_cv_cxx_have_std_iterator=yes
21476else
21477 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021478sed 's/^/| /' conftest.$ac_ext >&5
21479
John Criswell7a73b802003-06-30 21:59:07 +000021480ac_cv_cxx_have_std_iterator=no
21481fi
Reid Spencer17041682004-09-05 17:48:32 +000021482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021483 ac_ext=c
21484ac_cpp='$CPP $CPPFLAGS'
21485ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21486ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21487ac_compiler_gnu=$ac_cv_c_compiler_gnu
21488
21489
21490fi
21491echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_iterator" >&5
21492echo "${ECHO_T}$ac_cv_cxx_have_std_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021493HAVE_STD_ITERATOR=0
21494if test "$ac_cv_cxx_have_std_iterator" = yes
21495then
21496 HAVE_STD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021497fi
21498
21499echo "$as_me:$LINENO: checking whether the compiler has the bidirectional iterator" >&5
21500echo $ECHO_N "checking whether the compiler has the bidirectional iterator... $ECHO_C" >&6
21501if test "${ac_cv_cxx_have_bi_iterator+set}" = set; then
21502 echo $ECHO_N "(cached) $ECHO_C" >&6
21503else
21504
21505
21506
21507 ac_ext=cc
21508ac_cpp='$CXXCPP $CPPFLAGS'
21509ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21510ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21511ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21512
21513 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021514/* confdefs.h. */
21515_ACEOF
21516cat confdefs.h >>conftest.$ac_ext
21517cat >>conftest.$ac_ext <<_ACEOF
21518/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021519#include <iterator>
21520#ifdef HAVE_NAMESPACES
21521using namespace std;
21522#endif
John Criswell7a73b802003-06-30 21:59:07 +000021523int
21524main ()
21525{
John Criswellc78022e2003-07-29 19:11:58 +000021526bidirectional_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021527 ;
21528 return 0;
21529}
21530_ACEOF
21531rm -f conftest.$ac_objext
21532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021533 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021534 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021535 grep -v '^ *+' conftest.er1 >conftest.err
21536 rm -f conftest.er1
21537 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21539 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021540 { ac_try='test -z "$ac_cxx_werror_flag"
21541 || test ! -s conftest.err'
21542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21543 (eval $ac_try) 2>&5
21544 ac_status=$?
21545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21546 (exit $ac_status); }; } &&
21547 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21549 (eval $ac_try) 2>&5
21550 ac_status=$?
21551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21552 (exit $ac_status); }; }; then
21553 ac_cv_cxx_have_bi_iterator=yes
21554else
21555 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021556sed 's/^/| /' conftest.$ac_ext >&5
21557
John Criswell7a73b802003-06-30 21:59:07 +000021558ac_cv_cxx_have_bi_iterator=no
21559fi
Reid Spencer17041682004-09-05 17:48:32 +000021560rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021561 ac_ext=c
21562ac_cpp='$CPP $CPPFLAGS'
21563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21565ac_compiler_gnu=$ac_cv_c_compiler_gnu
21566
21567
21568fi
21569echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bi_iterator" >&5
21570echo "${ECHO_T}$ac_cv_cxx_have_bi_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021571HAVE_BI_ITERATOR=0
21572if test "$ac_cv_cxx_have_bi_iterator" = yes
21573then
21574 HAVE_BI_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021575fi
21576
21577echo "$as_me:$LINENO: checking whether the compiler has forward iterators" >&5
21578echo $ECHO_N "checking whether the compiler has forward iterators... $ECHO_C" >&6
21579if test "${ac_cv_cxx_have_fwd_iterator+set}" = set; then
21580 echo $ECHO_N "(cached) $ECHO_C" >&6
21581else
21582
21583
21584
21585 ac_ext=cc
21586ac_cpp='$CXXCPP $CPPFLAGS'
21587ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21588ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21589ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21590
21591 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000021592/* confdefs.h. */
21593_ACEOF
21594cat confdefs.h >>conftest.$ac_ext
21595cat >>conftest.$ac_ext <<_ACEOF
21596/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000021597#include <iterator>
21598#ifdef HAVE_NAMESPACES
21599using namespace std;
21600#endif
John Criswell7a73b802003-06-30 21:59:07 +000021601int
21602main ()
21603{
John Criswellc78022e2003-07-29 19:11:58 +000021604forward_iterator<int,int> t; return 0;
John Criswell7a73b802003-06-30 21:59:07 +000021605 ;
21606 return 0;
21607}
21608_ACEOF
21609rm -f conftest.$ac_objext
21610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021611 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000021612 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021613 grep -v '^ *+' conftest.er1 >conftest.err
21614 rm -f conftest.er1
21615 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000021616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021618 { ac_try='test -z "$ac_cxx_werror_flag"
21619 || test ! -s conftest.err'
21620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21621 (eval $ac_try) 2>&5
21622 ac_status=$?
21623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21624 (exit $ac_status); }; } &&
21625 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000021626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21627 (eval $ac_try) 2>&5
21628 ac_status=$?
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); }; }; then
21631 ac_cv_cxx_have_fwd_iterator=yes
21632else
21633 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000021634sed 's/^/| /' conftest.$ac_ext >&5
21635
John Criswell7a73b802003-06-30 21:59:07 +000021636ac_cv_cxx_have_fwd_iterator=no
21637fi
Reid Spencer17041682004-09-05 17:48:32 +000021638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000021639 ac_ext=c
21640ac_cpp='$CPP $CPPFLAGS'
21641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21643ac_compiler_gnu=$ac_cv_c_compiler_gnu
21644
21645
21646fi
21647echo "$as_me:$LINENO: result: $ac_cv_cxx_have_fwd_iterator" >&5
21648echo "${ECHO_T}$ac_cv_cxx_have_fwd_iterator" >&6
Brian Gaeke295d4b82004-02-23 18:16:06 +000021649HAVE_FWD_ITERATOR=0
21650if test "$ac_cv_cxx_have_fwd_iterator" = yes
21651then
21652 HAVE_FWD_ITERATOR=1
John Criswell7a73b802003-06-30 21:59:07 +000021653fi
21654
21655
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021656
21657echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
21658echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6
21659if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
21660 echo $ECHO_N "(cached) $ECHO_C" >&6
21661else
21662 ac_ext=cc
21663ac_cpp='$CXXCPP $CPPFLAGS'
21664ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21665ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21666ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21667
21668 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021669/* confdefs.h. */
21670_ACEOF
21671cat confdefs.h >>conftest.$ac_ext
21672cat >>conftest.$ac_ext <<_ACEOF
21673/* end confdefs.h. */
21674#include <math.h>
21675 int foo(float f) {return isnan(f);}
21676_ACEOF
21677rm -f conftest.$ac_objext
21678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021679 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021680 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021681 grep -v '^ *+' conftest.er1 >conftest.err
21682 rm -f conftest.er1
21683 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021686 { ac_try='test -z "$ac_cxx_werror_flag"
21687 || test ! -s conftest.err'
21688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21689 (eval $ac_try) 2>&5
21690 ac_status=$?
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); }; } &&
21693 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21695 (eval $ac_try) 2>&5
21696 ac_status=$?
21697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21698 (exit $ac_status); }; }; then
21699 ac_cv_func_isnan_in_math_h=yes
21700else
21701 echo "$as_me: failed program was:" >&5
21702sed 's/^/| /' conftest.$ac_ext >&5
21703
21704ac_cv_func_isnan_in_math_h=no
21705fi
Reid Spencer17041682004-09-05 17:48:32 +000021706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021707 ac_ext=c
21708ac_cpp='$CPP $CPPFLAGS'
21709ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21710ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21711ac_compiler_gnu=$ac_cv_c_compiler_gnu
21712
21713fi
21714echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
21715echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6
21716 if test "$ac_cv_func_isnan_in_math_h" = "yes"
21717 then
21718
21719cat >>confdefs.h <<\_ACEOF
21720#define HAVE_ISNAN_IN_MATH_H 1
21721_ACEOF
21722
21723 fi
21724echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
21725echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6
21726if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
21727 echo $ECHO_N "(cached) $ECHO_C" >&6
21728else
21729 ac_ext=cc
21730ac_cpp='$CXXCPP $CPPFLAGS'
21731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21734
21735 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021736/* confdefs.h. */
21737_ACEOF
21738cat confdefs.h >>conftest.$ac_ext
21739cat >>conftest.$ac_ext <<_ACEOF
21740/* end confdefs.h. */
21741#include <cmath>
21742 int foo(float f) {return isnan(f);}
21743_ACEOF
21744rm -f conftest.$ac_objext
21745if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021746 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021747 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021748 grep -v '^ *+' conftest.er1 >conftest.err
21749 rm -f conftest.er1
21750 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021753 { ac_try='test -z "$ac_cxx_werror_flag"
21754 || test ! -s conftest.err'
21755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; } &&
21760 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762 (eval $ac_try) 2>&5
21763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; }; then
21766 ac_cv_func_isnan_in_cmath=yes
21767else
21768 echo "$as_me: failed program was:" >&5
21769sed 's/^/| /' conftest.$ac_ext >&5
21770
21771ac_cv_func_isnan_in_cmath=no
21772fi
Reid Spencer17041682004-09-05 17:48:32 +000021773rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021774 ac_ext=c
21775ac_cpp='$CPP $CPPFLAGS'
21776ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21777ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21778ac_compiler_gnu=$ac_cv_c_compiler_gnu
21779
21780fi
21781echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
21782echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6
21783 if test "$ac_cv_func_isnan_in_cmath" = "yes"
21784 then
21785
21786cat >>confdefs.h <<\_ACEOF
21787#define HAVE_ISNAN_IN_CMATH 1
21788_ACEOF
21789
21790 fi
21791echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
21792echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6
21793if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
21794 echo $ECHO_N "(cached) $ECHO_C" >&6
21795else
21796 ac_ext=cc
21797ac_cpp='$CXXCPP $CPPFLAGS'
21798ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21799ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21800ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21801
21802 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021803/* confdefs.h. */
21804_ACEOF
21805cat confdefs.h >>conftest.$ac_ext
21806cat >>conftest.$ac_ext <<_ACEOF
21807/* end confdefs.h. */
21808#include <cmath>
21809 using std::isnan; int foo(float f) {return isnan(f);}
21810_ACEOF
21811rm -f conftest.$ac_objext
21812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021813 (eval $ac_compile) 2>conftest.er1
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021814 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021815 grep -v '^ *+' conftest.er1 >conftest.err
21816 rm -f conftest.er1
21817 cat conftest.err >&5
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21819 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021820 { ac_try='test -z "$ac_cxx_werror_flag"
21821 || test ! -s conftest.err'
21822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21823 (eval $ac_try) 2>&5
21824 ac_status=$?
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); }; } &&
21827 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; }; then
21833 ac_cv_func_std_isnan_in_cmath=yes
21834else
21835 echo "$as_me: failed program was:" >&5
21836sed 's/^/| /' conftest.$ac_ext >&5
21837
21838ac_cv_func_std_isnan_in_cmath=no
21839fi
Reid Spencer17041682004-09-05 17:48:32 +000021840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke6f5b6212004-06-22 23:47:13 +000021841 ac_ext=c
21842ac_cpp='$CPP $CPPFLAGS'
21843ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21844ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21845ac_compiler_gnu=$ac_cv_c_compiler_gnu
21846
21847fi
21848echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
21849echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6
21850 if test "$ac_cv_func_std_isnan_in_cmath" = "yes"
21851 then
21852
21853cat >>confdefs.h <<\_ACEOF
21854#define HAVE_STD_ISNAN_IN_CMATH 1
21855_ACEOF
21856
21857 fi
21858
21859
Brian Gaeke52a551d2004-07-21 03:14:12 +000021860echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
21861echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6
21862if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
21863 echo $ECHO_N "(cached) $ECHO_C" >&6
21864else
21865 ac_ext=cc
21866ac_cpp='$CXXCPP $CPPFLAGS'
21867ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21868ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21869ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21870
21871 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021872/* confdefs.h. */
21873_ACEOF
21874cat confdefs.h >>conftest.$ac_ext
21875cat >>conftest.$ac_ext <<_ACEOF
21876/* end confdefs.h. */
21877#include <math.h>
21878 int foo(float f) {return isinf(f);}
21879_ACEOF
21880rm -f conftest.$ac_objext
21881if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021882 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000021883 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021884 grep -v '^ *+' conftest.er1 >conftest.err
21885 rm -f conftest.er1
21886 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021889 { ac_try='test -z "$ac_cxx_werror_flag"
21890 || test ! -s conftest.err'
21891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21892 (eval $ac_try) 2>&5
21893 ac_status=$?
21894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21895 (exit $ac_status); }; } &&
21896 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000021897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21898 (eval $ac_try) 2>&5
21899 ac_status=$?
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); }; }; then
21902 ac_cv_func_isinf_in_math_h=yes
21903else
21904 echo "$as_me: failed program was:" >&5
21905sed 's/^/| /' conftest.$ac_ext >&5
21906
21907ac_cv_func_isinf_in_math_h=no
21908fi
Reid Spencer17041682004-09-05 17:48:32 +000021909rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000021910 ac_ext=c
21911ac_cpp='$CPP $CPPFLAGS'
21912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21914ac_compiler_gnu=$ac_cv_c_compiler_gnu
21915
21916fi
21917echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
21918echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6
21919 if test "$ac_cv_func_isinf_in_math_h" = "yes"
21920 then
21921
21922cat >>confdefs.h <<\_ACEOF
21923#define HAVE_ISINF_IN_MATH_H 1
21924_ACEOF
21925
21926 fi
21927echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
21928echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6
21929if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
21930 echo $ECHO_N "(cached) $ECHO_C" >&6
21931else
21932 ac_ext=cc
21933ac_cpp='$CXXCPP $CPPFLAGS'
21934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21937
21938 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000021939/* confdefs.h. */
21940_ACEOF
21941cat confdefs.h >>conftest.$ac_ext
21942cat >>conftest.$ac_ext <<_ACEOF
21943/* end confdefs.h. */
21944#include <cmath>
21945 int foo(float f) {return isinf(f);}
21946_ACEOF
21947rm -f conftest.$ac_objext
21948if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000021949 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000021950 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000021951 grep -v '^ *+' conftest.er1 >conftest.err
21952 rm -f conftest.er1
21953 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000021954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21955 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000021956 { ac_try='test -z "$ac_cxx_werror_flag"
21957 || test ! -s conftest.err'
21958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21959 (eval $ac_try) 2>&5
21960 ac_status=$?
21961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); }; } &&
21963 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000021964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21965 (eval $ac_try) 2>&5
21966 ac_status=$?
21967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21968 (exit $ac_status); }; }; then
21969 ac_cv_func_isinf_in_cmath=yes
21970else
21971 echo "$as_me: failed program was:" >&5
21972sed 's/^/| /' conftest.$ac_ext >&5
21973
21974ac_cv_func_isinf_in_cmath=no
21975fi
Reid Spencer17041682004-09-05 17:48:32 +000021976rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000021977 ac_ext=c
21978ac_cpp='$CPP $CPPFLAGS'
21979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21981ac_compiler_gnu=$ac_cv_c_compiler_gnu
21982
21983fi
21984echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
21985echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6
21986 if test "$ac_cv_func_isinf_in_cmath" = "yes"
21987 then
21988
21989cat >>confdefs.h <<\_ACEOF
21990#define HAVE_ISINF_IN_CMATH 1
21991_ACEOF
21992
21993 fi
21994echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
21995echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6
21996if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
21997 echo $ECHO_N "(cached) $ECHO_C" >&6
21998else
21999 ac_ext=cc
22000ac_cpp='$CXXCPP $CPPFLAGS'
22001ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22002ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22003ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22004
22005 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeke52a551d2004-07-21 03:14:12 +000022006/* confdefs.h. */
22007_ACEOF
22008cat confdefs.h >>conftest.$ac_ext
22009cat >>conftest.$ac_ext <<_ACEOF
22010/* end confdefs.h. */
22011#include <cmath>
22012 using std::isinf; int foo(float f) {return isinf(f);}
22013_ACEOF
22014rm -f conftest.$ac_objext
22015if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022016 (eval $ac_compile) 2>conftest.er1
Brian Gaeke52a551d2004-07-21 03:14:12 +000022017 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022018 grep -v '^ *+' conftest.er1 >conftest.err
22019 rm -f conftest.er1
22020 cat conftest.err >&5
Brian Gaeke52a551d2004-07-21 03:14:12 +000022021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22022 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022023 { ac_try='test -z "$ac_cxx_werror_flag"
22024 || test ! -s conftest.err'
22025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22026 (eval $ac_try) 2>&5
22027 ac_status=$?
22028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22029 (exit $ac_status); }; } &&
22030 { ac_try='test -s conftest.$ac_objext'
Brian Gaeke52a551d2004-07-21 03:14:12 +000022031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22032 (eval $ac_try) 2>&5
22033 ac_status=$?
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); }; }; then
22036 ac_cv_func_std_isinf_in_cmath=yes
22037else
22038 echo "$as_me: failed program was:" >&5
22039sed 's/^/| /' conftest.$ac_ext >&5
22040
22041ac_cv_func_std_isinf_in_cmath=no
22042fi
Reid Spencer17041682004-09-05 17:48:32 +000022043rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeke52a551d2004-07-21 03:14:12 +000022044 ac_ext=c
22045ac_cpp='$CPP $CPPFLAGS'
22046ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22047ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22048ac_compiler_gnu=$ac_cv_c_compiler_gnu
22049
22050fi
22051echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
22052echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6
22053 if test "$ac_cv_func_std_isinf_in_cmath" = "yes"
22054 then
22055
22056cat >>confdefs.h <<\_ACEOF
22057#define HAVE_STD_ISINF_IN_CMATH 1
22058_ACEOF
22059
22060 fi
Brian Gaeked59a6472004-07-21 03:33:58 +000022061echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
22062echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6
22063if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
22064 echo $ECHO_N "(cached) $ECHO_C" >&6
22065else
22066 ac_ext=cc
22067ac_cpp='$CXXCPP $CPPFLAGS'
22068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22071
22072 cat >conftest.$ac_ext <<_ACEOF
Brian Gaeked59a6472004-07-21 03:33:58 +000022073/* confdefs.h. */
22074_ACEOF
22075cat confdefs.h >>conftest.$ac_ext
22076cat >>conftest.$ac_ext <<_ACEOF
22077/* end confdefs.h. */
22078#include <ieeefp.h>
22079 int foo(float f) {return finite(f);}
22080_ACEOF
22081rm -f conftest.$ac_objext
22082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022083 (eval $ac_compile) 2>conftest.er1
Brian Gaeked59a6472004-07-21 03:33:58 +000022084 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022085 grep -v '^ *+' conftest.er1 >conftest.err
22086 rm -f conftest.er1
22087 cat conftest.err >&5
Brian Gaeked59a6472004-07-21 03:33:58 +000022088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22089 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022090 { ac_try='test -z "$ac_cxx_werror_flag"
22091 || test ! -s conftest.err'
22092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093 (eval $ac_try) 2>&5
22094 ac_status=$?
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; } &&
22097 { ac_try='test -s conftest.$ac_objext'
Brian Gaeked59a6472004-07-21 03:33:58 +000022098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22099 (eval $ac_try) 2>&5
22100 ac_status=$?
22101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22102 (exit $ac_status); }; }; then
22103 ac_cv_func_finite_in_ieeefp_h=yes
22104else
22105 echo "$as_me: failed program was:" >&5
22106sed 's/^/| /' conftest.$ac_ext >&5
22107
22108ac_cv_func_finite_in_ieeefp_h=no
22109fi
Reid Spencer17041682004-09-05 17:48:32 +000022110rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Brian Gaeked59a6472004-07-21 03:33:58 +000022111 ac_ext=c
22112ac_cpp='$CPP $CPPFLAGS'
22113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22115ac_compiler_gnu=$ac_cv_c_compiler_gnu
22116
22117fi
22118echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
22119echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6
22120 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes"
22121 then
22122
22123cat >>confdefs.h <<\_ACEOF
22124#define HAVE_FINITE_IN_IEEEFP_H 1
22125_ACEOF
22126
22127 fi
Brian Gaeke52a551d2004-07-21 03:14:12 +000022128
22129
John Criswell7a73b802003-06-30 21:59:07 +000022130# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
22131# for constant arguments. Useless!
22132echo "$as_me:$LINENO: checking for working alloca.h" >&5
22133echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
22134if test "${ac_cv_working_alloca_h+set}" = set; then
22135 echo $ECHO_N "(cached) $ECHO_C" >&6
22136else
22137 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022138/* confdefs.h. */
22139_ACEOF
22140cat confdefs.h >>conftest.$ac_ext
22141cat >>conftest.$ac_ext <<_ACEOF
22142/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022143#include <alloca.h>
John Criswell7a73b802003-06-30 21:59:07 +000022144int
22145main ()
22146{
22147char *p = (char *) alloca (2 * sizeof (int));
22148 ;
22149 return 0;
22150}
22151_ACEOF
22152rm -f conftest.$ac_objext conftest$ac_exeext
22153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022154 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022155 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022156 grep -v '^ *+' conftest.er1 >conftest.err
22157 rm -f conftest.er1
22158 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022161 { ac_try='test -z "$ac_c_werror_flag"
22162 || test ! -s conftest.err'
22163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164 (eval $ac_try) 2>&5
22165 ac_status=$?
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; } &&
22168 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; }; then
22174 ac_cv_working_alloca_h=yes
22175else
22176 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022177sed 's/^/| /' conftest.$ac_ext >&5
22178
John Criswell7a73b802003-06-30 21:59:07 +000022179ac_cv_working_alloca_h=no
22180fi
Reid Spencer17041682004-09-05 17:48:32 +000022181rm -f conftest.err conftest.$ac_objext \
22182 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022183fi
22184echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
22185echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
22186if test $ac_cv_working_alloca_h = yes; then
22187
22188cat >>confdefs.h <<\_ACEOF
22189#define HAVE_ALLOCA_H 1
22190_ACEOF
22191
22192fi
22193
22194echo "$as_me:$LINENO: checking for alloca" >&5
22195echo $ECHO_N "checking for alloca... $ECHO_C" >&6
22196if test "${ac_cv_func_alloca_works+set}" = set; then
22197 echo $ECHO_N "(cached) $ECHO_C" >&6
22198else
22199 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022200/* confdefs.h. */
22201_ACEOF
22202cat confdefs.h >>conftest.$ac_ext
22203cat >>conftest.$ac_ext <<_ACEOF
22204/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022205#ifdef __GNUC__
22206# define alloca __builtin_alloca
22207#else
22208# ifdef _MSC_VER
22209# include <malloc.h>
22210# define alloca _alloca
22211# else
22212# if HAVE_ALLOCA_H
22213# include <alloca.h>
22214# else
22215# ifdef _AIX
22216 #pragma alloca
22217# else
22218# ifndef alloca /* predefined by HP cc +Olibcalls */
22219char *alloca ();
22220# endif
22221# endif
22222# endif
22223# endif
22224#endif
22225
John Criswell7a73b802003-06-30 21:59:07 +000022226int
22227main ()
22228{
22229char *p = (char *) alloca (1);
22230 ;
22231 return 0;
22232}
22233_ACEOF
22234rm -f conftest.$ac_objext conftest$ac_exeext
22235if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022236 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022237 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022238 grep -v '^ *+' conftest.er1 >conftest.err
22239 rm -f conftest.er1
22240 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22242 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022243 { ac_try='test -z "$ac_c_werror_flag"
22244 || test ! -s conftest.err'
22245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246 (eval $ac_try) 2>&5
22247 ac_status=$?
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }; } &&
22250 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252 (eval $ac_try) 2>&5
22253 ac_status=$?
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); }; }; then
22256 ac_cv_func_alloca_works=yes
22257else
22258 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022259sed 's/^/| /' conftest.$ac_ext >&5
22260
John Criswell7a73b802003-06-30 21:59:07 +000022261ac_cv_func_alloca_works=no
22262fi
Reid Spencer17041682004-09-05 17:48:32 +000022263rm -f conftest.err conftest.$ac_objext \
22264 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022265fi
22266echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
22267echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
22268
22269if test $ac_cv_func_alloca_works = yes; then
22270
22271cat >>confdefs.h <<\_ACEOF
22272#define HAVE_ALLOCA 1
22273_ACEOF
22274
22275else
22276 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
22277# that cause trouble. Some versions do not even contain alloca or
22278# contain a buggy version. If you still want to use their alloca,
22279# use ar to extract alloca.o from them instead of compiling alloca.c.
22280
22281ALLOCA=alloca.$ac_objext
22282
22283cat >>confdefs.h <<\_ACEOF
22284#define C_ALLOCA 1
22285_ACEOF
22286
22287
22288echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
22289echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
22290if test "${ac_cv_os_cray+set}" = set; then
22291 echo $ECHO_N "(cached) $ECHO_C" >&6
22292else
22293 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022294/* confdefs.h. */
22295_ACEOF
22296cat confdefs.h >>conftest.$ac_ext
22297cat >>conftest.$ac_ext <<_ACEOF
22298/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022299#if defined(CRAY) && ! defined(CRAY2)
22300webecray
22301#else
22302wenotbecray
22303#endif
22304
22305_ACEOF
22306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
John Criswell0c38eaf2003-09-10 15:17:25 +000022307 $EGREP "webecray" >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000022308 ac_cv_os_cray=yes
22309else
22310 ac_cv_os_cray=no
22311fi
22312rm -f conftest*
22313
22314fi
22315echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
22316echo "${ECHO_T}$ac_cv_os_cray" >&6
22317if test $ac_cv_os_cray = yes; then
22318 for ac_func in _getb67 GETB67 getb67; do
22319 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22320echo "$as_me:$LINENO: checking for $ac_func" >&5
22321echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22322if eval "test \"\${$as_ac_var+set}\" = set"; then
22323 echo $ECHO_N "(cached) $ECHO_C" >&6
22324else
22325 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022326/* confdefs.h. */
22327_ACEOF
22328cat confdefs.h >>conftest.$ac_ext
22329cat >>conftest.$ac_ext <<_ACEOF
22330/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000022331/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22333#define $ac_func innocuous_$ac_func
22334
John Criswell7a73b802003-06-30 21:59:07 +000022335/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022336 which can conflict with char $ac_func (); below.
22337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22338 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000022339
John Criswell0c38eaf2003-09-10 15:17:25 +000022340#ifdef __STDC__
22341# include <limits.h>
22342#else
22343# include <assert.h>
22344#endif
Reid Spencer17041682004-09-05 17:48:32 +000022345
22346#undef $ac_func
22347
John Criswell7a73b802003-06-30 21:59:07 +000022348/* Override any gcc2 internal prototype to avoid an error. */
22349#ifdef __cplusplus
22350extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022351{
John Criswell7a73b802003-06-30 21:59:07 +000022352#endif
22353/* We use char because int might match the return type of a gcc2
22354 builtin and then its argument prototype would still apply. */
22355char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022356/* The GNU C library defines this for functions which it implements
22357 to always fail with ENOSYS. Some functions are actually named
22358 something starting with __ and the normal name is an alias. */
22359#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22360choke me
22361#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022362char (*f) () = $ac_func;
22363#endif
22364#ifdef __cplusplus
22365}
John Criswell7a73b802003-06-30 21:59:07 +000022366#endif
22367
John Criswell0c38eaf2003-09-10 15:17:25 +000022368int
22369main ()
22370{
22371return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022372 ;
22373 return 0;
22374}
22375_ACEOF
22376rm -f conftest.$ac_objext conftest$ac_exeext
22377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022378 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022379 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022380 grep -v '^ *+' conftest.er1 >conftest.err
22381 rm -f conftest.er1
22382 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022385 { ac_try='test -z "$ac_c_werror_flag"
22386 || test ! -s conftest.err'
22387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22388 (eval $ac_try) 2>&5
22389 ac_status=$?
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); }; } &&
22392 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394 (eval $ac_try) 2>&5
22395 ac_status=$?
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; }; then
22398 eval "$as_ac_var=yes"
22399else
22400 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022401sed 's/^/| /' conftest.$ac_ext >&5
22402
John Criswell7a73b802003-06-30 21:59:07 +000022403eval "$as_ac_var=no"
22404fi
Reid Spencer17041682004-09-05 17:48:32 +000022405rm -f conftest.err conftest.$ac_objext \
22406 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022407fi
22408echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22409echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22410if test `eval echo '${'$as_ac_var'}'` = yes; then
22411
22412cat >>confdefs.h <<_ACEOF
22413#define CRAY_STACKSEG_END $ac_func
22414_ACEOF
22415
22416 break
22417fi
22418
22419 done
22420fi
22421
22422echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
22423echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
22424if test "${ac_cv_c_stack_direction+set}" = set; then
22425 echo $ECHO_N "(cached) $ECHO_C" >&6
22426else
22427 if test "$cross_compiling" = yes; then
22428 ac_cv_c_stack_direction=0
22429else
22430 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022431/* confdefs.h. */
22432_ACEOF
22433cat confdefs.h >>conftest.$ac_ext
22434cat >>conftest.$ac_ext <<_ACEOF
22435/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022436int
22437find_stack_direction ()
22438{
22439 static char *addr = 0;
22440 auto char dummy;
22441 if (addr == 0)
22442 {
22443 addr = &dummy;
22444 return find_stack_direction ();
22445 }
22446 else
22447 return (&dummy > addr) ? 1 : -1;
22448}
22449
22450int
22451main ()
22452{
22453 exit (find_stack_direction () < 0);
22454}
22455_ACEOF
22456rm -f conftest$ac_exeext
22457if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22458 (eval $ac_link) 2>&5
22459 ac_status=$?
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463 (eval $ac_try) 2>&5
22464 ac_status=$?
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
22467 ac_cv_c_stack_direction=1
22468else
22469 echo "$as_me: program exited with status $ac_status" >&5
22470echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022471sed 's/^/| /' conftest.$ac_ext >&5
22472
John Criswell7a73b802003-06-30 21:59:07 +000022473( exit $ac_status )
22474ac_cv_c_stack_direction=-1
22475fi
Reid Spencer17041682004-09-05 17:48:32 +000022476rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022477fi
22478fi
22479echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
22480echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
22481
22482cat >>confdefs.h <<_ACEOF
22483#define STACK_DIRECTION $ac_cv_c_stack_direction
22484_ACEOF
22485
22486
22487fi
22488
John Criswell7a73b802003-06-30 21:59:07 +000022489
22490
22491for ac_header in stdlib.h unistd.h
22492do
22493as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22494if eval "test \"\${$as_ac_Header+set}\" = set"; then
22495 echo "$as_me:$LINENO: checking for $ac_header" >&5
22496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22497if eval "test \"\${$as_ac_Header+set}\" = set"; then
22498 echo $ECHO_N "(cached) $ECHO_C" >&6
22499fi
22500echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22501echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22502else
22503 # Is the header compilable?
22504echo "$as_me:$LINENO: checking $ac_header usability" >&5
22505echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22506cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022507/* confdefs.h. */
22508_ACEOF
22509cat confdefs.h >>conftest.$ac_ext
22510cat >>conftest.$ac_ext <<_ACEOF
22511/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022512$ac_includes_default
22513#include <$ac_header>
22514_ACEOF
22515rm -f conftest.$ac_objext
22516if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022517 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022518 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022519 grep -v '^ *+' conftest.er1 >conftest.err
22520 rm -f conftest.er1
22521 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22523 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022524 { ac_try='test -z "$ac_c_werror_flag"
22525 || test ! -s conftest.err'
22526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22527 (eval $ac_try) 2>&5
22528 ac_status=$?
22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22530 (exit $ac_status); }; } &&
22531 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000022532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22533 (eval $ac_try) 2>&5
22534 ac_status=$?
22535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22536 (exit $ac_status); }; }; then
22537 ac_header_compiler=yes
22538else
22539 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022540sed 's/^/| /' conftest.$ac_ext >&5
22541
John Criswell7a73b802003-06-30 21:59:07 +000022542ac_header_compiler=no
22543fi
Reid Spencer17041682004-09-05 17:48:32 +000022544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022545echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22546echo "${ECHO_T}$ac_header_compiler" >&6
22547
22548# Is the header present?
22549echo "$as_me:$LINENO: checking $ac_header presence" >&5
22550echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22551cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022552/* confdefs.h. */
22553_ACEOF
22554cat confdefs.h >>conftest.$ac_ext
22555cat >>conftest.$ac_ext <<_ACEOF
22556/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022557#include <$ac_header>
22558_ACEOF
22559if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22560 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22561 ac_status=$?
John Criswell0c38eaf2003-09-10 15:17:25 +000022562 grep -v '^ *+' conftest.er1 >conftest.err
John Criswell7a73b802003-06-30 21:59:07 +000022563 rm -f conftest.er1
22564 cat conftest.err >&5
22565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } >/dev/null; then
22567 if test -s conftest.err; then
22568 ac_cpp_err=$ac_c_preproc_warn_flag
Reid Spencer17041682004-09-05 17:48:32 +000022569 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
John Criswell7a73b802003-06-30 21:59:07 +000022570 else
22571 ac_cpp_err=
22572 fi
22573else
22574 ac_cpp_err=yes
22575fi
22576if test -z "$ac_cpp_err"; then
22577 ac_header_preproc=yes
22578else
22579 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022580sed 's/^/| /' conftest.$ac_ext >&5
22581
John Criswell7a73b802003-06-30 21:59:07 +000022582 ac_header_preproc=no
22583fi
22584rm -f conftest.err conftest.$ac_ext
22585echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22586echo "${ECHO_T}$ac_header_preproc" >&6
22587
22588# So? What about this header?
Reid Spencer17041682004-09-05 17:48:32 +000022589case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22590 yes:no: )
John Criswell7a73b802003-06-30 21:59:07 +000022591 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22592echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000022593 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22594echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22595 ac_header_preproc=yes
John Criswell679ff312004-09-02 18:44:44 +000022596 ;;
Reid Spencer17041682004-09-05 17:48:32 +000022597 no:yes:* )
John Criswell679ff312004-09-02 18:44:44 +000022598 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22599echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000022600 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22601echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22602 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22603echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22604 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22605echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000022606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22607echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Reid Spencer17041682004-09-05 17:48:32 +000022608 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22609echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
John Criswell679ff312004-09-02 18:44:44 +000022610 (
22611 cat <<\_ASBOX
Reid Spencer17041682004-09-05 17:48:32 +000022612## ----------------------------------- ##
22613## Report this to llvmbugs@cs.uiuc.edu ##
22614## ----------------------------------- ##
John Criswell0c38eaf2003-09-10 15:17:25 +000022615_ASBOX
22616 ) |
22617 sed "s/^/$as_me: WARNING: /" >&2
22618 ;;
John Criswell7a73b802003-06-30 21:59:07 +000022619esac
22620echo "$as_me:$LINENO: checking for $ac_header" >&5
22621echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22622if eval "test \"\${$as_ac_Header+set}\" = set"; then
22623 echo $ECHO_N "(cached) $ECHO_C" >&6
22624else
Reid Spencer17041682004-09-05 17:48:32 +000022625 eval "$as_ac_Header=\$ac_header_preproc"
John Criswell7a73b802003-06-30 21:59:07 +000022626fi
22627echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22628echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22629
22630fi
22631if test `eval echo '${'$as_ac_Header'}'` = yes; then
22632 cat >>confdefs.h <<_ACEOF
22633#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22634_ACEOF
22635
22636fi
22637
22638done
22639
22640
22641for ac_func in getpagesize
22642do
22643as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22644echo "$as_me:$LINENO: checking for $ac_func" >&5
22645echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22646if eval "test \"\${$as_ac_var+set}\" = set"; then
22647 echo $ECHO_N "(cached) $ECHO_C" >&6
22648else
22649 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022650/* confdefs.h. */
22651_ACEOF
22652cat confdefs.h >>conftest.$ac_ext
22653cat >>conftest.$ac_ext <<_ACEOF
22654/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000022655/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22657#define $ac_func innocuous_$ac_func
22658
John Criswell7a73b802003-06-30 21:59:07 +000022659/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000022660 which can conflict with char $ac_func (); below.
22661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22662 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000022663
John Criswell0c38eaf2003-09-10 15:17:25 +000022664#ifdef __STDC__
22665# include <limits.h>
22666#else
22667# include <assert.h>
22668#endif
Reid Spencer17041682004-09-05 17:48:32 +000022669
22670#undef $ac_func
22671
John Criswell7a73b802003-06-30 21:59:07 +000022672/* Override any gcc2 internal prototype to avoid an error. */
22673#ifdef __cplusplus
22674extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000022675{
John Criswell7a73b802003-06-30 21:59:07 +000022676#endif
22677/* We use char because int might match the return type of a gcc2
22678 builtin and then its argument prototype would still apply. */
22679char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000022680/* The GNU C library defines this for functions which it implements
22681 to always fail with ENOSYS. Some functions are actually named
22682 something starting with __ and the normal name is an alias. */
22683#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22684choke me
22685#else
John Criswell0c38eaf2003-09-10 15:17:25 +000022686char (*f) () = $ac_func;
22687#endif
22688#ifdef __cplusplus
22689}
John Criswell7a73b802003-06-30 21:59:07 +000022690#endif
22691
John Criswell0c38eaf2003-09-10 15:17:25 +000022692int
22693main ()
22694{
22695return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000022696 ;
22697 return 0;
22698}
22699_ACEOF
22700rm -f conftest.$ac_objext conftest$ac_exeext
22701if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000022702 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000022703 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000022704 grep -v '^ *+' conftest.er1 >conftest.err
22705 rm -f conftest.er1
22706 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000022707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000022709 { ac_try='test -z "$ac_c_werror_flag"
22710 || test ! -s conftest.err'
22711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22712 (eval $ac_try) 2>&5
22713 ac_status=$?
22714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22715 (exit $ac_status); }; } &&
22716 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000022717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22718 (eval $ac_try) 2>&5
22719 ac_status=$?
22720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22721 (exit $ac_status); }; }; then
22722 eval "$as_ac_var=yes"
22723else
22724 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022725sed 's/^/| /' conftest.$ac_ext >&5
22726
John Criswell7a73b802003-06-30 21:59:07 +000022727eval "$as_ac_var=no"
22728fi
Reid Spencer17041682004-09-05 17:48:32 +000022729rm -f conftest.err conftest.$ac_objext \
22730 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022731fi
22732echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22733echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22734if test `eval echo '${'$as_ac_var'}'` = yes; then
22735 cat >>confdefs.h <<_ACEOF
22736#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22737_ACEOF
22738
22739fi
22740done
22741
22742echo "$as_me:$LINENO: checking for working mmap" >&5
22743echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
22744if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
22745 echo $ECHO_N "(cached) $ECHO_C" >&6
22746else
22747 if test "$cross_compiling" = yes; then
22748 ac_cv_func_mmap_fixed_mapped=no
22749else
22750 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022751/* confdefs.h. */
22752_ACEOF
22753cat confdefs.h >>conftest.$ac_ext
22754cat >>conftest.$ac_ext <<_ACEOF
22755/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022756$ac_includes_default
22757/* malloc might have been renamed as rpl_malloc. */
22758#undef malloc
22759
22760/* Thanks to Mike Haertel and Jim Avera for this test.
22761 Here is a matrix of mmap possibilities:
22762 mmap private not fixed
22763 mmap private fixed at somewhere currently unmapped
22764 mmap private fixed at somewhere already mapped
22765 mmap shared not fixed
22766 mmap shared fixed at somewhere currently unmapped
22767 mmap shared fixed at somewhere already mapped
22768 For private mappings, we should verify that changes cannot be read()
22769 back from the file, nor mmap's back from the file at a different
22770 address. (There have been systems where private was not correctly
22771 implemented like the infamous i386 svr4.0, and systems where the
22772 VM page cache was not coherent with the file system buffer cache
22773 like early versions of FreeBSD and possibly contemporary NetBSD.)
22774 For shared mappings, we should conversely verify that changes get
22775 propagated back to all the places they're supposed to be.
22776
22777 Grep wants private fixed already mapped.
22778 The main things grep needs to know about mmap are:
22779 * does it exist and is it safe to write into the mmap'd area
22780 * how to use it (BSD variants) */
22781
22782#include <fcntl.h>
22783#include <sys/mman.h>
22784
22785#if !STDC_HEADERS && !HAVE_STDLIB_H
22786char *malloc ();
22787#endif
22788
22789/* This mess was copied from the GNU getpagesize.h. */
22790#if !HAVE_GETPAGESIZE
22791/* Assume that all systems that can run configure have sys/param.h. */
22792# if !HAVE_SYS_PARAM_H
22793# define HAVE_SYS_PARAM_H 1
22794# endif
22795
22796# ifdef _SC_PAGESIZE
22797# define getpagesize() sysconf(_SC_PAGESIZE)
22798# else /* no _SC_PAGESIZE */
22799# if HAVE_SYS_PARAM_H
22800# include <sys/param.h>
22801# ifdef EXEC_PAGESIZE
22802# define getpagesize() EXEC_PAGESIZE
22803# else /* no EXEC_PAGESIZE */
22804# ifdef NBPG
22805# define getpagesize() NBPG * CLSIZE
22806# ifndef CLSIZE
22807# define CLSIZE 1
22808# endif /* no CLSIZE */
22809# else /* no NBPG */
22810# ifdef NBPC
22811# define getpagesize() NBPC
22812# else /* no NBPC */
22813# ifdef PAGESIZE
22814# define getpagesize() PAGESIZE
22815# endif /* PAGESIZE */
22816# endif /* no NBPC */
22817# endif /* no NBPG */
22818# endif /* no EXEC_PAGESIZE */
22819# else /* no HAVE_SYS_PARAM_H */
22820# define getpagesize() 8192 /* punt totally */
22821# endif /* no HAVE_SYS_PARAM_H */
22822# endif /* no _SC_PAGESIZE */
22823
22824#endif /* no HAVE_GETPAGESIZE */
22825
22826int
22827main ()
22828{
22829 char *data, *data2, *data3;
22830 int i, pagesize;
22831 int fd;
22832
22833 pagesize = getpagesize ();
22834
22835 /* First, make a file with some known garbage in it. */
22836 data = (char *) malloc (pagesize);
22837 if (!data)
22838 exit (1);
22839 for (i = 0; i < pagesize; ++i)
22840 *(data + i) = rand ();
22841 umask (0);
22842 fd = creat ("conftest.mmap", 0600);
22843 if (fd < 0)
22844 exit (1);
22845 if (write (fd, data, pagesize) != pagesize)
22846 exit (1);
22847 close (fd);
22848
22849 /* Next, try to mmap the file at a fixed address which already has
22850 something else allocated at it. If we can, also make sure that
22851 we see the same garbage. */
22852 fd = open ("conftest.mmap", O_RDWR);
22853 if (fd < 0)
22854 exit (1);
22855 data2 = (char *) malloc (2 * pagesize);
22856 if (!data2)
22857 exit (1);
Reid Spencer17041682004-09-05 17:48:32 +000022858 data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
John Criswell7a73b802003-06-30 21:59:07 +000022859 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
Reid Spencer17041682004-09-05 17:48:32 +000022860 MAP_PRIVATE | MAP_FIXED, fd, 0L))
John Criswell7a73b802003-06-30 21:59:07 +000022861 exit (1);
22862 for (i = 0; i < pagesize; ++i)
22863 if (*(data + i) != *(data2 + i))
22864 exit (1);
22865
22866 /* Finally, make sure that changes to the mapped area do not
22867 percolate back to the file as seen by read(). (This is a bug on
22868 some variants of i386 svr4.0.) */
22869 for (i = 0; i < pagesize; ++i)
22870 *(data2 + i) = *(data2 + i) + 1;
22871 data3 = (char *) malloc (pagesize);
22872 if (!data3)
22873 exit (1);
22874 if (read (fd, data3, pagesize) != pagesize)
22875 exit (1);
22876 for (i = 0; i < pagesize; ++i)
22877 if (*(data + i) != *(data3 + i))
22878 exit (1);
22879 close (fd);
22880 exit (0);
22881}
22882_ACEOF
22883rm -f conftest$ac_exeext
22884if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22885 (eval $ac_link) 2>&5
22886 ac_status=$?
22887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890 (eval $ac_try) 2>&5
22891 ac_status=$?
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); }; }; then
22894 ac_cv_func_mmap_fixed_mapped=yes
22895else
22896 echo "$as_me: program exited with status $ac_status" >&5
22897echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022898sed 's/^/| /' conftest.$ac_ext >&5
22899
John Criswell7a73b802003-06-30 21:59:07 +000022900( exit $ac_status )
22901ac_cv_func_mmap_fixed_mapped=no
22902fi
Reid Spencer17041682004-09-05 17:48:32 +000022903rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022904fi
22905fi
22906echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
22907echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
22908if test $ac_cv_func_mmap_fixed_mapped = yes; then
22909
22910cat >>confdefs.h <<\_ACEOF
22911#define HAVE_MMAP 1
22912_ACEOF
22913
22914fi
22915rm -f conftest.mmap
22916
Brian Gaeke26be9c52004-01-13 06:43:16 +000022917if test "$ac_cv_func_mmap_fixed_mapped" = "no"
22918then
John Criswellf3ecf3a2004-05-27 00:57:50 +000022919 { echo "$as_me:$LINENO: WARNING: mmap() required but not found" >&5
22920echo "$as_me: WARNING: mmap() required but not found" >&2;}
Brian Gaeke26be9c52004-01-13 06:43:16 +000022921fi
John Criswell7a73b802003-06-30 21:59:07 +000022922echo "$as_me:$LINENO: checking for mmap of files" >&5
22923echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6
22924if test "${ac_cv_func_mmap_file+set}" = set; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22926else
22927
22928
22929 ac_ext=c
22930ac_cpp='$CPP $CPPFLAGS'
22931ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22932ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22933ac_compiler_gnu=$ac_cv_c_compiler_gnu
22934
22935 if test "$cross_compiling" = yes; then
John Criswell0c38eaf2003-09-10 15:17:25 +000022936 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
22937See \`config.log' for more details." >&5
22938echo "$as_me: error: cannot run test program while cross compiling
22939See \`config.log' for more details." >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000022940 { (exit 1); exit 1; }; }
22941else
22942 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000022943/* confdefs.h. */
22944_ACEOF
22945cat confdefs.h >>conftest.$ac_ext
22946cat >>conftest.$ac_ext <<_ACEOF
22947/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000022948
John Criswell7a73b802003-06-30 21:59:07 +000022949#ifdef HAVE_SYS_TYPES_H
22950#include <sys/types.h>
22951#endif
22952
John Criswell5ab73462003-10-09 15:44:28 +000022953#ifdef HAVE_SYS_MMAN_H
22954#include <sys/mman.h>
22955#endif
22956
John Criswell7a73b802003-06-30 21:59:07 +000022957#ifdef HAVE_FCNTL_H
22958#include <fcntl.h>
22959#endif
22960
22961 int fd;
22962 int main () {
John Criswell5ab73462003-10-09 15:44:28 +000022963 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 +000022964_ACEOF
22965rm -f conftest$ac_exeext
22966if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22967 (eval $ac_link) 2>&5
22968 ac_status=$?
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22972 (eval $ac_try) 2>&5
22973 ac_status=$?
22974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22975 (exit $ac_status); }; }; then
22976 ac_cv_func_mmap_file=yes
22977else
22978 echo "$as_me: program exited with status $ac_status" >&5
22979echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000022980sed 's/^/| /' conftest.$ac_ext >&5
22981
John Criswell7a73b802003-06-30 21:59:07 +000022982( exit $ac_status )
22983ac_cv_func_mmap_file=no
22984fi
Reid Spencer17041682004-09-05 17:48:32 +000022985rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000022986fi
22987 ac_ext=c
22988ac_cpp='$CPP $CPPFLAGS'
22989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22991ac_compiler_gnu=$ac_cv_c_compiler_gnu
22992
22993
22994fi
22995echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
22996echo "${ECHO_T}$ac_cv_func_mmap_file" >&6
22997if test "$ac_cv_func_mmap_file" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000022998
22999cat >>confdefs.h <<\_ACEOF
23000#define HAVE_MMAP_FILE
John Criswell7a73b802003-06-30 21:59:07 +000023001_ACEOF
23002
23003 MMAP_FILE=yes
23004
23005fi
23006
Brian Gaeke26be9c52004-01-13 06:43:16 +000023007if test "$ac_cv_func_mmap_file" = "no"
John Criswell7a73b802003-06-30 21:59:07 +000023008then
John Criswellf3ecf3a2004-05-27 00:57:50 +000023009 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
23010echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
John Criswell7a73b802003-06-30 21:59:07 +000023011fi
23012echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
23013echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6
23014if test "${ac_cv_header_mmap_anon+set}" = set; then
23015 echo $ECHO_N "(cached) $ECHO_C" >&6
23016else
23017
23018
23019 ac_ext=c
23020ac_cpp='$CPP $CPPFLAGS'
23021ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23022ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23023ac_compiler_gnu=$ac_cv_c_compiler_gnu
23024
23025 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023026/* confdefs.h. */
23027_ACEOF
23028cat confdefs.h >>conftest.$ac_ext
23029cat >>conftest.$ac_ext <<_ACEOF
23030/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023031#include <sys/mman.h>
23032 #include <unistd.h>
23033 #include <fcntl.h>
John Criswell7a73b802003-06-30 21:59:07 +000023034int
23035main ()
23036{
23037mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
23038 ;
23039 return 0;
23040}
23041_ACEOF
23042rm -f conftest.$ac_objext
23043if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023044 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023045 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023046 grep -v '^ *+' conftest.er1 >conftest.err
23047 rm -f conftest.er1
23048 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023051 { ac_try='test -z "$ac_c_werror_flag"
23052 || test ! -s conftest.err'
23053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23054 (eval $ac_try) 2>&5
23055 ac_status=$?
23056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23057 (exit $ac_status); }; } &&
23058 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23060 (eval $ac_try) 2>&5
23061 ac_status=$?
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 ac_cv_header_mmap_anon=yes
23065else
23066 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023067sed 's/^/| /' conftest.$ac_ext >&5
23068
John Criswell7a73b802003-06-30 21:59:07 +000023069ac_cv_header_mmap_anon=no
23070fi
Reid Spencer17041682004-09-05 17:48:32 +000023071rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023072 ac_ext=c
23073ac_cpp='$CPP $CPPFLAGS'
23074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23076ac_compiler_gnu=$ac_cv_c_compiler_gnu
23077
23078
23079fi
23080echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
23081echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6
23082if test "$ac_cv_header_mmap_anon" = yes; then
John Criswell5ab73462003-10-09 15:44:28 +000023083
23084cat >>confdefs.h <<\_ACEOF
23085#define HAVE_MMAP_ANONYMOUS
John Criswell7a73b802003-06-30 21:59:07 +000023086_ACEOF
23087
23088fi
23089
23090echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23091echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23092if test "${ac_cv_type_signal+set}" = set; then
23093 echo $ECHO_N "(cached) $ECHO_C" >&6
23094else
23095 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023096/* confdefs.h. */
23097_ACEOF
23098cat confdefs.h >>conftest.$ac_ext
23099cat >>conftest.$ac_ext <<_ACEOF
23100/* end confdefs.h. */
John Criswell7a73b802003-06-30 21:59:07 +000023101#include <sys/types.h>
23102#include <signal.h>
23103#ifdef signal
23104# undef signal
23105#endif
23106#ifdef __cplusplus
23107extern "C" void (*signal (int, void (*)(int)))(int);
23108#else
23109void (*signal ()) ();
23110#endif
23111
John Criswell7a73b802003-06-30 21:59:07 +000023112int
23113main ()
23114{
23115int i;
23116 ;
23117 return 0;
23118}
23119_ACEOF
23120rm -f conftest.$ac_objext
23121if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023122 (eval $ac_compile) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023123 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023124 grep -v '^ *+' conftest.er1 >conftest.err
23125 rm -f conftest.er1
23126 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023129 { ac_try='test -z "$ac_c_werror_flag"
23130 || test ! -s conftest.err'
23131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23132 (eval $ac_try) 2>&5
23133 ac_status=$?
23134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23135 (exit $ac_status); }; } &&
23136 { ac_try='test -s conftest.$ac_objext'
John Criswell7a73b802003-06-30 21:59:07 +000023137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23138 (eval $ac_try) 2>&5
23139 ac_status=$?
23140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23141 (exit $ac_status); }; }; then
23142 ac_cv_type_signal=void
23143else
23144 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023145sed 's/^/| /' conftest.$ac_ext >&5
23146
John Criswell7a73b802003-06-30 21:59:07 +000023147ac_cv_type_signal=int
23148fi
Reid Spencer17041682004-09-05 17:48:32 +000023149rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023150fi
23151echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23152echo "${ECHO_T}$ac_cv_type_signal" >&6
23153
23154cat >>confdefs.h <<_ACEOF
23155#define RETSIGTYPE $ac_cv_type_signal
23156_ACEOF
23157
23158
23159
23160
23161
23162
23163
Brian Gaekef5261472004-02-20 06:40:57 +000023164
Brian Gaeke9a08b5e2004-04-02 21:26:02 +000023165
John Criswelld6621562004-06-07 14:26:24 +000023166
23167
John Criswell7ed43ad2004-07-19 16:12:29 +000023168for ac_func in getcwd gettimeofday strdup strtoq strtoll backtrace isatty mkstemp getrusage
John Criswell7a73b802003-06-30 21:59:07 +000023169do
23170as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23171echo "$as_me:$LINENO: checking for $ac_func" >&5
23172echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23173if eval "test \"\${$as_ac_var+set}\" = set"; then
23174 echo $ECHO_N "(cached) $ECHO_C" >&6
23175else
23176 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023177/* confdefs.h. */
23178_ACEOF
23179cat confdefs.h >>conftest.$ac_ext
23180cat >>conftest.$ac_ext <<_ACEOF
23181/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000023182/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23184#define $ac_func innocuous_$ac_func
23185
John Criswell7a73b802003-06-30 21:59:07 +000023186/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023187 which can conflict with char $ac_func (); below.
23188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23189 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000023190
John Criswell0c38eaf2003-09-10 15:17:25 +000023191#ifdef __STDC__
23192# include <limits.h>
23193#else
23194# include <assert.h>
23195#endif
Reid Spencer17041682004-09-05 17:48:32 +000023196
23197#undef $ac_func
23198
John Criswell7a73b802003-06-30 21:59:07 +000023199/* Override any gcc2 internal prototype to avoid an error. */
23200#ifdef __cplusplus
23201extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023202{
John Criswell7a73b802003-06-30 21:59:07 +000023203#endif
23204/* We use char because int might match the return type of a gcc2
23205 builtin and then its argument prototype would still apply. */
23206char $ac_func ();
John Criswell7a73b802003-06-30 21:59:07 +000023207/* The GNU C library defines this for functions which it implements
23208 to always fail with ENOSYS. Some functions are actually named
23209 something starting with __ and the normal name is an alias. */
23210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23211choke me
23212#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023213char (*f) () = $ac_func;
23214#endif
23215#ifdef __cplusplus
23216}
John Criswell7a73b802003-06-30 21:59:07 +000023217#endif
23218
John Criswell0c38eaf2003-09-10 15:17:25 +000023219int
23220main ()
23221{
23222return f != $ac_func;
John Criswell7a73b802003-06-30 21:59:07 +000023223 ;
23224 return 0;
23225}
23226_ACEOF
23227rm -f conftest.$ac_objext conftest$ac_exeext
23228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023229 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023230 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023231 grep -v '^ *+' conftest.er1 >conftest.err
23232 rm -f conftest.er1
23233 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023236 { ac_try='test -z "$ac_c_werror_flag"
23237 || test ! -s conftest.err'
23238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23239 (eval $ac_try) 2>&5
23240 ac_status=$?
23241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); }; } &&
23243 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23245 (eval $ac_try) 2>&5
23246 ac_status=$?
23247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248 (exit $ac_status); }; }; then
23249 eval "$as_ac_var=yes"
23250else
23251 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023252sed 's/^/| /' conftest.$ac_ext >&5
23253
John Criswell7a73b802003-06-30 21:59:07 +000023254eval "$as_ac_var=no"
23255fi
Reid Spencer17041682004-09-05 17:48:32 +000023256rm -f conftest.err conftest.$ac_objext \
23257 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023258fi
23259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23260echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23261if test `eval echo '${'$as_ac_var'}'` = yes; then
23262 cat >>confdefs.h <<_ACEOF
23263#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23264_ACEOF
23265
23266fi
23267done
23268
John Criswell7a73b802003-06-30 21:59:07 +000023269echo "$as_me:$LINENO: checking for mprotect" >&5
23270echo $ECHO_N "checking for mprotect... $ECHO_C" >&6
23271if test "${ac_cv_func_mprotect+set}" = set; then
23272 echo $ECHO_N "(cached) $ECHO_C" >&6
23273else
23274 cat >conftest.$ac_ext <<_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000023275/* confdefs.h. */
23276_ACEOF
23277cat confdefs.h >>conftest.$ac_ext
23278cat >>conftest.$ac_ext <<_ACEOF
23279/* end confdefs.h. */
Reid Spencer17041682004-09-05 17:48:32 +000023280/* Define mprotect to an innocuous variant, in case <limits.h> declares mprotect.
23281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23282#define mprotect innocuous_mprotect
23283
John Criswell7a73b802003-06-30 21:59:07 +000023284/* System header to define __stub macros and hopefully few prototypes,
John Criswell0c38eaf2003-09-10 15:17:25 +000023285 which can conflict with char mprotect (); below.
23286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23287 <limits.h> exists even on freestanding compilers. */
Reid Spencer17041682004-09-05 17:48:32 +000023288
John Criswell0c38eaf2003-09-10 15:17:25 +000023289#ifdef __STDC__
23290# include <limits.h>
23291#else
23292# include <assert.h>
23293#endif
Reid Spencer17041682004-09-05 17:48:32 +000023294
23295#undef mprotect
23296
John Criswell7a73b802003-06-30 21:59:07 +000023297/* Override any gcc2 internal prototype to avoid an error. */
23298#ifdef __cplusplus
23299extern "C"
John Criswell0c38eaf2003-09-10 15:17:25 +000023300{
John Criswell7a73b802003-06-30 21:59:07 +000023301#endif
23302/* We use char because int might match the return type of a gcc2
23303 builtin and then its argument prototype would still apply. */
23304char mprotect ();
John Criswell7a73b802003-06-30 21:59:07 +000023305/* The GNU C library defines this for functions which it implements
23306 to always fail with ENOSYS. Some functions are actually named
23307 something starting with __ and the normal name is an alias. */
23308#if defined (__stub_mprotect) || defined (__stub___mprotect)
23309choke me
23310#else
John Criswell0c38eaf2003-09-10 15:17:25 +000023311char (*f) () = mprotect;
23312#endif
23313#ifdef __cplusplus
23314}
John Criswell7a73b802003-06-30 21:59:07 +000023315#endif
23316
John Criswell0c38eaf2003-09-10 15:17:25 +000023317int
23318main ()
23319{
23320return f != mprotect;
John Criswell7a73b802003-06-30 21:59:07 +000023321 ;
23322 return 0;
23323}
23324_ACEOF
23325rm -f conftest.$ac_objext conftest$ac_exeext
23326if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023327 (eval $ac_link) 2>conftest.er1
John Criswell7a73b802003-06-30 21:59:07 +000023328 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023329 grep -v '^ *+' conftest.er1 >conftest.err
23330 rm -f conftest.er1
23331 cat conftest.err >&5
John Criswell7a73b802003-06-30 21:59:07 +000023332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023334 { ac_try='test -z "$ac_c_werror_flag"
23335 || test ! -s conftest.err'
23336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23337 (eval $ac_try) 2>&5
23338 ac_status=$?
23339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23340 (exit $ac_status); }; } &&
23341 { ac_try='test -s conftest$ac_exeext'
John Criswell7a73b802003-06-30 21:59:07 +000023342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23343 (eval $ac_try) 2>&5
23344 ac_status=$?
23345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23346 (exit $ac_status); }; }; then
23347 ac_cv_func_mprotect=yes
23348else
23349 echo "$as_me: failed program was:" >&5
John Criswell0c38eaf2003-09-10 15:17:25 +000023350sed 's/^/| /' conftest.$ac_ext >&5
23351
John Criswell7a73b802003-06-30 21:59:07 +000023352ac_cv_func_mprotect=no
23353fi
Reid Spencer17041682004-09-05 17:48:32 +000023354rm -f conftest.err conftest.$ac_objext \
23355 conftest$ac_exeext conftest.$ac_ext
John Criswell7a73b802003-06-30 21:59:07 +000023356fi
23357echo "$as_me:$LINENO: result: $ac_cv_func_mprotect" >&5
23358echo "${ECHO_T}$ac_cv_func_mprotect" >&6
23359if test $ac_cv_func_mprotect = yes; then
23360 :
23361else
23362 { { echo "$as_me:$LINENO: error: Function mprotect() required but not found" >&5
23363echo "$as_me: error: Function mprotect() required but not found" >&2;}
23364 { (exit 1); exit 1; }; }
23365fi
23366
23367
John Criswellb13092b2003-07-22 21:00:24 +000023368
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023369 echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
23370echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6
John Criswellcb7a1eb2003-11-17 19:46:02 +000023371
23372
23373 ac_ext=c
23374ac_cpp='$CPP $CPPFLAGS'
23375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23377ac_compiler_gnu=$ac_cv_c_compiler_gnu
23378
Brian Gaekef91a15c2003-11-18 06:20:41 +000023379 oldcflags="$CFLAGS"
23380 CFLAGS="$CFLAGS -Wl,-R."
John Criswellcb7a1eb2003-11-17 19:46:02 +000023381 cat >conftest.$ac_ext <<_ACEOF
Brian Gaekef91a15c2003-11-18 06:20:41 +000023382int main() { return 0; }
John Criswellcb7a1eb2003-11-17 19:46:02 +000023383_ACEOF
23384rm -f conftest.$ac_objext conftest$ac_exeext
23385if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Reid Spencer17041682004-09-05 17:48:32 +000023386 (eval $ac_link) 2>conftest.er1
John Criswellcb7a1eb2003-11-17 19:46:02 +000023387 ac_status=$?
Reid Spencer17041682004-09-05 17:48:32 +000023388 grep -v '^ *+' conftest.er1 >conftest.err
23389 rm -f conftest.er1
23390 cat conftest.err >&5
John Criswellcb7a1eb2003-11-17 19:46:02 +000023391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23392 (exit $ac_status); } &&
Reid Spencer17041682004-09-05 17:48:32 +000023393 { ac_try='test -z "$ac_c_werror_flag"
23394 || test ! -s conftest.err'
23395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23396 (eval $ac_try) 2>&5
23397 ac_status=$?
23398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); }; } &&
23400 { ac_try='test -s conftest$ac_exeext'
John Criswellcb7a1eb2003-11-17 19:46:02 +000023401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23402 (eval $ac_try) 2>&5
23403 ac_status=$?
23404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23405 (exit $ac_status); }; }; then
23406 ac_cv_link_use_r=yes
23407else
23408 echo "$as_me: failed program was:" >&5
23409sed 's/^/| /' conftest.$ac_ext >&5
23410
Brian Gaekef91a15c2003-11-18 06:20:41 +000023411ac_cv_link_use_r=no
John Criswellcb7a1eb2003-11-17 19:46:02 +000023412fi
Reid Spencer17041682004-09-05 17:48:32 +000023413rm -f conftest.err conftest.$ac_objext \
23414 conftest$ac_exeext conftest.$ac_ext
Brian Gaekef91a15c2003-11-18 06:20:41 +000023415 CFLAGS="$oldcflags"
John Criswellcb7a1eb2003-11-17 19:46:02 +000023416 ac_ext=c
23417ac_cpp='$CPP $CPPFLAGS'
23418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23420ac_compiler_gnu=$ac_cv_c_compiler_gnu
23421
Brian Gaekeadfe28d2004-07-21 03:50:25 +000023422 echo "$as_me:$LINENO: result: $ac_cv_link_use_r" >&5
23423echo "${ECHO_T}$ac_cv_link_use_r" >&6
Brian Gaekef91a15c2003-11-18 06:20:41 +000023424 if test "$ac_cv_link_use_r" = yes
John Criswellcb7a1eb2003-11-17 19:46:02 +000023425 then
Brian Gaekef91a15c2003-11-18 06:20:41 +000023426
23427cat >>confdefs.h <<\_ACEOF
John Criswellcb7a1eb2003-11-17 19:46:02 +000023428#define HAVE_LINK_R 1
23429_ACEOF
23430
23431 fi
23432
23433
John Criswell7a73b802003-06-30 21:59:07 +000023434# Check whether --enable-optimized or --disable-optimized was given.
23435if test "${enable_optimized+set}" = set; then
23436 enableval="$enable_optimized"
John Criswell7a73b802003-06-30 21:59:07 +000023437
23438else
John Criswellb13092b2003-07-22 21:00:24 +000023439 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023440fi;
John Criswellb13092b2003-07-22 21:00:24 +000023441if test ${enableval} = "no"
23442then
23443 ENABLE_OPTIMIZED=
23444
23445else
23446 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
23447
23448fi
23449
John Criswell55126592003-10-07 21:57:39 +000023450
23451
John Criswell55126592003-10-07 21:57:39 +000023452
Brian Gaekee773b862004-04-16 17:13:44 +000023453 # Check whether --enable-spec95 or --disable-spec95 was given.
John Criswellcf2e9f72004-02-10 22:36:35 +000023454if test "${enable_spec95+set}" = set; then
23455 enableval="$enable_spec95"
Brian Gaekee773b862004-04-16 17:13:44 +000023456 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000023457else
Brian Gaekee773b862004-04-16 17:13:44 +000023458 checkresult=auto
John Criswellcf2e9f72004-02-10 22:36:35 +000023459fi;
Brian Gaekee773b862004-04-16 17:13:44 +000023460echo "$as_me:$LINENO: checking for spec95 benchmark sources" >&5
23461echo $ECHO_N "checking for spec95 benchmark sources... $ECHO_C" >&6
23462case "$checkresult" in
23463auto|yes)
23464 defaultdir=/home/vadve/shared/benchmarks/spec95/benchspec
23465 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000023466 then
Brian Gaekee773b862004-04-16 17:13:44 +000023467 SPEC95_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000023468
23469 USE_SPEC95=USE_SPEC95=1
23470
Brian Gaekee773b862004-04-16 17:13:44 +000023471 checkresult="yes, found in $defaultdir"
23472 else
23473 checkresult=no
23474 fi
23475 ;;
23476no)
John Criswellcf2e9f72004-02-10 22:36:35 +000023477
23478
Brian Gaekee773b862004-04-16 17:13:44 +000023479 checkresult=no
23480 ;;
23481*) if test -d "$checkresult"
23482 then
23483 SPEC95_ROOT="$checkresult"
23484
23485 USE_SPEC95=USE_SPEC95=1
23486
23487 checkresult="yes, in $checkresult"
23488 else
23489
23490
23491 checkresult="no, not found in $checkresult"
23492 fi
23493 ;;
23494esac
23495echo "$as_me:$LINENO: result: $checkresult" >&5
23496echo "${ECHO_T}$checkresult" >&6
23497
23498
23499
23500 # Check whether --enable-spec2000 or --disable-spec2000 was given.
23501if test "${enable_spec2000+set}" = set; then
23502 enableval="$enable_spec2000"
23503 checkresult=$enableval
John Criswellcf2e9f72004-02-10 22:36:35 +000023504else
Brian Gaekee773b862004-04-16 17:13:44 +000023505 checkresult=auto
23506fi;
23507echo "$as_me:$LINENO: checking for spec2000 benchmark sources" >&5
23508echo $ECHO_N "checking for spec2000 benchmark sources... $ECHO_C" >&6
23509case "$checkresult" in
23510auto|yes)
23511 defaultdir=/home/vadve/shared/benchmarks/speccpu2000/benchspec
23512 if test -d "$defaultdir"
John Criswellcf2e9f72004-02-10 22:36:35 +000023513 then
Brian Gaekee773b862004-04-16 17:13:44 +000023514 SPEC2000_ROOT=$defaultdir
John Criswellcf2e9f72004-02-10 22:36:35 +000023515
Brian Gaekee773b862004-04-16 17:13:44 +000023516 USE_SPEC2000=USE_SPEC2000=1
John Criswellcf2e9f72004-02-10 22:36:35 +000023517
Brian Gaekee773b862004-04-16 17:13:44 +000023518 checkresult="yes, found in $defaultdir"
23519 else
23520 checkresult=no
23521 fi
23522 ;;
23523no)
John Criswellcf2e9f72004-02-10 22:36:35 +000023524
John Criswellcf2e9f72004-02-10 22:36:35 +000023525
Brian Gaekee773b862004-04-16 17:13:44 +000023526 checkresult=no
23527 ;;
23528*) if test -d "$checkresult"
23529 then
23530 SPEC2000_ROOT="$checkresult"
23531
23532 USE_SPEC2000=USE_SPEC2000=1
23533
23534 checkresult="yes, in $checkresult"
23535 else
23536
23537
23538 checkresult="no, not found in $checkresult"
23539 fi
23540 ;;
23541esac
23542echo "$as_me:$LINENO: result: $checkresult" >&5
23543echo "${ECHO_T}$checkresult" >&6
23544
23545
23546
23547 # Check whether --enable-povray or --disable-povray was given.
John Criswell0538d422004-02-20 22:30:22 +000023548if test "${enable_povray+set}" = set; then
23549 enableval="$enable_povray"
Brian Gaekee773b862004-04-16 17:13:44 +000023550 checkresult=$enableval
John Criswell0538d422004-02-20 22:30:22 +000023551else
Brian Gaekee773b862004-04-16 17:13:44 +000023552 checkresult=auto
John Criswell0538d422004-02-20 22:30:22 +000023553fi;
Brian Gaekee773b862004-04-16 17:13:44 +000023554echo "$as_me:$LINENO: checking for povray benchmark sources" >&5
23555echo $ECHO_N "checking for povray benchmark sources... $ECHO_C" >&6
23556case "$checkresult" in
Chris Lattner95f45c52004-04-14 16:32:09 +000023557auto|yes)
Brian Gaekef66cdf82004-04-13 19:03:49 +000023558 defaultdir=/home/vadve/shared/benchmarks/povray31
Brian Gaekee773b862004-04-16 17:13:44 +000023559 if test -d "$defaultdir"
John Criswell0538d422004-02-20 22:30:22 +000023560 then
Brian Gaekef66cdf82004-04-13 19:03:49 +000023561 POVRAY_ROOT=$defaultdir
John Criswell0538d422004-02-20 22:30:22 +000023562
23563 USE_POVRAY=USE_POVRAY=1
23564
Brian Gaekee773b862004-04-16 17:13:44 +000023565 checkresult="yes, found in $defaultdir"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023566 else
Brian Gaekee773b862004-04-16 17:13:44 +000023567 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000023568 fi
23569 ;;
Chris Lattner95f45c52004-04-14 16:32:09 +000023570no)
John Criswell0538d422004-02-20 22:30:22 +000023571
23572
Brian Gaekee773b862004-04-16 17:13:44 +000023573 checkresult=no
Brian Gaekef66cdf82004-04-13 19:03:49 +000023574 ;;
Brian Gaekee773b862004-04-16 17:13:44 +000023575*) if test -d "$checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023576 then
Brian Gaekee773b862004-04-16 17:13:44 +000023577 POVRAY_ROOT="$checkresult"
John Criswell0538d422004-02-20 22:30:22 +000023578
Brian Gaekef66cdf82004-04-13 19:03:49 +000023579 USE_POVRAY=USE_POVRAY=1
John Criswell0538d422004-02-20 22:30:22 +000023580
Brian Gaekee773b862004-04-16 17:13:44 +000023581 checkresult="yes, in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023582 else
John Criswell0538d422004-02-20 22:30:22 +000023583
John Criswell0538d422004-02-20 22:30:22 +000023584
Brian Gaekee773b862004-04-16 17:13:44 +000023585 checkresult="no, not found in $checkresult"
Brian Gaekef66cdf82004-04-13 19:03:49 +000023586 fi
23587 ;;
23588esac
Brian Gaekee773b862004-04-16 17:13:44 +000023589echo "$as_me:$LINENO: result: $checkresult" >&5
23590echo "${ECHO_T}$checkresult" >&6
23591
23592
John Criswell0538d422004-02-20 22:30:22 +000023593
John Criswell7a73b802003-06-30 21:59:07 +000023594# Check whether --enable-precompiled_bytecode or --disable-precompiled_bytecode was given.
23595if test "${enable_precompiled_bytecode+set}" = set; then
23596 enableval="$enable_precompiled_bytecode"
John Criswell7a73b802003-06-30 21:59:07 +000023597
23598else
John Criswellb13092b2003-07-22 21:00:24 +000023599 enableval=no
John Criswell7a73b802003-06-30 21:59:07 +000023600fi;
John Criswellb13092b2003-07-22 21:00:24 +000023601if test ${enableval} = "no"
23602then
23603 UPB=
John Criswellf02dbf02003-07-22 20:07:49 +000023604
John Criswellb13092b2003-07-22 21:00:24 +000023605else
23606 UPB=USE_PRECOMPILED_BYTECODE=1
23607
23608fi
John Criswellf02dbf02003-07-22 20:07:49 +000023609
John Criswellf02dbf02003-07-22 20:07:49 +000023610# Check whether --enable-llc_diffs or --disable-llc_diffs was given.
23611if test "${enable_llc_diffs+set}" = set; then
23612 enableval="$enable_llc_diffs"
John Criswellf02dbf02003-07-22 20:07:49 +000023613
23614else
John Criswellb13092b2003-07-22 21:00:24 +000023615 enableval=yes
John Criswellf02dbf02003-07-22 20:07:49 +000023616fi;
John Criswellb13092b2003-07-22 21:00:24 +000023617if test ${enableval} = "no"
23618then
23619 DISABLE_LLC_DIFFS=DISABLE_LLC_DIFFS:=1
John Criswellf02dbf02003-07-22 20:07:49 +000023620
John Criswellb13092b2003-07-22 21:00:24 +000023621else
23622 DISABLE_LLC_DIFFS=
23623
23624fi
23625
23626# Check whether --enable-jit or --disable-jit was given.
John Criswell7a73b802003-06-30 21:59:07 +000023627if test "${enable_jit+set}" = set; then
23628 enableval="$enable_jit"
John Criswell7a73b802003-06-30 21:59:07 +000023629
23630else
John Criswellc78022e2003-07-29 19:11:58 +000023631 enableval=default
John Criswell7a73b802003-06-30 21:59:07 +000023632fi;
John Criswellb13092b2003-07-22 21:00:24 +000023633if test ${enableval} = "no"
23634then
23635 JIT=
23636
23637else
John Criswellc78022e2003-07-29 19:11:58 +000023638 case $target in
23639 *i*86*)
23640 JIT=TARGET_HAS_JIT=1
John Criswellb13092b2003-07-22 21:00:24 +000023641
John Criswellc78022e2003-07-29 19:11:58 +000023642 ;;
23643 *sparc*)
23644 JIT=TARGET_HAS_JIT=1
23645
23646 ;;
23647 *)
23648 JIT=
23649
23650 ;;
23651 esac
John Criswellb13092b2003-07-22 21:00:24 +000023652fi
John Criswell7a73b802003-06-30 21:59:07 +000023653
23654
John Criswell7a73b802003-06-30 21:59:07 +000023655# Check whether --with-llvmgccdir or --without-llvmgccdir was given.
23656if test "${with_llvmgccdir+set}" = set; then
23657 withval="$with_llvmgccdir"
23658 LLVMGCCDIR=$withval
23659
23660fi;
Brian Gaekef3b24102003-11-16 18:38:14 +000023661echo "$as_me:$LINENO: checking for llvm-gcc" >&5
23662echo $ECHO_N "checking for llvm-gcc... $ECHO_C" >&6
23663LLVM_GCC_CHECK=no
23664if test -d "$LLVMGCCDIR"
23665then
23666 if test -x "$LLVMGCCDIR/bin/gcc"
23667 then
23668 LLVM_GCC_CHECK="$LLVMGCCDIR/bin/gcc"
23669 fi
23670fi
23671llvmgccwarn=no
23672echo "$as_me:$LINENO: result: $LLVM_GCC_CHECK" >&5
23673echo "${ECHO_T}$LLVM_GCC_CHECK" >&6
23674if test "$LLVM_GCC_CHECK" = "no"
23675then
23676 llvmgccwarn=yes
23677fi
Brian Gaekef3b24102003-11-16 18:38:14 +000023678echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
23679echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6
23680LLVM_GCC_SANE=no
23681if test -x "$LLVM_GCC_CHECK"
23682then
23683 cp /dev/null conftest.c
23684 "$LLVM_GCC_CHECK" -S -o - conftest.c | grep implementation > /dev/null 2>&1
23685 if test $? -eq 0
23686 then
23687 LLVM_GCC_SANE=yes
23688 fi
23689 rm conftest.c
Brian Gaeke2f50a042004-01-16 21:31:21 +000023690 llvmcc1path=`"$LLVM_GCC_CHECK" --print-prog-name=cc1`
Brian Gaeke554831c2004-01-21 19:39:29 +000023691 LLVMCC1=$llvmcc1path
Brian Gaeke2f50a042004-01-16 21:31:21 +000023692
23693 llvmcc1pluspath=`"$LLVM_GCC_CHECK" --print-prog-name=cc1plus`
Brian Gaeke554831c2004-01-21 19:39:29 +000023694 LLVMCC1PLUS=$llvmcc1pluspath
Brian Gaeke2f50a042004-01-16 21:31:21 +000023695
Brian Gaekef3b24102003-11-16 18:38:14 +000023696fi
23697echo "$as_me:$LINENO: result: $LLVM_GCC_SANE" >&5
23698echo "${ECHO_T}$LLVM_GCC_SANE" >&6
23699if test "$LLVM_GCC_SANE" = "no"
23700then
23701 llvmgccwarn=yes
23702fi
23703
John Criswellc78022e2003-07-29 19:11:58 +000023704
John Criswell7a73b802003-06-30 21:59:07 +000023705# Check whether --with-bcrepos or --without-bcrepos was given.
23706if test "${with_bcrepos+set}" = set; then
23707 withval="$with_bcrepos"
23708 BCR=$withval
23709
23710else
23711 BCR=/home/vadve/lattner/LLVMPrograms
23712
23713fi;
23714
John Criswellc78022e2003-07-29 19:11:58 +000023715
John Criswell7a73b802003-06-30 21:59:07 +000023716# Check whether --with-papi or --without-papi was given.
23717if test "${with_papi+set}" = set; then
23718 withval="$with_papi"
23719 PAPIDIR=$withval
23720
23721else
John Criswellde00db22003-08-25 16:49:54 +000023722 PAPIDIR=/home/vadve/shared/Sparc/papi-2.3.4.1
John Criswell7a73b802003-06-30 21:59:07 +000023723
23724fi;
23725
Brian Gaeke554831c2004-01-21 19:39:29 +000023726echo "$as_me:$LINENO: checking for shared library suffix" >&5
23727echo $ECHO_N "checking for shared library suffix... $ECHO_C" >&6
23728eval "SHLIBEXT=$shrext"
23729echo "$as_me:$LINENO: result: $SHLIBEXT" >&5
23730echo "${ECHO_T}$SHLIBEXT" >&6
23731SHLIBEXT=$SHLIBEXT
23732
23733
23734cat >>confdefs.h <<_ACEOF
23735#define SHLIBEXT "$SHLIBEXT"
23736_ACEOF
23737
23738
Reid Spencere9de0912004-08-20 09:03:57 +000023739# Translate the various configuration directories and other basic
23740# information into substitutions that will end up in config.h.in so
23741# that these configured values can be hard-wired into a program.
23742eval LLVM_PREFIX="${prefix}";
23743eval LLVM_BINDIR="${prefix}/bin";
23744eval LLVM_LIBDIR="${prefix}/lib";
23745eval LLVM_DATADIR="${prefix}/data";
23746eval LLVM_DOCSDIR="${prefix}/docs";
23747eval LLVM_ETCDIR="${prefix}/etc";
23748eval LLVM_INCLUDEDIR="${prefix}/include";
23749eval LLVM_INFODIR="${prefix}/info";
23750eval LLVM_MANDIR="${prefix}/man";
23751LLVM_CONFIGTIME=`date`
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763cat >>confdefs.h <<_ACEOF
23764#define LLVM_PREFIX "$LLVM_PREFIX"
23765_ACEOF
23766
23767
23768cat >>confdefs.h <<_ACEOF
23769#define LLVM_BINDIR "$LLVM_BINDIR"
23770_ACEOF
23771
23772
23773cat >>confdefs.h <<_ACEOF
23774#define LLVM_LIBDIR "$LLVM_LIBDIR"
23775_ACEOF
23776
23777
23778cat >>confdefs.h <<_ACEOF
23779#define LLVM_DATADIR "$LLVM_DATADIR"
23780_ACEOF
23781
23782
23783cat >>confdefs.h <<_ACEOF
23784#define LLVM_DATADIR "$LLVM_DOCSDIR"
23785_ACEOF
23786
23787
23788cat >>confdefs.h <<_ACEOF
Reid Spencerff22c422004-08-20 09:10:31 +000023789#define LLVM_ETCDIR "$LLVM_ETCDIR"
Reid Spencere9de0912004-08-20 09:03:57 +000023790_ACEOF
23791
23792
23793cat >>confdefs.h <<_ACEOF
23794#define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
23795_ACEOF
23796
23797
23798cat >>confdefs.h <<_ACEOF
23799#define LLVM_INFODIR "$LLVM_INFODIR"
23800_ACEOF
23801
23802
23803cat >>confdefs.h <<_ACEOF
23804#define LLVM_MANDIR "$LLVM_MANDIR"
23805_ACEOF
23806
23807
23808cat >>confdefs.h <<_ACEOF
23809#define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
23810_ACEOF
23811
23812
John Criswell7a73b802003-06-30 21:59:07 +000023813cat >confcache <<\_ACEOF
23814# This file is a shell script that caches the results of configure
23815# tests run on this system so they can be shared between configure
23816# scripts and configure runs, see configure's option --config-cache.
23817# It is not useful on other systems. If it contains results you don't
23818# want to keep, you may remove or edit it.
23819#
23820# config.status only pays attention to the cache file if you give it
23821# the --recheck option to rerun configure.
23822#
John Criswell0c38eaf2003-09-10 15:17:25 +000023823# `ac_cv_env_foo' variables (set or unset) will be overridden when
John Criswell7a73b802003-06-30 21:59:07 +000023824# loading this file, other *unset* `ac_cv_foo' will be assigned the
23825# following values.
23826
23827_ACEOF
23828
23829# The following way of writing the cache mishandles newlines in values,
23830# but we know of no workaround that is simple, portable, and efficient.
23831# So, don't put newlines in cache variables' values.
23832# Ultrix sh set writes to stderr and can't be redirected directly,
23833# and sets the high bit in the cache file unless we assign to the vars.
23834{
23835 (set) 2>&1 |
23836 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23837 *ac_space=\ *)
23838 # `set' does not quote correctly, so add quotes (double-quote
23839 # substitution turns \\\\ into \\, and sed turns \\ into \).
23840 sed -n \
Reid Spencer17041682004-09-05 17:48:32 +000023841 "s/'/'\\\\''/g;
23842 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
John Criswell7a73b802003-06-30 21:59:07 +000023843 ;;
23844 *)
23845 # `set' quotes correctly as required by POSIX, so do not add quotes.
23846 sed -n \
Reid Spencer17041682004-09-05 17:48:32 +000023847 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
John Criswell7a73b802003-06-30 21:59:07 +000023848 ;;
23849 esac;
23850} |
23851 sed '
23852 t clear
23853 : clear
23854 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23855 t end
23856 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23857 : end' >>confcache
John Criswell0c38eaf2003-09-10 15:17:25 +000023858if diff $cache_file confcache >/dev/null 2>&1; then :; else
John Criswell7a73b802003-06-30 21:59:07 +000023859 if test -w $cache_file; then
23860 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23861 cat confcache >$cache_file
23862 else
23863 echo "not updating unwritable cache $cache_file"
23864 fi
23865fi
23866rm -f confcache
23867
23868test "x$prefix" = xNONE && prefix=$ac_default_prefix
23869# Let make expand exec_prefix.
23870test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23871
23872# VPATH may cause trouble with some makes, so we remove $(srcdir),
23873# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23874# trailing colons and then remove the whole line if VPATH becomes empty
23875# (actually we leave an empty line to preserve line numbers).
23876if test "x$srcdir" = x.; then
Reid Spencer17041682004-09-05 17:48:32 +000023877 ac_vpsub='/^[ ]*VPATH[ ]*=/{
John Criswell7a73b802003-06-30 21:59:07 +000023878s/:*\$(srcdir):*/:/;
23879s/:*\${srcdir}:*/:/;
23880s/:*@srcdir@:*/:/;
Reid Spencer17041682004-09-05 17:48:32 +000023881s/^\([^=]*=[ ]*\):*/\1/;
John Criswell7a73b802003-06-30 21:59:07 +000023882s/:*$//;
Reid Spencer17041682004-09-05 17:48:32 +000023883s/^[^=]*=[ ]*$//;
John Criswell7a73b802003-06-30 21:59:07 +000023884}'
23885fi
23886
23887DEFS=-DHAVE_CONFIG_H
23888
John Criswell0c38eaf2003-09-10 15:17:25 +000023889ac_libobjs=
23890ac_ltlibobjs=
23891for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23892 # 1. Remove the extension, and $U if already installed.
23893 ac_i=`echo "$ac_i" |
Reid Spencer17041682004-09-05 17:48:32 +000023894 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
John Criswell0c38eaf2003-09-10 15:17:25 +000023895 # 2. Add them.
23896 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23897 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23898done
23899LIBOBJS=$ac_libobjs
23900
23901LTLIBOBJS=$ac_ltlibobjs
23902
23903
John Criswell7a73b802003-06-30 21:59:07 +000023904
23905: ${CONFIG_STATUS=./config.status}
23906ac_clean_files_save=$ac_clean_files
23907ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23908{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23909echo "$as_me: creating $CONFIG_STATUS" >&6;}
23910cat >$CONFIG_STATUS <<_ACEOF
23911#! $SHELL
23912# Generated by $as_me.
23913# Run this file to recreate the current configuration.
23914# Compiler output produced by configure, useful for debugging
23915# configure, is in config.log if it exists.
23916
23917debug=false
John Criswell0c38eaf2003-09-10 15:17:25 +000023918ac_cs_recheck=false
23919ac_cs_silent=false
John Criswell7a73b802003-06-30 21:59:07 +000023920SHELL=\${CONFIG_SHELL-$SHELL}
23921_ACEOF
23922
23923cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000023924## --------------------- ##
23925## M4sh Initialization. ##
23926## --------------------- ##
23927
23928# Be Bourne compatible
23929if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23930 emulate sh
23931 NULLCMD=:
John Criswell0c38eaf2003-09-10 15:17:25 +000023932 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23933 # is contrary to our usage. Disable this feature.
23934 alias -g '${1+"$@"}'='"$@"'
John Criswell7a73b802003-06-30 21:59:07 +000023935elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23936 set -o posix
23937fi
Reid Spencer17041682004-09-05 17:48:32 +000023938DUALCASE=1; export DUALCASE # for MKS sh
John Criswell7a73b802003-06-30 21:59:07 +000023939
John Criswell7a73b802003-06-30 21:59:07 +000023940# Support unset when possible.
Reid Spencer17041682004-09-05 17:48:32 +000023941if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000023942 as_unset=unset
23943else
23944 as_unset=false
23945fi
23946
John Criswell0c38eaf2003-09-10 15:17:25 +000023947
23948# Work around bugs in pre-3.0 UWIN ksh.
23949$as_unset ENV MAIL MAILPATH
23950PS1='$ '
23951PS2='> '
23952PS4='+ '
23953
23954# NLS nuisances.
23955for as_var in \
23956 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23957 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23958 LC_TELEPHONE LC_TIME
23959do
Reid Spencer17041682004-09-05 17:48:32 +000023960 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
John Criswell0c38eaf2003-09-10 15:17:25 +000023961 eval $as_var=C; export $as_var
23962 else
23963 $as_unset $as_var
23964 fi
23965done
23966
23967# Required to use basename.
23968if expr a : '\(a\)' >/dev/null 2>&1; then
23969 as_expr=expr
23970else
23971 as_expr=false
23972fi
23973
23974if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23975 as_basename=basename
23976else
23977 as_basename=false
23978fi
John Criswell7a73b802003-06-30 21:59:07 +000023979
23980
23981# Name of the executable.
John Criswell0c38eaf2003-09-10 15:17:25 +000023982as_me=`$as_basename "$0" ||
John Criswell7a73b802003-06-30 21:59:07 +000023983$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23984 X"$0" : 'X\(//\)$' \| \
23985 X"$0" : 'X\(/\)$' \| \
23986 . : '\(.\)' 2>/dev/null ||
23987echo X/"$0" |
23988 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23989 /^X\/\(\/\/\)$/{ s//\1/; q; }
23990 /^X\/\(\/\).*/{ s//\1/; q; }
23991 s/.*/./; q'`
23992
John Criswell0c38eaf2003-09-10 15:17:25 +000023993
John Criswell7a73b802003-06-30 21:59:07 +000023994# PATH needs CR, and LINENO needs CR and PATH.
23995# Avoid depending upon Character Ranges.
23996as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23997as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23998as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23999as_cr_digits='0123456789'
24000as_cr_alnum=$as_cr_Letters$as_cr_digits
24001
24002# The user is always right.
24003if test "${PATH_SEPARATOR+set}" != set; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024004 echo "#! /bin/sh" >conf$$.sh
24005 echo "exit 0" >>conf$$.sh
24006 chmod +x conf$$.sh
24007 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024008 PATH_SEPARATOR=';'
24009 else
24010 PATH_SEPARATOR=:
24011 fi
John Criswell0c38eaf2003-09-10 15:17:25 +000024012 rm -f conf$$.sh
John Criswell7a73b802003-06-30 21:59:07 +000024013fi
24014
24015
24016 as_lineno_1=$LINENO
24017 as_lineno_2=$LINENO
24018 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24019 test "x$as_lineno_1" != "x$as_lineno_2" &&
24020 test "x$as_lineno_3" = "x$as_lineno_2" || {
24021 # Find who we are. Look in the path if we contain no path at all
24022 # relative or not.
24023 case $0 in
24024 *[\\/]* ) as_myself=$0 ;;
24025 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24026for as_dir in $PATH
24027do
24028 IFS=$as_save_IFS
24029 test -z "$as_dir" && as_dir=.
24030 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24031done
24032
24033 ;;
24034 esac
24035 # We did not find ourselves, most probably we were run as `sh COMMAND'
24036 # in which case we are not to be found in the path.
24037 if test "x$as_myself" = x; then
24038 as_myself=$0
24039 fi
24040 if test ! -f "$as_myself"; then
24041 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24042echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24043 { (exit 1); exit 1; }; }
24044 fi
24045 case $CONFIG_SHELL in
24046 '')
24047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24048for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24049do
24050 IFS=$as_save_IFS
24051 test -z "$as_dir" && as_dir=.
24052 for as_base in sh bash ksh sh5; do
24053 case $as_dir in
24054 /*)
24055 if ("$as_dir/$as_base" -c '
24056 as_lineno_1=$LINENO
24057 as_lineno_2=$LINENO
24058 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24059 test "x$as_lineno_1" != "x$as_lineno_2" &&
24060 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024061 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24062 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
John Criswell7a73b802003-06-30 21:59:07 +000024063 CONFIG_SHELL=$as_dir/$as_base
24064 export CONFIG_SHELL
24065 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24066 fi;;
24067 esac
24068 done
24069done
24070;;
24071 esac
24072
24073 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24074 # uniformly replaced by the line number. The first 'sed' inserts a
24075 # line-number line before each line; the second 'sed' does the real
24076 # work. The second script uses 'N' to pair each line-number line
24077 # with the numbered line, and appends trailing '-' during
24078 # substitution so that $LINENO is not a special case at line end.
24079 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24080 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24081 sed '=' <$as_myself |
24082 sed '
24083 N
24084 s,$,-,
24085 : loop
24086 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24087 t loop
24088 s,-$,,
24089 s,^['$as_cr_digits']*\n,,
24090 ' >$as_me.lineno &&
24091 chmod +x $as_me.lineno ||
24092 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24093echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24094 { (exit 1); exit 1; }; }
24095
24096 # Don't try to exec as it changes $[0], causing all sort of problems
24097 # (the dirname of $[0] is not the place where we might find the
24098 # original and so on. Autoconf is especially sensible to this).
24099 . ./$as_me.lineno
24100 # Exit status is that of the last command.
24101 exit
24102}
24103
24104
24105case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24106 *c*,-n*) ECHO_N= ECHO_C='
24107' ECHO_T=' ' ;;
24108 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24109 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24110esac
24111
24112if expr a : '\(a\)' >/dev/null 2>&1; then
24113 as_expr=expr
24114else
24115 as_expr=false
24116fi
24117
24118rm -f conf$$ conf$$.exe conf$$.file
24119echo >conf$$.file
24120if ln -s conf$$.file conf$$ 2>/dev/null; then
24121 # We could just check for DJGPP; but this test a) works b) is more generic
24122 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24123 if test -f conf$$.exe; then
24124 # Don't use ln at all; we don't have any links
24125 as_ln_s='cp -p'
24126 else
24127 as_ln_s='ln -s'
24128 fi
24129elif ln conf$$.file conf$$ 2>/dev/null; then
24130 as_ln_s=ln
24131else
24132 as_ln_s='cp -p'
24133fi
24134rm -f conf$$ conf$$.exe conf$$.file
24135
John Criswell0c38eaf2003-09-10 15:17:25 +000024136if mkdir -p . 2>/dev/null; then
24137 as_mkdir_p=:
24138else
Reid Spencer17041682004-09-05 17:48:32 +000024139 test -d ./-p && rmdir ./-p
John Criswell0c38eaf2003-09-10 15:17:25 +000024140 as_mkdir_p=false
24141fi
24142
John Criswell7a73b802003-06-30 21:59:07 +000024143as_executable_p="test -f"
24144
24145# Sed expression to map a string onto a valid CPP name.
Reid Spencer17041682004-09-05 17:48:32 +000024146as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024147
24148# Sed expression to map a string onto a valid variable name.
Reid Spencer17041682004-09-05 17:48:32 +000024149as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
John Criswell7a73b802003-06-30 21:59:07 +000024150
24151
24152# IFS
24153# We need space, tab and new line, in precisely that order.
24154as_nl='
24155'
24156IFS=" $as_nl"
24157
24158# CDPATH.
John Criswell0c38eaf2003-09-10 15:17:25 +000024159$as_unset CDPATH
John Criswell7a73b802003-06-30 21:59:07 +000024160
24161exec 6>&1
24162
24163# Open the log real soon, to keep \$[0] and so on meaningful, and to
24164# report actual input values of CONFIG_FILES etc. instead of their
24165# values after options handling. Logging --version etc. is OK.
24166exec 5>>config.log
24167{
24168 echo
24169 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24170## Running $as_me. ##
24171_ASBOX
24172} >&5
24173cat >&5 <<_CSEOF
24174
Reid Spencere9de0912004-08-20 09:03:57 +000024175This file was extended by LLVM $as_me 1.4, which was
Reid Spencer17041682004-09-05 17:48:32 +000024176generated by GNU Autoconf 2.59. Invocation command line was
John Criswell7a73b802003-06-30 21:59:07 +000024177
24178 CONFIG_FILES = $CONFIG_FILES
24179 CONFIG_HEADERS = $CONFIG_HEADERS
24180 CONFIG_LINKS = $CONFIG_LINKS
24181 CONFIG_COMMANDS = $CONFIG_COMMANDS
24182 $ $0 $@
24183
24184_CSEOF
24185echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24186echo >&5
24187_ACEOF
24188
24189# Files that config.status was made for.
24190if test -n "$ac_config_files"; then
24191 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24192fi
24193
24194if test -n "$ac_config_headers"; then
24195 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24196fi
24197
24198if test -n "$ac_config_links"; then
24199 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24200fi
24201
24202if test -n "$ac_config_commands"; then
24203 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24204fi
24205
24206cat >>$CONFIG_STATUS <<\_ACEOF
24207
24208ac_cs_usage="\
24209\`$as_me' instantiates files from templates according to the
24210current configuration.
24211
24212Usage: $0 [OPTIONS] [FILE]...
24213
24214 -h, --help print this help, then exit
24215 -V, --version print version number, then exit
John Criswell0c38eaf2003-09-10 15:17:25 +000024216 -q, --quiet do not print progress messages
John Criswell7a73b802003-06-30 21:59:07 +000024217 -d, --debug don't remove temporary files
24218 --recheck update $as_me by reconfiguring in the same conditions
24219 --file=FILE[:TEMPLATE]
Reid Spencer17041682004-09-05 17:48:32 +000024220 instantiate the configuration file FILE
John Criswell7a73b802003-06-30 21:59:07 +000024221 --header=FILE[:TEMPLATE]
Reid Spencer17041682004-09-05 17:48:32 +000024222 instantiate the configuration header FILE
John Criswell7a73b802003-06-30 21:59:07 +000024223
24224Configuration files:
24225$config_files
24226
24227Configuration headers:
24228$config_headers
24229
Reid Spencerde8c47f2004-08-29 19:35:28 +000024230Configuration links:
24231$config_links
24232
John Criswellc764fbc2003-09-06 15:17:13 +000024233Configuration commands:
24234$config_commands
24235
John Criswell7a73b802003-06-30 21:59:07 +000024236Report bugs to <bug-autoconf@gnu.org>."
24237_ACEOF
24238
24239cat >>$CONFIG_STATUS <<_ACEOF
24240ac_cs_version="\\
Reid Spencere9de0912004-08-20 09:03:57 +000024241LLVM config.status 1.4
Reid Spencer17041682004-09-05 17:48:32 +000024242configured by $0, generated by GNU Autoconf 2.59,
John Criswell7a73b802003-06-30 21:59:07 +000024243 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24244
Reid Spencer17041682004-09-05 17:48:32 +000024245Copyright (C) 2003 Free Software Foundation, Inc.
John Criswell7a73b802003-06-30 21:59:07 +000024246This config.status script is free software; the Free Software Foundation
24247gives unlimited permission to copy, distribute and modify it."
24248srcdir=$srcdir
24249INSTALL="$INSTALL"
24250_ACEOF
24251
24252cat >>$CONFIG_STATUS <<\_ACEOF
24253# If no file are specified by the user, then we need to provide default
24254# value. By we need to know if files were specified by the user.
24255ac_need_defaults=:
24256while test $# != 0
24257do
24258 case $1 in
24259 --*=*)
24260 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24261 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024262 ac_shift=:
John Criswell7a73b802003-06-30 21:59:07 +000024263 ;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024264 -*)
24265 ac_option=$1
24266 ac_optarg=$2
24267 ac_shift=shift
24268 ;;
John Criswell7a73b802003-06-30 21:59:07 +000024269 *) # This is not an option, so the user has probably given explicit
24270 # arguments.
John Criswell0c38eaf2003-09-10 15:17:25 +000024271 ac_option=$1
John Criswell7a73b802003-06-30 21:59:07 +000024272 ac_need_defaults=false;;
24273 esac
24274
John Criswell0c38eaf2003-09-10 15:17:25 +000024275 case $ac_option in
John Criswell7a73b802003-06-30 21:59:07 +000024276 # Handling of the options.
24277_ACEOF
John Criswelld9cd1442003-09-09 20:52:17 +000024278cat >>$CONFIG_STATUS <<\_ACEOF
John Criswell0c38eaf2003-09-10 15:17:25 +000024279 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24280 ac_cs_recheck=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024281 --version | --vers* | -V )
24282 echo "$ac_cs_version"; exit 0 ;;
24283 --he | --h)
24284 # Conflict between --help and --header
24285 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24286Try \`$0 --help' for more information." >&5
24287echo "$as_me: error: ambiguous option: $1
24288Try \`$0 --help' for more information." >&2;}
24289 { (exit 1); exit 1; }; };;
24290 --help | --hel | -h )
24291 echo "$ac_cs_usage"; exit 0 ;;
24292 --debug | --d* | -d )
24293 debug=: ;;
24294 --file | --fil | --fi | --f )
John Criswell0c38eaf2003-09-10 15:17:25 +000024295 $ac_shift
24296 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024297 ac_need_defaults=false;;
24298 --header | --heade | --head | --hea )
John Criswell0c38eaf2003-09-10 15:17:25 +000024299 $ac_shift
24300 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
John Criswell7a73b802003-06-30 21:59:07 +000024301 ac_need_defaults=false;;
John Criswell0c38eaf2003-09-10 15:17:25 +000024302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24303 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24304 ac_cs_silent=: ;;
John Criswell7a73b802003-06-30 21:59:07 +000024305
24306 # This is an error.
24307 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24308Try \`$0 --help' for more information." >&5
24309echo "$as_me: error: unrecognized option: $1
24310Try \`$0 --help' for more information." >&2;}
24311 { (exit 1); exit 1; }; } ;;
24312
24313 *) ac_config_targets="$ac_config_targets $1" ;;
24314
24315 esac
24316 shift
24317done
24318
John Criswell0c38eaf2003-09-10 15:17:25 +000024319ac_configure_extra_args=
24320
24321if $ac_cs_silent; then
24322 exec 6>/dev/null
24323 ac_configure_extra_args="$ac_configure_extra_args --silent"
24324fi
24325
24326_ACEOF
24327cat >>$CONFIG_STATUS <<_ACEOF
24328if \$ac_cs_recheck; then
24329 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24330 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24331fi
24332
John Criswell7a73b802003-06-30 21:59:07 +000024333_ACEOF
24334
John Criswellc764fbc2003-09-06 15:17:13 +000024335cat >>$CONFIG_STATUS <<_ACEOF
24336#
24337# INIT-COMMANDS section.
24338#
John Criswell7a73b802003-06-30 21:59:07 +000024339
John Criswellc764fbc2003-09-06 15:17:13 +000024340${srcdir}/autoconf/mkinstalldirs `dirname Makefile`
24341${srcdir}/autoconf/mkinstalldirs `dirname Makefile.common`
Reid Spencer5f285392004-08-24 16:32:21 +000024342${srcdir}/autoconf/mkinstalldirs `dirname examples/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024343${srcdir}/autoconf/mkinstalldirs `dirname lib/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024344${srcdir}/autoconf/mkinstalldirs `dirname runtime/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024345${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile`
24346${srcdir}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
John Criswellf424d742003-10-07 21:13:47 +000024347${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvm.py`
24348${srcdir}/autoconf/mkinstalldirs `dirname test/QMTest/llvmdb.py`
John Criswellc764fbc2003-09-06 15:17:13 +000024349${srcdir}/autoconf/mkinstalldirs `dirname tools/Makefile`
Brian Gaekec45be042003-10-07 06:01:34 +000024350${srcdir}/autoconf/mkinstalldirs `dirname utils/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024351${srcdir}/autoconf/mkinstalldirs `dirname projects/Makefile`
John Criswellc764fbc2003-09-06 15:17:13 +000024352
24353_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000024354
24355
24356
24357cat >>$CONFIG_STATUS <<\_ACEOF
24358for ac_config_target in $ac_config_targets
24359do
24360 case "$ac_config_target" in
24361 # Handling of arguments.
24362 "Makefile.config" ) CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000024363 "include/llvm/Support/DataTypes.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/DataTypes.h" ;;
24364 "include/llvm/Support/ThreadSupport.h" ) CONFIG_FILES="$CONFIG_FILES include/llvm/Support/ThreadSupport.h" ;;
24365 "include/llvm/ADT/hash_map" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_map" ;;
24366 "include/llvm/ADT/hash_set" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/hash_set" ;;
24367 "include/llvm/ADT/iterator" ) CONFIG_FILES="$CONFIG_FILES include/llvm/ADT/iterator" ;;
Reid Spencerde8c47f2004-08-29 19:35:28 +000024368 "lib/System/platform" ) CONFIG_LINKS="$CONFIG_LINKS lib/System/platform:lib/System/$platform_type" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024369 "Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
24370 "Makefile.common" ) CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
Reid Spencer5f285392004-08-24 16:32:21 +000024371 "examples/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024372 "lib/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024373 "runtime/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024374 "test/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
24375 "test/Makefile.tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
John Criswellf424d742003-10-07 21:13:47 +000024376 "test/QMTest/llvm.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvm.py" ;;
24377 "test/QMTest/llvmdb.py" ) CONFIG_COMMANDS="$CONFIG_COMMANDS test/QMTest/llvmdb.py" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024378 "tools/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
Brian Gaekec45be042003-10-07 06:01:34 +000024379 "utils/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
John Criswellc764fbc2003-09-06 15:17:13 +000024380 "projects/Makefile" ) CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
Reid Spencer551ccae2004-09-01 22:55:40 +000024381 "include/llvm/Config/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
John Criswell7a73b802003-06-30 21:59:07 +000024382 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24383echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24384 { (exit 1); exit 1; }; };;
24385 esac
24386done
24387
24388# If the user did not use the arguments to specify the items to instantiate,
24389# then the envvar interface is used. Set only those that are not.
24390# We use the long form for the default assignment because of an extremely
24391# bizarre bug on SunOS 4.1.3.
24392if $ac_need_defaults; then
24393 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24394 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Reid Spencerde8c47f2004-08-29 19:35:28 +000024395 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
John Criswellc764fbc2003-09-06 15:17:13 +000024396 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
John Criswell7a73b802003-06-30 21:59:07 +000024397fi
24398
John Criswell0c38eaf2003-09-10 15:17:25 +000024399# Have a temporary directory for convenience. Make it in the build tree
24400# simply because there is no reason to put it here, and in addition,
24401# creating and moving files from /tmp can sometimes cause problems.
John Criswell7a73b802003-06-30 21:59:07 +000024402# Create a temporary directory, and hook for its removal unless debugging.
24403$debug ||
24404{
24405 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24406 trap '{ (exit 1); exit 1; }' 1 2 13 15
24407}
24408
24409# Create a (secure) tmp directory for tmp files.
John Criswell0c38eaf2003-09-10 15:17:25 +000024410
John Criswell7a73b802003-06-30 21:59:07 +000024411{
John Criswell0c38eaf2003-09-10 15:17:25 +000024412 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
John Criswell7a73b802003-06-30 21:59:07 +000024413 test -n "$tmp" && test -d "$tmp"
24414} ||
24415{
John Criswell0c38eaf2003-09-10 15:17:25 +000024416 tmp=./confstat$$-$RANDOM
John Criswell7a73b802003-06-30 21:59:07 +000024417 (umask 077 && mkdir $tmp)
24418} ||
24419{
John Criswell0c38eaf2003-09-10 15:17:25 +000024420 echo "$me: cannot create a temporary directory in ." >&2
John Criswell7a73b802003-06-30 21:59:07 +000024421 { (exit 1); exit 1; }
24422}
24423
24424_ACEOF
24425
24426cat >>$CONFIG_STATUS <<_ACEOF
24427
24428#
24429# CONFIG_FILES section.
24430#
24431
24432# No need to generate the scripts if there are no CONFIG_FILES.
24433# This happens for instance when ./config.status config.h
24434if test -n "\$CONFIG_FILES"; then
24435 # Protect against being on the right side of a sed subst in config.status.
24436 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24437 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24438s,@SHELL@,$SHELL,;t t
24439s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24440s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24441s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24442s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24443s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24444s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24445s,@exec_prefix@,$exec_prefix,;t t
24446s,@prefix@,$prefix,;t t
24447s,@program_transform_name@,$program_transform_name,;t t
24448s,@bindir@,$bindir,;t t
24449s,@sbindir@,$sbindir,;t t
24450s,@libexecdir@,$libexecdir,;t t
24451s,@datadir@,$datadir,;t t
24452s,@sysconfdir@,$sysconfdir,;t t
24453s,@sharedstatedir@,$sharedstatedir,;t t
24454s,@localstatedir@,$localstatedir,;t t
24455s,@libdir@,$libdir,;t t
24456s,@includedir@,$includedir,;t t
24457s,@oldincludedir@,$oldincludedir,;t t
24458s,@infodir@,$infodir,;t t
24459s,@mandir@,$mandir,;t t
24460s,@build_alias@,$build_alias,;t t
24461s,@host_alias@,$host_alias,;t t
24462s,@target_alias@,$target_alias,;t t
24463s,@DEFS@,$DEFS,;t t
24464s,@ECHO_C@,$ECHO_C,;t t
24465s,@ECHO_N@,$ECHO_N,;t t
24466s,@ECHO_T@,$ECHO_T,;t t
24467s,@LIBS@,$LIBS,;t t
John Criswell12399a12003-09-30 15:55:44 +000024468s,@subdirs@,$subdirs,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024469s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24470s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24471s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24472s,@build@,$build,;t t
24473s,@build_cpu@,$build_cpu,;t t
24474s,@build_vendor@,$build_vendor,;t t
24475s,@build_os@,$build_os,;t t
24476s,@host@,$host,;t t
24477s,@host_cpu@,$host_cpu,;t t
24478s,@host_vendor@,$host_vendor,;t t
24479s,@host_os@,$host_os,;t t
24480s,@target@,$target,;t t
24481s,@target_cpu@,$target_cpu,;t t
24482s,@target_vendor@,$target_vendor,;t t
24483s,@target_os@,$target_os,;t t
24484s,@OS@,$OS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024485s,@LLVMGCCDIR@,$LLVMGCCDIR,;t t
John Criswell76595452003-07-01 22:07:39 +000024486s,@ARCH@,$ARCH,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024487s,@CXX@,$CXX,;t t
24488s,@CXXFLAGS@,$CXXFLAGS,;t t
24489s,@LDFLAGS@,$LDFLAGS,;t t
24490s,@CPPFLAGS@,$CPPFLAGS,;t t
24491s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24492s,@EXEEXT@,$EXEEXT,;t t
24493s,@OBJEXT@,$OBJEXT,;t t
24494s,@CC@,$CC,;t t
24495s,@CFLAGS@,$CFLAGS,;t t
24496s,@ac_ct_CC@,$ac_ct_CC,;t t
24497s,@CPP@,$CPP,;t t
24498s,@ifGNUmake@,$ifGNUmake,;t t
24499s,@LEX@,$LEX,;t t
24500s,@LEXLIB@,$LEXLIB,;t t
24501s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
24502s,@YACC@,$YACC,;t t
Brian Gaeke12810632004-01-13 06:52:10 +000024503s,@BISON@,$BISON,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024504s,@EGREP@,$EGREP,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024505s,@LN_S@,$LN_S,;t t
24506s,@ECHO@,$ECHO,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024507s,@AR@,$AR,;t t
24508s,@ac_ct_AR@,$ac_ct_AR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024509s,@RANLIB@,$RANLIB,;t t
24510s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24511s,@STRIP@,$STRIP,;t t
24512s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
John Criswell47fdd832003-07-14 16:52:07 +000024513s,@CXXCPP@,$CXXCPP,;t t
24514s,@F77@,$F77,;t t
24515s,@FFLAGS@,$FFLAGS,;t t
24516s,@ac_ct_F77@,$ac_ct_F77,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024517s,@LIBTOOL@,$LIBTOOL,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024518s,@DOT@,$DOT,;t t
24519s,@ETAGS@,$ETAGS,;t t
Brian Gaekeafa3fbf2004-01-22 21:55:02 +000024520s,@ETAGSFLAGS@,$ETAGSFLAGS,;t t
John Criswellde00db22003-08-25 16:49:54 +000024521s,@PYTHON@,$PYTHON,;t t
24522s,@QMTEST@,$QMTEST,;t t
Brian Gaekec9a410c2004-02-23 21:30:37 +000024523s,@HAVE_PTHREAD_MUTEX_LOCK@,$HAVE_PTHREAD_MUTEX_LOCK,;t t
Brian Gaeke6c3fd812004-02-23 22:07:00 +000024524s,@INCLUDE_SYS_TYPES_H@,$INCLUDE_SYS_TYPES_H,;t t
24525s,@INCLUDE_INTTYPES_H@,$INCLUDE_INTTYPES_H,;t t
John Criswell7ed43ad2004-07-19 16:12:29 +000024526s,@INCLUDE_STDINT_H@,$INCLUDE_STDINT_H,;t t
John Criswell0021c312004-02-13 21:57:29 +000024527s,@ENDIAN@,$ENDIAN,;t t
Brian Gaeke793c5f22004-02-23 18:56:02 +000024528s,@HAVE_STD_EXT_HASH_MAP@,$HAVE_STD_EXT_HASH_MAP,;t t
24529s,@HAVE_GNU_EXT_HASH_MAP@,$HAVE_GNU_EXT_HASH_MAP,;t t
24530s,@HAVE_GLOBAL_HASH_MAP@,$HAVE_GLOBAL_HASH_MAP,;t t
24531s,@HAVE_STD_EXT_HASH_SET@,$HAVE_STD_EXT_HASH_SET,;t t
24532s,@HAVE_GNU_EXT_HASH_SET@,$HAVE_GNU_EXT_HASH_SET,;t t
24533s,@HAVE_GLOBAL_HASH_SET@,$HAVE_GLOBAL_HASH_SET,;t t
Brian Gaeke295d4b82004-02-23 18:16:06 +000024534s,@HAVE_STD_ITERATOR@,$HAVE_STD_ITERATOR,;t t
24535s,@HAVE_BI_ITERATOR@,$HAVE_BI_ITERATOR,;t t
24536s,@HAVE_FWD_ITERATOR@,$HAVE_FWD_ITERATOR,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024537s,@ALLOCA@,$ALLOCA,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024538s,@MMAP_FILE@,$MMAP_FILE,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024539s,@ENABLE_OPTIMIZED@,$ENABLE_OPTIMIZED,;t t
John Criswellcf2e9f72004-02-10 22:36:35 +000024540s,@SPEC95_ROOT@,$SPEC95_ROOT,;t t
24541s,@USE_SPEC95@,$USE_SPEC95,;t t
Brian Gaekee773b862004-04-16 17:13:44 +000024542s,@SPEC2000_ROOT@,$SPEC2000_ROOT,;t t
24543s,@USE_SPEC2000@,$USE_SPEC2000,;t t
John Criswell0538d422004-02-20 22:30:22 +000024544s,@POVRAY_ROOT@,$POVRAY_ROOT,;t t
24545s,@USE_POVRAY@,$USE_POVRAY,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024546s,@UPB@,$UPB,;t t
John Criswellf02dbf02003-07-22 20:07:49 +000024547s,@DISABLE_LLC_DIFFS@,$DISABLE_LLC_DIFFS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024548s,@JIT@,$JIT,;t t
Brian Gaeke2f50a042004-01-16 21:31:21 +000024549s,@LLVMCC1@,$LLVMCC1,;t t
24550s,@LLVMCC1PLUS@,$LLVMCC1PLUS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024551s,@BCR@,$BCR,;t t
24552s,@PAPIDIR@,$PAPIDIR,;t t
Brian Gaeke554831c2004-01-21 19:39:29 +000024553s,@SHLIBEXT@,$SHLIBEXT,;t t
Reid Spencere9de0912004-08-20 09:03:57 +000024554s,@LLVM_PREFIX@,$LLVM_PREFIX,;t t
24555s,@LLVM_BINDIR@,$LLVM_BINDIR,;t t
24556s,@LLVM_LIBDIR@,$LLVM_LIBDIR,;t t
24557s,@LLVM_DATADIR@,$LLVM_DATADIR,;t t
24558s,@LLVM_DOCSDIR@,$LLVM_DOCSDIR,;t t
24559s,@LLVM_ETCDIR@,$LLVM_ETCDIR,;t t
24560s,@LLVM_INCLUDEDIR@,$LLVM_INCLUDEDIR,;t t
24561s,@LLVM_INFODIR@,$LLVM_INFODIR,;t t
24562s,@LLVM_MANDIR@,$LLVM_MANDIR,;t t
24563s,@LLVM_CONFIGTIME@,$LLVM_CONFIGTIME,;t t
Brian Gaeke26be9c52004-01-13 06:43:16 +000024564s,@LIBOBJS@,$LIBOBJS,;t t
John Criswell0c38eaf2003-09-10 15:17:25 +000024565s,@LTLIBOBJS@,$LTLIBOBJS,;t t
John Criswell7a73b802003-06-30 21:59:07 +000024566CEOF
24567
24568_ACEOF
24569
24570 cat >>$CONFIG_STATUS <<\_ACEOF
24571 # Split the substitutions into bite-sized pieces for seds with
24572 # small command number limits, like on Digital OSF/1 and HP-UX.
24573 ac_max_sed_lines=48
24574 ac_sed_frag=1 # Number of current file.
24575 ac_beg=1 # First line for current file.
24576 ac_end=$ac_max_sed_lines # Line after last line for current file.
24577 ac_more_lines=:
24578 ac_sed_cmds=
24579 while $ac_more_lines; do
24580 if test $ac_beg -gt 1; then
24581 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24582 else
24583 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24584 fi
24585 if test ! -s $tmp/subs.frag; then
24586 ac_more_lines=false
24587 else
24588 # The purpose of the label and of the branching condition is to
24589 # speed up the sed processing (if there are no `@' at all, there
24590 # is no need to browse any of the substitutions).
24591 # These are the two extra sed commands mentioned above.
24592 (echo ':t
24593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24594 if test -z "$ac_sed_cmds"; then
Reid Spencer17041682004-09-05 17:48:32 +000024595 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024596 else
Reid Spencer17041682004-09-05 17:48:32 +000024597 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
John Criswell7a73b802003-06-30 21:59:07 +000024598 fi
24599 ac_sed_frag=`expr $ac_sed_frag + 1`
24600 ac_beg=$ac_end
24601 ac_end=`expr $ac_end + $ac_max_sed_lines`
24602 fi
24603 done
24604 if test -z "$ac_sed_cmds"; then
24605 ac_sed_cmds=cat
24606 fi
24607fi # test -n "$CONFIG_FILES"
24608
24609_ACEOF
24610cat >>$CONFIG_STATUS <<\_ACEOF
24611for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24612 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24613 case $ac_file in
24614 - | *:- | *:-:* ) # input from stdin
Reid Spencer17041682004-09-05 17:48:32 +000024615 cat >$tmp/stdin
24616 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24617 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024618 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer17041682004-09-05 17:48:32 +000024619 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024620 * ) ac_file_in=$ac_file.in ;;
24621 esac
24622
24623 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24624 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24625$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024626 X"$ac_file" : 'X\(//\)[^/]' \| \
24627 X"$ac_file" : 'X\(//\)$' \| \
24628 X"$ac_file" : 'X\(/\)' \| \
24629 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000024630echo X"$ac_file" |
24631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24633 /^X\(\/\/\)$/{ s//\1/; q; }
24634 /^X\(\/\).*/{ s//\1/; q; }
24635 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024636 { if $as_mkdir_p; then
24637 mkdir -p "$ac_dir"
24638 else
24639 as_dir="$ac_dir"
24640 as_dirs=
24641 while test ! -d "$as_dir"; do
24642 as_dirs="$as_dir $as_dirs"
24643 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24644$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024645 X"$as_dir" : 'X\(//\)[^/]' \| \
24646 X"$as_dir" : 'X\(//\)$' \| \
24647 X"$as_dir" : 'X\(/\)' \| \
24648 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000024649echo X"$as_dir" |
24650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24651 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24652 /^X\(\/\/\)$/{ s//\1/; q; }
24653 /^X\(\/\).*/{ s//\1/; q; }
24654 s/.*/./; q'`
24655 done
24656 test ! -n "$as_dirs" || mkdir $as_dirs
24657 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24658echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24659 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000024660
24661 ac_builddir=.
24662
24663if test "$ac_dir" != .; then
24664 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24665 # A "../" for each directory in $ac_dir_suffix.
24666 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24667else
24668 ac_dir_suffix= ac_top_builddir=
24669fi
24670
24671case $srcdir in
24672 .) # No --srcdir option. We are building in place.
24673 ac_srcdir=.
24674 if test -z "$ac_top_builddir"; then
24675 ac_top_srcdir=.
24676 else
24677 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24678 fi ;;
24679 [\\/]* | ?:[\\/]* ) # Absolute path.
24680 ac_srcdir=$srcdir$ac_dir_suffix;
24681 ac_top_srcdir=$srcdir ;;
24682 *) # Relative path.
24683 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24684 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24685esac
Reid Spencer17041682004-09-05 17:48:32 +000024686
24687# Do not use `cd foo && pwd` to compute absolute paths, because
24688# the directories may not exist.
24689case `pwd` in
24690.) ac_abs_builddir="$ac_dir";;
24691*)
24692 case "$ac_dir" in
24693 .) ac_abs_builddir=`pwd`;;
24694 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24695 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24696 esac;;
24697esac
24698case $ac_abs_builddir in
24699.) ac_abs_top_builddir=${ac_top_builddir}.;;
24700*)
24701 case ${ac_top_builddir}. in
24702 .) ac_abs_top_builddir=$ac_abs_builddir;;
24703 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24704 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24705 esac;;
24706esac
24707case $ac_abs_builddir in
24708.) ac_abs_srcdir=$ac_srcdir;;
24709*)
24710 case $ac_srcdir in
24711 .) ac_abs_srcdir=$ac_abs_builddir;;
24712 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24713 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24714 esac;;
24715esac
24716case $ac_abs_builddir in
24717.) ac_abs_top_srcdir=$ac_top_srcdir;;
24718*)
24719 case $ac_top_srcdir in
24720 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24721 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24722 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24723 esac;;
24724esac
John Criswell7a73b802003-06-30 21:59:07 +000024725
24726
24727 case $INSTALL in
24728 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24729 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24730 esac
24731
24732 if test x"$ac_file" != x-; then
24733 { echo "$as_me:$LINENO: creating $ac_file" >&5
24734echo "$as_me: creating $ac_file" >&6;}
24735 rm -f "$ac_file"
24736 fi
24737 # Let's still pretend it is `configure' which instantiates (i.e., don't
24738 # use $as_me), people would be surprised to read:
24739 # /* config.h. Generated by config.status. */
24740 if test x"$ac_file" = x-; then
24741 configure_input=
24742 else
24743 configure_input="$ac_file. "
24744 fi
24745 configure_input=$configure_input"Generated from `echo $ac_file_in |
Reid Spencer17041682004-09-05 17:48:32 +000024746 sed 's,.*/,,'` by configure."
John Criswell7a73b802003-06-30 21:59:07 +000024747
24748 # First look for the input files in the build tree, otherwise in the
24749 # src tree.
24750 ac_file_inputs=`IFS=:
24751 for f in $ac_file_in; do
24752 case $f in
24753 -) echo $tmp/stdin ;;
24754 [\\/$]*)
Reid Spencer17041682004-09-05 17:48:32 +000024755 # Absolute (can't be DOS-style, as IFS=:)
24756 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024757echo "$as_me: error: cannot find input file: $f" >&2;}
24758 { (exit 1); exit 1; }; }
Reid Spencer17041682004-09-05 17:48:32 +000024759 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024760 *) # Relative
Reid Spencer17041682004-09-05 17:48:32 +000024761 if test -f "$f"; then
24762 # Build tree
24763 echo "$f"
24764 elif test -f "$srcdir/$f"; then
24765 # Source tree
24766 echo "$srcdir/$f"
24767 else
24768 # /dev/null tree
24769 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024770echo "$as_me: error: cannot find input file: $f" >&2;}
24771 { (exit 1); exit 1; }; }
Reid Spencer17041682004-09-05 17:48:32 +000024772 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024773 esac
24774 done` || { (exit 1); exit 1; }
24775_ACEOF
24776cat >>$CONFIG_STATUS <<_ACEOF
24777 sed "$ac_vpsub
24778$extrasub
24779_ACEOF
24780cat >>$CONFIG_STATUS <<\_ACEOF
24781:t
24782/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24783s,@configure_input@,$configure_input,;t t
24784s,@srcdir@,$ac_srcdir,;t t
24785s,@abs_srcdir@,$ac_abs_srcdir,;t t
24786s,@top_srcdir@,$ac_top_srcdir,;t t
24787s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24788s,@builddir@,$ac_builddir,;t t
24789s,@abs_builddir@,$ac_abs_builddir,;t t
24790s,@top_builddir@,$ac_top_builddir,;t t
24791s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24792s,@INSTALL@,$ac_INSTALL,;t t
24793" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24794 rm -f $tmp/stdin
24795 if test x"$ac_file" != x-; then
24796 mv $tmp/out $ac_file
24797 else
24798 cat $tmp/out
24799 rm -f $tmp/out
24800 fi
24801
24802done
24803_ACEOF
24804cat >>$CONFIG_STATUS <<\_ACEOF
24805
24806#
24807# CONFIG_HEADER section.
24808#
24809
24810# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24811# NAME is the cpp macro being defined and VALUE is the value it is being given.
24812#
24813# ac_d sets the value in "#define NAME VALUE" lines.
Reid Spencer17041682004-09-05 17:48:32 +000024814ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24815ac_dB='[ ].*$,\1#\2'
John Criswell7a73b802003-06-30 21:59:07 +000024816ac_dC=' '
24817ac_dD=',;t'
24818# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Reid Spencer17041682004-09-05 17:48:32 +000024819ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
John Criswell7a73b802003-06-30 21:59:07 +000024820ac_uB='$,\1#\2define\3'
24821ac_uC=' '
24822ac_uD=',;t'
24823
24824for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24825 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24826 case $ac_file in
24827 - | *:- | *:-:* ) # input from stdin
Reid Spencer17041682004-09-05 17:48:32 +000024828 cat >$tmp/stdin
24829 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24830 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024831 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Reid Spencer17041682004-09-05 17:48:32 +000024832 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
John Criswell7a73b802003-06-30 21:59:07 +000024833 * ) ac_file_in=$ac_file.in ;;
24834 esac
24835
24836 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24837echo "$as_me: creating $ac_file" >&6;}
24838
24839 # First look for the input files in the build tree, otherwise in the
24840 # src tree.
24841 ac_file_inputs=`IFS=:
24842 for f in $ac_file_in; do
24843 case $f in
24844 -) echo $tmp/stdin ;;
24845 [\\/$]*)
Reid Spencer17041682004-09-05 17:48:32 +000024846 # Absolute (can't be DOS-style, as IFS=:)
24847 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024848echo "$as_me: error: cannot find input file: $f" >&2;}
24849 { (exit 1); exit 1; }; }
Reid Spencer17041682004-09-05 17:48:32 +000024850 # Do quote $f, to prevent DOS paths from being IFS'd.
24851 echo "$f";;
John Criswell7a73b802003-06-30 21:59:07 +000024852 *) # Relative
Reid Spencer17041682004-09-05 17:48:32 +000024853 if test -f "$f"; then
24854 # Build tree
24855 echo "$f"
24856 elif test -f "$srcdir/$f"; then
24857 # Source tree
24858 echo "$srcdir/$f"
24859 else
24860 # /dev/null tree
24861 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
John Criswell7a73b802003-06-30 21:59:07 +000024862echo "$as_me: error: cannot find input file: $f" >&2;}
24863 { (exit 1); exit 1; }; }
Reid Spencer17041682004-09-05 17:48:32 +000024864 fi;;
John Criswell7a73b802003-06-30 21:59:07 +000024865 esac
24866 done` || { (exit 1); exit 1; }
24867 # Remove the trailing spaces.
Reid Spencer17041682004-09-05 17:48:32 +000024868 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
John Criswell7a73b802003-06-30 21:59:07 +000024869
24870_ACEOF
24871
24872# Transform confdefs.h into two sed scripts, `conftest.defines' and
24873# `conftest.undefs', that substitutes the proper values into
24874# config.h.in to produce config.h. The first handles `#define'
24875# templates, and the second `#undef' templates.
24876# And first: Protect against being on the right side of a sed subst in
24877# config.status. Protect against being in an unquoted here document
24878# in config.status.
24879rm -f conftest.defines conftest.undefs
24880# Using a here document instead of a string reduces the quoting nightmare.
24881# Putting comments in sed scripts is not portable.
24882#
24883# `end' is used to avoid that the second main sed command (meant for
24884# 0-ary CPP macros) applies to n-ary macro definitions.
24885# See the Autoconf documentation for `clear'.
24886cat >confdef2sed.sed <<\_ACEOF
24887s/[\\&,]/\\&/g
24888s,[\\$`],\\&,g
24889t clear
24890: clear
Reid Spencer17041682004-09-05 17:48:32 +000024891s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024892t end
Reid Spencer17041682004-09-05 17:48:32 +000024893s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
John Criswell7a73b802003-06-30 21:59:07 +000024894: end
24895_ACEOF
24896# If some macros were called several times there might be several times
24897# the same #defines, which is useless. Nevertheless, we may not want to
24898# sort them, since we want the *last* AC-DEFINE to be honored.
24899uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24900sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24901rm -f confdef2sed.sed
24902
24903# This sed command replaces #undef with comments. This is necessary, for
24904# example, in the case of _POSIX_SOURCE, which is predefined and required
24905# on some systems where configure will not decide to define it.
24906cat >>conftest.undefs <<\_ACEOF
Reid Spencer17041682004-09-05 17:48:32 +000024907s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
John Criswell7a73b802003-06-30 21:59:07 +000024908_ACEOF
24909
24910# Break up conftest.defines because some shells have a limit on the size
24911# of here documents, and old seds have small limits too (100 cmds).
24912echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Reid Spencer17041682004-09-05 17:48:32 +000024913echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024914echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24915echo ' :' >>$CONFIG_STATUS
24916rm -f conftest.tail
24917while grep . conftest.defines >/dev/null
24918do
24919 # Write a limited-size here document to $tmp/defines.sed.
24920 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24921 # Speed up: don't consider the non `#define' lines.
Reid Spencer17041682004-09-05 17:48:32 +000024922 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024923 # Work around the forget-to-reset-the-flag bug.
24924 echo 't clr' >>$CONFIG_STATUS
24925 echo ': clr' >>$CONFIG_STATUS
24926 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24927 echo 'CEOF
24928 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24929 rm -f $tmp/in
24930 mv $tmp/out $tmp/in
24931' >>$CONFIG_STATUS
24932 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24933 rm -f conftest.defines
24934 mv conftest.tail conftest.defines
24935done
24936rm -f conftest.defines
John Criswell0c38eaf2003-09-10 15:17:25 +000024937echo ' fi # grep' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024938echo >>$CONFIG_STATUS
24939
24940# Break up conftest.undefs because some shells have a limit on the size
24941# of here documents, and old seds have small limits too (100 cmds).
24942echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24943rm -f conftest.tail
24944while grep . conftest.undefs >/dev/null
24945do
24946 # Write a limited-size here document to $tmp/undefs.sed.
24947 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24948 # Speed up: don't consider the non `#undef'
Reid Spencer17041682004-09-05 17:48:32 +000024949 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
John Criswell7a73b802003-06-30 21:59:07 +000024950 # Work around the forget-to-reset-the-flag bug.
24951 echo 't clr' >>$CONFIG_STATUS
24952 echo ': clr' >>$CONFIG_STATUS
24953 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24954 echo 'CEOF
24955 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24956 rm -f $tmp/in
24957 mv $tmp/out $tmp/in
24958' >>$CONFIG_STATUS
24959 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24960 rm -f conftest.undefs
24961 mv conftest.tail conftest.undefs
24962done
24963rm -f conftest.undefs
24964
24965cat >>$CONFIG_STATUS <<\_ACEOF
24966 # Let's still pretend it is `configure' which instantiates (i.e., don't
24967 # use $as_me), people would be surprised to read:
24968 # /* config.h. Generated by config.status. */
24969 if test x"$ac_file" = x-; then
24970 echo "/* Generated by configure. */" >$tmp/config.h
24971 else
24972 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24973 fi
24974 cat $tmp/in >>$tmp/config.h
24975 rm -f $tmp/in
24976 if test x"$ac_file" != x-; then
John Criswell0c38eaf2003-09-10 15:17:25 +000024977 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
John Criswell7a73b802003-06-30 21:59:07 +000024978 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24979echo "$as_me: $ac_file is unchanged" >&6;}
24980 else
24981 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24982$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000024983 X"$ac_file" : 'X\(//\)[^/]' \| \
24984 X"$ac_file" : 'X\(//\)$' \| \
24985 X"$ac_file" : 'X\(/\)' \| \
24986 . : '\(.\)' 2>/dev/null ||
John Criswell7a73b802003-06-30 21:59:07 +000024987echo X"$ac_file" |
24988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24990 /^X\(\/\/\)$/{ s//\1/; q; }
24991 /^X\(\/\).*/{ s//\1/; q; }
24992 s/.*/./; q'`
John Criswell0c38eaf2003-09-10 15:17:25 +000024993 { if $as_mkdir_p; then
24994 mkdir -p "$ac_dir"
24995 else
24996 as_dir="$ac_dir"
24997 as_dirs=
24998 while test ! -d "$as_dir"; do
24999 as_dirs="$as_dir $as_dirs"
25000 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25001$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000025002 X"$as_dir" : 'X\(//\)[^/]' \| \
25003 X"$as_dir" : 'X\(//\)$' \| \
25004 X"$as_dir" : 'X\(/\)' \| \
25005 . : '\(.\)' 2>/dev/null ||
John Criswell0c38eaf2003-09-10 15:17:25 +000025006echo X"$as_dir" |
25007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25008 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25009 /^X\(\/\/\)$/{ s//\1/; q; }
25010 /^X\(\/\).*/{ s//\1/; q; }
25011 s/.*/./; q'`
25012 done
25013 test ! -n "$as_dirs" || mkdir $as_dirs
25014 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25015echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25016 { (exit 1); exit 1; }; }; }
John Criswell7a73b802003-06-30 21:59:07 +000025017
25018 rm -f $ac_file
25019 mv $tmp/config.h $ac_file
25020 fi
25021 else
25022 cat $tmp/config.h
25023 rm -f $tmp/config.h
25024 fi
25025done
25026_ACEOF
John Criswellc764fbc2003-09-06 15:17:13 +000025027cat >>$CONFIG_STATUS <<\_ACEOF
25028
25029#
Reid Spencerde8c47f2004-08-29 19:35:28 +000025030# CONFIG_LINKS section.
25031#
25032
25033for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
25034 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25035 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25036
25037 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
25038echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
25039
25040 if test ! -r $srcdir/$ac_source; then
25041 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
25042echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
25043 { (exit 1); exit 1; }; }
25044 fi
25045 rm -f $ac_dest
25046
25047 # Make relative symlinks.
25048 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
25049$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000025050 X"$ac_dest" : 'X\(//\)[^/]' \| \
25051 X"$ac_dest" : 'X\(//\)$' \| \
25052 X"$ac_dest" : 'X\(/\)' \| \
25053 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025054echo X"$ac_dest" |
25055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25056 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25057 /^X\(\/\/\)$/{ s//\1/; q; }
25058 /^X\(\/\).*/{ s//\1/; q; }
25059 s/.*/./; q'`
25060 { if $as_mkdir_p; then
25061 mkdir -p "$ac_dest_dir"
25062 else
25063 as_dir="$ac_dest_dir"
25064 as_dirs=
25065 while test ! -d "$as_dir"; do
25066 as_dirs="$as_dir $as_dirs"
25067 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25068$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000025069 X"$as_dir" : 'X\(//\)[^/]' \| \
25070 X"$as_dir" : 'X\(//\)$' \| \
25071 X"$as_dir" : 'X\(/\)' \| \
25072 . : '\(.\)' 2>/dev/null ||
Reid Spencerde8c47f2004-08-29 19:35:28 +000025073echo X"$as_dir" |
25074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25075 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25076 /^X\(\/\/\)$/{ s//\1/; q; }
25077 /^X\(\/\).*/{ s//\1/; q; }
25078 s/.*/./; q'`
25079 done
25080 test ! -n "$as_dirs" || mkdir $as_dirs
25081 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
25082echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
25083 { (exit 1); exit 1; }; }; }
25084
25085 ac_builddir=.
25086
25087if test "$ac_dest_dir" != .; then
25088 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
25089 # A "../" for each directory in $ac_dir_suffix.
25090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25091else
25092 ac_dir_suffix= ac_top_builddir=
25093fi
25094
25095case $srcdir in
25096 .) # No --srcdir option. We are building in place.
25097 ac_srcdir=.
25098 if test -z "$ac_top_builddir"; then
25099 ac_top_srcdir=.
25100 else
25101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25102 fi ;;
25103 [\\/]* | ?:[\\/]* ) # Absolute path.
25104 ac_srcdir=$srcdir$ac_dir_suffix;
25105 ac_top_srcdir=$srcdir ;;
25106 *) # Relative path.
25107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25109esac
Reid Spencer17041682004-09-05 17:48:32 +000025110
25111# Do not use `cd foo && pwd` to compute absolute paths, because
25112# the directories may not exist.
25113case `pwd` in
25114.) ac_abs_builddir="$ac_dest_dir";;
25115*)
25116 case "$ac_dest_dir" in
25117 .) ac_abs_builddir=`pwd`;;
25118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
25119 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
25120 esac;;
25121esac
25122case $ac_abs_builddir in
25123.) ac_abs_top_builddir=${ac_top_builddir}.;;
25124*)
25125 case ${ac_top_builddir}. in
25126 .) ac_abs_top_builddir=$ac_abs_builddir;;
25127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25129 esac;;
25130esac
25131case $ac_abs_builddir in
25132.) ac_abs_srcdir=$ac_srcdir;;
25133*)
25134 case $ac_srcdir in
25135 .) ac_abs_srcdir=$ac_abs_builddir;;
25136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25138 esac;;
25139esac
25140case $ac_abs_builddir in
25141.) ac_abs_top_srcdir=$ac_top_srcdir;;
25142*)
25143 case $ac_top_srcdir in
25144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25147 esac;;
25148esac
Reid Spencerde8c47f2004-08-29 19:35:28 +000025149
25150
25151 case $srcdir in
25152 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
25153 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
25154 esac
25155
25156 # Try a symlink, then a hard link, then a copy.
25157 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
25158 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
25159 cp -p $srcdir/$ac_source $ac_dest ||
25160 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
25161echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
25162 { (exit 1); exit 1; }; }
25163done
25164_ACEOF
25165cat >>$CONFIG_STATUS <<\_ACEOF
25166
25167#
John Criswellc764fbc2003-09-06 15:17:13 +000025168# CONFIG_COMMANDS section.
25169#
25170for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25171 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25172 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25173 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25174$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000025175 X"$ac_dest" : 'X\(//\)[^/]' \| \
25176 X"$ac_dest" : 'X\(//\)$' \| \
25177 X"$ac_dest" : 'X\(/\)' \| \
25178 . : '\(.\)' 2>/dev/null ||
John Criswellc764fbc2003-09-06 15:17:13 +000025179echo X"$ac_dest" |
25180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25182 /^X\(\/\/\)$/{ s//\1/; q; }
25183 /^X\(\/\).*/{ s//\1/; q; }
25184 s/.*/./; q'`
Reid Spencer17041682004-09-05 17:48:32 +000025185 { if $as_mkdir_p; then
25186 mkdir -p "$ac_dir"
25187 else
25188 as_dir="$ac_dir"
25189 as_dirs=
25190 while test ! -d "$as_dir"; do
25191 as_dirs="$as_dir $as_dirs"
25192 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25193$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25194 X"$as_dir" : 'X\(//\)[^/]' \| \
25195 X"$as_dir" : 'X\(//\)$' \| \
25196 X"$as_dir" : 'X\(/\)' \| \
25197 . : '\(.\)' 2>/dev/null ||
25198echo X"$as_dir" |
25199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25201 /^X\(\/\/\)$/{ s//\1/; q; }
25202 /^X\(\/\).*/{ s//\1/; q; }
25203 s/.*/./; q'`
25204 done
25205 test ! -n "$as_dirs" || mkdir $as_dirs
25206 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25207echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25208 { (exit 1); exit 1; }; }; }
25209
John Criswellc764fbc2003-09-06 15:17:13 +000025210 ac_builddir=.
25211
25212if test "$ac_dir" != .; then
25213 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25214 # A "../" for each directory in $ac_dir_suffix.
25215 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25216else
25217 ac_dir_suffix= ac_top_builddir=
25218fi
25219
25220case $srcdir in
25221 .) # No --srcdir option. We are building in place.
25222 ac_srcdir=.
25223 if test -z "$ac_top_builddir"; then
25224 ac_top_srcdir=.
25225 else
25226 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25227 fi ;;
25228 [\\/]* | ?:[\\/]* ) # Absolute path.
25229 ac_srcdir=$srcdir$ac_dir_suffix;
25230 ac_top_srcdir=$srcdir ;;
25231 *) # Relative path.
25232 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25233 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25234esac
Reid Spencer17041682004-09-05 17:48:32 +000025235
25236# Do not use `cd foo && pwd` to compute absolute paths, because
25237# the directories may not exist.
25238case `pwd` in
25239.) ac_abs_builddir="$ac_dir";;
25240*)
25241 case "$ac_dir" in
25242 .) ac_abs_builddir=`pwd`;;
25243 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25244 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25245 esac;;
25246esac
25247case $ac_abs_builddir in
25248.) ac_abs_top_builddir=${ac_top_builddir}.;;
25249*)
25250 case ${ac_top_builddir}. in
25251 .) ac_abs_top_builddir=$ac_abs_builddir;;
25252 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25253 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25254 esac;;
25255esac
25256case $ac_abs_builddir in
25257.) ac_abs_srcdir=$ac_srcdir;;
25258*)
25259 case $ac_srcdir in
25260 .) ac_abs_srcdir=$ac_abs_builddir;;
25261 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25262 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25263 esac;;
25264esac
25265case $ac_abs_builddir in
25266.) ac_abs_top_srcdir=$ac_top_srcdir;;
25267*)
25268 case $ac_top_srcdir in
25269 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25270 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25271 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25272 esac;;
25273esac
John Criswellc764fbc2003-09-06 15:17:13 +000025274
25275
25276 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25277echo "$as_me: executing $ac_dest commands" >&6;}
25278 case $ac_dest in
25279 Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile Makefile ;;
25280 Makefile.common ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/Makefile.common Makefile.common ;;
Reid Spencer5f285392004-08-24 16:32:21 +000025281 examples/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/examples/Makefile examples/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025282 lib/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/lib/Makefile lib/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025283 runtime/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025284 test/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile test/Makefile ;;
25285 test/Makefile.tests ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
John Criswellf424d742003-10-07 21:13:47 +000025286 test/QMTest/llvm.py ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/test/QMTest/llvm.py test/QMTest/llvm.py ;;
25287 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 +000025288 tools/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/tools/Makefile tools/Makefile ;;
Brian Gaekec45be042003-10-07 06:01:34 +000025289 utils/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/utils/Makefile utils/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025290 projects/Makefile ) ${SHELL} ${srcdir}/autoconf/install-sh -c ${srcdir}/projects/Makefile projects/Makefile ;;
John Criswellc764fbc2003-09-06 15:17:13 +000025291 esac
25292done
25293_ACEOF
John Criswell7a73b802003-06-30 21:59:07 +000025294
25295cat >>$CONFIG_STATUS <<\_ACEOF
25296
25297{ (exit 0); exit 0; }
25298_ACEOF
25299chmod +x $CONFIG_STATUS
25300ac_clean_files=$ac_clean_files_save
25301
25302
25303# configure is writing to config.log, and then calls config.status.
25304# config.status does its own redirection, appending to config.log.
25305# Unfortunately, on DOS this fails, as config.log is still kept open
25306# by configure, so config.status won't be able to write to it; its
25307# output is simply discarded. So we exec the FD to /dev/null,
25308# effectively closing config.log, so it can be properly (re)opened and
25309# appended to by config.status. When coming back to configure, we
25310# need to make the FD available again.
25311if test "$no_create" != yes; then
25312 ac_cs_success=:
John Criswell0c38eaf2003-09-10 15:17:25 +000025313 ac_config_status_args=
25314 test "$silent" = yes &&
25315 ac_config_status_args="$ac_config_status_args --quiet"
John Criswell7a73b802003-06-30 21:59:07 +000025316 exec 5>/dev/null
John Criswell0c38eaf2003-09-10 15:17:25 +000025317 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
John Criswell7a73b802003-06-30 21:59:07 +000025318 exec 5>>config.log
25319 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25320 # would make configure fail if this is the last instruction.
25321 $ac_cs_success || { (exit 1); exit 1; }
25322fi
25323
John Criswell12399a12003-09-30 15:55:44 +000025324#
25325# CONFIG_SUBDIRS section.
25326#
25327if test "$no_recursion" != yes; then
25328
25329 # Remove --cache-file and --srcdir arguments so they do not pile up.
25330 ac_sub_configure_args=
25331 ac_prev=
25332 for ac_arg in $ac_configure_args; do
25333 if test -n "$ac_prev"; then
25334 ac_prev=
25335 continue
25336 fi
25337 case $ac_arg in
25338 -cache-file | --cache-file | --cache-fil | --cache-fi \
25339 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25340 ac_prev=cache_file ;;
25341 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25342 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25343 | --c=*)
25344 ;;
25345 --config-cache | -C)
25346 ;;
25347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25348 ac_prev=srcdir ;;
25349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25350 ;;
25351 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25352 ac_prev=prefix ;;
25353 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25354 ;;
25355 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25356 esac
25357 done
25358
25359 # Always prepend --prefix to ensure using the same prefix
25360 # in subdir configurations.
25361 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25362
25363 ac_popdir=`pwd`
25364 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25365
25366 # Do not complain, so a configure script can configure whichever
25367 # parts of a large source tree are present.
25368 test -d $srcdir/$ac_dir || continue
25369
25370 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25371echo "$as_me: configuring in $ac_dir" >&6;}
25372 { if $as_mkdir_p; then
25373 mkdir -p "$ac_dir"
25374 else
25375 as_dir="$ac_dir"
25376 as_dirs=
25377 while test ! -d "$as_dir"; do
25378 as_dirs="$as_dir $as_dirs"
25379 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25380$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Reid Spencer17041682004-09-05 17:48:32 +000025381 X"$as_dir" : 'X\(//\)[^/]' \| \
25382 X"$as_dir" : 'X\(//\)$' \| \
25383 X"$as_dir" : 'X\(/\)' \| \
25384 . : '\(.\)' 2>/dev/null ||
John Criswell12399a12003-09-30 15:55:44 +000025385echo X"$as_dir" |
25386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25387 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25388 /^X\(\/\/\)$/{ s//\1/; q; }
25389 /^X\(\/\).*/{ s//\1/; q; }
25390 s/.*/./; q'`
25391 done
25392 test ! -n "$as_dirs" || mkdir $as_dirs
25393 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25394echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25395 { (exit 1); exit 1; }; }; }
25396
25397 ac_builddir=.
25398
25399if test "$ac_dir" != .; then
25400 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25401 # A "../" for each directory in $ac_dir_suffix.
25402 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25403else
25404 ac_dir_suffix= ac_top_builddir=
25405fi
25406
25407case $srcdir in
25408 .) # No --srcdir option. We are building in place.
25409 ac_srcdir=.
25410 if test -z "$ac_top_builddir"; then
25411 ac_top_srcdir=.
25412 else
25413 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25414 fi ;;
25415 [\\/]* | ?:[\\/]* ) # Absolute path.
25416 ac_srcdir=$srcdir$ac_dir_suffix;
25417 ac_top_srcdir=$srcdir ;;
25418 *) # Relative path.
25419 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25420 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25421esac
Reid Spencer17041682004-09-05 17:48:32 +000025422
25423# Do not use `cd foo && pwd` to compute absolute paths, because
25424# the directories may not exist.
25425case `pwd` in
25426.) ac_abs_builddir="$ac_dir";;
25427*)
25428 case "$ac_dir" in
25429 .) ac_abs_builddir=`pwd`;;
25430 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25431 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25432 esac;;
25433esac
25434case $ac_abs_builddir in
25435.) ac_abs_top_builddir=${ac_top_builddir}.;;
25436*)
25437 case ${ac_top_builddir}. in
25438 .) ac_abs_top_builddir=$ac_abs_builddir;;
25439 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25440 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25441 esac;;
25442esac
25443case $ac_abs_builddir in
25444.) ac_abs_srcdir=$ac_srcdir;;
25445*)
25446 case $ac_srcdir in
25447 .) ac_abs_srcdir=$ac_abs_builddir;;
25448 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25449 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25450 esac;;
25451esac
25452case $ac_abs_builddir in
25453.) ac_abs_top_srcdir=$ac_top_srcdir;;
25454*)
25455 case $ac_top_srcdir in
25456 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25457 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25458 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25459 esac;;
25460esac
John Criswell12399a12003-09-30 15:55:44 +000025461
25462
25463 cd $ac_dir
25464
25465 # Check for guested configure; otherwise get Cygnus style configure.
25466 if test -f $ac_srcdir/configure.gnu; then
25467 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25468 elif test -f $ac_srcdir/configure; then
25469 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25470 elif test -f $ac_srcdir/configure.in; then
25471 ac_sub_configure=$ac_configure
25472 else
25473 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25474echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25475 ac_sub_configure=
25476 fi
25477
25478 # The recursion is here.
25479 if test -n "$ac_sub_configure"; then
25480 # Make the cache file name correct relative to the subdirectory.
25481 case $cache_file in
25482 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25483 *) # Relative path.
Reid Spencer17041682004-09-05 17:48:32 +000025484 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
John Criswell12399a12003-09-30 15:55:44 +000025485 esac
25486
25487 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25488echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25489 # The eval makes quoting arguments work.
25490 eval $ac_sub_configure $ac_sub_configure_args \
Reid Spencer17041682004-09-05 17:48:32 +000025491 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25492 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
John Criswell12399a12003-09-30 15:55:44 +000025493echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25494 { (exit 1); exit 1; }; }
25495 fi
25496
25497 cd $ac_popdir
25498 done
25499fi
25500
Brian Gaekef3b24102003-11-16 18:38:14 +000025501
25502if test $llvmgccwarn = yes
25503then
25504 { echo "$as_me:$LINENO: WARNING: ***** llvm C/C++ front end was not found, or does not" >&5
25505echo "$as_me: WARNING: ***** llvm C/C++ front end was not found, or does not" >&2;}
25506 { echo "$as_me:$LINENO: WARNING: ***** appear to be working." >&5
25507echo "$as_me: WARNING: ***** appear to be working." >&2;}
25508 { echo "$as_me:$LINENO: WARNING: ***** " >&5
25509echo "$as_me: WARNING: ***** " >&2;}
25510 { echo "$as_me:$LINENO: WARNING: ***** Please check configure's --with-llvmgccdir option." >&5
25511echo "$as_me: WARNING: ***** Please check configure's --with-llvmgccdir option." >&2;}
25512 { echo "$as_me:$LINENO: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&5
25513echo "$as_me: WARNING: ***** Runtime libraries (in llvm/runtime) will not be built," >&2;}
25514 { echo "$as_me:$LINENO: WARNING: ***** but you should be able to build the llvm tools." >&5
25515echo "$as_me: WARNING: ***** but you should be able to build the llvm tools." >&2;}
25516fi
Brian Gaeke554831c2004-01-21 19:39:29 +000025517